/* Site Builder Builder — the dash, everywhere (body.dash; loaded last)

   The side menu's pages (shell.css) were the first to wear the Slashboom
   site's own cloth: the black room, the menu's dark sheet with its faint 24px
   grid, white-14% hairlines, white words, gold for what you point at, maroon
   for the glow behind it, Michroma for the wide display lines, Manrope for the
   rest — and square corners throughout. This sheet carries that cloth to the
   rest of the builder: Settings and every other sheet, the brief, the editor,
   the launch page and the Developer tools.

   It works in two moves. The theme's colours are tokens (app.css :root), so
   flipping them on body.dash turns everything that reads them light-on-dark;
   then the sections below restyle whatever drew its own white.

   The branded panels keep their own skins and are fenced off: Claude's panel
   (Claude, Agents and Higgsfield — .chat), Claude's asks in the corner, the
   builder-update panel and everything it shows (Claude's skin too), the
   Blender × Claude and Unreal × Claude windows and start cards, the Claude
   card in Settings, Google's sign-in button, the client questionnaire (its
   own black already), the invoice paper, the Claude list down the left of
   Site styles and the Files sheet's Claude pane (both on Claude's paper),
   and a menu opened from any of them (app.js ddOpen marks it .dd-day). Inside them the tokens go back to
   daylight (the reset below) and none of the rules here reach in: every
   generic rule carries :not(:where(<the fence>) *), at no cost to its
   specificity. Keep that list in step with the reset. */

/* ---- the tokens: light on dark ---- */
body.dash {
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --wide: "Michroma", "Manrope", system-ui, sans-serif;
  --sb-grid:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 24px;
  --sb-sheet: var(--sb-grid), linear-gradient(165deg, #161616 0%, #0B0B0B 55%, #0E0607 100%);
  /* a sheet's hover: a step brighter, the maroon deeper in its far corner */
  --sb-sheet-hi: var(--sb-grid), linear-gradient(165deg, #1D1D1D 0%, #111 55%, #170A0C 100%);
  /* floating sheets (menus, popovers, sheets over the page): nearly opaque, so
     what is under them never reads through the words */
  --sb-float: var(--sb-grid), linear-gradient(165deg, rgba(24, 24, 24, .98) 0%, rgba(12, 12, 12, .98) 60%, rgba(16, 7, 9, .98) 100%);
  --ink: #F4F4F4;
  --muted: rgba(255, 255, 255, .64);
  --line: rgba(255, 255, 255, .16);
  --line-soft: rgba(255, 255, 255, .09);
  --glass: #0D0D0D;
  --glass-2: #171717;
  --raised: rgba(255, 255, 255, .06);
  --accent-deep: #F0A3B0;
  --accent-soft: rgba(123, 30, 46, .5);
  --danger-ink: #FF8F86;
  --danger-bg: rgba(220, 70, 60, .14);
  --danger-line: rgba(255, 120, 110, .45);
  --ok: #3FCF95;
  --warn: #F2B53A;
  --shadow-rest: none;
  --shadow-lift: 0 16px 34px -16px rgba(123, 30, 46, .8);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EDEDED' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
}

/* ---- the fence: the branded panels get daylight back ----
   (the same list as the :where() in the rules below) */
body.dash :is(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk, .upd-spot, .upd-rep,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .set-brand, .gsc-btn, .iq, .inv-ed-paper) {
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --display: var(--sans);
  --ink: #141414;
  --muted: #2E2E2E;
  --line: rgba(26, 26, 26, .14);
  --line-soft: rgba(26, 26, 26, .08);
  --glass: rgba(255, 255, 255, .62);
  --glass-2: rgba(255, 255, 255, .78);
  --raised: rgba(123, 30, 46, .08);
  --accent-deep: #5E1622;
  --accent-soft: rgba(123, 30, 46, .12);
  --danger-ink: #A32B23;
  --danger-bg: rgba(220, 70, 60, .08);
  --danger-line: rgba(192, 58, 49, .4);
  --ok: #0E8A5F;
  --warn: #9A6A12;
  --shadow-rest: 0 2px 10px rgba(26, 26, 26, .1);
  --shadow-lift: 0 6px 18px rgba(26, 26, 26, .14), 0 2px 30px rgba(123, 30, 46, .12);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545F82' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
}
/* the update screens and the questionnaire set their own colour; the cards
   that sit on daylight glass need the daylight ink handed back */
body.dash :is(.upq, .upd-live, .upd-gate-bar, .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .set-brand) { color: var(--ink); }

/* ---- the ground, the selection, the scrollbars ---- */
/* (the black room itself is shell.css's, drawn on body.dash::before) */
body.dash ::selection { background: var(--gold); color: #000; }
body.dash *:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .ask-mini, .iq) *) { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
body.dash *:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .ask-mini, .iq) *)::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .2); }
body.dash *:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .ask-mini, .iq) *)::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .34); }

