/* Agency Dashboard Design System: the component stylesheet. Loaded after tokens.css.
   Derived from the Code and Chill dashboard templates (Tessly, Fernly, Olvara) © 2026 Hasib (OVERSHOOT), used under licence. Not for redistribution.
   Every colour, size and radius comes from tokens.css; this file only shapes components.
   GSAP owns every transform: no rule here transitions transform. */

/* ── Theme extras the token file cannot hold ─────────────────────────────── */
:root, [data-theme="light"] { --soft: 14%; color-scheme: light; --bar-strong: var(--accent-950); --gauge-prog: var(--accent-950); --scrim: rgba(10, 14, 22, .38); }
[data-theme="dark"] { --soft: 16%; color-scheme: dark; --bar-strong: var(--accent-100); --gauge-prog: var(--accent-100); --scrim: rgba(0, 0, 0, .55); }
:root { --ease-css: cubic-bezier(.22, 1, .36, 1); --ease-switch: cubic-bezier(.3, 1.5, .5, 1); }

/* accent picker (Fernly's accent swap, plus Tessly cobalt and Olvara pine) */
[data-accent="green"] { --primary: var(--green-700); --primary-ink: var(--green-800); --on-primary: var(--green-100); --accent-950: var(--green-950); --accent-800: var(--green-800); --accent-400: var(--green-400); --accent-100: var(--green-100); }
[data-accent="ocean"] { --primary: var(--ocean-700); --primary-ink: var(--ocean-800); --on-primary: var(--ocean-100); --accent-950: var(--ocean-950); --accent-800: var(--ocean-800); --accent-400: var(--ocean-400); --accent-100: var(--ocean-100); }
[data-accent="plum"] { --primary: var(--plum-700); --primary-ink: var(--plum-800); --on-primary: var(--plum-100); --accent-950: var(--plum-950); --accent-800: var(--plum-800); --accent-400: var(--plum-400); --accent-100: var(--plum-100); }
[data-accent="ember"] { --primary: var(--ember-700); --primary-ink: var(--ember-800); --on-primary: var(--ember-100); --accent-950: var(--ember-950); --accent-800: var(--ember-800); --accent-400: var(--ember-400); --accent-100: var(--ember-100); }
[data-accent="pine"] { --primary: var(--pine-700); --primary-ink: var(--pine-700); --on-primary: var(--pine-100); --accent-950: var(--pine-950); --accent-800: var(--pine-800); --accent-400: var(--pine-400); --accent-100: var(--pine-100); }
[data-theme="dark"][data-accent="green"] { --primary: var(--green-400); --primary-ink: var(--green-400); --on-primary: var(--green-950); }
[data-theme="dark"][data-accent="ocean"] { --primary: var(--ocean-400); --primary-ink: var(--ocean-400); --on-primary: var(--ocean-950); }
[data-theme="dark"][data-accent="plum"] { --primary: var(--plum-400); --primary-ink: var(--plum-400); --on-primary: var(--plum-950); }
[data-theme="dark"][data-accent="ember"] { --primary: var(--ember-400); --primary-ink: var(--ember-400); --on-primary: var(--ember-950); }
[data-theme="dark"][data-accent="pine"] { --primary: var(--pine-400); --primary-ink: var(--pine-400); --on-primary: var(--pine-950); }

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 500 var(--fs-base)/1.45 var(--font-sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: break-word;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--citron) 70%, transparent); color: var(--fixed-ink); }
.dash-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* a hidden table for screen readers keeps the 1px width: its cells wrap instead of stretching it past the screen edge */
table.dash-sr { table-layout: fixed; white-space: normal; }
table.dash-sr :is(caption, th, td) { overflow-wrap: anywhere; }
.dash-muted { color: var(--muted); }
.dash-faint { color: var(--faint); }
.dash-ico { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
mark { background: color-mix(in srgb, var(--citron) 75%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.dash-hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.dash-grid { display: grid; gap: var(--gap); min-width: 0; }
.dash-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-span-2 { grid-column: span 2; }
.dash-stack { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.dash-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.dash-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dash-wrap-any { overflow-wrap: anywhere; min-width: 0; }

/* ── Shell: app frame, sidebar, top bar ─────────────────────────────────── */
.dash-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: calc(var(--gutter) - 8px + var(--side-x)); padding: var(--side-x); max-width: var(--app-max); margin: 0 auto; min-width: 0; }
.dash-app.is-rail { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
.dash-main { min-width: 0; padding: 0 calc(var(--gutter) - var(--side-x)) 48px 0; overflow-x: clip; }

.dash-side {
  position: relative; width: var(--side-w); min-height: 560px; display: flex; flex-direction: column;
  color: var(--side-text); border-radius: var(--r-panel); background: var(--side); box-shadow: var(--shadow-side);
}
.dash-side--sticky { position: sticky; top: var(--side-x); height: calc(100dvh - var(--side-x) * 2); }
.dash-side :focus-visible { outline-color: var(--side-accent); }
.dash-side__head { display: flex; align-items: center; gap: 10px; padding: 18px 14px 12px 16px; }
.dash-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; flex: 1; border-radius: 12px; }
.dash-brand__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--side-accent); color: var(--fixed-ink); display: grid; place-items: center; flex: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 16px -8px color-mix(in srgb, var(--side-accent) 80%, transparent); }
.dash-brand__mark .dash-ico { width: 22px; height: 22px; stroke-width: 1.9; }
.dash-brand__name { display: grid; line-height: 1.1; min-width: 0; }
.dash-brand__name b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.dash-brand__name small { font-size: var(--fs-2xs); color: var(--side-dim); font-weight: 600; white-space: nowrap; }
.dash-side__btn {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--side-text);
  border: 1px solid color-mix(in srgb, var(--side-text) 16%, transparent); background: color-mix(in srgb, var(--side-text) 5%, transparent);
  transition: background-color .2s, border-color .2s;
}
.dash-side__btn:hover { background: color-mix(in srgb, var(--side-text) 12%, transparent); border-color: color-mix(in srgb, var(--side-text) 26%, transparent); }
.dash-side__btn .dash-ico { width: 17px; height: 17px; }
.dash-side__nav {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2px 12px 12px; position: relative; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent);
}
.dash-side__nav::-webkit-scrollbar { display: none; }
.dash-side__group { margin-top: 14px; }
.dash-side__group:first-child { margin-top: 6px; }
.dash-side__label { display: block; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--side-faint); padding: 0 12px 6px; }
.dash-nav__item {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 11px; width: 100%; height: 40px; padding: 0 10px 0 12px; border-radius: 12px;
  font-weight: 600; font-size: var(--fs-md); color: var(--side-dim); white-space: nowrap; text-align: left; text-decoration: none; transition: color .2s, background-color .2s;
}
.dash-nav__item .dash-ico { width: 19px; height: 19px; transition: color .2s; }
.dash-nav__item:hover { background: var(--side-hover); color: var(--side-text); }
.dash-nav__item.is-active { color: var(--side-text); background: transparent; }
.dash-nav__item.is-active > .dash-ico:first-child { color: var(--side-accent); }
.dash-nav__item > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dash-nav__pill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: rgba(255, 255, 255, .075); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.dash-nav__pill::before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--side-accent); }
.dash-nav__count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: var(--fs-2xs); font-weight: 700; background: rgba(255, 255, 255, .08); color: var(--side-dim); font-style: normal; }
.dash-nav__item.is-active .dash-nav__count { background: rgba(255, 255, 255, .12); color: var(--side-text); }
.dash-nav__count--hot { background: var(--side-accent) !important; color: var(--on-side-accent) !important; }
.dash-nav__chev { width: 15px !important; height: 15px !important; opacity: .5; }
.dash-nav__item.is-open .dash-nav__chev { transform: rotate(90deg); }
.dash-nav__subs { position: relative; margin: 2px 0 4px 21px; }
.dash-nav__sub { position: relative; display: flex; align-items: center; width: 100%; height: 34px; padding: 0 10px 0 22px; font-size: var(--fs-md); font-weight: 600; color: var(--side-faint); white-space: nowrap; text-decoration: none; border-radius: 10px; transition: color .2s, background-color .2s; }
.dash-nav__sub::before { content: ''; position: absolute; left: 0; top: -2px; height: 19px; width: 12px; border-left: 1.5px solid var(--side-line-2); border-bottom: 1.5px solid var(--side-line-2); border-bottom-left-radius: 9px; }
.dash-nav__sub:not(:last-child)::after { content: ''; position: absolute; left: 0; top: 17px; bottom: -2px; border-left: 1.5px solid var(--side-line-2); }
.dash-nav__sub:hover, .dash-nav__sub.is-active { color: var(--side-text); }
.dash-nav__sub:hover { background: var(--side-hover); }
.dash-nav__sub.is-active::before { border-color: var(--side-accent); }
.dash-side__foot { padding: 10px 12px 12px; display: grid; gap: 8px; margin-top: auto; }
.dash-side__goal { display: grid; gap: 4px; padding: 12px 14px 13px; border-radius: var(--r-tile); background: var(--side-2); box-shadow: inset 0 0 0 1px var(--side-line); color: var(--side-text); text-align: left; }
.dash-side__goal small { font-size: var(--fs-2xs); font-weight: 700; color: var(--side-dim); text-transform: uppercase; letter-spacing: .06em; }
.dash-side__goal b { font-weight: 600; font-size: var(--fs-xl); letter-spacing: -.01em; }
.dash-side__goal b em { font-style: normal; font-size: var(--fs-sm); color: var(--side-dim); font-weight: 600; letter-spacing: 0; }
.dash-side__goal .dash-meter { background: rgba(255, 255, 255, .1); margin-top: 4px; }
.dash-side__goal .dash-meter > i { background: var(--side-accent); }
/* the account card shows who is signed in; its menu button stretches over the whole card, so the card is one click target
   while the button's own label stays one line */
.dash-mecard { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 7px 8px; border-radius: 14px; text-align: left; color: var(--side-text); transition: background-color .2s; }
.dash-mecard:hover { background: var(--side-hover); }
.dash-mecard .dash-av__status { border-color: var(--side); }
.dash-mecard__menu { display: grid; place-items: center; flex: none; color: var(--side-dim); }
.dash-mecard__menu::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.dash-mecard__menu:focus-visible { outline: none; }
.dash-mecard:has(> .dash-mecard__menu:focus-visible) { outline: 2px solid var(--side-accent); outline-offset: 2px; }
.dash-mecard__txt { display: grid; min-width: 0; line-height: 1.25; flex: 1; }
.dash-mecard__txt b { font-weight: 600; font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-mecard__txt small { font-size: var(--fs-xs); color: var(--side-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* rail: icons only, counts become corner dots */
.dash-side.is-rail { width: var(--rail-w); }
.dash-side.is-rail .dash-side__head { flex-direction: column; padding: 16px 0 8px; gap: 12px; }
.dash-side.is-rail .dash-brand { flex: none; }
.dash-side.is-rail :is(.dash-brand__name, .dash-side__label, .dash-nav__item > span, .dash-nav__chev, .dash-nav__subs, .dash-mecard__txt, .dash-mecard__menu > .dash-ico, .dash-side__goal) { display: none; }
.dash-side.is-rail .dash-side__nav { padding: 2px 14px 10px; }
.dash-side.is-rail .dash-side__group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--side-line); }
.dash-side.is-rail .dash-side__group:first-child { border-top: 0; }
.dash-side.is-rail .dash-nav__item { justify-content: center; padding: 0; gap: 0; }
.dash-side.is-rail .dash-nav__count { position: absolute; top: 7px; right: 9px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; background: var(--side-dim); box-shadow: 0 0 0 2px var(--side); }
.dash-side.is-rail .dash-nav__item.is-active .dash-nav__count { background: var(--side-text); }
.dash-side.is-rail .dash-mecard { justify-content: center; padding: 6px; }
.dash-side.is-rail .dash-side__collapse .dash-ico { transform: scaleX(-1); }

.dash-top { display: flex; align-items: center; gap: 10px; min-height: var(--top-h); padding-top: 14px; min-width: 0; }
/* the search bar is a frame around one button; the button stretches over the whole bar,
   and the shortcut hint sits beside it as decoration, outside the button's label */
.dash-search {
  position: relative; display: flex; align-items: center; gap: 10px; height: 44px; width: min(440px, 42vw); min-width: 0; padding: 0 8px 0 14px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line-3); color: var(--faint); font-weight: 500; text-align: left;
}
.dash-search:hover { color: var(--muted); }
.dash-search__btn { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 100%; text-align: left; }
.dash-search__btn::after { content: ''; position: absolute; inset: -1px; border-radius: 14px; }
.dash-search__btn:focus-visible { outline: none; }
.dash-search:has(> .dash-search__btn:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.dash-search__btn > span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-search > .dash-kbd { position: relative; pointer-events: none; }
.dash-kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); background: var(--card-2); white-space: nowrap; }
.dash-top__spacer { flex: 1; }
.dash-clock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); padding: 0 6px; white-space: nowrap; }
.dash-live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.dash-live-dot__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--good); opacity: 0; pointer-events: none; }
.dash-rec { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); flex: none; }
.dash-bell { position: relative; }
.dash-bell__badge { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: var(--on-bad); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.dash-me { border-radius: 50%; padding: 2px; border: 1px solid var(--line-2); flex: none; }

/* ── Page head, crumbs, tabs ─────────────────────────────────────────────── */
.dash-phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin: 6px 0 20px; }
.dash-phead__txt { min-width: 0; }
.dash-crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin-bottom: 8px; flex-wrap: wrap; }
.dash-crumbs a { color: inherit; text-decoration: none; }
.dash-crumbs a:hover { color: var(--text); }
.dash-crumbs .dash-ico { width: 13px; height: 13px; opacity: .6; }
.dash-ttl { margin: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.04; letter-spacing: -.025em; font-weight: 600; }
.dash-ttl .word, .dash-split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.dash-ttl .ch, .dash-split .ch { display: inline-block; }
.dash-phead__sub { color: var(--muted); margin: 8px 0 0; font-size: var(--fs-base); max-width: 62ch; text-wrap: pretty; }
.dash-phead__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dash-tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; font-weight: 600; font-size: var(--fs-md); color: var(--muted); white-space: nowrap; flex: none; }
.dash-tab:hover, .dash-tab.is-active { color: var(--text); }
.dash-tab .dash-nav__count { height: 18px; background: var(--well); color: var(--muted); }
.dash-tabs__bar { position: absolute; left: 0; bottom: 0; height: 2.5px; width: 1px; border-radius: 2px; background: var(--primary); transform-origin: 0 0; pointer-events: none; }

/* phone tab bar (graphite, like the sidebar) */
.dash-tabbar { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); height: 66px; padding: 6px; border-radius: 22px; background: var(--side); box-shadow: inset 0 0 0 1px var(--side-line), 0 18px 40px -18px rgba(8, 14, 30, .6); }
.dash-tabbar__item { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 16px; font-size: var(--fs-2xs); font-weight: 600; color: var(--side-dim); min-height: 48px; min-width: 0; }
.dash-tabbar__item .dash-ico { width: 21px; height: 21px; }
.dash-tabbar__item.is-active { color: var(--side-text); }
.dash-tabbar__item.is-active > .dash-ico { color: var(--side-accent); }
.dash-tabbar__dot { position: absolute; top: 5px; left: calc(50% + 7px); width: 9px; height: 9px; border-radius: 50%; background: var(--side-accent); box-shadow: 0 0 0 2px var(--side); }
.dash-tabbar__pill { position: absolute; z-index: 0; left: 0; top: 6px; width: 0; height: 48px; border-radius: 16px; background: rgba(255, 255, 255, .085); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); pointer-events: none; }
.dash-tabbar :focus-visible { outline-color: var(--side-accent); }
.dash-app .dash-tabbar--dock { display: none; }

/* ── Cards, KPI tiles, stat cards ────────────────────────────────────────── */
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--card-pad); min-width: 0; position: relative; }
.dash-card--flush { padding: 0; overflow: hidden; }
.dash-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
/* the title block shares the line with the tools while both fit; in a narrow card (two side by side next to the menu on a tablet) the tools drop below it instead of running past the card */
.dash-card__head > :first-child { flex: 1 1 12rem; min-width: 0; }
.dash-card--flush > .dash-card__head { padding: 18px 18px 0; }
.dash-card__title { margin: 0; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.005em; display: flex; align-items: center; gap: 8px; }
.dash-card__sub { font-size: var(--fs-sm); color: var(--muted); margin: 2px 0 0; font-weight: 500; }
.dash-card__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: none; max-width: 100%; }
.dash-link { color: var(--primary-ink); font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; text-decoration: none; }
.dash-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dash-link .dash-ico { width: 14px; height: 14px; }

.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dash-kpi { border-radius: var(--r-card); padding: 16px 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; position: relative; overflow: hidden; }
.dash-kpi[data-tone] { background: var(--tile); color: var(--on-tile); border-color: transparent; }
.dash-kpi__label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-kpi[data-tone] .dash-kpi__label { color: var(--on-tile-dim); }
.dash-kpi__icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 9%, transparent); color: inherit; flex: none; }
.dash-kpi__icon .dash-ico { width: 16px; height: 16px; }
.dash-kpi__value { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.01em; margin-top: 12px; line-height: 1.1; display: block; }
.dash-kpi__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.dash-kpi[data-tone] .dash-kpi__foot { color: var(--on-tile-dim); }
.dash-kpi__spark { position: absolute; right: 16px; top: 58px; width: 76px; height: 30px; color: currentColor; opacity: .75; }
[data-tone="cobalt"] { --tile: var(--tile-cobalt); --tone: var(--cobalt); }
[data-tone="citron"] { --tile: var(--tile-citron); --tone: var(--citron-t); }
[data-tone="sky"] { --tile: var(--tile-sky); --tone: var(--sky); }
[data-tone="slate"] { --tile: var(--tile-slate); --tone: var(--slate); }
[data-tone="amber"] { --tile: var(--tile-amber); --tone: var(--amber); }
[data-tone="teal"] { --tile: var(--tile-teal); --tone: var(--teal); }
.dash-delta { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; color: var(--good); background: color-mix(in srgb, var(--good) var(--soft), transparent); }
.dash-delta--down { color: var(--bad); background: color-mix(in srgb, var(--bad) var(--soft), transparent); }
.dash-kpi[data-tone] .dash-delta, .dash-delta--tile { color: var(--on-tile); background: color-mix(in srgb, var(--on-tile) 10%, transparent); }
.dash-delta .dash-ico { width: 11px; height: 11px; stroke-width: 2.4; }

