/* DO Suite UI kit v2 (approved by the owner 29 Oct 2026). Source of the look: do-ui/landing-and-dashboard-preview.html.
   Rules: ~/.claude/skills/do-suite-design. Warm neutrals + ONE accent (deep green), ink primary buttons, no gradients,
   no glow, no uppercase labels. Every class starts with do-, every token with --do-, so it can sit beside an app's
   old CSS while pages move over. Load Geist 400/500/600 + Geist Mono 400/500 from Google Fonts first.
   Turn on with <html class="do-ui">. Theme: follows the system; data-theme="light|dark" on <html> overrides. */

/* ── Tokens ── */
:root {
  --do-page: #FAFAF9; --do-sunken: #F3F4F2; --do-surface: #FFFFFF; --do-raised: #FFFFFF;
  --do-line: #E6E7E4; --do-line-2: #D9DBD7; --do-control: #8A8E89;
  --do-ink: #171917; --do-ink-2: #3D403D; --do-muted: #5F635F; --do-faint: #A3A6A2;
  --do-inverse: #171917; --do-on-inverse: #F4F5F3; --do-on-inverse-2: #B9BCB8;
  --do-btn: #171917; --do-btn-hover: #2B2E2B; --do-on-btn: #FAFAF9;
  --do-accent: #0E7C5A; --do-accent-tint: rgb(14 124 90 / .09); --do-accent-fill: rgb(14 124 90 / .10); --do-on-accent: #FFFFFF;
  --do-ok: #0E7C5A; --do-warn: #A15C07; --do-bad: #C23B30;
  --do-bad-tint: rgb(194 59 48 / .08); --do-warn-tint: rgb(161 92 7 / .09);
  --do-shadow-frame: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px rgb(0 0 0 / .08);
  --do-shadow-over: 0 8px 28px rgb(0 0 0 / .14);
  --do-ring: 0 0 0 1px var(--do-line);
  --do-font: Geist, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --do-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --do-r-chip: 4px; --do-r-input: 6px; --do-r-btn: 8px; --do-r-card: 12px; --do-r-frame: 16px;
  --do-s1: 4px; --do-s2: 8px; --do-s3: 12px; --do-s4: 16px; --do-s6: 24px; --do-s8: 32px; --do-s12: 48px; --do-s16: 64px; --do-s24: 96px;
  --do-ease: cubic-bezier(.22,1,.36,1); --do-ease-exit: cubic-bezier(.4,0,1,1);
  --do-t-fast: 120ms; --do-t-base: 180ms; --do-t-over: 260ms;
  --do-z-drop: 10; --do-z-sticky: 20; --do-z-back: 30; --do-z-modal: 40; --do-z-toast: 50; --do-z-tip: 60;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --do-page: #0C0D0C; --do-sunken: #111211; --do-surface: #151615; --do-raised: #1B1C1B;
  --do-line: rgb(255 255 255 / .07); --do-line-2: rgb(255 255 255 / .12); --do-control: #6A6F67;
  --do-ink: #ECEDEB; --do-ink-2: #C2C5C1; --do-muted: #8F948E; --do-faint: #5C605B;
  --do-inverse: #ECEDEB; --do-on-inverse: #111211; --do-on-inverse-2: #4A4E49;
  --do-btn: #ECEDEB; --do-btn-hover: #FFFFFF; --do-on-btn: #111211;
  --do-accent: #3FCF98; --do-accent-tint: rgb(63 207 152 / .12); --do-accent-fill: rgb(63 207 152 / .10); --do-on-accent: #062A1D;
  --do-ok: #3FCF98; --do-warn: #E8A94A; --do-bad: #F07A6E;
  --do-bad-tint: rgb(240 122 110 / .12); --do-warn-tint: rgb(232 169 74 / .12);
  --do-shadow-frame: none; --do-shadow-over: 0 0 0 1px rgb(255 255 255 / .12);
  --do-ring: 0 0 0 1px var(--do-line-2);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --do-page: #0C0D0C; --do-sunken: #111211; --do-surface: #151615; --do-raised: #1B1C1B;
  --do-line: rgb(255 255 255 / .07); --do-line-2: rgb(255 255 255 / .12); --do-control: #6A6F67;
  --do-ink: #ECEDEB; --do-ink-2: #C2C5C1; --do-muted: #8F948E; --do-faint: #5C605B;
  --do-inverse: #ECEDEB; --do-on-inverse: #111211; --do-on-inverse-2: #4A4E49;
  --do-btn: #ECEDEB; --do-btn-hover: #FFFFFF; --do-on-btn: #111211;
  --do-accent: #3FCF98; --do-accent-tint: rgb(63 207 152 / .12); --do-accent-fill: rgb(63 207 152 / .10); --do-on-accent: #062A1D;
  --do-ok: #3FCF98; --do-warn: #E8A94A; --do-bad: #F07A6E;
  --do-bad-tint: rgb(240 122 110 / .12); --do-warn-tint: rgb(232 169 74 / .12);
  --do-shadow-frame: none; --do-shadow-over: 0 0 0 1px rgb(255 255 255 / .12);
  --do-ring: 0 0 0 1px var(--do-line-2);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ── Base (only under html.do-ui) ── */
.do-ui { -webkit-font-smoothing: antialiased; }
.do-ui body { margin: 0; background: var(--do-page); color: var(--do-ink); font: 400 16px/1.55 var(--do-font); font-synthesis: none; }
.do-ui *, .do-ui *::before, .do-ui *::after { box-sizing: border-box; }
.do-ui h1, .do-ui h2, .do-ui h3, .do-ui h4 { margin: 0; font-weight: 600; text-wrap: balance; color: var(--do-ink); }
.do-ui p { margin: 0; text-wrap: pretty; }
.do-ui a { color: var(--do-accent); text-underline-offset: 3px; }
.do-ui :focus-visible { outline: 2px solid var(--do-accent); outline-offset: 2px; }
.do-ui ::selection { background: var(--do-accent-tint); }
.do-num { font-variant-numeric: tabular-nums; }
.do-mono { font-family: var(--do-mono); font-size: 13.5px; }
.do-muted { color: var(--do-muted); }
.do-ic { width: 16px; height: 16px; flex: none; }
.do-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.do-skip { position: absolute; left: 8px; top: -48px; z-index: var(--do-z-tip); background: var(--do-btn); color: var(--do-on-btn); padding: 8px 12px; border-radius: var(--do-r-input); }
.do-skip:focus { top: 8px; }

/* Type scale: app 12/13/14/16/20/24, marketing display 40–60 */
.do-display { font-size: clamp(40px, 5.6vw, 60px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }
.do-h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.028em; font-weight: 600; }
.do-title { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.do-h3 { font-size: 16px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.do-lede { font-size: 17px; color: var(--do-ink-2); }

/* ── Buttons ── */
.do-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--do-r-btn); border: 1px solid transparent; font: 500 15px var(--do-font); text-decoration: none; cursor: pointer; white-space: nowrap; background: var(--do-surface); color: var(--do-ink); transition: background-color var(--do-t-fast) var(--do-ease), border-color var(--do-t-fast) var(--do-ease), color var(--do-t-fast) var(--do-ease), transform 80ms var(--do-ease); }
.do-btn:active { transform: scale(.98); }
.do-btn.primary { background: var(--do-btn); color: var(--do-on-btn); }
/* color too, not only the border: `.do-ui a` is (0,2,0) and sets the accent,
   `.do-btn` is (0,1,0), so without this every <a class="do-btn outline"> drew
   its label in the accent while <button> drew it in ink - the same control in
   two colours, and a screen full of accent where the rule allows 3 to 5. */
.do-btn.outline { border-color: var(--do-control); color: var(--do-ink); }
.do-btn.text { background: none; color: var(--do-ink-2); padding: 0 4px; }
.do-btn.danger { background: var(--do-bad); color: #fff; }
.do-btn.danger-quiet { background: none; color: var(--do-bad); border-color: var(--do-control); }
.do-btn.sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: var(--do-r-input); }
.do-btn.lg { height: 48px; padding: 0 20px; font-size: 15px; }
.do-btn.icon { width: 40px; padding: 0; } .do-btn.icon.sm { width: 32px; }
.do-btn.on-inverse { background: var(--do-on-inverse); color: var(--do-inverse); }
@media (hover: hover) {
  .do-btn.primary:hover { background: var(--do-btn-hover); }
  .do-btn.outline:hover { border-color: var(--do-ink-3, var(--do-muted)); }
  .do-btn.text:hover { color: var(--do-ink); }
}
.do-btn[aria-busy="true"] { pointer-events: none; }
.do-btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: do-spin .7s linear infinite; }
@keyframes do-spin { to { transform: rotate(360deg); } }