/* ---- square corners, everywhere but the fence (a spinner keeps its ring) ---- */
body.dash :not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk, .upd-spot, .upd-rep,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .set-brand, .gsc-btn, .iq, .inv-ed-paper),
  :where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk, .upd-spot, .upd-rep,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .set-brand, .gsc-btn, .iq, .inv-ed-paper) *,
  [class*="spin"]),
body.dash :not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk, .upd-spot, .upd-rep,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .set-brand, .gsc-btn, .iq, .inv-ed-paper) *)::before,
body.dash :not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk, .upd-spot, .upd-rep,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .set-brand, .gsc-btn, .iq, .inv-ed-paper) *)::after {
  border-radius: 0 !important;
}
body.dash:not(:where(.mb-full)) .btn.loading::before { border-radius: 50% !important; }
/* the GitHub / Netlify / Firebase marks on the home cards stay circles */
body.dash .pcard-links .pl { border-radius: 50% !important; }

/* ---- focus: gold, the colour of what you point at ---- */
body.dash :focus-visible:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .upq, .ask-mini, .iq) *) { outline-color: var(--gold); }

/* ---- headings: the wide face, white ---- */
body.dash h1:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .upn, .upk, .iq, .inv-ed-paper) *) {
  font: 400 clamp(25px, 2.3vw, 36px)/1.18 var(--wide); letter-spacing: -.01em; font-synthesis: none; color: #FFFFFF;
}

/* ---- buttons: the Slashboom site's — black with a white edge, gold on
   hover; the primary white with black words ---- */
body.dash:not(:where(.mb-full)) .btn:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq, .gsc-btn) *, :where(.gsc-btn)) {
  background: #0B0B0B; color: #FFFFFF; border-color: rgba(255, 255, 255, .4); box-shadow: none;
}
body.dash:not(:where(.mb-full)) .btn:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq, .gsc-btn) *, :where(.gsc-btn)):hover {
  background: var(--gold); color: #000; border-color: var(--gold); box-shadow: 0 16px 34px -16px rgba(178, 58, 78, .85);
}
body.dash:not(:where(.mb-full)) .btn.primary:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *) {
  background: #FFFFFF; color: #000; border-color: #FFFFFF; box-shadow: 0 14px 32px -18px rgba(255, 255, 255, .35);
}
body.dash:not(:where(.mb-full)) .btn.primary:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *):hover {
  background: var(--gold); color: #000; border-color: var(--gold); box-shadow: 0 16px 34px -16px rgba(178, 58, 78, .85);
}
body.dash:not(:where(.mb-full)) .btn.ghost:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *) {
  background: transparent; border-color: transparent; color: rgba(255, 255, 255, .72);
}
body.dash:not(:where(.mb-full)) .btn.ghost:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *):hover {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #FFFFFF; box-shadow: none;
}
body.dash:not(:where(.mb-full)) .btn.danger:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *) {
  background: rgba(220, 70, 60, .12); color: #FF8F86; border-color: rgba(255, 120, 110, .45);
}
body.dash:not(:where(.mb-full)) .btn.danger:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *):hover {
  background: #C03A31; color: #FFFFFF; border-color: #C03A31; box-shadow: 0 16px 34px -16px rgba(192, 58, 49, .9);
}
/* a pressed toggle, and the picked part of a segmented track: maroon with a
   gold edge — the menu's own "you are here" */
body.dash:not(:where(.mb-full)) :is(.btn.on, .btn.mode.active, .btn.vp.active):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk,
  .upd-live, .upd-gate-bar, .upd-mk, .as-win.is-blender, .as-win.is-unreal, .iq) *) {
  background: rgba(123, 30, 46, .55); color: #FFFFFF; border-color: rgba(245, 197, 24, .55); box-shadow: 0 0 18px rgba(123, 30, 46, .45);
}
body.dash:not(:where(.mb-full)) .btn:disabled:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *),
body.dash:not(:where(.mb-full)) .btn:disabled:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *):hover {
  background: #0B0B0B; color: rgba(255, 255, 255, .45); border-color: rgba(255, 255, 255, .16); box-shadow: none; transform: none;
  opacity: 1;   /* dimmed by its words, not faded whole — app.css's .45 on top left it unreadable on the black */
}
body.dash:not(:where(.mb-full)) .btn.primary:disabled:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .lab-start-blender, .lab-start-unreal, .iq) *) {
  background: rgba(255, 255, 255, .55); color: rgba(0, 0, 0, .7); border-color: transparent;
}

