/* house style: team hq wearing the student dashboard's look. loaded after ui/sidebar.css, then the four area
   files (house-sales, house-marketing, house-success, house-team). every rule here overrides an older layer by
   matching its selector weight and coming later, so page files that scope through ids keep their own exceptions.
   order: tokens, shell, sidebar, shared components, leftovers. */

/* ---------- a. tokens ---------- */

/* the old token names keep working and take the house values. new names sit beside them. */
body.balanced-blue.minimal-calm{
  /* surfaces: frame behind everything, page panel, card, soft tile */
  --canvas:#f6f6f7;--page:#fff;--surface:#fff;--soft:#f5f5f5;--sidebar-surface:#f6f6f7;
  /* lines */
  --line:#e5e5e9;--line-strong:#d9d9de;
  /* ink: main, second (readable grey), quiet (placeholders and chevrons only) */
  --ink:#18181b;--secondary:#5b5b65;--muted:#5b5b65;--quiet:#8c8c96;--text:var(--ink);
  /* pink: one flat fill, a text shade, a wash and a soft selected fill */
  --accent:#f14bba;--brand:#f14bba;--brand-highlight:color-mix(in srgb,#f14bba 92%,black);
  --brand-ink:#c92a86;--brand-wash:#fde9f7;--accent-soft:var(--brand-wash);--accent-text:var(--brand-ink);
  --pink-wash:rgb(241 75 186 / .14);--pink-off-fill:rgb(241 75 186 / .14);--pink-off-ink:#bd257d;
  /* status tones: dot, text, wash */
  --ok:#16a34a;--ok-text:#166534;--ok-wash:#dcfce7;
  --warn:#f59e0b;--warn-text:#92400e;--warn-wash:#fef3c7;
  --bad:#dc2626;--bad-text:#991b1b;--bad-wash:#fee2e2;--bad-pill:rgb(220 38 38 / .14);--bad-pill-ink:#b91c1c;
  --info:#0ea5e9;--info-text:#075985;--info-wash:#e0f2fe;
  /* the tone slots badges read: these paint the dot */
  --tone-green:#16a34a;--tone-amber:#f59e0b;--tone-red:#dc2626;--tone-blue:#0ea5e9;--tone-violet:#7c3aed;
  /* older names some pages still read */
  --success:#15803d;--danger:#dc2626;--negative:#dc2626;--red:#dc2626;--red-bg:#fee2e2;--amber:#92400e;
  --paper:var(--surface);--panel:var(--surface);--surface-2:var(--soft);--border:var(--line);--focus:var(--ring);--duration-fast:120ms;
  /* controls: flat, a hairline, no drop shadow. the switch is the one raised thing */
  --control-tray:#efeff0;--control-face:#fff;--control-border:#e5e5e9;
  --control-shadow:0 0 0 0 transparent;--control-highlight:inset 0 0 0 0 transparent;--cc-panel-shadow:0 0 0 0 transparent;
  --switch-raise:#fff;--switch-shadow:0 1px 2px rgb(0 0 0 / .08),0 0 0 .5px rgb(0 0 0 / .04);
  --picked:#f1f1f3;--picked-line:#d9d9de;
  /* sidebar */
  --nav-hover:#ededf0;--nav-active:#e6e6ea;--nav-guide:#d9d9de;--nav-line:#e5e5e9;--nav-field:#fff;--nav-key:#f0f0f2;
  /* radii */
  --r-frame:10px;--r-card:10px;--r-control:8px;--r-item:8px;--r-seg:6px;--r-badge:999px;--r-drawer:12px;--r-dialog:12px;--r-menu:12px;--r-nav:7px;
  /* the only shadows left: the page panel, floating menus, pop-ups */
  --shadow-panel:0 1px 2px rgb(17 17 26 / .05);--shadow-float:0 8px 24px rgb(0 0 0 / .12);--shadow-dialog:0 24px 60px rgba(16,24,40,.18);
  --overlay:rgb(24 24 27 / .3);
  /* focus ring and scrollbars */
  --ring:#a1a1a1;--scroll:#b9c0d6;--scroll-hover:#969fbf;
  /* charts and meters are pink */
  --chart-top:#f14bba;--chart-bottom:color-mix(in srgb,#f14bba 72%,#fff);--chart-edge:#f14bba;
  /* table mixes */
  --record-line:color-mix(in srgb,var(--line) 65%,var(--surface));--record-header:var(--soft);--record-hover:color-mix(in srgb,var(--soft) 60%,var(--surface));
  /* tint families for icon tiles: one per nav item, never twice in one folder */
  --tint-red:#dc2626;--tint-orange:#ea580c;--tint-yellow:#ca8a04;--tint-lime:#65a30d;--tint-green:#059669;--tint-teal:#0d9488;--tint-cyan:#0891b2;
  --tint-blue:#2563eb;--tint-indigo:#4f46e5;--tint-violet:#7c3aed;--tint-fuchsia:#c026d3;--tint-pink:#db2777;--tint-slate:#475569;
  background:var(--canvas);color:var(--ink);color-scheme:light;
  /* no tnum here: it gives every hyphen a number's width. numbers turn it on in their own rules */
  font-feature-settings:"cv02","cv03","cv04","ss01";-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  scrollbar-color:var(--scroll) transparent;
}
/* midnight: every grey carries a little blue. frame darkest, page lighter, cards lighter again */
body.balanced-blue.minimal-calm.theme-dark{
  --canvas:#0a0b0f;--page:#13151b;--surface:#191c23;--soft:#20232b;--sidebar-surface:#0a0b0f;
  --line:#262a33;--line-strong:#30353f;
  --ink:#ededf1;--secondary:#9ea3b0;--muted:#9ea3b0;--quiet:#686d79;
  --accent:#f14bba;--brand:#f14bba;--brand-highlight:color-mix(in srgb,#f14bba 92%,black);
  --brand-ink:#f472b6;--brand-wash:#581c3e;
  --pink-wash:rgb(244 114 182 / .16);--pink-off-fill:rgb(241 75 186 / .16);--pink-off-ink:#f9a8d4;
  --ok:#34d399;--ok-text:#6ee7b7;--ok-wash:#052e1a;
  --warn:#fbbf24;--warn-text:#fcd34d;--warn-wash:#2a1d04;
  --bad:#f87171;--bad-text:#fca5a5;--bad-wash:#2a0808;--bad-pill:rgb(248 113 113 / .16);--bad-pill-ink:#f87171;
  --info:#38bdf8;--info-text:#7dd3fc;--info-wash:#082130;
  --tone-green:#34d399;--tone-amber:#fbbf24;--tone-red:#f87171;--tone-blue:#38bdf8;--tone-violet:#a78bfa;
  --success:#34d399;--danger:#f87171;--negative:#f87171;--red:#f87171;--red-bg:#2a0808;--amber:#fcd34d;
  --control-tray:#20232b;--control-face:#191c23;--control-border:#30353f;
  --control-shadow:0 0 0 0 transparent;--control-highlight:inset 0 0 0 0 transparent;--cc-panel-shadow:0 0 0 0 transparent;
  --switch-raise:#30353f;--switch-shadow:0 1px 2px rgb(0 0 0 / .35);
  --picked:#2b2b31;--picked-line:#3a3a42;
  --nav-hover:#13151b;--nav-active:#1c1f27;--nav-guide:#282c35;--nav-line:#1f222a;--nav-field:#0f1115;--nav-key:#1c1f27;
  --shadow-panel:0 0 0 0 transparent;--shadow-float:0 8px 24px rgb(0 0 0 / .4);--shadow-dialog:0 24px 60px rgb(0 0 0 / .5);
  --overlay:rgb(0 0 0 / .55);
  --ring:#a3a3a3;--scroll:#3c4154;--scroll-hover:#4c5168;
  --chart-bottom:color-mix(in srgb,#f14bba 72%,#191c23);
  color-scheme:dark;
}
body.balanced-blue.minimal-calm ::selection{background:#f9d8ed;color:#40122f}
body.balanced-blue.minimal-calm.theme-dark ::selection{background:rgb(241 75 186 / .38);color:#fff}

/* ---------- b. shell ---------- */

/* the page panel: page colour, a hairline, 10px corners, one faint shadow in light and none in dark */
body.balanced-blue.minimal-calm .workspace{background:var(--page);border:1px solid var(--line);border-radius:var(--r-frame);box-shadow:var(--shadow-panel)}
body.balanced-blue.minimal-calm.theme-dark .workspace{background:var(--page);box-shadow:none}

/* top bar: 48px with no rule under it, the sidebar button then the page name */
body.balanced-blue.minimal-calm .topbar{flex:0 0 48px;height:48px;padding-inline:16px;background:var(--page);border-bottom:0}
body.balanced-blue.minimal-calm .minimal-page-context{gap:10px}
body.balanced-blue.minimal-calm #crumb{padding-left:12px;border-left:1px solid var(--line);color:var(--ink);font-size:13.5px;font-weight:500;line-height:20px;letter-spacing:normal}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) #mobile-menu{width:28px;height:28px;min-height:28px;border-radius:var(--r-control);color:var(--quiet)}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) #mobile-menu:hover{background:var(--nav-hover);color:var(--ink)}
body.balanced-blue.minimal-calm #mobile-menu .icon{width:18px;height:18px;stroke-width:1.8}

/* page container: the title starts 10px under the bar, about 24px under the page name in it (oliver, 2026-10-04:
   "you can just move the page up more because the titel and things below are kind of low": it was 32px, a 46px gap).
   the scroller stays full width so its scrollbar sits on the panel edge; the side padding holds the content to 1400px */
body.balanced-blue.minimal-calm .main{max-width:none;margin-inline:0;padding:10px max(24px,calc((100% - 1400px) / 2)) 40px;background:var(--page)}
body.balanced-blue.minimal-calm .page-heading{align-items:center;gap:16px;margin-bottom:20px}
body.balanced-blue.minimal-calm .page-heading h1{font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.025em;color:var(--ink)}
body.balanced-blue.minimal-calm #main.page-home .page-heading h1{font-size:34px;line-height:1.15}
body.balanced-blue.minimal-calm .page-heading p{margin-top:2px;font-size:14px;line-height:20px;color:var(--secondary)}
/* today's date at the top right of every page is decoration: the house leaves it out */
body.balanced-blue.minimal-calm .page-date{display:none}
body.balanced-blue.minimal-calm .page-toolbar{gap:8px;margin-bottom:12px}
@media(max-width:850px){
  body.balanced-blue.minimal-calm .topbar{padding-inline:12px}
  body.balanced-blue.minimal-calm .main{padding:8px 16px 32px}
}
/* the greeting can carry an email when there is no name: let it break so the page never scrolls sideways */
body.balanced-blue.minimal-calm #main.page-home .page-heading h1{overflow-wrap:anywhere}
/* phones: the panel runs edge to edge in the page colour, no frame gap, hairline or corners */
@media(max-width:767px){
  body.balanced-blue.minimal-calm .frame{padding:0}
  body.balanced-blue.minimal-calm .workspace{border:0;border-radius:0;box-shadow:none}
}
@media(max-width:640px){
  body.balanced-blue.minimal-calm #main.page-home .page-heading h1{font-size:26px}
  body.balanced-blue.minimal-calm .page-heading{margin-bottom:16px}
}

/* ---------- c. sidebar ---------- */

/* measured against the student dashboard's sidebar (.cc-nav in its globals.css): 262px on the frame grey, rows
   240px wide (12px in on the left, 10px on the right), 32px rows with 7px corners, every icon on the same 22px
   column, a grey fill for the open page */
body.balanced-blue.minimal-calm #sidebar{--nav-text:var(--ink);--nav-icon:var(--secondary);width:262px;padding:8px 8px 4px;background:var(--canvas);scrollbar-color:var(--nav-guide) transparent}
body.balanced-blue.minimal-calm.theme-dark #sidebar{--nav-text:var(--ink);--nav-icon:var(--secondary);background:var(--canvas)}

/* brand row: the logo sits on the icon column, 20px wide like the dashboard's */
body.balanced-blue.minimal-calm #sidebar .brand{height:32px;min-height:32px;margin:0 2px 8px 4px;padding:0 10px;gap:9px;font-size:14.5px;font-weight:600;line-height:20px;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm #sidebar .cc-brand-logo{width:20px;height:auto;object-fit:contain}

/* the top, as on the student dashboard (matched 2026-10-04): logo and name on the icon column with the fold button at
   the right of the same row, then the search box (⌘K) 8px under it and 10px over the first row */
body.balanced-blue.minimal-calm #sidebar .nav-head{display:flex;align-items:center;justify-content:space-between;gap:8px;height:32px;margin:0 2px 8px 4px}
body.balanced-blue.minimal-calm #sidebar .nav-head .brand{flex:1;min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.balanced-blue.minimal-calm #sidebar #nav-fold{display:grid;place-items:center;flex:none;width:28px;height:28px;margin-right:2px;padding:0;border:0;border-radius:var(--r-control);background:transparent;color:var(--quiet);cursor:pointer}
body.balanced-blue.minimal-calm #sidebar #nav-fold:hover{background:var(--nav-hover);color:var(--ink)}
body.balanced-blue.minimal-calm #sidebar #nav-fold .icon{width:18px;height:18px;stroke-width:1.8}
body.balanced-blue.minimal-calm #sidebar .nav-search{display:flex;align-items:center;gap:8px;width:auto;height:32px;min-height:32px;margin:0 2px 10px 4px;padding:0 6px 0 10px;border:1px solid var(--nav-line);border-radius:8px;background:var(--nav-field);box-shadow:none;color:var(--quiet);font-size:14px;font-weight:400;line-height:20px;letter-spacing:normal;text-align:left;cursor:pointer;transition:border-color .12s}
body.balanced-blue.minimal-calm #sidebar .nav-search:hover{border-color:var(--quiet)}
body.balanced-blue.minimal-calm #sidebar .nav-search .icon{width:16px;height:16px;stroke-width:1.8;color:var(--quiet)}
body.balanced-blue.minimal-calm #sidebar .nav-search-text{flex:1;min-width:0}
body.balanced-blue.minimal-calm #sidebar .nav-search-keys{display:flex;gap:3px}
body.balanced-blue.minimal-calm #sidebar .nav-search kbd{min-width:20px;height:20px;padding:0 5px;border-radius:5px;background:var(--nav-key);color:var(--secondary);font:600 11.5px/20px Inter,sans-serif;text-align:center}
body.balanced-blue.minimal-calm #sidebar :is(#nav-fold,.nav-search,.profile):focus-visible{outline:2px solid var(--ring);outline-offset:1px}
/* while the sidebar is open on a computer the top bar has no sidebar button; it comes back when the sidebar is folded */
@media(min-width:851px){
  body.balanced-blue.minimal-calm:not(.minimal-nav-collapsed) :is(#main,#drawer,.topbar) #mobile-menu{display:none}
  body.balanced-blue.minimal-calm:not(.minimal-nav-collapsed) #crumb{padding-left:0;border-left:0}
}
/* phones: the sidebar's own × closes it, and there is no keyboard to press ⌘K on */
@media(max-width:850px){body.balanced-blue.minimal-calm #sidebar :is(#nav-fold,.nav-search-keys){display:none}}
/* the page name in the top bar: its folder in grey, a small chevron, then the page */
body.balanced-blue.minimal-calm #crumb{display:flex;align-items:center;min-width:0}
body.balanced-blue.minimal-calm #crumb>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.balanced-blue.minimal-calm #crumb>.crumb-folder{flex:0 1 auto;color:var(--secondary);font-weight:400}
body.balanced-blue.minimal-calm #crumb>.crumb-page{flex:0 1 auto}
body.balanced-blue.minimal-calm #crumb>.icon{flex:none;width:14px;height:14px;margin:0 6px;stroke-width:2;color:var(--quiet)}

/* rows */
body.balanced-blue.minimal-calm #sidebar #nav{gap:2px;padding:0 2px 0 4px}
body.balanced-blue.minimal-calm #sidebar .navitem{height:32px;min-height:32px;padding:0 10px;gap:11px;border-radius:var(--r-nav);font-size:14.5px;font-weight:400;line-height:20px;letter-spacing:normal;color:var(--nav-text);background:transparent;box-shadow:none;transition:background-color .12s}
body.balanced-blue.minimal-calm #sidebar .navitem:hover{background:var(--nav-hover);color:var(--ink)}
body.balanced-blue.minimal-calm #sidebar .navitem.active,
body.balanced-blue.minimal-calm.theme-dark #sidebar .navitem.active{background:var(--nav-active);color:var(--ink);font-weight:500;box-shadow:none}
body.balanced-blue.minimal-calm #sidebar .navitem:focus-visible{outline:2px solid var(--ring);outline-offset:1px}
body.balanced-blue.minimal-calm #sidebar .navitem .icon{width:18px;height:18px;stroke-width:1.8;color:var(--nav-icon)}

/* every page's icon sits in its own colour on a 16% tile of that colour (the colour comes in on the tile as
   --tint). a folder's pages: an 18px tile, 11px icon. the top rows: 22px and 13px, the same as a folder's tile */
body.balanced-blue.minimal-calm #sidebar .nav-tile{--tint:var(--tint-slate);display:grid;place-items:center;flex:none;width:18px;height:18px;border-radius:5px;color:var(--tint);background:color-mix(in srgb,var(--tint) 16%,transparent)}
body.balanced-blue.minimal-calm #sidebar .navitem .nav-tile>.icon{width:11px;height:11px;stroke-width:2.2;color:inherit}
body.balanced-blue.minimal-calm.theme-dark #sidebar .nav-tile{color:color-mix(in srgb,var(--tint),#fff 38%)}
/* the single pages (home, accountability, team, sop library) are the dashboard's plain rows: an 18px grey line
   icon with no tile, in ink on the open page, the label at 51px */
body.balanced-blue.minimal-calm #sidebar #nav>a.navitem>.nav-tile,
body.balanced-blue.minimal-calm.theme-dark #sidebar #nav>a.navitem>.nav-tile{width:18px;height:18px;border-radius:0;background:none;color:var(--nav-icon)}
body.balanced-blue.minimal-calm #sidebar #nav>a.navitem>.nav-tile>.icon{width:18px;height:18px;stroke-width:1.8}
body.balanced-blue.minimal-calm #sidebar #nav>a.navitem.active>.nav-tile{color:var(--ink)}

/* folders: the same regular weight as every other row (only the open page is medium), the logo wash behind an ink icon,
   a chevron that turns down when open */
body.balanced-blue.minimal-calm #sidebar .navgroup{margin:0}
body.balanced-blue.minimal-calm #sidebar .navgroup>summary.navitem{font-weight:400;color:var(--ink)}
body.balanced-blue.minimal-calm #sidebar .navgroup>summary>.nav-tile,
body.balanced-blue.minimal-calm.theme-dark #sidebar .navgroup>summary>.nav-tile{width:22px;height:22px;border-radius:6px;color:var(--ink);background:linear-gradient(135deg,color-mix(in srgb,#ff9a3c 26%,transparent),color-mix(in srgb,#f14bba 26%,transparent),color-mix(in srgb,#7c3aed 26%,transparent))}
body.balanced-blue.minimal-calm #sidebar .navgroup>summary>.nav-tile>.icon{width:13px;height:13px;stroke-width:2.1}
body.balanced-blue.minimal-calm #sidebar .navgroup>summary .chevron{width:16px;height:16px;stroke-width:1.8;color:var(--quiet);transform:rotate(-90deg);transition:transform .15s}
body.balanced-blue.minimal-calm #sidebar .navgroup[open]>summary .chevron{transform:none}
/* the folder that holds the open page gets the same grey as the page's own row */
body.balanced-blue.minimal-calm #sidebar .navgroup:has(.navitem.active)>summary.navitem{background:var(--nav-active)}

/* small group titles over the folders and over the single pages, 2px above the first row under them */
body.balanced-blue.minimal-calm #sidebar #nav>.navgroup:first-of-type::before{content:"Areas";display:block;margin-bottom:2px;padding:14px 10px 6px;font-size:12.5px;font-weight:500;line-height:18px;letter-spacing:normal;color:var(--quiet)}
body.balanced-blue.minimal-calm #sidebar #nav>.navgroup+a.navitem{position:relative;margin-top:40px}
body.balanced-blue.minimal-calm #sidebar #nav>.navgroup+a.navitem::before{content:"Team";position:absolute;left:10px;right:auto;top:-26px;height:auto;background:none;font-size:12.5px;font-weight:500;line-height:18px;letter-spacing:normal;color:var(--quiet);pointer-events:none}

/* a folder's pages hang off a connector line that drops from the middle of the folder's tile */
body.balanced-blue.minimal-calm #sidebar .sub{display:flex;flex-direction:column;gap:2px;margin:6px 0 8px 21px;padding:0 0 0 10px;border-left:0}
body.balanced-blue.minimal-calm #sidebar .sub .navitem{position:relative;height:30px;min-height:30px;padding:0 8px;gap:10px;font-size:14px;font-weight:400;color:var(--ink)}
body.balanced-blue.minimal-calm #sidebar .sub .navitem.active{font-weight:500}
body.balanced-blue.minimal-calm #sidebar .sub .navitem::before,
body.balanced-blue.minimal-calm #sidebar .sub .navitem:not(:last-child)::after{content:"";position:absolute;left:-10px;border:0 solid var(--nav-guide);pointer-events:none}
body.balanced-blue.minimal-calm #sidebar .sub .navitem::before{top:0;width:8px;height:15px;border-left-width:1px;border-bottom-width:1px;border-bottom-left-radius:6px}
body.balanced-blue.minimal-calm #sidebar .sub .navitem:not(:last-child)::after{top:0;bottom:-2px;border-left-width:1px}
body.balanced-blue.minimal-calm #sidebar .sub .navitem:first-child::before{top:-4px;height:19px}
body.balanced-blue.minimal-calm #sidebar .sub .navitem:first-child:not(:last-child)::after{top:-4px}
body.balanced-blue.minimal-calm #sidebar .nav-external-mark{color:var(--quiet);opacity:1}

/* footer: settings as a row with the moon beside it, then the account row 8px under it and 12px
   off the bottom, both on the rows' 240px. at least 12px between the last page and settings when the list is long */
body.balanced-blue.minimal-calm #sidebar .navfoot{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-top:auto;padding:12px 2px 0 4px;border-top:0}
body.balanced-blue.minimal-calm #sidebar .navfoot>.navitem{flex:none;width:32px;height:32px;min-height:32px;padding:0;gap:0;justify-content:center;border-radius:var(--r-nav);font-size:0}
body.balanced-blue.minimal-calm #sidebar .navfoot>.navitem .icon{width:18px;height:18px;stroke-width:1.8;color:var(--secondary)}
body.balanced-blue.minimal-calm #sidebar .navfoot>.navitem:hover .icon{color:var(--ink)}
body.balanced-blue.minimal-calm #sidebar .navfoot>.navitem.active{background:var(--nav-active);box-shadow:none}
body.balanced-blue.minimal-calm #sidebar .navfoot>.navitem[data-route=settings]{order:1;flex:1 1 0;width:auto;padding:0 10px;gap:11px;justify-content:flex-start;font-size:14px;color:var(--ink)}
body.balanced-blue.minimal-calm #sidebar .navfoot>#theme-toggle{order:3}
body.balanced-blue.minimal-calm #sidebar .profile{order:4;flex:1 0 100%;height:52px;min-height:52px;margin:6px 0 0;padding:9px 8px;gap:10px;border:0;border-radius:10px;background:transparent;box-shadow:none;font-size:14px;font-weight:600;line-height:1.25;color:var(--ink)}
body.balanced-blue.minimal-calm #sidebar .profile:hover{background:var(--nav-hover)}
body.balanced-blue.minimal-calm #sidebar .profile small{font-size:12.5px;font-weight:400;line-height:16px;color:var(--quiet)}
body.balanced-blue.minimal-calm #sidebar .profile .avatar{width:34px;height:34px;border:0;background:linear-gradient(135deg,#ff9a3c,#f14bba 50%,#5b6cff);color:#fff;font-size:12px;font-weight:600}
/* the account row opens the account menu: the up-down chevron at its right, the row lit while the menu is open */
body.balanced-blue.minimal-calm #sidebar .profile{cursor:pointer}
body.balanced-blue.minimal-calm #sidebar .profile>span:last-child{flex:1;text-align:left}
body.balanced-blue.minimal-calm #sidebar .profile::after{content:"";flex:none;width:16px;height:16px;margin-left:auto;background:var(--quiet);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") center/16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") center/16px no-repeat}
body.balanced-blue.minimal-calm #sidebar .profile[aria-expanded=true]{background:var(--nav-active)}

/* short windows: tighter rows, same shape. the connector still meets each row's middle */
@media(max-height:700px){
  body.balanced-blue.minimal-calm #sidebar .navitem{height:28px;min-height:28px;padding-block:0}
  body.balanced-blue.minimal-calm #sidebar .sub .navitem{height:26px;min-height:26px;padding-block:0}
  body.balanced-blue.minimal-calm #sidebar .sub .navitem::before{height:13px}
  body.balanced-blue.minimal-calm #sidebar .sub .navitem:first-child::before{height:17px}
  body.balanced-blue.minimal-calm #sidebar .navfoot>.navitem{height:30px;min-height:30px}
  body.balanced-blue.minimal-calm #sidebar #nav>.navgroup:first-of-type::before{padding-top:8px}
  body.balanced-blue.minimal-calm #sidebar #nav>.navgroup+a.navitem{margin-top:34px}
}
/* phones: the sidebar floats over the page as a card, with the dashboard's phone menu rows: 48px tall, 16px words,
   12px corners, 28px tiles with 16px icons (pulled 4px in each side, as its .nav-tint-tile-lg is), plain rows a 20px
   icon. a folder's connector moves to its bigger tile's middle and meets each 48px row at 24px */
@media(max-width:850px){
  body.balanced-blue.minimal-calm #sidebar{border:1px solid var(--line);border-radius:var(--r-frame);box-shadow:var(--shadow-float)}
  body.balanced-blue.minimal-calm #sidebar.mobile-open #minimal-nav-close{top:8px;right:8px;width:32px;height:32px;border-radius:var(--r-control);color:var(--quiet)}
  body.balanced-blue.minimal-calm #sidebar #nav .navitem{height:48px;min-height:48px;gap:12px;padding:0 12px;border-radius:12px;font-size:16px;line-height:1.25}
  body.balanced-blue.minimal-calm #sidebar :is(.sub .navitem .nav-tile,.navgroup>summary>.nav-tile),
  body.balanced-blue.minimal-calm.theme-dark #sidebar .navgroup>summary>.nav-tile{width:28px;height:28px;margin-inline:-4px;border-radius:8px}
  body.balanced-blue.minimal-calm #sidebar :is(.sub .navitem .nav-tile,.navgroup>summary>.nav-tile)>.icon{width:16px;height:16px;stroke-width:2}
  body.balanced-blue.minimal-calm #sidebar #nav>a.navitem>.nav-tile,
  body.balanced-blue.minimal-calm #sidebar #nav>a.navitem>.nav-tile>.icon{width:20px;height:20px}
  body.balanced-blue.minimal-calm #sidebar .sub{margin-left:22px}
  body.balanced-blue.minimal-calm #sidebar .sub .navitem::before{height:24px}
  body.balanced-blue.minimal-calm #sidebar .sub .navitem:first-child::before{height:28px}
  body.balanced-blue.minimal-calm #sidebar #nav>.navgroup:first-of-type::before{padding:16px 12px 4px;font-size:13px}
  body.balanced-blue.minimal-calm #sidebar #nav>.navgroup+a.navitem::before{left:12px;font-size:13px}
}

/* the search pop-up (⌘K or the sidebar's search box): the student dashboard's palette, 560px wide and 14% down the
   screen over a dim page, one 48px search line then 36px rows: the page's tile, its name, its folder in grey */
body.balanced-blue.minimal-calm .nav-palette{position:fixed;top:14vh;right:auto;bottom:auto;left:50%;transform:translateX(-50%);width:min(560px,calc(100vw - 32px));max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-dialog)}
body.balanced-blue.minimal-calm .nav-palette::backdrop{background:var(--overlay)}
body.balanced-blue.minimal-calm .nav-palette-field{display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--line)}
body.balanced-blue.minimal-calm .nav-palette-field>.icon{width:18px;height:18px;stroke-width:1.8;color:var(--secondary)}
body.balanced-blue.minimal-calm .nav-palette-field input{flex:1;min-width:0;height:48px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;color:var(--ink);font-size:15px;letter-spacing:normal}
body.balanced-blue.minimal-calm .nav-palette-field input::placeholder{color:var(--quiet)}
body.balanced-blue.minimal-calm .nav-palette-field kbd{padding:2px 6px;border-radius:6px;background:var(--soft);color:var(--secondary);font:600 11px/16px Inter,sans-serif}
body.balanced-blue.minimal-calm .nav-palette-list{max-height:min(360px,50vh);overflow-y:auto;padding:6px}
body.balanced-blue.minimal-calm .nav-palette-list [role=option]{display:flex;align-items:center;gap:12px;width:100%;height:36px;min-height:36px;padding:0 10px;border:0;border-radius:9px;background:transparent;box-shadow:none;color:var(--ink);font-size:14px;font-weight:400;letter-spacing:normal;text-align:left;cursor:pointer}
body.balanced-blue.minimal-calm .nav-palette-list [role=option][aria-selected=true]{background:var(--soft)}
body.balanced-blue.minimal-calm .nav-palette-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.balanced-blue.minimal-calm .nav-palette-section{flex:none;font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm .nav-palette .nav-tile{--tint:var(--tint-slate);display:grid;place-items:center;flex:none;width:18px;height:18px;margin-inline:1px;border-radius:5px;color:var(--tint);background:color-mix(in srgb,var(--tint) 16%,transparent)}
body.balanced-blue.minimal-calm .nav-palette .nav-tile>.icon{width:11px;height:11px;stroke-width:2.2;color:inherit}
body.balanced-blue.minimal-calm.theme-dark .nav-palette .nav-tile{color:color-mix(in srgb,var(--tint),#fff 38%)}
body.balanced-blue.minimal-calm .nav-palette-plain{display:grid;place-items:center;flex:none;width:20px;height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm .nav-palette-plain>.icon{width:16px;height:16px;stroke-width:1.8;color:inherit}
body.balanced-blue.minimal-calm .nav-palette-empty{margin:0;padding:24px 12px;text-align:center;font-size:13.5px;color:var(--secondary)}

/* the account menu off the account row: who you are, then settings and light / dark, then log out */
body.balanced-blue.minimal-calm .account-menu{position:fixed;z-index:1000;min-width:224px;padding:4px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float)}
body.balanced-blue.minimal-calm .account-menu[hidden]{display:none}
body.balanced-blue.minimal-calm .account-menu-head{display:flex;align-items:center;gap:8px;padding:6px 4px}
body.balanced-blue.minimal-calm .account-menu-head .avatar{position:relative;display:grid;place-items:center;overflow:hidden;flex:none;width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,#ff9a3c,#f14bba 50%,#5b6cff);color:#fff;font-size:12px;font-weight:600}
body.balanced-blue.minimal-calm .account-menu-head .avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.balanced-blue.minimal-calm .account-menu-head>span:last-child{display:grid;min-width:0;font-size:14px;line-height:1.25}
body.balanced-blue.minimal-calm .account-menu-head b{overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
body.balanced-blue.minimal-calm .account-menu-head small{overflow:hidden;font-size:12px;color:var(--secondary);text-overflow:ellipsis;white-space:nowrap}
body.balanced-blue.minimal-calm .account-menu hr{height:1px;margin:4px -4px;border:0;background:var(--line)}
body.balanced-blue.minimal-calm .account-menu [role=menuitem]{display:flex;align-items:center;gap:8px;width:100%;height:32px;min-height:32px;padding:0 8px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--ink);font-size:14px;font-weight:400;letter-spacing:normal;text-align:left;cursor:pointer}
body.balanced-blue.minimal-calm .account-menu [role=menuitem]:is(:hover,:focus-visible){background:var(--soft);outline:none}
body.balanced-blue.minimal-calm .account-menu [role=menuitem] .icon{width:16px;height:16px;stroke-width:1.8;color:var(--secondary)}

/* ---------- d. shared components ---------- */

/* cards: a hairline, 10px corners, no shadow. the radius and shadow come from the tokens */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.panel,.sx-side,.ful-aside,.ful-ticket,.team-simple-list,.ful-roster,.sx-crm,.cl-card,.minimal-closer-card,.closer-ideas,.sx-payment-card,.dl-rail,.dl-fresh,.mkt-daily,.usage-account,.ho-section,.cs-roster-summary,.cs-detail-card,.calls-queue,.ful-inbox,.mkt-reference-panel){border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:none}
/* card head: the name of the thing, 17px semibold, with its number or switch at the right */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.panelhead,.cl-card-head,.ho-section>header,.dl-rail-head,.hq-closer-chart-head){gap:8px;min-height:0;padding:16px 16px 12px;background:transparent}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.panelhead,.cl-card-head,.ho-section>header,.dl-rail-head,.hq-closer-chart-head) :is(h2,h3){font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.panelhead,.cl-card-head,.ho-section>header,.dl-rail-head,.hq-closer-chart-head)>:is(p,small,span){font-size:13px;line-height:20px;color:var(--secondary)}
/* board lanes */
body.balanced-blue.minimal-calm #main .ful-stage{border-radius:var(--r-card);background:var(--soft)}
body.balanced-blue.minimal-calm #main .ful-stage>header h3{font-size:13px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}

/* section headings outside cards read like a card title */
body.balanced-blue.minimal-calm #main :is(.sx-section-head,.ful-sectionhead,.mkt-sectionhead,.cs-section-heading,.calls-section-head) :is(h2,h3){font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}

/* metric tiles: a label over a number, nothing under it */
body.balanced-blue.minimal-calm #main :is(.metric-row,.sx-metrics,.ho-metrics){gap:12px;margin:0 0 18px}
body.balanced-blue.minimal-calm #main :is(.metric-row>.metric,.sx-metrics>.sx-stat,.ho-metrics>.ho-metric,.cs-activity-card,.eod-stat){justify-content:flex-start;gap:6px;min-height:0;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:none}
body.balanced-blue.minimal-calm #main :is(.metric>p,.metric-label,.sx-stat>span,.ho-metric>dt,.cs-activity-card>span){margin:0;font-size:13px;font-weight:400;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main :is(.metric strong,.metric-value,.sx-stat>strong,.ho-metric>dd,.cs-activity-card>strong){font-size:24px;font-weight:600;line-height:32px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
@media(max-width:600px){
  body.balanced-blue.minimal-calm #main :is(.metric-row,.sx-metrics,.ho-metrics){gap:8px;padding:0}
  body.balanced-blue.minimal-calm #main :is(.metric-row>.metric,.sx-metrics>.sx-stat,.ho-metrics>.ho-metric){min-height:0;padding:12px 14px}
  body.balanced-blue.minimal-calm #main :is(.metric strong,.metric-value,.sx-stat>strong,.ho-metric>dd){font-size:20px;line-height:28px}
}

/* the switch: every tab and segmented group. a grey track with no border, 28px options, the picked one raised.
   32px in all, so it lines up with the buttons and fields beside it */
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment,.ho-payment-tabs,.hq-closer-chart-modes,.dl-status-tabs,.ful-inbox-filters,.mkt-purpose-tabs,.calls-filters,.sx-crm-views){gap:2px;padding:2px;border:0;border-radius:var(--r-control);background:var(--control-tray);box-shadow:none}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment,.ho-payment-tabs,.hq-closer-chart-modes,.dl-status-tabs,.ful-inbox-filters,.mkt-purpose-tabs,.calls-filters,.sx-crm-views) :is(button,[role=tab]){height:28px;min-height:28px;padding:0 10px;border:0;border-radius:var(--r-seg);background:transparent;box-shadow:none;color:var(--secondary);font-size:13px;font-weight:500;line-height:1;letter-spacing:normal;transition:color .12s,background-color .12s,box-shadow .12s}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment,.ho-payment-tabs,.hq-closer-chart-modes,.dl-status-tabs,.ful-inbox-filters,.mkt-purpose-tabs,.calls-filters,.sx-crm-views) :is(button,[role=tab]):hover{background:transparent;color:var(--ink)}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment,.ho-payment-tabs,.hq-closer-chart-modes,.dl-status-tabs,.ful-inbox-filters,.mkt-purpose-tabs,.calls-filters,.sx-crm-views) :is(button,[role=tab]):is(.active,.selected,[aria-pressed=true],[aria-selected=true]){background:var(--switch-raise);border:0;box-shadow:var(--switch-shadow);color:var(--ink);font-weight:500}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment,.ho-payment-tabs,.hq-closer-chart-modes,.dl-status-tabs,.ful-inbox-filters,.mkt-purpose-tabs,.calls-filters,.sx-crm-views) :is(button,[role=tab]):focus-visible{outline:2px solid var(--quiet);outline-offset:1px}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment,.ho-payment-tabs,.hq-closer-chart-modes,.dl-status-tabs,.ful-inbox-filters,.mkt-purpose-tabs,.calls-filters,.sx-crm-views) [class*=count]{min-width:0;height:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--secondary);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment,.ho-payment-tabs,.hq-closer-chart-modes,.dl-status-tabs,.ful-inbox-filters,.mkt-purpose-tabs,.calls-filters,.sx-crm-views) :is(.active,[aria-pressed=true],[aria-selected=true]) [class*=count]{background:transparent;color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer) .mkt-switch button:has(>svg:only-child){width:28px;padding:0}
body.balanced-blue.minimal-calm #main .page-tabs{margin-bottom:16px}
@media(max-width:767px){
  body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment,.ho-payment-tabs,.hq-closer-chart-modes,.dl-status-tabs,.ful-inbox-filters,.mkt-purpose-tabs,.calls-filters,.sx-crm-views) :is(button,[role=tab]){height:36px;min-height:36px;font-size:14px}
}

