/* Darkroom - the review portal as a colour-grading suite.

   The approved Darkroom prototype (aperture_design_prototypes/darkroom/), laid over
   aperture.css. Every neutral is R = G = B, so nothing shifts the eye's white point while
   the author judges skin, blush and wrinkles. One tungsten amber marks position, focus and
   selection. Verdicts are quiet sage and rose, in the chrome only. Geist with tabular
   figures; Geist Mono for raw values. Motion is opacity and transform only, 120-180 ms,
   and off under prefers-reduced-motion.

   How it is built (portal/docs/themes.md, themes-tokens.md, review_layout.md):
   1. tokens - every role re-pointed on :root[data-theme="darkroom"];
   2. rules - only where a token is not enough, every one scoped to that same selector,
      so legacy (no data-theme, or data-theme="legacy") never reads a line of this file;
   3. icons - each ico-* hook drawn as a thin line icon (an SVG mask in currentColor).

   Pictures: the stage behind the picture under review and every thumbnail's mat is the
   one neutral grey (--dr-stage). No rule here tints, filters, shadows or lays anything
   over a render - the badges legacy drew on thumbnails sit under the picture instead. */

@font-face {
  font-family: "Geist";
  src: url("../../fonts/darkroom/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../../fonts/darkroom/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* The parent's font size, as a length, for an icon whose own text is set to 0 (below). */
@property --dr-pfs { syntax: "<length>"; inherits: true; initial-value: 14px; }

/* ============================================================== 1. tokens */
:root[data-theme="darkroom"] {
  color-scheme: dark;

  /* Darkroom's own palette. Neutrals are all true grey. */
  --dr-ink-0: #151515;   /* wells, inputs */
  --dr-ink-1: #1b1b1b;   /* page */
  --dr-ink-2: #212121;   /* panels */
  --dr-ink-3: #282828;   /* raised, hover */
  --dr-ink-4: #2e2e2e;
  --dr-stage: #2a2a2a;   /* the picture's surround: a calibrated mid-dark grey */
  --dr-rule: #333333;
  --dr-rule-2: #404040;
  --dr-text: #e6e6e6;
  --dr-text-2: #b4b4b4;
  --dr-muted: #9c9c9c;   /* 6.3:1 on the page, 4.9:1 on the lightest surface */
  --dr-faint: #969696;   /* small labels: 5.8:1 on the page, 4.6:1 on the lightest surface */
  --dr-amber: #e3a857;   /* tungsten: position, focus, selection */
  --dr-amber-hi: #ecb76b;
  --dr-amber-ink: #1b1408;
  --dr-final: #93bd8e;   /* finalised */
  --dr-change: #df8f9a;  /* changes requested */
  --dr-info: #a9b8c9;
  --dr-danger: #e57f7f;
  --dr-straw: #d6c27c;   /* waiting / open: kept apart from the amber accent */
  --dr-lilac: #b3a5e3;

  /* ---- surfaces */
  --surface-page: var(--dr-ink-1);
  --surface-panel: var(--dr-ink-2);
  --surface-raised: var(--dr-ink-3);
  --surface-raised-2: var(--dr-ink-4);
  --surface-sunken: var(--dr-ink-0);
  --surface-well: var(--dr-ink-0);
  --surface-sidebar: var(--dr-ink-1);
  --surface-glass: rgba(255, 255, 255, .035);
  --surface-appbar: var(--dr-ink-1);
  --surface-actionbar: var(--dr-ink-1);
  --surface-submitbar: var(--dr-ink-2);
  --surface-textbox: rgba(21, 21, 21, .9);
  --surface-sync: var(--dr-ink-1);
  --surface-popover: var(--dr-ink-2);

  /* ---- text */
  --text-primary: var(--dr-text);
  --text-secondary: var(--dr-text-2);
  --text-muted: var(--dr-muted);
  --text-strong: #ffffff;
  --text-inverse: var(--dr-amber-ink);
  --text-on-accent: var(--dr-amber-ink);
  --text-missing-title: #d0d0d0;
  --text-help-strong: #c4c4c4;
  --text-viewas: #e4dff7;

  /* ---- lines */
  --border: var(--dr-rule);
  --border-hover: var(--dr-rule-2);
  --border-active: #4a4a4a;
  --border-card-hover: var(--dr-rule-2);

  /* ---- hues, re-tuned to Darkroom's muted range (roles below are re-pointed too) */
  --black: #000000;
  --cyan: #8cc4d4;
  --blue: #7f9fe0;
  --lime: var(--dr-final);
  --amber: var(--dr-amber);
  --orange: #e0955a;
  --rose: var(--dr-change);
  --magenta: #c99ad6;
  --violet: var(--dr-lilac);
  --spectrum: linear-gradient(90deg, var(--dr-amber), var(--dr-amber));
  --flame: linear-gradient(180deg, var(--dr-amber), var(--dr-amber));

  /* ---- accent, links, focus */
  --accent: var(--dr-amber);
  --accent-text: var(--dr-amber-ink);
  --link: var(--dr-amber);
  --focus-ring: rgba(227, 168, 87, .2);

  /* ---- verdicts */
  --verdict-finalised: var(--dr-final);
  --verdict-changes: var(--dr-change);
  --verdict-changes-strong: var(--dr-change);
  --verdict-changes-text: #f2d9dc;
  --verdict-carried: var(--dr-info);
  --verdict-unreviewed: var(--dr-muted);

  /* ---- states */
  --danger: var(--dr-danger);
  --danger-bg: rgba(229, 127, 127, .1);
  --danger-text: #f4d6d6;
  --danger-button-text: #f2c4c4;
  --missing-text: #f8e0e0;
  --warning: var(--dr-straw);
  --warning-bg: rgba(214, 194, 124, .07);
  --warning-bg-strong: rgba(214, 194, 124, .1);
  --warning-text: #ebe0bd;
  --success: var(--dr-final);
  --success-text: #dcebd9;
  --look-approved: var(--dr-final);
  --look-proposed: var(--dr-straw);
  --disabled-opacity: .45;
  --unavailable-opacity: .5;

  /* ---- workflow state */
  --status-open: var(--dr-straw);
  --status-done: var(--dr-final);
  --status-failed: var(--dr-danger);
  --attention: var(--dr-amber);
  --pending: var(--dr-straw);
  --star: var(--dr-amber);
  --verdict-submission-changes: var(--dr-straw);
  --check-pass: var(--dr-final);
  --check-flag: #e0955a;
  --flag-missing-textures: var(--warning);  /* straw, not --check-flag: that orange sits next to the amber accent */
  --check-block: var(--dr-danger);

  /* ---- tools and categories */
  --markup: #f43f5e;            /* the reviewer's marks are data the artist reads: same red in every theme */
  --missing: var(--dr-danger);
  --filter-hide: var(--dr-change);
  --hover-alt: var(--dr-rule-2);
  --viewas: var(--dr-lilac);
  --tier-supporting: var(--dr-lilac);
  --kind-environment: #c99ad6;
  --kind-render: var(--dr-lilac);
  --kind-new: var(--dr-straw);
  --kind-replaces: #c99ad6;
  --pfx-need: var(--dr-lilac);
  --browse-match: var(--dr-final);
  --ai-request: var(--dr-lilac);
  --pfx-ok: var(--dr-final);

  /* ---- sync */
  --sync: var(--dr-lilac);
  --sync-author: var(--dr-lilac);
  --sync-drag: var(--dr-amber);
  --sync-target: var(--dr-final);
  --sync-frames: var(--dr-final);
  --sync-parked: var(--dr-change);

  /* ---- the neutral stage: one opaque grey behind every render */
  --stage-viewer: var(--dr-stage);
  --stage-black: var(--dr-stage);
  --stage-mat: var(--dr-stage);
  --stage-mat-deep: var(--dr-stage);
  --stage-compare: var(--dr-stage);
  --stage-postfx: var(--dr-stage);

  /* ---- overlays (dialogs and sheets; nothing Darkroom draws sits on a picture) */
  --scrim: rgba(0, 0, 0, .6);
  --scrim-nav: rgba(0, 0, 0, .55);
  --scrim-sheet: rgba(0, 0, 0, .5);
  --scrim-dialog: rgba(0, 0, 0, .6);
  --overlay-chip: rgba(21, 21, 21, .92);
  --overlay-chip-soft: rgba(21, 21, 21, .9);
  --overlay-badge: rgba(21, 21, 21, .92);
  --overlay-strong: rgba(21, 21, 21, .94);
  --overlay-tag: rgba(21, 21, 21, .88);
  --overlay-hud: rgba(21, 21, 21, .88);
  --overlay-control: rgba(33, 33, 33, .94);
  --overlay-control-touch: rgba(33, 33, 33, .94);
  --overlay-caption: var(--dr-ink-1);
  --overlay-glass: var(--dr-ink-1);
  --overlay-hint: rgba(40, 40, 40, .96);
  --overlay-markbar: var(--dr-ink-2);

  /* ---- glows: Darkroom has none */
  --aurora-1: transparent; --aurora-2: transparent; --aurora-3: transparent;
  --glow-accent: transparent; --glow-stage: transparent; --glow-logo: transparent;
  --glow-logo-login: transparent; --glow-hero-1: transparent; --glow-hero-2: transparent;
  --glow-hero-badge: transparent; --glow-ring: transparent; --glow-new-card: transparent;
  --ripple: transparent;
  --placeholder-stripe: rgba(255, 255, 255, .025);
  --placeholder-glow: transparent;
  --shadow-ink: rgba(0, 0, 0, .4);
  --shadow-soft: rgba(0, 0, 0, .45);
  --shadow-drawer: rgba(0, 0, 0, .5);
  --shadow-mark: rgba(0, 0, 0, .85);
  --shadow-deep: rgba(0, 0, 0, .55);
  --shadow-popover: rgba(0, 0, 0, .55);

  /* ---- small parts */
  --dot-idle: #555555;
  --sheet-grip: var(--dr-rule-2);
  --script-thought: #cfcfcf;
  --script-narration: #d6d6d6;
  --script-dim: #6e6e6e;
  --tick-mark: #3a3a3a;
  --tick-mark-major: #4a4a4a;
  --tick-mark-near: #8f8f8f;
  --tick-label: #8a8a8a;
  --tick-label-major: #a0a0a0;
  --tick-label-near: #e6e6e6;
  --ring-track: rgba(255, 255, 255, .12);
  --spec-pending-text: #1b1608;
  --swatch-ring: rgba(255, 255, 255, .28);
  --swatch-inset: rgba(0, 0, 0, .35);
  --st-sub-text: #d4d4d4;
  --st-sub-failed-text: #f4d6d6;
  --ap-blade-fill: var(--dr-ink-3);
  --ap-blade-edge: var(--dr-rule-2);
  --ap-core: var(--dr-ink-0);
  --ap-spark: #ffffff;
  --progress-1: var(--dr-amber); --progress-2: var(--dr-final); --progress-3: var(--dr-info);
  --progress-4: #c99ad6; --progress-5: var(--dr-change); --progress-6: var(--dr-straw);
  --spark-palette: ;
  --ap-stop-1: var(--dr-amber); --ap-stop-2: var(--dr-amber-hi); --ap-stop-3: var(--dr-straw);
  --ap-stop-4: var(--dr-final); --ap-stop-5: var(--dr-info); --ap-stop-6: var(--dr-amber);

  /* ---- the logo: the real mark, recoloured flat - tungsten flame, light-grey monitor,
     ring and A, the ring filled with the surface it sits on */
  --logo-1: #d6d6d6; --logo-2: #d6d6d6; --logo-3: #d6d6d6; --logo-4: #d6d6d6;
  --logo-5: #d6d6d6; --logo-6: #d6d6d6; --logo-7: #d6d6d6;
  --logo-flame-1: #d8964a; --logo-flame-2: var(--dr-amber); --logo-flame-3: var(--dr-amber);
  --logo-flame-4: var(--dr-amber-hi);
  --logo-core: var(--dr-ink-1);

  /* ---- type */
  --font-sans: "Geist", "Ubuntu Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "Geist Mono", "Ubuntu Sans Mono", ui-monospace, monospace;
  --font-mono-ui: var(--font-mono);
  --font-mono-code: var(--font-mono);
  --font-mono-spec: var(--font-mono);
  --font-mono-plain: var(--font-mono);
  --font-mono-bare: var(--font-mono);
  --font-system: var(--font-sans);
  --font-system-sans: var(--font-sans);
  --font-ring: var(--font-sans);

  /* ---- shape and size: one 6px radius for controls, 10px for panels */
  --radius: 8px;
  --radius-lg: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --sidebar-w: 248px;
  --page-pad: 36px 48px 80px;
  --ph-icon-size: 34px;
  --ph-icon-size-sm: 28px;
  --ph-icon-size-lg: 38px;
  --speed: 150ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* ---- render status: seven states, each its own hue AND ring style, kept apart from
     the two verdicts (sage, rose) and from the amber accent: the closest pair of all nine
     is 17.6 apart (CIEDE2000), and the ring styles differ besides */
  --st-changes-artist: #f2763a;   /* orange, solid */
  --st-changes-ai: #ee8fd6;       /* pink, dashed: pink in every theme (it was violet) */
  --st-erroneous: #e5383b;        /* red, thick */
  --st-ready: #5b8def;            /* blue, solid */
  --st-final: #6fd3e8;            /* sky, double */
  --st-production: #cfe352;       /* yellow-green, solid */
  --st-replaced-other: #2ec4a6;   /* replaced another's picture - teal: no status here is teal */

  /* ---- the shared review layout */
  --rv-stage-bg: var(--dr-stage);
  --rv-chrome-bg: var(--dr-ink-1);
  --rv-caption-text: #b4b4b4;
  --rv-caption-now: #ffffff;
  --rv-topbar-h: 56px;
  --rv-control-h: 30px;
  --rv-col-left: 256px;
  --rv-col-right: 288px;
}

/* ============================================================== 2. rules */

/* ---------------------------------------------------------------- page and type */
:root[data-theme="darkroom"] body {
  font-family: var(--font-sans);
  font-size: 14.5px; line-height: 1.55;
  font-feature-settings: "tnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .002em;
}
:root[data-theme="darkroom"] body::before { content: none; display: none; }
:root[data-theme="darkroom"] ::selection { background: var(--dr-amber); color: var(--dr-amber-ink); }
:root[data-theme="darkroom"] a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
:root[data-theme="darkroom"] h1 { font-size: 25px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; margin: 0 0 6px; }
:root[data-theme="darkroom"] h2 { font-size: 17.5px; line-height: 1.3; font-weight: 500; letter-spacing: -.012em; }
:root[data-theme="darkroom"] h3 { font-weight: 500; }
:root[data-theme="darkroom"] strong, :root[data-theme="darkroom"] b { font-weight: 600; }
:root[data-theme="darkroom"] .gradient-text {
  background: none; color: var(--dr-text); -webkit-background-clip: border-box; background-clip: border-box;
  animation: none;
}
:root[data-theme="darkroom"] .sub { color: var(--dr-muted); }
:root[data-theme="darkroom"] .page-head { gap: 16px 24px; margin-bottom: 28px; }
:root[data-theme="darkroom"] .crumb, :root[data-theme="darkroom"] .crumb a { color: var(--dr-muted); font-size: 13px; }
:root[data-theme="darkroom"] .mono { font-family: var(--font-mono); color: var(--dr-text-2); }

/* Focus: one amber line, offset, on every control. */
:root[data-theme="darkroom"] :focus-visible { outline: 1.5px solid var(--dr-amber); outline-offset: 2px; }

/* Motion: opacity and transform only, never longer than 180 ms. Colour changes on hover
   are instant. The drag states below keep `transition: none` so a drag follows the
   finger with no lag. */
:root[data-theme="darkroom"] *, :root[data-theme="darkroom"] *::before, :root[data-theme="darkroom"] *::after {
  transition-property: opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
:root[data-theme="darkroom"] .viewer-sheet.dragging,
:root[data-theme="darkroom"] .sync-card.is-dragging,
:root[data-theme="darkroom"] .theme-toggle,
:root[data-theme="darkroom"] .theme-option { transition: none; }
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="darkroom"] *, :root[data-theme="darkroom"] *::before, :root[data-theme="darkroom"] *::after {
    transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important;
  }
}

/* ---------------------------------------------------------------- the sidebar */
:root[data-theme="darkroom"] .sidebar {
  padding: 20px 12px 16px; gap: 18px;
  border-right: 1px solid var(--dr-rule);
  scrollbar-color: var(--dr-rule-2) transparent;
}
:root[data-theme="darkroom"] .brand { gap: 11px; padding: 0 8px; color: var(--dr-text); }
:root[data-theme="darkroom"] .brand:hover { text-decoration: none; }
:root[data-theme="darkroom"] .brand svg { width: 36px; height: 36px; filter: none; }
:root[data-theme="darkroom"] .logo [filter] { filter: none; }
:root[data-theme="darkroom"] .brand-name {
  font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; letter-spacing: .2em;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--dr-text); animation: none;
}
:root[data-theme="darkroom"] .brand-sub { font-size: 10px; letter-spacing: .34em; color: var(--dr-amber); }