/* ---- fields: a smoked well, gold when it has you ---- */
body.dash:not(:where(.mb-full)) :is(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file]), textarea, select):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini,
  .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk, .as-win.is-blender, .as-win.is-unreal, .iq, .inv-ed-paper) *) {
  background-color: rgba(255, 255, 255, .04); color: #FFFFFF; border-color: rgba(255, 255, 255, .2);
}
body.dash:not(:where(.mb-full)) :is(input, textarea):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .iq, .inv-ed-paper) *)::placeholder { color: rgba(255, 255, 255, .45); }
body.dash:not(:where(.mb-full)) select:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk,
  .as-win.is-blender, .as-win.is-unreal, .iq, .inv-ed-paper) *):hover { background-color: rgba(255, 255, 255, .07); border-color: rgba(245, 197, 24, .55); }
body.dash:not(:where(.mb-full)) :is(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file]), textarea, select):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini,
  .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar, .upd-mk, .as-win.is-blender, .as-win.is-unreal, .iq, .inv-ed-paper) *):focus {
  background-color: rgba(255, 255, 255, .07); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, .16);
}
body.dash select option { background: #111; color: #FFFFFF; }
body.dash:not(:where(.mb-full)) input:is([type=checkbox], [type=radio], [type=range]):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .iq) *) { accent-color: var(--gold); }
body.dash:not(:where(.mb-full)) input:is([type=date], [type=time], [type=datetime-local], [type=month], [type=number]):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .iq, .inv-ed-paper) *) { color-scheme: dark; }

/* ---- the sheets over the page (.modal): the menu's sheet, square, on a
   darker veil ---- */
body.dash .modal-back { background: rgba(0, 0, 0, .62); backdrop-filter: blur(10px) saturate(.9); -webkit-backdrop-filter: blur(10px) saturate(.9); }
body.dash .modal:not(:where(.chat) *) {
  background: var(--sb-float); border-color: rgba(255, 255, 255, .16); color: var(--ink);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .07),
    0 30px 80px -20px rgba(0, 0, 0, .9), 0 20px 60px -30px rgba(123, 30, 46, .7);
}
body.dash .modal h2:not(:where(.chat) *) {
  font: 400 16px/1.35 var(--wide); letter-spacing: .01em; font-synthesis: none; color: #FFFFFF; margin-bottom: 8px;
}

/* ==== the screens, one by one ==== */

/* ---- Settings ----
   The connection cards keep their makers' looks, as they did on the white
   sheet: Claude's on its warm paper, Netlify's on white, Higgsfield's on its
   own near-black (higgsfield.css). Everything else in the panes goes dark. */
