/* =============================================================================
   Vistas curadas — curated teacher hub configurator
   Styles lifted from the Claude Design project 1df15a2a
   ("Curated Hub Configurator.dc.html") and rewritten as vc-* classes on the
   shared design-system tokens. No new colors — everything resolves to /ds/.
   ========================================================================== */

/* Buttons are cards, not pills (--radius-btn); chips, filter toggles, status
   pills and search fields keep their pill shape — things you read or pick,
   not things you press to act. Buttons, chips, fields, cards, modals and the
   toast come from /ds/components.css; what is left here is layout and the
   pieces only this tool has. */

/* ------------------------------------------------------------ animations -- */
@keyframes vcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vcCardIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes vcSpin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- header -- */
.vc-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hb-line);
}
.vc-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; gap: 18px;
}
.vc-logo { height: 42px; width: auto; display: block; }
.vc-divider { width: 1px; height: 26px; background: var(--hb-line); flex: none; }
.vc-appid { display: flex; flex-direction: column; white-space: nowrap; }
.vc-appname { font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.1; }
.vc-appsub { font-size: var(--fs-ui-xs); font-weight: 600; letter-spacing: 0.1em; color: var(--hb-ink-soft); text-transform: uppercase; }
/* Two rows. Top: identity and this screen's primary action. Below: every
   destination in the app, in one strip that scrolls sideways when it's wider
   than the header rather than wrapping onto a third line. */
.vc-header-navbar { border-top: 1px solid var(--hb-line); }
/* The strip's own box, so the edge arrows can be pinned to it — they can't
   live inside the scroller or they'd scroll away with the pills. */
.vc-nav-scroll { position: relative; max-width: 1200px; margin: 0 auto; }
.vc-header-nav {
  display: flex; align-items: center; gap: 4px; padding: 6px 32px;
  overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap;
  scrollbar-width: none;                    /* Firefox */
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.vc-header-nav::-webkit-scrollbar { display: none; }   /* Chrome, Safari */
.vc-header-nav .vc-nav-pill { flex: none; }

/* Edge arrows over a fade. Shown only on a side with more to see — the JS
   toggles has-more-left / has-more-right on .vc-nav-scroll. Faded rather than
   popped so they don't flicker as you scroll past the ends. */
.vc-nav-more {
  position: absolute; top: 0; bottom: 0; z-index: 1; width: 76px;
  display: flex; align-items: center; padding: 0 10px;
  border: 0; cursor: pointer; font: inherit;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s;
}
.vc-nav-more.is-right { right: 0; justify-content: flex-end;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.98) 42%, rgba(255, 255, 255, 0)); }
.vc-nav-more.is-left { left: 0; justify-content: flex-start;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.98) 42%, rgba(255, 255, 255, 0)); }
.vc-nav-scroll.has-more-left .vc-nav-more.is-left,
.vc-nav-scroll.has-more-right .vc-nav-more.is-right { opacity: 1; visibility: visible; pointer-events: auto; }
.vc-nav-more-chip {
  width: 28px; height: 28px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--hb-paper); color: var(--hb-chalkboard);
  border: 1px solid var(--hb-line); box-shadow: 0 1px 3px rgba(54, 53, 53, 0.12);
  transition: background 0.15s, border-color 0.15s;
}
.vc-nav-more:hover .vc-nav-more-chip { background: var(--hb-cloud); border-color: var(--hb-chalkboard); }
.vc-nav-more.is-left .vc-nav-more-chip svg { transform: scaleX(-1); }  /* the set only has ChevronRight */
@media (prefers-reduced-motion: reduce) { .vc-nav-more { transition: none; } }
.vc-nav-sep { flex: none; width: 1px; height: 20px; margin: 0 6px; background: var(--hb-line); }
/* the old tool is a way OUT of this app, so it reads quieter than the tabs */
.vc-nav-pill--out { color: var(--hb-muted); text-decoration: none; font-weight: 500; }
.vc-nav-pill--out:hover { color: var(--hb-chalkboard); }
.vc-nav-pill {
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
  font-weight: 600; font-size: var(--fs-ui-lg); border: 0; border-radius: var(--radius-btn); padding: 8px 15px;
  background: transparent; color: var(--hb-ink-soft); cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background 0.2s;
}
.vc-nav-pill:hover { background: var(--hb-cloud); }
.vc-nav-pill.is-on { background: var(--hb-agave-light); color: var(--hb-chalkboard); }

/* ------------------------------------------------------------------ page -- */
.vc-main { max-width: 1200px; margin: 0 auto; padding: 36px 32px 72px; }
.vc-main--flush { padding-top: 28px; }
.vc-main--narrow { max-width: 720px; padding: 72px 32px 96px; }
/* fill-mode backwards, deliberately: a fill-forwards opacity animation keeps
   the whole <main> a stacking context forever, trapping tooltips underneath
   the sticky header */
.vc-main.is-entering { animation: vcFadeIn 0.3s ease backwards; }
.vc-main--narrow.is-entering { animation: vcFadeIn 0.4s ease backwards; }

.vc-h1 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

.vc-hero-text { flex: 1 1 420px; }

/* ----------------------------------------------------- home (Home.dc) -- */
.vc-home-section { margin-top: -8px; }
.vc-home-h2row { display: flex; align-items: center; gap: 10px; }
.vc-home-h2row h2 { margin: 0; font-size: 1.29rem; font-weight: 700; }
.vc-count-pill.is-muted { color: var(--hb-ink-soft); background: var(--hb-cloud); }

.vc-info { position: relative; display: inline-flex; align-self: center; color: var(--hb-muted); cursor: help; outline: none; }
.vc-info:hover, .vc-info:focus { color: var(--hb-chalkboard); }
.vc-tipbox {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: 250px; padding: 9px 12px; background: var(--hb-chalkboard); color: var(--hb-paper);
  font-size: var(--fs-ui-sm); font-weight: 400; line-height: 1.45; border-radius: var(--radius-btn);
  box-shadow: var(--shadow-drawer); opacity: 0; pointer-events: none;
  transition: opacity 0.15s; z-index: 60; text-wrap: pretty; text-align: left;
}
.vc-info:hover .vc-tipbox, .vc-info:focus .vc-tipbox { opacity: 1; }

.vc-prog-groups { display: flex; flex-direction: column; gap: 22px; margin-top: 14px; }
.vc-prog-group h3 { margin: 0; font-size: 0.98rem; font-weight: 700; }
.vc-prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 10px; }
.vc-prog-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.vc-prog-top { display: flex; align-items: flex-start; gap: 12px; }
.vc-prog-name { flex: 1; min-width: 0; font-weight: 700; font-size: 0.98rem; line-height: 1.3; text-wrap: pretty; align-self: center; }
.vc-prog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vc-prog-count { font-size: var(--fs-ui-md); color: var(--hb-ink-soft); }
.vc-prog-count strong { color: var(--hb-chalkboard); }

.vc-ghost-card { display: flex; align-items: center; gap: 12px; padding: 16px; font-family: inherit; text-align: left; }
.vc-ghost-sq {
  flex: none; width: 42px; height: 42px; border-radius: 9px;
  border: 2px dashed var(--color-border-strong); display: inline-flex;
  align-items: center; justify-content: center; color: var(--hb-muted); box-sizing: border-box;
}
.vc-ghost-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-ui-md); line-height: 1.3; }
.vc-ghost-text .t1 { color: var(--hb-muted); }
.vc-ghost-text .t2 { color: var(--hb-muted); }