/* ── Status, marks, chips ── */
.do-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--do-ink-2); white-space: nowrap; }
.do-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--do-faint); flex: none; }
.do-dot.ok::before { background: var(--do-ok); } .do-dot.warn::before { background: var(--do-warn); } .do-dot.bad::before { background: var(--do-bad); }
.do-tag { display: inline-block; font-size: 13px; line-height: 18px; color: var(--do-muted); border: 1px solid var(--do-line-2); border-radius: var(--do-r-chip); padding: 0 6px; white-space: nowrap; }
.do-mark { width: 28px; height: 28px; border-radius: var(--do-r-input); display: grid; place-items: center; flex: none; background: var(--do-sunken); border: 1px solid var(--do-line-2); font: 600 11px var(--do-font); color: var(--do-ink-2); }
.do-mark.lg { width: 36px; height: 36px; border-radius: var(--do-r-btn); font-size: 12px; }
.do-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--do-inverse); color: var(--do-on-inverse); font-size: 13px; font-weight: 600; }
.do-kbd { font: 500 13px var(--do-mono); color: var(--do-muted); border: 1px solid var(--do-line-2); border-radius: var(--do-r-chip); padding: 0 6px; }

/* ── Segmented, tabs ── */
.do-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--do-sunken); border: 1px solid var(--do-line); max-width: 100%; overflow-x: auto; }
.do-seg button, .do-seg a { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--do-muted); font: 500 13px var(--do-font); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.do-seg [aria-pressed="true"], .do-seg [aria-current="page"] { background: var(--do-surface); color: var(--do-ink); box-shadow: var(--do-ring); }
.do-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--do-line); overflow-x: auto; }
.do-tabs a, .do-tabs button { position: relative; padding: 10px 0; border: 0; background: none; color: var(--do-muted); font: 500 14px var(--do-font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.do-tabs [aria-selected="true"], .do-tabs [aria-current="page"] { color: var(--do-ink); }
.do-tabs [aria-selected="true"]::after, .do-tabs [aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--do-ink); }
.do-tabs .count { margin-left: 6px; color: var(--do-muted); font-variant-numeric: tabular-nums; }

/* ── Forms ── */
.do-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.do-field > label, .do-label { font: 500 14px/1.4 var(--do-font); color: var(--do-ink); }
.do-field .hint { font-size: 13.5px; color: var(--do-muted); min-height: 1em; }
.do-field .err { font-size: 13.5px; color: var(--do-bad); }
.do-input, .do-select, .do-textarea { width: 100%; height: 38px; padding: 0 12px; border-radius: var(--do-r-input); border: 1px solid var(--do-control); background: var(--do-surface); color: var(--do-ink); font: 400 14px var(--do-font); transition: border-color var(--do-t-fast) var(--do-ease), box-shadow var(--do-t-fast) var(--do-ease); }
.do-select { background-color: var(--do-surface); color: var(--do-ink); }
.do-textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.do-input::placeholder, .do-textarea::placeholder { color: var(--do-faint); }
.do-input:focus, .do-select:focus, .do-textarea:focus { outline: none; border-color: var(--do-accent); box-shadow: 0 0 0 3px var(--do-accent-tint); }
.do-field.is-error .do-input, .do-field.is-error .do-select, .do-field.is-error .do-textarea, .do-input[aria-invalid="true"] { border-color: var(--do-bad); }
@media (max-width: 640px) { .do-input, .do-select, .do-textarea { font-size: 16px; } }
.do-form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.do-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.do-fieldset { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 16px; }
.do-fieldset legend { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.do-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.do-check input { width: 16px; height: 16px; accent-color: var(--do-btn); }
.do-switch { position: relative; width: 36px; height: 20px; flex: none; appearance: none; margin: 0; border-radius: 999px; background: var(--do-line-2); border: 1px solid var(--do-control); cursor: pointer; transition: background-color var(--do-t-base) var(--do-ease); }
.do-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--do-surface); box-shadow: 0 0 0 1px var(--do-line-2); transition: transform var(--do-t-base) var(--do-ease); }
.do-switch:checked { background: var(--do-accent); border-color: var(--do-accent); }
.do-switch:checked::after { transform: translateX(16px); }
.do-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.do-error-summary { border-radius: var(--do-r-card); background: var(--do-bad-tint); padding: 12px 14px; font-size: 14px; }
.do-error-summary ul { margin: 6px 0 0; padding-left: 18px; }