body.dash .set-brand:not(.hfs-brand, .gks-brand) { background: #FFFFFF; border-color: rgba(255, 255, 255, .5); }
body.dash .set-brand.cl-brand { background: #FCF3EF; border-color: rgba(217, 119, 87, .55); }
body.dash .modal a:not([class]) { color: var(--accent-deep); }
body.dash .users-list li, body.dash .sc-builtin li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
body.dash .sc-cap { background: #1A1A1A; border-color: rgba(255, 255, 255, .28); color: #FFFFFF; }
body.dash .sc-note { background: #141414; border-color: rgba(255, 255, 255, .14); }
body.dash .cf-view-bar { background: rgba(14, 14, 14, .94); }
body.dash .cf-text { background: rgba(255, 255, 255, .04); }
body.dash .rp-body.dragging::after { background: rgba(10, 10, 10, .86); color: #FFFFFF; border-color: var(--gold); }
body.dash .set-code { background: rgba(255, 255, 255, .08); }

/* ---- the white header bars (the brief, the launch page, the tools) go to
   the black band, the logo white; the side menu's pages and the
   questionnaire's black header keep their own (more specific) rules ---- */
body.dash .home-head {
  background: linear-gradient(180deg, rgba(0, 0, 0, .94), rgba(6, 6, 6, .88));
  border-bottom-color: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
body.dash .home-head .brand-logo { filter: invert(1); }

/* ---- the brief's groups, option tiles and chips: the sheet ---- */
body.dash .field-group:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .iq) *) {
  background: var(--sb-sheet); border-color: rgba(255, 255, 255, .14);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.dash .pick span:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .iq) *) { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .16); color: var(--muted); }
body.dash .pick span:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .iq) *):hover { background: var(--sb-sheet-hi); border-color: rgba(245, 197, 24, .55); box-shadow: var(--shadow-lift); }
body.dash .pick input:checked + span:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .iq) *) {
  background: linear-gradient(180deg, rgba(123, 30, 46, .55), rgba(123, 30, 46, .22)); border-color: rgba(245, 197, 24, .6);
  color: #F0A3B0; box-shadow: 0 0 0 1px rgba(245, 197, 24, .25), 0 0 22px rgba(123, 30, 46, .45);
}
body.dash .pick input:checked + span .pv { border-color: rgba(245, 197, 24, .45); }
body.dash .chk:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .iq) *) { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .18); color: var(--ink); }
body.dash .chk:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .iq) *):hover { background: rgba(255, 255, 255, .1); border-color: rgba(245, 197, 24, .55); }
body.dash .chk:has(input:checked):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .iq) *) { background: rgba(123, 30, 46, .5); border-color: rgba(245, 197, 24, .6); color: #FFFFFF; box-shadow: 0 0 14px rgba(123, 30, 46, .35); }

/* ---- the app banner on the black ---- */
body.dash .app-banner { background: rgba(123, 30, 46, .32); border-bottom-color: rgba(255, 255, 255, .14); }
body.dash .app-banner.error { background: rgba(220, 70, 60, .16); color: #FF8F86; border-bottom-color: rgba(255, 120, 110, .45); }
body.dash .app-banner code { background: rgba(255, 255, 255, .1); }

/* ---- segmented tracks: a smoked track, the picked part white with black
   words (as on the side menu's pages) ---- */
body.dash:not(:where(.mb-full)) .mode-group:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .iq) *) {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5);
}
body.dash:not(:where(.mb-full)) .mode-group .btn:not(.active):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .iq) *) { background: transparent; border-color: transparent; color: rgba(255, 255, 255, .78); box-shadow: none; }
body.dash:not(:where(.mb-full)) .mode-group .btn:not(.active):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .iq) *):hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; box-shadow: none; }
body.dash:not(:where(.mb-full)) .mode-group .btn.active:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .iq) *),
body.dash:not(:where(.mb-full)) .mode-group .btn.active:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .iq) *):hover { background: #FFFFFF; color: #000; border-color: #FFFFFF; box-shadow: none; }
/* the canvas's page tabs: white words on the dark, the open tab white with
   black words. They keep a browser tab's rounded tops — the one shape asked
   to stay round here (app.css .page-tabs) */
body.dash .page-tabs { --tab-fill: #FFFFFF; --tab-hover: rgba(255, 255, 255, .1); --tab-sep: rgba(255, 255, 255, .22); --tab-base: rgba(255, 255, 255, .16);
  --tab-pin: var(--gold); }
body.dash .page-tabs .page-tab { border-radius: 10px 10px 0 0 !important; color: rgba(255, 255, 255, .78); }
body.dash .page-tabs .page-tab-more { border-radius: 6px !important; }
body.dash .page-tab:hover { color: #FFFFFF; }
body.dash .page-tab .page-tab-more:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .14); }
/* the open tab is white: its words black, its tick and pin the daylight green and maroon */
body.dash .page-tab.active, body.dash .page-tab.active:hover { color: #000; --tab-done: #0E8A5F; --tab-pin: #7B1E2E; }
body.dash .page-tab.active .page-tab-more:is(:hover, :focus-visible) { background: rgba(0, 0, 0, .08); }
body.dash :is(.page-tab-go, .page-tab-more):focus-visible { outline-color: var(--gold); }
body.dash .page-tab-name { outline-color: var(--gold); }
body.dash .page-tabs-list { border-radius: 8px !important; color: rgba(255, 255, 255, .78); }
body.dash .page-tabs-list:is(:hover, [aria-expanded="true"]) { color: #FFFFFF; }
body.dash .page-tabs-list:focus-visible { outline-color: var(--gold); }
body.dash .page-tabs-eye { border-radius: 8px !important; color: rgba(255, 255, 255, .78); }
body.dash .page-tabs-eye:hover { color: #FFFFFF; }
body.dash .page-tabs-eye:focus-visible { outline-color: var(--gold); }
body.dash .page-tab.is-dragging { color: #000; --tab-done: #0E8A5F; --tab-pin: #7B1E2E; }

/* ---- the editor: its top bar and right-hand panel on the sheet (full
   screen keeps its own smoked glass) ---- */
body.dash:not(.mb-full) .topbar {
  background: var(--sb-grid), linear-gradient(180deg, #0B0B0B 0%, #060606 100%);
  border-bottom-color: rgba(255, 255, 255, .14);
}
body.dash:not(.mb-full) .inspector {
  background: var(--sb-sheet); border-left-color: rgba(255, 255, 255, .14);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.dash:not(.mb-full) .stage { background: rgba(0, 0, 0, .35); }

/* ==== the audit: everything else that still drew its own white ====
   Every screen, and every rule in the builder's sheets that paints a light
   surface or sets dark words, was put under the dash and its words measured
   against what is actually behind them; these are the ones that fell short.
   The builder's own surfaces go dark in the vocabulary above: the sheet for
   panels, the float for what pops over the page, a smoked well with a white
   hairline for cards and chips (a step brighter, gold-edged, under the
   pointer), white with black words for the picked part of a track. Pictures
   of a site — the canvas, previews, thumbnails, the reels on the cards — stay
   white, and the small chips that sit on them keep dark words; badges on the
   dash's light green, amber and ink get black words; maroon words go rose,
   and gold where they are pointed at.
   Each rule takes the specificity of the one it answers (:where(body.dash)
   adds none), so it wins by coming last while the component's own pressed
   and picked states still win over it. Rules for pieces that also turn up
   inside the fence carry it; the rest never do. */

body.dash { --tc-idle: repeating-linear-gradient(135deg, rgba(255, 255, 255, .34) 0 1.5px, rgba(255, 255, 255, .1) 1.5px 4.5px); }

/* ---- what pops over the page: menus, popovers, the change preview, the
   Files sheet, the studio's small windows, Make it with Claude ---- */
:where(body.dash) :is(.dd-menu, .ts-pop, .design-pop, .sec-pop, .share-pop, .live-pop, .tcc, .care-tip, .cm-panel, .chg, .files-sheet, .as-win):not(:where(.dd-day, .dd-hf, .dd-gk, .is-blender, .is-unreal, .docked)),
html:not(.ios) :where(body.dash) .ctx-menu {
  background: var(--sb-float); border-color: rgba(255, 255, 255, .16); color: var(--ink);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px -18px rgba(0, 0, 0, .85);
}
/* (the iPhone's Add to Home Screen card too) */
:where(body.dash) #sb-install {
  background: var(--sb-float); border-color: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 70px rgba(0, 0, 0, .7);
}
:where(body.dash) :is(.sbi-x, .sbi-key) { background: rgba(255, 255, 255, .1); }
:where(body.dash) .chg-back { background: rgba(0, 0, 0, .62); }
:where(body.dash) .dd-tip:not(:where(.dd-day, .dd-hf, .dd-gk)) { background: #1A1A1A; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 12px 32px rgba(0, 0, 0, .6); }
/* the editor topbar's Live switch: a smoked step under the pointer, not white */
:where(body.dash) :is(.lv-seg, .lv-more):not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, .1); }

/* ---- the builders' strip and side panel (Elements, Sections, Animations,
   the 3D Studio, Site styles): on the sheet, as the editor's own panel ---- */
body.dash :is(.lt-dock, .ll-panel) { background: var(--sb-sheet); }
:where(body.dash) .dt-stage { background: rgba(0, 0, 0, .35); }
:where(body.dash) .lt-card, :where(body.dash) .lt-own .em-g { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
:where(body.dash) .lt-card.lt-ask { background: rgba(217, 119, 87, .08); border-color: rgba(217, 119, 87, .5); }
:where(body.dash) .lt-ask .lt-card-h { color: #EFA383; }
:where(body.dash) .lt-body.bl-body > .lt-card.bl-build { background: #121212; box-shadow: 8px 0 16px -10px rgba(0, 0, 0, .9); }
:where(body.dash) :is(.lt-ask-part, .ll-count) { background: rgba(255, 255, 255, .1); }
:where(body.dash) .ll-row:not(.on):hover, :where(body.dash) :is(.lt-fold, .bl-ib):hover { background: rgba(255, 255, 255, .08); }
body.dash:is(.dev-lab, .dev-3d) :is(#lab-bl-modes, .lt-modes) { background: rgba(255, 255, 255, .06); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); }
:where(body.dash) .bl-step { background: rgba(255, 255, 255, .05); }
:where(body.dash) .bl-step-t:focus { background: rgba(255, 255, 255, .08); }

/* ---- cards, chips and wells: smoked, with a white hairline ---- */
:where(body.dash) :is(.lt-card, .bl-t, .lab-cursor-in, .lab-hf-toggle, .lab-refs-drop, .bf-docs-drop, .bf-doc, .em-seg, .em-up, .seg, .el-bin, .skill-item,
  .bf-style-chip, .pg-client, .pg-client-key, .bf-files-in, .bf-files-tabs, .bf-upgrade-ic, .score-card, .acheck, .a-ign-btn, .a-change,
  .spot, .bk-path, .im-card, .share-link, .share-page, .sv-visit, .rcomment, .nfp-name, .nfp-site, .nfp-dep, .tco-sug, .tcc-tile,
  .todo-status, .todo-who, .cmb-card, .cm-chat, .cmf-claude, .cmf-opt, .dtok-worn, .dtok-use, .dpart-chip, .sec-drop, .s3d-note,
  .s3d-sketch-have, .as-vchip, .as-ask, .as-fxb, .as-hf-send, .fl-find, .fl-badge, .fl-stat, .fl-fact, .fl-preview, .fl-page-chip,
  .fl-tile, .caps-kv, .caps-search, .sst-chip, .sst-note, .iqe-sec, .iqe-q, .pill, .care-st, .care-qtype, .care-sev, .care-md-preview,
  .gsc-pill, .lp-sec, .lp-st):not(:where(.chat, .dt-list, .fl-claude, .dd-day, .ask-mini, .sug-card, .upc, .td-view, .upq, .upn, .upk, .upd-live, .upd-gate-bar,
  .upd-mk, .upd-spot, .upd-rep, .as-win.is-blender, .as-win.is-unreal, .set-brand, .iq, .inv-ed-paper) *) {
  background-color: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14);
}
:where(body.dash) :is(.import-pages li, .bf-files-doc pre, .cmf-ask-body pre) { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
:where(body.dash) :is(.fl-fact code, .fl-detail code) { background: rgba(255, 255, 255, .08); }
:where(body.dash) .pcard .pill:not(:where(.chat, .dt-list, .fl-claude) *) { background: rgba(0, 0, 0, .78); }
:where(body.dash) .care-st.is-warn { background: rgba(242, 181, 58, .12); border-color: rgba(242, 181, 58, .45); }
:where(body.dash) .care-st.is-down { background: rgba(220, 70, 60, .14); border-color: rgba(255, 120, 110, .45); }
:where(body.dash) .nfp-dep.is-live { background: rgba(63, 207, 149, .08); }
:where(body.dash) :is(.nfp-name, .as-ask):focus-within { background: rgba(255, 255, 255, .08); }
:where(body.dash) .as-hf-cost.low { background: rgba(255, 255, 255, .08); }
:where(body.dash) .audit-claude[aria-pressed="true"] { background: rgba(217, 119, 87, .16); }
:where(body.dash) .cmf-ask { background: rgba(245, 197, 24, .08); }
:where(body.dash) .cmf-ask.is-answered { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
:where(body.dash) .iqe-body { background: rgba(0, 0, 0, .2); }
/* …a step brighter, gold-edged, under the pointer (a picked one keeps its pick) */
:where(body.dash) :is(.lab-quick, .lab-hf-toggle, .lab-refs-drop, .bf-docs-drop, .em-seg, .seg, .el-bin, .skill-item, .bf-style-chip, .share-page,
  .rcomment, .nfp-site, .nfp-dep, .todo-who, .sec-drop, .menu-row, .as-vchip, .as-fxb, .fl-tile, .acheck, .audit-chip,
  .iqe-tool):hover:not(:where(.chat, .dt-list, .fl-claude, .dd-day, .upc, .td-view, .iq) *),
:where(body.dash) :is(.lab-refs-drop, .bf-docs-drop, .sec-drop):focus-visible, :where(body.dash) .acheck[open],
:where(body.dash) :is(.spot:not(.active), .sst-chip:not(.on), .cmb-chip:not([aria-pressed="true"]), .ov-toggle:not(.on),
  .as-ib:not(.primary, .on), .as-btn:not(.primary, .on)):hover {
  background-color: rgba(255, 255, 255, .1); border-color: rgba(245, 197, 24, .55);
}
:where(body.dash) :is(.preset-add-chip, .skill-more, .skill-star, .skill-del, .bf-doc-x, .tcc-x, .cm-attach, .sec-item, .lt-btn, .pal-change,
  .ign-chip, .col-rail, .as-nrow, .as-tool, .fl-crumb, .fl-copy, .fl-item, .bf-files-tab, .cmf-steps-head, .abd-back):hover,
:where(body.dash) .fl-row:not(.sel):hover,
:where(body.dash) :is(.sec-seg button, .todo-pick label):hover,
:where(body.dash) :is(.dtok-uses, .dtok-use):hover:not(:disabled), :where(body.dash) .dfont:hover .dfont-prev,
:where(body.dash) .menu-lib-head:hover .mlh-chev, :where(body.dash) .import-mode:hover .im-card { background: rgba(255, 255, 255, .1); }
:where(body.dash) .menu-row:is(.design-row, .drop-row)[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
:where(body.dash) .fl-row:active { background: rgba(255, 255, 255, .14); }
:where(body.dash) :is(.skill-del, .bf-doc-x):hover { color: var(--danger-ink); }
:where(body.dash) .bf-docs-drop.dropping { background-color: rgba(123, 30, 46, .3); border-color: var(--gold); }

/* ---- tracks: smoked; the picked part white with black words ---- */
:where(body.dash) :is(.cm-seg, .as-tabs) { background: rgba(255, 255, 255, .06); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); }
:where(body.dash) :is(.cm-seg button[aria-pressed="true"], .as-tabs button[aria-selected="true"], .caps-seg button.on) { background: #FFFFFF; color: #000; }
/* a pressed toggle: the menu's own "you are here" */
:where(body.dash) .hist-btn[aria-expanded="true"] { background: rgba(123, 30, 46, .55); color: #FFFFFF; border-color: rgba(245, 197, 24, .55); }
:where(body.dash) #crm-section .btn.drop-ready { background: rgba(123, 30, 46, .55); color: #FFFFFF; border-color: var(--gold); }
:where(body.dash) .btn.primary .nbadge:not(:where(.chat, .dt-list, .fl-claude, .upc, .td-view, .iq) *) { background: #000; color: #FFFFFF; }

/* ---- the animation studio's timeline and its odd pieces ---- */
:where(body.dash) :is(.as-name-head, .as-ruler) { background-color: #141414; }
:where(body.dash) .as-ruler { background-image: linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px); }
:where(body.dash) .as-tick { border-left-color: rgba(255, 255, 255, .3); }
:where(body.dash) .as-tick.big { border-left-color: rgba(255, 255, 255, .5); }
:where(body.dash) :is(.as-nrow, .as-lane) { border-bottom-color: rgba(255, 255, 255, .05); }
:where(body.dash) .as-lane.is-layer { background: rgba(255, 255, 255, .04); }
:where(body.dash) .as-end-shade { background: rgba(0, 0, 0, .35); }
:where(body.dash) .as-mini { background: rgba(255, 255, 255, .08); color: var(--ink); }
:where(body.dash) :is(.as-pill, .as-hf-thumb, .tcc-bar) { background: rgba(255, 255, 255, .08); }
:where(body.dash) :is(.as-drop, .as-vchip) { border-color: rgba(255, 255, 255, .24); }
:where(body.dash) .as-kbtn { color: rgba(255, 255, 255, .45); }
:where(body.dash) .as-kbtn:hover { color: var(--accent-deep); }

/* ---- the Overview's board: the black of the stage, the pages' names white ---- */
:where(body.dash) .ov-board { background: #0B0B0B; }
:where(body.dash) .ov-name { color: rgba(255, 255, 255, .6); }
:where(body.dash) .ov-page.on .ov-name { color: var(--gold); }
:where(body.dash) .ov-hint { color: rgba(255, 255, 255, .55); }
body.dash.crunching .device-dims { background: rgba(10, 10, 10, .86); color: var(--gold); }

/* ---- words that were set dark for a white card ---- */
:where(body.dash) :is(.bf-files-doc h3, .tco-head h2, .fl-sheet-title > b, .fl-detail-head h2, .fl-stat b, .cfg-head h2, .wg-svc-head h2) { color: #FFFFFF; }
:where(body.dash) .tcc-big { color: #FFFFFF; }
:where(body.dash) .step-note.err { color: var(--danger-ink); }
:where(body.dash) .seg-opt input[value=fable]:checked + span { color: #B7A6F2; }
:where(body.dash) :is(.inv-pay-amt, .inv-pill.paid):not(:where(.inv-ed-paper) *) { color: #3FCF95; }

/* ---- maroon words go rose; gold where they are pointed at ---- */
:where(body.dash) :is(.ctx-tick, .hist-mark, .cmf-steps-ic, .cust-ct-open, .bf-upgrade-ic, .linkish) { color: var(--accent-deep); }
:where(body.dash) :is(.rp-folder-head svg, .import-drop > svg, .bf-docs-drop > svg, .bf-doc-ic, .fl-fact a, .gsc-verdict a, .sst-note svg) { color: var(--accent-deep); }
:where(body.dash) .url-btn.checking svg, :where(body.dash) .fl-row.sel .fl-ic,
:where(body.dash) :is(.todo-who.is-claude:not(.is-agent) svg, .td-menu .dd-item > svg:not(.dd-check, .td-spark)) { color: var(--accent-deep); }
:where(body.dash) .caps-connect li::marker, :where(body.dash) .blk.mine .blk-lab::after, :where(body.dash) .rp-tile.is-now span::after { color: var(--accent-deep); }
:where(body.dash) .linkish:hover { color: var(--danger-ink); }
:where(body.dash) :is(.pub-url, .cap-src, .cust-site-name):hover, :where(body.dash) .bk-steps a:hover, :where(body.dash) .gsc-name a:hover,
:where(body.dash) :is(.share-access .linkish, .sv-line .linkish, .crm-hint .linkish):hover, :where(body.dash) .share-row-opts .lab .linkish:hover,
:where(body.dash) .crm-facts dd a:hover, :where(body.dash) .linkish.nav:hover:not(:where(.chat, .dt-list, .fl-claude, .upc, .td-view, .iq) *) { color: var(--gold); }

/* ---- badges on the dash's light green, amber and ink: black words ---- */
:where(body.dash) :is(.url-badge, .cmf-ask-ic) { color: #000; }
:where(body.dash) .cmf-ask.is-answered .cmf-ask-ic { background: rgba(255, 255, 255, .12); color: var(--ink); }
:where(body.dash) :is(.lab-check.pass .lab-check-ic, .lab-check.warn .lab-check-ic, .rcomment.is-done .rc-num):not(:where(.chat, .upc, .td-view) *),
:where(body.dash) .rc-num:not(:where(.chat, .upc, .td-view) *) { color: #000; }
:where(body.dash) :is(.cm-file.is-video, .lab-ref.is-video) { background: #141414; }

/* ---- small white chips on pictures of a site keep dark words ---- */
:where(body.dash) :is(.cm-file-x, .lab-shot-try) { color: #141414; }
:where(body.dash) .lab-ref .chip-x { color: #141414; }
:where(body.dash) :is(.sec-badge, .blk-x) { color: #2E2E2E; }
:where(body.dash) :is(.sec-grab, .sec-thumb .sec-fix) { color: #5E1622; }
:where(body.dash) .blk-x:hover { color: #A32B23; }
:where(body.dash) .cm-empty b { color: #141414; }
:where(body.dash) .cm-empty span, :where(body.dash) .chg-veil { color: #2E2E2E; }
:where(body.dash) .as-ov-tag { fill: #5E1622; }
/* (the hairlines drawn for a white page) */
:where(body.dash) .spot.is-mark .spot-n { background: rgba(255, 255, 255, .12); }
:where(body.dash) .chg-key i.k-mark, :where(body.dash) .a-change .a-change-glyph { border-color: rgba(255, 255, 255, .32); }

/* ---- Launch → Publish: how the site goes out — smoked tiles, gold edge when
   pointed at or open, the logos keep their white plates, the links run gold ---- */
:where(body.dash) :is(.pipe-node, .pipe-now) { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
:where(body.dash) .pipe-node:hover { background: rgba(255, 255, 255, .1); border-color: rgba(245, 197, 24, .55); }
:where(body.dash) .pipe-node.sel { background: rgba(255, 255, 255, .1); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
:where(body.dash) .pipe-st { color: #3FCF95; background: rgba(63, 207, 149, .1); }
:where(body.dash) .pipe-node.is-off .pipe-st { color: var(--muted); background: rgba(255, 255, 255, .08); }
:where(body.dash) .pipe-line, :where(body.dash) .pipe-line::after, :where(body.dash) .pipe-link.both .pipe-line::before { border-color: rgba(255, 255, 255, .4); }
:where(body.dash) .pipe-line { background-color: rgba(255, 255, 255, .4); }
:where(body.dash) .pipe-link.is-off .pipe-line { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 5px, transparent 5px 9px); }
:where(body.dash) .pipe-link.run .pipe-line { background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); background-size: 28px 2px; }
:where(body.dash) .pipe-link.run .pipe-line::after { border-color: var(--gold); }