.vc-home-districts { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; align-items: start; }
.vc-dist-search { position: relative; margin-top: 14px; }
.vc-dist-glass { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--hb-muted); pointer-events: none; }
.vc-dist-search input {
  width: 100%; box-sizing: border-box; font-family: var(--font-sans); font-size: var(--fs-ui-lg);
  color: var(--hb-chalkboard); background: var(--hb-paper); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill); padding: 11px 16px 11px 40px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vc-dist-search input:focus { border-color: var(--hb-agua); box-shadow: var(--shadow-focus); }

.vc-dist-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.vc-dist-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none;
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur);
}
a.vc-dist-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--hb-chalkboard); }
.vc-dist-row--ghost { border: 1.5px dashed var(--color-border-strong); box-shadow: none; }
.vc-dist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vc-dist-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-dist-name .t { font-weight: 700; font-size: 0.98rem; }
.vc-dist-meta { font-size: var(--fs-ui-md); color: var(--hb-muted); display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.vc-dist-btn { flex: none; }
.vc-dist-btn:hover { background: var(--hb-agua-light); border-color: var(--hb-agua); color: var(--hb-chalkboard); }

.vc-def-list { display: flex; flex-direction: column; margin-top: 14px; }
.vc-def-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--hb-paper); }
.vc-def-row.has-divider { border-top: 1px solid var(--hb-line); }
.vc-def-name { font-weight: 600; font-size: var(--fs-ui-lg); }

.vc-home-hint { margin: 14px 0 0; font-size: var(--fs-ui-lg); color: var(--hb-muted); line-height: 1.6; }
.vc-home-foot { margin-top: 48px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--hb-line); padding-top: 22px; }
.vc-home-foot a { font-size: var(--fs-ui); font-weight: 600; }

/* -------------------------------------------------------- live-mode bits -- */

.vc-gate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 0; }
.vc-gate h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; }
.vc-gate-msg { margin: 0; color: var(--hb-ink-soft); font-size: 0.98rem; line-height: 1.65; max-width: 48ch; }
.vc-gate-demo { margin: 26px 0 0; font-size: var(--fs-ui); }
.vc-google-btn { gap: 10px; }

.vc-newview {
  background: var(--hb-cloud); border-radius: var(--radius-card); padding: 18px;
  text-align: left;
}
.vc-newview .hb-field { background: var(--hb-paper); }
.vc-newview-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ==================================================== detail pages (design) -- */
/* Program.dc.html + District.dc.html: back link, hero (mark + name + meta +
   actions), main/aside grid, add-search dropdown, view rows, empty state,
   "they also get" cards, aside cards (reach / grades / access / activity). */

.vc-backlink {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-ui); font-weight: 600;
  color: var(--hb-ink-soft); background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}
.vc-backlink:hover { color: var(--hb-text-agua); }

.vc-vhero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 18px; }
.vc-vhero-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vc-vhero-titlerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vc-vhero-titlerow h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.vc-vhero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--fs-ui); color: var(--hb-ink-soft); }
.vc-vhero-meta strong { color: var(--hb-chalkboard); }
.vc-vhero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.vc-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 32px; align-items: start; }
@media (max-width: 900px) { .vc-detail-grid { grid-template-columns: 1fr; } }

.vc-sect-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vc-sect-head h2 { margin: 0; font-size: 1.29rem; font-weight: 700; }

.vc-addwrap { position: relative; margin-top: 14px; }
.vc-addwrap .vc-addglass { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--hb-muted); pointer-events: none; }
.vc-addwrap input {
  width: 100%; box-sizing: border-box; font-family: var(--font-sans); font-size: var(--fs-ui-lg);
  color: var(--hb-chalkboard); background: var(--hb-paper); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill); padding: 11px 16px 11px 40px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.vc-addwrap input:focus { border-color: var(--hb-agua); box-shadow: var(--shadow-focus); }
.vc-adddrop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--hb-paper);
  border: 1px solid var(--hb-line); border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
  padding: 6px; display: flex; flex-direction: column; max-height: 360px; overflow: auto;
}
.vc-additem {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font-family: var(--font-sans);
  background: transparent; border: none; border-radius: var(--radius-card); padding: 8px 10px; cursor: pointer; color: var(--hb-chalkboard);
}
.vc-additem:hover { background: var(--hb-agua-light); }
.vc-additem .t { display: block; font-weight: 600; font-size: var(--fs-ui-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-additem .s { display: block; font-size: var(--fs-ui-sm); color: var(--hb-muted); margin-top: 1px; }
.vc-additem .go { flex: none; font-weight: 700; font-size: var(--fs-ui-md); }
.vc-addnew {
  display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-card); padding: 8px 10px; color: var(--hb-chalkboard); cursor: pointer; width: 100%;
  text-align: left; font-family: var(--font-sans); background: var(--hb-paper); transition: background 0.2s, border-color 0.2s;
}
.vc-addnew:hover { background: var(--hb-agua-light); border-color: var(--hb-agua); }
.vc-addnew .sq {
  flex: none; width: 34px; height: 34px; border-radius: var(--radius-btn); border: 1.5px dashed var(--color-border-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--hb-muted);
}

/* the shared bordered row container + row (view items, library list) */
.vc-rowbox { display: flex; flex-direction: column; margin-top: 14px; }
.vc-rrow { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--hb-paper); transition: background 0.2s; }
.vc-rrow.has-divider { border-top: 1px solid var(--hb-line); }
.vc-rrow:hover { background: var(--hov-light, var(--hb-paper)); }
.vc-rrow.is-entering { animation: vcCardIn 0.4s var(--ease-bounce) both; }
.vc-rrow-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vc-rrow-titlerow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vc-rrow-title { font-weight: 600; font-size: var(--fs-ui-lg); line-height: 1.3; text-wrap: pretty; }
.vc-rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-ui-sm); color: var(--hb-muted); }
.vc-rmeta strong { color: var(--hb-chalkboard); }
.vc-ptint-chip { color: var(--hb-chalkboard); }   /* background comes from the program tint, inline */
.vc-syncdot { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-pill); }
.vc-syncdot.is-syncing { background: var(--hb-sol); }
.vc-syncdot.is-synced { background: var(--hb-agave); }
.vc-syncdot.is-error { background: var(--hb-adobe); }

.vc-viewempty .t { font-weight: 700; font-size: 1rem; color: var(--hb-chalkboard); }
.vc-viewempty .s { font-size: var(--fs-ui); color: var(--hb-muted); max-width: 44ch; line-height: 1.5; }
.vc-viewempty .s .mono { font-family: var(--font-mono); font-size: var(--fs-ui-md); }

.vc-alsoget { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.vc-alsoget-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; transition: border-color var(--dur), box-shadow var(--dur); }
.vc-alsoget-card:hover { border-color: var(--hb-agua); box-shadow: var(--shadow-md); color: var(--hb-chalkboard); }
.vc-alsoget-card .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vc-alsoget-card .t { font-weight: 700; font-size: var(--fs-ui-lg); line-height: 1.3; }
.vc-alsoget-card .s { font-size: var(--fs-ui-sm); color: var(--hb-muted); }

.vc-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vc-aside-card { padding: 18px 20px; }
.vc-aside-card .vc-aside-headrow { display: flex; align-items: center; gap: 8px; }
.vc-aside-card h2 { margin: 0; font-size: 1.02rem; font-weight: 700; }

.vc-reachlist { display: flex; flex-direction: column; margin-top: 8px; }
.vc-reachrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hb-line); color: var(--hb-chalkboard); }
.vc-reachrow:hover { color: var(--hb-text-agua); }
.vc-reachrow .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vc-reachrow .t { font-weight: 600; font-size: var(--fs-ui); line-height: 1.3; }
.vc-reachrow .s { font-size: var(--fs-ui-sm); color: var(--hb-muted); }