/* ── Surfaces ── */
.do-card { border-radius: var(--do-r-card); background: var(--do-surface); box-shadow: var(--do-ring); min-width: 0; }
.do-card.pad { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.do-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--do-line); }
.do-card-head h3 { font-size: 14px; }
.do-card-head a { font-size: 13px; }
.do-card.inverse { background: var(--do-inverse); color: var(--do-on-inverse); box-shadow: none; }
.do-card.inverse .do-muted { color: var(--do-on-inverse-2); }
.do-frame { border-radius: var(--do-r-frame); background: var(--do-surface); box-shadow: var(--do-shadow-frame), var(--do-ring); overflow: hidden; }
.do-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.do-split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .do-split { grid-template-columns: 1fr; } }
.do-divider { height: 1px; background: var(--do-line); border: 0; margin: 0; }

/* ── App shell ── */
.do-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--do-page); }
.do-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--do-sunken); border-right: 1px solid var(--do-line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.do-side .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; color: var(--do-ink); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.do-side .group { font-size: 13px; color: var(--do-muted); padding: 14px 10px 4px; }
.do-side a.item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px; border-radius: var(--do-r-input); color: var(--do-ink-2); text-decoration: none; font-size: 15px; }
.do-side a.item .count { margin-left: auto; font-size: 13px; color: var(--do-muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .do-side a.item:hover { background: var(--do-surface); color: var(--do-ink); } }
.do-side a.item[aria-current="page"] { background: var(--do-accent-tint); color: var(--do-accent); font-weight: 500; }
.do-side .foot { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid var(--do-line); font-size: 13px; color: var(--do-muted); }
.do-side .foot b { display: block; color: var(--do-ink); font-weight: 500; }
.do-main { min-width: 0; display: flex; flex-direction: column; }
.do-top { position: sticky; top: 0; z-index: var(--do-z-sticky); display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; background: var(--do-page); border-bottom: 1px solid var(--do-line); }
.do-top .find { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--do-line-2); border-radius: var(--do-r-input); background: var(--do-surface); color: var(--do-muted); font-size: 13.5px; }
.do-top .find input { flex: 1; min-width: 0; border: 0; background: none; color: var(--do-ink); font: inherit; outline: none; }
.do-top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--do-muted); }
.do-top .right b { color: var(--do-ink); font-weight: 500; }
.do-burger { display: none; }
.do-content { padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 32px; max-width: 1280px; width: 100%; }
@media (max-width: 1023px) and (min-width: 768px) {
  .do-shell { grid-template-columns: 64px minmax(0, 1fr); }
  .do-side { padding: 14px 8px; align-items: center; }
  /* :not(.do-mark). This line used to read `.do-side .brand span`, and
     .do-mark IS a span - so the rail hid the letter mark together with the
     wordmark and the brand link rendered as an empty 16x22 box. Measured on
     2 Nov 2026 at 820px: both children came back display:none. Every app on
     the kit's shell showed a blank logo on a tablet. */
  .do-side .brand span:not(.do-mark), .do-side a.item span, .do-side .group, .do-side .foot, .do-side a.item .count { display: none; }
  .do-side .brand { justify-content: center; padding: 6px 0 16px; }
  .do-side a.item { width: 40px; justify-content: center; padding: 0; }
}
@media (max-width: 767px) {
  .do-shell { grid-template-columns: 1fr; }
  .do-side { position: fixed; z-index: var(--do-z-modal); left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform var(--do-t-over) var(--do-ease); padding-left: max(10px, env(safe-area-inset-left, 0px)); }
  .do-shell.nav-open .do-side { transform: none; box-shadow: var(--do-shadow-over); }
  .do-burger { display: inline-flex; }
  .do-top { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .do-top .find { display: none; }
  .do-content { padding: 20px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
}

/* ── Page header ── */
.do-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.do-page-head h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.do-page-head p { margin-top: 4px; color: var(--do-muted); font-size: 14.5px; }
.do-page-head .crumbs { font-size: 13px; color: var(--do-muted); margin-bottom: 6px; }
.do-page-head .crumbs a { color: var(--do-muted); text-decoration: none; }
.do-page-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Hero number + secondary figures (one leads) ── */
.do-hero-stat { display: flex; flex-direction: column; gap: 6px; }
.do-hero-stat .k { font-size: 13px; color: var(--do-muted); }
.do-hero-stat .v { font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.do-hero-stat .d { font-size: 13px; color: var(--do-muted); }
.do-figures { display: flex; gap: 32px; flex-wrap: wrap; }
.do-figures div { display: flex; flex-direction: column; gap: 2px; }
.do-figures .k { font-size: 13px; color: var(--do-muted); }
.do-figures .v { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ── Tables ── */
.do-table-card { border-radius: var(--do-r-card); background: var(--do-surface); box-shadow: var(--do-ring); overflow: hidden; min-width: 0; }
.do-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--do-line); flex-wrap: wrap; }
.do-toolbar .title { font-weight: 600; font-size: 14px; margin-right: auto; }
.do-toolbar .do-input { height: 32px; width: 220px; max-width: 100%; font-size: 13px; }
.do-table-wrap { overflow-x: auto; scrollbar-gutter: stable; }
.do-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.do-table th { position: sticky; top: 0; z-index: 1; background: var(--do-surface); text-align: left; font-weight: 500; color: var(--do-muted); padding: 10px 14px; border-bottom: 1px solid var(--do-line); white-space: nowrap; }
.do-table th a { color: inherit; text-decoration: none; }
.do-table td { padding: 11px 14px; border-bottom: 1px solid var(--do-line); color: var(--do-ink-2); vertical-align: middle; }
.do-table tr:last-child td { border-bottom: 0; }
@media (hover: hover) { .do-table tbody tr:hover td { background: var(--do-sunken); } }
.do-table tr[aria-selected="true"] td { background: var(--do-accent-tint); }
.do-table .r, .do-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.do-table .who { color: var(--do-ink); font-weight: 500; }
.do-table .who small { display: block; font-weight: 400; color: var(--do-muted); font-size: 13px; }
.do-table .acts { text-align: right; white-space: nowrap; }
.do-table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--do-line); font-size: 13px; color: var(--do-muted); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.do-pager { display: flex; gap: 4px; }

/* ── Empty, loading, alerts ── */
.do-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 24px; }
.do-empty .ico { width: 40px; height: 40px; border-radius: var(--do-r-btn); display: grid; place-items: center; background: var(--do-sunken); color: var(--do-muted); border: 1px solid var(--do-line); }
.do-empty h3 { font-size: 15px; } .do-empty p { color: var(--do-muted); max-width: 420px; font-size: 14px; }
.do-skel { display: block; height: 12px; border-radius: 4px; background: var(--do-sunken); }
@media (prefers-reduced-motion: no-preference) { .do-skel { animation: do-pulse 1.4s ease-in-out infinite; } }
@keyframes do-pulse { 50% { opacity: .55; } }
.do-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--do-r-card); background: var(--do-sunken); border: 1px solid var(--do-line); font-size: 14px; color: var(--do-ink); }
.do-alert .do-ic { margin-top: 2px; color: var(--do-muted); }
.do-alert.warn { background: var(--do-warn-tint); border-color: transparent; } .do-alert.warn .do-ic { color: var(--do-warn); }
.do-alert.bad { background: var(--do-bad-tint); border-color: transparent; } .do-alert.bad .do-ic { color: var(--do-bad); }
.do-alert.ok .do-ic { color: var(--do-ok); }
.do-alert .acts { margin-left: auto; display: flex; gap: 8px; }
.do-alert b { font-weight: 500; }