/* buttons: flat, a hairline, 8px corners, 32px tall like the switch */
body.balanced-blue.minimal-calm :is(.btn,.callbutton,.hq-select-trigger,.filter select,select.input){min-height:32px;padding:6px 12px;border:1px solid var(--control-border);border-radius:var(--r-control);background:var(--control-face);color:var(--ink);font-size:13px;font-weight:500;line-height:18px;letter-spacing:normal;box-shadow:none;transition:background-color .15s,color .15s,border-color .15s}
body.balanced-blue.minimal-calm :is(.btn,.callbutton,.hq-select-trigger):hover{background:var(--soft);border-color:var(--control-border)}
body.balanced-blue.minimal-calm :is(.btn,.callbutton,.hq-select-trigger):active:not(:disabled){box-shadow:none}
body.balanced-blue.minimal-calm .btn .icon{width:16px;height:16px}
body.balanced-blue.minimal-calm .btn:disabled{opacity:.5;box-shadow:none}
/* the one filled button on a page: flat pink, white words */
body.balanced-blue.minimal-calm .btn.btn-primary{background:var(--brand);color:#fff;border-color:transparent;box-shadow:none}
body.balanced-blue.minimal-calm .btn.btn-primary:hover{background:var(--brand-highlight);color:#fff;border-color:transparent}
body.balanced-blue.minimal-calm .btn.btn-primary:active:not(:disabled){box-shadow:inset 0 0 0 999px rgb(0 0 0 / .1)}
body.balanced-blue.minimal-calm .btn.btn-primary:is(:disabled,[aria-disabled=true]){background:var(--pink-off-fill);color:var(--pink-off-ink);opacity:1}
body.balanced-blue.minimal-calm :is(#main,#drawer) .btn.btn-danger{color:var(--danger)}
/* the small button on a row or in a card head */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(td,.panelhead,.cl-card-head,.ho-section>header,.dl-rail-head,.hq-closer-chart-head,.student-csm-item,.ful-current-deals-head,.deal-picker-row,.sx-payment-tools) :is(.btn,.hq-select-trigger,select.input){min-height:28px;padding:4px 10px;border-radius:var(--r-control);font-size:12px}
/* icon buttons */
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.icon-btn,.ful-roster-trash,.mkt-card-delete,.sx-lead-edit,.dl-copy,.forms-icon-btn,.ful-delete-student){border-radius:var(--r-control);color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.icon-btn,.ful-roster-trash,.mkt-card-delete,.sx-lead-edit,.dl-copy,.forms-icon-btn,.ful-delete-student):hover{background:var(--soft);color:var(--ink)}

/* fields: same hairline and corners as a button. 32px on a page so a toolbar row shares one height, 36px in a pop-up form */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(input.input,textarea.input){min-height:32px;padding-block:5px;padding-right:12px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);box-shadow:none;color:var(--ink);font-size:13px;font-weight:400;caret-color:var(--accent);transition:border-color .15s}
body.balanced-blue.minimal-calm #drawer :is(input.input,textarea.input){min-height:36px;padding-block:7px;font-size:14px}
body.balanced-blue.minimal-calm :is(#main,#drawer) textarea.input{min-height:88px;padding:9px 12px;border-radius:var(--r-card);font-size:14px;line-height:21px}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(input.input,textarea.input)::placeholder{color:var(--quiet)}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(input.input,textarea.input):hover:not(:disabled){border-color:var(--line-strong)}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(input.input,textarea.input):disabled{background:var(--soft);color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(input,textarea):not([type=checkbox],[type=radio],[type=range]):focus-visible{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--line-strong);box-shadow:none}
/* file pickers: the browser's grey button becomes a small outline button */
body.balanced-blue.minimal-calm :is(#main,#drawer) input[type=file]::file-selector-button{height:28px;margin-right:10px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);color:var(--ink);font:inherit;font-size:12px;font-weight:500;cursor:pointer}
body.balanced-blue.minimal-calm :is(#main,#drawer) input[type=file]::file-selector-button:hover{background:var(--soft)}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.form-field,.sx-field>span,.ful-field>span){font-size:12px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(input[type=checkbox],input[type=radio],input[type=range],progress){accent-color:var(--accent)}
/* plain fields typed into a table row: the same hairline box, 28px so the row keeps its height */
body.balanced-blue.minimal-calm #main td input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=hidden],.input,.hq-select-native){min-height:28px;padding:3px 8px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);color:var(--ink);font:inherit;font-size:13px;font-variant-numeric:tabular-nums;caret-color:var(--accent)}
body.balanced-blue.minimal-calm #main td input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=hidden],.input,.hq-select-native):hover:not(:disabled){border-color:var(--line-strong)}
@media(max-width:850px){
  body.balanced-blue.minimal-calm :is(#main,#drawer) :is(input.input,textarea.input){font-size:16px}
}

/* the custom dropdown: a trigger that matches the buttons, and its menu, which lives on the body */
body.balanced-blue.minimal-calm .hq-select-trigger{gap:8px;padding:6px 8px 6px 12px}
body.balanced-blue.minimal-calm .hq-select-trigger:hover:not(:disabled),
body.balanced-blue.minimal-calm .hq-select-trigger[aria-expanded=true]{background:var(--soft);border-color:var(--control-border)}
body.balanced-blue.minimal-calm .hq-select-trigger:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
body.balanced-blue.minimal-calm .hq-select-trigger[aria-invalid=true]{border-color:var(--danger);box-shadow:none}
body.balanced-blue.minimal-calm .hq-select-chevron{width:14px;height:14px;stroke-width:1.8;color:var(--secondary);transition:transform .15s}
body.balanced-blue.minimal-calm .hq-select-menu{padding:4px;border:1px solid var(--line);border-radius:var(--r-menu);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float);font-size:13px;line-height:18px;scrollbar-width:thin}
body.balanced-blue.minimal-calm .hq-select-option{min-height:32px;padding:6px 10px;border-radius:var(--r-control)}
body.balanced-blue.minimal-calm .hq-select-option.active{background:var(--soft)}
body.balanced-blue.minimal-calm .hq-select-option[aria-selected=true]{background:transparent;color:var(--ink);font-weight:500}
body.balanced-blue.minimal-calm .hq-select-option[aria-selected=true].active{background:var(--soft)}
body.balanced-blue.minimal-calm .hq-select-check{color:var(--secondary)}

/* badges: fully round with a hairline. a tone paints a small dot, the words stay ink */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.status,.sx-badge,.ful-fact,.eod-chip,.mkt-trend,.sx-crm-stage,.dl-tag,.mkt-meta-chip,.student-payment-state,.ful-card-deal,.ful-deal-tag){gap:6px;min-height:22px;padding:0 8px;border:1px solid var(--line);border-radius:var(--r-badge);background:var(--surface);box-shadow:none;color:var(--ink);font-size:12px;font-weight:500;line-height:1}
body.balanced-blue.minimal-calm.theme-dark :is(#main,#drawer) :is(.status,.sx-badge,.ful-fact,.eod-chip,.mkt-trend,.sx-crm-stage,.dl-tag,.mkt-meta-chip,.student-payment-state,.ful-card-deal,.ful-deal-tag){background:var(--surface)}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.status,.sx-green,.sx-amber,.sx-red,.ful-fact:is([data-tone=green],[data-tone=amber],[data-tone=renewal],[data-tone=red],[data-tone=ended],.ful-program-ending,.ful-program-ended),.mkt-trend:is(.up,.down),.student-payment-state[data-state=paid])::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--tone)}
/* legacy tags */
body.balanced-blue.minimal-calm :is(.tag,.badge,.badge.green,.badge.amber,.badge.teal,.badge.blue,.pill){border-radius:var(--r-badge);font-weight:500}

/* tables: the header is a soft rounded bar inset from the card edge, hairlines between rows stop at the same
   inset, no zebra. the older table rules are !important, so these have to be too */
body.balanced-blue.minimal-calm #main :is(.table-container,.tablewrap,.table-scroll,.sx-table-wrap,.dl-table-wrap,.cs-daily-history){padding:12px 12px 4px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);box-shadow:none}
body.balanced-blue.minimal-calm #main :is(.panel,.ful-roster,.sx-crm,.cl-card,.minimal-closer-card,.closer-ideas,.sx-payment-card,.ho-section,.cs-detail-card,.mkt-daily,.sx-section) :is(.table-container,.tablewrap,.table-scroll,.sx-table-wrap,.dl-table-wrap){padding:0 12px 4px;border:0;border-radius:0}
body.balanced-blue.minimal-calm :is(.data-table,.table-container table,.tablewrap table,.table-scroll table,.sx-table-wrap table,.dl-table-wrap table,.cs-daily-history table){border-collapse:separate;border-spacing:0}
body.balanced-blue.minimal-calm :is(th,.data-table th,.sx-table-wrap th):not(.student-contact-table th){height:32px;padding-block:0!important;padding-inline:12px!important;background:var(--soft)!important;color:var(--secondary)!important;font-size:12px!important;font-weight:500!important;line-height:18px;border:0!important;border-bottom:0!important}
body.balanced-blue.minimal-calm :is(td,.data-table td,.sx-table-wrap td):not(.student-contact-table td){height:44px;padding-block:10px!important;padding-inline:12px!important;border-top:0!important;border-bottom:1px solid var(--record-line)!important;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm tbody tr:last-child>:is(td,.data-table td,.sx-table-wrap td):not(.student-contact-table td){border-bottom-color:transparent!important}
body.balanced-blue.minimal-calm :is(th,td):not(.student-contact-table *):first-child{padding-left:12px!important}
body.balanced-blue.minimal-calm :is(th,td):not(.student-contact-table *):last-child{padding-right:12px!important}
body.balanced-blue.minimal-calm th:not(.student-contact-table *):first-child{border-top-left-radius:var(--r-control);border-bottom-left-radius:var(--r-control)}
body.balanced-blue.minimal-calm th:not(.student-contact-table *):last-child{border-top-right-radius:var(--r-control);border-bottom-right-radius:var(--r-control)}
body.balanced-blue.minimal-calm :is(tbody tr:hover td:not(.student-contact-table td),.sx-table-wrap tbody tr:hover td:first-child){background:var(--record-hover)}
/* lists built from divs wear the same header bar and row lines */
body.balanced-blue.minimal-calm #main .team-simple-head{min-height:32px;margin:12px 12px 0;padding:0 12px;border:0;border-radius:var(--r-control);background:var(--soft);font-size:12px;font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .team-simple-row{margin:0 12px;padding:10px 12px;border-bottom:1px solid var(--record-line)}
body.balanced-blue.minimal-calm #main .team-simple-row:last-child{border-bottom:0;margin-bottom:4px}

/* empty state: a dashed hairline and one quiet line */
body.balanced-blue.minimal-calm .empty-state{padding:18px 16px;border:1px dashed var(--line);border-radius:var(--r-card);background:color-mix(in srgb,var(--soft) 40%,transparent);color:var(--secondary);font-size:12px;line-height:18px;text-wrap:pretty}
body.balanced-blue.minimal-calm .empty-state h2{margin-bottom:4px;font-size:14px;font-weight:500;line-height:20px;letter-spacing:normal;color:var(--ink)}
/* notice: a plain hairline row, never a coloured slab */
body.balanced-blue.minimal-calm .notice{padding:8px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--ink);font-size:13px;line-height:20px}

/* toast: a small floating card */
body.balanced-blue.minimal-calm .toast{padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--ink);font-size:13px;font-weight:500;line-height:20px;box-shadow:var(--shadow-float)}
/* chart tooltip */
body.balanced-blue.minimal-calm .hq-chart-tooltip{padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float)}

/* the shared drawer: the house overlay, a hairline and the pop-up shadow. the side sheet keeps 12px inner corners */
body.balanced-blue.minimal-calm .hq-drawer{border-color:var(--line);border-radius:var(--r-dialog) 0 0 var(--r-dialog);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-dialog)}
body.balanced-blue.minimal-calm #drawer.hq-drawer:not(:has(#event-form))::backdrop{background:rgb(24 24 27 / .3)}
body.balanced-blue.minimal-calm.theme-dark #drawer.hq-drawer:not(:has(#event-form))::backdrop{background:rgb(0 0 0 / .55)}
/* centred pop-ups: 12px corners all round on every width, one hairline (the border it already has) and the pop-up shadow */
body.balanced-blue.minimal-calm #drawer:has(.sx-lead-workspace,.sx-call-drawer,#mkt-script-form,.deal-picker,.student-profile,.ful-student-details,.ful-student-details-simple,.ful-activity-form){border-color:var(--line);border-radius:var(--r-dialog);box-shadow:var(--shadow-dialog)}
body.balanced-blue.minimal-calm .drawer-head{padding:20px 24px 12px}
body.balanced-blue.minimal-calm .drawer-head h2{font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
body.balanced-blue.minimal-calm .drawer-body{padding:8px 24px 24px}
body.balanced-blue.minimal-calm .drawer-body h3{font-size:13px;font-weight:600;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm .drawer-footer{padding:10px 24px;border-top:1px solid var(--line);background:transparent;color:var(--secondary);font-size:12px}

/* scrollbars: thin, a rounded thumb, no track */
body.balanced-blue.minimal-calm :is(#main,#drawer,.drawer-body,.hq-select-menu,#sidebar){scrollbar-width:thin}
body.balanced-blue.minimal-calm :is(#main,#drawer,.hq-select-menu){scrollbar-color:var(--scroll) transparent}

/* focus ring: grey on things you press, pink on things you type in */
body.balanced-blue.minimal-calm :is(button,a,summary,[role=tab],[role=option]):focus-visible{outline:2px solid var(--ring);outline-offset:2px}
body.balanced-blue.minimal-calm :is(input,textarea,select):focus-visible{outline:2px solid var(--accent);outline-offset:1px}

/* ---------- e. leftovers ---------- */

/* small grey text from the oldest layer follows the tokens */
body.balanced-blue.minimal-calm :is(small,.muted){color:var(--secondary)}
/* the home trend chip was a hardcoded peach pair */
body.balanced-blue.minimal-calm .trend{background:transparent;color:var(--secondary)}
/* meters and progress bars fill in pink on a soft track */
body.balanced-blue.minimal-calm :is(#main,#drawer) progress{height:8px;border:0;border-radius:999px;background:var(--soft);overflow:hidden;appearance:none}
body.balanced-blue.minimal-calm :is(#main,#drawer) progress::-webkit-progress-bar{background:var(--soft)}
body.balanced-blue.minimal-calm :is(#main,#drawer) progress::-webkit-progress-value{border-radius:999px;background:var(--accent)}
body.balanced-blue.minimal-calm :is(#main,#drawer) progress::-moz-progress-bar{border-radius:999px;background:var(--accent)}

/* ---------- f. simplify pass (2026-10-03): closer to the dashboard, less to read ---------- */

/* tiles: the dashboard's tile sizes. a 12px label over a 20px number, nothing else */
body.balanced-blue.minimal-calm #main :is(.metric-row,.sx-metrics,.ho-metrics){gap:12px;margin-bottom:18px}
body.balanced-blue.minimal-calm #main :is(.metric-row>.metric,.sx-metrics>.sx-stat,.ho-metrics>.ho-metric,.cs-activity-card,.eod-stat){gap:6px;padding:12px 16px}
body.balanced-blue.minimal-calm #main :is(.metric>p,.metric-label,.sx-stat>span,.ho-metric>dt,.cs-activity-card>span){font-size:12px;line-height:18px}
body.balanced-blue.minimal-calm #main :is(.metric strong,.metric-value,.sx-stat>strong,.ho-metric>dd,.cs-activity-card>strong){font-size:20px;line-height:28px;letter-spacing:-.01em}

/* a status is a coloured dot and plain words, no box around them (the dashboard's pill) */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.status,.sx-badge,.mkt-trend:is(.up,.down)),
body.balanced-blue.minimal-calm.theme-dark :is(#main,#drawer) :is(.status,.sx-badge,.mkt-trend:is(.up,.down)){padding:0;border:0;border-radius:0;background:transparent}
/* with no box, a status beside a title needs its own room or the dot touches the last word */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(h2,h3,h4)>:is(.status,.sx-badge){margin-left:6px}

/* a thing you open is a centred pop-up, not a side sheet: the dashboard dropped its slide-over for this.
   the pop-ups that already set their own size and place keep them */
body.balanced-blue.minimal-calm #drawer.hq-drawer:not(:has(.sx-lead-workspace,.sx-call-drawer,#mkt-script-form,.deal-picker,.student-profile,.ful-student-details,.ful-student-details-simple,.ful-activity-form,#event-form)){inset:0;width:min(600px,calc(100vw - 48px));max-width:calc(100vw - 48px);height:fit-content;max-height:calc(100dvh - 48px);margin:auto;border:1px solid var(--line);border-radius:var(--r-dialog);box-shadow:var(--shadow-dialog)}
body.balanced-blue.minimal-calm #drawer.hq-drawer[open]:not(:has(.sx-lead-workspace,.sx-call-drawer,#mkt-script-form,.deal-picker,.student-profile,.ful-student-details,.ful-student-details-simple,.ful-activity-form,#event-form)){animation:hq-pop-in 180ms cubic-bezier(.2,.8,.2,1) backwards}
body.balanced-blue.minimal-calm #drawer.hq-drawer:not(:has(.sx-lead-workspace,.sx-call-drawer,#mkt-script-form,.deal-picker,.student-profile,.ful-student-details,.ful-student-details-simple,.ful-activity-form,#event-form)) .drawer-body{min-height:0;padding-top:20px}
/* the pop-up's header: the dashboard's (and the today tab's), 20px over the title, 16px under it, then a line */
body.balanced-blue.minimal-calm #drawer.hq-drawer:not(:has(.sx-lead-workspace,.sx-call-drawer,#mkt-script-form,.deal-picker,.student-profile,.ful-student-details,.ful-student-details-simple,.ful-activity-form,#event-form)) .drawer-head{padding:20px 24px 16px;border-bottom:1px solid var(--line)}
body.balanced-blue.minimal-calm #drawer.hq-drawer:not(:has(.sx-lead-workspace,.sx-call-drawer,#mkt-script-form,.deal-picker,.student-profile,.ful-student-details,.ful-student-details-simple,.ful-activity-form,#event-form)) .drawer-head h2{margin:0}
@keyframes hq-pop-in{from{opacity:0;transform:translateY(8px) scale(.99)}}
/* phones: the pop-up takes the whole screen */
@media(max-width:640px){
  body.balanced-blue.minimal-calm #drawer.hq-drawer:not(:has(.sx-lead-workspace,.sx-call-drawer,#mkt-script-form,.deal-picker,.student-profile,.ful-student-details,.ful-student-details-simple,.ful-activity-form,#event-form)){width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
}

@media(prefers-reduced-motion:reduce){
  body.balanced-blue.minimal-calm #drawer.hq-drawer[open]:not(:has(.sx-lead-workspace,.sx-call-drawer,#mkt-script-form,.deal-picker,.student-profile,.ful-student-details,.ful-student-details-simple,.ful-activity-form,#event-form)){animation:none}
  body.balanced-blue.minimal-calm :is(.btn,.navitem,.hq-select-trigger,.hq-select-chevron,#sidebar .chevron,input.input,textarea.input),
  body.balanced-blue.minimal-calm :is(#main,#drawer,.topbar) :is(.page-tabs,.seg,.segmented,.mkt-switch,.ho-segment) button{transition:none}
  body.balanced-blue.minimal-calm :is(#main,#drawer) :is(input.input,textarea.input){transition:none}
}