/* grade toggles — the design's 2px-bordered chips; PreK gets the rainbow border */
.vc-gradebtn {
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-ui-md); border-radius: var(--radius-pill);
  padding: 7px 14px; cursor: pointer; transition: background 0.2s;
  background: var(--hb-paper); border: 2px solid var(--hb-line); color: var(--hb-muted);
}
button.vc-gradebtn:hover { filter: brightness(0.96); }
.vc-gradebtn.is-on { color: var(--hb-chalkboard); }
.vc-gradebtn.is-on.g-K { background: var(--hb-agave-light); border-color: var(--hb-agave); }
.vc-gradebtn.is-on.g-1st { background: var(--hb-sol-light); border-color: var(--hb-sol); }
.vc-gradebtn.is-on.g-2nd { background: var(--hb-petalo-light); border-color: var(--hb-petalo); }
.vc-gradebtn.is-on.g-other { background: var(--hb-cloud); border-color: var(--hb-chalkboard); }
.vc-gradebtn.is-on.g-PreK {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--hb-paper), var(--hb-paper)), conic-gradient(var(--hb-agave) 0 20%, var(--hb-sol) 0 40%, var(--hb-petalo) 0 60%, var(--hb-agua) 0 80%, var(--hb-adobe) 0);
  background-origin: border-box; background-clip: padding-box, border-box;
}
span.vc-gradebtn { cursor: default; }
.vc-gradewrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* programs purchased — the entitlement picker. Same 2px-bordered language as
   the grade chips, but full-width rows grouped under a family heading,
   because which family a program belongs to is the thing grades could not
   say and the reason this picker replaced them. */
.vc-progfam + .vc-progfam { margin-top: 14px; }
.vc-progfam__h {
  display: block; font-family: var(--font-sans); font-weight: 700;
  font-size: var(--fs-ui-sm); color: var(--hb-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.vc-progwrap { display: flex; flex-direction: column; gap: 6px; }

/* group headings inside the access picker — site access vs program views */
.th-pickhead {
  display: block; padding: 8px 12px 4px; font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--hb-muted);
}
.th-pickhead + .vc-additem { border-top: none; }

/* access menu rows: name over tag, icon on the right */
.th-pickrow {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 8px 8px 12px; border: 0; border-radius: 8px;
  background: none; text-align: left; cursor: pointer; font: inherit;
  transition: background 0.15s;
}
.th-pickrow:hover:not([disabled]) { background: var(--hb-cloud); }
.th-pickrow:focus-visible { outline: 2px solid var(--hb-agua); outline-offset: -2px; }
.th-pickrow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.th-pickrow-name {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-ui-md);
  color: var(--hb-chalkboard); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.th-pickrow-grade {
  flex: none; font-size: 0.66rem; font-weight: 700; padding: 1px 6px;
  border-radius: var(--radius-pill); background: var(--hb-cloud); color: var(--hb-muted);
}
.th-pickrow-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem;
  color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* the + / check, boxed like the toolbar icons */
.th-pickrow-icon {
  flex: none; width: 28px; height: 28px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 8px;
  border: 1.5px solid var(--hb-line); color: var(--hb-chalkboard);
  transition: border-color 0.15s, background 0.15s;
}
.th-pickrow:hover:not([disabled]) .th-pickrow-icon { border-color: var(--hb-chalkboard); background: var(--hb-paper); }
.th-pickrow.is-had { cursor: default; }
.th-pickrow.is-had .th-pickrow-name { color: var(--hb-muted); }
.th-pickrow.is-had .th-pickrow-icon { border-color: transparent; background: var(--hb-agave-light); color: var(--hb-text-agave); }
/* Only the hovered row's icon moves. The menu floats on screen but is a DOM
   child of the teacher row, and that row is a [data-ico-host] — so hovering
   anywhere in the menu counted as hovering the row, and hub-icons.css spun
   every + in it at once (`[data-ico-host]:hover .ic-Plus .all`). Freeze all
   icon motion inside the menu, then restore the spin for the one row under
   the pointer. !important because this has to beat a global rule whose
   specificity (attr + :hover + two classes) the reset alone cannot outrank;
   the restore is more specific still, so it wins for that row. A had-row's
   check never moves: nothing to add, nothing to celebrate. */
.th-pickdrop svg * { animation: none !important; }
.th-pickdrop .th-pickrow:hover:not([disabled]) .ic-Plus .all {
  animation: icQuarter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}
.vc-progbtn {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-ui-md);
  border-radius: var(--radius-md); padding: 8px 12px; cursor: pointer;
  transition: background 0.2s; background: var(--hb-paper);
  border: 2px solid var(--hb-line); color: var(--hb-muted);
}
button.vc-progbtn:hover { filter: brightness(0.96); }
span.vc-progbtn { cursor: default; }
.vc-progbtn.is-on { color: var(--hb-chalkboard); }
.vc-progbtn.is-on.g-K { background: var(--hb-agave-light); border-color: var(--hb-agave); }
.vc-progbtn.is-on.g-1st { background: var(--hb-sol-light); border-color: var(--hb-sol); }
.vc-progbtn.is-on.g-2nd { background: var(--hb-petalo-light); border-color: var(--hb-petalo); }
.vc-progbtn.is-on.g-other { background: var(--hb-cloud); border-color: var(--hb-chalkboard); }
.vc-progbtn.is-on.g-PreK {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--hb-paper), var(--hb-paper)), conic-gradient(var(--hb-agave) 0 20%, var(--hb-sol) 0 40%, var(--hb-petalo) 0 60%, var(--hb-agua) 0 80%, var(--hb-adobe) 0);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.vc-progbtn__g {
  flex: none; min-width: 34px; text-align: center;
  font-size: var(--fs-ui-sm); font-weight: 700; padding: 2px 6px;
  border-radius: var(--radius-pill); background: var(--hb-cloud); color: var(--hb-chalkboard);
}
.vc-progbtn.is-on .vc-progbtn__g { background: var(--hb-paper); }

/* a district whose entitlement is still inferred from grades */
.vc-proginfer {
  background: var(--hb-cloud); border-radius: var(--radius-md);
  padding: 10px 12px; margin-bottom: 14px;
}
.vc-proginfer p {
  margin: 0 0 8px; font-size: var(--fs-ui-sm); color: var(--hb-muted); line-height: 1.45;
}
.vc-proginfer p:last-child { margin-bottom: 0; }

/* teacher access: domain chips + add row + stat tiles */
.vc-domchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vc-domchip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: var(--fs-ui-md); background: var(--hb-agua-light); border-radius: var(--radius-pill); padding: 4px 6px 4px 11px; color: var(--hb-chalkboard);
}
.vc-domchip button {
  width: 18px; height: 18px; border-radius: var(--radius-pill); border: none; background: rgba(255, 255, 255, 0.7);
  color: var(--hb-ink-soft); cursor: pointer; font-size: var(--fs-ui-md); line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.vc-domadd { display: flex; gap: 8px; margin-top: 12px; }
.vc-domadd input {
  flex: 1; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-ui);
  color: var(--hb-chalkboard); background: var(--hb-paper); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill); padding: 8px 14px; outline: none;
}
.vc-domadd input:focus { border-color: var(--hb-agua); box-shadow: var(--shadow-focus); }
.vc-domadd button {
  flex: none; font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-ui-md); border-radius: var(--radius-btn);
  padding: 8px 14px; border: 1px solid var(--hb-line); background: var(--hb-paper); color: var(--hb-chalkboard);
  cursor: pointer; transition: background 0.2s;
}
.vc-domadd button:hover { background: var(--hb-agua-light); border-color: var(--hb-agua); }
.vc-stat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.vc-stat2 span.tile { display: flex; flex-direction: column; gap: 2px; background: var(--hb-cloud); border-radius: var(--radius-card); padding: 12px 14px; }
.vc-stat2 strong { font-size: 1.3rem; line-height: 1; }
.vc-stat2 .l { font-size: var(--fs-ui-sm); color: var(--hb-ink-soft); }
.vc-asidelink { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: var(--fs-ui); font-weight: 600; }