/* ── Dialog, toast ── */
dialog.do-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--do-r-frame); background: var(--do-surface); color: var(--do-ink); box-shadow: var(--do-shadow-over); overscroll-behavior: contain; }
dialog.do-dialog.sm { width: min(400px, calc(100% - 32px)); }
dialog.do-dialog::backdrop { background: rgb(12 13 12 / .45); }
@media (prefers-reduced-motion: no-preference) {
  dialog.do-dialog[open] { animation: do-rise var(--do-t-over) var(--do-ease); }
  dialog.do-dialog[open]::backdrop { animation: do-fade var(--do-t-over) var(--do-ease); }
}
@keyframes do-rise { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes do-fade { from { opacity: 0; } }
.do-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0; }
.do-dialog header h2 { font-size: 17px; letter-spacing: -.015em; }
.do-dialog .body { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 14px; color: var(--do-ink-2); }
.do-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--do-line); background: var(--do-sunken); }
.do-toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: var(--do-z-toast); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.do-toast { display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 400px; padding: 12px 14px; border-radius: var(--do-r-card); background: var(--do-inverse); color: var(--do-on-inverse); box-shadow: var(--do-shadow-over); font-size: 14px; }
.do-toast button { margin-left: auto; background: none; border: 0; color: var(--do-on-inverse); font: 500 13px var(--do-font); text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .do-toast { animation: do-rise var(--do-t-base) var(--do-ease); } }