:root[data-theme="darkroom"] .nav-label {
  font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--dr-faint);
  padding: 0 10px; margin-bottom: 4px;
}
:root[data-theme="darkroom"] .sidebar nav > .nav-label { margin-top: 14px !important; }
:root[data-theme="darkroom"] .sidebar nav > .nav-label:first-child { margin-top: 0 !important; }
:root[data-theme="darkroom"] .nav { gap: 1px; }
:root[data-theme="darkroom"] .nav-item {
  align-items: flex-start; gap: 11px;
  padding: 7px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--dr-text-2); font-size: 13.5px; line-height: 1.35;
  overflow: visible;
}
:root[data-theme="darkroom"] .nav-item::after { content: none; }
:root[data-theme="darkroom"] .nav-item:hover { transform: none; background: var(--dr-ink-2); color: var(--dr-text); border-color: transparent; text-decoration: none; }
:root[data-theme="darkroom"] .nav-item.active { background: var(--dr-ink-2); color: var(--dr-text); border-color: transparent; }
:root[data-theme="darkroom"] .nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 2px;
  background: var(--dr-amber); border-radius: 0 2px 2px 0;
}
:root[data-theme="darkroom"] .nav-item .emoji { color: var(--dr-muted); margin-top: 1px; }
:root[data-theme="darkroom"] .nav-item.active .emoji { color: var(--dr-amber); }
:root[data-theme="darkroom"] .nav-item small { color: var(--dr-faint); font-size: 11.5px; line-height: 1.35; margin-top: 1px; }
:root[data-theme="darkroom"] .nav-badge { margin-left: 6px; }