/* Fernly stat card: a big figure, an arrow that turns toward you */
.dash-stat { display: flex; flex-direction: column; min-height: 178px; }
.dash-stat__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dash-stat__title { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.dash-arrow { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: var(--text); box-shadow: inset 0 0 0 1.5px currentColor; transition: transform .3s var(--ease-css), background-color .2s, color .2s; }
.dash-arrow:hover { transform: rotate(45deg); background: var(--text); color: var(--card); }
.dash-stat__num { margin: auto 0 10px; padding-top: 18px; font-size: clamp(42px, 4vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.dash-stat__note { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); color: var(--muted); }
.dash-trend { display: inline-flex; align-items: center; gap: 1px; padding: 0 4px; border-radius: 5px; font-size: 11px; line-height: 16px; font-weight: 600; color: var(--good); box-shadow: inset 0 0 0 1px currentColor; }
.dash-trend--down { color: var(--bad); }
.dash-trend .dash-ico { width: 10px; height: 10px; stroke-width: 2.6; }
.dash-stat--hero { color: var(--accent-100); background: linear-gradient(135deg, var(--accent-800) 0%, var(--accent-950) 100%); border-color: transparent; box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--accent-950) 70%, transparent); overflow: hidden; }
.dash-stat--hero::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--accent-400) 28%, transparent), transparent 60%); }
.dash-stat--hero > * { position: relative; z-index: 1; }
.dash-stat--hero .dash-arrow { background: var(--accent-100); color: var(--accent-950); box-shadow: none; }
.dash-stat--hero .dash-arrow:hover { background: var(--accent-400); }
.dash-stat--hero .dash-stat__note, .dash-stat--hero .dash-trend { color: var(--accent-100); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.dash-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-btn);
  font-weight: 600; font-size: var(--fs-md); white-space: nowrap; flex-shrink: 0; max-width: 100%; border: 1px solid var(--line-2); background: var(--card); color: var(--text); text-decoration: none;
}
.dash-btn:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.dash-btn .dash-ico { width: 17px; height: 17px; }
.dash-btn--primary { background: var(--primary); color: var(--on-primary); border-color: transparent; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.dash-btn--primary:hover { border-color: transparent; background: color-mix(in srgb, var(--primary) 88%, var(--text)); }
.dash-btn--ink { background: var(--pill); color: var(--on-pill); border-color: transparent; }
.dash-btn--ink:hover { border-color: transparent; }
.dash-btn--ghost { border-color: transparent; background: transparent; }
.dash-btn--ghost:hover { background: var(--well); border-color: transparent; }
.dash-btn--soft { background: var(--well); border-color: transparent; }
.dash-btn--danger { color: var(--bad); }
.dash-btn--sm { height: 32px; padding: 0 12px; border-radius: 10px; font-size: var(--fs-sm); }
.dash-btn[disabled] { opacity: .5; cursor: not-allowed; }
.dash-ibtn { width: 38px; height: 38px; border-radius: var(--r-ctl); display: inline-grid; place-items: center; flex: none; color: var(--text); border: 1px solid var(--line); background: var(--card); }
.dash-ibtn:hover { border-color: var(--line-2); background: var(--card-2); }
.dash-ibtn--sm { width: 30px; height: 30px; border-radius: 9px; }
.dash-ibtn--sm .dash-ico { width: 16px; height: 16px; }
.dash-ibtn--bare { border-color: transparent; background: transparent; }
.dash-ibtn--bare:hover { background: var(--well); border-color: transparent; }
.dash-ibtn.is-on { color: var(--primary-ink); background: color-mix(in srgb, var(--primary) 12%, transparent); border-color: transparent; }
/* Fernly save button: the label lifts out, a check draws in */
.dash-save { overflow: hidden; }
.dash-save__label, .dash-save__done { display: inline-flex; align-items: center; gap: 8px; }
.dash-save__done { position: absolute; inset: 0; justify-content: center; opacity: 0; }
.dash-save__done .dash-ico { width: 18px; height: 18px; stroke-width: 2.4; }

/* ── Pills, chips, badges, avatars, stamp ───────────────────────────────── */
.dash-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; color: var(--pc, var(--muted)); background: color-mix(in srgb, var(--pc, var(--muted)) var(--soft), transparent); }
.dash-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.dash-pill--plain::before { display: none; }
.dash-pill--good { --pc: var(--good); } .dash-pill--warn { --pc: var(--warn); } .dash-pill--bad { --pc: var(--bad); } .dash-pill--info { --pc: var(--info); }
.dash-pill--tone { --pc: var(--tone); color: var(--text); } /* chart tones are 3:1 marks, not text: the label stays in text ink, the dot and tint carry the tone */
.dash-pill--tone::before { background: var(--tone); }
/* Fernly status tag: square-ish, outlined in its own colour */
.dash-status { display: inline-flex; align-items: center; flex: none; padding: 2px 8px; border-radius: 6px; font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap; color: var(--sc); background: color-mix(in srgb, var(--sc) var(--soft), transparent); box-shadow: inset 0 0 0 1px currentColor; }
.dash-status--done { --sc: var(--good); } .dash-status--prog { --sc: var(--warn); } .dash-status--pend { --sc: var(--bad); } .dash-status--info { --sc: var(--info); }
.dash-status--wait { --sc: var(--muted); }
.dash-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; background: var(--card); flex-shrink: 0; }
.dash-chip:hover { color: var(--text); }
.dash-chip.is-on, .dash-chip[aria-pressed="true"] { background: var(--pill); color: var(--on-pill); border-color: transparent; }
.dash-chip .dash-ico { width: 14px; height: 14px; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: var(--fs-2xs); font-weight: 700; background: var(--primary); color: var(--on-primary); }
.dash-badge--bad { background: var(--bad); color: var(--on-bad); }
.dash-badge--soft { background: var(--well); color: var(--muted); }
.dash-av { --s: 34px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; flex: none; font-size: max(11px, calc(var(--s) * .36)); font-weight: 700; letter-spacing: .01em; background: var(--av-bg, #d6e0ff); color: var(--av-ink, #1d3285); position: relative; }
.dash-av[data-av="cobalt"] { --av-bg: #d6e0ff; --av-ink: #1d3285; }
.dash-av[data-av="citron"] { --av-bg: #e8f0a6; --av-ink: #3c4306; }
.dash-av[data-av="sky"] { --av-bg: #cfe8f8; --av-ink: #10486b; }
.dash-av[data-av="slate"] { --av-bg: #dfe3ec; --av-ink: #2f3a4e; }
.dash-av[data-av="amber"] { --av-bg: #f6deb6; --av-ink: #5f3b05; }
.dash-av[data-av="teal"] { --av-bg: #c9ebe3; --av-ink: #0d4b42; }
.dash-av--sm { --s: 26px; } .dash-av--lg { --s: 44px; }
.dash-av__status { position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; min-width: 8px; min-height: 8px; border-radius: 50%; border: 2px solid var(--card); background: var(--line-3); }
.dash-av__status[data-s="online"] { background: var(--good); }
.dash-av__status[data-s="away"] { background: var(--warn); }
.dash-avs { display: flex; }
.dash-avs .dash-av { box-shadow: 0 0 0 2px var(--card); }
.dash-avs .dash-av + .dash-av { margin-left: calc(var(--s) * -.18); }
.dash-stamp { display: inline-grid; justify-items: center; line-height: 1; padding: 8px 16px 7px; border: 3px solid var(--good); border-radius: 12px; color: var(--good); font-weight: 700; font-size: var(--fs-4xl); letter-spacing: .12em; background: color-mix(in srgb, var(--good) 8%, transparent); pointer-events: none; transform: rotate(-12deg); }
.dash-stamp small { font-size: var(--fs-2xs); letter-spacing: .08em; margin-top: 3px; }
.dash-stamp--bad { border-color: var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }

/* ── Segmented controls: three markers ───────────────────────────────────── */
/* Tessly: a raised thumb glides under the choice */
.dash-seg { position: relative; display: inline-flex; padding: 3px; border-radius: var(--r-btn); background: var(--well); border: 1px solid var(--line); flex: none; max-width: 100%; }
.dash-seg__btn { position: relative; z-index: 1; height: 30px; padding: 0 12px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-seg__btn.is-on, .dash-seg__btn[aria-pressed="true"] { color: var(--text); }
.dash-seg__thumb { position: absolute; z-index: 0; top: 3px; left: 0; height: 30px; width: 0; border-radius: 9px; background: var(--raised); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--line-3); pointer-events: none; }
/* Fernly: an ink pill that stretches as it travels */
.dash-seg--stretch { padding: 4px; border-radius: 999px; background: var(--card); border-color: var(--line-2); }
.dash-seg--stretch .dash-seg__btn { height: 36px; padding: 0 18px; border-radius: 999px; font-size: var(--fs-md); }
.dash-seg--stretch .dash-seg__btn.is-on, .dash-seg--stretch .dash-seg__btn[aria-pressed="true"] { color: var(--on-pill); }
.dash-seg--stretch .dash-seg__thumb { top: 4px; height: 36px; width: 100px; border-radius: 999px; background: var(--pill); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); transform-origin: 0 50%; }
/* Olvara: a marker cut to the choice by clip-path, leading edge first */
.dash-seg--clip { padding: 4px; border-radius: 22px; background: var(--side); border-color: transparent; }
.dash-seg--clip .dash-seg__btn { height: 32px; padding: 0 14px; border-radius: 18px; color: var(--side-dim); }
.dash-seg--clip .dash-seg__btn.is-on, .dash-seg--clip .dash-seg__btn[aria-pressed="true"] { color: var(--on-side-accent); }
.dash-seg--clip .dash-seg__thumb { inset: 0; top: 0; width: auto; height: auto; border-radius: 0; background: var(--side-accent); box-shadow: none; clip-path: inset(0 100% 0 0); }
.dash-seg--clip :focus-visible { outline-color: var(--side-accent); }

/* Fernly vertical tabs: a rail or a pill that stretches toward where it goes */
.dash-vtabs { position: relative; display: grid; gap: 4px; align-content: start; }
.dash-vtabs__btn { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 18px; border-radius: 12px; font-weight: 600; font-size: var(--fs-md); color: var(--muted); text-align: left; white-space: nowrap; transition: color .2s; }
.dash-vtabs__btn:hover, .dash-vtabs__btn[aria-selected="true"] { color: var(--text); }
.dash-vtabs__rail { position: absolute; left: 0; top: 2px; width: 5px; height: 40px; border-radius: 0 4px 4px 0; background: var(--primary); transform-origin: 50% 0; pointer-events: none; }
.dash-vtabs__pill { position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line-3); transform-origin: 50% 0; pointer-events: none; }

/* ── Fields, switch, checkbox ────────────────────────────────────────────── */
.dash-field { display: grid; gap: 6px; min-width: 0; }
.dash-field > span, .dash-field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-input, .dash-select, .dash-textarea { width: 100%; min-width: 0; height: 42px; padding: 0 13px; border-radius: var(--r-btn); border: 1px solid var(--line-3); background: var(--raised); color: var(--text); font-size: var(--fs-base); font-weight: 500; }
.dash-textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.dash-select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.dash-input:focus, .dash-select:focus, .dash-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); outline: none; }
.dash-input::placeholder, .dash-textarea::placeholder { color: var(--faint); }
.dash-field.is-bad .dash-input, .dash-field.is-bad .dash-select, .dash-field.is-bad .dash-textarea { border-color: var(--bad); }
.dash-field__err { color: var(--bad); font-size: var(--fs-xs); font-weight: 600; }
.dash-field__help { color: var(--muted); font-size: var(--fs-xs); }
.dash-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dash-form-grid .span-2 { grid-column: 1 / -1; }
.dash-searchbox { position: relative; flex: 1 1 220px; max-width: 340px; min-width: 0; }
.dash-searchbox .dash-ico { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--faint); }
.dash-searchbox .dash-input { padding-left: 36px; height: 38px; }
.dash-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
/* switch: Tessly's size, Fernly's squash; the knob is a real element so GSAP can move it */
.dash-switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line-3); flex: none; transition: background-color .28s; }
.dash-switch[aria-checked="true"] { background: var(--primary); }
.dash-switch__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.dash-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dash-switch-row:last-child { border-bottom: 0; }
.dash-switch-row b { display: block; font-weight: 600; }
.dash-switch-row small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.dash-check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-3); display: grid; place-items: center; flex: none; color: transparent; background: var(--raised); }
.dash-check .dash-ico { width: 14px; height: 14px; stroke-width: 2.6; }
.dash-check[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.dash-check-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.dash-check-row span { transition: color .2s; }
.dash-check-row.is-done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-3); }

/* ── Meter, tables, lists, empty, description list ───────────────────────── */
.dash-meter { display: block; position: relative; height: 6px; border-radius: 999px; background: var(--well); overflow: hidden; min-width: 40px; }
.dash-meter > i { display: block; height: 100%; border-radius: inherit; background: var(--tone, var(--primary)); transform-origin: 0 50%; transform: scaleX(0); }
.dash-row > .dash-meter { flex: 1; }
.dash-table-wrap { overflow-x: auto; scrollbar-width: thin; }
.dash-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-md); }
.dash-table th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); }
.dash-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table tbody tr.is-click { cursor: pointer; }
.dash-table tbody tr.is-click:hover td { background: var(--card-2); }
.dash-table .num { text-align: right; }
.dash-table .sub { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.dash-th-sort { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: inherit; font-size: inherit; }
.dash-th-sort .dash-ico { width: 12px; height: 12px; opacity: .7; }
.dash-th-sort[aria-sort] { color: var(--text); }
.dash-list { display: grid; margin: 0; padding: 0; list-style: none; }
.dash-li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.dash-li:last-child { border-bottom: 0; }
.dash-li__main { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.dash-li__main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-li__main small { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a clickable row is rounded, so its divider is drawn as a straight line inset from the corners instead of a border that would curve up at them */
.dash-li--click { position: relative; cursor: pointer; border-radius: 12px; padding-inline: 8px; margin-inline: -4px; border-bottom-color: transparent; }
.dash-li--click::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 1px; background: var(--line); pointer-events: none; }
.dash-li--click:last-child::after { display: none; }
.dash-li--click:hover { background-color: var(--card-2); }
.dash-tico { width: 34px; height: 34px; border-radius: var(--r-ctl); display: grid; place-items: center; flex: none; color: var(--tone, var(--primary)); background: color-mix(in srgb, var(--tone, var(--primary)) var(--soft), transparent); }
.dash-tico .dash-ico { width: 17px; height: 17px; }
.dash-time { color: var(--faint); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.dash-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 38px 18px; color: var(--muted); }
.dash-empty__icon { width: 52px; height: 52px; border-radius: var(--r-tile); display: grid; place-items: center; background: var(--well); color: var(--muted); }
.dash-empty__icon .dash-ico { width: 24px; height: 24px; }
.dash-empty b { color: var(--text); font-weight: 600; font-size: var(--fs-lg); }
.dash-empty p { margin: 0; max-width: 36ch; }
/* the label column is as wide as its longest label, up to half the list; past that labels wrap, so a value keeps room for its words (on a phone, long labels squeezed the values until words split) */
.dash-dl { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: 10px 18px; font-size: var(--fs-md); margin: 0; }
.dash-dl dt { color: var(--muted); font-weight: 500; min-width: 0; }
.dash-dl dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ── Overlays ─────────────────────────────────────────────────────────────── */
.dash-scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); }
.dash-drawer { position: fixed; z-index: 95; top: 10px; right: 10px; bottom: 10px; width: min(480px, calc(100vw - 20px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; overflow: hidden; }
.dash-drawer__head, .dash-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dash-drawer__head { padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.dash-drawer__title { margin: 0; font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.dash-drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.dash-drawer__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
/* one record at a time: Previous and Next or Back in a bar over the title, the full-page link under it */
.dash-drawer__ttl { min-width: 0; }
.dash-drawer__title { overflow-wrap: anywhere; }
.dash-drawer__title:focus { outline: none; }
.dash-drawer__head.has-bar { flex-direction: column; align-items: stretch; gap: 12px; }
.dash-drawer__bar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dash-drawer__steps { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.dash-drawer__count { margin-left: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-drawer__gap { flex: 1; }
.dash-drawer__ttl .dash-drawer__page { margin-top: 10px; }
.dash-drawer__foot[hidden] { display: none; }
.dash-ibtn[aria-disabled="true"] { opacity: .4; cursor: default; }
.dash-ibtn[aria-disabled="true"]:hover { background: var(--card); border-color: var(--line); }
/* the row whose drawer is open keeps a tint, so the person keeps their place */
.dash-table tbody tr.is-open td { background: color-mix(in srgb, var(--primary) 10%, var(--card)); }
.dash-li.is-open { background-color: color-mix(in srgb, var(--primary) 10%, transparent); }
.dash-modal { position: fixed; z-index: 96; left: 50%; top: 50%; width: min(540px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); translate: -50% -50%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; overflow: hidden; }
.dash-modal__head { padding: 20px 22px 4px; }
.dash-modal__title { margin: 0; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.015em; }
.dash-modal__body { padding: 14px 22px 8px; overflow-y: auto; }
.dash-modal__foot { padding: 14px 22px 20px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dash-hero-tile { border-radius: var(--r-tile); padding: 16px 18px; background: var(--tile, var(--tile-cobalt)); color: var(--on-tile); display: grid; gap: 2px; margin-bottom: 16px; }
.dash-hero-tile__label, .dash-hero-tile__meta { font-size: var(--fs-sm); font-weight: 600; color: var(--on-tile-dim); }
.dash-hero-tile__value { font-size: var(--fs-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.dash-menu { position: fixed; z-index: 110; min-width: 220px; max-width: calc(100vw - 20px); padding: 6px; border-radius: var(--r-tile); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.dash-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 10px; font-size: var(--fs-md); font-weight: 600; text-align: left; white-space: nowrap; color: var(--text); }
.dash-menu__item:hover, .dash-menu__item:focus-visible { background: var(--well); outline: none; }
.dash-menu__item .dash-ico { width: 17px; height: 17px; color: var(--muted); }
.dash-menu__item kbd { margin-left: auto; font: inherit; font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); }
.dash-menu__item--danger, .dash-menu__item--danger .dash-ico { color: var(--bad); }
.dash-menu__sep { height: 1px; background: var(--line); margin: 5px 4px; }
.dash-menu__label { font-size: var(--fs-2xs); font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 4px; }
.dash-toasts { position: fixed; z-index: 130; right: 18px; bottom: 18px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.dash-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 48px; max-width: min(440px, calc(100vw - 36px)); padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--pill); color: var(--on-pill); box-shadow: var(--shadow-pop); font-size: var(--fs-md); font-weight: 600; }
.dash-toast > .dash-ico { width: 18px; height: 18px; color: var(--pill-accent); }
.dash-toast > span { flex: 1; min-width: 0; }
.dash-toast button { height: 32px; padding: 0 12px; border-radius: 9px; font-weight: 700; font-size: var(--fs-sm); color: var(--on-pill); background: color-mix(in srgb, var(--on-pill) 14%, transparent); white-space: nowrap; flex: none; }
.dash-toast--quiet { padding-right: 14px; }
.dash-finder { position: fixed; z-index: 140; left: 50%; top: 12vh; translate: -50% 0; width: min(620px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop); overflow: hidden; }
.dash-finder--inline { position: relative; left: auto; top: auto; translate: none; width: 100%; max-height: none; }
.dash-finder__in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dash-finder__in .dash-ico { color: var(--faint); }
.dash-finder__in input { flex: 1; height: 58px; border: 0; background: none; font-size: var(--fs-xl); font-weight: 500; min-width: 0; outline: none; }
.dash-finder__in input::placeholder { color: var(--faint); }
/* the input has no ring of its own, so the row's rule turns primary and thickens while the input has focus */
.dash-finder__in:has(input:focus-visible) { box-shadow: inset 0 -2px 0 var(--primary); }
.dash-finder__list { overflow-y: auto; padding: 8px; }
.dash-finder__group { font-size: var(--fs-2xs); font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 10px 10px 4px; }
.dash-finder__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; text-align: left; }
.dash-finder__item.is-on { background: var(--well); }
.dash-finder__foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); flex-wrap: wrap; }
.dash-tip { position: fixed; z-index: 120; pointer-events: none; padding: 6px 10px; border-radius: 9px; background: var(--pill); color: var(--on-pill); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-pop); }
.dash-float-up { position: fixed; z-index: 150; pointer-events: none; font-weight: 700; font-size: var(--fs-lg); color: var(--good); white-space: nowrap; }
.is-flash { animation: dash-flash 1s ease-out; }
:where(.is-flash) { border-radius: 6px; } /* zero weight, so a pill or badge keeps its own corners after a flash */
/* the flash fades from a citron wash; in dark the wash is thinner, so light text stays at 7:1 or better through the whole fade */
:root { --flash-bg: color-mix(in srgb, var(--citron) 70%, transparent); }
[data-theme="dark"] { --flash-bg: color-mix(in srgb, var(--citron) 16%, transparent); }
@keyframes dash-flash { from { background: var(--flash-bg); } to { background: transparent; } }
.dash-lifted { position: fixed; z-index: 160; margin: 0; pointer-events: none; box-shadow: var(--shadow-pop) !important; }

/* ── Charts ───────────────────────────────────────────────────────────────── */
.dash-chart { position: relative; width: 100%; min-width: 0; }
.dash-chart svg { display: block; overflow: visible; touch-action: pan-y; }
.dash-chart__grid { stroke: var(--line); stroke-width: 1; }
.dash-chart__cross { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 4; }
.dash-chart__tick { fill: var(--faint); font-size: var(--fs-2xs); font-weight: 600; }
.dash-chart__val { fill: var(--text); font-size: var(--fs-2xs); font-weight: 700; }
.dash-chart__tip { position: absolute; top: 4px; z-index: 2; width: 150px; padding: 9px 11px; border-radius: 12px; background: var(--pill); color: var(--on-pill); font-size: var(--fs-xs); pointer-events: none; display: grid; gap: 4px; box-shadow: var(--shadow-pop); }
.dash-chart__tip b { font-weight: 700; }
.dash-chart__tip span { display: flex; align-items: center; gap: 6px; }
.dash-chart__tip i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.dash-chart__tip em { margin-left: auto; font-style: normal; font-weight: 700; }
.dash-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin: 0; padding: 0; list-style: none; }
.dash-legend span, .dash-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dash-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--tone, var(--primary)); flex: none; }
.dash-legend i.is-dash { height: 2px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--tone) 0 4px, transparent 4px 7px); }
.dash-legend i.is-hatch { background: repeating-linear-gradient(-45deg, var(--hatch) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--hatch); }
.dash-ring { position: relative; flex: none; }
.dash-ring svg { display: block; transform: rotate(-90deg); }
.dash-ring__in { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.dash-ring__in b { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.dash-ring__in small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
/* Fernly gauge: three arcs fan out over a hatched track */
.dash-gauge { position: relative; display: grid; place-items: end center; margin: 18px auto 0; width: min(100%, 300px); }
.dash-gauge svg { width: 100%; height: auto; overflow: visible; display: block; }
.dash-gauge__track, .dash-gauge__seg { stroke-width: 44; stroke-linecap: round; fill: none; }
.dash-gauge__track { stroke: var(--card-2); }
.dash-gauge__seg { stroke-dasharray: 0 100; }
.dash-gauge__seg--done { stroke: var(--primary); }
.dash-gauge__seg--prog { stroke: var(--gauge-prog); }
.dash-gauge__read { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; margin: 0; }
.dash-gauge__pct { font-size: clamp(40px, 4vw, 54px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.dash-gauge__lbl { margin-top: 4px; font-size: var(--fs-md); color: var(--muted); }
.dash-sw { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.dash-sw--done { background: var(--primary); } .dash-sw--prog { background: var(--gauge-prog); }
.dash-sw--pend { background: repeating-linear-gradient(-45deg, var(--hatch) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--hatch); }
.dash-gauge-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 22px 0 0; padding: 0; list-style: none; font-size: var(--fs-md); color: var(--muted); }
.dash-gauge-legend li { display: inline-flex; align-items: center; gap: 8px; }
/* tally: a few labelled counts in a row. In a .dash-card--foot (head, body, tally)
   the tally sits on the card's floor however tall the row is. */
.dash-card--foot { display: grid; grid-template-rows: auto 1fr auto; }
.dash-card--foot > :nth-child(2) { align-self: start; }
.dash-tally { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.dash-tally li { display: grid; gap: 6px; min-width: 0; }
.dash-tally small { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tally small .dash-sw { width: 10px; height: 10px; }
.dash-tally b { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-tally b em { margin-left: 2px; font-style: normal; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
/* Fernly pill bars: each fill rises inside its own pill; planned days are hatched */
.dash-pillbars { position: relative; }
.dash-pillbars__row { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); min-height: 190px; margin: 40px 0 0; padding: 0; list-style: none; }
.dash-pillbars__row li { display: grid; grid-template-rows: 1fr auto; gap: 10px; min-width: 0; }
.dash-pbar { position: relative; align-self: end; width: 100%; height: calc(var(--h) * 100%); min-height: 40px; border-radius: 999px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.dash-pbar__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--primary); }
.dash-pbar--soft .dash-pbar__fill { background: var(--heat-1); }
.dash-pbar--strong .dash-pbar__fill { background: var(--bar-strong); }
.dash-pbar--plan .dash-pbar__fill { background: repeating-linear-gradient(-45deg, var(--hatch) 0 2.4px, transparent 2.4px 8px); box-shadow: inset 0 0 0 1.5px var(--hatch); }
.dash-pbar__day { text-align: center; font-size: var(--fs-base); color: var(--faint); font-weight: 600; }
.dash-pillbars__tip { position: absolute; left: 0; top: 0; z-index: 2; padding: 3px 8px; border-radius: 7px; font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; color: var(--text); background: var(--raised); box-shadow: 0 0 0 1px var(--line-3), 0 6px 16px -8px rgba(19, 26, 21, .35); pointer-events: none; }
.dash-pillbars__tip::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; translate: -50% 0; background: var(--hatch); }
/* donut */
.dash-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dash-donut__fig { position: relative; width: 168px; height: 168px; flex: none; }
.dash-donut__fig svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.dash-donut__arc { fill: none; stroke-width: 16; stroke-linecap: butt; cursor: pointer; }
.dash-donut__mid { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; pointer-events: none; }
.dash-donut__mid b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.dash-donut__mid small { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.dash-donut__keys { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; min-width: 160px; }
.dash-donut__keys button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 10px; font-size: var(--fs-md); font-weight: 600; text-align: left; }
.dash-donut__keys button:hover, .dash-donut__keys button.is-on { background: var(--well); }
.dash-donut__keys i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dash-donut__keys em { margin-left: auto; font-style: normal; color: var(--muted); }
/* heatmap */
.dash-heat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 8px; align-items: center; }
.dash-heat__days { display: grid; gap: 4px; font-size: var(--fs-2xs); color: var(--faint); font-weight: 600; }
.dash-heat__grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; min-width: 0; }
.dash-heat__cell { aspect-ratio: 1; min-width: 8px; border-radius: 4px; background: var(--heat-0); }
.dash-heat__cell[data-l="1"] { background: var(--heat-1); } .dash-heat__cell[data-l="2"] { background: var(--heat-2); }
.dash-heat__cell[data-l="3"] { background: var(--heat-3); } .dash-heat__cell[data-l="4"] { background: var(--heat-4); }
.dash-heat__scale { display: flex; align-items: center; gap: 4px; font-size: var(--fs-2xs); color: var(--faint); font-weight: 600; }
.dash-heat__scale i { width: 12px; height: 12px; border-radius: 3px; }
/* Olvara stack bar */
.dash-stackbar { display: flex; gap: 3px; width: 100%; height: 12px; }
.dash-stackbar i { display: block; height: 100%; border-radius: 4px; min-width: 4px; transform-origin: 0 50%; }

/* ── Progress and live state ─────────────────────────────────────────────── */
/* Olvara stepper */
.dash-stepper { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); padding: 2px 0; margin: 0; list-style: none; }
.dash-stepper__track { position: absolute; left: calc(50% / var(--n, 4)); right: calc(50% / var(--n, 4)); top: 15px; height: 4px; border-radius: 2px; background: var(--well); overflow: hidden; }
.dash-stepper__fill { position: absolute; inset: 0; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); border-radius: 2px; }
.dash-stepper__step { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.dash-stepper__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 2px solid var(--line-3); color: var(--on-primary); }
.dash-stepper__dot .dash-ico { width: 15px; height: 15px; stroke-width: 2.4; }
.dash-stepper__step.is-done .dash-stepper__dot { background: var(--primary); border-color: var(--primary); }
.dash-stepper__step:not(.is-done) .dash-stepper__dot .dash-ico { visibility: hidden; }
.dash-stepper__step.is-current .dash-stepper__dot { border-color: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 20%, transparent); }
.dash-stepper__label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-stepper__step.is-done .dash-stepper__label, .dash-stepper__step.is-current .dash-stepper__label { color: var(--text); }
/* Tessly stage steps */
.dash-stages { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 4px; }
.dash-stage { display: grid; gap: 7px; text-align: left; font-size: var(--fs-2xs); font-weight: 600; color: var(--faint); padding: 2px 0; min-width: 0; }
.dash-stage i { position: relative; height: 6px; border-radius: 999px; background: var(--well); overflow: hidden; }
.dash-stage i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.dash-stage.is-on { color: var(--text); }
.dash-stage.is-on i { overflow: visible; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.dash-stage:hover span { color: var(--text); }
/* progress bar with a live figure and a finishing check */
.dash-progress { display: grid; gap: 8px; }
.dash-progress__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dash-progress__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-progress__val { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-md); white-space: nowrap; }
.dash-progress__val .dash-ico { width: 16px; height: 16px; stroke-width: 2.6; color: var(--good); }
.dash-progress__foot { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: var(--muted); }
.dash-progress.is-done .dash-meter > i { background: var(--good); }
.dash-progress.is-done .dash-progress__val { color: var(--good); }
/* run checklist: ordered steps, each ring fills 0 to 100, then a check draws */
.dash-run { position: relative; display: grid; margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.dash-run__marker { position: absolute; inset: 0; border-radius: 0; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); clip-path: inset(0 0 100% 0 round 14px); pointer-events: none; }
.dash-run__step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; min-height: 58px; }
.dash-run__ring { position: relative; width: 34px; height: 34px; }
.dash-run__ring > svg { display: block; transform: rotate(-90deg); }
.dash-run__track { fill: none; stroke: var(--well); stroke-width: 3; }
.dash-run__arc { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.dash-run__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.dash-run__step.is-current .dash-run__num { color: var(--primary-ink); }
.dash-run__disc { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: var(--on-good); transform: scale(0); }
.dash-run__disc .dash-ico { width: 17px; height: 17px; stroke-width: 2.6; }
.dash-run__body { min-width: 0; display: grid; line-height: 1.3; }
.dash-run__body b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-run__body small { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-run__step.is-done .dash-run__body b { color: var(--muted); }
.dash-run__end { display: inline-flex; align-items: center; gap: 8px; }
.dash-run__pct { min-width: 38px; text-align: right; font-weight: 700; font-size: var(--fs-md); }
/* only the running step shows its percent; in a narrow list the ring and the line under the name carry it, so the name keeps its room */
.dash-run__pct:empty { display: none; }
@container (max-width: 400px) { .dash-run__pct { display: none; } }
/* Fernly rolling digits and the dark timer card */
.dash-digits { display: inline-flex; justify-content: center; font-variant-numeric: tabular-nums; }
.dash-dg { display: inline-block; height: 1.15em; line-height: 1.15; overflow: hidden; }
.dash-dg__col { display: grid; }
.dash-dg__col span { height: 1.15em; }
.dash-dg-sep { padding: 0 .02em; }
.dash-tracker { overflow: hidden; isolation: isolate; min-height: 210px; display: flex; flex-direction: column; color: var(--accent-100); background: var(--accent-950); border-color: transparent; }
.dash-tracker::before { content: ''; position: absolute; inset: -30%; z-index: -1; background: repeating-radial-gradient(ellipse at 95% 105%, transparent 0 11px, rgba(255, 255, 255, .06) 12px 13px), radial-gradient(60% 70% at 100% 100%, var(--accent-800), transparent 70%), radial-gradient(55% 55% at 0% 0%, var(--accent-950), transparent 70%); }
.dash-tracker .dash-card__title { font-weight: 500; }
.dash-tracker__time { display: flex; justify-content: center; margin: auto 0 0; padding-top: 14px; text-align: center; font-size: clamp(38px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.02em; }
.dash-tracker__ctrl { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.dash-tbtn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--accent-950); background: var(--accent-100); flex: none; }
.dash-tbtn .dash-ico { width: 22px; height: 22px; stroke-width: 2; }
.dash-tbtn--stop { color: var(--on-bad); background: var(--bad); }
.dash-tbtn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-950), 0 0 0 5px var(--accent-100); }