.vc-actlist { display: flex; flex-direction: column; margin-top: 6px; }
.vc-actrow { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hb-line); font-size: var(--fs-ui); line-height: 1.5; }
.vc-actrow .w { flex: 1; }
.vc-actrow .t { flex: none; font-size: var(--fs-ui-sm); color: var(--hb-muted); white-space: nowrap; }
.vc-actquiet { margin: 8px 0 0; font-size: var(--fs-ui); color: var(--hb-muted); line-height: 1.5; }

.vc-home-foot p { margin: 0; font-size: var(--fs-ui); color: var(--hb-muted); line-height: 1.6; }

/* ======================================================== library (design) -- */
.vc-lib-headrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vc-lib-headrow h2 { margin: 0; font-size: 1.29rem; font-weight: 700; }

.vc-lay { display: flex; align-items: center; gap: 4px; background: var(--hb-cloud); border-radius: var(--radius-btn); padding: 4px; }
.vc-lay-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px;
  border: none; border-radius: var(--radius-btn-sm); cursor: pointer; transition: background 0.2s, color 0.2s;
  background: transparent; color: var(--hb-ink-soft);
}
.vc-lay-btn:hover { filter: brightness(0.95); }
.vc-lay-btn.is-on { background: var(--hb-chalkboard); color: var(--hb-paper); }

.vc-rangeseg { display: flex; align-items: center; gap: 4px; background: var(--hb-cloud); border-radius: var(--radius-btn); padding: 4px; }
.vc-range-btn {
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-ui-md); border: none; border-radius: var(--radius-btn-sm);
  padding: 6px 12px; cursor: pointer; transition: background 0.2s, color 0.2s; background: transparent; color: var(--hb-ink-soft);
}
.vc-range-btn:hover { filter: brightness(0.95); }
.vc-range-btn.is-on { background: var(--hb-chalkboard); color: var(--hb-paper); }

.vc-fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.vc-fchip-sub { font-weight: 400; opacity: 0.75; }

.vc-rgroups { display: flex; flex-direction: column; gap: 30px; margin-top: 30px; }
.vc-rgroup-head { display: flex; align-items: center; gap: 10px; }
.vc-rgroup-head h2 { margin: 0; font-size: 1.29rem; font-weight: 700; }
.vc-rgroup .vc-rowbox, .vc-rgroup .vc-rcards { margin-top: 12px; }

.vc-rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
/* 1b cards: the framed thumbnail IS the card's top — borderless card,
   tint fill on hover, grade chip overlaid on the picture */
.vc-rcard {
  display: flex; flex-direction: column; gap: 10px; padding: 6px 6px 12px;
  border-radius: var(--radius-card); background: var(--hb-paper); transition: background 0.2s, transform 0.25s var(--ease-bounce);
}
.vc-rcard:hover { background: var(--hov-light); transform: translateY(-2px); }
.vc-rcard.is-entering { animation: vcCardIn 0.4s var(--ease-bounce) both; }
.vc-rcard-art { position: relative; display: block; }
.vc-rcard-gradechip { position: absolute; right: 8px; top: 8px; display: inline-flex; pointer-events: none; }
.vc-rcard-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
.vc-rcard-title { font-weight: 700; font-size: var(--fs-ui-lg); line-height: 1.3; text-wrap: pretty; }
.vc-rcard-desc { font-size: var(--fs-ui-sm); color: var(--hb-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-rcard-pad { padding: 0 8px; }
.vc-rcard-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 0 8px; }
.vc-rcard-upd { flex: 1; font-size: var(--fs-ui-sm); color: var(--hb-muted); }

.vc-editbtn { flex: none; }
.vc-editbtn:hover { background: var(--hb-agave-light); border-color: var(--hb-agave); }

.vc-createrow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font-family: var(--font-sans); padding: 14px 16px; }
.vc-createrow .sq {
  flex: none; width: 42px; height: 42px; border-radius: var(--radius-card); border: 1.5px dashed var(--color-border-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--hb-muted);
}
.vc-createrow .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vc-createrow .t { font-weight: 700; font-size: 0.95rem; }
.vc-createrow .s { font-size: var(--fs-ui-md); color: var(--hb-muted); }
.vc-createrow .go { flex: none; font-weight: 700; font-size: var(--fs-ui-md); }

/* ================================================= modal insides (design 580/460) -- */
.vc-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.vc-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.vc-label { display: block; font-size: var(--fs-ui); font-weight: 600; margin-bottom: 6px; color: var(--hb-chalkboard); }
.vc-gpick { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-gpick .vc-gradebtn { font-size: var(--fs-ui-md); }
.vc-upload {
  display: block; width: 100%; box-sizing: border-box; font-family: var(--font-sans); font-size: var(--fs-ui); font-weight: 600;
  padding: 14px; border-radius: var(--radius-card); cursor: pointer; text-align: center; transition: background 0.2s;
  border: 1.5px dashed var(--color-border-strong); background: var(--hb-paper); color: var(--hb-ink-soft);
}
.vc-upload.is-on { border: 1.5px solid var(--hb-agave); background: var(--hb-agave-light); color: var(--hb-chalkboard); }
.vc-upload.is-busy { border-style: solid; border-color: var(--hb-sol); background: var(--hb-sol-light); color: var(--hb-chalkboard); }
.vc-upload.is-err { border: 1.5px solid var(--hb-adobe); background: var(--hb-adobe-light); color: var(--hb-text-adobe); }
.vc-dellink { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-ui); font-weight: 600; color: var(--hb-text-adobe); cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.vc-dellink:hover { text-decoration: underline; color: var(--hb-text-adobe); }
.vc-appears { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px; border: 1px solid var(--hb-line); border-radius: var(--radius-card); background: var(--hb-paper); }
.vc-appears .m { flex: 1; min-width: 0; }
.vc-appears .l { display: block; font-size: var(--fs-ui-md); color: var(--hb-muted); }
.vc-appears .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vc-appears .mono { font-family: var(--font-mono); font-size: var(--fs-ui-xs); background: var(--hb-paper); border: 1px solid var(--hb-line); border-radius: var(--radius-xs); padding: 2px 7px; white-space: nowrap; }
.vc-pubcheck { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--hb-line); border-radius: var(--radius-card); padding: 10px 14px; cursor: pointer; }
.vc-pubcheck input { width: 18px; height: 18px; accent-color: var(--hb-agave-ink); flex: none; }
.vc-pubcheck .t { font-size: var(--fs-ui); font-weight: 600; }
.vc-pubcheck .s { display: block; font-weight: 400; font-size: var(--fs-ui-md); color: var(--hb-muted); }
.vc-tagwarn { margin: 0; font-size: var(--fs-ui); font-weight: 500; color: var(--hb-chalkboard); background: var(--hb-sol-light); padding: 10px 14px; border-radius: var(--radius-btn-sm); line-height: 1.5; }
.vc-form-note { margin: 0; font-size: var(--fs-ui-md); color: var(--hb-muted); line-height: 1.5; }
.vc-form-note code { font-family: var(--font-mono); font-size: var(--fs-ui-sm); background: var(--hb-cloud); border-radius: var(--radius-xs); padding: 1px 5px; }