:root[data-theme="darkroom"] .sidebar-foot {
  border-top: 1px solid var(--dr-rule); padding: 14px 10px 0;
  font-size: 13px; color: var(--dr-muted);
}
:root[data-theme="darkroom"] .sidebar-foot strong { color: var(--dr-text); font-weight: 500; }
:root[data-theme="darkroom"] .sidebar-foot a { color: var(--dr-muted); }
:root[data-theme="darkroom"] .sidebar-foot a:hover { color: var(--dr-text); }

/* ---------------------------------------------------------------- phone shell */
@media (max-width: 760px) {
  :root[data-theme="darkroom"] .appbar { backdrop-filter: none; border-bottom: 1px solid var(--dr-rule); }
  :root[data-theme="darkroom"] .appbar-title { font-weight: 500; }
  :root[data-theme="darkroom"] .appbar-btn { border-radius: var(--radius-sm); }
  :root[data-theme="darkroom"] .appbar-btn:active { transform: none; background: var(--dr-ink-3); }
  :root[data-theme="darkroom"] .appbar-brand svg { width: 28px; height: 28px; }
  :root[data-theme="darkroom"] .sidebar { transition: transform 180ms var(--ease); }
  :root[data-theme="darkroom"] body.nav-open .sidebar { box-shadow: 0 0 0 1px var(--dr-rule); }
  :root[data-theme="darkroom"] .nav-scrim { backdrop-filter: none; transition: opacity 180ms var(--ease); }
  :root[data-theme="darkroom"] .shell > .main { padding-left: 16px; padding-right: 16px; }
  :root[data-theme="darkroom"] h1 { font-size: 22px; }
  :root[data-theme="darkroom"] .nav-item.active::before { left: -8px; }
}

/* ---------------------------------------------------------------- buttons */
:root[data-theme="darkroom"] .btn {
  gap: 7px; min-height: 32px; padding: 6px 12px;
  border: 1px solid var(--dr-rule-2); border-radius: var(--radius-sm);
  background: transparent; color: var(--dr-text);
  font-size: 13px; font-weight: 500; line-height: 1.3;
  overflow: visible;
}
:root[data-theme="darkroom"] .btn:hover {
  transform: none; box-shadow: none; text-decoration: none;
  background: var(--dr-ink-3); border-color: var(--dr-rule-2);
}
:root[data-theme="darkroom"] .btn:active { transform: none; background: var(--dr-ink-4); }
:root[data-theme="darkroom"] .btn:disabled { opacity: .45; cursor: default; background: transparent; }
:root[data-theme="darkroom"] .btn.primary {
  background: var(--dr-amber); border-color: var(--dr-amber); color: var(--dr-amber-ink);
  font-weight: 600; animation: none;
}
:root[data-theme="darkroom"] .btn.primary:hover { background: var(--dr-amber-hi); border-color: var(--dr-amber-hi); }
:root[data-theme="darkroom"] .btn.ghost { background: transparent; }
:root[data-theme="darkroom"] .btn.small { min-height: 28px; padding: 4px 10px; font-size: 12.5px; }
:root[data-theme="darkroom"] .btn[aria-pressed="true"] {
  border-color: var(--btn-accent); color: var(--btn-accent);
  background: color-mix(in srgb, var(--btn-accent) 13%, transparent);
}
/* A selected status button is tinted and edged in its status colour; its words stay the
   text colour (red words on the red tint were 3.6:1). */
:root[data-theme="darkroom"] .btn.st-btn[aria-pressed="true"] { color: var(--text); }
:root[data-theme="darkroom"] .btn.finalise:hover { border-color: var(--dr-final); }
:root[data-theme="darkroom"] .btn.changes:hover { border-color: var(--dr-change); }
:root[data-theme="darkroom"] .btn.danger, :root[data-theme="darkroom"] .btn.is-danger { color: var(--danger-button-text); }
:root[data-theme="darkroom"] .btn.missing {
  border-color: color-mix(in srgb, var(--missing) 60%, transparent);
  background: color-mix(in srgb, var(--missing) 12%, transparent);
  color: var(--missing-text); font-weight: 600;
}
:root[data-theme="darkroom"] .btn.missing:hover { box-shadow: none; background: color-mix(in srgb, var(--missing) 20%, transparent); border-color: var(--missing); }
:root[data-theme="darkroom"] .btn-xl { padding: 12px !important; font-size: 15px !important; }
:root[data-theme="darkroom"] .ripple { display: none; }

:root[data-theme="darkroom"] .mini {
  border-radius: var(--radius-sm); background: var(--dr-ink-2); border-color: var(--dr-rule-2);
}
:root[data-theme="darkroom"] .mini:hover { transform: none; background: var(--dr-ink-3); }

/* ---------------------------------------------------------------- fields */
:root[data-theme="darkroom"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
:root[data-theme="darkroom"] select, :root[data-theme="darkroom"] textarea { font-family: inherit; }
:root[data-theme="darkroom"] .note-input,
:root[data-theme="darkroom"] .field input,
:root[data-theme="darkroom"] select.note-input {
  background: var(--dr-ink-0); border: 1px solid var(--dr-rule-2); border-radius: var(--radius-sm);
  color: var(--dr-text); font-size: 13.5px;
}
:root[data-theme="darkroom"] .note-input:focus,
:root[data-theme="darkroom"] .field input:focus { border-color: var(--dr-amber); box-shadow: none; outline: none; }
:root[data-theme="darkroom"] .note-input::placeholder,
:root[data-theme="darkroom"] .field input::placeholder,
:root[data-theme="darkroom"] textarea::placeholder,
:root[data-theme="darkroom"] input::placeholder { color: var(--dr-faint); opacity: 1; }
:root[data-theme="darkroom"] .field label { font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--dr-muted); }
:root[data-theme="darkroom"] input[type="checkbox"], :root[data-theme="darkroom"] input[type="radio"] { accent-color: var(--dr-amber); }

/* ---------------------------------------------------------------- cards */
:root[data-theme="darkroom"] .card {
  background: var(--dr-ink-2); border: 1px solid var(--dr-rule); border-radius: var(--radius-lg);
}
:root[data-theme="darkroom"] .card::before { content: none; }
:root[data-theme="darkroom"] .card:hover { transform: none; box-shadow: none; border-color: var(--dr-rule-2); text-decoration: none; }
:root[data-theme="darkroom"] .card:active { transform: none; }
:root[data-theme="darkroom"] .card-media { background: var(--dr-stage); }
:root[data-theme="darkroom"] .card:hover .card-media img,
:root[data-theme="darkroom"] .card-media img { transform: none; filter: none; }
:root[data-theme="darkroom"] .card-body { padding: 11px 14px 13px; }
:root[data-theme="darkroom"] .card-title { font-weight: 500; font-size: 14px; letter-spacing: -.005em; }
:root[data-theme="darkroom"] .card-meta { color: var(--dr-muted); font-size: 12.5px; }
:root[data-theme="darkroom"] .placeholder { color: var(--dr-muted); }
:root[data-theme="darkroom"] .placeholder .ph-icon { opacity: 1; color: var(--dr-muted); }
:root[data-theme="darkroom"] .placeholder .ph-text { font-size: 12px; letter-spacing: 0; text-transform: none; }
:root[data-theme="darkroom"] .card.new-expr .placeholder { background: transparent; }
:root[data-theme="darkroom"] .card.new-expr:hover .ph-icon { transform: none; color: var(--dr-text); }
:root[data-theme="darkroom"] .hubcard:hover { transform: none; border-color: var(--dr-rule-2); }
:root[data-theme="darkroom"] .hubcard.urgent { background: color-mix(in srgb, var(--attention) 6%, var(--dr-ink-2)); }

/* A gallery thumbnail is a picture the author judges: nothing on it, nothing tinting it.
   Legacy pins the verdict glyph, variant count, carried-over, marked, requested and
   final-render badges over the picture; here the card is a wrapping row and they sit in a
   line under the title. The registry buttons follow them. */