/* ── Boards, calendar, feed, tray, accordion ─────────────────────────────── */
.dash-kanban { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(220px, 1fr)); gap: var(--gap); overflow-x: auto; padding-bottom: 4px; }
.dash-kcol { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-card); background: var(--card-2); border: 1px solid var(--line); min-width: 0; }
.dash-kcol__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; font-weight: 600; }
.dash-kcol__head .dash-badge { margin-right: auto; }
.dash-kcol__list { display: grid; gap: 10px; align-content: start; min-height: 96px; margin: 0; padding: 0; list-style: none; flex: 1; }
.dash-kcard { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-tile); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: grab; touch-action: none; user-select: none; }
.dash-kcard b { font-weight: 600; line-height: 1.3; }
.dash-kcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.dash-kcard.is-ghost { opacity: .35; }
.dash-kcol.is-over { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 45%, transparent); }
.dash-cal { display: grid; gap: 12px; }
.dash-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-cal__month { font-weight: 600; font-size: var(--fs-lg); }
.dash-cal__clip { overflow: hidden; }
.dash-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.dash-cal__wd { font-size: var(--fs-2xs); font-weight: 700; color: var(--faint); padding: 4px 0; text-transform: uppercase; letter-spacing: .06em; }
.dash-cal__day { position: relative; display: grid; place-items: center; height: 40px; border-radius: 12px; font-weight: 600; font-size: var(--fs-md); color: var(--text); }
.dash-cal__day:hover { background: var(--well); }
.dash-cal__day.is-out { color: var(--faint); }
.dash-cal__day.is-today { background: var(--citron); color: var(--on-citron); }
.dash-cal__day.is-sel { background: var(--pill); color: var(--on-pill); }
.dash-cal__day.has-ev::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.dash-cal__day span { display: inline-block; }
.dash-agenda { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dash-agenda li { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--card-2); }
.dash-agenda li::before { content: ''; align-self: stretch; border-radius: 4px; background: var(--tone, var(--primary)); }
.dash-feed { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.dash-feed__item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 0 14px; }
.dash-feed__item:not(:last-child)::before { content: ''; position: absolute; left: 16.5px; top: 46px; bottom: 0; border-left: 1.5px solid var(--line-2); }
.dash-feed__main { min-width: 0; display: grid; gap: 2px; padding-top: 2px; }
.dash-feed__main b { font-weight: 600; }
.dash-feed__main small { color: var(--muted); font-size: var(--fs-xs); }
.dash-tray { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 24px)); padding: 6px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-pop); transform-origin: 100% 0; }
.dash-tray__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 8px; }
.dash-tray__head b { font-weight: 700; font-size: var(--fs-lg); }
.dash-tray__row { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border-radius: 12px; }
.dash-tray__row:hover { background: var(--well); }
.dash-tray__row p { margin: 0; font-size: var(--fs-md); line-height: 1.35; }
.dash-tray__row p b { font-weight: 700; }
.dash-tray__dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--primary); }
.dash-acc { display: grid; gap: 8px; }
.dash-acc__item { border-radius: var(--r-tile); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.dash-acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 16px 18px; font-weight: 600; font-size: var(--fs-lg); text-align: left; }
.dash-acc__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--well); }
.dash-acc__icon .dash-ico { width: 16px; height: 16px; }
.dash-acc__panel { height: 0; overflow: hidden; }
.dash-acc__inner { padding: 0 18px 18px; color: var(--muted); }
.dash-acc__inner p { margin: 0; }
.dash-board { display: grid; margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.dash-board__row { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) minmax(60px, 34%) 64px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dash-board__row:last-child { border-bottom: 0; }
.dash-board__rank { font-weight: 700; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.dash-board__val { font-weight: 700; text-align: right; }
/* a narrow board moves the meter under the name so names are never cut short */
@container (max-width: 460px) {
  .dash-board__row { grid-template-columns: 22px 34px minmax(0, 1fr) auto; row-gap: 6px; }
  .dash-board__row .dash-meter { grid-column: 3 / -1; grid-row: 2; }
}
.dash-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-swatch { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sw); color: #fff; flex: none; }
.dash-swatch .dash-ico { width: 16px; height: 16px; stroke-width: 2.6; opacity: 0; }
.dash-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--sw); }
.dash-swatch[aria-pressed="true"] .dash-ico { opacity: 1; }