/* confirm delete */
.vc-confirm-head { display: flex; align-items: flex-start; gap: 14px; }
.vc-confirm-bang { flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--hb-adobe-light); color: var(--hb-text-adobe); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.vc-confirm-head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.vc-confirm-head p { margin: 8px 0 0; font-size: var(--fs-ui-lg); color: var(--hb-ink-soft); line-height: 1.6; }
.vc-confirm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0 54px; }
.vc-confirm-chips .mono { font-family: var(--font-mono); font-size: var(--fs-ui-xs); background: var(--hb-cloud); border: 1px solid var(--hb-line); border-radius: var(--radius-xs); padding: 2px 7px; white-space: nowrap; }

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1000px) {
  .vc-header-top { flex-wrap: wrap; row-gap: 6px; }
}
@media (max-width: 640px) {
  .vc-header-inner { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .vc-header-top { padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; row-gap: 4px; }
  .vc-header-nav { padding-left: 16px; padding-right: 16px; }
  .vc-nav-more { width: 56px; padding: 0 6px; }
  .vc-logo { height: 32px; }
  .vc-divider { display: none; }
  .vc-appname { font-size: 1.25rem; }
  .vc-proto-chip .txt { display: none; }
  .vc-main, .vc-main--narrow { padding-left: 16px; padding-right: 16px; }
}

/* the view list's type sections + its layout toggle in the section head */
.vc-sect-head .hb-spacer { flex: 1; }
.vc-sect-head .vc-lay { align-self: center; }
.vc-detail-grid .vc-rgroup { margin-top: 20px; }
.vc-detail-grid .vc-rgroup:first-of-type { margin-top: 14px; }
.vc-detail-grid .vc-rgroup .vc-rowbox, .vc-detail-grid .vc-rgroup .vc-rcards { margin-top: 10px; }
.vc-detail-grid .vc-rgroup-head h2 { font-size: 0.98rem; }

/* ============================================== Style settings (design) -- */
.vc-ss { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .vc-ss { grid-template-columns: 1fr; } .vc-ss-aside { position: static; } }
.vc-ss-left { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.vc-ss h1 { margin: 0; font-weight: 400; font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; }
.vc-ss-sub { margin: 0; font-size: 0.95rem; color: var(--hb-ink-soft); max-width: 60ch; text-wrap: pretty; }
.vc-ss-section { display: flex; flex-direction: column; gap: 14px; }
.vc-ss-headrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vc-ss-headrow h2 { margin: 0; font-weight: 600; font-size: 1.05rem; }
.vc-ss-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.vc-ss-cards--combo { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.vc-opt {
  font-family: var(--font-sans); color: var(--hb-chalkboard); text-align: left; border-radius: var(--radius-card);
  padding: 13px 15px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: var(--hb-paper); cursor: pointer; border: 1px solid var(--hb-line);
  transition: transform 0.22s var(--ease-bounce), box-shadow 0.22s;
}
.vc-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vc-opt.is-on { border: 2px solid var(--hb-agave); background: var(--hb-agave-light); padding: 12px 14px; }
.vc-opt-toprow { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.vc-opt-name { font-weight: 600; font-size: var(--fs-ui-lg); }
.vc-opt-check {
  flex: none; width: 18px; height: 18px; border-radius: var(--radius-pill); display: inline-flex; align-items: center;
  justify-content: center; font-size: var(--fs-ui-xs); font-weight: 700; color: var(--hb-paper); background: var(--hb-text-agave); opacity: 0;
}
.vc-opt-check.is-on { opacity: 1; }
.vc-opt-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.vc-swatch { font-size: var(--fs-ui-xs); font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); border: 2px solid transparent; }
.vc-opt-desc { font-size: var(--fs-ui-md); color: var(--hb-ink-soft); line-height: 1.4; }

.vc-ss-iconrows { display: flex; flex-direction: column; border: 1px solid var(--hb-line); border-radius: var(--radius-card); overflow: hidden; }
.vc-ss-iconrow { display: flex; align-items: center; gap: 16px; padding: 10px 14px; flex-wrap: wrap; background: var(--hb-paper); }
.vc-ss-iconrow.has-divider { border-top: 1px solid var(--hb-line); }
.vc-ss-iconrow .label { font-weight: 600; font-size: var(--fs-ui); flex: 1 1 160px; min-width: 0; }
.vc-ss-iconrow .picks { display: flex; gap: 6px; }
.vc-ipick {
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-sizing: border-box; transition: background 0.2s; font-family: inherit;
  color: var(--hb-ink-soft); background: transparent; border: 2px solid transparent;
}
.vc-ipick:hover { background: var(--hb-cloud); }
.vc-ipick.is-on { background: var(--hb-paper); }

.vc-ss-lockrow { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--hb-line); border-radius: var(--radius-card); flex-wrap: wrap; }
.vc-ss-locked { font-size: var(--fs-ui-xs); font-weight: 600; letter-spacing: 0.06em; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--hb-agave-light); }
.vc-ss-resetrow { display: flex; gap: 12px; align-items: center; padding-top: 8px; border-top: 1px solid var(--hb-line); }
.vc-ss-status { font-size: var(--fs-ui-md); color: var(--hb-ink-soft); }

/* the Admin page reuses every .vc-ss-* inner style, minus the sticky aside */
.vc-ss--solo { grid-template-columns: minmax(0, 1fr); }

/* one team-wide switch: copy on the left, the control and its word on the right */
.vc-ad-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 18px 20px; border: 1px solid var(--hb-line); border-radius: var(--radius-card); background: var(--hb-paper); }
.vc-ad-row.is-off { background: var(--hb-cloud-soft); }
.vc-ad-copy { display: flex; flex-direction: column; gap: 8px; flex: 1 1 320px; min-width: 0; }
.vc-ad-name { font-weight: 600; font-size: var(--fs-ui); }
.vc-ad-desc { font-size: var(--fs-ui-sm); color: var(--hb-ink-soft); max-width: 62ch; text-wrap: pretty; }
.vc-ad-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0; }
.vc-ad-tag { display: inline-flex; align-items: center; gap: 7px; }
.vc-ad-count { font-size: var(--fs-ui-xs); color: var(--hb-muted); white-space: nowrap; }
.vc-ad-note { font-size: var(--fs-ui-sm); color: var(--hb-muted); max-width: 62ch; text-wrap: pretty;
  border-left: 2px solid var(--hb-line); padding-left: 10px; }
.vc-ad-ctl { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding-top: 2px; }
.vc-ad-state { font-size: var(--fs-ui-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--hb-muted); min-width: 4.5ch; }
.vc-ad-state.is-on { color: var(--hb-agua-ink); }

.vc-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; padding: 0; cursor: pointer;
  border: 1px solid var(--hb-line); border-radius: var(--radius-pill); background: var(--hb-cloud);
  transition: background 140ms ease, border-color 140ms ease; }
.vc-switch:hover { border-color: var(--hb-muted); }
.vc-switch:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vc-switch.is-on { background: var(--hb-agua); border-color: var(--hb-agua-ink); }
.vc-switch[disabled] { opacity: 0.5; cursor: default; }
.vc-switch-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--hb-paper); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22); transition: transform 140ms ease; }
.vc-switch.is-on .vc-switch-knob { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .vc-switch, .vc-switch-knob { transition: none; } }