:root[data-theme="darkroom"] .thumb { flex-flow: row wrap; align-content: flex-start; align-items: center; }
:root[data-theme="darkroom"] .thumb > .card-media { flex: 1 1 100%; order: 0; }
:root[data-theme="darkroom"] .thumb > .card-body { flex: 1 1 100%; order: 1; padding-bottom: 6px; }
:root[data-theme="darkroom"] .thumb > .state,
:root[data-theme="darkroom"] .thumb > .marked,
:root[data-theme="darkroom"] .thumb > .vcount,
:root[data-theme="darkroom"] .thumb > .carried,
:root[data-theme="darkroom"] .thumb > .requested-badge,
:root[data-theme="darkroom"] .thumb > .st-sub {
  position: static; order: 2; flex: 0 1 auto; min-width: 0;
  margin: 0 0 12px 14px; filter: none; z-index: auto;
}
:root[data-theme="darkroom"] .thumb > .thumb-actions {
  position: static; order: 3; opacity: 1; transform: none; margin: 0 14px 12px auto;
}
:root[data-theme="darkroom"] .thumb > .state + .vcount,
:root[data-theme="darkroom"] .thumb > .state + .marked { margin-left: 8px; }
:root[data-theme="darkroom"] .thumb > .state { color: var(--dr-text-2); }
:root[data-theme="darkroom"] .thumb.is-finalised > .state { color: var(--dr-final); }
:root[data-theme="darkroom"] .thumb.is-changes > .state { color: var(--dr-change); }
:root[data-theme="darkroom"] .thumb.has-redelivery > .state { color: var(--dr-info); }
:root[data-theme="darkroom"] .thumb .vcount,
:root[data-theme="darkroom"] .thumb .carried,
:root[data-theme="darkroom"] .thumb .requested-badge {
  background: transparent; border: 1px solid var(--dr-rule-2); color: var(--dr-text-2);
  font-size: 11.5px; line-height: 18px; padding: 0 7px; font-weight: 500;
}
:root[data-theme="darkroom"] .thumb .vcount { color: var(--dr-muted); }
:root[data-theme="darkroom"] .thumb .carried { color: var(--verdict-carried); border-color: color-mix(in srgb, var(--verdict-carried) 45%, transparent); }
:root[data-theme="darkroom"] .thumb .requested-badge { color: var(--dr-amber); border-color: color-mix(in srgb, var(--dr-amber) 45%, transparent); }
:root[data-theme="darkroom"] .thumb .marked { background: transparent; width: 20px; height: 20px; }
:root[data-theme="darkroom"] .thumb .st-sub { background: transparent; }
:root[data-theme="darkroom"] .thumb.is-carried { opacity: 1; }
:root[data-theme="darkroom"] .thumb.is-carried .card-media { filter: none; }
:root[data-theme="darkroom"] .thumb.is-requested { border-style: dashed; }
/* The verdict ring: the card's own border, never a glow round the picture. */
:root[data-theme="darkroom"] .thumb.is-finalised { box-shadow: none; border-color: color-mix(in srgb, var(--dr-final) 70%, transparent); }
:root[data-theme="darkroom"] .thumb.is-changes { box-shadow: none; border-color: color-mix(in srgb, var(--dr-change) 70%, transparent); }
@media (hover: none) {
  :root[data-theme="darkroom"] .thumb-actions .mini { backdrop-filter: none; }
}

/* ---------------------------------------------------------------- pills, badges, tags */
:root[data-theme="darkroom"] .pill {
  padding: 1px 8px; border-radius: 11px; font-size: 12px; font-weight: 500; line-height: 18px;
  background: transparent; border-color: var(--dr-rule-2); color: var(--dr-text-2);
}
:root[data-theme="darkroom"] .pill.zero { opacity: 1; color: var(--dr-faint); }
:root[data-theme="darkroom"] .badge {
  font-size: 11px; letter-spacing: .02em; text-transform: none; padding: 0 6px; line-height: 17px;
  border-radius: 3px; border-color: var(--dr-rule-2); color: var(--dr-muted);
}
:root[data-theme="darkroom"] .tag {
  background: transparent; border-color: var(--dr-rule-2); color: var(--dr-text-2); font-size: 12px; padding: 2px 9px;
}
:root[data-theme="darkroom"] .tag:hover { transform: none; border-color: var(--dr-muted); color: var(--dr-text); }

/* ---------------------------------------------------------------- panels and lists */
:root[data-theme="darkroom"] .panel { background: var(--dr-ink-2); border-color: var(--dr-rule); border-radius: var(--radius-lg); padding: 18px 20px; }
:root[data-theme="darkroom"] .panel h3 {
  font-size: 13px; letter-spacing: .01em; text-transform: none; color: var(--dr-muted); font-weight: 500;
}
:root[data-theme="darkroom"] .kv dt { color: var(--dr-muted); }
:root[data-theme="darkroom"] .block h4 {
  font-size: 12.5px; letter-spacing: .01em; text-transform: none; color: var(--dr-muted); font-weight: 500;
  border-bottom-color: var(--dr-rule);
}
:root[data-theme="darkroom"] .empty { border-color: var(--dr-rule-2); border-radius: var(--radius-lg); color: var(--dr-muted); }
:root[data-theme="darkroom"] .warnbar { border-radius: var(--radius-sm); }
:root[data-theme="darkroom"] .error { border-radius: var(--radius-sm); }
:root[data-theme="darkroom"] table { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- dialogs and toasts */
:root[data-theme="darkroom"] .dialog, :root[data-theme="darkroom"] .lightbox {
  background: var(--dr-ink-2); border-color: var(--dr-rule-2); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
:root[data-theme="darkroom"] dialog::backdrop { background: var(--scrim); }
:root[data-theme="darkroom"] .toast {
  border-radius: var(--radius-sm); font-weight: 450; font-size: 13px;
  background: var(--dr-ink-3); border-color: var(--dr-rule-2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  transform: translateY(6px);
}
:root[data-theme="darkroom"] .toast.show { transform: none; }
:root[data-theme="darkroom"] .toast.ok { border-color: color-mix(in srgb, var(--dr-final) 60%, var(--dr-rule-2)); }
:root[data-theme="darkroom"] .toast.bad { border-color: color-mix(in srgb, var(--dr-danger) 60%, var(--dr-rule-2)); }

/* ---------------------------------------------------------------- the login page */
:root[data-theme="darkroom"] .login-card {
  border-radius: var(--radius-lg); border-color: var(--dr-rule); background: var(--dr-ink-2); box-shadow: none;
}
:root[data-theme="darkroom"] .login-card::before { content: none; }
:root[data-theme="darkroom"] .login-logo svg { width: 64px; height: 64px; filter: none; }

/* ---------------------------------------------------------------- passes and filters */
:root[data-theme="darkroom"] .pass-btn { border-radius: var(--radius-sm); background: var(--dr-ink-2); }
:root[data-theme="darkroom"] .pass-btn:hover { transform: none; border-color: var(--dr-rule-2); }
:root[data-theme="darkroom"] .pass-btn.active { border-color: var(--dr-amber); box-shadow: none; }
:root[data-theme="darkroom"] .pass-btn.active::before { animation: none; height: 2px; }
:root[data-theme="darkroom"] .pass-n, :root[data-theme="darkroom"] .pass-tools-label {
  font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--dr-muted);
}
:root[data-theme="darkroom"] .pass-title { font-weight: 500; }
:root[data-theme="darkroom"] .cat-chip { background: transparent; border-color: var(--dr-rule-2); border-radius: 11px; color: var(--dr-text-2); }
:root[data-theme="darkroom"] .cat-chip:hover { border-color: var(--dr-muted); }
:root[data-theme="darkroom"] .cat-chip.is-show { font-weight: 500; background: color-mix(in srgb, var(--dr-amber) 12%, transparent); }
:root[data-theme="darkroom"] .cat-chip.is-hide { background: transparent; }
:root[data-theme="darkroom"] .variant-btn { border-radius: var(--radius-sm); background: transparent; border-color: var(--dr-rule-2); font-weight: 500; }
:root[data-theme="darkroom"] .variant-btn:hover { transform: none; border-color: var(--dr-muted); }
:root[data-theme="darkroom"] .variant-btn.active { background: var(--dr-ink-3); color: var(--dr-text); border-color: var(--dr-amber); animation: none; }

/* ---------------------------------------------------------------- the review toolbar */
:root[data-theme="darkroom"][data-theme] .review-toolbar { border-bottom-color: var(--dr-rule); }
:root[data-theme="darkroom"][data-theme] .rt-pass select,
:root[data-theme="darkroom"][data-theme] .review-toolbar select {
  background: var(--dr-ink-0); color: var(--dr-text); border: 1px solid var(--dr-rule-2);
  border-radius: var(--radius-sm); min-height: 32px; padding: 4px 8px; font: inherit; font-size: 13px;
}
:root[data-theme="darkroom"][data-theme] .rt-keys > summary { cursor: pointer; }
:root[data-theme="darkroom"][data-theme] .rt-keys-pop { background: var(--dr-ink-2); border-color: var(--dr-rule-2); box-shadow: 0 16px 48px rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- the viewer */
:root[data-theme="darkroom"][data-theme] #viewer { background: var(--dr-stage); backdrop-filter: none; }
:root[data-theme="darkroom"][data-theme] #viewer .viewer-top { border-bottom: 0; }
:root[data-theme="darkroom"][data-theme] #viewer .viewer-close,
:root[data-theme="darkroom"][data-theme] #viewer .vt-btn,
:root[data-theme="darkroom"][data-theme] #viewer .vt-chip,
:root[data-theme="darkroom"][data-theme] #viewer .viewer-tool {
  background: transparent; border-color: transparent; color: var(--dr-text-2); font-weight: 450;
}
:root[data-theme="darkroom"][data-theme] #viewer .viewer-close:hover,
:root[data-theme="darkroom"][data-theme] #viewer .vt-btn:hover,
:root[data-theme="darkroom"][data-theme] #viewer .vt-chip:hover,
:root[data-theme="darkroom"][data-theme] #viewer .viewer-tool:hover { background: var(--dr-ink-3); color: var(--dr-text); border-color: transparent; }
:root[data-theme="darkroom"][data-theme] #viewer .viewer-tool[aria-pressed="true"] {
  background: color-mix(in srgb, var(--dr-amber) 13%, transparent);
  border-color: color-mix(in srgb, var(--dr-amber) 55%, transparent); color: var(--dr-amber);
}
:root[data-theme="darkroom"][data-theme] #viewer .vt-chip[aria-current="true"] { background: var(--dr-ink-2); border-color: var(--dr-rule-2); color: var(--dr-text); box-shadow: inset 0 -2px 0 var(--dr-amber); }
:root[data-theme="darkroom"][data-theme] #viewer .vt-title { font-weight: 500; font-size: 14.5px; }
:root[data-theme="darkroom"][data-theme] #viewer .viewer-col { scrollbar-width: thin; scrollbar-color: var(--dr-rule-2) transparent; }
:root[data-theme="darkroom"][data-theme] #viewer h2 { font-weight: 450; font-size: 20px; letter-spacing: -.02em; }
:root[data-theme="darkroom"][data-theme] #viewer .vsub { color: var(--dr-text-2); font-weight: 400; letter-spacing: 0; }
:root[data-theme="darkroom"][data-theme] #viewer .block-decision > .viewer-actions .btn,
:root[data-theme="darkroom"][data-theme] #viewer #status-block .viewer-actions .btn { min-height: 38px; }
:root[data-theme="darkroom"][data-theme] #viewer .viewer-top .btn { border-color: var(--dr-rule-2); }
:root[data-theme="darkroom"] .block.ask { border-left-width: 2px; }

/* phone viewer */
@media (max-width: 760px) {
  :root[data-theme="darkroom"][data-theme] #viewer .viewer-close { background: transparent; }
  :root[data-theme="darkroom"] .vstrip { background: var(--dr-ink-1); backdrop-filter: none; border-top-color: var(--dr-rule); }
  :root[data-theme="darkroom"] .vstrip-title { font-weight: 500; }
  :root[data-theme="darkroom"] .vstrip-sub { text-transform: none; letter-spacing: 0; color: var(--dr-muted); font-size: 12px; }
  :root[data-theme="darkroom"] .vstrip-more { border-radius: var(--radius-sm); background: transparent; border-color: var(--dr-rule-2); font-weight: 500; }
  :root[data-theme="darkroom"] .mbar { background: var(--dr-ink-1); backdrop-filter: none; border-top-color: var(--dr-rule); }
  :root[data-theme="darkroom"] .mbar-btn { border-radius: var(--radius-sm); background: transparent; border-color: var(--dr-rule-2); font-weight: 500; }
  :root[data-theme="darkroom"] .mbar-btn:active { transform: none; background: var(--dr-ink-3); }
  :root[data-theme="darkroom"] .vdot { transition: transform 150ms var(--ease); }
  :root[data-theme="darkroom"] .vdot.active { background: var(--dr-amber); }
  :root[data-theme="darkroom"] .viewer-sheet { background: var(--dr-ink-1); border-radius: 14px 14px 0 0; transition: transform 180ms var(--ease); }
  :root[data-theme="darkroom"] .sheet-grip { background: var(--dr-ink-1); border-radius: 14px 14px 0 0; }
  :root[data-theme="darkroom"] .sheet-scrim { transition: opacity 180ms var(--ease); }
  :root[data-theme="darkroom"] .swipe-hint b { color: var(--dr-amber); }
}

/* ---------------------------------------------------------------- render status */
:root[data-theme="darkroom"] .st-chip { background: transparent; border-color: var(--dr-rule-2); color: var(--dr-text-2); }
:root[data-theme="darkroom"] button.st-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--st) 14%, transparent); }
:root[data-theme="darkroom"] button.st-chip[aria-pressed="true"] em { color: var(--dr-text-2); }  /* 5.9:1 on the lightest tint */
:root[data-theme="darkroom"] .st-chip.st-final_done .st-swatch { box-shadow: inset 0 0 0 2px var(--st), inset 0 0 0 3px var(--dr-ink-1), inset 0 0 0 5px var(--st); }
:root[data-theme="darkroom"] .thumb.st-final_done { box-shadow: 0 0 0 2px var(--st-final), 0 0 0 4px var(--dr-ink-1), 0 0 0 6px var(--st-final); }