/* ── Preview stage helpers (used by the artifact's live previews) ────────── */
.dash-demo { padding: 20px; min-width: 0; }
.dash-demo__bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-demo__bar > .dash-demo__note { margin-right: auto; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.dash-demo__label { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1279px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-clock { display: none; }
  .dash-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  /* the search takes the room its words need before the spacer takes any (with flex: 1 the two split the bar evenly and the words were cut to a few letters) */
  .dash-search { width: auto; flex: 1 1 auto; max-width: 380px; }
  /* card grids go to one column here, as in the templates: the menu still takes its 262px, so two cards side by side would be about 225px wide */
  .dash-grid--2, .dash-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .dash-span-2 { grid-column: auto; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --top-h: 58px; --card-pad: 16px; }
  .dash-app, .dash-app.is-rail { grid-template-columns: minmax(0, 1fr); padding: 0 var(--gutter); }
  .dash-app > .dash-side { display: none; }
  .dash-main { padding: 0 0 24px; }
  .dash-app .dash-tabbar--dock { display: grid; position: sticky; bottom: 12px; z-index: 20; margin-top: var(--gap); }
  .dash-top { gap: 8px; }
  .dash-search { flex: none; width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: var(--r-ctl); }
  .dash-search__btn { justify-content: center; }
  .dash-search__btn::after { border-radius: var(--r-ctl); }
  .dash-search__btn > span, .dash-search > .dash-kbd, .dash-top__spacer + .dash-clock { display: none; }
  .dash-phead { margin: 4px 0 16px; gap: 14px; }
  .dash-phead__sub { font-size: var(--fs-md); }
  .dash-phead__actions { width: 100%; }
  .dash-phead__actions > .dash-btn { flex: 1 0 auto; height: 44px; }
  .dash-kpis { gap: 10px; }
  .dash-kpi { padding: 14px; }
  .dash-kpi__value { font-size: 18px; }
  .dash-kpi__spark { display: none; }
  .dash-card { border-radius: 18px; }
  .dash-searchbox { max-width: none; flex-basis: 100%; }
  .dash-form-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-input, .dash-select, .dash-textarea, .dash-finder__in input { font-size: 16px; }
  .dash-input, .dash-select { height: 46px; }
  .dash-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  .dash-modal { top: auto; bottom: 0; left: 0; translate: none; width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; }
  .dash-modal__foot > .dash-btn, .dash-drawer__foot > .dash-btn { flex: 1 0 auto; height: 46px; }
  .dash-toasts { left: 12px; right: 12px; justify-items: stretch; }
  .dash-toast { max-width: none; }
  .dash-table--stack thead { display: none; }
  .dash-table--stack, .dash-table--stack tbody, .dash-table--stack tr, .dash-table--stack td { display: block; width: 100%; }
  .dash-table--stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .dash-table--stack td { padding: 0; border: 0; min-width: 0; }
  .dash-table--stack td[data-hide-phone] { display: none; }
  .dash-table--stack td.num { text-align: right; }
  /* a row stacked into a card is tinted whole, not cell by cell with gaps between */
  .dash-table--stack tbody tr.is-open { background: color-mix(in srgb, var(--primary) 10%, var(--card)); }
  .dash-table--stack tbody tr.is-open td { background: none; }
  .dash-board__row { grid-template-columns: 22px 34px minmax(0, 1fr) 56px; }
  .dash-board__row .dash-meter { grid-column: 3 / -1; grid-row: 2; }
  .dash-stat__num { font-size: 42px; }
  .dash-demo { padding: 16px; }
}
@media (pointer: coarse) {
  .dash-nav__item { height: 44px; }
  .dash-nav__sub { height: 40px; }
  .dash-link { padding-block: 7px; margin-block: -7px; }
  /* the breadcrumb sits just under the top bar, so its touch area grows downward, never into the bar's buttons */
  .dash-crumbs a { padding-block: 3px 11px; margin-block: -3px -11px; }
  .dash-ibtn { width: 44px; height: 44px; }
  .dash-ibtn--sm { width: 40px; height: 40px; }
  .dash-btn { min-height: 44px; }
  .dash-btn--sm { height: 40px; min-height: 40px; }
  .dash-chip { height: 36px; }
  .dash-seg__btn, .dash-seg__thumb { height: 36px; }
  .dash-check { width: 26px; height: 26px; position: relative; }
  .dash-check::after { content: ''; position: absolute; inset: -9px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-flash { animation: none; }
  .dash-arrow { transition: none; }
}
/* additions: Charts and Status */
/* tooltips hide on touch-only screens, not on narrow frames: a narrow preview on a desktop still hovers */
@media (hover: none) { .dash-tip { display: none; } }
/* heatmap day labels share the cells' seven rows, so "Mon" sits beside Monday even when other labels are blank */
.dash-heat__days { grid-template-rows: repeat(7, minmax(0, 1fr)); align-self: stretch; align-items: center; }
/* additions: Cards and lists, Navigation */
/* aria-sort belongs on the column header, so the sort button reads its state from there */
.dash-table th[aria-sort] .dash-th-sort { color: var(--text); }
/* a word shown only when a table stacks into cards on a phone ("Due 3 Dec") */
.dash-cell-label { display: none; }
@media (max-width: 760px) { .dash-table--stack .dash-cell-label { display: inline; color: var(--muted); font-weight: 500; } }
/* finder results are listbox options (not buttons), so they say they can be clicked themselves */
.dash-finder__item { cursor: pointer; }
/* the ink pill and the clipped marker: the picked choice wears the marker's colour while the marker rests under it (it looks the same),
   so it reads right before scripts run and to contrast checkers (ours, axe), which cannot see the marker; .is-moving drops it while the marker travels */
.dash-seg--stretch .dash-seg__btn.is-on, .dash-seg--stretch .dash-seg__btn[aria-pressed="true"] { background: var(--pill); }
.dash-seg--clip .dash-seg__btn.is-on, .dash-seg--clip .dash-seg__btn[aria-pressed="true"] { background: var(--side-accent); }
.dash-seg.is-moving .dash-seg__btn { background: none; }
/* additions: Progress */
/* rolling digits: separators share the digits' 1.15 line box, so colons sit on the digits' baseline */
.dash-digits { align-items: flex-start; line-height: 1.15; }
/* additions: Actions, Forms, Boards and time, Overlays */
/* a field never stretches to its grid row, so inputs line up when a neighbour has help or an error below it */
.dash-field { align-content: start; }
/* a kanban card's footer wraps instead of squeezing a due date into a column of words */
.dash-kcard__meta { flex-wrap: wrap; }
/* additions: Charts and Status, continued */
/* a filled label keeps its own fill when it flashes: the highlight rings it and fades, instead of swapping the fill for a pale tint (white digits on a badge went unreadable for a second, then the fill snapped back) */
.dash-badge.is-flash, .dash-bell__badge.is-flash, .dash-pill.is-flash, .dash-status.is-flash, .dash-delta.is-flash { animation-name: dash-flash-ring; }
@keyframes dash-flash-ring { from { outline: 4px solid color-mix(in srgb, var(--citron) 70%, transparent); } to { outline: 4px solid transparent; } }
/* below 1280px only the top bar's clock hides; a live clock placed in a card or a list stays */
@media (max-width: 1279px) { .dash-clock { display: inline-flex; } .dash-top .dash-clock { display: none; } }
/* tinted labels mix their tint into the card colour instead of into transparency: on a card they look exactly as before, and on the page background they keep AA contrast (4.4:1 there before) */
.dash-pill { background: color-mix(in srgb, var(--pc, var(--muted)) var(--soft), var(--card)); }
.dash-status { background: color-mix(in srgb, var(--sc) var(--soft), var(--card)); }
.dash-delta:not(.dash-delta--tile) { background: color-mix(in srgb, var(--good) var(--soft), var(--card)); }
.dash-delta--down:not(.dash-delta--tile) { background: color-mix(in srgb, var(--bad) var(--soft), var(--card)); }
/* additions: Foundations */
/* the reduce-motion switch on <html> (data-reduce-motion="true", see README) calms CSS motion exactly as the system setting does; before, a bump still flashed for a second */
[data-reduce-motion="true"] .is-flash { animation: none; }
[data-reduce-motion="true"] .dash-arrow { transition: none; }

/* 71 forms: Select, DatePicker, Slider, NumberInput, RadioGroup, CopyField, SignIn, ToggleMatrix.
   Derived from the Code and Chill dashboard templates (Tessly, Fernly, Olvara) © 2026 Hasib (OVERSHOOT), used under licence. Not for redistribution.
   Every colour, size and radius comes from tokens.css. GSAP owns every transform and fade: no rule here transitions them. */

/* ── Select ── */
.dash-selectbox { position: relative; display: block; min-width: 0; }
.dash-selectbox__native { display: none; }
.dash-selectbox__field { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; min-height: 42px; padding: 5px 38px 5px 13px; border-radius: var(--r-btn); border: 1px solid var(--line-3); background: var(--raised); color: var(--text); font-size: var(--fs-base); font-weight: 500; cursor: pointer; }
.dash-selectbox--multi .dash-selectbox__field { padding-left: 6px; }
.dash-selectbox__field:focus-within, .dash-selectbox.is-open .dash-selectbox__field { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.dash-selectbox__field:focus-visible { outline: none; }
.dash-selectbox__chips { display: contents; }
.dash-selectbox__value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 30px; }
.dash-selectbox__value.is-ph { color: var(--faint); }
.dash-selectbox__input { flex: 1 1 90px; min-width: 70px; height: 30px; padding: 0 0 0 7px; border: 0; background: transparent; color: var(--text); font: inherit; }
.dash-selectbox:not(.dash-selectbox--multi) .dash-selectbox__input { padding-left: 0; }
.dash-selectbox__input::placeholder { color: var(--faint); }
.dash-selectbox__input:focus { outline: none; }
.dash-selectbox__chev { position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); pointer-events: none; }
.dash-selectbox__chip { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; height: 28px; padding: 0 3px 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.dash-selectbox__chiplbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-selectbox__x { position: relative; display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 999px; color: var(--muted); }
.dash-selectbox__x:hover { background: var(--well); color: var(--text); }
.dash-selectbox__x .dash-ico { width: 12px; height: 12px; stroke-width: 2.4; }
.dash-selectbox__pop { position: fixed; z-index: 110; display: flex; flex-direction: column; min-width: 200px; max-width: calc(100vw - 20px); padding: 6px; border-radius: var(--r-tile); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.dash-selectbox__pop[hidden] { display: none; }
.dash-selectbox__list { flex: 1 1 auto; min-height: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.dash-selectbox__group { padding: 8px 10px 4px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dash-selectbox__opt { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 38px; padding: 6px 10px; border-radius: 10px; font-size: var(--fs-md); font-weight: 600; color: var(--text); cursor: pointer; }
.dash-selectbox__opt.is-on { background: var(--well); }
.dash-selectbox__opt.is-off { color: var(--muted); cursor: not-allowed; }
.dash-selectbox__opt > .dash-ico { flex: none; width: 16px; height: 16px; color: var(--muted); }
.dash-selectbox__opt > .dash-selectbox__tick { color: var(--primary-ink); visibility: hidden; }
.dash-selectbox__opt[aria-selected="true"] > .dash-selectbox__tick { visibility: visible; }
.dash-selectbox__opt--create, .dash-selectbox__opt--create > .dash-ico { color: var(--primary-ink); }
.dash-selectbox__lbl { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dash-selectbox__hint { flex: none; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.dash-selectbox__dot { flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--tone, var(--primary)); }
.dash-selectbox__empty { padding: 12px 10px; font-size: var(--fs-md); color: var(--muted); overflow-wrap: anywhere; }

/* ── DatePicker ── */
.dash-datepicker { display: block; min-width: 0; }
.dash-datepicker__field { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 42px; padding: 4px 12px; border-radius: var(--r-btn); border: 1px solid var(--line-3); background: var(--raised); color: var(--text); font-size: var(--fs-base); font-weight: 600; text-align: left; }
.dash-datepicker__field:focus-visible, .dash-datepicker.is-open .dash-datepicker__field { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.dash-datepicker__ico { flex: none; width: 18px; height: 18px; color: var(--muted); }
.dash-datepicker__chev { flex: none; width: 16px; height: 16px; color: var(--muted); }
.dash-datepicker__text { display: grid; flex: 1 1 auto; min-width: 0; overflow: hidden; line-height: 1.25; }
.dash-datepicker__main, .dash-datepicker__vs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-datepicker__vs { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.dash-datepicker__field.is-ph .dash-datepicker__main { color: var(--faint); font-weight: 500; }
.dash-datepicker__pop { position: fixed; z-index: 110; display: grid; gap: 10px; max-width: calc(100vw - 20px); overflow: auto; overscroll-behavior: contain; padding: 10px; border-radius: var(--r-tile); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.dash-datepicker__pop[hidden] { display: none; }
.dash-datepicker__pop.has-presets { grid-template-columns: auto auto; }
.dash-datepicker__presets { position: relative; display: flex; flex-direction: column; gap: 2px; align-self: start; min-width: 0; padding: 4px; border-radius: var(--r-btn); background: var(--well); }
.dash-datepicker__preset { position: relative; z-index: 1; height: 34px; padding: 0 12px; border-radius: 9px; font-size: var(--fs-md); font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; }
.dash-datepicker__preset:hover, .dash-datepicker__preset[aria-pressed="true"] { color: var(--text); }
.dash-datepicker__mark { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; border-radius: 9px; background: var(--raised); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--line-3); pointer-events: none; opacity: 0; }
.dash-datepicker__cal { display: grid; gap: 6px; width: 288px; max-width: 100%; min-width: 0; }
.dash-datepicker__head { display: flex; align-items: center; gap: 6px; }
.dash-datepicker__month { flex: 1 1 auto; min-width: 0; text-align: center; font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.dash-datepicker__wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 2px 0; text-align: center; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dash-datepicker__clip { overflow: hidden; }
.dash-datepicker__grid { display: grid; }
.dash-datepicker__row { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dash-datepicker__band { position: absolute; inset: 2px 0; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, transparent); clip-path: inset(0 100% 0 0); pointer-events: none; }
.dash-datepicker__cell { position: relative; display: grid; place-items: center; height: 40px; min-width: 0; }
.dash-datepicker__day { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: var(--fs-md); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.dash-datepicker__day:hover:not(:disabled) { background: var(--well); }
.dash-datepicker__day.is-out { color: var(--faint); }
.dash-datepicker__day.is-out.is-in { color: var(--muted); }
.dash-datepicker__day.is-in:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.dash-datepicker__day.is-today { background: var(--citron); color: var(--on-citron); }
.dash-datepicker__day.is-start, .dash-datepicker__day.is-end, .dash-datepicker__day.is-start:hover, .dash-datepicker__day.is-end:hover { background: var(--pill); color: var(--on-pill); }
.dash-datepicker__day.is-cmp { outline: 1.5px dashed var(--primary-ink); outline-offset: -3px; }
.dash-datepicker__day:disabled { color: var(--faint); text-decoration: line-through; cursor: not-allowed; }
.dash-datepicker__day:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.dash-datepicker__cmp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px 2px; border-top: 1px solid var(--line); }
.dash-datepicker__cmplbl { display: grid; min-width: 0; }
.dash-datepicker__cmplbl b { font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.dash-datepicker__cmplbl small { font-size: var(--fs-xs); color: var(--muted); }
.dash-datepicker__foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.dash-datepicker__sum { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }

/* ── Slider ── */
.dash-slider { --thumb: 22px; position: relative; display: block; min-width: 0; padding: 38px calc(var(--thumb) / 2) 6px; }
.dash-slider--plain { padding-top: 14px; }
.dash-slider__track { position: relative; height: 6px; border-radius: 999px; background: var(--line-3); cursor: pointer; touch-action: pan-y; }
.dash-slider__track::before { content: ''; position: absolute; inset: -14px 0; }
.dash-slider__fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 999px; background: var(--primary); transform-origin: 0 50%; pointer-events: none; }
.dash-slider__thumb { position: absolute; z-index: 1; top: 50%; left: 0; width: var(--thumb); height: var(--thumb); margin: calc(var(--thumb) / -2) 0 0 calc(var(--thumb) / -2); border-radius: 999px; background: var(--raised); border: 2px solid var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .16); cursor: grab; }
.dash-slider__thumb.is-active { z-index: 2; }
.dash-slider.is-dragging .dash-slider__thumb { cursor: grabbing; }
.dash-slider__thumb:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.dash-slider__bubble { position: absolute; left: 50%; bottom: calc(100% + 8px); padding: 4px 8px; border-radius: 9px; background: var(--pill); color: var(--on-pill); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.dash-slider__ticks { position: relative; height: 30px; margin-top: 6px; }
.dash-slider__tick { position: absolute; top: 0; width: 0; }
.dash-slider__tick i { position: absolute; top: 0; left: -1px; width: 2px; height: 6px; border-radius: 1px; background: var(--line-3); }
.dash-slider__tick b { position: absolute; top: 11px; left: 0; transform: translateX(-50%); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.dash-slider__tick:first-child b { transform: translateX(calc(var(--thumb) / -2)); }
.dash-slider__tick:last-child b { transform: translateX(calc(-100% + var(--thumb) / 2)); }

/* ── NumberInput ── */
.dash-number { display: inline-flex; align-items: stretch; max-width: 100%; height: 42px; border-radius: var(--r-btn); border: 1px solid var(--line-3); background: var(--raised); color: var(--text); }
.dash-number:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.dash-number__btn { display: grid; place-items: center; flex: none; width: 40px; border-radius: 11px; color: var(--text); }
.dash-number__btn:hover { background: var(--well); }
.dash-number__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.dash-number__btn .dash-ico { width: 16px; height: 16px; stroke-width: 2.2; }
.dash-number__btn.is-limit { color: var(--muted); }
.dash-number__box { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 76px; padding: 0 10px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; cursor: text; }
.dash-number__input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 8px; border: 0; border-radius: 0; background: transparent; color: transparent; caret-color: transparent; font: inherit; text-align: center; }
.dash-number__input:focus { outline: none; }
.dash-number__input::selection { background: transparent; }
.dash-number.is-typing .dash-number__input { color: var(--text); caret-color: var(--primary); background: var(--raised); }
.dash-number.is-typing .dash-number__input::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.dash-number.is-typing .dash-number__roll, .dash-number.is-typing .dash-number__unit { visibility: hidden; }
.dash-number__roll { display: inline-flex; align-items: center; text-align: center; pointer-events: none; white-space: nowrap; }
.dash-number__unit { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); pointer-events: none; white-space: nowrap; }

/* ── RadioGroup ── */
.dash-radios { position: relative; display: grid; gap: 2px; min-width: 0; }
.dash-radios__opt { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.dash-radios__opt:hover { background: var(--well); }
.dash-radios__opt:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; }
.dash-radios__opt[aria-disabled="true"] { cursor: not-allowed; }
.dash-radios__opt[aria-disabled="true"] .dash-radios__text b { color: var(--muted); }
.dash-radios__dot { flex: none; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--line-3); background: var(--raised); }
.dash-radios__opt[aria-checked="true"] .dash-radios__dot { border-color: var(--primary); }
.dash-radios__pip { position: absolute; z-index: 1; top: 0; left: 0; width: 10px; height: 10px; border-radius: 999px; background: var(--primary); pointer-events: none; opacity: 0; }
.dash-radios__text { display: grid; flex: 1 1 auto; gap: 1px; min-width: 0; }
.dash-radios__text b { font-size: var(--fs-base); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dash-radios__text small { font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.dash-radios__price { flex: none; font-size: var(--fs-base); font-weight: 600; color: var(--text); white-space: nowrap; }
.dash-radios__price small { margin-left: 2px; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.dash-radios--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.dash-radios--cards .dash-radios__opt { display: grid; align-content: start; gap: 4px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--card); }
.dash-radios--cards .dash-radios__opt:hover { background: var(--card); border-color: color-mix(in srgb, var(--primary) 50%, var(--line-2)); }
.dash-radios--cards .dash-radios__opt:focus-visible { outline-offset: 3px; }
.dash-radios--cards .dash-radios__text { padding-right: 30px; }
.dash-radios--cards .dash-radios__text b { font-size: var(--fs-lg); }
.dash-radios--cards .dash-radios__text small { font-size: var(--fs-sm); }
.dash-radios--cards .dash-radios__price { margin-top: 8px; font-size: var(--fs-2xl); letter-spacing: -.01em; }
.dash-radios__ok { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--primary); color: var(--on-primary); opacity: 0; }
.dash-radios__ok .dash-ico { width: 13px; height: 13px; stroke-width: 2.8; }
.dash-radios--cards .dash-radios__opt[aria-checked="true"] .dash-radios__ok { opacity: 1; }
.dash-radios__ring { position: absolute; z-index: 1; top: 0; left: 0; width: 0; height: 0; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); pointer-events: none; opacity: 0; }

/* ── CopyField ── */
.dash-copyfield { display: flex; align-items: center; gap: 6px; min-width: 0; height: 42px; padding: 0 4px 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line-3); background: var(--well); color: var(--text); }
.dash-copyfield__icon { display: grid; place-items: center; flex: none; color: var(--muted); }
.dash-copyfield__icon .dash-ico { width: 16px; height: 16px; }
.dash-copyfield__value { position: relative; flex: 1 1 auto; min-width: 0; }
.dash-copyfield__text { display: block; overflow: hidden; white-space: nowrap; font-size: var(--fs-md); font-weight: 500; font-variant-numeric: tabular-nums; }
.dash-copyfield__text.is-masked { letter-spacing: .08em; }
.dash-copyfield__eye { color: var(--muted); }
.dash-copyfield__btn { height: 32px; }
.dash-copyfield__ico { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; }
.dash-copyfield__ico .dash-ico { grid-area: 1 / 1; width: 16px; height: 16px; }
.dash-copyfield__k { opacity: 0; }

/* ── SignIn ── */
.dash-signin { display: grid; place-items: center; min-width: 0; }
.dash-signin__card { position: relative; display: grid; gap: 16px; width: min(420px, 100%); min-width: 0; padding: 30px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.dash-signin__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--side-accent); color: var(--fixed-ink); }
.dash-signin__mark .dash-ico { width: 20px; height: 20px; }
.dash-signin__step { display: grid; gap: 16px; min-width: 0; }
.dash-signin__step[hidden] { display: none; }
.dash-signin__title { margin: 0; font-size: var(--fs-4xl); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--text); }
.dash-signin__sub { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.dash-signin__sub b { font-weight: 600; color: var(--text); }
.dash-signin__form { display: grid; gap: 16px; min-width: 0; }
.dash-signin__go { width: 100%; height: 46px; }
.dash-signin__link { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--primary-ink); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; cursor: pointer; }
.dash-signin__link[hidden] { display: none; }
.dash-signin__boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 352px; }
.dash-signin .dash-signin__box { height: 56px; padding: 0; text-align: center; font-size: var(--fs-3xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-signin .dash-signin__box.is-bad { border-color: var(--bad); }
.dash-signin__err { margin: 0; }
.dash-signin__resend { min-height: 20px; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.dash-signin__ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--good); color: var(--on-good); }
.dash-signin__ok .dash-ico { width: 28px; height: 28px; stroke-width: 2.6; }

/* ── ToggleMatrix ── */
.dash-matrix { display: grid; gap: 12px; min-width: 0; }
.dash-matrix__colbar { display: none; }
.dash-matrix__scroll { min-width: 0; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--card); }
.dash-matrix--scroll .dash-matrix__scroll { max-height: var(--matrix-h); overscroll-behavior: contain; }
.dash-matrix__table { width: 100%; border-collapse: separate; border-spacing: 0; }
.dash-matrix__table th, .dash-matrix__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.dash-matrix__table tbody tr:last-child > * { border-bottom: 0; }
.dash-matrix__table thead th { position: sticky; top: 0; z-index: 2; background: var(--card); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dash-matrix__table thead .dash-matrix__corner, .dash-matrix__table tbody th { text-align: left; }
.dash-matrix__allhead, .dash-matrix__rowall { border-left: 1px solid var(--line); }
.dash-matrix__head { display: inline-flex; align-items: center; gap: 8px; }
.dash-matrix__row { display: grid; gap: 2px; min-width: 0; }
.dash-matrix__row b { font-size: var(--fs-base); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dash-matrix__row small { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.dash-matrix__table td > .dash-check { margin-inline: auto; }
.dash-matrix__lbl { display: none; }
.dash-matrix__all > .dash-ico { grid-area: 1 / 1; }
.dash-matrix__all .dash-matrix__dash { visibility: hidden; }
.dash-matrix__all[aria-checked="mixed"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.dash-matrix__all[aria-checked="mixed"] > .dash-ico { visibility: hidden; }
.dash-matrix__all[aria-checked="mixed"] > .dash-matrix__dash { visibility: visible; }
.dash-matrix__foot { display: flex; justify-content: flex-end; }

/* ── phones ── */
@media (max-width: 760px) {
  .dash-selectbox__field { min-height: 46px; font-size: 16px; }
  .dash-datepicker__field { min-height: 46px; font-size: 16px; }
  .dash-datepicker__pop.has-presets { grid-template-columns: minmax(0, 1fr); }
  .dash-datepicker__presets { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .dash-datepicker__preset { flex: none; }
  .dash-datepicker__cal { width: min(336px, calc(100vw - 42px)); }
  .dash-slider__tick:not(:first-child):not(:last-child) b { display: none; }
  .dash-number { height: 46px; }
  .dash-number__box { font-size: var(--fs-xl); }
  .dash-copyfield { height: 46px; }
  .dash-signin__card { padding: 20px; border-radius: 22px; }
  .dash-signin__title { font-size: var(--fs-3xl); }
  .dash-signin .dash-signin__box { height: 48px; font-size: var(--fs-2xl); }
  .dash-matrix--scroll .dash-matrix__scroll { max-height: none; }
  .dash-matrix__scroll { overflow: visible; border: 0; border-radius: 0; background: none; }
  .dash-matrix__table, .dash-matrix__table tbody, .dash-matrix__table tr, .dash-matrix__table th, .dash-matrix__table td { display: block; }
  .dash-matrix__table thead { display: none; }
  .dash-matrix__table tbody tr { margin-bottom: 10px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--card); }
  .dash-matrix__table tbody tr:last-child { margin-bottom: 0; }
  .dash-matrix__table tbody th { padding: 0 0 8px; border: 0; }
  .dash-matrix__table tbody td, .dash-matrix__table tbody tr:last-child > td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border: 0; border-top: 1px solid var(--line); text-align: left; }
  .dash-matrix__table td > .dash-check { margin: 0; }
  .dash-matrix__lbl { display: block; min-width: 0; font-size: var(--fs-md); font-weight: 600; color: var(--text); }
  .dash-matrix__colbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--card-2); }
  .dash-matrix__colbar-t { flex-basis: 100%; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .dash-matrix__colitem { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-md); font-weight: 600; color: var(--text); }
}

/* ── touch: 44px targets ── */
@media (pointer: coarse) {
  .dash-selectbox__opt { min-height: 44px; }
  .dash-selectbox__x::after { content: ''; position: absolute; inset: -11px; }
  .dash-datepicker__preset { height: 40px; }
  .dash-datepicker__cell { height: 46px; }
  .dash-datepicker__band { inset: 1px 0; }
  .dash-datepicker__day { width: 100%; max-width: 44px; height: 44px; }
  .dash-slider { --thumb: 28px; }
  .dash-slider__thumb::after { content: ''; position: absolute; inset: -10px; border-radius: 999px; }
  .dash-number__btn { width: 44px; }
  .dash-radios__opt { min-height: 44px; }
  .dash-copyfield__eye { width: 40px; height: 40px; }
}

/* ── 72 feedback: Alert, Skeleton, SyncStatus, Pagination, FilterBar, BulkBar, Popover, Upload ──
   Derived from the Code and Chill dashboard templates (Tessly, Fernly, Olvara) © 2026 Hasib (OVERSHOOT), used under licence. Not for redistribution.
   Tokens only. GSAP owns every transform; the two CSS animations here (the skeleton sweep and the spinner) turn off under reduced motion. */

/* ── Alert: a Card-shaped notice in a StatusPill tone; the tone is also a mark and a word ── */
.dash-alert { --ac: var(--info); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; min-width: 0;
  padding: 14px 12px 14px 16px; border-radius: var(--r-tile); border: 1px solid color-mix(in srgb, var(--ac) 30%, var(--card)); background: color-mix(in srgb, var(--ac) 7%, var(--card)); color: var(--text); }
.dash-alert[hidden] { display: none; }
.dash-alert--good { --ac: var(--good); }
.dash-alert--warn { --ac: var(--warn); }
.dash-alert--bad { --ac: var(--bad); }
.dash-alert__icon { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; color: var(--ac); }
.dash-alert__icon .dash-ico { width: 20px; height: 20px; stroke-width: 1.9; }
.dash-alert__main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.dash-alert__body { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.dash-alert__title { font-weight: 600; font-size: var(--fs-md); line-height: 1.4; overflow-wrap: anywhere; }
.dash-alert__text { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
.dash-alert__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-alert__x { margin: -4px 0; color: var(--muted); }
.dash-alert__x:hover { color: var(--text); background: color-mix(in srgb, var(--ac) 14%, var(--card)); }
/* the full-width bar: square ends and one rule underneath, for the top of a flush card or of the page */
.dash-alert--bar { align-items: center; border-radius: 0; border-width: 0 0 1px; padding: 10px 12px 10px 18px; }
.dash-alert--bar .dash-alert__icon { margin-top: 0; }
.dash-alert--bar .dash-alert__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.dash-alert--bar .dash-alert__x { margin: -6px 0; }

/* ── Skeleton: bones shaped like the content, one soft sweep across each ── */
.dash-skel { --skel-bone: color-mix(in srgb, var(--text) 8%, transparent); --skel-band: color-mix(in srgb, var(--raised) 80%, transparent); display: block; min-width: 0; }
.dash-skel:where([data-theme="dark"] *) { --skel-bone: color-mix(in srgb, var(--text) 9%, transparent); --skel-band: color-mix(in srgb, var(--text) 8%, transparent); }
.dash-skel__in { display: grid; gap: 14px; min-width: 0; }
.dash-skel__bone { position: relative; display: block; height: 10px; border-radius: 999px; background: var(--skel-bone); overflow: hidden; flex: none; }
.dash-skel__bone::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--skel-band), transparent); transform: translateX(-100%); animation: dash-skel-sweep 1.6s ease-in-out .2s infinite; }
@keyframes dash-skel-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.dash-skel__bone--title { height: 14px; }
.dash-skel__bone--sm { height: 8px; }
.dash-skel__bone--value { height: 26px; border-radius: 9px; }
.dash-skel__bone--av { width: 34px; height: 34px; border-radius: 50%; }
.dash-skel__bone--end { width: 58px; height: 22px; }
.dash-skel__bone--bar { flex: 1 1 0; min-width: 0; border-radius: 8px 8px 3px 3px; }
.dash-skel__head { display: grid; gap: 8px; }
.dash-skel__lines { display: grid; gap: 11px; }
.dash-skel--list .dash-skel__in, .dash-skel--table .dash-skel__in { gap: 0; }
.dash-skel__row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.dash-skel__row:last-child { border-bottom: 0; }
.dash-skel__main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.dash-skel__tr { display: grid; grid-template-columns: 2fr 1.3fr 1fr .8fr; gap: 14px; align-items: center; padding: 15px 14px; border-bottom: 1px solid var(--line); }
.dash-skel__tr:last-child { border-bottom: 0; }
.dash-skel__tr--head { padding-block: 12px; }
.dash-skel__tr > span { min-width: 0; }
.dash-skel__plot { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.dash-skel--kpis .dash-skel__in { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); }
.dash-skel__kpi { display: grid; gap: 12px; align-content: start; padding: 16px 18px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
/* the spinner for a button or a label: a ring with one dark quarter, turning */
.dash-spin { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px;
  border: 2px solid color-mix(in srgb, currentColor 22%, transparent); border-top-color: currentColor; animation: dash-spin .75s linear infinite; }
@keyframes dash-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dash-skel__bone::after { animation: none; display: none; }
  .dash-spin { animation: none; }
}
.dash-skel:where([data-reduce-motion="true"] *) .dash-skel__bone::after { animation: none; display: none; }
.dash-spin:where([data-reduce-motion="true"] *) { animation: none; }

/* ── SyncStatus: the LiveIndicator's quiet label, with a mark per state ── */
.dash-sync { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-sync__ind { display: grid; place-items: center; width: 16px; height: 16px; flex: none; }
.dash-sync__ind .dash-ico { width: 16px; height: 16px; }
.dash-sync__ind .dash-spin { width: 14px; height: 14px; color: var(--primary); }
.dash-sync__label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dash-sync__pct { font-weight: 700; color: var(--text); }
.dash-sync__pct:empty { display: none; }
.dash-sync[data-state="live"], .dash-sync[data-state="syncing"] { color: var(--text); }
.dash-sync[data-state="stale"] { color: var(--warn); }
.dash-sync[data-state="failed"] { color: var(--bad); }
.dash-sync__retry { margin-left: 2px; }
.dash-sync-list { display: grid; margin: 0; padding: 0; list-style: none; }
.dash-sync-row { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.dash-sync-row:last-child { border-bottom: 0; }
.dash-sync-row__main { flex: 1 1 140px; min-width: 0; display: grid; line-height: 1.3; }
.dash-sync-row__main b { font-weight: 600; overflow-wrap: anywhere; }
.dash-sync-row__main small { color: var(--muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.dash-sync-row__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--well); overflow: hidden; opacity: 0; pointer-events: none; }
.dash-sync-row__bar > i { display: block; height: 100%; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }
.dash-sync-row[data-state="failed"] .dash-sync-row__bar > i { background: var(--bad); }

/* ── Pagination: Fernly's ink pill glides to the page; on a narrow card the numbers give way to "Page 6 of 16" ── */
.dash-pager { container-type: inline-size; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; min-width: 0; }
.dash-pager__info { margin: 0; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.dash-pager__info b { color: var(--text); font-weight: 700; }
.dash-pager__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dash-pager__per .dash-ico { width: 15px; height: 15px; }
.dash-pager__nav { display: flex; align-items: center; gap: 6px; }
.dash-pager__nums { position: relative; display: flex; gap: 2px; }
.dash-pager__num { position: relative; z-index: 1; width: 34px; height: 32px; flex: none; border-radius: 10px; font-size: var(--fs-md); font-weight: 600; color: var(--text); transition: color .2s, background-color .2s; }
.dash-pager__num:hover:not(.is-on):not(.is-gap) { background: var(--well); }
.dash-pager__num.is-on { color: var(--on-pill); background: var(--pill); }
.dash-pager.is-moving .dash-pager__num.is-on { background: transparent; }
.dash-pager__num.is-gap { color: var(--muted); cursor: default; }
.dash-pager__thumb { position: absolute; z-index: 0; left: 0; top: 0; width: 34px; height: 100%; border-radius: 10px; background: var(--pill); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); pointer-events: none; }
.dash-pager__mini { display: none; padding: 0 6px; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.dash-pager__step[disabled] { opacity: .45; cursor: not-allowed; }
.dash-pager--more { flex-direction: column; justify-content: center; gap: 10px; }
.dash-pager__more[hidden] { display: none; }
@container (max-width: 350px) {
  .dash-pager__nums { display: none; }
  .dash-pager__mini { display: inline; }
}
@media (pointer: coarse) {
  .dash-pager__num { width: 40px; height: 40px; }
  .dash-pager__thumb { width: 40px; }
  @container (max-width: 410px) {
    .dash-pager__nums { display: none; }
    .dash-pager__mini { display: inline; }
  }
}

/* ── FilterBar: Fernly's toolbar (views and a count), a search, chips that pop in and out ── */
.dash-fbar { display: grid; gap: 12px; margin-bottom: 14px; min-width: 0; }
.dash-fbar__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; min-width: 0; }
.dash-fbar__count { margin: 0; font-size: var(--fs-md); color: var(--muted); white-space: nowrap; }
.dash-fbar__count b { display: inline-block; color: var(--text); font-weight: 600; }
.dash-fbar__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dash-fbar__search { position: relative; flex: 1 1 220px; max-width: 320px; min-width: 0; }
.dash-fbar__search .dash-ico { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.dash-fbar__search .dash-input { height: 36px; padding-left: 36px; }
.dash-fbar__chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dash-fbar__chips:empty { display: none; }
.dash-fbar__chip { gap: 4px; max-width: 100%; padding: 0 3px 0 11px; color: var(--text); background: color-mix(in srgb, var(--primary) 9%, var(--card)); border-color: color-mix(in srgb, var(--primary) 32%, var(--card)); }
.dash-fbar__chip:hover { color: var(--text); }
.dash-fbar__key { color: var(--muted); font-weight: 600; }
.dash-fbar__chip b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dash-fbar__x { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; flex: none; border-radius: 50%; color: var(--muted); }
.dash-fbar__x:hover { color: var(--text); background: color-mix(in srgb, var(--primary) 18%, var(--card)); }
.dash-fbar__x .dash-ico { width: 13px; height: 13px; stroke-width: 2.2; }
.dash-fbar__clear[hidden], .dash-fbar__empty[hidden], .dash-fbar-list > [hidden] { display: none !important; }
/* the last row still showing drops its divider (the base :last-child rule only sees the last row in the markup) */
.dash-fbar-list > :nth-last-child(1 of :not([hidden])) { border-bottom-color: transparent; }
.dash-fbar__empty { padding: 28px 18px; }
.dash-fbar__empty .dash-btn { margin-top: 6px; }
@media (max-width: 760px) {
  .dash-fbar__search { max-width: none; flex-basis: 100%; }
  .dash-fbar__search .dash-input { height: 44px; }
}
@media (max-width: 400px) { .dash-fbar__views .dash-seg__btn { padding: 0 9px; } }
@media (pointer: coarse) { .dash-fbar__x { width: 30px; height: 30px; } }

/* ── BulkBar: Olvara's ink bar with light action pills, rising from the bottom ── */
.dash-bulk { position: fixed; z-index: 45; left: 0; right: 0; bottom: 24px; margin: 0 auto; width: max-content; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 22px; background: var(--side); color: var(--side-text); box-shadow: var(--shadow-pop), 0 0 0 1px var(--side-line); }
.dash-bulk[hidden] { display: none; }
.dash-bulk--in { position: absolute; z-index: 5; bottom: 16px; max-width: calc(100% - 24px); }
.dash-bulk :focus-visible { outline-color: var(--side-accent); }
.dash-bulk__count { flex: 1; padding-right: 6px; font-size: var(--fs-md); font-weight: 600; white-space: nowrap; }
.dash-bulk__n { display: inline-block; min-width: 1ch; }
.dash-bulk__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-bulk__btn { background: var(--side-accent); color: var(--on-side-accent); border-color: transparent; }
.dash-bulk__btn:hover { border-color: transparent; background: color-mix(in srgb, var(--side-accent) 88%, var(--side-text)); }
.dash-bulk__x { background: transparent; border-color: var(--side-line-2); color: var(--side-text); }
.dash-bulk__x:hover { background: var(--side-hover); border-color: var(--side-line-2); }
.dash-bulk-row.is-sel, .dash-bulk-row.is-sel > td { background: color-mix(in srgb, var(--primary) 7%, var(--card)); }
/* the select-all box: Checkbox's look, plus a bar for "some" */
.dash-bulk-all { position: relative; width: 22px; height: 22px; display: grid; place-items: center; flex: none; border-radius: 7px; border: 1.5px solid var(--line-3); color: transparent; background: var(--raised); }
.dash-bulk-all .dash-ico { grid-area: 1 / 1; width: 14px; height: 14px; stroke-width: 2.6; }
.dash-bulk-all .dash-bulk-all__mixed, .dash-bulk-all[aria-checked="mixed"] .dash-bulk-all__on { display: none; }
.dash-bulk-all[aria-checked="mixed"] .dash-bulk-all__mixed { display: block; }
.dash-bulk-all[aria-checked="true"], .dash-bulk-all[aria-checked="mixed"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
@media (max-width: 560px) {
  .dash-bulk { left: 12px; right: 12px; bottom: 16px; width: auto; flex-wrap: wrap; row-gap: 8px; padding: 10px 10px 10px 16px; }
  .dash-bulk__acts { order: 3; flex: 1 0 100%; }
  .dash-bulk__btn { flex: 1 0 auto; padding: 0 10px; }
}
@media (pointer: coarse) {
  .dash-bulk-all { width: 26px; height: 26px; }
  .dash-bulk-all::after { content: ''; position: absolute; inset: -9px; }
}

/* ── Popover: Olvara's raised card, with a stem that points at its anchor ── */
.dash-pop { position: fixed; z-index: 115; left: 0; top: 0; width: min(320px, calc(100vw - 24px)); max-width: calc(100vw - 24px); padding: 6px; border-radius: 16px;
  background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-pop); color: var(--text); }
.dash-pop:focus { outline: none; }
.dash-pop__arrow { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--raised); border: 1px solid var(--line); transform: rotate(45deg); pointer-events: none; }
.dash-pop[data-side="bottom"] .dash-pop__arrow { top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.dash-pop[data-side="top"] .dash-pop__arrow { top: calc(100% + 1px); border-left: 0; border-top: 0; border-bottom-right-radius: 3px; }
.dash-pop[data-side="right"] .dash-pop__arrow { left: -1px; border-top: 0; border-right: 0; border-bottom-left-radius: 3px; }
.dash-pop[data-side="left"] .dash-pop__arrow { left: calc(100% + 1px); border-bottom: 0; border-left: 0; border-top-right-radius: 3px; }
.dash-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px 0 10px; }
.dash-pop__title { min-width: 0; font-size: var(--fs-lg); font-weight: 600; overflow-wrap: anywhere; }
.dash-pop__body { padding: 8px 10px 10px; font-size: var(--fs-md); line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.dash-pop__body p { margin: 0 0 8px; }
.dash-pop__body > :last-child { margin-bottom: 0; }
.dash-pop__body .dash-dl { font-size: var(--fs-md); }
.dash-pop__body .dash-dl dd { color: var(--text); }
.dash-pop__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 2px; padding: 8px 4px 4px; border-top: 1px solid var(--line); }
/* a person card: avatar, name, role, then a short description list */
.dash-pop__person { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0; }
.dash-pop__person > div { display: grid; min-width: 0; line-height: 1.3; }
.dash-pop__person b { color: var(--text); font-weight: 600; font-size: var(--fs-lg); }
.dash-pop__person small { color: var(--muted); font-size: var(--fs-sm); }
.dash-pop__body .dash-field + .dash-field { margin-top: 10px; }

/* ── Upload: Fernly's import, as a drop zone that lights and a row per file ── */
.dash-upload { display: grid; gap: 12px; min-width: 0; }
.dash-upload__zone { display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 26px 18px 22px; text-align: center; cursor: pointer;
  border-radius: var(--r-tile); border: 1.5px dashed var(--line-3); background: var(--card-2); transition: border-color .2s, background-color .2s; }
.dash-upload__zone:hover { border-color: var(--muted); }
.dash-upload__zone.is-over { border-style: solid; border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--card)); }
.dash-upload__art { color: var(--muted); margin-bottom: 4px; transition: color .2s; }
.dash-upload__art .dash-ico { width: 28px; height: 28px; stroke-width: 1.6; }
.dash-upload__zone.is-over .dash-upload__art { color: var(--primary-ink); }
.dash-upload__title { margin: 0; font-size: var(--fs-lg); font-weight: 600; }
.dash-upload__hint { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--muted); }
.dash-upload__alt { margin: -4px 0 0; text-align: center; }
.dash-upload__zone[hidden], .dash-upload__alt[hidden], .dash-upload__note[hidden], .dash-upload__sum[hidden] { display: none; }
.dash-upload__note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; padding: 16px; border-radius: var(--r-tile); background: color-mix(in srgb, var(--good) 8%, var(--card)); font-weight: 600; }
.dash-upload__note > .dash-ico { width: 18px; height: 18px; stroke-width: 2.4; color: var(--good); }
.dash-upload__sum { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-upload__sum.is-bad { color: var(--bad); }
.dash-upload__sum.is-done { color: var(--good); }
.dash-upload__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dash-upload__list:empty { display: none; }
.dash-upload__file { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 10px 10px 10px 12px; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--card); }
.dash-upload__type { display: grid; place-items: center; width: 38px; height: 44px; border-radius: 9px; background: color-mix(in srgb, var(--tone, var(--slate)) 16%, var(--card)); color: var(--text); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .04em; }
.dash-upload__main { display: grid; gap: 5px; min-width: 0; }
.dash-upload__line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.dash-upload__name { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-upload__state { flex: none; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.dash-upload__meter { height: 5px; }
.dash-upload__meta { color: var(--muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.dash-upload__end { display: flex; align-items: center; justify-content: flex-end; min-width: 26px; }
.dash-upload__ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--good); color: var(--on-good); }
.dash-upload__ok .dash-ico { width: 15px; height: 15px; stroke-width: 2.6; }
.dash-upload__file.is-done .dash-upload__meter > i { background: var(--good); }
.dash-upload__file.is-done .dash-upload__state { color: var(--good); }
.dash-upload__file.is-bad .dash-upload__state, .dash-upload__file.is-bad .dash-upload__meta { color: var(--bad); }
.dash-upload__file.is-bad .dash-upload__meter > i { background: var(--bad); }
.dash-upload__file[data-err="type"] .dash-upload__meter, .dash-upload__file[data-err="size"] .dash-upload__meter { display: none; }
@media (max-width: 760px) {
  .dash-upload__zone { padding: 20px 14px 18px; }
  .dash-upload__file { gap: 10px; padding: 10px; }
}

/* ── 73 charts: LineChart, Funnel, PacingBar, Tracker, ScatterChart, Waterfall, GoalRings ── */

/* the screen reader tables: a 1px box each, clipped, so a wide table never widens the page */
.dash-linechart__sr, .dash-funnel__sr, .dash-scatterchart__sr, .dash-waterfall__sr, .dash-goalrings__sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* LineChart: Tessly's axis and tooltip, Fernly's dashed previous period, Olvara's draw */
.dash-linechart { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.dash-linechart__keys { gap: 6px 8px; }
.dash-linechart__key { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px 0 8px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); font: inherit; font-weight: 600; white-space: nowrap; flex-shrink: 0; max-width: 100%; cursor: pointer; transition: background-color .2s, color .2s; }
.dash-linechart__key:hover { background: var(--card-2); color: var(--text); }
.dash-linechart__key[aria-pressed="false"] { text-decoration: line-through; }
.dash-linechart__key[aria-pressed="false"] i { background: none; box-shadow: inset 0 0 0 2px var(--tone); }
.dash-linechart__key.is-static { cursor: default; }
.dash-linechart__key.is-static:hover { background: none; color: var(--muted); }
.dash-linechart__key i.is-dash { width: 16px; height: 3px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--tone) 0 5px, transparent 5px 9px); }
.dash-linechart__key[aria-pressed="false"] i.is-dash { opacity: .5; box-shadow: none; }
.dash-linechart__key i.is-dot { width: 16px; height: 0; border-radius: 0; background: none; border-top: 3px dotted var(--tone); }
.dash-linechart__plot { border-radius: var(--r-ctl); }
.dash-linechart__line { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dash-linechart__prev { fill: none; stroke: var(--hatch); stroke-width: 1.6; stroke-dasharray: 5 5; }
.dash-linechart__fc { fill: none; stroke-width: 2.6; stroke-dasharray: .1 5; stroke-linecap: round; }
.dash-linechart__band { fill-opacity: .14; stroke: none; }
.dash-linechart__guide { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 2 4; }
.dash-linechart__tip { width: 184px; }
.dash-linechart__tip small { display: block; margin-top: 2px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--on-pill) 22%, transparent); font-size: var(--fs-2xs); font-weight: 600; overflow-wrap: anywhere; }
.dash-linechart__mark, .dash-linechart__num { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--pill); color: var(--on-pill); font-size: var(--fs-2xs); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.dash-linechart__mark { position: absolute; z-index: 1; margin: -9px 0 0 -9px; pointer-events: none; }
.dash-linechart__events { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.dash-linechart__events li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.dash-linechart__events b { color: var(--text); font-weight: 600; }

/* Funnel: Tessly's ladder (clients.css), rung by rung */
.dash-funnel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.dash-funnel__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-funnel__hero { display: flex; align-items: baseline; gap: 10px; margin: -4px 0 14px; flex-wrap: wrap; min-width: 0; }
.dash-funnel__fig { font-size: var(--fs-4xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-funnel__note { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.dash-funnel__rungs { display: grid; gap: 6px; min-width: 0; }
.dash-funnel__rung { display: grid; grid-template-columns: 104px minmax(0, 1fr) 62px; gap: 12px; align-items: center; }
.dash-funnel__lbl { min-width: 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.dash-funnel__lbl small { display: block; margin-top: 2px; font-size: var(--fs-2xs); color: var(--muted); font-weight: 500; }
.dash-funnel__bar { display: block; height: 26px; border-radius: 9px; background: var(--well); overflow: hidden; }
.dash-funnel__bar i { display: block; height: 100%; border-radius: 9px; transform-origin: left center; }
.dash-funnel__v { text-align: right; font-size: var(--fs-md); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-funnel__step { padding-left: 116px; min-height: 26px; display: flex; align-items: center; }
.dash-funnel__step > span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.dash-funnel__step > span > svg { width: 14px; height: 14px; flex: none; }
.dash-funnel__step b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-funnel__drop { height: 22px; margin-left: 4px; }

/* PacingBar: Tessly's forecast strip and target line (deals.css), Fernly's hatch for the projection */
.dash-pacingbar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.dash-pacingbar__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dash-pacingbar__name { margin: 0; min-width: 0; font-size: var(--fs-md); font-weight: 600; overflow-wrap: anywhere; }
.dash-pacingbar__fig { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; margin: 0; }
.dash-pacingbar__fig b { font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-pacingbar__fig span { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.dash-pacingbar__state svg { width: 14px; height: 14px; flex: none; }
.dash-pacingbar__svg { display: block; width: 100%; overflow: visible; }
.dash-pacingbar__track { fill: var(--well); }
.dash-pacingbar__band { fill: var(--text); }
.dash-pacingbar__mark { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.dash-pacingbar__lbl { fill: var(--muted); font-size: var(--fs-2xs); font-weight: 700; }
.dash-pacingbar__tick { fill: var(--faint); font-size: var(--fs-2xs); font-weight: 600; }
.dash-pacingbar__keys b { margin-left: 2px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-pacingbar__keys i.dash-pacingbar__tk { width: 3px; height: 12px; border-radius: 2px; background: var(--text); }

/* Tracker: one block a day, Heatmap's cells in a row */
.dash-trackrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.dash-trackrow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dash-trackrow__sum { margin: 0; min-width: 0; font-size: var(--fs-md); color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.dash-trackrow__sum b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-trackrow__rate { margin: 0; font-size: var(--fs-md); font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-trackrow__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; margin: 0; padding: 0; list-style: none; border-radius: 6px; }
.dash-trackrow__item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.dash-trackrow__mark { display: flex; align-items: center; justify-content: center; height: 12px; width: 100%; overflow: visible; color: var(--bad); }
.dash-trackrow__mark svg { width: 10px; height: 10px; flex: none; stroke-width: 3; }
.dash-trackrow__mark i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.dash-trackrow__block { display: block; width: 100%; height: 28px; border-radius: 4px; background: var(--heat-0); box-shadow: inset 0 0 0 1px var(--line-2); }
.dash-trackrow__item[data-s="good"] .dash-trackrow__block { background: var(--good); box-shadow: none; }
.dash-trackrow__item[data-s="warn"] .dash-trackrow__block { background: var(--warn); box-shadow: none; }
.dash-trackrow__item[data-s="bad"] .dash-trackrow__block { background: var(--bad); box-shadow: none; }
.dash-trackrow__item.is-on .dash-trackrow__block { outline: 2px solid var(--text); outline-offset: 1px; }
.dash-trackrow__foot { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-2xs); color: var(--faint); font-weight: 600; }
.dash-trackrow__keys li i { background: var(--heat-0); box-shadow: inset 0 0 0 1px var(--line-2); }
.dash-trackrow__keys li[data-s="good"] i { background: var(--good); box-shadow: none; }
.dash-trackrow__keys li[data-s="warn"] i { background: var(--warn); box-shadow: none; }
.dash-trackrow__keys li[data-s="bad"] i { background: var(--bad); box-shadow: none; }
.dash-trackrow__keys svg { width: 11px; height: 11px; color: var(--bad); stroke-width: 3; margin-left: -2px; }
.dash-trackrow__keys em { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); margin-left: -2px; }
.dash-trackrow__tip { width: auto; min-width: 128px; max-width: 220px; }
.dash-trackrow__tip span { display: block; overflow-wrap: anywhere; }

/* ScatterChart: AreaChart's grid and tooltip, Donut's tone order, bubbles that grow in */
.dash-scatterchart { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.dash-scatterchart__keys i { border-radius: 50%; }
.dash-scatterchart__keys i.is-size { width: 12px; height: 12px; background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.dash-scatterchart__plot { border-radius: var(--r-ctl); }
.dash-scatterchart__dot { fill-opacity: .85; stroke: var(--card); stroke-width: 1.5; }
.dash-scatterchart__dot.is-on { fill-opacity: 1; stroke: var(--text); stroke-width: 2; }
.dash-scatterchart__ref { stroke: var(--slate); stroke-width: 1.6; stroke-dasharray: 4 5; }
.dash-scatterchart__reflbl, .dash-scatterchart__cap { fill: var(--muted); font-size: var(--fs-2xs); font-weight: 700; }
.dash-scatterchart__quad { fill: var(--faint); font-size: var(--fs-2xs); font-weight: 600; }
.dash-scatterchart__split { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.dash-scatterchart__tip { width: 176px; }
.dash-scatterchart__tip span { overflow-wrap: anywhere; }

/* Waterfall: BarChart's bars, floating from the running total */
.dash-waterfall { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.dash-waterfall__plot { border-radius: var(--r-ctl); }
.dash-waterfall__step { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 3; }

/* GoalRings: Tessly's ring, two to four inside each other */
.dash-goalrings { position: relative; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-width: 0; }
.dash-goalrings__fig { position: relative; flex: none; }
.dash-goalrings__fig svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.dash-goalrings__track { fill: none; stroke: var(--well); }
.dash-goalrings__arc, .dash-goalrings__lap { fill: none; stroke-linecap: round; cursor: pointer; }
.dash-goalrings__mid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; }
.dash-goalrings__mid b { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-goalrings__mid small { max-width: 76px; font-size: var(--fs-2xs); color: var(--muted); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.dash-goalrings__keys { display: grid; gap: 2px; flex: 1 1 240px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.dash-goalrings__key { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-ctl); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s; }
.dash-goalrings__key:hover, .dash-goalrings__key.is-on { background: var(--card-2); }
.dash-goalrings__key[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--line-2); }
.dash-goalrings__key i { width: 10px; height: 10px; border-radius: 3px; }
/* one line per goal, every word the same size: the name, then its count in the muted ink (a button's label never wraps) */
.dash-goalrings__name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dash-goalrings__name b { min-width: 0; font-size: var(--fs-md); font-weight: 600; overflow-wrap: anywhere; }
.dash-goalrings__name small { font-size: var(--fs-md); color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-goalrings__pct { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-goalrings__pct em { font-style: normal; }
.dash-goalrings__check { display: inline-grid; width: 16px; height: 16px; color: var(--good); opacity: 0; }
.dash-goalrings__check svg { width: 16px; height: 16px; stroke-width: 2.6; }

@media (max-width: 760px) {
  .dash-funnel__rung { grid-template-columns: 88px minmax(0, 1fr) 54px; gap: 8px; }
  .dash-funnel__step { padding-left: 96px; }
  .dash-goalrings { justify-content: center; }
  .dash-goalrings__keys { flex-basis: 100%; }
  .dash-linechart__events { gap: 8px 14px; }
}
@media (pointer: coarse) {
  .dash-linechart__key, .dash-goalrings__key { min-height: 44px; }
  .dash-trackrow__block { height: 30px; }
}

/* ── 74 work: ApprovalQueue, RunTrace, PipelineFlow, LogStream, Workload, Timeline ──
   Derived from the Code and Chill dashboard templates (Tessly, Fernly, Olvara) © 2026 Hasib (OVERSHOOT), used under licence. Not for redistribution. */

.dash-aq [hidden], .dash-trace [hidden], .dash-flow [hidden], .dash-log [hidden], .dash-load [hidden], .dash-tl [hidden] { display: none !important; }

/* ── ApprovalQueue: Tessly's deal card as an inbox card ── */
.dash-aq { position: relative; display: grid; gap: 14px; min-width: 0; }
.dash-aq__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; min-width: 0; }
.dash-aq__left { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); display: inline-block; }
.dash-aq__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; overflow-x: clip; overflow-clip-margin: 4px; }
.dash-aq__item { position: relative; min-width: 0; }
.dash-aq__card { position: relative; display: grid; gap: 3px; padding: 12px 12px 11px 15px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.dash-aq__item.is-selected .dash-aq__card { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.dash-aq__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-aq__kind { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dash-aq__kind .dash-ico { width: 15px; height: 15px; flex: none; }
.dash-aq__kind span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-aq__age { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-aq__age .dash-ico { width: 13px; height: 13px; }
.dash-aq__age.is-late { color: var(--bad); }
.dash-aq__title { margin-top: 8px; font-weight: 600; font-size: var(--fs-md); line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.dash-aq__co { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.dash-aq__preview { margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-aq__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; min-width: 0; }
.dash-aq__by { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-aq__by > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-aq__bot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--well); color: var(--text); }
.dash-aq__bot .dash-ico { width: 14px; height: 14px; }
.dash-aq__acts { flex-basis: 100%; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.dash-aq__why { overflow: hidden; margin: 0 -4px; }
.dash-aq__whyin { display: grid; gap: 8px; padding: 12px 4px 4px; }
.dash-aq__why .dash-textarea { min-height: 72px; }
.dash-aq__whyfoot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.dash-aq__stamp { position: absolute; inset: 0; z-index: 2; margin: auto; width: max-content; height: max-content; text-transform: uppercase; background: color-mix(in srgb, var(--good) 8%, var(--card)); }
.dash-aq__stamp--back { border-color: var(--info); color: var(--info); background: color-mix(in srgb, var(--info) 8%, var(--card)); }
.dash-aq__empty { border: 1px dashed var(--line-2); border-radius: var(--r-card); }
/* Olvara's bulk bar, kept inside the queue */
.dash-aq__bulk { position: sticky; bottom: 12px; z-index: 5; justify-self: center; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 18px; border-radius: 22px; background: var(--pill); color: var(--on-pill); box-shadow: var(--shadow-pop); }
.dash-aq__bulk b { font-weight: 600; font-size: var(--fs-md); white-space: nowrap; }
.dash-aq__bulkgo { background: var(--citron); color: var(--on-citron); border-color: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-citron) 25%, transparent); }
.dash-aq__bulkgo:hover { border-color: transparent; }
.dash-aq__bulkx { color: var(--on-pill); background: transparent; border-color: color-mix(in srgb, var(--on-pill) 30%, transparent); }
.dash-aq__bulkx:hover { background: color-mix(in srgb, var(--on-pill) 12%, transparent); border-color: color-mix(in srgb, var(--on-pill) 45%, transparent); }
.dash-aq__bulk .dash-btn:focus-visible, .dash-aq__bulk .dash-ibtn:focus-visible { outline: 2px solid var(--on-pill); outline-offset: 2px; }

/* ── RunTrace: the run checklist's ring per step, Olvara's return steps on top ── */
.dash-trace { display: grid; gap: 16px; min-width: 0; }
.dash-trace__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.dash-trace__name { display: grid; gap: 4px; min-width: 0; }
.dash-trace__name b { font-size: var(--fs-lg); font-weight: 600; overflow-wrap: anywhere; }
.dash-trace__name small { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.dash-trace__name small .dash-ico { width: 15px; height: 15px; flex: none; }
.dash-trace__clock { display: grid; justify-items: end; gap: 2px; }
.dash-trace__clock small { font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dash-trace__clock .dash-digits { font-size: var(--fs-3xl); font-weight: 700; }
.dash-trace__prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.dash-trace__bar { position: relative; display: flex; justify-content: space-between; height: 14px; min-width: 0; }
.dash-trace__track { position: absolute; left: 5px; right: 5px; top: 5px; height: 4px; border-radius: 2px; background: var(--well); overflow: hidden; }
.dash-trace__fill { position: absolute; inset: 0; background: var(--primary); transform-origin: 0 50%; }
.dash-trace__dot { position: relative; width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--raised); border: 2px solid var(--line-2); }
.dash-trace__dot.is-done { background: var(--primary); border-color: var(--primary); }
.dash-trace__dot.is-wait { border-color: var(--amber); }
.dash-trace__dot.is-bad { border-color: var(--bad); }
.dash-trace__count { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-trace__list { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-trace__step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding-bottom: 14px; }
.dash-trace__step:last-child { padding-bottom: 0; }
.dash-trace__step::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--line-2); }
.dash-trace__link { position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--primary); transform-origin: 50% 0; }
.dash-trace__step:last-child::before, .dash-trace__step:last-child .dash-trace__link { display: none; }
.dash-trace__node { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; }
.dash-trace__node svg { overflow: visible; }
.dash-trace__node > svg, .dash-trace__spin { position: absolute; inset: 0; display: block; }
.dash-trace__spin svg { display: block; }
.dash-trace__trk { fill: var(--card); stroke: var(--well); stroke-width: 3; }
.dash-trace__arc { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 28 100; visibility: hidden; }
.dash-trace__step[data-state="running"] .dash-trace__arc { visibility: visible; }
.dash-trace__step[data-state="waiting"] .dash-trace__arc { visibility: visible; stroke: var(--amber); stroke-dasharray: 100 100; }
.dash-trace__step[data-state="skipped"] .dash-trace__trk { stroke: var(--line-3); stroke-width: 1.5; stroke-dasharray: 3 4; }
.dash-trace__num { position: relative; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.dash-trace__disc { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: var(--on-good); }
.dash-trace__disc .dash-ico { width: 16px; height: 16px; stroke-width: 2.6; }
.dash-trace__step[data-state="failed"] .dash-trace__disc { background: var(--bad); color: var(--on-bad); }
.dash-trace__step[data-state="waiting"] .dash-trace__disc { inset: 5px; background: color-mix(in srgb, var(--amber) 12%, var(--card)); color: var(--amber); }
.dash-trace__step[data-state="waiting"] .dash-trace__disc .dash-ico { width: 14px; height: 14px; stroke-width: 2.2; }
.dash-trace__body { display: grid; gap: 2px; min-width: 0; padding-top: 6px; }
.dash-trace__row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.dash-trace__title { flex: 1 1 140px; min-width: 0; }
.dash-trace__title b { font-weight: 600; font-size: var(--fs-md); overflow-wrap: anywhere; }
.dash-trace__step[data-state="skipped"] .dash-trace__title b { color: var(--muted); }
.dash-trace__dur { min-width: 4ch; text-align: right; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-trace__more { margin: -6px -6px -6px 0; color: var(--muted); }
.dash-trace__sub { font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.dash-trace__act, .dash-trace__detail { overflow: hidden; }
.dash-trace__ask, .dash-trace__err { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 8px; padding: 10px 10px 10px 12px; border-radius: var(--r-tile); }
.dash-trace__ask { background: color-mix(in srgb, var(--amber) 8%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 35%, transparent); }
.dash-trace__err { background: color-mix(in srgb, var(--bad) 8%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); }
.dash-trace__ask p, .dash-trace__err p { margin: 0; flex: 1 1 200px; min-width: 0; display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.dash-trace__ask p .dash-ico, .dash-trace__err p .dash-ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.dash-trace__ask p .dash-ico { color: var(--amber); }
.dash-trace__err p { color: var(--bad); font-weight: 600; }
.dash-trace__detail ul { list-style: none; margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--card-2); display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.dash-trace__detail li { overflow-wrap: anywhere; }

/* ── PipelineFlow: stations with counts, tokens riding the connectors ── */
.dash-flow { position: relative; min-width: 0; }
.dash-flow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); }
.dash-flow__st { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 0 2px; text-align: center; }
.dash-flow__st:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px; border-radius: 1px; background: var(--line-2); }
.dash-flow__node { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1.5px solid var(--line-2); color: var(--muted); }
.dash-flow__node .dash-ico { width: 18px; height: 18px; }
.dash-flow__st.is-busy .dash-flow__node { background: var(--card); border-color: var(--line-3); color: var(--text); }
.dash-flow__st.is-now .dash-flow__node { background: var(--citron); border-color: transparent; color: var(--on-citron); }
.dash-flow__txt { display: contents; }
.dash-flow__name { order: 1; font-size: var(--fs-sm); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dash-flow__count { order: 2; display: inline-block; font-size: var(--fs-xl); font-weight: 700; line-height: 1; color: var(--text); }
.dash-flow__st.is-empty .dash-flow__count { color: var(--muted); }
.dash-flow__now { order: 3; display: inline-block; max-width: 100%; padding: 2px 7px; border-radius: 6px; background: var(--citron); color: var(--on-citron); font-size: var(--fs-2xs); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.dash-flow__tokens { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dash-flow__token { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--card); }

/* ── LogStream: live lines that the view follows ── */
.dash-log { display: grid; gap: 12px; min-width: 0; }
.dash-log__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.dash-log__levels { flex: 1 1 auto; }
.dash-log__levels .dash-chip span { font-weight: 700; }
.dash-log__ctl { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.dash-log__state { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.dash-log__state.is-paused .dash-live-dot { background: var(--muted); }
.dash-log__state.is-paused .dash-live-dot__ring { visibility: hidden; }
.dash-log__frame { position: relative; min-width: 0; }
.dash-log__view { --log-h: 300px; height: var(--log-h); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 6px 0; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--card); }
.dash-log__view:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dash-log__list { list-style: none; margin: 0; padding: 0; }
.dash-log__line { display: grid; grid-template-columns: minmax(4em, auto) 50px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 5px 14px; font-size: var(--fs-sm); line-height: 1.45; }
.dash-log__time { font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-log__lvl { justify-self: start; min-width: 46px; justify-content: center; }
.dash-log__msg { color: var(--text); overflow-wrap: anywhere; }
.dash-log__line[data-level="error"] .dash-log__msg { font-weight: 600; }
.dash-log__empty { margin: 0; padding: 24px 14px; text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-log__new { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 10px; border-radius: var(--r-pill); background: var(--pill); color: var(--on-pill); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-pop); }
.dash-log__new .dash-ico { width: 16px; height: 16px; }
.dash-log__new:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Workload: Olvara's rota grid, Tessly's forecast strip per cell ── */
.dash-load { position: relative; display: grid; gap: 14px; min-width: 0; }
.dash-load__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.dash-load__sum { margin: 0; display: inline-block; font-size: var(--fs-md); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dash-load__sum.is-over { color: var(--warn); }
.dash-load__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.dash-load__legend i.is-line { width: 2px; height: 14px; border-radius: 1px; background: var(--text); }
.dash-load__legend i.is-items { background: var(--cobalt); }
.dash-load__legend i.is-over { background: var(--amber); }
.dash-load__scroll { min-width: 0; overflow-x: auto; scrollbar-width: thin; border-top: 1px solid var(--line); }
.dash-load__grid { --name: 200px; display: grid; min-width: calc(var(--name) + var(--w, 4) * 110px); }
.dash-load__row { display: grid; grid-template-columns: var(--name) repeat(var(--w, 4), minmax(110px, 1fr)); border-bottom: 1px solid var(--line); }
.dash-load__row--foot { border-bottom: 0; }
.dash-load__name { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px 10px 0; background: var(--card); border-right: 1px solid var(--line); }
.dash-load__name > span:last-child { display: grid; min-width: 0; }
.dash-load__name b { font-size: var(--fs-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-load__name small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-load__row--head .dash-load__name, .dash-load__row--foot .dash-load__name { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-load__wk { display: grid; place-items: center; padding: 10px 6px; text-align: center; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-load__wk.is-now span { padding: 2px 9px; border-radius: var(--r-pill); background: var(--citron); color: var(--on-citron); font-weight: 700; white-space: nowrap; }
.dash-load__c { min-width: 0; padding: 6px; }
.dash-load__row--foot .dash-load__c { display: grid; align-items: center; padding: 10px 16px; }
.dash-load__cell { width: 100%; min-height: 56px; display: grid; align-content: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); text-align: left; cursor: default; }
.dash-load__cell:hover { border-color: var(--line-2); }
.dash-load__cell:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.dash-load__cell.is-over { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.dash-load__strip { position: relative; display: block; height: 14px; border-radius: 6px; background: var(--well); }
.dash-load__segs { display: flex; width: 100%; height: 100%; }
.dash-load__segs i { position: relative; flex: none; width: calc(100% / var(--max, 10)); height: 100%; background: var(--cobalt); }
.dash-load__segs i:first-child { border-radius: 6px 0 0 6px; }
.dash-load__segs i + i { box-shadow: inset 2px 0 0 var(--well); }
.dash-load__segs i.is-over { background: var(--amber); }
.dash-load__line { position: absolute; top: -4px; bottom: -4px; z-index: 1; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); }
/* one line in one size inside the cell's button: the count in bold ink, the word and the over note beside it */
.dash-load__val { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-load__val b { display: inline-block; font-size: inherit; font-weight: 700; color: var(--text); }
.dash-load__val em { font-style: normal; font-weight: 700; color: var(--warn); }
.dash-load__tip { position: absolute; z-index: 6; width: 230px; max-width: calc(100% - 8px); display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--pill); color: var(--on-pill); font-size: var(--fs-xs); box-shadow: var(--shadow-pop); pointer-events: none; }
.dash-load__tip b { font-size: var(--fs-sm); font-weight: 700; }
.dash-load__tip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.dash-load__tip li { display: grid; gap: 1px; overflow-wrap: anywhere; }
.dash-load__tip small { color: color-mix(in srgb, var(--on-pill) 72%, var(--pill)); }

/* ── Timeline: Tessly's projects timeline, Olvara's drag and zoom ── */
.dash-tl { display: grid; gap: 14px; min-width: 0; }
.dash-tl__tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; }
.dash-tl__range { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-tl__scroll { min-width: 0; overflow-x: auto; scrollbar-width: thin; border-top: 1px solid var(--line); }
.dash-tl__grid { --tl-name: 250px; position: relative; display: grid; grid-template-columns: var(--tl-name) minmax(0, 1fr); min-width: 860px; padding-bottom: 8px; }
.dash-tl__corner { position: sticky; left: 0; z-index: 3; height: 44px; display: flex; align-items: center; padding-left: 18px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); background: var(--card); border-bottom: 1px solid var(--line); }
.dash-tl__axis { position: relative; height: 44px; margin-right: 18px; border-bottom: 1px solid var(--line); }
.dash-tl__axis span { position: absolute; top: 14px; padding-left: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-tl__rows { grid-column: 1 / -1; }
.dash-tl__row { display: grid; grid-template-columns: var(--tl-name) minmax(0, 1fr); align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); }
.dash-tl__row:hover { background: var(--card-2); }
.dash-tl__name { position: sticky; left: 0; z-index: 2; align-self: stretch; display: grid; align-content: center; min-width: 0; padding: 8px 14px 8px 18px; text-align: left; background: var(--card); border-right: 1px solid var(--line); }
.dash-tl__name b { font-size: var(--fs-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tl__name small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tl__lane { position: relative; height: 58px; margin-right: 18px; }
.dash-tl__tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.dash-tl__bar { position: absolute; z-index: 1; top: 14px; height: 30px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; background: var(--tile); color: var(--on-tile); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent); cursor: grab; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.dash-tl__bar.is-cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.dash-tl__bar.is-cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.dash-tl__bar:hover { box-shadow: inset 0 0 0 2px var(--tone); }
.dash-tl__bar:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dash-tl__bar.is-dragging { z-index: 3; cursor: grabbing; box-shadow: inset 0 0 0 2px var(--tone), var(--shadow-pop); }
.dash-tl__fill { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--tone) 28%, transparent); pointer-events: none; }
.dash-tl__label { position: relative; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.dash-tl__edge { position: absolute; top: 0; right: 0; z-index: 2; width: 12px; height: 100%; cursor: ew-resize; }
.dash-tl__edge::after { content: ""; position: absolute; right: 4px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--tone) 70%, var(--text)); opacity: 0; }
.dash-tl__bar:hover .dash-tl__edge::after, .dash-tl__bar:focus-visible .dash-tl__edge::after, .dash-tl__bar.is-dragging .dash-tl__edge::after { opacity: .7; }
.dash-tl__out { position: absolute; z-index: 1; top: 21px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); white-space: nowrap; pointer-events: none; }
.dash-tl__today { position: absolute; top: 34px; bottom: 0; z-index: 0; width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--citron) 70%, transparent); pointer-events: none; }
.dash-tl__cap { position: absolute; top: -2px; left: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--citron); color: var(--on-citron); font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; }

@media (max-width: 760px) {
  .dash-aq__list { grid-template-columns: minmax(0, 1fr); }
  .dash-aq__filter { overflow-x: auto; scrollbar-width: none; }
  .dash-aq__filter .dash-seg__btn { flex: none; }
  .dash-aq__bulk { padding-left: 14px; }
  .dash-trace__clock .dash-digits { font-size: var(--fs-2xl); }
  .dash-trace__prog { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dash-flow__list { grid-template-columns: minmax(0, 1fr); }
  .dash-flow__st { grid-template-columns: 40px minmax(0, 1fr) auto; justify-items: start; align-items: center; column-gap: 12px; padding: 0 0 22px; text-align: left; }
  .dash-flow__st:last-child { padding-bottom: 0; }
  .dash-flow__st:not(:last-child)::after { left: 19px; right: auto; width: 2px; height: auto; top: calc((100% - 22px) / 2 + 24px); bottom: 4px; }
  .dash-flow__txt { display: grid; gap: 4px; justify-items: start; min-width: 0; }
  .dash-flow__count { justify-self: end; }
  .dash-log__line { gap: 8px; padding: 5px 12px; }
  .dash-load__grid { --name: 132px; }
  .dash-load__name .dash-av { display: none; }
  .dash-tl__grid { --tl-name: 150px; min-width: 700px; }
  .dash-tl__name { padding-left: 14px; }
  .dash-tl__corner { padding-left: 14px; }
}
@media (pointer: coarse) {
  .dash-log__new { height: 44px; padding: 0 18px 0 14px; }
  .dash-tl__bar { top: 7px; height: 44px; }
  .dash-tl__edge { display: none; }
  .dash-load__cell { min-height: 60px; }
}

/* ── 75 collab: TaskList, CommentThread, Inbox, AssistantChat, WeekSchedule, FileGrid, Sequence ──
   Derived from the Code and Chill dashboard templates (Tessly, Fernly, Olvara) © 2026 Hasib (OVERSHOOT), used under licence. Not for redistribution.
   Tokens only. GSAP owns every transform and opacity change here; no CSS transitions or animations. */

/* ── TaskList: rows on the agenda's card-2 tile (Tessly) ── */
.dash-task-list { display: grid; min-width: 0; }
.dash-task-list__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.dash-task-list__row { display: grid; grid-template-columns: 20px 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px 10px 6px; border-radius: 14px; background: var(--card-2); min-width: 0; color: var(--text); }
.dash-task-list__row.is-ghost { opacity: .35; }
.dash-task-list__row.is-lifted { position: relative; z-index: 2; box-shadow: var(--shadow-pop); }
.dash-task-list__row.dash-lifted { cursor: grabbing; }
.dash-task-list__grip { width: 20px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--faint); cursor: grab; touch-action: none; }
.dash-task-list__grip .dash-ico { width: 16px; height: 16px; }
.dash-task-list__grip:hover { color: var(--text); }
.dash-task-list__main { display: grid; gap: 6px; min-width: 0; }
.dash-task-list__title { font-size: var(--fs-base); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.dash-task-list__row.is-done .dash-task-list__title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-3); }
.dash-task-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; font-size: var(--fs-xs); color: var(--muted); }
.dash-task-list__due { height: 22px; }
.dash-task-list__prio { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.dash-task-list__prio i { width: 3px; border-radius: 2px; background: var(--line-2); }
.dash-task-list__prio i:nth-child(1) { height: 6px; }
.dash-task-list__prio i:nth-child(2) { height: 9px; }
.dash-task-list__prio i:nth-child(3) { height: 12px; }
.dash-task-list__prio[data-p="high"] i.is-on { background: var(--bad); }
.dash-task-list__prio[data-p="medium"] i.is-on { background: var(--warn); }
.dash-task-list__prio[data-p="low"] i.is-on { background: var(--muted); }
.dash-task-list__subs { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.dash-task-list__subs svg { width: 16px; height: 16px; transform: rotate(-90deg); flex: none; }
.dash-task-list__track { fill: none; stroke: var(--line-2); stroke-width: 2.5; }
.dash-task-list__arc { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 100; }
.dash-task-list__add { margin-top: 8px; min-width: 0; }
.dash-task-list__addbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px 10px 36px; border: 1px dashed var(--line-3); border-radius: 14px; background: none; color: var(--muted); font: inherit; font-size: var(--fs-md); font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer; }
.dash-task-list__addbtn .dash-ico { width: 18px; height: 18px; flex: none; }
.dash-task-list__addbtn:hover { color: var(--text); border-color: var(--muted); }
.dash-task-list__addbtn[hidden], .dash-task-list__form[hidden] { display: none; }
.dash-task-list__form { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash-task-list__form .dash-input { flex: 1 1 auto; min-width: 0; }
.dash-task-list__done-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-md); font-weight: 600; }

/* ── CommentThread: Tessly's conversation, as a thread ── */
.dash-comment-thread { display: grid; gap: 16px; min-width: 0; }
.dash-comment-thread__list, .dash-comment-thread__replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.dash-comment-thread__replies { gap: 14px; margin: 14px 0 0 16px; padding-left: 26px; border-left: 2px solid var(--line-2); }
.dash-comment-thread__replies:empty { display: none; }
.dash-comment-thread__item { min-width: 0; }
.dash-comment-thread__c { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; }
.dash-comment-thread__body { display: grid; gap: 6px; min-width: 0; }
.dash-comment-thread__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.dash-comment-thread__who b { font-size: var(--fs-md); font-weight: 600; overflow-wrap: anywhere; }
.dash-comment-thread__text { margin: 0; font-size: var(--fs-base); line-height: 1.5; overflow-wrap: anywhere; }
.dash-comment-thread__at { padding: 0 3px; border-radius: 6px; font-weight: 600; color: var(--primary-ink); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.dash-comment-thread__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dash-comment-thread__react, .dash-comment-thread__reply { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--muted); font: inherit; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; flex-shrink: 0; max-width: 100%; cursor: pointer; }
.dash-comment-thread__react .dash-ico { width: 14px; height: 14px; flex: none; }
.dash-comment-thread__react b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dash-comment-thread__react b:empty { display: none; }
.dash-comment-thread__react[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--card)); color: var(--primary-ink); }
.dash-comment-thread__react[aria-pressed="true"] b { color: var(--primary-ink); }
.dash-comment-thread__reply { border-color: transparent; background: none; }
.dash-comment-thread__react:hover, .dash-comment-thread__reply:hover { color: var(--text); }
.dash-comment-thread__typing { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-comment-thread__typing[hidden] { display: none; }
.dash-comment-thread__dots { display: inline-flex; gap: 4px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: var(--card-2); }
.dash-comment-thread__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dash-comment-thread__composer { position: relative; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.dash-comment-thread__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 10px; min-width: 0; }
.dash-comment-thread__row > .dash-av { margin-bottom: 6px; }
.dash-comment-thread__composer .dash-textarea { min-height: 46px; resize: none; }
.dash-comment-thread__send { height: 46px; }
.dash-comment-thread__replying { display: flex; align-items: center; gap: 6px; padding-left: 44px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-comment-thread__replying[hidden] { display: none; }
.dash-comment-thread__suggest { position: absolute; left: 44px; bottom: calc(100% - 8px); z-index: 5; display: grid; gap: 2px; min-width: 220px; max-width: calc(100% - 44px); margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line-2); border-radius: 14px; background: var(--raised); box-shadow: var(--shadow-pop); transform-origin: 0 100%; }
.dash-comment-thread__suggest[hidden] { display: none; }
.dash-comment-thread__opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: var(--fs-md); font-weight: 600; cursor: pointer; }
.dash-comment-thread__opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-comment-thread__opt small { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); white-space: nowrap; }
.dash-comment-thread__opt.is-on { background: var(--well); }

/* ── Inbox: thread list beside a reading pane (Tessly) ── */
.dash-inbox { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); height: clamp(460px, 72vh, 640px); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); color: var(--text); }
.dash-inbox__list { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.dash-inbox__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; min-width: 0; }
.dash-inbox__head b { font-size: var(--fs-lg); font-weight: 600; }
.dash-inbox__unread { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-inbox__threads { display: grid; align-content: start; gap: 2px; min-height: 0; margin: 0; padding: 4px 8px 10px; list-style: none; overflow-y: auto; }
.dash-inbox__li { min-width: 0; }
.dash-inbox__thread { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; min-width: 0; padding: 11px 10px 11px 16px; border: 0; border-radius: 14px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dash-inbox__thread:hover { background: var(--card-2); }
/* the row's one button lies over the whole row, so the row is one click target and its text stays plain text (the house rule: a button label is one line) */
.dash-inbox__open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: none; color: inherit; cursor: pointer; }
.dash-inbox__thread.is-on { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.dash-inbox__thread.is-on .dash-time { color: var(--muted); }
.dash-inbox__dot { display: none; position: absolute; left: 4px; top: 28px; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--primary); }
.dash-inbox__thread.is-unread .dash-inbox__dot { display: block; }
.dash-inbox__main { display: grid; gap: 3px; min-width: 0; overflow: hidden; }
.dash-inbox__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.dash-inbox__from { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); font-weight: 600; }
.dash-inbox__subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); font-weight: 500; }
.dash-inbox__thread.is-unread .dash-inbox__subj { font-weight: 700; }
.dash-inbox__prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--muted); }
.dash-inbox__client { justify-self: start; max-width: 100%; height: 22px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.dash-inbox__pane { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.dash-inbox__phead { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dash-inbox__back { display: none; }
.dash-inbox__who { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.dash-inbox__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dash-inbox__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--muted); }
.dash-inbox__subject { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 18px; background: var(--card-2); font-size: var(--fs-md); font-weight: 600; }
.dash-inbox__subject span { min-width: 0; overflow-wrap: anywhere; }
.dash-inbox__subject .dash-ico { width: 16px; height: 16px; flex: none; color: var(--muted); }
.dash-inbox__msgs { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 16px 18px; overflow-y: auto; }
.dash-inbox__day { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: var(--fs-xs); font-weight: 700; color: var(--faint); white-space: nowrap; }
.dash-inbox__day::before, .dash-inbox__day::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--line); }
.dash-inbox__msg { align-self: flex-start; display: grid; gap: 4px; max-width: min(78%, 520px); min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: var(--card-2); }
.dash-inbox__msg p { margin: 0; font-size: var(--fs-base); line-height: 1.5; overflow-wrap: anywhere; }
.dash-inbox__msg small { font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); }
.dash-inbox__msg.is-me { align-self: flex-end; border-color: var(--primary); border-radius: 18px 18px 6px 18px; background: var(--primary); color: var(--on-primary); }
.dash-inbox__msg.is-me small { color: var(--on-primary); }
.dash-inbox__compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.dash-inbox__compose .dash-textarea { min-height: 46px; resize: none; }
.dash-inbox__send { height: 46px; }
.dash-inbox__empty { grid-row: 1 / -1; align-self: center; }

/* ── AssistantChat: Tessly's bubbles, labelled as an assistant ── */
.dash-assistant-chat { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 12px; height: clamp(440px, 70vh, 600px); min-width: 0; }
.dash-assistant-chat__log { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 2px; overflow-y: auto; }
.dash-assistant-chat__msg { align-self: flex-start; display: grid; gap: 8px; max-width: min(86%, 560px); min-width: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: var(--card-2); }
.dash-assistant-chat__msg p { margin: 0; font-size: var(--fs-base); line-height: 1.55; overflow-wrap: anywhere; }
.dash-assistant-chat__msg.is-me { align-self: flex-end; border-color: var(--primary); border-radius: 18px 18px 6px 18px; background: var(--primary); color: var(--on-primary); }
.dash-assistant-chat__who { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); }
.dash-assistant-chat__who b { font-weight: 700; color: var(--text); }
.dash-assistant-chat__mark { width: 22px; height: 22px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--tile); color: var(--on-tile); }
.dash-assistant-chat__mark .dash-ico { width: 13px; height: 13px; }
.dash-assistant-chat__dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.dash-assistant-chat__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dash-assistant-chat__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; border-radius: 1px; background: currentColor; }
.dash-assistant-chat__sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.dash-assistant-chat__src { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-assistant-chat__src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-assistant-chat__src .dash-ico { width: 13px; height: 13px; flex: none; }
.dash-assistant-chat__chips { display: flex; gap: 8px; min-width: 0; padding-bottom: 2px; overflow-x: auto; }
.dash-assistant-chat__composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.dash-assistant-chat__composer .dash-input { height: 46px; }
.dash-assistant-chat__send { height: 46px; }

/* ── WeekSchedule: Olvara's rota blocks on an hours grid, Tessly's agenda on phones ── */
.dash-week-schedule { --hour: 52px; --gut: 54px; display: grid; gap: 14px; min-width: 0; }
.dash-week-schedule__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; min-width: 0; }
.dash-week-schedule__range { min-width: 0; font-size: var(--fs-lg); font-weight: 600; overflow-wrap: anywhere; }
.dash-week-schedule__picker { min-width: 0; overflow-x: auto; }
.dash-week-schedule[data-view="week"] .dash-week-schedule__picker { display: none; }
.dash-week-schedule__scroll { min-width: 0; overflow-x: auto; }
.dash-week-schedule__grid { min-width: 640px; }
.dash-week-schedule[data-view="day"] .dash-week-schedule__grid { min-width: 0; }
.dash-week-schedule__head { display: grid; grid-template-columns: var(--gut) repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.dash-week-schedule__dow { display: grid; justify-items: center; gap: 2px; padding: 4px 0 10px; }
.dash-week-schedule__dow b { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-week-schedule__dow small { min-width: 30px; padding: 1px 8px; border-radius: 8px; font-size: var(--fs-xl); font-weight: 600; text-align: center; color: var(--text); }
.dash-week-schedule__dow.is-today small { background: var(--citron); color: var(--on-citron); }
.dash-week-schedule__body { position: relative; display: grid; grid-template-columns: var(--gut) repeat(var(--cols), minmax(0, 1fr)); height: calc(var(--hour) * var(--span)); }
.dash-week-schedule__times { position: relative; }
.dash-week-schedule__times span { position: absolute; right: 10px; margin-top: 4px; font-size: var(--fs-2xs); font-weight: 600; color: var(--faint); white-space: nowrap; }
.dash-week-schedule__hr { position: absolute; left: var(--gut); right: 0; height: 1px; background: var(--line); pointer-events: none; }
.dash-week-schedule__col { position: relative; min-width: 0; border-left: 1px solid var(--line); }
.dash-week-schedule__col.is-today { background: color-mix(in srgb, var(--amber) 8%, transparent); }
.dash-week-schedule__col.is-today:where([data-theme="dark"] *) { background: color-mix(in srgb, var(--text) 4%, transparent); }
.dash-week-schedule[data-view="day"] .dash-week-schedule__col.is-today { background: none; }
.dash-week-schedule__ev { position: absolute; top: calc(var(--t) * var(--hour) + 2px); left: calc((100% - 6px) / var(--n) * var(--c) + 3px); width: calc((100% - 6px) / var(--n) - 3px); height: calc(var(--len) * var(--hour) - 4px); display: grid; align-content: start; gap: 2px; min-width: 0; padding: 6px 9px; overflow: hidden; border-radius: 12px; background: color-mix(in srgb, var(--tone) 16%, var(--card)); box-shadow: inset 3px 0 0 var(--tone); color: var(--text); }
.dash-week-schedule__ev b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.dash-week-schedule__ev small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--muted); }
.dash-week-schedule__ev.is-short { padding: 3px 8px; }
.dash-week-schedule__track { position: absolute; top: -0.5px; left: var(--gut); right: 0; height: 1px; background: color-mix(in srgb, var(--primary) 45%, transparent); pointer-events: none; }
.dash-week-schedule__now { position: absolute; top: 0; left: 0; right: 0; height: 0; pointer-events: none; }
.dash-week-schedule__now[hidden], .dash-week-schedule__track[hidden] { display: none; }
.dash-week-schedule__now::after { content: ''; position: absolute; top: -1px; left: calc(var(--gut) + (100% - var(--gut)) / var(--cols) * var(--ti)); width: calc((100% - var(--gut)) / var(--cols)); height: 2px; border-radius: 2px; background: var(--primary); }
.dash-week-schedule__nowlbl { position: absolute; right: calc(100% - var(--gut) + 4px); top: -10px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; }
.dash-week-schedule__agenda { display: none; gap: 16px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.dash-week-schedule__aday { display: grid; min-width: 0; }
.dash-week-schedule__ahead { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-md); font-weight: 600; }
.dash-week-schedule__ahead small { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--well); font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); }
.dash-week-schedule__today { padding: 1px 8px; border-radius: 8px; background: var(--citron); color: var(--on-citron); }
.dash-week-schedule__none { margin: 0; color: var(--muted); }

/* ── FileGrid: Tessly's tone tiles in a grid or a list ── */
.dash-file-grid { display: grid; gap: 14px; min-width: 0; }
.dash-file-grid__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; }
.dash-file-grid__crumbs { display: flex; flex: 1 1 200px; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; font-size: var(--fs-md); }
.dash-file-grid__crumb { position: relative; max-width: 100%; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.dash-file-grid__crumb:hover { background: var(--card-2); color: var(--text); }
.dash-file-grid__here { min-width: 0; padding: 4px 8px; font-weight: 600; overflow-wrap: anywhere; }
.dash-file-grid__sep { width: 14px; height: 14px; flex: none; color: var(--faint); }
.dash-file-grid__sel { display: flex; align-items: center; gap: 8px; }
.dash-file-grid__sel[hidden] { display: none; }
.dash-file-grid__count { font-size: var(--fs-md); font-weight: 600; white-space: nowrap; }
.dash-file-grid__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.dash-file-grid__item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 10px; min-width: 0; padding: 14px; border: 1px solid transparent; border-radius: 16px; background: var(--card-2); }
.dash-file-grid__item:hover { border-color: var(--line-3); }
.dash-file-grid__item.is-sel { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--card-2)); }
.dash-file-grid__tile { grid-area: 1 / 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--tile); color: var(--on-tile); }
.dash-file-grid__tile .dash-ico { width: 22px; height: 22px; }
.dash-file-grid__check { grid-area: 1 / 3; position: relative; z-index: 2; }
.dash-file-grid__txt { grid-area: 2 / 1 / 3 / 3; display: grid; gap: 3px; min-width: 0; }
.dash-file-grid__name { font-size: var(--fs-md); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.dash-file-grid__meta, .dash-file-grid__when { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.dash-file-grid__owner { grid-area: 2 / 3; align-self: end; }
.dash-file-grid__size, .dash-file-grid__upd { display: none; }
.dash-file-grid__open { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.dash-file-grid__none { grid-column: 1 / -1; }
.dash-file-grid[data-view="list"] .dash-file-grid__items { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.dash-file-grid[data-view="list"] .dash-file-grid__item { grid-template-columns: auto auto minmax(0, 1fr) 84px 96px auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: none; }
.dash-file-grid[data-view="list"] .dash-file-grid__item:hover { border-color: transparent; background: var(--card-2); }
.dash-file-grid[data-view="list"] .dash-file-grid__item.is-sel { background: color-mix(in srgb, var(--primary) 7%, var(--card)); }
.dash-file-grid[data-view="list"] .dash-file-grid__check,
.dash-file-grid[data-view="list"] .dash-file-grid__tile,
.dash-file-grid[data-view="list"] .dash-file-grid__txt,
.dash-file-grid[data-view="list"] .dash-file-grid__owner { grid-area: auto; align-self: center; }
.dash-file-grid[data-view="list"] .dash-file-grid__tile { width: 36px; height: 36px; border-radius: 11px; }
.dash-file-grid[data-view="list"] .dash-file-grid__tile .dash-ico { width: 17px; height: 17px; }
.dash-file-grid[data-view="list"] .dash-file-grid__gm, .dash-file-grid[data-view="list"] .dash-file-grid__when { display: none; }
.dash-file-grid[data-view="list"] .dash-file-grid__size,
.dash-file-grid[data-view="list"] .dash-file-grid__upd { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--muted); }
.dash-file-grid__preview { display: grid; place-items: center; gap: 10px; min-height: 180px; margin-bottom: 18px; border-radius: 16px; background: var(--tile); color: var(--on-tile); }
.dash-file-grid__ptile { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--on-tile) 12%, transparent); }
.dash-file-grid__ptile .dash-ico { width: 30px; height: 30px; }
.dash-file-grid__preview b { font-size: var(--fs-lg); font-weight: 700; }

/* ── Sequence: Tessly's sequence steps down a line ── */
.dash-sequence { display: grid; gap: 12px; min-width: 0; }
.dash-sequence__steps { display: grid; min-width: 0; margin: 0; padding: 0; list-style: none; }
.dash-sequence__step, .dash-sequence__end { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; min-width: 0; padding-bottom: 14px; }
.dash-sequence__step::before { content: ''; position: absolute; left: 16px; top: 40px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line-2); }
.dash-sequence__step--wait::before { top: 36px; width: 0; border-left: 2px dashed var(--line-3); background: none; }
.dash-sequence__node { display: grid; justify-items: center; align-content: start; }
.dash-sequence__dot { width: 30px; height: 30px; margin-top: 2px; display: grid; place-items: center; border: 1.5px solid var(--line-3); border-radius: 50%; background: var(--card); color: var(--muted); }
.dash-sequence__dot .dash-ico { width: 15px; height: 15px; }
.dash-sequence__card { display: grid; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--card-2); }
.dash-sequence__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; min-width: 0; }
.dash-sequence__main { display: grid; flex: 1 1 180px; gap: 2px; min-width: 0; }
.dash-sequence__main b { font-size: var(--fs-base); font-weight: 600; overflow-wrap: anywhere; }
.dash-sequence__main small { font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.dash-sequence__at { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-sequence__at b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dash-sequence__at .dash-ico { width: 14px; height: 14px; flex: none; }
.dash-sequence__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 12px 16px; min-width: 0; }
.dash-sequence__stat { display: grid; align-content: start; gap: 4px; min-width: 0; }
.dash-sequence__stat small { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.dash-sequence__stat b { font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-sequence__stat .dash-meter { min-width: 0; margin-top: 2px; }
.dash-sequence__wait { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; min-height: 34px; }
.dash-sequence__wait b { font-size: var(--fs-md); font-weight: 600; }
.dash-sequence__wait small { font-size: var(--fs-xs); color: var(--muted); }
.dash-sequence__paths { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dash-sequence__path { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: var(--fs-md); font-weight: 600; }
.dash-sequence__path span { overflow-wrap: anywhere; }
.dash-sequence__path .dash-ico { width: 16px; height: 16px; color: var(--muted); }
.dash-sequence__path.is-stop .dash-ico { color: var(--bad); }
.dash-sequence__path b { font-variant-numeric: tabular-nums; }
.dash-sequence__end { align-items: center; padding-bottom: 0; }
.dash-sequence__end .dash-sequence__node::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--line-3); border-radius: 50%; background: var(--card); }
.dash-sequence__end small { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-sequence__foot { padding-left: 48px; }

/* ── phones ── */
/* below 1000px the menu still sits beside the page, so the inbox shows one pane at a time there as on a phone
   (side by side, the open conversation got a few words a line and the sender's name was cut to nothing) */
@media (max-width: 999px) {
  .dash-inbox { grid-template-columns: minmax(0, 1fr); height: auto; }
  .dash-inbox__list { border-right: 0; }
  .dash-inbox__threads { overflow: visible; }
  .dash-inbox__pane { display: none; height: 560px; }
  .dash-inbox.is-open .dash-inbox__list { display: none; }
  .dash-inbox.is-open .dash-inbox__pane { display: grid; }
  .dash-inbox__back { display: inline-grid; }
}
@media (max-width: 760px) {
  .dash-task-list__row { gap: 8px; padding-right: 10px; }
  .dash-task-list__addbtn { padding-left: 34px; }
  .dash-comment-thread__replies { margin-left: 12px; padding-left: 16px; }
  .dash-comment-thread__suggest { left: 0; max-width: 100%; }
  .dash-comment-thread__replying { padding-left: 0; }
  .dash-comment-thread__send span, .dash-inbox__send span, .dash-assistant-chat__send span { display: none; }
  .dash-comment-thread__send, .dash-inbox__send, .dash-assistant-chat__send { width: 46px; padding: 0; justify-content: center; }
  .dash-inbox__phead { gap: 10px; padding: 12px 14px; }
  .dash-inbox__subject { padding: 10px 14px; }
  .dash-inbox__msgs { padding: 14px; }
  .dash-inbox__compose { padding: 10px 14px 14px; }
  .dash-inbox__msg { max-width: 88%; }
  .dash-assistant-chat { height: 540px; }
  .dash-assistant-chat__msg { max-width: 92%; }
  .dash-week-schedule__scroll, .dash-week-schedule__views, .dash-week-schedule__picker, .dash-week-schedule[data-view="week"] .dash-week-schedule__picker { display: none; }
  .dash-week-schedule__agenda { display: grid; }
  .dash-file-grid__items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .dash-file-grid__item { padding: 12px; }
  .dash-file-grid[data-view="list"] .dash-file-grid__item { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 8px; }
  .dash-file-grid[data-view="list"] .dash-file-grid__size,
  .dash-file-grid[data-view="list"] .dash-file-grid__upd { display: none; }
  .dash-file-grid[data-view="list"] .dash-file-grid__gm { display: inline; }
  .dash-sequence__card { padding: 12px 14px; }
  .dash-sequence__stats { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px 12px; }
  .dash-sequence__step, .dash-sequence__end { gap: 10px; }
  .dash-sequence__foot { padding-left: 44px; }
}

/* ── touch: 44px targets without changing the drawing ── */
@media (pointer: coarse) {
  .dash-task-list__grip { position: relative; }
  .dash-task-list__grip::after { content: ''; position: absolute; inset: -8px -12px; }
  .dash-task-list .dash-check, .dash-file-grid .dash-check { position: relative; }
  .dash-task-list .dash-check::after, .dash-file-grid .dash-check::after { content: ''; position: absolute; inset: -11px; }
  .dash-comment-thread__react::after, .dash-comment-thread__reply::after, .dash-file-grid__crumb::after { content: ''; position: absolute; inset: -8px -2px; }
  .dash-task-list__addbtn { min-height: 44px; }
}

/* ── 76 people: ProfileHeader, PersonCard, ClientCard, InvoiceView, PricingCards, ReviewCard, SignaturePad, CreativeCard ── */

/* ProfileHeader: Tessly's client band (who, quick actions, health and facts) */
.dash-profile { container: dash-profile / inline-size; padding: 22px 24px; }
.dash-profile__band { display: grid; grid-template-columns: minmax(0, 1.25fr) auto auto; align-items: center; gap: 22px 30px; }
.dash-profile__who { display: flex; align-items: center; gap: 18px; min-width: 0; }
.dash-profile__who .dash-av img, .dash-person__top .dash-av img, .dash-review__head .dash-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dash-profile__id { min-width: 0; }
.dash-profile__line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dash-profile__name { margin: 0; min-width: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.04; font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.dash-profile__star { color: var(--muted); }
.dash-profile__star.is-on { color: var(--amber); }
.dash-profile__star.is-on .dash-ico { fill: currentColor; }
.dash-profile__role { margin: 6px 0 0; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.dash-profile__role .dash-link { font-size: inherit; white-space: normal; }
.dash-profile__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dash-profile__tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-profile__tag .dash-ico { width: 13px; height: 13px; }
.dash-profile__acts { display: grid; grid-template-columns: repeat(var(--n, 3), 62px); gap: 8px; }
.dash-profile__act { display: grid; justify-items: center; gap: 6px; padding: 2px 0; border-radius: 14px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; min-width: 0; }
.dash-profile__act > span { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); color: var(--text); transition: background-color .2s, color .2s, border-color .2s; }
.dash-profile__act:hover { color: var(--text); }
.dash-profile__act:hover > span { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.dash-profile__side { display: flex; align-items: center; gap: 18px; padding-left: 26px; border-left: 1px solid var(--line); min-width: 0; }
.dash-profile__facts { display: grid; gap: 7px; margin: 0; font-size: var(--fs-sm); min-width: 180px; }
.dash-profile__facts > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-profile__facts dt { color: var(--muted); font-weight: 500; }
.dash-profile__facts dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-align: right; min-width: 0; }
.dash-profile__facts [data-v] { display: inline-block; }
@container dash-profile (max-width: 1100px) {
  .dash-profile__band { grid-template-columns: minmax(0, 1fr) auto; }
  .dash-profile__acts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); padding-top: 16px; border-top: 1px solid var(--line); }
  .dash-profile__act { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; }
  .dash-profile__act > span { width: 38px; height: 38px; border-radius: 12px; }
}

/* PersonCard: Tessly's team card */
.dash-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.dash-person { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dash-person:hover { border-color: var(--line-2); }
.dash-person__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dash-person__trend { display: grid; justify-items: end; gap: 2px; min-width: 0; }
.dash-person__trend small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-align: right; }
.dash-person__trend b, .dash-person__meta b { display: inline-block; color: var(--text); font-weight: 700; }
.dash-person__name { font-weight: 600; font-size: var(--fs-lg); overflow-wrap: anywhere; }
.dash-person__role { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.dash-person__now { margin: 10px 0 12px; padding: 9px 11px; border-radius: 12px; background: var(--card-2); display: grid; gap: 1px; font-size: var(--fs-sm); }
.dash-person__now span { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.dash-person__now b { font-weight: 600; overflow-wrap: anywhere; }
.dash-person__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-person__status { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.dash-person__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dash-person__status[data-s="in"] { color: var(--good); }
.dash-person__status[data-s="away"] { color: var(--warn); }

/* ClientCard: Tessly's company card, in a grid or as rows */
.dash-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.dash-client { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dash-client:hover { border-color: var(--line-2); }
.dash-client__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dash-client__mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: var(--fs-xl); background: var(--tile, var(--tile-cobalt)); color: var(--on-tile); }
.dash-client__health { display: flex; align-items: center; gap: 8px; }
.dash-client__word { display: grid; line-height: 1.2; }
.dash-client__word b { display: inline-block; font-weight: 600; font-size: var(--fs-sm); }
.dash-client__word small { color: var(--muted); font-size: var(--fs-2xs); font-weight: 600; }
.dash-client__id { display: grid; gap: 2px; min-width: 0; }
.dash-client__name { font-weight: 600; font-size: var(--fs-lg); overflow-wrap: anywhere; }
.dash-client__plan { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.dash-client__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; padding: 10px 0; border-block: 1px solid var(--line); }
.dash-client__stats > div { display: grid; gap: 2px; align-content: start; min-width: 0; }
.dash-client__stats dt { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.dash-client__stats dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; font-size: var(--fs-md); overflow-wrap: anywhere; }
.dash-client__stats [data-money] { display: inline-block; font-size: var(--fs-lg); }
.dash-client__next { display: grid; gap: 4px; margin-top: auto; min-width: 0; }
.dash-client__next small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.dash-client__next b { font-weight: 600; font-size: var(--fs-md); overflow-wrap: anywhere; }
.dash-client__next .dash-pill { justify-self: start; margin-top: 2px; }
.dash-clients--list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.dash-clients--list .dash-client { display: grid; grid-template-columns: 44px minmax(0, 1.2fr) 112px minmax(0, 1.7fr) minmax(0, 1.3fr); align-items: center; gap: 18px; padding: 14px 18px; }
.dash-clients--list .dash-client__top { display: contents; }
.dash-clients--list .dash-client__mark { order: 1; }
.dash-clients--list .dash-client__id { order: 2; }
.dash-clients--list .dash-client__health { order: 3; }
.dash-clients--list .dash-client__stats { order: 4; margin: 0; padding: 0 0 0 18px; border-block: 0; border-left: 1px solid var(--line); }
.dash-clients--list .dash-client__next { order: 5; margin: 0; }

/* InvoiceView: Tessly's invoice sheet with its life in a stepper */
.dash-invoice { display: grid; gap: 18px; }
.dash-invoice > .dash-card__head { margin: 0; align-items: center; }
.dash-invoice__steps { padding-top: 2px; }
.dash-invoice__paper { position: relative; display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); overflow: hidden; }
.dash-invoice__parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash-invoice__party { display: grid; gap: 2px; align-content: start; min-width: 0; }
.dash-invoice__party small, .dash-invoice__due small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.dash-invoice__party b { font-weight: 600; font-size: var(--fs-lg); overflow-wrap: anywhere; }
.dash-invoice__party span { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.dash-invoice__due { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 14px 16px; border-radius: 14px; background: var(--card-2); }
.dash-invoice__due > div { display: grid; gap: 2px; }
.dash-invoice__amount { display: inline-block; font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash-invoice__when { text-align: right; }
.dash-invoice__when b { font-weight: 600; font-size: var(--fs-lg); }
.dash-invoice__when.is-late small, .dash-invoice__when.is-late b { color: var(--bad); }
.dash-invoice__lines { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.dash-invoice__lines th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.dash-invoice__lines td { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; vertical-align: top; overflow-wrap: anywhere; }
.dash-invoice__lines td:first-child { padding-right: 10px; }
.dash-invoice__lines .num { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.dash-invoice__lines tfoot td { border-bottom: 0; padding: 6px 0; color: var(--muted); font-weight: 500; }
.dash-invoice__lines tfoot .num { color: var(--text); font-weight: 600; }
.dash-invoice__lines .is-total td { padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: var(--fs-lg); }
.dash-invoice__each { display: none; margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.dash-invoice__dates { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: var(--fs-sm); }
.dash-invoice__dates > div { display: flex; gap: 6px; }
.dash-invoice__dates dt { color: var(--muted); font-weight: 500; }
.dash-invoice__dates dd { margin: 0; font-weight: 600; }
.dash-invoice__paper:not(.is-paid) [data-paid-row] { display: none; }
.dash-invoice__stamp { position: absolute; right: 22px; top: 84px; z-index: 2; }
.dash-invoice__paper:not(.is-paid) .dash-invoice__stamp { display: none; }
.dash-invoice__acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

/* PricingCards: Olvara's tiers as packages, a ring that travels to the chosen one */
.dash-pricing { display: grid; gap: 16px; min-width: 0; }
.dash-pricing__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.dash-pricing__hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.dash-pricing__hint .dash-ico { width: 15px; height: 15px; color: var(--primary-ink); }
.dash-pricing__grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--gap); }
.dash-price { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; }
.dash-price:hover { border-color: var(--line-2); }
.dash-price.is-rec { border-color: var(--line-3); }
.dash-price:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.dash-price__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dash-price__ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--tone, var(--primary)) 18%, transparent); color: var(--text); }
.dash-price__ico .dash-ico { width: 18px; height: 18px; color: var(--tone, var(--primary)); }
.dash-price__rec { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 700; color: var(--primary-ink); white-space: nowrap; }
.dash-price__rec .dash-ico { width: 13px; height: 13px; fill: currentColor; }
.dash-price__name { font-weight: 600; font-size: var(--fs-xl); }
.dash-price__blurb { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.dash-price__fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 8px 0 0; }
.dash-price__num { font-size: var(--fs-display); font-weight: 600; letter-spacing: -.025em; }
/* each rolling column is centred on a hidden copy of its digit, which sets the width: "$1,000" has no gap after the 1 */
.dash-price__num .dash-dg { position: relative; }
.dash-price__num .dash-dg__col { position: absolute; top: 0; left: 50%; justify-items: center; }
.dash-price__w { display: inline-grid; visibility: hidden; }
.dash-price__w > span { grid-area: 1 / 1; }
.dash-price__per { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.dash-price__bill { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.dash-price__list { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: var(--fs-md); }
.dash-price__list li { display: flex; align-items: flex-start; gap: 8px; }
.dash-price__list .dash-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--good); }
.dash-price__ring { position: absolute; inset: -1px; border: 2px solid var(--primary); border-radius: calc(var(--r-card) + 1px); pointer-events: none; }
.dash-pricing__sum { margin: 0; color: var(--muted); font-size: var(--fs-md); font-weight: 500; }
.dash-pricing__sum b { display: inline-block; color: var(--text); font-weight: 700; }

/* ReviewCard: Olvara's review row and ratings summary */
.dash-stars { display: inline-flex; gap: 2px; flex: none; --star: 16px; }
.dash-stars__s { position: relative; display: block; width: var(--star); height: var(--star); }
.dash-stars__s svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 1.6; stroke-linejoin: round; }
.dash-stars__bg { fill: var(--well); stroke: var(--line-3); }
.dash-stars__fg { fill: var(--amber); stroke: var(--amber); }
.dash-review { display: grid; gap: 10px; align-content: start; }
.dash-review__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-review__who { flex: 1; display: grid; min-width: 0; }
.dash-review__who b { font-weight: 600; overflow-wrap: anywhere; }
.dash-review__who small { color: var(--muted); font-size: var(--fs-sm); }
.dash-review__title { margin: 0; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.005em; }
.dash-review__quote { margin: 0; max-width: 72ch; color: var(--text); }
.dash-review__quote p { margin: 0; }
.dash-review__reply { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); font-size: var(--fs-md); }
.dash-review__reply small { font-weight: 700; color: var(--primary-ink); }
.dash-review__reply p { margin: 0; }
.dash-review__avg { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.dash-review__avg > b { display: inline-block; font-size: var(--fs-display); font-weight: 600; letter-spacing: -.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-review__avg > div { display: grid; gap: 5px; }
.dash-review__avg small { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.dash-review__dist { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dash-review__lvl { display: grid; grid-template-columns: 34px minmax(0, 1fr) 42px; align-items: center; gap: 10px; min-height: 26px; font-size: var(--fs-sm); font-weight: 600; }
.dash-review__n { display: inline-flex; align-items: center; gap: 3px; }
.dash-review__n svg { width: 13px; height: 13px; fill: var(--amber); stroke: var(--amber); stroke-width: 1.6; stroke-linejoin: round; }
.dash-review__lvl > b { text-align: right; font-weight: 700; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

/* SignaturePad: beyond the templates, drawn with the system's own parts */
.dash-sig { display: grid; gap: 12px; min-width: 0; }
.dash-sig__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.dash-sig__bar .dash-seg__btn { display: inline-flex; align-items: center; gap: 6px; }
.dash-sig__bar .dash-seg__btn .dash-ico { width: 15px; height: 15px; }
.dash-sig__pad { container-type: inline-size; position: relative; aspect-ratio: 3 / 1; border-radius: var(--r-tile); border: 1px solid var(--line-3); background: var(--raised); overflow: hidden; touch-action: none; cursor: crosshair; }
.dash-sig[data-mode="type"] .dash-sig__pad, .dash-sig.is-signed .dash-sig__pad { cursor: default; }
.dash-sig__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dash-sig__ink { fill: none; stroke: var(--text); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.dash-sig__line { position: absolute; left: 6%; right: 6%; bottom: 22%; border-top: 1.5px solid var(--line-3); pointer-events: none; }
.dash-sig__line i { position: absolute; left: 0; bottom: 6px; font-style: normal; font-size: var(--fs-lg); font-weight: 600; line-height: 1; color: var(--muted); }
.dash-sig__typed { position: absolute; left: 10%; right: 8%; bottom: 24%; margin: 0; font-size: clamp(24px, 8cqi, 48px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-sig__typed .dash-sig__ch { display: inline-block; }
.dash-sig__hint { position: absolute; inset: 0 0 34% 0; display: grid; place-items: center; color: var(--muted); font-size: var(--fs-md); font-weight: 600; pointer-events: none; }
.dash-sig[data-mode="draw"] .dash-sig__typed, .dash-sig[data-mode="draw"] .dash-sig__field, .dash-sig[data-mode="type"] .dash-sig__svg { display: none; }
.dash-sig.is-signed .dash-sig__pad { border-color: var(--line-2); }
.dash-sig__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.dash-sig__meta { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.dash-sig__meta .dash-ico { width: 16px; height: 16px; color: var(--good); stroke-width: 2.2; }
.dash-sig.is-signed .dash-sig__meta { color: var(--text); }
.dash-sig__acts { display: flex; gap: 8px; margin-left: auto; }
.dash-sig__accept .dash-ico { stroke-width: 2.4; }
.dash-sig__accept.is-done, .dash-sig__accept.is-done:hover { background: var(--good); color: var(--on-good); box-shadow: none; cursor: default; }

/* CreativeCard: Olvara's thumb and product grid, as ads */
.dash-creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--gap); }
.dash-creative { display: flex; flex-direction: column; padding: 0; overflow: hidden; min-width: 0; }
.dash-creative:hover { border-color: var(--line-2); }
.dash-creative__thumb { position: relative; height: 168px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone, var(--cobalt)) 16%, var(--card-2)); border-bottom: 1px solid var(--line); }
.dash-creative__frame { height: 74%; aspect-ratio: var(--ar, 1 / 1); display: grid; place-items: center; border-radius: 10px; background: var(--tile, var(--tile-cobalt)); color: var(--on-tile); overflow: hidden; }
.dash-creative__frame[data-shape="wide"] { width: 66%; height: auto; }
.dash-creative__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-creative__frame .dash-ico { width: 24px; height: 24px; }
.dash-creative__format { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; background: var(--card); color: var(--text); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.dash-creative__acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.dash-creative__body { flex: 1; display: grid; gap: 8px; align-content: start; padding: 14px 16px 16px; }
.dash-creative__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.dash-creative__platform { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.dash-creative__headline { font-weight: 600; font-size: var(--fs-lg); line-height: 1.3; overflow-wrap: anywhere; }
.dash-creative__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.dash-creative__figs > div { display: grid; gap: 3px; justify-items: start; align-content: start; min-width: 0; }
.dash-creative__figs dt { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.dash-creative__figs dd { display: inline-block; margin: 0; font-weight: 600; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.dash-creative__figs .dash-creative__chg { display: block; font: inherit; }
.dash-creative__figs .dash-creative__flat { color: var(--muted); background: var(--well); }
.dash-creative__figs .dash-delta > [aria-hidden] { display: inline-flex; align-items: center; gap: 2px; }

/* phones: the band stacks, cards go two up or one up, the invoice keeps item and amount */
@media (max-width: 760px) {
  .dash-profile { padding: 18px; }
  .dash-profile__band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dash-profile__who { align-items: flex-start; gap: 14px; }
  .dash-profile__who > .dash-av { --s: 56px !important; }
  .dash-profile__acts { grid-row: auto; gap: 4px; }
  .dash-profile__act { grid-auto-flow: row; gap: 4px; }
  .dash-profile__act > span { width: 44px; height: 44px; }
  .dash-profile__side { grid-row: 2; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .dash-profile__facts { flex: 1; min-width: 0; }
  .dash-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dash-person { padding: 14px; }
  .dash-person__top { flex-direction: column; gap: 8px; }
  .dash-person__trend { justify-items: start; }
  .dash-person__trend small { text-align: left; }
  .dash-clients--list .dash-client { display: flex; flex-direction: column; gap: 4px; padding: var(--card-pad); }
  .dash-clients--list .dash-client__top { display: flex; }
  .dash-clients--list .dash-client__stats { margin: 14px 0; padding: 10px 0; border-left: 0; border-block: 1px solid var(--line); }
  .dash-invoice__paper { padding: 14px; }
  .dash-invoice__parties { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dash-invoice__stamp { top: 66px; right: 14px; font-size: var(--fs-2xl); }
  .dash-invoice__q { display: none; }
  .dash-invoice__each { display: block; }
  .dash-invoice__acts .dash-btn { flex: 1 0 auto; }
  .dash-pricing__grid { grid-template-columns: minmax(0, 1fr); }
  .dash-creatives { grid-template-columns: minmax(0, 1fr); }
  .dash-creative__thumb { height: 150px; }
}
@media (pointer: coarse) {
  .dash-profile__star { width: 44px; height: 44px; }
  .dash-creative__acts .dash-ibtn { width: 44px; height: 44px; }
  .dash-review__lvl { min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-profile__act > span { transition: none; }
}

/* ── 77 delight: MilestoneTrack, SetupGuide, Tour, Celebration, Swatches, Shortcuts, InsightCard ──
   Derived from the Code and Chill dashboard templates (Tessly, Fernly, Olvara) © 2026 Hasib (OVERSHOOT), used under licence. Not for redistribution.
   Tokens only. GSAP owns every transform here; no rule transitions a property GSAP moves. */

/* MilestoneTrack: Olvara's tier bar drawn as one long rail; markers sit on it like the stepper's dots */
.dash-mile { display: grid; gap: 4px; min-width: 0; }
.dash-mile__now { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.dash-mile__now b { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.dash-mile__now small { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.dash-mile__rail { position: relative; padding: 46px 11px 34px; min-width: 0; }
.dash-mile__track { position: relative; height: 10px; border-radius: 999px; background: var(--well); overflow: hidden; }
.dash-mile__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }
.dash-mile__marks { position: absolute; left: 11px; right: 11px; top: 46px; height: 10px; margin: 0; padding: 0; list-style: none; }
.dash-mile__mark { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.dash-mile__dot { position: absolute; inset: 0; border-radius: 50%; background: var(--raised); border: 2px solid var(--line-3); box-shadow: 0 0 0 3px var(--card); }
.dash-mile__mark.is-next .dash-mile__dot { border-color: var(--primary); box-shadow: 0 0 0 3px var(--card), 0 0 0 6px color-mix(in srgb, var(--primary) 22%, transparent); }
.dash-mile__disc { position: absolute; inset: -2px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); transform: scale(0); }
.dash-mile__disc .dash-ico { width: 13px; height: 13px; stroke-width: 2.8; }
.dash-mile__lbl { position: absolute; top: calc(100% + 9px); left: 50%; translate: -50% 0; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); white-space: nowrap; }
.dash-mile__mark.is-start .dash-mile__lbl { left: 0; translate: none; }
.dash-mile__mark.is-end .dash-mile__lbl { left: auto; right: 0; translate: none; }
.dash-mile__mark.is-done .dash-mile__lbl, .dash-mile__mark.is-next .dash-mile__lbl { color: var(--text); }
.dash-mile__flag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 11px; border-radius: 9px; background: var(--pill); color: var(--on-pill); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-pop); }
.dash-mile__flag[hidden] { display: none; }
.dash-mile__flag::after { content: ''; position: absolute; top: 100%; left: var(--tip, 50%); margin-left: -5px; border: 5px solid transparent; border-top-color: var(--pill); }
.dash-mile__flag > span { display: inline-flex; align-items: center; gap: 6px; }
.dash-mile__flag .dash-ico { width: 15px; height: 15px; stroke-width: 2.6; color: var(--pill-accent); }

/* SetupGuide: Tessly's next steps as a setup list; the run checklist's ring, numbers and finishing check */
.dash-setup { display: grid; min-width: 0; }
.dash-setup__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; min-width: 0; }
.dash-setup__intro { display: grid; gap: 2px; min-width: 0; }
.dash-setup__title { margin: 0; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.005em; }
.dash-setup__sub { margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.dash-setup__ring .dash-ring__in b { font-size: var(--fs-lg); font-weight: 700; }
.dash-setup__ring .dash-ring__in small { font-size: var(--fs-2xs); margin-top: 1px; }
.dash-setup__body { overflow: hidden; }
.dash-setup__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dash-setup__step { border-radius: 14px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.dash-setup__step.is-open { background: var(--card-2); }
.dash-setup__btn { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px 8px 12px; border-radius: 14px; text-align: left; }
.dash-setup__mark { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-3); }
.dash-setup__num { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.dash-setup__step.is-open .dash-setup__mark { box-shadow: inset 0 0 0 2px var(--primary); }
.dash-setup__step.is-open .dash-setup__num { color: var(--primary-ink); }
.dash-setup__disc { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: var(--on-good); transform: scale(0); }
.dash-setup__disc .dash-ico { width: 15px; height: 15px; stroke-width: 2.6; }
.dash-setup__disc--skip { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.dash-setup__disc--skip .dash-ico { stroke-width: 2; }
.dash-setup__name { display: grid; min-width: 0; line-height: 1.3; }
.dash-setup__name b { font-weight: 600; overflow-wrap: anywhere; }
.dash-setup__name small { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.dash-setup__step.is-done .dash-setup__name b, .dash-setup__step.is-skipped .dash-setup__name b { color: var(--muted); }
.dash-setup__chev { width: 16px; height: 16px; color: var(--muted); }
.dash-setup__panel { height: 0; overflow: hidden; }
.dash-setup__inner { display: grid; gap: 10px; padding: 0 14px 14px 54px; }
.dash-setup__inner p { margin: 0; color: var(--muted); font-size: var(--fs-md); max-width: 52ch; }
.dash-setup__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-setup__done { height: 0; overflow: hidden; }
.dash-setup__fin { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 14px; padding: 16px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.dash-setup__big { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: var(--on-good); transform: scale(0); }
.dash-setup__big .dash-ico { width: 22px; height: 22px; stroke-width: 2.6; }
.dash-setup__fin-text { min-width: 0; }
.dash-setup__fin-text b { font-weight: 600; font-size: var(--fs-lg); }
.dash-setup__fin-text p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-md); }
.dash-setup__fin .dash-btn { grid-column: 2; justify-self: start; margin-left: -12px; }

/* Tour: the scrim keeps a cut-out round the target; the card is the base menu's raised panel */
.dash-tour { position: fixed; inset: 0; z-index: 100; }
.dash-tour__scrim { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.dash-tour__shade { fill: var(--scrim); }
.dash-tour__edge { fill: none; stroke: var(--primary); stroke-width: 2; }
.dash-tour__card { position: absolute; left: 0; top: 0; width: min(330px, calc(100vw - 24px)); display: grid; gap: 10px; padding: 16px; border-radius: var(--r-tile); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.dash-tour__count { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.dash-tour__bars { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 3px; margin-top: -4px; }
.dash-tour__bars i { height: 3px; border-radius: 3px; background: var(--line-2); }
.dash-tour__bars i.is-on { background: var(--primary); }
.dash-tour__copy { display: grid; gap: 4px; }
.dash-tour__title { margin: 0; font-size: var(--fs-lg); font-weight: 600; }
.dash-tour__text { margin: 0; color: var(--muted); font-size: var(--fs-md); }
.dash-tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.dash-tour__foot > .dash-btn--ghost { margin-left: -8px; }
.dash-tour__nav { display: flex; gap: 6px; margin-left: auto; }

/* Celebration: small shapes in the chart tones; the Congrats card carries the base stamp */
.dash-burst { position: fixed; inset: 0; z-index: 140; pointer-events: none; overflow: hidden; }
.dash-burst__bit { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 2px; }
.dash-burst__bit--dot { border-radius: 50%; }
.dash-burst__bit--bar { width: 4px; height: 10px; margin: -5px 0 0 -2px; }
.dash-congrats { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.dash-congrats__title { margin: 0; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.dash-congrats__text { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-md); max-width: 46ch; }
.dash-congrats__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dash-congrats__stamp { padding: 8px 12px 8px 0; }

/* Swatches: Fernly's swatch chips grown into a palette that reads back its own hex and contrast */
.dash-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; min-width: 0; }
.dash-palette__item { display: grid; gap: 10px; align-content: start; padding: 8px 8px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); min-width: 0; }
.dash-palette__chip { position: relative; display: block; width: 100%; height: 64px; border-radius: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent); cursor: copy; }
.dash-palette__ok { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--good); box-shadow: var(--shadow-pop); transform: scale(0); pointer-events: none; }
.dash-palette__ok .dash-ico { width: 16px; height: 16px; stroke-width: 2.6; }
.dash-palette__meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; padding: 0 4px; min-width: 0; }
.dash-palette__name { font-size: var(--fs-md); font-weight: 600; }
.dash-palette__hex { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.dash-palette__ratios { display: grid; gap: 5px; padding: 0 4px; }
.dash-palette__ratio { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-palette__ratio b { color: var(--text); font-weight: 700; }
.dash-palette__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--line-3); }
.dash-palette__dot--white { background: white; }
.dash-palette__dot--black { background: black; }
.dash-palette__grade { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-style: normal; font-weight: 700; color: var(--good); }
.dash-palette__grade.is-fail { color: var(--bad); }
.dash-palette__grade .dash-ico { width: 12px; height: 12px; stroke-width: 2.6; }
.dash-palette--pick { position: relative; display: flex; flex-wrap: wrap; gap: 6px; }
.dash-palette__pick { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.dash-palette__pick i { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent); }
.dash-palette__pick:focus-visible { outline-offset: 0; }
.dash-palette__ring { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--text); pointer-events: none; }

/* Shortcuts: Olvara's key list inside the base modal, with a search above it */
.dash-keys__find { position: relative; }
.dash-keys__find > .dash-ico { position: absolute; left: 13px; top: 50%; margin-top: -9px; color: var(--muted); pointer-events: none; }
.dash-keys__find .dash-input { padding-left: 40px; }
.dash-keys { display: grid; }
.dash-keys__group[hidden], .dash-keys__row[hidden] { display: none; }
.dash-keys__label { margin: 16px 0 2px; font-size: var(--fs-2xs); font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.dash-keys__list { display: grid; gap: 2px; margin: 0; }
.dash-keys__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dash-keys__row:last-child { border-bottom: 0; }
.dash-keys__row dt { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.dash-keys__row dd { display: flex; align-items: center; gap: 4px; flex: none; margin: 0; font-size: var(--fs-sm); }
.dash-keys__word { color: var(--muted); padding: 0 2px; }
.dash-keys__none { margin: 18px 0 8px; color: var(--muted); text-align: center; }

/* InsightCard: Tessly's hot row figures in a well, the base delta chip, sparkline and status tag */
.dash-insight { display: grid; gap: 14px; align-content: start; min-width: 0; }
.dash-insight__head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.dash-insight__lead { display: grid; gap: 3px; min-width: 0; }
.dash-insight__title { margin: 0; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.dash-insight__sub { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.dash-insight__figs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); }
.dash-insight__fig { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.dash-insight__fig small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.dash-insight__fig b { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.dash-insight__spark { align-self: center; }
.dash-insight__why { border-top: 1px solid var(--line); padding-top: 4px; margin-top: -4px; }
.dash-insight__more { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 2px; font-size: var(--fs-md); font-weight: 600; color: var(--primary-ink); }
.dash-insight__more .dash-ico { width: 16px; height: 16px; }
.dash-insight__panel { height: 0; overflow: hidden; }
.dash-insight__ev { display: grid; gap: 6px; margin: 2px 0 4px; padding: 0 0 0 18px; color: var(--muted); font-size: var(--fs-md); }
.dash-insight__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.dash-insight__sure { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.dash-insight__sure small { color: var(--muted); font-size: var(--fs-xs); }
.dash-insight__sure .dash-status { gap: 4px; }
.dash-insight__sure .dash-status .dash-ico { width: 12px; height: 12px; stroke-width: 2.4; }

@media (max-width: 760px) {
  .dash-setup__inner { padding-left: 14px; }
  .dash-congrats { grid-template-columns: minmax(0, 1fr); }
  .dash-congrats__stamp { order: -1; padding: 6px 0 0 4px; }
  .dash-insight__figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-insight__spark { grid-column: 1 / -1; }
  .dash-palette { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (pointer: coarse) {
  .dash-insight__more { height: 44px; }
  .dash-setup__btn { min-height: 56px; }
}

/* ── 78 showcases: ClientReport, StudioOps and LayersOfDetail ──
   Derived from the Code and Chill dashboard templates (Tessly, Fernly, Olvara) © 2026 Hasib (OVERSHOOT), used under licence. Not for redistribution.
   Tokens only. The pages reuse the live dashboard's shell; these rules only place the parts it does not have. */

/* a card that runs edge to edge (an alert bar across its top) keeps its body inside the usual padding */
.dash-show__body { padding: 0 18px 18px; min-width: 0; }

/* page head: the "data last read" chip under the line of text; the period picker sits with the actions */
.dash-show__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-width: 0; }
.dash-show__range { min-width: 0; }

/* a heading for a group of cards that are not inside one card (the ads) */
.dash-show__section { display: grid; gap: 14px; min-width: 0; }
.dash-show__sechead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; min-width: 0; }
.dash-show__h2 { margin: 0; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.005em; }

/* two parts stacked in one card, with clear space between them */
.dash-show__pair { display: grid; gap: 26px; align-content: start; min-width: 0; }

/* a plain label over a part inside a card, and the opening line of the share dialog */
.dash-show__label { margin: 0 0 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-show__lead { margin: 0 0 14px; color: var(--muted); }

/* from 761 to 1279px the grid has two columns: the three report cards that sit side by side at full width each
   take the whole row there, so none is squeezed to under 200px and none is left alone in a row */
@media (min-width: 761px) and (max-width: 1279px) { .dash-show__fit { grid-column: 1 / -1; } }

@media (max-width: 760px) {
  .dash-show__body { padding: 0 16px 16px; }
  .dash-show__range { flex: 1 1 100%; }
  .dash-show__sechead > .dash-seg { flex: 1 1 100%; }
}

/* ── LayersOfDetail: the strip that names the layer showing, then the page ── */
/* a block, not a grid: the page centres itself with auto margins, which inside a grid would shrink it to its content */
.dash-layers { min-width: 0; }
/* the list, the client's page, its tab panels and rows opened in place are switched with the hidden attribute,
   which their own display would otherwise beat */
.dash-layers [hidden] { display: none !important; }
.dash-layers__guide { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; min-width: 0; max-width: var(--app-max); margin: 0 auto 4px; padding: 0 var(--side-x); }
/* the strip copies the segmented control's well and raised thumb; it is a list, not buttons, because it only reports */
.dash-layers__track { position: relative; display: inline-flex; padding: 3px; border-radius: var(--r-btn); background: var(--well); border: 1px solid var(--line); flex: none; max-width: 100%; }
.dash-layers__thumb { position: absolute; z-index: 0; top: 3px; left: 0; height: 30px; width: 0; border-radius: 9px; background: var(--raised); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--line-3); pointer-events: none; }
.dash-layers__layer { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; }
.dash-layers__layer[aria-current] { color: var(--text); }
/* the line keeps the height of two lines so the page under it never jumps when the words change */
.dash-layers__say { flex: 1 1 320px; margin: 0; min-width: 0; min-height: 2.6em; display: flex; align-items: center; color: var(--muted); font-size: var(--fs-md); line-height: 1.3; }
.dash-layers__say b { color: var(--text); font-weight: 600; }

/* the list: the filter bar sits inside the card's padding; View options goes to the end of its row */
.dash-layers__filters { padding: 0 18px; min-width: 0; }
.dash-layers__view { margin-left: auto; }
.dash-layers__name { font: inherit; font-weight: 600; color: var(--text); text-align: left; border-radius: 6px; white-space: nowrap; flex-shrink: 0; max-width: 100%; }
.dash-layers__name:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dash-table .dash-layers__act { width: 1%; white-space: nowrap; text-align: right; }
/* where the card is narrow the table scrolls in its own box rather than squeeze the next step into a tall column */
.dash-table .dash-layers__next { min-width: 12em; }
.dash-layers__acts { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.dash-layers__chev { width: 16px; height: 16px; color: var(--muted); }

/* the drawer: the answer, then groups with clear space between them and a plain heading on each */
.dash-layers__answer { display: grid; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dash-layers__big { font-size: var(--fs-lg); font-weight: 600; white-space: nowrap; }
.dash-layers__grp { display: grid; gap: 8px; padding-top: 18px; min-width: 0; }
.dash-layers__gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.dash-layers__gh h3 { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.dash-layers__gh b { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.dash-layers__copy { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; max-width: 100%; }
.dash-layers__copy > span { min-width: 0; overflow-wrap: anywhere; }

/* the full page: a closed section still says what is inside it, under its title */
.dash-layers__page { display: grid; gap: 18px; min-width: 0; }
.dash-layers__page .dash-ttl:focus { outline: none; }
.dash-layers__panel { display: grid; gap: 18px; min-width: 0; }
.dash-layers__panel:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 12px; }
.dash-layers__sum { margin: -8px 0 0; padding: 0 18px 14px; color: var(--muted); font-size: var(--fs-sm); }
.dash-acc__btn[aria-expanded="true"] + .dash-layers__sum { padding-bottom: 6px; }

/* a row of work opens in place: the whole row toggles, its chevron turns, the rows behind it slide out */
.dash-layers__witem { border-bottom: 1px solid var(--line); min-width: 0; }
.dash-layers__witem:last-child { border-bottom: 0; }
.dash-layers__wrow { border-bottom: 0; cursor: pointer; }
.dash-layers__wico { display: inline-grid; place-items: center; }
.dash-layers__wpanel { overflow: hidden; }
.dash-layers__sub { display: grid; margin: 0; padding: 0 4px 12px 50px; list-style: none; }
.dash-layers__sub li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; }
.dash-layers__sub b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.dash-layers__sub span { color: var(--muted); font-size: var(--fs-sm); }

/* on a wider screen the strip stays at the top while the walk moves down the client's page */
@media (min-width: 761px) {
  .dash-layers__guide { position: sticky; top: 0; z-index: 30; padding-block: 8px; background: var(--bg); }
}
@media (max-width: 760px) {
  .dash-layers__say { flex-basis: 100%; }
  .dash-table--stack td[data-span-phone] { grid-column: 1 / -1; }
  .dash-layers__sub { padding-left: 4px; }
}

/* ── 79 detail: ViewOptions and ShowMore ── */

/* what the person turned off is gone from the layout; [hidden] alone loses to the parts' own display */
.dash-table .is-col-off { display: none !important; }
[data-detail="key"] [data-full] { display: none !important; }
.dash-more > .is-more-off { display: none !important; }

/* Compact rows: less space around each row; the text keeps its size */
:is(.dash-dense .dash-table, .dash-table.dash-dense) th { padding-block: 7px; }
:is(.dash-dense .dash-table, .dash-table.dash-dense) td { padding-block: 7px; }
.dash-dense .dash-li { padding-block: 6px; }
.dash-dense .dash-check-row { padding-block: 5px; }

/* the View button: one line, the count of hidden columns in the same size */
.dash-view { display: inline-flex; flex: none; max-width: 100%; }
.dash-view__n { color: var(--muted); font-weight: 600; }
.dash-view__panel { display: grid; gap: 16px; padding-top: 4px; color: var(--text); }
.dash-view__group { display: grid; gap: 8px; min-width: 0; }
.dash-view__label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.dash-view__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.dash-view__quick { display: inline-flex; gap: 14px; }
.dash-view__seg { display: flex; width: 100%; }
.dash-view__seg .dash-seg__btn { flex: 1 1 0; }
.dash-view__cols { display: grid; gap: 2px; }
.dash-view__col { display: flex; align-items: center; gap: 10px; padding: 6px 2px; min-width: 0; cursor: pointer; font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.dash-view__col > span { min-width: 0; overflow-wrap: anywhere; }
.dash-view__col small { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.dash-view__col.is-locked { cursor: default; }
.dash-view__col.is-locked .dash-check { opacity: .55; }

/* Show more: the button under the list, See all at the far end */
.dash-more__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding-top: 10px; }
.dash-more__foot[hidden], .dash-more__foot [hidden] { display: none !important; }
.dash-more__left { color: var(--muted); font-weight: 600; }

@media (max-width: 760px) {
  :is(.dash-dense .dash-table--stack, .dash-table--stack.dash-dense) tr { padding-block: 8px; }
  :is(.dash-dense .dash-table--stack, .dash-table--stack.dash-dense) td { padding-block: 0; }
  .dash-view__col { padding-block: 9px; }
}