/* ── App tiles (hub dashboard) ── */
.do-tile { border-radius: var(--do-r-card); background: var(--do-surface); box-shadow: var(--do-ring); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.do-tile .h { display: flex; align-items: center; gap: 12px; } .do-tile .h b { font-weight: 600; font-size: 15px; }
.do-tile p { font-size: 14px; color: var(--do-ink-2); }
.do-tile .meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--do-muted); }
.do-tile .acts { display: flex; gap: 8px; margin-top: auto; }

/* ── Ask box and AI output (no gradients: AI is marked by a label and its cost) ── */
.do-ask { border-radius: var(--do-r-card); background: var(--do-surface); box-shadow: var(--do-ring); overflow: hidden; }
.do-ask .q { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--do-line); }
.do-ask .q input { flex: 1; min-width: 0; border: 0; background: none; color: var(--do-ink); font: 400 15px var(--do-font); outline: none; }
.do-ask .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; font-size: 14px; color: var(--do-ink-2); border-bottom: 1px solid var(--do-line); }
.do-ask .row em { font-style: normal; font-size: 13.5px; color: var(--do-muted); }
.do-ask .cost, .do-ai .cost { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--do-sunken); font-size: 13.5px; color: var(--do-muted); font-variant-numeric: tabular-nums; }
.do-ai { border-radius: var(--do-r-card); background: var(--do-surface); box-shadow: var(--do-ring); overflow: hidden; }
.do-ai .head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; font-size: 13px; color: var(--do-muted); }
.do-ai .head b { color: var(--do-ink); font-weight: 500; }
.do-ai .body { padding: 8px 14px 14px; color: var(--do-ink-2); font-size: 14.5px; display: flex; flex-direction: column; gap: 10px; }
.do-ai .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Charts (inline SVG, coloured by these) ── */
.do-chart { width: 100%; display: block; }
.do-chart .grid { stroke: var(--do-line); }
.do-chart .series { fill: none; stroke: var(--do-accent); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.do-chart .series.prev { stroke: var(--do-faint); stroke-dasharray: 4 4; }
.do-chart .area { fill: var(--do-accent-fill); }
.do-chart .bar { fill: var(--do-line-2); } .do-chart .bar.current { fill: var(--do-accent); }
.do-chart text { fill: var(--do-muted); font: 11.5px var(--do-font); }

@media (prefers-reduced-motion: reduce) { .do-ui *, .do-ui *::before, .do-ui *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .do-btn[aria-busy="true"]::before { animation-duration: .7s !important; } }

/* Theme switch (do-ui.js DOUI.theme.toggle): the new theme spills as a circle from the button.
   Button markup: <button class="do-icon-btn" data-do-theme><svg class="do-ico-moon">…</svg><svg class="do-ico-sun">…</svg></button> */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
[data-do-theme] .do-ico-sun, [data-do-theme] .do-ico-moon { transition: transform 200ms cubic-bezier(.22,1,.36,1), opacity 200ms cubic-bezier(.22,1,.36,1); }
[data-do-theme] .do-ico-sun { display: none; }
:root[data-theme="dark"] [data-do-theme] .do-ico-sun { display: inline-block; }
:root[data-theme="dark"] [data-do-theme] .do-ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-do-theme] .do-ico-sun { display: inline-block; }
  :root:not([data-theme="light"]) [data-do-theme] .do-ico-moon { display: none; }
}
[data-do-theme]:active .do-ico-sun, [data-do-theme]:active .do-ico-moon { transform: rotate(-90deg) scale(.9); opacity: .6; }
@media (prefers-reduced-motion: reduce) { [data-do-theme] .do-ico-sun, [data-do-theme] .do-ico-moon { transition: none; } }