/* ---------------------------------------------------------------- viewing as an artist */
:root[data-theme="darkroom"] .viewas-bar { border-radius: var(--radius-sm); background: color-mix(in srgb, var(--viewas) 9%, var(--dr-ink-2)); }

/* ---------------------------------------------------------------- the theme picker */
:root[data-theme="darkroom"] .theme-toggle {
  min-height: 44px; padding: 8px 10px; gap: 10px;
  border: 1px solid var(--dr-rule-2); border-radius: var(--radius-sm);
  background: transparent; font-weight: 500; font-size: 13.5px;
}
:root[data-theme="darkroom"] .theme-toggle:hover { transform: none; background: var(--dr-ink-2); }
:root[data-theme="darkroom"] .theme-picker[open] > .theme-toggle { border-color: var(--dr-amber); }
:root[data-theme="darkroom"] .theme-toggle-icon { color: var(--dr-amber); }
:root[data-theme="darkroom"] .theme-toggle-text small { font-size: 11.5px; color: var(--dr-faint); }
:root[data-theme="darkroom"] .theme-swatch { border-radius: 3px; border-color: var(--dr-rule-2); }
:root[data-theme="darkroom"] .theme-swatch i { width: 7px; height: 18px; }
/* The popover sits beside the sidebar on a desktop only: on a phone it is part of the drawer
   (theme_picker.css), and this width there was 112px at 390 wide. */
@media (min-width: 761px) {
  :root[data-theme="darkroom"] .theme-panel { left: calc(var(--sidebar-w) + 10px); width: min(420px, calc(100vw - var(--sidebar-w) - 30px)); }
}
:root[data-theme="darkroom"] .theme-panel {
  border-radius: var(--radius-lg); border-color: var(--dr-rule-2); background: var(--dr-ink-2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5); animation-duration: 150ms;
}
:root[data-theme="darkroom"] .theme-list { gap: 4px; }
:root[data-theme="darkroom"] .theme-option { border-radius: var(--radius-sm); background: transparent; border-color: transparent; }
:root[data-theme="darkroom"] .theme-option:hover:not(:disabled) { transform: none; background: var(--dr-ink-3); border-color: transparent; }
:root[data-theme="darkroom"] .theme-option.current { border-color: var(--dr-rule-2); background: var(--dr-ink-3); box-shadow: inset 2px 0 0 var(--dr-amber); }
:root[data-theme="darkroom"] .theme-option-text strong { font-weight: 500; }
:root[data-theme="darkroom"] .theme-tag { text-transform: none; letter-spacing: 0; font-size: 11px; border-radius: 3px; }
:root[data-theme="darkroom"] .theme-option .theme-swatch i { width: 8px; height: 28px; }
@media (max-width: 760px) {
  :root[data-theme="darkroom"] .appbar-theme { border-color: var(--dr-rule-2); border-radius: var(--radius-sm); font-weight: 500; }
  :root[data-theme="darkroom"] .theme-panel { box-shadow: none; }
}

/* ---------------------------------------------------------------- sidebar: short blurbs
   The menu was the tallest thing on the page; each entry's summary is capped (below). */