.vc-ss-aside { position: sticky; top: calc(var(--vc-header-h, 112px) + 24px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vc-ss-aside .lbl { font-size: var(--fs-ui-xs); font-weight: 600; letter-spacing: 0.1em; color: var(--hb-ink-soft); }
.vc-ss-prevbox { border: 1px solid var(--hb-line); border-radius: var(--radius-card); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--hb-paper); }
.vc-ss-prevrow { display: flex; align-items: center; gap: 12px; padding: 8px 6px; }
.vc-ss-prevrow.has-divider { border-top: 1px solid var(--hb-line); }
.vc-ss-prevrow .t { font-weight: 600; font-size: var(--fs-ui); line-height: 1.3; }
.vc-ss-prevrow .s { font-size: var(--fs-ui-sm); color: var(--hb-ink-soft); }
.vc-ss-prevcards { border: 1px solid var(--hb-line); border-radius: var(--radius-card); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--hb-paper); }
.vc-ss-alltypes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================ Teacher Hub -- */
/* Design bcef1940 (Teacher Hub.dc.html): the access side of Mi Salón. th-*
   classes; every color still resolves to /ds/ tokens or the HubMarks palette. */

/* --- the shared account row (AccountList) --- */
.th-box { display: flex; flex-direction: column; }
.th-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--hb-paper); min-height: 56px; }

/* the whole row is the hit target when a list is selectable; the controls
   inside it keep their own cursor and their own click */