/* ── Touch targets ───────────────────────────────────────────────────────────
   Measured at 390px and 820px on 2 Nov 2026, across the hub's own screens and
   a probe page holding one of every control: the kit draws its controls 20-41px
   tall. That is right under a mouse and short of the 44px a finger needs, so
   every one of them is raised BELOW 1024px only. Desktop density is deliberately
   left exactly as it was - this block is the whole change, and nothing outside a
   media query moved.

   Three things this block is careful about, each of which has bitten already:

   1. HEIGHT, NOT PADDING. An earlier attempt at the same problem on a table
      checkbox added padding plus a negative margin and collapsed the control to
      2px tall: the element kept its own box and the margin ate it. Setting
      height on something that is already a flex box cannot do that.

   2. SPECIFICITY, NOT ORDER. A media query adds no specificity, so
      `.do-input { height: 44px }` here would still lose to `.do-toolbar
      .do-input { height: 32px }` above no matter where it sits. Every rule that
      is beaten by a two-class selector is therefore repeated at that weight -
      .do-btn.sm, .do-btn.icon.sm, .do-toolbar .do-input. Delete one of those
      "redundant" lines and that control silently goes back to 32px.

   3. THE VISUAL SIZE OF A SWITCH AND A CHECKBOX IS THE DESIGN. Both stay the
      size they are drawn. The switch gets an invisible 44x44 hit area from a
      pseudo-element, and the checkbox's target is its <label>, which is what a
      person actually taps. Neither control's own box changes.

   The burger mattered most: 32x34, and on a phone it is the only way to reach
   the menu at all. */
@media (max-width: 1023px) {
  .do-btn, .do-btn.sm { height: 44px; }
  .do-btn.icon, .do-btn.icon.sm { width: 44px; }
  .do-input, .do-select { height: 44px; }
  .do-toolbar .do-input { height: 44px; }
  .do-top .find { height: 44px; }
  .do-side a.item { min-height: 44px; }
  .do-skip { padding: 12px 16px; }
  /* The label is the target. The box stays 16px, because a 44px checkbox is a
     different design, not a more reachable one. */
  .do-check { min-height: 44px; }
  /* 36x20 drawn, 44x44 to the finger. ::after is already the knob, so the hit
     area is ::before - and it carries NO z-index: -1. That was the first
     attempt, and elementFromPoint found nothing at all 8px above the switch,
     because a negative z-index takes the box out of hit testing as well as out
     of the paint. ::before is painted before ::after in any case, so the knob
     still sits on top without it. */
  .do-switch::before { content: ""; position: absolute; inset: -12px -4px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  /* The icon rail: 44 wide as well as 44 tall. The rail column is 64px with 8px
     of padding, so 44 fits with room either side. */
  .do-side a.item { width: 44px; }
  .do-side .brand { min-height: 44px; width: 44px; }
}
