/* Classroom (12 Nov 2026): the pages drawn by classroom.js inside #classroomView (view-classroom), and its dialogs.
   The Hub's own tokens only (DESIGN-SYSTEM.md), Newsreader for every word but the class code (Archivo, read aloud
   letter by letter), lavender only for what you can press and for the page you are on. The six band tints are
   DASH_ART's deep stops (design 4; CLS_THEMES in classroom.js holds the same values: keep the two in step). The top
   bar's live dot is index.html's (#mainNav.cls-live). Every transition here stops under reduced motion (at the end). */

/* ---------- the six tints: two stops and a soft glow (.14 at most) at the bottom right ---------- */
.cls-t0{--cls-a:#16183C; --cls-b:#34306F; --cls-g:185,169,242}
.cls-t1{--cls-a:#2E1E3E; --cls-b:#4A2C4A; --cls-g:246,194,123}
.cls-t2{--cls-a:#122D38; --cls-b:#1B3650; --cls-g:126,224,212}
.cls-t3{--cls-a:#2F2118; --cls-b:#45301F; --cls-g:246,194,123}
.cls-t4{--cls-a:#2E1729; --cls-b:#45203A; --cls-g:244,134,108}
.cls-t5{--cls-a:#1B2850; --cls-b:#273A6A; --cls-g:142,123,214}

/* ---------- the page: the rail at the left, the panel at the right ---------- */
.wrap.cls-wrap{max-width:1320px}
.cls-layout{display:grid; grid-template-columns:248px minmax(0,1fr); gap:28px; align-items:start}
.cls-main{min-width:0}
.cls-rail{position:sticky; top:94px; max-height:calc(100vh - 110px); overflow-y:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:2px; padding:2px}
.cls-rail-a{position:relative; display:flex; align-items:center; gap:14px; width:100%; min-height:48px; margin:0; padding:0 14px; border:0; border-radius:var(--r-sm);
  background:none; color:var(--linen); font-family:var(--serif); font-size:17px; font-weight:400; line-height:1.3; text-align:left; text-decoration:none; cursor:pointer;
  transition:background-color .2s ease, color .2s ease}
.cls-rail-a svg{flex:none; width:20px; height:20px; color:var(--text-3); transition:color .2s ease}
.cls-rail-a:hover{background:var(--fill-2)}
.cls-rail-a:hover svg{color:var(--daybreak)}
.cls-rail-a:focus-visible{outline:2px solid var(--daybreak); outline-offset:-2px}
.cls-rail-a[aria-current="page"]{background:var(--fill-2)}
.cls-rail-a[aria-current="page"] svg{color:var(--daybreak)}
.cls-rail-a[aria-current="page"]::before{content:""; position:absolute; left:0; top:9px; bottom:9px; width:3px; border-radius:var(--r-pill); background:var(--daybreak)}
.cls-rail-w,.cls-rail-n{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cls-rail-sep{height:1px; margin:10px 6px; background:var(--rule-1)}
.cls-rail-h{margin:10px 14px 4px; font-family:var(--serif); font-size:14px; font-weight:400; line-height:1.4; letter-spacing:0; color:var(--text-3); text-align:left}
.cls-rail-list{list-style:none; margin:0; padding:0}
.cls-rail-c{gap:12px}
.cls-av28{flex:none; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%;
  background:linear-gradient(160deg, var(--cls-a), var(--cls-b)); border:1px solid var(--rule-2); color:var(--linen); font-size:14px; line-height:1}

/* the panel (--card, 24px corners, the .dsc radius) and its header: "Classes" and + Add class */
.cls-panel{min-width:0; background:var(--card); border:1px solid var(--rule-2); border-radius:24px; padding:32px}
.cls-ph{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 20px; margin:0 0 24px; padding:0 0 20px; border-bottom:1px solid var(--rule-1)}
.cls-ph-tx{min-width:0}
.cls-ph h2,.cls-notin-h{margin:0; font-family:var(--serif); font-size:28px; font-weight:400; line-height:1.15; text-align:left; color:var(--linen)}
#cls-ph-h:focus:not(:focus-visible){outline:none}   /* it takes the focus after All classes (the link is gone) */
.cls-ph-note{margin:4px 0 0; font-size:15px; color:var(--text-2)}
.cls-none{margin:8px 0; font-size:16px; line-height:1.5; color:var(--text-3)}
/* the lavender text button: + Add class, Join class for members, Create class in the empty state */
.cls-tbtn{display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 16px; border:0; border-radius:var(--r-pill); background:none;
  color:var(--daybreak); font-family:var(--serif); font-size:17px; font-weight:400; cursor:pointer; transition:background-color .2s ease}
.cls-tbtn svg{flex:none; width:20px; height:20px}
.cls-tbtn:hover{background:var(--fill-2)}
.cls-tbtn:focus-visible{outline:2px solid var(--daybreak); outline-offset:2px}
/* its menu and a person's More menu: the account menu's look (.acct-menu, .acct-item) hanging under the button */
.cls-dd{position:relative; flex:none}
.acct-menu.cls-menu{top:calc(100% + 8px); right:0; left:auto; width:240px; max-width:calc(100vw - 32px)}

/* the empty state: the drawing, one line, Create class and Join class */
.cls-empty{display:flex; flex-direction:column; align-items:center; padding:20px 0 12px; text-align:center}
.cls-ill{display:block; width:280px; max-width:100%; height:auto}
.cls-ill .ln6{stroke:var(--linen); stroke-opacity:.6}
.cls-ill .ln7{stroke:var(--linen); stroke-opacity:.72}
.cls-ill .ln8{stroke:var(--linen); stroke-opacity:.85}
.cls-ill .sun{stroke:#F6C27B; stroke-opacity:.9; fill:#E79A6C; fill-opacity:.22}
.cls-ill .glow{stroke:#F6C27B; stroke-opacity:.75}
.cls-ill .lav{stroke:var(--daybreak)}
.cls-empty-t{margin:18px 0 16px; font-size:19px; line-height:1.4; color:var(--text-1)}
.cls-empty-btns{display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px}

/* ---------- class cards (design 3): an article whose name is its one link ---------- */
.cls-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(min(264px, 100%), 1fr)); gap:24px}
.cls-card{position:relative; isolation:isolate; display:grid; grid-template-rows:auto 1fr; grid-template-columns:minmax(0,1fr); max-height:300px; overflow:hidden;
  border-radius:24px; background:var(--fill-1); border:1px solid var(--rule-2); box-shadow:var(--sh-1); color:var(--linen);
  transition:top .35s var(--ease-out), border-color .3s ease, box-shadow .35s var(--ease-out)}
/* the hover lift is a position offset, not a transform: a transform would make the card, which clips, the frame of its
   pinned menu (position:fixed), so the card can stay lifted while its menu is open */
.cls-card:hover{top:-4px; border-color:rgba(185,169,242,.5); box-shadow:var(--sh-2)}
.cls-card:focus-within{outline:2px solid var(--daybreak); outline-offset:4px}
.cls-band-bg{grid-area:1 / 1; z-index:-1;
  background:radial-gradient(70% 90% at 100% 100%, rgba(var(--cls-g),.14), rgba(var(--cls-g),0) 70%), linear-gradient(160deg, var(--cls-a), var(--cls-b))}
.cls-card.is-archived .cls-band-bg{filter:saturate(.3)}   /* the tint only: the words keep their colors */
.cls-band{grid-area:1 / 1; min-width:0; min-height:104px; padding:16px 20px 14px}
.cls-card-h{margin:0; font-family:var(--serif); font-size:24px; font-weight:400; line-height:1.15; letter-spacing:-.005em; text-align:left;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere}
.cls-card-link{color:var(--linen); text-decoration:none}
.cls-card-link:focus-visible{outline:none}   /* the card shows the ring */
.cls-card-link::after{content:""; position:absolute; inset:0; z-index:1}   /* a press anywhere on the card opens its Stream */
.cls-card-sec,.cls-card-who{margin:4px 76px 0 0; font-size:15px; line-height:1.4; color:var(--text-1); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cls-face{grid-area:1 / 1; align-self:end; justify-self:end; display:flex; align-items:center; justify-content:center; width:64px; height:64px; margin:0 16px -32px 0;
  border-radius:50%; overflow:hidden; background:var(--card); border:2px solid var(--card); color:var(--linen); font-size:26px; pointer-events:none}
.cls-face img{display:block; width:100%; height:100%; object-fit:cover}
.cls-card-body{grid-row:2; display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; padding:46px 20px 18px; border-top:1px solid var(--rule-2)}
.cls-card-st{flex:1 1 0; min-width:0; display:flex; align-items:center; flex-wrap:wrap; margin:0; font-size:15px; line-height:1.4; color:var(--text-2); text-wrap:balance}
.cls-card-st .cls-when{white-space:nowrap}   /* the date and the time each stay whole: a narrow line breaks after "Next class:" */
/* a card's More (13 Nov 2026): the People tab's round icon button (.cls-icon-btn, 44px) at the right end of the lower
   part, beside the status line, above the name link's cover (z-index 2), so a press on it never opens the class. Its
   negative margins keep the row as tall as the line of words. The icon is --text-1 (about 9.8:1 on the card), the
   hover and the open state a --fill-2 disc in linen, the focus ring the Hub's lavender. Its menu is pinned to the
   window (classroom.js menuPin), so the card's own clipping never cuts it; while it is open the card sits above its
   neighbors and holds where it is (.is-menu: no transition, so a press mid-lift measures the button where it stays),
   and only the button shows a ring, not the whole card. The 46px over the status line keeps More clear of the photo. */
.cls-card-dd{position:relative; z-index:2; margin:-11px -12px -11px auto}
.cls-icon-btn.cls-card-more{color:var(--text-1)}
.cls-card.is-menu{z-index:3; transition:none}
.cls-card:has(.cls-card-dd:focus-within){outline:none}
.acct-menu.cls-card-menu{position:fixed; top:0; right:auto; left:0}   /* classroom.js puts it in its place as it opens */
.acct-menu.cls-card-menu.is-up{transform-origin:bottom right}   /* opened over its button: it grows from there */
@media(min-width:641px){ .acct-menu.cls-card-menu .acct-item{min-height:44px} }   /* 44px targets (phones' items are 50px already) */
.cls-tag{display:inline-block; padding:2px 10px; border-radius:var(--r-pill); border:1px solid var(--rule-2); font-size:14px; line-height:1.4; color:var(--text-2); white-space:nowrap}
/* the still dot that goes with the words "Live now" (no motion: design 7) */
.cls-dot{display:inline-block; flex:none; width:8px; height:8px; margin-right:8px; border-radius:50%; background:#E5484D}

/* ---------- Calendar (20 Nov 2026): Live now, then a month beside the chosen day, in the layout of React Bits Pro's
   "Scheduling 1" (our own code) and the Hub's colors. React (bento/hub-cal.jsx) and classroom.js draw the same elements,
   so these rules style both. ---------- */
.cls-cal-day{margin:0 0 24px}
.cls-cal-live{margin:0 0 28px}
/* the month and the day side by side while there is room for both (the month about 360px, the day the rest), the day
   under the month when there isn't */
.cls-sched{display:flex; flex-wrap:wrap; align-items:flex-start; gap:24px 40px}
.cls-mon{flex:1 1 360px; max-width:380px; min-width:0}
.cls-agenda{flex:999 1 320px; min-width:0}
/* the month's header: Previous month, the Month and Year boxes, Next month */
.cls-mon-hd{display:grid; grid-template-columns:44px minmax(0,1fr) auto 44px; align-items:center; gap:8px; margin:0 0 10px}
.cls-mon-step{color:var(--text-1)}
.cls-sel{position:relative; display:flex; align-items:center; min-width:0}
.cls-sel-in{width:100%; min-height:44px; margin:0; padding:0 38px 0 14px; border:1px solid var(--rule-3); border-radius:10px; background:var(--fill-1); color:var(--linen);
  font:inherit; font-size:16px; line-height:1.2; text-overflow:ellipsis; cursor:pointer; -webkit-appearance:none; appearance:none; color-scheme:dark}
.cls-sel-in:hover{background:var(--fill-2); border-color:var(--rule-4)}
.cls-sel-in:focus-visible{outline:2px solid var(--daybreak); outline-offset:2px}
.cls-sel-in option{background:var(--night-2); color:var(--linen)}
.cls-sel svg{position:absolute; top:50%; right:12px; width:16px; height:16px; margin-top:-8px; color:var(--text-2); pointer-events:none}
.cls-sel-y .cls-sel-in{width:auto; min-width:96px}
.cls-mon-grid{width:100%; border-collapse:separate; border-spacing:2px 4px; table-layout:fixed}
.cls-mon-grid th{padding:4px 0 6px; font-size:14px; font-weight:400; line-height:1.2; text-align:center; color:var(--text-3)}
.cls-mon-grid td{padding:0; text-align:center}
/* a day: a small square dot over the date for each class time, up to three, in its class's color (the words are in its
   label); today outlined in lavender, the chosen day solid lavender with night words */
.cls-md{position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:46px; margin:0; padding:10px 0 0; border:1px solid transparent; border-radius:10px;
  background:none; color:var(--linen); font:inherit; font-size:16px; line-height:1; font-variant-numeric:tabular-nums; cursor:pointer}
.cls-md:hover{background:var(--fill-2)}
.cls-md:focus-visible{outline:2px solid var(--daybreak); outline-offset:1px}
.cls-md.cls-md-past{color:var(--text-2)}
.cls-md.cls-md-out{color:var(--text-3)}
.cls-md.cls-md-today{border-color:var(--daybreak)}
.cls-md.cls-md-sel{background:var(--daybreak); border-color:var(--daybreak); color:var(--night); font-weight:600}
.cls-md.cls-md-sel:focus-visible{outline-color:var(--linen)}
.cls-md-dots{position:absolute; top:8px; left:0; right:0; display:flex; justify-content:center; gap:3px}
.cls-md-dot{width:5px; height:5px; border-radius:1px; background:rgb(var(--cls-g))}
.cls-md.cls-md-sel .cls-md-dot{background:var(--night)}
.cls-mon-foot{margin:6px 0 0; padding:0 0 0 6px}
.cls-mon-today{display:inline-flex; align-items:center; min-height:44px; font-size:15px}
/* the chosen day: its date, a line of counts ("Today", "3 class times", "2 you teach"), Show and Add at the right */
.cls-ag-hd{display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px 16px; margin:0 0 8px; padding:0 0 0 16px}
.cls-ag-tx{min-width:0}
.cls-ag-h{margin:0; font-family:var(--serif); font-size:24px; font-weight:400; line-height:1.25; text-align:left; color:var(--linen)}
.cls-ag-sub{display:flex; flex-wrap:wrap; gap:2px 14px; margin:4px 0 0; font-size:15px; line-height:1.5; color:var(--text-2)}
.cls-ag-rel{color:var(--daybreak); font-weight:600}
.cls-ag-tools{display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-left:auto}
.cls-sel-f .cls-sel-in{min-width:170px; max-width:260px}
.cls-ag-add{display:inline-flex; align-items:center; gap:8px; min-height:44px; margin:0; padding:0 18px 0 14px; border:0; border-radius:10px; background:var(--daybreak); color:var(--night);
  font:inherit; font-size:16px; font-weight:600; line-height:1; cursor:pointer}
.cls-ag-add svg{width:18px; height:18px}
.cls-ag-add:hover{background:#CEC2F7}
.cls-ag-add:focus-visible{outline:2px solid var(--linen); outline-offset:2px}
/* its class times: rows between hairlines, each a link to its class over the whole row; the row under the pointer
   lights up (--fill-2, and React's lavender light), the keyboard's gets the lavender ring */
.cls-ag-list{list-style:none; margin:0; padding:0}
.cls-ag-item{padding:4px 0; border-top:1px solid var(--rule-1)}
.cls-ag-item:first-child{border-top:0}
.cls-ag-row{position:relative; border-radius:12px; transition:background-color .15s ease}
.cls-ag-row:hover{background:var(--fill-2)}
.cls-ag-body{position:relative; display:flex; flex-direction:column; gap:8px; min-width:0; padding:12px 16px}
.cls-ag-a{color:var(--linen); font-size:18px; line-height:1.35; text-decoration:none; overflow-wrap:anywhere}
.cls-ag-a::after{content:""; position:absolute; inset:0; border-radius:12px}
.cls-ag-row:hover .cls-ag-a{text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px}
.cls-ag-a:focus-visible{outline:none}
.cls-ag-a:focus-visible::after{outline:2px solid var(--daybreak); outline-offset:-2px}
.cls-ag-gone .cls-ag-a{color:var(--text-2)}
.cls-ag-meta{display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; font-size:15px; line-height:1.3; color:var(--text-2)}
.cls-ag-chip{display:inline-flex; align-items:center; min-height:26px; padding:0 10px; border-radius:6px; background:var(--fill-2); color:var(--text-1); font-size:14px; line-height:1}
.cls-ag-who{display:inline-flex; align-items:center; gap:8px; min-width:0}
.cls-ag-av{flex:none; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%;
  background:linear-gradient(160deg, var(--cls-a), var(--cls-b)); border:1px solid var(--rule-3); color:var(--linen); font-size:13px; line-height:1}
.cls-ag-cls{overflow-wrap:anywhere}
.cls-ag-when{display:inline-flex; align-items:center; gap:6px; font-variant-numeric:tabular-nums; white-space:nowrap}
.cls-ag-when svg{width:16px; height:16px; color:var(--text-3)}
.cls-agenda > .cls-none,.cls-ag-next{padding-left:16px}
.cls-ag-next{margin:4px 0 0; font-size:16px; line-height:1.5; color:var(--text-2)}
.cls-ag-go{display:inline-flex; align-items:center; min-height:44px; font-size:16px; text-align:left}
.cls-cal-day h3{margin:0 0 6px; font-family:var(--serif); font-size:20px; font-weight:500; line-height:1.3; text-align:left; color:var(--linen)}
.cls-cal{list-style:none; margin:0; padding:0}
.cls-cal-row{display:grid; grid-template-columns:120px minmax(0,1fr); gap:12px; padding:12px 0; border-top:1px solid var(--rule-1)}
.cls-cal-t{display:flex; align-items:center; font-size:16px; color:var(--text-2); font-variant-numeric:tabular-nums}
.cls-cal-c{display:flex; flex-direction:column; min-width:0}
.cls-cal-a{align-self:flex-start; display:inline-flex; align-items:center; min-height:44px; color:var(--daybreak); font-size:17px; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; overflow-wrap:anywhere}
.cls-cal-a:hover{color:#CEC2F7}
.cls-cal-title{font-size:15px; color:var(--text-3); overflow-wrap:anywhere}

/* ---------- a class: the banner, the tabs and the three or four panels ---------- */
.cls-class{min-width:0}
.cls-back{margin:0 0 14px}
.cls-banner{position:relative; isolation:isolate; display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px; min-height:220px; padding:32px;
  border-radius:24px; overflow:hidden; color:var(--linen);
  background:radial-gradient(70% 90% at 100% 100%, rgba(var(--cls-g),.14), rgba(var(--cls-g),0) 70%), linear-gradient(160deg, var(--cls-a), var(--cls-b))}
.cls-banner-tx{flex:1 1 260px; min-width:0}
.cls-h1{margin:0; font-family:var(--serif); font-size:clamp(32px, 4vw, 48px); font-weight:400; line-height:1.08; letter-spacing:-.012em; text-align:left; color:var(--linen); overflow-wrap:anywhere}
.cls-h1:focus:not(:focus-visible){outline:none}
.cls-banner-sec{margin:6px 0 0; font-size:19px; line-height:1.4; color:var(--text-1); overflow-wrap:anywhere}
.cls-banner-sec[hidden]{display:none}
.cls-set-btn{align-self:flex-start; color:var(--linen)}
.cls-class .btn svg{flex:none; width:18px; height:18px}
.cls-about{max-width:70ch; margin:16px 0 0; font-size:17px; line-height:1.55; color:var(--text-2); white-space:pre-wrap; overflow-wrap:anywhere}
.cls-about[hidden]{display:none}
.cls-arch-note{margin:14px 0 0; font-size:16px; line-height:1.5; color:var(--text-2)}
.cls-arch-note .linkbtn{display:inline; font:inherit; line-height:inherit; text-align:left}   /* "Archived classes", in the sentence (the owner's) */
.cls-tabs{display:flex; flex-wrap:wrap; gap:4px 8px; margin:20px 0 24px; border-bottom:1px solid var(--rule-1)}
.cls-tab{min-height:44px; margin:0 0 -1px; padding:0 14px; border:0; border-radius:var(--r-sm) var(--r-sm) 0 0; background:none; color:var(--text-2);
  font-family:var(--serif); font-size:17px; font-weight:400; cursor:pointer; box-shadow:inset 0 -2px 0 transparent; transition:color .2s ease, box-shadow .2s ease}
.cls-tab:hover{color:var(--linen)}
.cls-tab[aria-selected="true"]{color:var(--linen); box-shadow:inset 0 -2px 0 var(--daybreak)}
.cls-tab:focus-visible{outline:2px solid var(--daybreak); outline-offset:-2px}
.cls-tabpanel[hidden]{display:none}
.cls-tabpanel:focus-visible{outline:2px solid var(--daybreak); outline-offset:6px; border-radius:var(--r-md)}

/* Stream: the class's own column at the left (Live class, Class code, Upcoming), the posts at the right */
.cls-stream{display:grid; grid-template-columns:280px minmax(0,1fr); gap:24px; align-items:start}
.cls-side{display:flex; flex-direction:column; gap:16px; min-width:0}
.cls-box{min-width:0; padding:20px; background:var(--fill-1); border:1px solid var(--rule-2); border-radius:var(--r-lg)}
.cls-box-h{margin:0 0 10px; font-family:var(--serif); font-size:20px; font-weight:500; line-height:1.3; text-align:left; color:var(--linen)}
.cls-box-line{margin:0 0 12px; font-size:16px; line-height:1.5; color:var(--text-2)}
.cls-box-note{margin:12px 0 0; font-size:15px; line-height:1.5; color:var(--text-3)}
.cls-live-now{display:flex; align-items:center; margin:0 0 4px; font-size:17px; color:var(--linen)}
.cls-live-btn{width:100%}
.cls-live-end{margin-top:10px}
.cls-wait{margin-top:10px; align-self:auto}
.cls-wait input{width:18px; height:18px; margin:0; accent-color:var(--daybreak)}
.cls-code{margin:2px 0 14px; font-family:var(--wide); font-size:28px; font-weight:400; line-height:1.2; letter-spacing:.12em; font-variant-numeric:tabular-nums; color:var(--linen); overflow-wrap:anywhere}
.cls-box-acts{display:flex; flex-wrap:wrap; gap:8px}
.cls-up{list-style:none; margin:0; padding:0}
.cls-up-row{display:flex; align-items:center; gap:8px; padding:8px 0; border-top:1px solid var(--rule-1)}
.cls-up-row:first-child{border-top:0; padding-top:0}
.cls-up-tx{display:flex; flex-direction:column; flex:1; min-width:0}
.cls-up-when{font-size:16px; color:var(--text-1)}
.cls-up-t{font-size:15px; color:var(--text-3); overflow-wrap:anywhere}
.cls-add-link{display:inline-flex; align-items:center; min-height:44px; margin-top:6px; font-size:16px}
.cls-time-form{display:flex; flex-direction:column; gap:12px; margin-top:10px}
.cls-time-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px}
.cls-time-form .rf-fl .hub-field,.cls-crs-form .rf-fl .hub-field{width:100%; min-width:0}
.cls-form-btns{display:flex; flex-wrap:wrap; gap:8px}
.cls-err{margin:0; font-size:15px; line-height:1.5; color:var(--garnet)}
.cls-err:empty{display:none}
/* round icon buttons: remove a class time, delete a post, a person's More */
.cls-icon-btn{flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; border-radius:50%;
  background:none; color:var(--text-2); cursor:pointer; transition:background-color .2s ease, color .2s ease}
.cls-icon-btn svg{width:20px; height:20px}
.cls-icon-btn:hover{background:var(--fill-2); color:var(--linen)}
.cls-icon-btn:focus-visible{outline:2px solid var(--daybreak); outline-offset:-2px}
.cls-icon-btn[aria-expanded="true"]{background:var(--fill-2); color:var(--linen)}
.cls-feed{display:flex; flex-direction:column; gap:16px; min-width:0}
.cls-posts{display:flex; flex-direction:column; gap:16px; min-width:0}
.cls-compose{padding:16px; background:var(--fill-1); border:1px solid var(--rule-2); border-radius:var(--r-lg)}
.cls-compose textarea{min-height:96px}
.cls-compose-row{display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:10px}
.cls-count{font-size:14px; color:var(--text-3); font-variant-numeric:tabular-nums}
.cls-post{min-width:0; padding:18px 20px; background:var(--fill-1); border:1px solid var(--rule-2); border-radius:var(--r-lg)}
.cls-post-hd{display:flex; align-items:center; gap:12px; margin:0 0 10px}
.cls-av40{flex:none; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; overflow:hidden; border-radius:50%;
  background:var(--fill-2); border:1px solid var(--rule-2); color:var(--linen); font-size:17px; line-height:1}
.cls-av40 img{display:block; width:100%; height:100%; object-fit:cover}
.cls-post-who{display:flex; flex-direction:column; flex:1; min-width:0}
.cls-post-name{font-size:17px; font-weight:500; overflow-wrap:anywhere}
.cls-post-when{font-size:14px; color:var(--text-3)}
.cls-post-tx{margin:0; font-size:17px; line-height:1.55; color:var(--text-1); white-space:pre-wrap; overflow-wrap:anywhere}
.cls-post-tx a{color:var(--daybreak); text-underline-offset:3px}
.cls-rec-t{margin:0; font-size:17px; color:var(--linen)}
.cls-rec-meta{margin:2px 0 12px; font-size:15px; color:var(--text-3)}
.cls-rec-acts{display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.cls-more{align-self:center}
/* a recording plays in place, part after part */
.cls-player{margin-top:14px}
.cls-player video{display:block; width:100%; max-height:min(60vh, 540px); border-radius:var(--r-md); background:var(--night)}
.cls-player-bar{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px}
.cls-player-n{margin-right:auto; font-size:15px; color:var(--text-2)}
.cls-player-msg{margin:8px 0 0; font-size:15px; color:var(--text-2)}
.cls-player-msg:empty{display:none}

/* Classwork and People: headed ruled lists */
.cls-sec{margin:0 0 32px}
.cls-sec-hd{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 12px; margin:0 0 4px; padding:0 0 10px; border-bottom:1px solid var(--rule-1)}
.cls-sec-hd h2{margin:0; font-family:var(--serif); font-size:26px; font-weight:400; line-height:1.2; text-align:left; color:var(--linen)}
.cls-sec-n{font-size:15px; color:var(--text-3)}
.cls-sec-note{margin:8px 0 4px; font-size:15px; color:var(--text-2)}
.cls-rows,.cls-people{list-style:none; margin:0; padding:0}
.cls-row{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; padding:14px 0; border-bottom:1px solid var(--rule-1)}
.cls-row-tx{display:flex; flex-direction:column; flex:1 1 220px; min-width:0}
.cls-row-tx b{font-size:19px; font-weight:500; overflow-wrap:anywhere}
.cls-row-tx span{font-size:15px; color:var(--text-3)}
.cls-row-note{max-width:300px; font-size:15px; color:var(--text-2)}
.asg-pill.cls-open-crs{min-height:44px}   /* the Hub's pill is 40px; a target here is 44px (contract 7) */
.cls-row .cls-player-slot{flex:1 1 100%}
.cls-row .cls-player-slot:empty{display:none}
.cls-crs-form{display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-top:16px}
.cls-crs-form .rf-fl{flex:0 1 360px; max-width:100%}
.cls-crs-form .rf-fl select.hub-field{max-width:100%}
.cls-crs-form .cls-err{flex:1 1 100%}
.cls-person{display:flex; align-items:center; gap:14px; min-height:60px; padding:8px 0; border-bottom:1px solid var(--rule-1)}
.cls-person-tx{display:flex; flex-direction:column; flex:1; min-width:0}
.cls-person-tx b{font-size:17px; font-weight:400; overflow-wrap:anywhere}
.cls-you{color:var(--text-3)}
.cls-person-mail{font-size:14px; color:var(--text-3); overflow-wrap:anywhere}
.cls-leave{margin:4px 0 0}
.cls-leave .linkbtn{min-height:44px; font-size:16px}
.cls-ev{min-width:0}

/* ---------- dialogs: the Hub's .cert-modal, with fields of their own ---------- */
.cls-dlg .cert-modal{max-width:500px; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); overflow-y:auto; overscroll-behavior:contain; text-align:left}
.cls-dlg.cls-dlg-top{z-index:910}
.cls-dlg h3{margin:0 0 12px; overflow-wrap:anywhere}
.cls-dlg .cert-modal p{overflow-wrap:anywhere}
.cls-dlg .cls-fl{display:block; margin:14px 0 6px; padding:0; font-size:15px; color:var(--text-2)}
.cls-dlg .hub-field{display:block}
.cls-dlg textarea.hub-field{min-height:84px}
.cls-dlg .cls-code-in{font-family:var(--wide); font-size:22px; letter-spacing:.12em}
.cls-dlg .cls-dlg-who{margin:0 0 4px; font-size:16px; color:var(--text-2)}
.cls-dlg .cls-dlg-hint{margin:8px 0 0; font-size:15px; color:var(--text-3)}
.cls-dlg .cls-dlg-hint:empty{display:none}
.cls-dlg .cls-err{margin:10px 0 0; font-size:15px; color:var(--garnet)}
.cls-dlg .cls-err:empty{display:none}
.cls-dlg .cert-modal-btns{flex-wrap:wrap; margin-top:22px}
.cls-sws{min-width:0; margin:0; padding:0; border:0}
.cls-sw-row{display:flex; flex-wrap:wrap; gap:8px 10px}
/* Create class (20 Nov 2026): People (a search box over the people on the Hub, each a checkbox row) and Class times
   (a first class, how often, how many, a title for each, and a line saying what that makes) */
.cls-new-set{min-width:0; margin:18px 0 0; padding:12px 0 0; border:0; border-top:1px solid var(--rule-1)}
.cls-new-set > legend{float:left; width:100%; margin:0 0 2px; padding:0}
.cls-new-set > legend + *{clear:both}
.cls-ppl{display:flex; flex-direction:column; max-height:228px; overflow-y:auto; overscroll-behavior:contain; margin:8px 0 0; border:1px solid var(--rule-2); border-radius:var(--r-md); background:var(--fill-1)}
.cls-ppl:empty{display:none}
.cls-ppl > .cls-none,.cls-ppl > .cls-dlg-hint{margin:10px 12px}
.cls-ppl-row{display:flex; align-items:center; gap:10px; min-height:52px; padding:6px 12px; border-top:1px solid var(--rule-1); cursor:pointer}
.cls-ppl-row:first-child{border-top:0}
.cls-ppl-row:hover{background:var(--fill-2)}
.cls-ppl-row:focus-within{outline:2px solid var(--daybreak); outline-offset:-2px}
.cls-ppl-row input{flex:none; width:18px; height:18px; margin:0; accent-color:var(--daybreak)}
.cls-ppl-av{flex:none; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:var(--fill-2); border:1px solid var(--rule-3); color:var(--linen); font-size:13px; line-height:1}
.cls-ppl-tx{display:flex; flex-direction:column; min-width:0}
.cls-ppl-n{font-size:15px; line-height:1.3; color:var(--linen); overflow-wrap:anywhere}
.cls-ppl-e{font-size:13px; line-height:1.3; color:var(--text-3); overflow-wrap:anywhere}
.cls-sch-on{display:flex; margin-top:6px}
.cls-new-set .cls-time-grid{margin-top:2px}
/* Home's Invitations (20 Nov 2026): one row for each class I'm invited to, its Join at the right */
.cls-inv{margin:0 0 28px}
.cls-inv-h{margin:0 0 10px; font-family:var(--serif); font-size:20px; font-weight:500; line-height:1.3; text-align:left; color:var(--linen)}
.cls-inv-list{list-style:none; display:flex; flex-direction:column; gap:10px; margin:0; padding:0}
.cls-inv-row{display:flex; align-items:center; gap:14px; padding:12px 14px 12px 16px; background:var(--fill-1); border:1px solid var(--rule-2); border-radius:var(--r-lg)}
.cls-inv-tx{display:flex; flex:1 1 auto; flex-direction:column; gap:2px; min-width:0}
.cls-inv-n{font-size:17px; line-height:1.35; color:var(--linen); overflow-wrap:anywhere}
.cls-inv-l{font-size:15px; line-height:1.4; color:var(--text-2)}
.cls-inv-go{flex:none; min-height:44px}
.cls-av-mail{background:var(--fill-2); border-color:var(--rule-3); color:var(--linen)}
/* a class time of a class I'm invited to, in the Calendar: its chip outlined in lavender */
.cls-ag-chip.cls-ag-inv{background:none; border:1px solid var(--daybreak); color:var(--daybreak)}
.cls-sw{position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; min-width:58px; cursor:pointer}
.cls-sw input{position:absolute; top:0; left:50%; width:44px; height:44px; margin:0 0 0 -22px; opacity:0; cursor:pointer}
.cls-sw-dot{position:relative; width:44px; height:44px; border-radius:50%; border:1px solid var(--rule-3); background:linear-gradient(160deg, var(--cls-a), var(--cls-b))}
.cls-sw input:checked + .cls-sw-dot{box-shadow:0 0 0 2px var(--card), 0 0 0 4px var(--linen)}   /* the chosen one: a linen ring and a check, not color alone */
.cls-sw input:checked + .cls-sw-dot::after{content:""; position:absolute; left:15px; top:10px; width:9px; height:16px; border:solid var(--linen); border-width:0 2px 2px 0; transform:rotate(45deg)}
.cls-sw input:focus-visible + .cls-sw-dot{outline:2px solid var(--daybreak); outline-offset:5px}
.cls-sw-n{font-size:14px; color:var(--text-2)}
.cls-dlg [hidden]{display:none}

/* ---------- narrower windows ---------- */
@media(max-width:1100px){ .cls-stream{grid-template-columns:minmax(0,1fr)} }
@media(max-width:900px){
  .cls-layout{grid-template-columns:minmax(0,1fr); gap:20px}
  /* the rail is a row of pills that wrap (never a sideways scroll); the cards are the list of classes */
  .cls-rail{position:static; max-height:none; overflow:visible; flex-direction:row; flex-wrap:wrap; gap:8px; padding:0}
  .cls-rail-sub,.cls-rail-sep{display:none}
  .cls-rail-a{width:auto; min-height:44px; padding:0 16px; gap:8px; border:1px solid var(--rule-2); border-radius:var(--r-pill); font-size:16px}
  .cls-rail-a[aria-current="page"]{border-color:var(--daybreak)}
  .cls-rail-a[aria-current="page"]::before{display:none}
}
@media(max-width:640px){
  .wrap.cls-wrap{padding-left:16px; padding-right:16px}
  .cls-panel{padding:20px; border-radius:20px}
  .cls-grid{gap:16px}
  .cls-card{border-radius:20px}
  .cls-banner{min-height:180px; padding:22px; border-radius:20px}
  .cls-time-grid{grid-template-columns:minmax(0,1fr)}
  .cls-cal-row{grid-template-columns:minmax(0,1fr); gap:2px}
  .cls-mon{flex-basis:100%; max-width:none}
  .cls-mon-hd{gap:4px}
  .cls-sel-in{padding:0 30px 0 10px; font-size:15px}
  .cls-sel svg{right:8px}
  .cls-sel-y .cls-sel-in{min-width:0}
  .cls-mon-grid{border-spacing:1px 3px}
  .cls-ag-hd{padding-left:0}
  .cls-ag-h{font-size:22px}
  .cls-ag-tools{flex-wrap:nowrap; width:100%; margin-left:0}
  .cls-sel-f{flex:1 1 0; min-width:0}
  .cls-sel-f .cls-sel-in{min-width:0; max-width:none}
  .cls-ag-body{padding:12px}
  .cls-agenda > .cls-none,.cls-ag-next{padding-left:0}
  .cls-box{padding:16px}
  .cls-post{padding:16px}
  /* the tabs share the width in one row (four for a teacher who is a leader), so the hairline runs under all of them */
  .cls-tabs{display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:0}
  .cls-tab{min-width:0; padding:0 4px; font-size:16px}
}
/* four tabs under 360px: two rows of two, each tab with its own hairline (Evaluation at 16px needs about 77px) */
@media(max-width:359px){
  .cls-tabs.cls-tabs4{grid-auto-flow:row; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border-bottom:0}
  .cls-tabs4 .cls-tab{margin:0; box-shadow:inset 0 -1px 0 var(--rule-1)}
  .cls-tabs4 .cls-tab[aria-selected="true"]{box-shadow:inset 0 -2px 0 var(--daybreak)}
}

/* ---------- reduced motion: nothing moves or fades ---------- */
@media (prefers-reduced-motion:reduce){
  .cls-rail-a,.cls-rail-a svg,.cls-tbtn,.cls-card,.cls-tab,.cls-icon-btn,.cls-ag-row{transition:none}
  .cls-card:hover{top:0}
}