.th-row.is-selectable { cursor: pointer; }
.th-row.is-selectable:hover { background: var(--hb-cloud); }
.th-row.is-selectable button,
.th-row.is-selectable a,
.th-row.is-selectable label { cursor: auto; }
.th-row.is-selectable button,
.th-row.is-selectable a { cursor: pointer; }
.th-row.has-divider { border-top: 1px solid var(--hb-line); }
.th-row.th-head { min-height: 0; padding: 9px 14px; background: var(--hb-cloud); font-size: var(--fs-ui-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--hb-muted); }
.th-row.th-head .th-who, .th-row.th-head .th-chips, .th-row.th-head .th-district, .th-row.th-head .th-domcount, .th-row.th-head .th-rowbar { font-size: var(--fs-ui-xs); font-weight: 600; color: var(--hb-muted); display: flex; }
.th-dstatus.is-head { background: transparent; padding: 0; color: var(--hb-muted); flex: 0 0 112px; }
/* sortable header cells (TableSort) */
.th-sortcell { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: var(--fs-ui-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--hb-muted); background: none; border: 0; padding: 0; text-align: left; white-space: nowrap; }
.th-sortcell.is-sortable { cursor: pointer; border-radius: 6px; margin: -2px -6px; padding: 2px 6px; transition: background 0.2s, color 0.2s; }
.th-sortcell.is-sortable:hover { color: var(--hb-chalkboard); background: rgba(54, 53, 53, 0.06); }
.th-sortcell.is-on { color: var(--hb-chalkboard); }
.th-sortarrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; opacity: 0.25; }
.th-sortcell:hover .th-sortarrow { opacity: 0.6; }
.th-sortarrow.is-asc { opacity: 1; }
.th-sortarrow.is-desc { opacity: 1; border-bottom: 0; border-top: 5px solid currentColor; }
.th-row.is-adobe { background: var(--hb-adobe-light); }
.th-check { flex: none; display: inline-flex; }
.th-check input { width: 16px; height: 16px; accent-color: var(--hb-agave-ink); cursor: pointer; margin: 0; }
.th-who { flex: 1 1 190px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.th-name { font-weight: 600; font-size: var(--fs-ui-lg); line-height: 1.25; }
.th-email { font-size: var(--fs-ui-sm); color: var(--hb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.th-email { color: var(--hb-muted); text-decoration: none; } a.th-email:hover { color: var(--hb-text-agua); }
.th-sub { font-size: var(--fs-ui-sm); color: var(--hb-muted); line-height: 1.35; }
.th-flagchip { align-self: flex-start; margin-top: 3px; }
.th-district { flex: 0 0 168px; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-ui); font-weight: 600; }
.th-district-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.th-district { color: var(--hb-chalkboard); text-decoration: none; border-radius: var(--radius-btn); margin: -4px; padding: 4px; transition: background 0.2s; }
a.th-district:hover { background: var(--hb-agua-light); color: var(--hb-chalkboard); }
a.th-district:hover .th-district-name { text-decoration: underline; text-underline-offset: 3px; }
.th-chips { flex: 1 1 200px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.th-chips--wrap { max-width: 330px; }
.th-chips--row { flex: none; margin: 3px 0 4px; }
.th-nochip { color: var(--hb-muted); padding: 3px 9px; }
/* aqua, the same ink-on-light pairing every other chip uses — loud enough to
   pick a legacy tier out of a row of program chips at a glance, quiet enough
   that it doesn't read as a warning the way .th-badtag does */
.th-legacychip { font-family: var(--font-mono); font-size: var(--fs-ui-xs); font-weight: 600; color: var(--hb-agua-ink); background: var(--hb-agua-light); border-radius: var(--radius-pill); padding: 3px 8px; white-space: nowrap; }
.th-badtag { font-family: var(--font-mono); font-size: var(--fs-ui-xs); font-weight: 600; color: var(--hb-adobe-ink); background: var(--hb-adobe-light); border-radius: var(--radius-pill); padding: 3px 8px; white-space: nowrap; }
.th-status { flex: 0 0 112px; justify-content: center; }
.th-status.is-agave { background: var(--hb-agave-light); color: var(--hb-agave-ink); }
.th-status.is-sol { background: var(--hb-sol-light); color: var(--hb-sol-ink); }
.th-status.is-adobe { background: var(--hb-adobe-light); color: var(--hb-adobe-ink); }
.th-status.is-petalo { background: var(--hb-petalo-light); color: var(--hb-petalo-ink); }
.th-status.is-muted { background: var(--hb-cloud); color: var(--hb-ink-soft); }
.th-status.is-head { background: transparent; text-align: left; padding: 0; }
.th-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; min-width: 96px; }
.th-foot { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid var(--hb-line); }
.th-foot-count { font-size: var(--fs-ui-sm); color: var(--hb-muted); }

.th-minibtn.is-dashed { border-style: dashed; color: var(--hb-ink-soft); }
/* + Access… as a ghost chip: the same size and pill shape as the chips it
   sits beside (.th-legacychip), with a dashed outline and no fill so it
   reads as "add one more", not as access the teacher already holds. */
.th-ghostchip {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-family: var(--font-sans); font-size: var(--fs-ui-xs); font-weight: 600;
  line-height: 1.4; padding: 2px 9px; border-radius: var(--radius-pill);
  border: 1px dashed var(--color-border-strong); background: transparent;
  color: var(--hb-muted); cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.th-ghostchip:hover, .th-ghostchip[aria-expanded="true"] {
  color: var(--hb-chalkboard); border-color: var(--hb-chalkboard); border-style: solid; background: var(--hb-paper);
}
.th-ghostchip:focus-visible { outline: 2px solid var(--hb-agua); outline-offset: 2px; }
.th-linkbtn { font-size: var(--fs-ui-md); text-decoration: underline; text-underline-offset: 3px; }
.th-trash { flex: none; width: 28px; height: 28px; border-radius: var(--radius-btn-sm); border: 0; background: var(--hb-adobe-light); color: var(--hb-text-adobe); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.th-trash:hover { filter: brightness(0.96); }
.th-trash[disabled] { opacity: 0.5; cursor: default; }
.th-quiet { font-size: var(--fs-ui-sm); color: var(--hb-muted); }
.th-red { color: var(--hb-text-adobe); font-weight: 600; }
.th-petalo { color: var(--hb-text-petalo); font-weight: 600; }
.th-mono { font-family: var(--font-mono); font-size: var(--fs-ui); font-weight: 600; letter-spacing: -0.01em; }
.th-code { font-family: var(--font-mono); font-size: var(--fs-ui-sm); background: var(--hb-cloud); border-radius: var(--radius-xs); padding: 1px 5px; }

/* access bar: the thin progress every district row wears */
.th-bar { display: inline-block; width: 92px; max-width: 100%; height: 6px; border-radius: var(--radius-pill); background: var(--hb-cloud); overflow: hidden; flex: none; }
.th-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--hb-sol); }
.th-bar.is-agave i { background: var(--hb-agave); }
.th-bar.is-muted i { background: var(--color-border-strong); }
.th-rowbar { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.th-rowbar .vc-dist-meta { display: inline; }
.th-rowbar--fixed { flex: 0 0 150px; flex-wrap: nowrap; }
.th-rowbar--fixed .th-bar { width: 70px; }
.th-cov { font-size: var(--fs-ui-md); white-space: nowrap; }
.th-domcount { flex: 0 0 82px; font-size: var(--fs-ui-md); color: var(--hb-muted); } .th-domcount strong { color: var(--hb-chalkboard); }

/* filter chips: the design's rows with a label in front */
.th-fchips { margin-top: 12px; }
.th-fchips--tight { margin-top: 10px; gap: 6px; }
.th-fchips-label { font-size: var(--fs-ui-sm); color: var(--hb-muted); margin-right: 4px; white-space: nowrap; }
.th-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: var(--fs-ui-md); }
.th-fdot { width: 7px; height: 7px; border-radius: var(--radius-pill); display: inline-block; flex: none; }
.th-fbadge { font-size: var(--fs-ui-xs); font-weight: 700; color: var(--hb-adobe-ink); background: var(--hb-adobe-light); border-radius: var(--radius-pill); padding: 1px 7px; }
.th-sort { width: auto; padding: 7px 30px 7px 12px; font-size: var(--fs-ui-md); border-radius: var(--radius-pill); }
/* Program access filter: same select as the sort, and it reads as ON when a
   program is chosen — the dark chip used to say that, so something has to. */
.th-progfilter { max-width: 260px; }
.th-progfilter.is-active { border-color: var(--hb-chalkboard); background: var(--hb-cloud); font-weight: 600; }

/* selection bar */
.th-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; padding: 12px 16px; background: var(--hb-agave-light); border-radius: var(--radius-card); font-size: var(--fs-ui); }
.th-bulk-label { font-size: var(--fs-ui-md); color: var(--hb-ink-soft); }
.th-grantchip {
  display: inline-flex; align-items: center; font-family: var(--font-sans); font-size: var(--fs-ui-sm); font-weight: 600; white-space: nowrap;
  border: 1.5px dashed var(--color-border-strong); border-radius: var(--radius-btn-sm); padding: 4px 10px; background: var(--hb-paper); cursor: pointer; transition: background 0.2s;
}
.th-grantchip:hover { background: var(--hb-cloud); }
.th-grantchip[disabled] { opacity: 0.5; cursor: default; }
.th-grantchip.is-solid { border-style: solid; color: var(--hb-chalkboard); }

/* whole-district grants in the aside */
.th-aside-note { margin: 14px 0 0; font-size: var(--fs-ui-md); font-weight: 600; line-height: 1.4; }
.th-grants { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
/* background comes from the program tint, inline */
.th-grantbtn { gap: 7px; }
.th-grantbtn.is-done { cursor: default; color: var(--hb-ink-soft); }

/* Home: domains not in a district */
.th-home-ungrouped { margin-top: 40px; }
.th-sect-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.th-selcount { font-size: var(--fs-ui-md); color: var(--hb-ink-soft); }
.th-domrow.is-picked { background: var(--hb-agave-pale); }
.th-indrow { background: var(--hb-petalo-light); color: var(--hb-chalkboard); text-decoration: none; }
.th-indrow:hover { filter: brightness(0.98); color: var(--hb-chalkboard); }
.th-navbadge { font-size: var(--fs-ui-xs); font-weight: 700; color: var(--hb-adobe-ink); background: var(--hb-adobe-light); border-radius: var(--radius-pill); padding: 1px 6px; margin-left: 2px; }

/* Districts directory: the status column + a row that is a link */
.th-dstatus { flex: 0 0 auto; }
.th-dstatus.is-curated { background: var(--hb-agave-light); color: var(--hb-agave-ink); }
.th-dstatus.is-default { background: var(--hb-cloud); color: var(--hb-ink-soft); }
.th-dstatus.is-none { background: var(--hb-sol-light); color: var(--hb-sol-ink); }
a.th-distrow { color: var(--hb-chalkboard); text-decoration: none; }
a.th-distrow:hover { background: var(--hb-agave-pale); color: var(--hb-chalkboard); }
a.th-distrow .th-check { width: 16px; }

/* the district page hero on the Teacher Hub pages */
.th-narrow { max-width: 900px; margin: 0 auto; }
.th-hero { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.th-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.th-eyebrow { font-size: var(--fs-ui-xs); font-weight: 700; letter-spacing: 0.12em; color: var(--hb-ink-soft); }
.th-hero-sub { margin: 4px 0 0; font-size: var(--fs-ui-lg); color: var(--hb-ink-soft); line-height: 1.55; max-width: 62ch; }
.th-herosq { flex: none; width: 56px; height: 56px; border-radius: var(--radius-card); background: var(--hb-agave-light); border: 1.5px solid var(--hb-agave); color: var(--hb-text-agave); display: inline-flex; align-items: center; justify-content: center; }

/* provision page */
.th-steps { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.th-step { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-ui); color: var(--hb-muted); }
.th-step i { width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--hb-cloud); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: var(--fs-ui-sm); font-weight: 700; color: var(--hb-chalkboard); }
.th-step.is-on i { background: var(--hb-agave); }
.th-step.is-now { color: var(--hb-chalkboard); font-weight: 600; }
.th-prov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 760px) { .th-prov-grid { grid-template-columns: 1fr; } }
.th-card { padding: 18px 20px; }
.th-card h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.th-card .hb-modal-sub { margin-bottom: 10px; }
.th-emails { min-height: 120px; background: var(--hb-cloud); font-size: var(--fs-ui); line-height: 1.7; }
.th-progpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
.th-progpick--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* the legacy tiers at the end of every picker: aqua, and visibly a group of
   their own so nobody reaches for one by accident */
.th-progcard.is-legacy { border-style: dashed; }
/* .vc-additem's base is `border: none`, so border-style alone would resolve to
   a 3px `medium` currentColor rule — width and color have to be stated */
.vc-additem.is-legacy { border: 1.5px dashed var(--hb-agua); }
.th-progcard.is-legacy .s, .vc-additem.is-legacy .s { font-family: var(--font-mono); font-size: var(--fs-ui-xs); }
.vc-additem.is-legacy:hover { background: var(--hb-agua-light); }
.th-grantchip.is-legacy { font-family: var(--font-mono); font-size: var(--fs-ui-xs); color: var(--hb-agua-ink); }
.th-legacyflag { flex: none; font-size: var(--fs-ui-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--hb-agua-ink); background: var(--hb-agua-light); border-radius: var(--radius-pill); padding: 3px 9px; white-space: nowrap; }

.th-progcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--hb-line); border-radius: var(--radius-card); background: var(--hb-paper); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.th-progcard:hover { border-color: var(--color-border-strong); }
.th-progcard input { width: 16px; height: 16px; accent-color: var(--hb-agave-ink); flex: none; margin: 0; }
.th-progcard .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.th-progcard .t { font-weight: 700; font-size: var(--fs-ui); line-height: 1.2; text-wrap: pretty; }
.th-progcard .s { font-family: var(--font-mono); font-size: var(--fs-ui-xs); color: var(--hb-muted); }
.th-plan { position: sticky; top: calc(var(--vc-header-h, 112px) + 24px); display: flex; flex-direction: column; }
.th-planlist { display: flex; flex-direction: column; }
.th-planrow { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--hb-line); }
.th-planrow .th-mono { font-size: var(--fs-ui-sm); overflow-wrap: anywhere; }
.th-planline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-planchip { font-size: var(--fs-ui-xs); font-weight: 600; border-radius: 6px; padding: 2px 7px; white-space: nowrap; color: var(--hb-chalkboard); }
.th-planchip.is-agua { background: var(--hb-agua-light); } .th-planchip.is-agave { background: var(--hb-agave-light); }
.th-planchip.is-muted { background: var(--hb-cloud); color: var(--hb-ink-soft); } .th-planchip.is-adobe { background: var(--hb-adobe-light); color: var(--hb-adobe-ink); }
.th-plansum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.th-runbtn { margin-top: 16px; width: 100%; padding: 12px 18px; }
.th-done { text-align: center; padding: 30px 24px; }
.th-done h3 { font-size: 1.4rem; }
.th-donetiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 6px; }
.th-donetiles .tile { display: flex; flex-direction: column; gap: 2px; background: var(--hb-agave-light); border-radius: var(--radius-card); padding: 12px 22px; min-width: 110px; }
.th-donetiles strong { font-size: 1.4rem; line-height: 1; } .th-donetiles .l { font-size: var(--fs-ui-sm); color: var(--hb-ink-soft); }