:root[data-theme="darkroom"] .nav-item small {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------------------------------------------------------- card: the verdict as a dot-like icon and a word */
:root[data-theme="darkroom"] .thumb > .state::after {
  font-size: 12.5px; line-height: 1; margin-left: 6px; font-weight: 450; vertical-align: middle;
}
:root[data-theme="darkroom"] .thumb.is-finalised > .state::after { content: "Finalised"; }
:root[data-theme="darkroom"] .thumb.is-changes > .state::after { content: "Changes requested"; }
:root[data-theme="darkroom"] .thumb.has-redelivery > .state::after { content: "Re-delivered"; }

/* Emoji with no ico-* hook of their own, drawn by what they are: the registry buttons on
   a card, the "request new" card and the "nothing delivered yet" placeholder. */
:root[data-theme="darkroom"] .thumb-actions .mini[data-act] { font-size: 0; display: inline-grid; place-items: center; color: var(--dr-text-2); }
:root[data-theme="darkroom"] .thumb-actions .mini[data-act]::before,
:root[data-theme="darkroom"] .new-expr .ph-icon:not(.ico)::before,
:root[data-theme="darkroom"] .thumb .placeholder .ph-icon:not(.ico)::before {
  content: ""; display: block; width: 15px; height: 15px; background-color: currentColor;
  -webkit-mask: var(--dr-icon) center / contain no-repeat; mask: var(--dr-icon) center / contain no-repeat;
}
:root[data-theme="darkroom"] .thumb-actions .mini.danger:hover { color: var(--danger); }
:root[data-theme="darkroom"] .new-expr .ph-icon:not(.ico),
:root[data-theme="darkroom"] .thumb .placeholder .ph-icon:not(.ico) { font-size: 0; color: var(--dr-muted); }
:root[data-theme="darkroom"] .new-expr .ph-icon:not(.ico)::before,
:root[data-theme="darkroom"] .thumb .placeholder .ph-icon:not(.ico)::before { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- sentence case
   Darkroom labels are sentence case with no tracking. Legacy's small caps labels, all of
   them (the AVN of the wordmark keeps its spacing). */
:root[data-theme="darkroom"] :is(.nav-label, .placeholder .ph-text, .badge, .panel h3, .pass-n, .block h4,
  .field label, .pass-tools-label, .vstrip-sub, .picker-head h4, .picker-blank, .shot-tag, .field-label,
  .sync-head h3, .sync-script-meta .kind, .sync-card .blank, .sync-park::before, .change-side h4,
  .batch-variants-label, .spec-top h4, .spec-subhead, .spec-flag, .spec-expr-label, .spec-mini,
  .acct-facts dt, .rs-step, .part-grid .ep, .ap-pct-sub, .rv-pic figcaption, .rv-known dt,
  .bs-checks .who, .theme-tag) {
  text-transform: none; letter-spacing: .005em;
}
:root[data-theme="darkroom"] :is(.field-label, .acct-facts dt, .rv-known dt, .spec-subhead, .change-side h4,
  .batch-variants-label, .spec-top h4, .sync-head h3, .bs-checks .who, .rs-step) { font-size: 12px; }

/* ---------------------------------------------------------------- wide tables on a phone
   Three tables are wider than a phone (submission rules, the post-processing queue, the
   artist's submission history). Each scrolls inside itself, so the page never does. */
@media (max-width: 760px) {
  :root[data-theme="darkroom"] :is(.rules-table, .pfx-table, .rs-history) {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--dr-rule-2) transparent;
  }
}

/* ---------------------------------------------------------------- nothing over a picture, part 2
   The other places legacy laid a chip on a render, each moved beside it. */
/* Batch mode's tick: in the row under the title, with the other card marks. */
:root[data-theme="darkroom"] .thumb > .batch-check {
  position: static; order: 2; margin: 0 0 12px 14px; flex: none;
  width: 20px; height: 20px; border-radius: 4px; font-size: 12px;
  background: transparent; border: 1.5px solid var(--dr-rule-2); color: var(--dr-amber-ink);
}
:root[data-theme="darkroom"] .thumb > .batch-check.is-on { background: var(--dr-amber); border-color: var(--dr-amber); }
:root[data-theme="darkroom"] .thumb > .batch-variants { order: 4; flex: 1 1 100%; }
:root[data-theme="darkroom"] .thumb.is-picked { box-shadow: none; outline: 1.5px solid var(--dr-amber); outline-offset: 3px; }
/* "Submitted" on a Render Review card: under the picture, ahead of the title. */
:root[data-theme="darkroom"] .thumb > .card-media:has(.rs-badge) { overflow: visible; }
:root[data-theme="darkroom"] .thumb:has(.card-media .rs-badge) > .card-body { padding-top: 38px; }
:root[data-theme="darkroom"] .thumb .card-media .rs-badge {
  top: calc(100% + 11px); bottom: auto; left: 14px; background: transparent; font-weight: 500;
  font-family: var(--font-sans); letter-spacing: 0;
}
/* A render submission's card: the tick and the tag share a row under the picture. */
:root[data-theme="darkroom"] .rs-card { display: flex; flex-wrap: wrap; align-items: center; animation: none; }
:root[data-theme="darkroom"] .rs-card:hover { transform: none; }
:root[data-theme="darkroom"] .rs-card > .img { order: 0; flex: 1 1 100%; }
:root[data-theme="darkroom"] .rs-card > .tick { position: static; order: 1; width: 18px; height: 18px; margin: 10px 0 0 12px; }
:root[data-theme="darkroom"] .rs-card > .rs-tag { position: static; order: 1; margin: 10px 12px 0 auto; }
:root[data-theme="darkroom"] .rs-card > .body { order: 2; flex: 1 1 100%; min-width: 0; }
:root[data-theme="darkroom"] .rs-tag {
  background: transparent; font: 500 11.5px/1.4 var(--font-sans); letter-spacing: 0; padding: 1px 8px;
}
/* Post-processing frames: the version tag sits above the frame, not on it. */
:root[data-theme="darkroom"] .pfx-frame:has(> .pfx-tag) { margin-top: 24px; }
:root[data-theme="darkroom"] .pfx-tag {
  top: -21px; left: 0; padding: 0; background: transparent; font-weight: 500; font-size: 12px; line-height: 18px;
}
/* A submitted face's viewport label: under the picture. */
:root[data-theme="darkroom"] .sub-shot .shot-tag {
  position: static; display: inline-block; margin-top: 6px; padding: 0; background: transparent; font-size: 12px;
}
/* Sync mode: the angle count sits in the card's caption row. */
:root[data-theme="darkroom"] .sync-card .angles { top: auto; bottom: 5px; background: transparent; border-color: transparent; }

@media (max-width: 760px) {
  :root[data-theme="darkroom"] :is(.rules-table, .pfx-table, .rs-history) th { white-space: nowrap; }
  /* The swipe hint's strip below the stage is the shared layout's (aperture.css). */
  :root[data-theme="darkroom"][data-theme] #viewer > .swipe-hint { color: var(--dr-text-2); font-size: 12.5px; }
}

/* Submission rules, the suggestions list: a long field path wraps instead of pushing the
   row (and the page) wider than a phone. */
:root[data-theme="darkroom"] #rules-suggest > div > div { min-width: 0; }
:root[data-theme="darkroom"] #rules-suggest code { overflow-wrap: anywhere; }

/* A character with nothing shot yet: said by a dashed edge, not by fading its text. */
:root[data-theme="darkroom"] .card.is-empty { opacity: 1; border-style: dashed; }
/* The artist's Submit door: one flat amber call to action, no animated rim. */
:root[data-theme="darkroom"] .submit-hero { background: var(--dr-ink-2); border-color: var(--dr-rule); }
:root[data-theme="darkroom"] .submit-hero::before { content: none; }
:root[data-theme="darkroom"] .submit-hero:hover { transform: none; border-color: var(--dr-rule-2); }
:root[data-theme="darkroom"] .submit-hero h2 { font-weight: 500; letter-spacing: -.012em; }
:root[data-theme="darkroom"] .submit-hero .go {
  background: var(--dr-amber); color: var(--dr-amber-ink); animation: none; box-shadow: none;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; padding: 10px 16px;
}

/* ---------------------------------------------------------------- motion, the rest of it
   The picture follows the finger in the phone viewer's swipe (review.js writes its
   transform on every move), so it must never ease behind it. */
:root[data-theme="darkroom"][data-theme] #viewer .viewer-stage img { transition: none; }
/* Legacy animations that run under any theme: kept only where they are a working
   spinner, otherwise shortened to an opacity/transform move of 180 ms or less, or off. */
:root[data-theme="darkroom"] .batchbar { animation-duration: 180ms; }
:root[data-theme="darkroom"] .sync-fan { animation-duration: 160ms; }
:root[data-theme="darkroom"] .sync-card.is-fresh { animation: none; border-color: var(--sync-target); }
:root[data-theme="darkroom"] .sync-btn-glyph i { animation: none; background: currentColor; }
:root[data-theme="darkroom"] .gp-advance { animation: none; opacity: .8; }
:root[data-theme="darkroom"] .rs-stat, :root[data-theme="darkroom"] .rv.open { animation-duration: 160ms; }
:root[data-theme="darkroom"] .ap-blade.running { animation: none; }
:root[data-theme="darkroom"] .cl li.in { transition-duration: 160ms; }
:root[data-theme="darkroom"] .cl li.in .ic path { animation: none; stroke-dashoffset: 0; }
:root[data-theme="darkroom"] .cl li.in .blocker { animation: none; }

/* ---------------------------------------------------------------- the picture's own margin
   A coloured card edge (a verdict, a render status, a selection) never touches a
   thumbnail: the picture sits 4px inside the card, on the card's neutral grey. */
:root[data-theme="darkroom"] .thumb > .card-media { margin: 4px 4px 0; border-radius: 6px; }

/* Two lines of each menu entry's summary, so it reads without the menu growing tall. */
:root[data-theme="darkroom"] .nav-item small { -webkit-line-clamp: 2; }

/* ============================================================== 3. icons
   Every ico-* hook (themes-tokens.md, review_layout.md) is drawn as a thin line icon. The
   emoji or glyph is set to size 0, so it neither shows nor takes room, and a ::before
   draws the icon in currentColor through an SVG mask. A wrapper span stays
   `display: contents`, so the label beside it lays out as before; an element that is the
   icon itself keeps its box. --dr-pfs carries the parent's font size, so an inline icon
   matches the text it leads. */
:root[data-theme="darkroom"] :has(> .ico) { --dr-pfs: 1em; }
:root[data-theme="darkroom"] .ico { font-size: 0 !important; line-height: 0; }
:root[data-theme="darkroom"] .ico::before {
  content: ""; display: inline-block; flex: none;
  width: var(--dr-ico, calc(var(--dr-pfs) * 1.15)); height: var(--dr-ico, calc(var(--dr-pfs) * 1.15));
  vertical-align: middle; margin-top: -.1em;
  background-color: currentColor;
  -webkit-mask: var(--dr-icon) center / contain no-repeat; mask: var(--dr-icon) center / contain no-repeat;
}
/* An element that is itself the icon is laid out as one box of the icon's size. */
:root[data-theme="darkroom"] .ico:not(span[class^="ico ico-"]) { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
:root[data-theme="darkroom"] .nav-item .emoji.ico { --dr-ico: 18px; }
:root[data-theme="darkroom"] .ph-icon.ico { --dr-ico: 30px; }
:root[data-theme="darkroom"] .empty-ico.ico { --dr-ico: var(--ph-icon-size); }
:root[data-theme="darkroom"] .empty-ico-sm.ico { --dr-ico: var(--ph-icon-size-sm); }
:root[data-theme="darkroom"] .empty-ico-lg.ico { --dr-ico: var(--ph-icon-size-lg); }
:root[data-theme="darkroom"] .door-emoji.ico { --dr-ico: 24px; }
:root[data-theme="darkroom"] .thumb .state.ico { --dr-ico: 15px; }
:root[data-theme="darkroom"] .theme-toggle-icon.ico { --dr-ico: 18px; }
:root[data-theme="darkroom"][data-theme] #viewer .vt-btn .ico, :root[data-theme="darkroom"][data-theme] #viewer .viewer-close .ico { --dr-ico: 17px; }
:root[data-theme="darkroom"][data-theme] #viewer .viewer-tool .ico { --dr-ico: 15px; }
/* A page title's icon: quiet, a little smaller than the words, a space after it. The
   wrapper holds the emoji and its space (themes-tokens.md), so both are size 0 here. */
:root[data-theme="darkroom"] h1 > .ico { color: var(--dr-muted); }
:root[data-theme="darkroom"] h1 > .ico::before { --dr-ico: 22px; margin: -.15em 10px 0 0; }

/* "Possible missing textures" (Render Review, missing_textures_flag.js). The shared layout
   moves the angle buttons to the viewer's top bar, so the note would sit flush under the
   picture's meta line: give it the gap the scene specs below it already have. */
:root[data-theme="darkroom"] .mt-flag-note { margin-top: 10px; }

/* @ICONS-BEGIN */
:root[data-theme="darkroom"] .ico-expression-standardisation::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9 10h.01M15 10h.01'/%3E%3Cpath d='M9 14.5c1.6 1.5 4.4 1.5 6 0'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-character-development::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7.5a2 2 0 1 1 2-2'/%3E%3Cpath d='M12 7.5v1.2L3.5 15a1.3 1.3 0 0 0 .8 2.3h15.4a1.3 1.3 0 0 0 .8-2.3L12 8.7'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-environments::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5h17M4.5 9.5h15M12 3.5l8 4H4l8-4z'/%3E%3Cpath d='M6.5 10v8M10.5 10v8M13.5 10v8M17.5 10v8'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-render-review::before,
:root[data-theme="darkroom"] .ico-st-final_done::before,
:root[data-theme="darkroom"] .ico-final-render::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='1.5'/%3E%3Cpath d='M7.5 4.5v15M16.5 4.5v15M3.5 9h4M3.5 15h4M16.5 9h4M16.5 15h4'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-post-processing::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M17 7h3M4 12h3M11 12h9M4 17h11M19 17h1'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-to-decide::before,
:root[data-theme="darkroom"] .ico-versions::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l8.5 4.5L12 12.5 3.5 8z'/%3E%3Cpath d='M3.5 12L12 16.5 20.5 12'/%3E%3Cpath d='M3.5 16L12 20.5 20.5 16'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-characters::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c1-4 3.8-6 7-6s6 2 7 6'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-submissions::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 13.5l2.6-7.2a1.5 1.5 0 0 1 1.4-.8h9a1.5 1.5 0 0 1 1.4.8l2.6 7.2v4.5a1.5 1.5 0 0 1-1.5 1.5H5a1.5 1.5 0 0 1-1.5-1.5z'/%3E%3Cpath d='M3.5 13.5h4.5l1.5 2.5h5l1.5-2.5h4.5'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-renders::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='1.5'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M4 17l5-4.5 4 3.5 3-2.5 4 3.5'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-no-brief::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h7l4 4v13H7z'/%3E%3Cpath d='M14 3.5v4h4'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-not-rendered::before,
:root[data-theme="darkroom"] .thumb .placeholder .ph-icon:not(.ico)::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='1.5' stroke-dasharray='3 2.6'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-nothing-found::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-finalised::before,
:root[data-theme="darkroom"] .ico-st-production::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-changes-requested::before,
:root[data-theme="darkroom"] .ico-st-changes_artist::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.2 5.2L4 17l3 3 5.5-5.5a4 4 0 0 0 5.2-5.2l-2.5 2.5-2.5-.5-.5-2.5z'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-redelivered::before,
:root[data-theme="darkroom"] .ico-submit::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19.5v-11M7.5 13l4.5-4.5 4.5 4.5M5 4.5h14'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-redo::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7.5L5 11.5l4 4'/%3E%3Cpath d='M5 11.5h9a5 5 0 0 1 0 10h-2'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-families::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l8.5 4.5L12 13 3.5 8.5z'/%3E%3Cpath d='M3.5 12.5L12 17l8.5-4.5'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-manage-characters::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7h11M9 12h11M9 17h11M4.5 7h.01M4.5 12h.01M4.5 17h.01'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-passes::before,
:root[data-theme="darkroom"] .ico-folder::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5A1.5 1.5 0 0 1 5 6h4l2 2h8a1.5 1.5 0 0 1 1.5 1.5V17A1.5 1.5 0 0 1 19 18.5H5A1.5 1.5 0 0 1 3.5 17z'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-needed-for::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-6-5.3-6-10a6 6 0 0 1 12 0c0 4.7-6 10-6 10z'/%3E%3Ccircle cx='12' cy='10.5' r='2.2'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-requests::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 5.5h15v10h-9l-4.5 3.5v-3.5h-1.5z'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-shots::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h3l1.5-2h7L17 8.5h3v10H4z'/%3E%3Ccircle cx='12' cy='13' r='3.2'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-cover::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4.5h6l-1 5 3 3v1.5H7V12.5l3-3z'/%3E%3Cpath d='M12 14v6'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-set-aside::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-work-in-progress::before,
:root[data-theme="darkroom"] .ico-rename::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5l1-4L16 5a1.8 1.8 0 0 1 2.5 0l.5.5a1.8 1.8 0 0 1 0 2.5L8.5 18.5z'/%3E%3Cpath d='M14 7l3 3'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-waiting::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-skipped::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16a7.5 7.5 0 0 1 13.5-4.5'/%3E%3Cpath d='M18.5 7v5h-5'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-failed::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l9 16H3z'/%3E%3Cpath d='M12 10v4.5M12 17.4v.1'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-ai-request::before,
:root[data-theme="darkroom"] .ico-st-changes_ai::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l1.8 5.2 5.2 1.8-5.2 1.8L12 17.5l-1.8-5.2L5 10.5l5.2-1.8z'/%3E%3Cpath d='M18 16v4M16 18h4'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-blockers::before,
:root[data-theme="darkroom"] .ico-st-erroneous::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 3.5h7l5 5v7l-5 5h-7l-5-5v-7z'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-blend-file::before,
:root[data-theme="darkroom"] .ico-deliveries::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l8 4.5v8l-8 4.5-8-4.5V8z'/%3E%3Cpath d='M4 8l8 4.5L20 8M12 12.5v8'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-blend-submissions::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h3.5a2 2 0 1 1 4 0H16v3.5a2 2 0 1 1 0 4V19H5z'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-share::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-notifications::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.5V11a6 6 0 0 1 12 0v5.5l1.5 1.5h-15z'/%3E%3Cpath d='M10 20.5h4'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-render-submissions::before,
:root[data-theme="darkroom"] .ico-export::before,
:root[data-theme="darkroom"] .ico-current-poses::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5v11M7.5 11l4.5 4.5 4.5-4.5M5 19.5h14'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-people::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3'/%3E%3Cpath d='M3.5 19c.8-3.4 3-5 5.5-5s4.7 1.6 5.5 5'/%3E%3Cpath d='M15 6a3 3 0 0 1 0 5.5M16.5 14c2 .4 3.5 2 4 5'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-api-keys::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='3.5'/%3E%3Cpath d='M10.5 12.5L19 4M16 7l2 2'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-submission-rules::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7h10M10 12h10M10 17h10'/%3E%3Cpath d='M4 7l1.2 1.2L7.5 6M4 12l1.2 1.2L7.5 11M4 17l1.2 1.2L7.5 16'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-theme::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 3.5a8.5 8.5 0 0 1 0 17z' fill='%23000'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-st-ready::before,
:root[data-theme="darkroom"] .ico-gameplay::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5.5v13l10-6.5z'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-close::before,
:root[data-theme="darkroom"] .ico-withdraw::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-prev::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6l-6 6 6 6'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-next::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 6l6 6-6 6'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-info::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.5M12 7.8v.2'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-compare::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='7.5' height='14' rx='1'/%3E%3Crect x='13' y='5' width='7.5' height='14' rx='1'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-wide::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V5h4M20 9V5h-4M4 15v4h4M20 15v4h-4'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-keys::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6.5' width='18' height='11' rx='1.5'/%3E%3Cpath d='M7 10h.01M10.5 10h.01M14 10h.01M17.5 10h.01M8 14h8'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-full-history::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12a7.5 7.5 0 1 0 2.2-5.3L4.5 9'/%3E%3Cpath d='M4.5 4.5V9H9M12 8v4l3 2'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-batch::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1'/%3E%3Cpath d='M14.5 16.5l1.8 1.8 3.2-3.6'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-revised::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l2.4 5 5.4.6-4 3.7 1.1 5.4L12 16l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-request-variant::before,
:root[data-theme="darkroom"] .thumb-actions .mini[data-act="req-var"]::before,
:root[data-theme="darkroom"] .new-expr .ph-icon:not(.ico)::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-delete::before,
:root[data-theme="darkroom"] .thumb-actions .mini[data-act="del-expr"]::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14M10 7V5h4v2M7 7l1 12.5h8L17 7'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-separate::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19L19 5M10 5h9v9'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-merge::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v4a5 5 0 0 0 5 5 5 5 0 0 1 5 5v2M17 4v4a5 5 0 0 1-3 4.6'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-carried::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 8L5 12l4 4'/%3E%3Cpath d='M5 12h9a5 5 0 0 0 5-5V5'/%3E%3C/svg%3E"); }
:root[data-theme="darkroom"] .ico-welcome::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-6.5 8 6.5'/%3E%3Cpath d='M6 9.5v10h12v-10'/%3E%3C/svg%3E"); }
/* @ICONS-END */

/* ======================================================== an episode's parts, as a list
   renders_episode.html and artist_renders.html mark their part grid `parts-list` (legacy has
   no rule for it and keeps its card grid). Here every part is one row - cover, the part's name over its last delivery, its counts at the right edge, hairline rules between, as the approved prototype draws it - and the
   whole row is still the one link to the part's page. The cover keeps its neutral grey mat
   and nothing is drawn over it. The episode page's "Queue final renders" button sits under
   its row, outside the link. The column heads (`parts-list-head`, `nl-only`) are not drawn.
   On a phone the cover stays on the left and the name, date and counts stack beside it. */
:root[data-theme="darkroom"] .grid.chars.parts-list {
  --pl-cols: 168px minmax(0, 1fr) minmax(0, 1.25fr); --pl-cover: 168px; --pl-gap: 24px; --pl-pad: 14px 0;
  grid-template-columns: minmax(0, 1fr); gap: 0;
}
:root[data-theme="darkroom"] .parts-list > .card-wrap { gap: 0; }
:root[data-theme="darkroom"] .parts-list > :is(.card, .card-wrap) { padding: var(--pl-pad); }
:root[data-theme="darkroom"] .parts-list .card {
  display: grid; grid-template-columns: var(--pl-cols); column-gap: var(--pl-gap); row-gap: 3px;
  align-items: center; min-width: 0;
}
:root[data-theme="darkroom"] .parts-list > .card-wrap > .card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
:root[data-theme="darkroom"] .parts-list .card-media { aspect-ratio: 16 / 9; width: 100%; align-self: center; border-radius: var(--radius); overflow: hidden; }
:root[data-theme="darkroom"] .parts-list .card-body { display: contents; }
:root[data-theme="darkroom"] .parts-list :is(.card-title, .card-meta, .card-counts) { min-width: 0; margin: 0; }
:root[data-theme="darkroom"] .parts-list .card-title { overflow-wrap: anywhere; }
:root[data-theme="darkroom"] .parts-list .card-counts { padding-top: 0; }
:root[data-theme="darkroom"] .parts-list .card-media { grid-row: 1 / span 2; }
:root[data-theme="darkroom"] .parts-list .card-title { grid-column: 2; grid-row: 1; align-self: end; }
:root[data-theme="darkroom"] .parts-list .card-meta { grid-column: 2; grid-row: 2; align-self: start; }
:root[data-theme="darkroom"] .parts-list .card-counts { grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-content: flex-end; }
:root[data-theme="darkroom"] .parts-list .placeholder { padding: 6px; gap: 4px; }
:root[data-theme="darkroom"] .parts-list .placeholder .ph-icon { font-size: 20px; --dr-ico: 20px; }
:root[data-theme="darkroom"] .parts-list .placeholder .ph-text { font-size: 10.5px; line-height: 1.25; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
:root[data-theme="darkroom"] .parts-list-head { display: none; }
:root[data-theme="darkroom"] .parts-list > .card-wrap > .final-queue { align-self: flex-start; max-width: calc(100% - var(--pl-cover) - var(--pl-gap)); margin: 10px 0 0 calc(var(--pl-cover) + var(--pl-gap)); }
@media (min-width: 761px) and (max-width: 1100px) {
  :root[data-theme="darkroom"] .grid.chars.parts-list { --pl-cols: 128px minmax(0, 1fr) minmax(0, 1fr); --pl-cover: 128px; }
}
@media (max-width: 760px) {
  :root[data-theme="darkroom"] .grid.chars.parts-list { --pl-cols: 112px minmax(0, 1fr); --pl-cover: 112px; --pl-gap: 12px; --pl-pad: 12px 0; }
  :root[data-theme="darkroom"] .parts-list .card { align-items: start; row-gap: 4px; }
  :root[data-theme="darkroom"] .parts-list .card-media { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  :root[data-theme="darkroom"] .parts-list .card-title { grid-column: 2; grid-row: 1; align-self: start; }
  :root[data-theme="darkroom"] .parts-list .card-meta { grid-column: 2; grid-row: 2; align-self: start; }
  :root[data-theme="darkroom"] .parts-list .card-counts { grid-column: 2; grid-row: 3; justify-content: flex-start; padding-top: 2px; }
  :root[data-theme="darkroom"] .parts-list .placeholder .ph-text { font-size: 10px; }
  :root[data-theme="darkroom"] .parts-list > .card-wrap > .final-queue { align-self: stretch; max-width: none; margin: 10px 0 0; }
}
:root[data-theme="darkroom"] .grid.chars.parts-list { border-top: 1px solid var(--dr-rule); }
:root[data-theme="darkroom"] .parts-list > :is(.card, .card-wrap) { background: transparent; border: 0; border-bottom: 1px solid var(--dr-rule); border-radius: 0; }
:root[data-theme="darkroom"] .parts-list > :is(.card:hover, .card-wrap:has(> .card:hover)) { background: var(--dr-ink-2); border-color: var(--dr-rule); }
:root[data-theme="darkroom"] .parts-list > :is(.card, .card-wrap) { padding-inline: 8px; }
:root[data-theme="darkroom"] .parts-list .card-title { font-size: 15px; font-weight: 500; color: var(--dr-text); }
:root[data-theme="darkroom"] .parts-list .card-meta { font-size: 12.5px; color: var(--dr-muted); }
:root[data-theme="darkroom"] .parts-list .card.is-empty .card-title { color: var(--dr-text-2); }
:root[data-theme="darkroom"] .parts-list .card:focus-visible { outline-offset: 4px; }

/* The language button's globe (templates/_language_picker.html, portal/docs/localisation.md). */
:root[data-theme="darkroom"] .ico-language::before { --dr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cellipse cx='12' cy='12' rx='3.6' ry='8.5'/%3E%3Cpath d='M3.5 12h17M5 7.5h14M5 16.5h14'/%3E%3C/svg%3E"); }

/* ======================================================== layout B08: slim empty parts
   A part with no delivery is one slim line on the episode page (shared rules: "Render
   Review catalogue" in aperture.css). Here: its small icon, and - since this theme's rows
   are three columns, the date under the name - four columns for the slim line, the name
   column starting where the full rows' does. */
:root[data-theme="darkroom"] .grid.chars.parts-list { --pl-slim-cols: var(--pl-cover) minmax(0, 1fr) minmax(0, .625fr) minmax(0, .625fr); }
:root[data-theme="darkroom"] .parts-list .card.is-empty .placeholder .ph-icon { font-size: 15px; --dr-ico: 15px; color: var(--muted); }

/* ======================================================== the home page (layout A04, A09, A10)
   Shared rules: "the home page" in aperture.css. Here only the size of a workflow's icon
   when, on a phone, the workflow tiles become one-line rows. */
@media (max-width: 760px) {
  :root[data-theme="darkroom"] .workflow-grid .placeholder .ph-icon.ico { --dr-ico: 24px; }
}


/* ================================================================ tablet (761-1100px)
   Tablet layout (static/css/tablet.css): the app bar and drawer in this theme's phone
   flavour. Keep this section last and contiguous. The two :not()s are there for
   specificity only: they match tablet.css's shared rules, which this section follows. */
@media (min-width: 761px) and (max-width: 1100px) {
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) .appbar { backdrop-filter: none; border-bottom: 1px solid var(--dr-rule); }
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) .appbar-title { font-weight: 500; }
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) .appbar-btn { border-radius: var(--radius-sm); }
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) .appbar-btn:active { transform: none; background: var(--dr-ink-3); }
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) .sidebar { transition: transform 180ms var(--ease); }
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) body.nav-open .sidebar { box-shadow: 0 0 0 1px var(--dr-rule); }
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) .nav-scrim { transition: opacity 180ms var(--ease); }
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) .nav-item.active::before { left: -8px; }
  :root[data-theme="darkroom"]:not([data-theme="legacy"]):not([data-theme="win2000"]) .appbar-theme { border-color: var(--dr-rule-2); border-radius: var(--radius-sm); font-weight: 500; }
}