/* auto-tag */
.th-rulehead .th-who { flex-basis: 150px; }
.th-rulerow.is-saved { background: var(--hb-agave-pale); }
.th-savedtag { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-sans); font-size: var(--fs-ui-xs); font-weight: 600; color: var(--hb-text-agave); margin-left: 4px; }
.th-grouphead { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--hb-cloud); border-top: 1px solid var(--hb-line); }
.th-pendrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-top: 10px; border: 1.5px dashed var(--hb-sol); border-radius: var(--radius-card); background: var(--hb-paper); animation: vcCardIn 0.3s var(--ease-bounce) both; }
.th-pendrow.is-err { border-color: var(--hb-text-adobe); background: var(--hb-adobe-light); }
.th-newrule { font-size: var(--fs-ui-2xs); font-weight: 700; letter-spacing: 0.08em; color: var(--hb-sol-ink); background: var(--hb-sol-light); border-radius: var(--radius-xs); padding: 2px 6px; margin-left: 6px; vertical-align: middle; font-family: var(--font-sans); }
.th-penderr { width: 100%; font-size: var(--fs-ui-md); font-weight: 600; color: var(--hb-adobe-ink); }
.th-addrule-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.th-domain-in { position: relative; flex: 0 1 300px; display: flex; }
.th-domain-in .at { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--hb-muted); font-family: var(--font-mono); font-size: var(--fs-ui); }
.th-domain-in input { padding-left: 26px; background: var(--hb-cloud); border-radius: var(--radius-pill); font-size: var(--fs-ui); }
.th-addrule-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.th-livedot { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-ui-sm); font-weight: 600; }
.th-livedot::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--hb-muted); }
.th-livedot.is-live { color: var(--hb-text-agave); } .th-livedot.is-live::before { background: var(--hb-text-agave); }
.th-livedot.is-off { color: var(--hb-text-adobe); } .th-livedot.is-off::before { background: var(--hb-text-adobe); }
.vc-live-chip.is-off { background: var(--hb-adobe-light); color: var(--hb-adobe-ink); }
.th-matchrow { display: flex; flex-direction: column; gap: 5px; padding: 9px 0; border-bottom: 1px solid var(--hb-line); }
.th-matchrow .th-mono { font-size: var(--fs-ui-sm); }
.th-matchrow .th-chips { flex-basis: auto; }

/* fix dialog, remove-tag dialog */
.th-fix-desc { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: var(--fs-ui); color: var(--hb-ink-soft); line-height: 1.5; }
.th-fix-desc .th-fdot { margin-top: 7px; }
.th-fixlist { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.th-fixopt { display: flex; flex-direction: column; gap: 2px; text-align: left; font-family: var(--font-sans); padding: 10px 14px; border: 1.5px solid var(--hb-line); border-radius: var(--radius-card); background: var(--hb-paper); cursor: pointer; color: var(--hb-chalkboard); transition: background 0.2s, border-color 0.2s; }
.th-fixopt:hover { border-color: var(--hb-agua); background: var(--hb-agua-light); }
.th-fixopt.is-danger:hover { border-color: var(--hb-adobe); background: var(--hb-adobe-light); }
.th-fixopt[disabled] { opacity: 0.6; cursor: default; }
.th-fixopt .t { font-weight: 600; font-size: var(--fs-ui-lg); } .th-fixopt .s { font-size: var(--fs-ui-sm); color: var(--hb-muted); }
.vc-confirm-bang.is-ok { background: var(--hb-agave-light); color: var(--hb-text-agave); }

/* individuals */
.th-picker { position: relative; display: inline-flex; }
.th-pickdrop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 280px; max-height: min(360px, 70vh); overflow-y: auto; background: var(--hb-paper); border: 1px solid var(--hb-line); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; }
.th-pickdrop .vc-additem { padding: 7px 8px; gap: 8px; } .th-pickdrop .vc-additem[disabled] { opacity: 0.5; cursor: default; }
.th-seelist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.th-seerow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* group modal */
.th-domchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.th-domadd { width: 150px; border-radius: var(--radius-pill); padding: 5px 12px; font-size: var(--fs-ui-md); }
.th-preview { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hb-line); border-radius: var(--radius-card); background: var(--hb-cloud); }
.th-preview .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.th-preview .l { font-size: var(--fs-ui-md); color: var(--hb-muted); }
.th-preview .chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* the floating Provision teachers button on small screens */
.th-fab { display: none; }

/* --- phone (design 1c) --- */
@media (max-width: 700px) {
  .th-row { flex-wrap: wrap; row-gap: 8px; padding: 12px 12px; }
  .th-who { flex-basis: calc(100% - 100px); }
  .th-district { flex: 1 1 100%; padding-left: 46px; }
  .th-chips { flex: 1 1 100%; padding-left: 46px; }
  .th-status { flex: 0 0 auto; margin-left: 46px; }
  .th-actions { flex: 1 1 auto; min-width: 0; }
  .th-row.th-head { display: none; }
  .th-rowbar--fixed { flex: 1 1 100%; padding-left: 46px; }
  .th-domcount { flex: 0 0 auto; }
  .th-plan { position: static; }
  .vc-header-nav .vc-nav-pill { padding: 8px 10px; font-size: var(--fs-ui-md); }
  .th-fab { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-fab); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: var(--radius-btn); background: var(--hb-agave); color: var(--hb-chalkboard); font-weight: 600; font-size: var(--fs-ui-lg); text-decoration: none; box-shadow: var(--shadow-drawer); }
  .th-hero { flex-wrap: wrap; }
}

/* sign-up rule pieces: the district card's rule line, the provision offer */
.th-ruleline { margin-top: 4px; }
.th-ruleline .th-aside-note a { font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.th-rulelist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.th-rulerow-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-ruleoffer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border: 1.5px dashed var(--hb-agave); border-radius: var(--radius-card); background: var(--hb-agave-pale); }
.th-ruleoffer .m { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.th-ruleoffer .t { font-weight: 600; font-size: var(--fs-ui); line-height: 1.3; }
.th-ruleoffer .s { font-size: var(--fs-ui-sm); color: var(--hb-ink-soft); line-height: 1.4; }
