/* Sky Images — Delivery Platform prototype
   Dark, minimal, high-contrast to match skyimages.com.au */

/* Phosphor icons: each page links assets/phosphor/style.css itself, before this file. */

/* Self-hosted (Darkroom piece 1): the offline and sign-in pages render with no internet, and the CSP allows
 * fonts from 'self' only. Latin subset; OFL licences beside the files. */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/geist-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/geist-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/geist-mono-latin-600-normal.woff2') format('woff2'); }

/* ---------- design tokens ----------
 * :root IS the dark theme, and stays the default deliberately: if the theme script never runs, the
 * app renders exactly as it always has. `[data-theme="light"]` further down overrides it.
 *
 * Every colour in the front end has to be declared HERE. That is not tidiness — a colour typed into
 * a rule or a template string cannot follow the theme, and it fails invisibly, showing up as white
 * text on a white chip on one screen in one state. server/test/theme-tokens.test.js fails the build
 * on a literal anywhere outside these two blocks, with a `theme-exempt` comment as the visible,
 * arguable escape hatch for colours that genuinely belong to no theme (the letterbox behind a 16:9
 * video is black either way).
 *
 * Darkroom piece 1: each block opens with the body of docs/design-handoff-v4/darkroom.css pasted
 * unchanged, so server/test/darkroom-tokens-match-the-design.test.js can hold it to the design Dave
 * approved. Today's names (--bg, --text, --brand...) follow as aliases that point at the Darkroom
 * tokens, while pages move over. The same alias line sits in both blocks: var() resolves on the
 * element, so one line gives the right value in each theme. A name with no Darkroom match keeps its
 * own value for now.
 */
:root {
  /* Lighter charcoal (Dave, 17 Nov 2026, mock I2). sky-blue-and-charcoal-themes-read-clearly.test.js
   * holds these to the approved values and to 4.5:1 for text, 3:1 for a field's edge. */
  --ground:        #28292C;   /* the room */
  --tray:          #202124;   /* panels */
  --lift:          #303134;   /* hover, selected, popovers */
  --inset:         #202124;   /* inputs */
  --ink:           #E8EAED;
  --ink-2:         #BDC1C6;
  --ink-3:         #9AA0A6;
  --ink-4:         #969BA1;   /* quiet notes: still 4.5:1 on ground, tray and lift */
  --rule:          #3A3B3F;
  --rule-soft:     rgba(232,234,237,.06);
  --rule-strong:   rgba(232,234,237,.16);
  --twilight:      #8AB4F8;   /* the one accent */
  --twilight-wash: rgba(138,180,248,.14);
  --twilight-wash-strong: rgba(138,180,248,.18);   /* the open job's row on the Jobs list */
  --twilight-ink:  #0E1A2E;   /* text on solid twilight */
  --info:          var(--twilight);        /* accent-blue text on a blue wash */
  --info-wash:     var(--twilight-wash);
  --nav-active-bg: #2B3C55;   /* the open page in the menu */
  --nav-active-fg: var(--twilight);
  --jobrow-open-ring: var(--lift-shadow);  /* the open job in the Jobs list */
  --jobrow-open-sub:  var(--ink-2);        /* its second line: brighter than a closed row's */
  --safelight:     #FDD663;   /* waiting too long */
  --safelight-wash:#3D3420;
  --fault:         #F28B82;   /* broken, needs a person */
  --fault-wash:    #3F2524;
  --fixer:         #81C995;   /* done */
  --fixer-wash:    #1F3A28;
  --pending:       rgba(232,234,237,.10);  /* stage not reached */
  /* One colour per stage of a job (Dave, 16 Nov 2026). None is red, which stays for a problem; violet is
   * lighter than blue and green bluer than amber, so neighbours stay apart for colour-blind eyes too. */
  --stage-booked:    #8E98A3;   /* slate */
  --stage-shot:      #D4C0FF;   /* violet */
  --stage-files:     #4A8CE6;   /* blue */
  --stage-editing:   #E8BF4A;   /* amber */
  --stage-delivered: #38B68C;   /* green */
  /* The job panel (Dave, 18 Nov 2026, option C): a ground a step off the page so the cards (--tray) stand
   * out, and a lighter tint of each stage colour for a section's label, AA on the card. */
  --jobd-ground:        #2C2D31;
  --tone-booked-ink:    #B7BEC6;
  --tone-shot-ink:      #DCCBFF;
  --tone-files-ink:     #9EC2F5;
  --tone-editing-ink:   #F2D17A;
  --tone-delivered-ink: #7FD8B6;
  --lift-shadow:   0 0 0 1px rgba(232,234,237,.08);
  --rail-shadow:   0 24px 48px -12px rgba(0,0,0,.5);   /* the rail, opened over the page */
  --frame-outline: rgba(255,255,255,.1);
  /* file categories, the same meanings as V1: photos blue, video green, floorplans purple, extras
     grey. Green, blue and purple also step down in lightness, so they part for colour-blind eyes. */
  --cat-edit:      #5B9CF0;
  --cat-video:     #6FDCA0;
  --cat-drone:     #5E80B2;
  --cat-fp:        #8457E0;
  --cat-extra:     #8A867E;
  /* upload bars and tiles: photos blue, video green, floorplans purple, extras grey, as in V1.
     Blue, green and purple also differ in lightness, for colour-blind eyes. */
  --up-edit:       var(--cat-edit);   --up-edit-wash:  color-mix(in srgb, var(--cat-edit) 16%, transparent);
  --up-extra:      var(--cat-extra);  --up-extra-wash: color-mix(in srgb, var(--cat-extra) 16%, transparent);
  --up-video:      var(--cat-video);  --up-video-wash: color-mix(in srgb, var(--cat-video) 16%, transparent);
  --up-drone:      #6FC6D4;  --up-drone-wash: rgba(111,198,212,.16);
  --up-fp:         var(--cat-fp);     --up-fp-wash:    color-mix(in srgb, var(--cat-fp) 16%, transparent);
  /* the overall bar's "uploading now" segment: the hue at 35%, between the wash and the fill */
  --up-edit-track:  color-mix(in srgb, var(--cat-edit) 35%, transparent);
  --up-extra-track: color-mix(in srgb, var(--cat-extra) 35%, transparent);
  --up-video-track: color-mix(in srgb, var(--cat-video) 35%, transparent);
  --up-fp-track:    color-mix(in srgb, var(--cat-fp) 35%, transparent);

  --fault-ink:     #0F0F10;   /* text on a --fault fill */
  /* A form field's edge owes 3:1 (WCAG 1.4.11). The mock's #5F6368 is 2.4:1, so this is lighter:
   * 3.2:1 on lift, 3.6:1 on ground, 4.0:1 on tray and inset. */
  --field-edge:    #7A7F85;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 150ms;
  --dur: 200ms;

  /* ---- today's names, as aliases of the Darkroom tokens ---- */
  --bg:        var(--ground);
  --bg-2:      var(--tray);
  --bg-3:      var(--lift);
  --line:      var(--rule);
  --text:      var(--ink);
  --muted:     var(--ink-2);
  --muted-2:   var(--ink-3);
  --brand:     var(--twilight);
  --brand-fill: var(--twilight);
  --brand-2:   color-mix(in srgb, var(--twilight) 82%, var(--ink));
  --brand-ink: var(--twilight-ink);
  --line2:     var(--rule-strong);
  --track:     var(--pending);
  --faint:     var(--ink-3);
  --ok:        var(--fixer);
  --radius:    10px;
  --out-gutter: max(24px, calc((100% - 880px) / 2));
  --maxw:      1240px;
  /* The admin page column (.shell__content): at most --page-max wide, and on a wider screen the space
     left beside it goes to both sides as --gutter, never less than the boards' 32px. 100% is resolved
     where --gutter is used, against the body's width, so the rail's own width comes off it first. A
     collapsed rail sets --rail-w on html, the element that declares --gutter, so the gutter sees it. */
  --page-max:  1440px;
  --rail-w:    232px;
  --gutter:    max(32px, calc((100% - var(--rail-w) - var(--page-max)) / 2));

  /* surfaces + interaction */
  --hover-line:       var(--rule-strong);
  --hover-bg:         var(--lift);
  --surface-veil:     color-mix(in srgb, var(--ground) 85%, transparent);   /* the blurred sticky header */
  --focus-line:       var(--twilight);
  --glass:            var(--rule-soft);
  --glass-2:          var(--rule-strong);
  --ink-wash:         var(--rule-soft);

  /* depth. Named by role rather than by size, so the light theme can be softer without renaming. */
  --shadow-lg:        rgba(0,0,0,.7);
  --shadow-md:        rgba(0,0,0,.45);
  --shadow-sm:        rgba(0,0,0,.4);
  --shadow-menu:      rgba(0,0,0,.5);
  --shadow-photo:     #000;
  --scrim:            rgba(0,0,0,.4);       /* gradient over a thumbnail, so its caption reads */
  --lightbox-bg:      color-mix(in srgb, var(--inset) 94%, transparent);

  /* brand washes: the twilight wash, under five old names */
  --brand-wash-faint: var(--twilight-wash);
  --brand-wash-soft:  var(--twilight-wash);
  --brand-wash:       var(--twilight-wash);
  --brand-wash-2:     var(--twilight-wash);
  --brand-ring:       var(--twilight-wash); /* focus ring */

  /* status pills. Four families, each fg / bg / line, so a new state picks a family not a colour. */
  --pill-ok-fg:       var(--fixer);  --pill-ok-bg:   var(--fixer-wash);  --pill-ok-line:   var(--rule-strong);
  --pill-ok-ring:     var(--fixer-wash);
  --pill-info-fg:     var(--info);  --pill-info-bg: var(--info-wash);  --pill-info-line: var(--rule-strong);
  --pill-warn-fg:     var(--safelight);  --pill-warn-bg: var(--safelight-wash);  --pill-warn-line: var(--rule-strong);
  --pill-warn-divider:var(--safelight-wash);
  --pill-busy-fg:     var(--info);  --pill-busy-bg: var(--info-wash);  --pill-busy-line: var(--rule-strong);
  --pill-danger-fg:   var(--fault);  --pill-danger-line: var(--rule-strong);
  /* the full-width "admin preview / viewing as" strip on the four delivery pages */
  --banner-ok-link:   var(--fixer);
  --banner-done-bg:   var(--fixer-wash);  --banner-done-line: var(--rule-strong);  --banner-done-fg: var(--fixer);

  /* email-template editor chips */
  --chip-bg:          var(--info-wash);  --chip-fg:      var(--info);  --chip-line: var(--rule-strong);
  --chip-sec-bg:      var(--lift);  --chip-sec-fg:  var(--ink-2);

  /* the percentages beside the live-board category tints */
  --warn-strong:      var(--safelight);

  /* ink ON the twilight fill */
  --brand-ink-dark:   var(--twilight-ink);

  /* admin badges */
  --attn-loud-fg:     var(--fault);  --attn-loud-line:   color-mix(in srgb, var(--fault) 40%, transparent);  --attn-loud-bg:   var(--fault-wash);
  --badge-fail-fg:    var(--fault);  --badge-fail-line:  color-mix(in srgb, var(--fault) 40%, transparent);  --badge-fail-bg:  var(--fault-wash);
  --badge-locked-line:var(--fault-wash);  --badge-locked-bg:  var(--fault-wash);
  --badge-editor-fg:  var(--cat-video);  --badge-editor-line:var(--rule-strong);  --badge-editor-bg:color-mix(in srgb, var(--cat-video) 12%, transparent);
  --fail-line:        var(--fault);
  --editor-bg:        var(--inset);   /* the email-template code editor */
  --toolbar-bg:       var(--tray);

  /* the four upload categories, as a wash behind a segment and stronger while it is uploading */
  --cat-edit-wash:    color-mix(in srgb, var(--cat-edit) 22%, transparent);   --cat-edit-strong:  color-mix(in srgb, var(--cat-edit) 42%, transparent);
  --cat-extra-wash:   var(--rule-strong);  --cat-extra-strong: color-mix(in srgb, var(--cat-extra) 42%, transparent);
  --cat-video-wash-2: color-mix(in srgb, var(--cat-video) 22%, transparent);
  --cat-video-strong: color-mix(in srgb, var(--cat-video) 42%, transparent);
  --cat-fp-wash:      color-mix(in srgb, var(--cat-fp) 22%, transparent);  --cat-fp-strong:    color-mix(in srgb, var(--cat-fp) 42%, transparent);
  --overlay:          rgba(0,0,0,.55);
  --overlay-strong:   rgba(0,0,0,.9);

  /* destructive + cancel */
  --danger-bg:        var(--fault-wash);
  --danger-fg:        var(--fault);
  --cancel-fg:        var(--fault);  --cancel-line:       color-mix(in srgb, var(--fault) 40%, transparent);
  --cancel-fg-hover:  var(--ink);  --cancel-line-hover: var(--fault);  --cancel-bg-hover: var(--fault-wash);
  --critical-bg:      var(--fault-wash);
  --badge-bg:         var(--fault);

  /* floorplans */
  --fp:               var(--cat-fp);
  --fp-ink:           var(--ink-2);
  --fp-wash:          color-mix(in srgb, var(--cat-fp) 18%, transparent);
  --fp-wash-2:        color-mix(in srgb, var(--cat-fp) 26%, transparent);

  /* video review overlay */
  --tick-shot:        var(--safelight);
  --tick-shot-ring:   var(--safelight-wash);
  --tooltip-bg:       var(--lift);
  --tooltip-fg:       var(--ink);
  --focus-ink:        var(--ink);           /* focus outline / active swatch border */

  color-scheme: dark;                      /* scrollbars, date pickers and select menus follow too */
}

/* ---------- light ----------
 * Set by theme.js on <html data-theme="light">, from the browser's own store, falling back to the
 * operating system's preference on a first visit. Per browser on purpose: Dave, 2026-08-03, wanting
 * light on the phone and dark on the desktop.
 *
 * Every name in :root is redefined here. server/test/theme-tokens.test.js fails on any that is not,
 * because a token defined in one theme and missed in the other renders as nothing at all: an
 * unstyled chip, or invisible text, on whichever screen happens to use it.
 *
 * The thumbnail scrim stays dark on purpose, because it sits over a photograph rather than over the
 * app. The light values are sky blue (Dave, 17 Nov 2026): a pale blue ground, white cards, navy ink.
 */
[data-theme="light"] {
  --out-gutter: max(24px, calc((100% - 880px) / 2));
  /* Sky blue (Dave, 17 Nov 2026). Two nudges from the mock for the contrast floor: ink-3 #5A7393 was
   * 4.44:1 on the ground, so it is darker; and the accent reads 4.37:1 as text on its own wash, so text on
   * a blue wash is --info. */
  --ground:        #EEF5FD;
  --tray:          #FFFFFF;
  --lift:          #FFFFFF;
  --inset:         #E3EEFA;
  --ink:           #0B2545;
  --ink-2:         #3B5778;
  --ink-3:         #4A6383;
  --ink-4:         #57708F;
  --rule:          #D6E4F5;
  --rule-soft:     #E3EEFA;   /* dividers inside a card */
  --rule-strong:   #B9CDE6;   /* a secondary button's border */
  --twilight:      #0A6CDB;
  --twilight-wash: rgba(10,108,219,.10);
  --twilight-wash-strong: rgba(10,108,219,.16);
  --twilight-ink:  #FFFFFF;
  --info:          #0A5AB8;
  --info-wash:     #DCEBFC;
  --nav-active-bg: var(--twilight);
  --nav-active-fg: var(--twilight-ink);
  --jobrow-open-ring: inset 0 0 0 1.5px var(--twilight), var(--lift-shadow);
  --jobrow-open-sub:  var(--ink);   /* ink-2 on the blue wash (5.95:1) reads below a closed row's ink-3 on white (6.17:1) */
  --safelight:     #8A5300;
  --safelight-wash:#FDF0D5;
  --fault:         #A8301C;
  --fault-wash:    #FCE4E1;
  --fixer:         #137A3E;
  --fixer-wash:    #DDF5E6;
  --pending:       rgba(11,37,69,.10);
  --stage-booked:    #737C87;
  --stage-shot:      #4E2A9E;
  --stage-files:     #2F72CC;
  --stage-editing:   #8C6400;
  --stage-delivered: #16735A;
  --jobd-ground:        #E6F0FB;   /* a touch deeper than the page sky, so the white cards stand out */
  --tone-booked-ink:    #4F5862;
  --tone-shot-ink:      #40217F;
  --tone-files-ink:     #1F5AA8;
  --tone-editing-ink:   #6E4E00;
  --tone-delivered-ink: #0F5A46;
  --lift-shadow:   0 0 0 1px rgba(11,37,69,.06), 0 1px 2px -1px rgba(11,37,69,.06), 0 2px 4px rgba(11,37,69,.04);
  --rail-shadow:   0 24px 48px -12px rgba(0,0,0,.5);   /* design 01 gives one shadow for both themes */
  --frame-outline: rgba(0,0,0,.1);
  --cat-edit:      #2566C4;
  --cat-video:     #2B9A60;
  --cat-drone:     #173A68;
  --cat-fp:        #5A2FA8;
  --cat-extra:     #7F7B74;
  --up-edit:       var(--cat-edit);   --up-edit-wash:  color-mix(in srgb, var(--cat-edit) 12%, transparent);
  --up-extra:      var(--cat-extra);  --up-extra-wash: color-mix(in srgb, var(--cat-extra) 12%, transparent);
  --up-video:      var(--cat-video);  --up-video-wash: color-mix(in srgb, var(--cat-video) 12%, transparent);
  --up-drone:      #1D7381;  --up-drone-wash: rgba(29,115,129,.12);
  --up-fp:         var(--cat-fp);     --up-fp-wash:    color-mix(in srgb, var(--cat-fp) 12%, transparent);
  /* the overall bar's "uploading now" segment: the hue at 35%, between the wash and the fill */
  --up-edit-track:  color-mix(in srgb, var(--cat-edit) 35%, transparent);
  --up-extra-track: color-mix(in srgb, var(--cat-extra) 35%, transparent);
  --up-video-track: color-mix(in srgb, var(--cat-video) 35%, transparent);
  --up-fp-track:    color-mix(in srgb, var(--cat-fp) 35%, transparent);

  --fault-ink:     #FFFFFF;   /* text on a --fault fill */
  --field-edge:    #6B86A6;   /* the mock's #8FA9C8 is 2.2:1; this is 3.2:1 on inset, 3.5:1 or more elsewhere */
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 150ms;
  --dur: 200ms;

  /* ---- today's names, as aliases of the Darkroom tokens (same lines as :root) ---- */
  --bg:        var(--ground);
  --bg-2:      var(--tray);
  --bg-3:      var(--lift);
  --line:      var(--rule);
  --text:      var(--ink);
  --muted:     var(--ink-2);
  --muted-2:   var(--ink-3);
  --brand:     var(--twilight);
  --brand-fill: var(--twilight);
  --brand-2:   color-mix(in srgb, var(--twilight) 82%, var(--ink));
  --brand-ink: var(--twilight-ink);
  --line2:     var(--rule-strong);
  --track:     var(--pending);
  --faint:     var(--ink-3);
  --ok:        var(--fixer);

  --hover-line:       var(--rule-strong);
  --hover-bg:         var(--ground);   /* lift is white, the same as a card, so a hover takes the pale blue ground (accent text 4.57:1 on it; the field fill would drop it to 4.28:1) */
  --surface-veil:     color-mix(in srgb, var(--ground) 85%, transparent);
  --focus-line:       var(--twilight);
  --glass:            var(--rule-soft);
  --glass-2:          var(--rule-strong);
  --ink-wash:         var(--rule-soft);

  /* Softer and cooler than the dark theme's near-black: a heavy shadow on a light page reads as
     grime rather than as depth. */
  --shadow-lg:        rgba(16,24,40,.26);
  --shadow-md:        rgba(16,24,40,.16);
  --shadow-sm:        rgba(16,24,40,.14);
  --shadow-menu:      rgba(16,24,40,.18);
  --shadow-photo:     rgba(16,24,40,.35);
  --scrim:            rgba(0,0,0,.4);        /* over a thumbnail photo — stays dark on purpose */
  --lightbox-bg:      color-mix(in srgb, var(--inset) 94%, transparent);

  --brand-wash-faint: var(--twilight-wash);
  --brand-wash-soft:  var(--twilight-wash);
  --brand-wash:       var(--twilight-wash);
  --brand-wash-2:     var(--twilight-wash);
  --brand-ring:       var(--twilight-wash);

  --pill-ok-fg:       var(--fixer);  --pill-ok-bg:   var(--fixer-wash);  --pill-ok-line:   var(--rule-strong);
  --pill-ok-ring:     var(--fixer-wash);
  --pill-info-fg:     var(--info);  --pill-info-bg: var(--info-wash);  --pill-info-line: var(--rule-strong);
  --pill-warn-fg:     var(--safelight);  --pill-warn-bg: var(--safelight-wash);  --pill-warn-line: var(--rule-strong);
  --pill-warn-divider:var(--safelight-wash);
  --pill-busy-fg:     var(--info);  --pill-busy-bg: var(--info-wash);  --pill-busy-line: var(--rule-strong);
  --pill-danger-fg:   var(--fault);  --pill-danger-line: var(--rule-strong);

  --banner-ok-link:   var(--fixer);
  --banner-done-bg:   var(--fixer-wash);  --banner-done-line: var(--rule-strong);  --banner-done-fg: var(--fixer);

  --chip-bg:          var(--info-wash);  --chip-fg:      var(--info);  --chip-line: var(--rule-strong);
  --chip-sec-bg:      var(--lift);  --chip-sec-fg:  var(--ink-2);

  --warn-strong:      var(--safelight);

  --brand-ink-dark:   var(--twilight-ink);

  --attn-loud-fg:    var(--fault);  --attn-loud-line:   color-mix(in srgb, var(--fault) 40%, transparent);  --attn-loud-bg:   var(--fault-wash);
  --badge-fail-fg:    var(--fault);  --badge-fail-line:  color-mix(in srgb, var(--fault) 40%, transparent);  --badge-fail-bg:  var(--fault-wash);
  --badge-locked-line:var(--fault-wash);  --badge-locked-bg:  var(--fault-wash);
  --badge-editor-fg:  color-mix(in srgb, var(--cat-video) 62%, var(--ink));  --badge-editor-line:var(--rule-strong);  --badge-editor-bg:color-mix(in srgb, var(--cat-video) 12%, transparent);
  --fail-line:        var(--fault);
  --editor-bg:        var(--inset);
  --toolbar-bg:       var(--tray);

  /* Category tints: the same mixes as the dark theme (42% strong, 22% for the floorplan wash), so
     the two themes cannot drift apart unnoticed. */
  --cat-edit-wash:    color-mix(in srgb, var(--cat-edit) 22%, transparent);   --cat-edit-strong:  color-mix(in srgb, var(--cat-edit) 42%, transparent);
  --cat-extra-wash:   var(--rule-strong);   --cat-extra-strong: color-mix(in srgb, var(--cat-extra) 42%, transparent);
  --cat-video-wash-2: color-mix(in srgb, var(--cat-video) 22%, transparent);
  --cat-video-strong: color-mix(in srgb, var(--cat-video) 42%, transparent);
  --cat-fp-wash:      color-mix(in srgb, var(--cat-fp) 22%, transparent);   --cat-fp-strong:    color-mix(in srgb, var(--cat-fp) 42%, transparent);

  --overlay:          rgba(15,23,32,.45);
  --overlay-strong:   rgba(15,23,32,.75);

  --danger-bg:        var(--fault-wash);
  --danger-fg:        var(--fault);
  --cancel-fg:        var(--fault);  --cancel-line:       color-mix(in srgb, var(--fault) 40%, transparent);
  --cancel-fg-hover:  var(--ink);  --cancel-line-hover: var(--fault);  --cancel-bg-hover: var(--fault-wash);
  --critical-bg:      var(--fault-wash);
  --badge-bg:         var(--fault);

  --fp:               var(--cat-fp);
  --fp-ink:           var(--ink-2);
  --fp-wash:          color-mix(in srgb, var(--cat-fp) 18%, transparent);
  --fp-wash-2:        color-mix(in srgb, var(--cat-fp) 26%, transparent);

  --tick-shot:        var(--safelight);
  --tick-shot-ring:   var(--safelight-wash);
  --tooltip-bg:       var(--lift);
  --tooltip-fg:       var(--ink);
  --focus-ink:        var(--ink);

  color-scheme: light;
}

/* Darkroom base (piece 1). Hierarchy comes from weight; figures line up. */
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.btn, button, .admintab, .rail__item, .tabbar__item, .sheet__item {
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active, button:active, .rail__item:active, .tabbar__item:active { transform: scale(.97); }

@media (max-width: 767px) {
  .btn, button, .admintab, .subtab, select, .tabbar__item,
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]) { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* The theme toggle. Injected by theme.js into the header of every page that has one, so no page
   markup has to know about it. */
/* A square icon button rather than a pill with one character rattling around in it.
 * `.btn.theme-toggle` for specificity: this rule sits ABOVE .btn--sm in the file, so a single class
 * would lose the padding fight to it regardless of what it says. */
.btn.theme-toggle {
  width: 34px; height: 34px; padding: 0; flex: 0 0 auto;
  justify-content: center; font-size: 15px; line-height: 1;
}

/* The header logo is WHITE artwork, so on a light background it vanished into the page — a ghost of
   itself in the top-left corner. Every page hard-codes `src="assets/logo-white.png"`, and `content`
   swaps the rendered image without any of them having to change or know about the theme.
   logo-dark.png is the same mark in dark ink, and was already sitting in assets/. */
[data-theme="light"] .logo img, [data-theme="light"] .rail__logo img { content: url('assets/logo-dark.png'); }

/* Rail (Darkroom piece 1, design 01; always open since 15 Nov 2026). Dave: "i want it to be always
   visible, and just move the sub menus further right", then "keep the option to collapse though".
   Open at 232px on a screen 1200px or wider, beside the page and never over it (.shell__top and
   .shell__content start right of it). The Collapse menu button under the logo shrinks it to the 64px
   icon strip: rail.js puts data-rail-state="shut" on <html> (not data-rail, which the entries use),
   from the head so a collapsed rail is collapsed at first paint, and remembers the choice per browser.
   With no choice made, a screen under 1200px gets the strip. Every collapsed rule starts
   html[data-rail-state="shut"] .rail. Nothing opens or shuts it on hover or focus: in the strip the
   words are the titles (tooltips) and stay in the accessibility tree, and the counts sit on the icon
   corners. Open, the entries, chips and foot are taller than a 768px laptop, so the rail scrolls up and
   down to reach the foot (the bell, Sign out), never sideways. The foot pop-ups are position: fixed,
   so the scroller does not clip them. In the strip the scrollbar is hidden: it would eat into 64px;
   the wheel and Tab still scroll it.
   Not CSS nesting: jsdom cannot parse it and drops the whole sheet, which the suite reads. */
.rail {
  position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 40;
  display: flex; flex-direction: column; gap: 4px; padding: 12px 8px;
  background: var(--tray); border-right: 1px solid var(--rule); overflow-x: hidden; overflow-y: auto;
  scrollbar-width: thin; transition: width var(--dur) var(--ease);
}
html[data-rail-state="shut"] .rail { width: 64px; scrollbar-width: none; }
.rail__logo { display: flex; flex: none; }
.rail__logo img { width: 32px; height: auto; margin: 4px 8px 12px; }
.rail__item, .rail__link, .rail__toggle {
  position: relative; flex: none;
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.rail__item .ph, .rail__link .ph, .rail__toggle .ph { font-size: 20px; flex: none; }
.rail__item:hover, .rail__link:hover, .rail__toggle:hover { background: var(--hover-bg); color: var(--ink); }
.rail__item.active, .rail__item[aria-current="page"] { background: var(--nav-active-bg); color: var(--nav-active-fg); }
/* The Collapse menu button sits a little apart from the entries under it. */
.rail__toggle { margin-bottom: 4px; }
.rail__toggle .ph { transition: transform var(--dur) var(--ease); }
html[data-rail-state="shut"] .rail .rail__toggle .ph { transform: scaleX(-1); }
.rail__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Collapsed, the words leave the screen but are still read out, so every entry keeps its name. */
html[data-rail-state="shut"] .rail .rail__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* The wash sits on a solid tray, not on whatever is behind the count. Over an active entry's twilight
   wash the count read 4.40:1 in light and the loud one 4.15:1 in dark (done-check M1, M3); on the tray
   the lowest is 5.03:1. */
.rail__count {
  margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; font-family: var(--font-mono);
  font-size: 12px; line-height: 20px; text-align: center;
  background: linear-gradient(var(--safelight-wash), var(--safelight-wash)), var(--tray); color: var(--safelight);
}
.rail__count[hidden] { display: none; }
/* Notices is information, not a job waiting (Dave, 18 Nov 2026): a grey count, no wash. */
.rail__count--info { background: transparent; color: var(--ink-3); }
html[data-rail-state="shut"] .rail .rail__count--info { background: var(--tray); }

/* ---------- Needs you (Dave, 18 Nov 2026, option C) ----------
   One box above Jobs: a light red wash, a small uppercase heading, then one plain row per queue with
   something in it, label left and a red number right. Nothing waiting: one quiet green line. Collapsed,
   the box is only a red dot at the top of the rail when anything waits. */
.needs-you { flex: none; margin: 0 0 8px; padding: 8px 4px 6px; border-radius: 10px; background: var(--fault-wash); }
.needs-you[hidden], .needs-you__head[hidden], .needs-you__rows[hidden], .needs-you__none[hidden], .needs-you__dot[hidden] { display: none; }
.needs-you__head {
  margin: 0 8px 4px; font-size: 11px; font-weight: 600; line-height: 16px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fault);
}
.needs-you__rows { display: flex; flex-direction: column; }
.needs-row {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 0 8px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 13px;
  text-align: left; cursor: pointer;
}
.needs-row:hover { background: var(--hover-bg); }
.needs-row__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.needs-row__n { margin-left: auto; flex: none; color: var(--fault); font-weight: 700; font-variant-numeric: tabular-nums; }
.needs-you--clear { padding: 4px 12px; background: transparent; }
.needs-you__none { margin: 0; font-size: 13px; line-height: 24px; color: var(--fixer); }
.needs-you__dot { display: none; }
html[data-rail-state="shut"] .rail .needs-you:not([hidden]) {
  display: flex; justify-content: center; min-height: 12px; margin: 0 0 4px; padding: 0; background: transparent;
}
/* Beats the :not([hidden]) rule above, so nothing waiting leaves no gap above Jobs. */
html[data-rail-state="shut"] .rail .needs-you--clear:not([hidden]) { display: none; }
html[data-rail-state="shut"] .rail .needs-you__head,
html[data-rail-state="shut"] .rail .needs-you__rows,
html[data-rail-state="shut"] .rail .needs-you__none { display: none; }
html[data-rail-state="shut"] .rail .needs-you__dot:not([hidden]) {
  display: block; position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--fault);
}

/* The backup as one line of text in the rail foot: green when fine, red when not. No box, normal font. */
.rail__backup {
  flex: none; display: block; width: 100%; padding: 4px 12px; border: 0; background: transparent;
  font: inherit; font-size: 12px; text-align: left; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail__backup[hidden] { display: none; }
.rail__backup--ok { color: var(--fixer); }
.rail__backup--bad { color: var(--fault); }
.rail__backup:hover { text-decoration: underline; }
html[data-rail-state="shut"] .rail .rail__backup { display: none; }
.rail__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
/* The foot's widgets were built for the header row. In the rail each one is a row like the entries
   above it: the icon or dots stay in the 64px column, the words fade in with the labels. */
.rail__foot .who { padding: 0 12px; white-space: nowrap; }
.rail__foot .pw-btn { position: relative; width: 100%; min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; white-space: nowrap; }
.rail__foot .jc-total { margin-left: 0; padding: 0 12px; white-space: nowrap; }
.jc-total__word { white-space: pre; }
/* Collapsed, the chat total and the presence count stay on screen as numbers (round 1 review, 28 Oct
   2026): a new chat reply and the "in the app" figure read before a deploy were always visible before
   the rail. The words hide but are still read out. */
/* Collapsed, there is no room beside the label, so the count sits on the icon's top right corner. */
html[data-rail-state="shut"] .rail .rail__count {
  position: absolute; top: 2px; left: 26px; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px;
}
html[data-rail-state="shut"] .rail .rail__foot :is(.jc-total__word, .pw-word) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html[data-rail-state="shut"] .rail .rail__foot .jc-total__n {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font-family: var(--font-mono);
  font-size: 12px; line-height: 20px; text-align: center; background: var(--safelight-wash); color: var(--safelight);
}
html[data-rail-state="shut"] .rail .rail__foot .pw-n {
  position: absolute; top: 2px; left: 26px; min-width: 16px; padding: 0 4px; border-radius: 8px; font-family: var(--font-mono);
  font-size: 10px; line-height: 16px; text-align: center; background: var(--lift); color: var(--ink); box-shadow: 0 0 0 1px var(--rule);
}
.rail__foot .notif-wrap { display: block; margin: 0; }
.rail__foot .notif-bell { width: 100%; min-height: 40px; padding: 0 12px; }
.rail__foot .notif-badge { top: 4px; right: auto; left: 26px; }
.rail__foot .btn.theme-toggle { width: 40px; height: 40px; margin-left: 4px; }
/* The popovers open beside the rail, 8px clear of it: of the 232px rail, or of the 64px strip once
   it is collapsed. */
.rail__foot .notif-panel, .rail__foot .pw-pop { position: fixed; left: 240px; right: auto; top: auto; bottom: 12px; }
html[data-rail-state="shut"] .rail .rail__foot :is(.notif-panel, .pw-pop) { left: 72px; }
.rail__item .tab-dot { position: absolute; top: 10px; left: 34px; margin: 0; }
/* Who is signed in, last in the foot (board 01): a 32px avatar with the fixer dot, then the name and
   "Online · N others in" from GET /api/admin/presence, which fade in with the labels. */
.rail__me { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px; white-space: nowrap; }
.rail__avatar {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--twilight-wash); color: var(--info); font-size: 13px; font-weight: 600;
}
.rail__dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--fixer); box-shadow: 0 0 0 2px var(--tray); }
.rail__me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rail__me-text b, .sheet__me-text b { color: var(--ink); font-size: 13px; font-weight: 600; }
.rail__online { color: var(--ink-3); font-size: 12px; }
/* The storage strip, on the Settings tab since board 01 (it used to sit above every tab). admin.page.js
   gives the dot a class by how full the disk is; unknown keeps the plain ink-3 dot. */
.sto-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sto-strip h2 { margin: 0; }
.sto-strip .sub { margin: 0; }
.sto-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.sto-dot--ok { background: var(--ok); }
.sto-dot--warn { background: var(--pill-warn-fg); }
.sto-dot--low { background: var(--danger-fg); }

/* The shell (board 01, Darkroom layout Task 1). The page runs from the rail to the right edge: no
   max-width and no auto margins, which is what left a wide screen's left half empty. It starts right of
   the 232px open rail, and right of the 64px strip once the rail is collapsed (a desktop only: phones
   have the tab bar). The top bar sticks while the window scrolls. The rail, top bar, page and tab
   bar are each a landmark straight under <body class="shell">, so nothing sits outside one (F-W8s-007).
   Centred on a wide screen (15 Nov 2026, Dave: "everything is too justified to the left"): the page
   and top bar are padded by --gutter (see :root), so the column is at most --page-max wide and sits
   in the middle of the space beside the rail. Padding, not a box with auto margins, so the benches
   can still bleed past it. */
.shell__top, .shell__content {
  margin-left: 232px; min-width: 0;
  /* The centring padding (--gutter) grows as the margin shrinks. Both slide, or a collapse on a wide
     screen jumps the page right and then slides it left (review of 3e87b645, m1). */
  transition: margin-left var(--dur) var(--ease), padding-left var(--dur) var(--ease), padding-right var(--dur) var(--ease);
}
@media (min-width: 768px) {
  html[data-rail-state="shut"] { --rail-w: 64px; }
  html[data-rail-state="shut"] :is(.shell__top, .shell__content) { margin-left: 64px; }
}
/* The top bar is sticky, so anything scrolled to with block:'start' (the attention chips, the #main skip
   link, an anchor) lands 16px below it instead of under it (review I2). */
html:has(.shell__top) { scroll-padding-top: 80px; }
.shell__top {
  position: sticky; top: 0; z-index: 30; flex: none; height: 64px;
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule); background: var(--ground);
}
.shell__search {
  display: flex; align-items: center; gap: 8px; width: 440px; max-width: 100%; height: 40px; padding: 0 12px;
  border-radius: 8px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--field-edge); color: var(--ink-3); cursor: text;
}
.shell__search:focus-within { box-shadow: inset 0 0 0 1px var(--twilight); }
.shell__search .ph { flex: none; font-size: 16px; }
.shell__search input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: 14px;
}
.shell__search input:focus, .shell__search input:focus-visible { outline: none; box-shadow: none; }
.shell__search input::placeholder { color: var(--ink-3); }
.shell__key {
  flex: none; min-width: 20px; padding: 0 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; line-height: 20px; text-align: center;
}
.shell__content { min-height: calc(100vh - 64px); padding: 24px var(--gutter) 32px; }
/* position: relative makes the row the containing block of the tab dots' .sr-only words, so the phone
 * row's overflow clips them instead of widening the page (final-fix harness check). */
.admin-subnav { position: relative; display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; border-bottom: 1px solid var(--rule); }
.admin-subnav[hidden] { display: none; }
.tab-dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--safelight); vertical-align: middle; }
.tab-dot--loud { background: var(--fault); }
.tab-dot[hidden] { display: none; }
@media (max-width: 767px) {
  .rail { display: none; }
  .shell__top, .shell__content { margin-left: 0; }
  /* Board 01 at 390: 12px above and below a 44px search (review M6). */
  .shell__top { height: auto; min-height: 64px; padding: 12px 16px; }
  .shell__search { width: 100%; height: 44px; }
  .shell__key { display: none; }
  .shell__content { padding: 20px 16px 32px; }
  /* One row that scrolls sideways, like the Financials pills, not two or three wrapped rows (R1-s2). */
  .admin-subnav { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; }
  /* Tabs keep their width, and the strip settles on a whole tab, never a half-cut one at the left. */
  .admin-subnav > * { flex: none; scroll-snap-align: start; }
}
@media print { .rail, .tabbar, .sheet, .sheet-scrim { display: none !important; } .shell__content, html[data-rail-state="shut"] .shell__content { margin-left: 0; } .shell__top { display: none; } }

/* The phone tab bar and More sheet (Darkroom piece 1, design 01 Shell). They take the rail's place below
   768px. The sheet's open state is its own hidden attribute; #attnMore inside it is filled on every poll. */
.tabbar, .sheet, .sheet-scrim { display: none; }
@media (max-width: 767px) {
  .tabbar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--tray);
    border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 72px; border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: 11px; position: relative;
  }
  .tabbar__item .ph { font-size: 22px; }
  .tabbar__item[aria-current="page"], .tabbar__item.active { color: var(--twilight); font-weight: 600; }
  /* Solid, as board 01 draws them at 390: the tone's ink fills the badge and the ground is the digit
     (the rail's pale wash is its own call for the 64px rail). Light: safelight 5.5:1, fault 5.8:1.
     Dark: 8.7:1 and 6.6:1. */
  .tabbar__item .rail__count {
    position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; min-width: 16px; height: 16px; padding: 0 4px;
    box-sizing: border-box; border-radius: 9999px; background: var(--safelight); color: var(--ground);
    font-size: 10px; font-weight: 700; line-height: 16px; font-variant-numeric: tabular-nums;
  }
  /* Notices is information (Dave, 18 Nov 2026): grey. ground on ink-3: dark 5.5:1, light 5.6:1. */
  .tabbar__item .rail__count--info { background: var(--ink-3); color: var(--ground); }
  body:has(> .tabbar) main { padding-bottom: 104px; }
  .sheet-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 50; background: var(--scrim); }
  .sheet:not([hidden]) {
    display: flex; flex-direction: column; gap: 4px; position: fixed; inset: auto 0 0 0; z-index: 51;
    max-height: 80vh; overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--tray); border-radius: 16px 16px 0 0; box-shadow: var(--lift-shadow);
  }
  .sheet__title { margin: 0 12px 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .sheet__list { display: flex; flex-direction: column; gap: 4px; }
  .sheet__item { min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border: 0; border-radius: 8px;
    background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
  .sheet__item .ph { font-size: 20px; color: var(--ink-3); }
  .sheet__item:hover { background: var(--hover-bg); }
  .sheet__item:active { transform: scale(.97); }
  /* The switch shows what it switches to: a sun in dark, a moon in light. */
  [data-theme="light"] .sheet__theme-dark, :root:not([data-theme="light"]) .sheet__theme-light { display: none; }
  /* The Needs you rows on a phone, the same box as the rail's. The heading is drawn, not read: the section's
     aria-label already names it. Phone targets are 44px. */
  .sheet__attn:not([hidden]) { display: flex; flex-direction: column; margin: 4px 0; padding: 8px 4px 4px; border-radius: 10px; background: var(--fault-wash); }
  .sheet__attn::before {
    content: "Needs you"; content: "Needs you" / ""; margin: 0 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--fault);
  }
  .sheet__attn .needs-row { min-height: 44px; font-size: 15px; }
  .tabbar__dot:not([hidden]) {
    position: absolute; top: 10px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--fault);
  }
  /* The rail foot's bell, presence and chat total, moved in here on a phone by admin.page.js. Their
     popovers open inside the sheet rather than floating, since the sheet already covers the screen. */
  .sheet__tools { display: flex; flex-direction: column; gap: 4px; }
  .sheet__tools:empty { display: none; }
  .sheet__tools .notif-wrap { display: block; margin: 0; }
  .sheet__tools .notif-bell, .sheet__tools .pw-btn {
    width: 100%; min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border: 0; border-radius: 8px;
    background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  }
  .sheet__tools .notif-bell svg { width: 20px; height: 20px; color: var(--ink-3); }
  .sheet__tools .notif-bell::after { content: "Notifications"; }
  .sheet__tools .notif-bell:hover, .sheet__tools .pw-btn:hover { background: var(--hover-bg); }
  .sheet__tools .notif-bell:active, .sheet__tools .pw-btn:active { transform: scale(.97); }
  .sheet__tools .notif-badge { position: static; order: 2; margin-left: auto; }
  .sheet__tools .pw-btn span:last-child { display: inline; }
  .sheet__tools .notif-panel, .sheet__tools .pw-pop {
    position: static; width: auto; min-width: 0; max-width: none; margin: 4px 0; box-shadow: none;
  }
  .sheet__tools .jc-total { margin: 0; padding: 0 12px; min-height: 44px; display: flex; align-items: center; }
  .sheet__tools .jc-total:empty { display: none; }
  /* Who is signed in, last in the sheet (board 01), with Sign out on the same row. */
  .sheet__rule { height: 1px; margin: 4px 0; background: var(--rule); }
  .sheet__me { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 12px; }
  .sheet__me-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
  .sheet__signout { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px;
    background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; }
  .sheet__signout:hover { background: var(--hover-bg); color: var(--ink); }
  .sheet__signout:active { transform: scale(.97); }
}
/* Reduced motion: transition:none above only made the press snap; the .97 scale still ran (R1-m1).
   Every press in this sheet is listed; admin.html resets its own .fin-search-clear. */
@media (prefers-reduced-motion: reduce) {
  .jobrow:active, .jobd__back:active, .btn:active, button:active, .rail__item:active, .tabbar__item:active, .sheet__item:active,
  .sheet__tools .notif-bell:active, .sheet__tools .pw-btn:active, .sheet__signout:active,
  .dl-row:active, .dl-frame:active, .dl__back:active, .dl-steps__back:active,
  .atab-panel[data-atab="uploads"] .up.upl-row:active, .upl-erow__main:active, .notif-pane__back:active,
  .fin-jl-row:active, .fin-pp-row:active, .fin-pp-months > .fin-pp-month:active { transform: none; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* A DISCLOSURE SUMMARY IS A CONTROL, so it owes the 24px minimum (WCAG 2.2 SC 2.5.8, AA). The four in
   this app drew 20 tall on staging, 12 Sep 2026: the three "Earlier versions (N)" rows on the
   Deliveries cards, which ask for 13px inline, and "Advanced: edit raw HTML" on the email templates.
   A minimum height grows the box and leaves the text at the size it asks for, the way the header nav
   links do. NO `display` HERE ON PURPOSE: a summary is display:list-item, and any other value removes
   the disclosure triangle in Chrome — losing the arrow to gain four pixels is the worse page. */
summary { min-height: 24px; }

/* THE ATTACHMENT CHIP from SkyAttachment.fileChip, the link a retoucher clicks to open a change
   request that is a PDF rather than a picture. Measured 222.66 x 20 against staging's own stylesheet
   on 12 Sep 2026, so it owes the height (SC 2.5.8, AA). A plain inline box ignores a height, hence
   the display; an anchor has no disclosure marker to lose, so it may take the one `summary` above
   must not. 2.5.8's inline exception does not apply: the chip is alone in its own div on its own
   line, so no surrounding prose constrains it.
   `.review-file a`, NOT `.review-file`: admin.page.js:3452 hangs the same class on the hidden
   <input type="file"> behind "Attach a file", and :3512 looks that input up by it. An input has no
   descendants, so this cannot reach it. */
.review-file a { display: inline-flex; align-items: center; min-height: 24px; }

/* ---------- Brand / header ---------- */
.brandbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-veil);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brandbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 28px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .15s;
  /* 24px tall at the least (WCAG 2.2 2.5.8). The label sat in an 18px box (audit 2026-09-02, F-LEAD-005). */
  display: inline-flex; align-items: center; min-height: 24px;
}
/* That display beats the bare hidden attribute, and the Upload | Deliver tab a person may not use is a hidden link. */
.nav a[hidden] { display: none !important; }
.nav a:hover, .nav a.active { color: var(--text); }
/* Wraps onto a second line rather than crushing itself.
 *
 * With no wrap and an 18px gap, a ~1070px window squeezed the buttons until their labels broke
 * mid-phrase: "Get the app" split after the arrow, "View as photographer" ran to two lines, and every
 * button ended up a different height. Six controls plus two labels is more than that row can hold at
 * a laptop width, so it now wraps, right-aligned, and each button keeps its own label intact. */
.brandbar__right {
  margin-left: auto; display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.who, .nc-tag { white-space: nowrap; }
/* One height for all of them. The eye and arrow glyphs are taller than the text, so left to
   themselves the buttons came out 30, 32 and 34px in the same row. `flex: 0 0 auto` stops a tight
   row shaving pixels off individual buttons, which was the other half of the raggedness. */
.brandbar__right .btn { height: 34px; flex: 0 0 auto; }
.who { font-size: 13px; color: var(--muted); }
.who b { color: var(--text); font-weight: 500; }
/* Mobile menu button — hidden on desktop, shown at the mobile breakpoint. */
.nav-toggle {
  display: none; width: 40px; height: 40px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--hover-line); background: var(--hover-bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: .02em;
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
  /* A button's label stays on one line. Letting it wrap is what turned the header row into a set of
   * mismatched two-line boxes when space got tight; the row wrapping is the right answer, not the
   * words inside each button breaking. */
  white-space: nowrap;
}
.btn:hover { border-color: var(--hover-line); background: var(--hover-bg); }
.btn--primary { background: var(--brand-fill); color: var(--brand-ink); border-color: var(--brand-fill); font-weight: 600; }
.btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 7px 12px; font-size: 12px; }
/* A disabled button LOOKS disabled (Chrome pass 5 Nov 2026, finding 3): "Upload all" with nothing queued
 * sat at full strength with a pointer cursor, and pressing it did nothing. Every disabled .btn on every
 * page is dimmed, says not-allowed, and does not play the press animation. */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn:disabled:active, .btn[aria-disabled="true"]:active { transform: none; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
/* The photographer pages (Upload, My work) are one column in main .wrap. Dave saw it sit right of centre
 * on a wide screen (18 Nov 2026), so its side margins are pinned here, once, for every such page: a page
 * rule may change the width or padding but never move the column sideways. */
main .wrap { margin-left: auto; margin-right: auto; }
/* Vertical only, and that is the whole point of not writing it as the `padding: 40px 0` shorthand
 * it used to be.
 *
 * Six pages carry `class="wrap section"`. Equal specificity, and this rule comes second, so the
 * shorthand's implied `0` for left and right beat `.wrap`'s 28px and the block ran 56px wider than
 * the header, the footer and everything above it. Dave, 9 Aug 2026, looking at the floorplan page:
 * "width is still not the same?" — and the section he was comparing against was the broken one.
 *
 * A `.section` that is NOT also a `.wrap` is unaffected: it had no side padding before and has none
 * now. */
.section { padding-top: 40px; padding-bottom: 40px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
h1.page { font-size: 30px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Skip link (audit F-W8s-007, WCAG 2.4.1). The first thing a keyboard user reaches on every page with
 * a brand bar. Off screen until it has focus, then on screen, so a sighted keyboard user sees where
 * Tab went. It lands on main, which carries tabindex="-1" so focus actually moves there. */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--bg-2); color: var(--text); font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Login (board 07, 39a: sign in, two factor, set password) ----------
 * Outside the shell: no rail, no top bar, one centred card on the ground. The logo and .login-card are
 * two children of .login-frame. At desk width the frame is the board's card (420 inside, padding 40,
 * radius 16) with the logo in it; at phone width the frame falls away, the logo sits on the ground and
 * .login-card takes the tray below it, as the board's 390 frames draw it. The forms are shown and
 * hidden by the page JS through style.display, so the spacing is margins, not a flex gap a
 * display:block would undo. */
.login-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 32px;
  background: var(--ground);
}
.login-frame {
  width: 100%; max-width: 500px; padding: 40px; border-radius: 16px; background: var(--tray);
  box-shadow: var(--lift-shadow);
}
.login-card { background: transparent; border: 0; padding: 0; }
.login-frame > .logo { display: flex; justify-content: flex-start; margin-bottom: 32px; }
.login-frame > .logo img { height: 32px; }
.foot .logo img { height: 30px; opacity: .8; }
/* The page's one heading. `margin: 0` and an explicit weight are what keep it from taking a browser
   h1's default top margin and bold: the sign-in and set-password titles were bare <div>s once, and
   the board makes this the card's title, so it is set here rather than left to the user agent. */
.login-card .tag { text-align: left; color: var(--ink); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; letter-spacing: .03em; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 9px;
  background: var(--bg-3); border: 1px solid var(--field-edge); color: var(--text);
  font-size: 14px; font-family: inherit;
}
/* The border tint is kept as decoration; the ring above is what makes focus visible. Removing
 * `outline: none` here is the point -- it covered the entire authentication surface. */
.field input:focus { border-color: var(--focus-line); }
/* The sign-in card's fields take the board's inset look. Scoped to .login-card: .field is shared
 * with the admin People forms, which keep theirs. */
.login-card .field label { font-weight: 500; color: var(--ink-2); margin-bottom: 6px; letter-spacing: 0; }
.login-card .field input {
  height: 44px; padding: 0 12px; border-radius: 6px;
  background: var(--inset); border: 0; box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink);
  font-size: 16px;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.login-card .field input::placeholder { color: var(--ink-3); }
/* Contrast (round 8, measured): the board's rule-strong ring is 1.26:1 (dark) and 1.65:1 (light)
 * against the tray, under the 3:1 a field's edge needs (WCAG 1.4.11). ink-3 is 5.0:1 on the tray
 * in both themes, and 5.3:1 (dark) / 4.7:1 (light) against the ground the fields sit on at phone
 * width. ink-3 placeholder text on the light inset is 4.37:1, under 4.5, so light takes
 * ink-2 there (7.2:1); dark keeps ink-3 (5.5:1). */
[data-theme="light"] .login-card .field input::placeholder { color: var(--ink-2); }
/* The inset ring turns twilight on focus; the :focus-visible outline further down is what makes
 * keyboard focus visible, and nothing here removes it. */
.login-card .field input:focus { box-shadow: inset 0 0 0 1px var(--twilight); }
/* A wrong password: board 07 draws both fields with a 1px fault edge. signin.page.js sets aria-invalid
 * with the error box and clears it with the box. Focus keeps the fault colour at 2px, so the field still
 * shows it has focus. */
.login-card .field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--fault); }
.login-card .field input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 2px var(--fault); }
.login-card .btn { width: 100%; height: 44px; justify-content: center; margin-top: 8px; padding: 0 14px; border-radius: 6px; font-size: 14px; letter-spacing: 0; }
.login-card .btn--primary { border: 0; }
.login-foot { text-align: left; margin-top: 24px; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.login-foot:empty { margin: 0; }   /* #msg is a live region: it stays rendered, so its first message is announced */
.login-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
/* The wrong-password and wrong-code lines. The page JS writes their text, so the icon is drawn by
 * ::before from the Phosphor font (ph-warning-circle) rather than a child element that textContent
 * would wipe. */
.login-error {
  margin: 0 0 16px; padding: 12px 14px 12px 38px; position: relative; border-radius: 8px;
  background: var(--fault-wash); color: var(--ink-2); font-size: 14px; line-height: 20px;
}
.login-error::before {
  /* The "/ ''" alt text keeps the glyph out of what the alert announces. The plain line before it
   * is for a browser that does not know the alt syntax and would otherwise drop the icon. */
  content: "\e4e2";
  content: "\e4e2" / ""; font-family: "Phosphor"; font-size: 16px; line-height: 20px; color: var(--fault);
  position: absolute; left: 14px; top: 12px;
}
.login-enroll { margin-bottom: 16px; }
.login-enroll .qr-wrap { margin: 0 0 12px; }
.step-note { font-size: 16px; line-height: 24px; color: var(--ink-2); margin: 0 0 16px; }
/* Board 07's six code boxes (gap 8, 56 high, radius 6, 22/600 digits, the next box ringed twilight).
 * The boxes are drawing; the one #code field lies over them with a transparent face. Its digits are
 * mono and tabular, so every digit is 1ch wide in whatever face is drawn (Geist Mono, or a fallback
 * while it loads), and they are spaced so each lands in the middle of a box: the box pitch is
 * (row width + gap) / 6, read from the row through container units. The field is wider than the row,
 * which clips it, so the spacing after the sixth digit never scrolls the first five out of their boxes.
 * signin.page.js sets data-at to the box the next digit lands in. */
.code-boxes {
  position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  container-type: inline-size; overflow: hidden;
}
.code-box {
  height: 56px; border-radius: 6px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--ink-3);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.code-boxes[data-at="0"]:focus-within .code-box:nth-child(1),
.code-boxes[data-at="1"]:focus-within .code-box:nth-child(2),
.code-boxes[data-at="2"]:focus-within .code-box:nth-child(3),
.code-boxes[data-at="3"]:focus-within .code-box:nth-child(4),
.code-boxes[data-at="4"]:focus-within .code-box:nth-child(5),
.code-boxes[data-at="5"]:focus-within .code-box:nth-child(6) { box-shadow: inset 0 0 0 2px var(--twilight); }
.login-card .code-boxes input {
  position: absolute; top: 0; left: 0; width: calc(100% + 64px); height: 56px;
  background: transparent; box-shadow: none; border-radius: 0; text-align: left;
  padding: 0 0 0 calc(((100cqw + 8px) / 6 - 8px - 1ch) / 2);
  letter-spacing: calc((100cqw + 8px) / 6 - 1ch);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600;
  caret-color: var(--twilight);
}
/* The ringed box is the focus mark here; a ring round the clipped field would only half show. */
.login-card .code-boxes input:focus { box-shadow: none; }
/* The placeholder "000000" at 600 weight read as typed digits in the light theme. Regular weight
 * marks it as a hint. */
.login-card .code-input input::placeholder { font-weight: 400; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; padding: 0;
  background: none; border: none; color: var(--ink-3); font: inherit; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--ink); }
/* The show or hide control sits inside the password box, on its right edge. */
.pw-wrap { position: relative; }
.login-card .pw-wrap input { padding-right: 48px; }
/* Edge draws its own eye and clear cross in a password box, beside ours. Separate rules: a browser drops a whole rule over a pseudo-element it does not know. */
.pw-wrap input::-ms-reveal { display: none; }
.pw-wrap input::-ms-clear { display: none; }
.pw-toggle {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 6px; color: var(--ink-2); font-size: 18px; cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); }
@media (max-width: 480px) {
  .login-shell { display: block; padding: 32px 24px; }
  .login-frame { max-width: none; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .login-frame > .logo { margin-bottom: 40px; }
  .login-frame > .logo img { height: 28px; }
  .login-card { padding: 24px 20px; border-radius: 16px; background: var(--tray); box-shadow: var(--lift-shadow); }
  .login-card .field input { height: 48px; }
  .login-card .btn { height: 48px; }
  .code-box, .login-card .code-boxes input { height: 52px; }
  .login-card .pw-toggle { width: 48px; height: 48px; }
}

/* Pages a stranger opens from a link: the cloud download list and the error pages. They take the
 * sign-in frame above; server/signed-out-page.js is the markup. The list wants more width than a form,
 * and a phone stacks each row so a long file name keeps the whole line. */
.out-page h1 {
  color: var(--ink); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em;
  margin: 0 0 16px; overflow-wrap: anywhere;
}
.out-page p { color: var(--ink-2); font-size: 14px; line-height: 22px; margin: 0 0 16px; }
.out-page p a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--twilight); text-decoration: underline; }
.out-page .notes { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.out-page .btn { height: auto; min-height: 44px; margin-top: 0; padding: 10px 14px; white-space: normal; text-align: center; }
.out-page .small { color: var(--ink-3); font-size: 13px; line-height: 20px; margin: 0; }
/* The download list is a page, not a card: a 500px card sat lost on Dave's 2000px screen. One flat
 * ground, no band of colour: Dave turned the two-tone sky down. Logo, heading and files share one
 * column, and the size of the address does the work. */
.out-page--list.login-shell { display: block; padding: 0; }
.out-page--list .login-frame { position: relative; max-width: none; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.out-page--list .login-frame > .logo { position: absolute; top: 40px; left: var(--out-gutter); margin: 0; }
.out-page--list .login-frame > .logo img { height: 56px; }
.out-page--list .login-card { padding: 0 0 64px; border-radius: 0; background: transparent; box-shadow: none; }
.out-head { padding: clamp(148px, 22vh, 220px) var(--out-gutter) 0; }
.out-page--list h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 0; }
.out-lead { display: block; margin-bottom: 12px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.3; font-weight: 500; letter-spacing: 0; }
.out-files { padding: 36px var(--out-gutter) 0; }
.out-page--list .login-card .btn {
  display: inline-flex; align-items: center; gap: 10px; width: auto; min-height: 56px; padding: 14px 28px;
  border-radius: 8px; font-size: 16px; font-weight: 600;
}
.out-page--list .login-card .btn .ph { font-size: 20px; flex: none; }
/* A video link's player: the screen's width, the video's own shape (16:9 until it has read the file). */
.out-page .player { margin: 0 0 24px; }
.out-page .player video { display: block; width: 100%; height: auto; aspect-ratio: auto 16 / 9; border-radius: 8px; background: #000; } /* theme-exempt */
.out-page .player figcaption { margin-top: 8px; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.out-page .player figcaption .dir { color: var(--ink-3); }
/* share-player.js puts this under a video that stopped loading after three fresh links (Dave, 16 Nov 2026). */
.out-page .player .player-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.out-page .files { list-style: none; margin: 32px 0 16px; padding: 0; border-top: 1px solid var(--line); }
.out-page .files li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 0 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.out-page .files li > .ph { color: var(--ink-3); font-size: 22px; }
.out-page .files .name { color: var(--ink); line-height: 22px; overflow-wrap: anywhere; }
.out-page .files .dir { color: var(--ink-3); }
.out-page .files .size { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.out-page .files a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--ink); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background var(--dur-fast) var(--ease);
}
.out-page .files a:hover { background: var(--twilight-wash); }
.out-page .files a .ph { font-size: 16px; color: var(--info); }
@media (max-width: 480px) {
  .out-page h1 { font-size: 24px; line-height: 30px; }
  .out-page .btn { min-height: 48px; }
  .out-page--list h1 { font-size: 32px; line-height: 36px; }
  .out-page--list .login-frame > .logo { top: 24px; }
  .out-page--list .login-frame > .logo img { height: 44px; }
  .out-head { padding-top: 112px; }
  .out-page--list .login-card { padding: 0 0 40px; }
  .out-page--list .login-card .btn { display: flex; justify-content: center; width: 100%; }
  .out-page .files li { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px 12px; }
  .out-page .files .name { grid-column: 2 / -1; }
  .out-page .files .size { grid-column: 2; }
}

/* ---------- Listings grid ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .12s;
}
.card:hover { border-color: var(--hover-line); transform: translateY(-2px); }
.card__img { aspect-ratio: 3 / 2; background: var(--bg-3); object-fit: cover; width: 100%; }
.card__body { padding: 14px 16px 16px; }
.card__addr { font-size: 15px; font-weight: 500; }
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pill { font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill--live { color: var(--pill-ok-fg); border-color: var(--pill-ok-line); background: var(--pill-ok-bg); }
.pill--new  { color: var(--pill-info-fg); border-color: var(--pill-info-line); background: var(--pill-info-bg); }

/* ---------- Gallery ---------- */
.gallery-head { border-bottom: 1px solid var(--line); }
.gallery-head .wrap { padding-top: 28px; padding-bottom: 24px; }
.breadcrumb { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--muted); }
.actionbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.actionbar .spacer { flex: 1; }
.dl-group { position: relative; }
.dl-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; display: none; z-index: 30; box-shadow: 0 20px 50px -20px var(--shadow-lg);
}
.dl-group.open .dl-menu { display: block; }
.dl-menu button {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  background: none; border: none; color: var(--text); font: inherit; font-size: 13px;
  padding: 9px 11px; border-radius: 7px; cursor: pointer; text-align: left;
}
.dl-menu button:hover { background: var(--bg-3); }
.dl-menu button span { color: var(--muted-2); font-size: 11px; }

.masonry { columns: 4 240px; column-gap: 14px; padding: 28px 0; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; position: relative; cursor: pointer; border-radius: 8px; overflow: hidden; background: var(--bg-3); }
.masonry img { width: 100%; transition: transform .4s ease; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figure::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--scrim));
  opacity: 0; transition: opacity .2s;
}
.masonry figure:hover::after { opacity: 1; }

.subhead { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin: 8px 0 18px; }

/* video block */
.video-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; } /* letterbox: black under either theme — theme-exempt */
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-side { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.video-side h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.video-side p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.video-side .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: var(--lightbox-bg); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 30px 90px -20px var(--shadow-photo); }
.lightbox__close { position: absolute; top: 22px; right: 26px; font-size: 26px; color: var(--muted); cursor: pointer; background: none; border: none; }
.lightbox__close:hover { color: var(--text); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot .wrap { padding: 26px 28px; display: flex; gap: 18px; align-items: center; color: var(--muted-2); font-size: 12px; }
.foot .spacer { flex: 1; }

/* ---------- Status pills (shoot lifecycle) ---------- */
.pill--upload  { color: var(--pill-warn-fg); border-color: var(--pill-warn-line); background: var(--pill-warn-bg); } /* awaiting upload */
.pill--editing { color: var(--pill-busy-fg); border-color: var(--pill-busy-line); background: var(--pill-busy-bg); }
.pill--ready   { color: var(--pill-info-fg); border-color: var(--pill-info-line); background: var(--pill-info-bg); }

/* ---------- Nextcloud-backed badge ---------- */
.nc-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted-2); letter-spacing: .03em; }
.nc-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--pill-ok-fg); box-shadow: 0 0 0 3px var(--pill-ok-ring); }

/* ---------- Shoot folders (navigable list) ---------- */
.folders { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.folder {
  display: grid; grid-template-columns: 34px 1fr 130px 120px 80px; gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s;
}
.folder:last-child { border-bottom: none; }
.folder:hover { background: var(--bg-2); }
.folder .ico { font-size: 18px; color: var(--brand); }
.folder .nm { font-weight: 500; }
.folder .meta { color: var(--muted); font-size: 13px; }
.folder .chev { color: var(--muted-2); text-align: right; }

/* ---------- Upload portal: action bar bits ---------- */
.counter { font-size: 12.5px; color: var(--muted); }
.submit-pill { font-size: 12px; font-weight: 600; background: var(--ink-wash); padding: 2px 8px; border-radius: 999px; margin-left: 2px; }
.sent-pill { display: none; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ok); background: var(--pill-ok-bg); border: 1px solid var(--pill-ok-line); padding: 7px 13px; border-radius: 999px; }

/* ---------- Upload portal: job cards ---------- */
.job { border: 1px solid var(--line); border-radius: 13px; background: var(--bg-3); overflow: hidden; margin-bottom: 12px; }
.job-head { display: flex; align-items: center; gap: 13px; padding: 14px 16px; cursor: pointer; transition: background .12s; }
.job-head:hover { background: var(--bg-2); }
.chev { font-size: 11px; color: var(--faint); width: 14px; text-align: center; }
.job-num { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--info); background: var(--brand-wash); padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.job-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-title.empty { color: var(--text); }
.job-files { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.job-minibar { width: 96px; height: 5px; border-radius: 999px; background: var(--track); overflow: hidden; flex-shrink: 0; }
.job-minibar > i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .2s ease; }
.job-badge { font-size: 11px; color: var(--muted); width: 38px; text-align: right; flex-shrink: 0; }
.icon-btn { width: 26px; height: 26px; border: none; background: transparent; color: var(--faint); cursor: pointer; font-size: 14px; border-radius: 6px; flex-shrink: 0; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--danger-bg); color: var(--danger-fg); }

.job-body { padding: 6px 16px 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); }
.job-body.collapsed { display: none; }
 /* A class rule with display beats the bare [hidden] attribute, so any .fgroup marked hidden
    stayed on screen. Exactly how the version banner was permanently visible on all three delivery
    pages until 2026-08-06, and how the property address box on the delivery pages ignored its own
    hidden attribute on 2026-08-08. Putting the attribute back in charge, once, for every .fgroup. */
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.fgroup[hidden] { display: none !important; }
.fgroup.first { margin-top: 14px; }
.flabel { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.input, .textarea { border: 1px solid var(--field-edge); border-radius: 9px; color: var(--text); background: var(--bg-2); outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.input { height: 44px; padding: 0 13px; font-size: 14.5px; }
.textarea { min-height: 60px; resize: none; padding: 10px 13px; font-size: 14px; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }

/* KEYBOARD FOCUS MUST BE VISIBLE, EVERYWHERE.
 *
 * Audit 2026-09-02 F-W8s-005. Two holes, both invisible to anyone using a mouse:
 *   .field input:focus removed the outline and replaced it with a translucent border tint that
 *     measured 3.04:1 in dark and 2.62:1 in light -- and that rule covers the whole sign-in surface.
 *   .input/.textarea set outline:none and restored only box-shadow 0 0 0 3px var(--brand-ring),
 *     which is rgba(41,171,226,.22) -- about 1.4:1, far below the 3:1 SC 1.4.11 asks of a focus
 *     indicator.
 *
 * One rule, on :focus-visible so a mouse click never paints a ring. Darkroom piece 1 paints it in
 * the --twilight accent, which clears 3:1 against the ground in both themes.
 * :where() keeps specificity at zero, so any component that wants a different indicator can still
 * override it without !important. */
:where(a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--twilight);
  outline-offset: 2px;
}

.dz-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.dz { position: relative; display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1.5px dashed var(--line2); border-radius: 11px; cursor: pointer; transition: border-color .15s, background .15s; }
.dz input { display: none; }
.dz--edit { background: var(--bg-2); }
.dz--edit:hover, .dz--edit.drag { border-color: var(--brand); background: var(--brand-wash-soft); }
.dz--extra { background: var(--bg); }
.dz--extra:hover, .dz--extra.drag { border-color: var(--muted); background: var(--bg-2); }
.dz-ico { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex-shrink: 0; }
.dz-ico--edit { background: var(--brand-wash-2); color: var(--info); }
.dz-ico--extra { background: var(--bg-3); color: var(--muted); font-size: 22px; font-weight: 500; }
.dz--fp { background: var(--bg-2); }
.dz--fp:hover, .dz--fp.drag { border-color: var(--fp); background: var(--fp-wash); }
.dz-ico--fp { background: var(--fp-wash-2); color: var(--fp-ink); }
.dz-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dz-title { font-weight: 600; font-size: 14.5px; }
.dz-sub { font-size: 12px; color: var(--muted); }

.filelist { display: none; flex-direction: column; gap: 7px; max-height: 320px; overflow: auto; padding-right: 2px; }
.filelist.has { display: flex; }
.filerow { display: flex; align-items: flex-start; gap: 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; display: block; flex-shrink: 0; }
.thumb-ph { width: 40px; height: 40px; border-radius: 9px; background: var(--bg-3); color: var(--faint); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.fr-main { flex: 1; min-width: 0; }
.fr-top { display: flex; align-items: center; gap: 9px; }
.fr-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-tag { font-size: 8.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line2); padding: 2px 6px; border-radius: 999px; flex-shrink: 0; }
.fr-tag--renamed { color: var(--pill-warn-fg); border-color: var(--pill-warn-line); background: var(--pill-warn-bg); }
.fr-status { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; flex-shrink: 0; }
.fr-bar { margin-top: 8px; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.fr-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s ease; }
.fr-meta { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fr-metalabel { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-pct { font-size: 11px; font-weight: 600; flex-shrink: 0; }

/* per-job submit row + sent state */
/* The [hidden] guard FIRST, and it needs !important: a bare hidden attribute is one
   attribute-selector of specificity, so the display:flex below beats it and the element stays on
   screen with the attribute set. That has now shipped three times (version banner, property address
   box, this). */
.job-actions[hidden] { display: none !important; }
.job-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 2px; }
.job-actions .hint { flex: 1; font-size: 12px; color: var(--muted); }
.job-sent { display: none; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ok); background: var(--pill-ok-bg); border: 1px solid var(--pill-ok-line); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.job.sent .job-sent { display: inline-flex; }
.job.sent .job-minibar, .job.sent .job-badge { display: none; }
/* A file that did not upload (8 Betula Terrace, 18 Sep 2026). Sits between the header and the body,
   so a collapsed card still shows it. */
.job.has-failed { border-color: var(--danger-fg); }
.job.has-failed .job-badge { width: auto; font-weight: 600; white-space: nowrap; }
.job-failed { margin: 0 16px 12px; padding: 9px 12px; border-radius: 8px; background: var(--danger-bg);
  color: var(--danger-fg); font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.job-failed[hidden] { display: none; }

/* A wave the server refused to order (115 Tom Jones Road, 16 Sep 2026). Sits beside the failed
   strip and reads the same way, in the warning colour rather than the danger one: nothing is
   broken and no file is lost, but nobody has been told and a person has to answer it. */
.job-wave-ignored { margin: 0 16px 12px; padding: 9px 12px; border-radius: 8px;
  background: var(--pill-warn-bg); color: var(--pill-warn-fg); border: 1px solid var(--pill-warn-line);
  font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.job-wave-ignored.done { background: var(--pill-ok-bg); color: var(--pill-ok-fg); border-color: var(--pill-ok-line); }
.job-wave-ignored[hidden] { display: none; }

.footer-add { width: 100%; height: 50px; border: 1.5px dashed var(--line2); border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; transition: border-color .15s, color .15s, background .15s; }
.footer-add:hover { border-color: var(--brand); color: var(--info); background: var(--brand-wash-faint); }
.footer-add .plus { font-size: 18px; line-height: 1; }

@media (max-width: 820px) {
  /* Collapse the top nav into a hamburger instead of hiding it entirely. */
  .brandbar__inner { padding: 14px 18px; flex-wrap: wrap; gap: 14px; }
  .nav-toggle { display: inline-flex; }
  .who { display: none; }                 /* free up space on the top row */
  .nav {
    order: 10; width: 100%; display: none; /* shown when the bar is open */
    flex-direction: column; gap: 0; margin-left: 0;
    border-top: 1px solid var(--line); padding-top: 6px;
  }
  .brandbar.open .nav { display: flex; }
  .nav a { padding: 11px 2px; font-size: 13px; min-height: 44px; }
  /* Scoped to the brand bar's image-only logo link (upload and the three deliver pages), so a logo link
   * that holds words elsewhere keeps its own height and alignment (fix round 3, review Minor 3). */
  .brandbar__inner > a.logo { min-height: 44px; min-width: 44px; justify-content: center; }
  .jobd__link, .open-job, .deljob-open { display: inline-flex; align-items: center; min-height: 44px; }
  /* The action buttons collapse with the nav rather than overflowing the row.
   *
   * They were a non-wrapping flex row holding "Connected to Nextcloud", "View as photographer",
   * "Get the app", "Pair app" and "Sign out". On a phone that is wider than the screen, so the
   * WHOLE PAGE gained a horizontal scroll and the upload page rendered with its own heading clipped
   * off the left edge. Hiding .who was not enough; the buttons are the bulk of it.
   *
   * Behind the hamburger they get a full-width row and wrap freely, which is what the hamburger was
   * already doing for .nav. */
  .brandbar__right {
    order: 11; width: 100%; display: none;
    flex-wrap: wrap; gap: 10px; margin-left: 0;
    border-top: 1px solid var(--line); padding-top: 10px;
  }
  .brandbar.open .brandbar__right { display: flex; }
  /* The theme toggle stays on the top row. Needing a menu to find the light switch is the bug that
     was just reported, and it sits outside this group precisely so collapsing cannot take it. */
  .brandbar__inner > .theme-toggle { margin-left: auto; }
  .video-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .folder { grid-template-columns: 34px 1fr 70px; }
  .folder .meta:nth-of-type(2) { display: none; }
  .dz-grid { grid-template-columns: 1fr; }
}
/* Between the phone breakpoint and the max content width (e.g. a 1080px portrait monitor) the
   layout ran edge-to-edge with only 28px of side padding — give it real margins. */
@media (min-width: 821px) and (max-width: 1300px) {
  .wrap, .brandbar__inner, .foot .wrap { padding-left: clamp(32px, 5vw, 72px); padding-right: clamp(32px, 5vw, 72px); }
}
/* Wrap wide admin tables so they scroll sideways within their own box instead of pushing the
   whole page wider than the phone screen. */
.tscroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* position: relative makes the box the containing block of the .adm-sr words in its rows; without it
 * they escaped the overflow and widened the page at 390 (final review M6, M7). The Financials tab row
 * scrolls on a phone the same way (admin.html phone block). */
.tscroll, .atab-panel.fintabs {
  position: relative;
  /* Scroll cue (final review M6, M7, m8, m9). The two cover layers move with the content and hide the
   * two shade layers, which stay at the edges, whenever that end is reached, so a shade shows only
   * where there is more to scroll, and none at all on a box that fits. The cover is the colour the
   * box sits on: the ground by default, or whatever a host surface below sets. */
  background:
    linear-gradient(to right, var(--scroll-cover, var(--ground)) 40%, transparent) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--scroll-cover, var(--ground)) 40%, transparent) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--ink) 28%, transparent), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--ink) 28%, transparent), transparent) right center / 14px 100% no-repeat scroll;
}
/* The cover comes from the surface the scroller sits on, so no ground band shows at the ends of a
 * box on a tray. Each tray surface that may hold a scroller says so here and its children inherit it:
 * the admin .panel (the breadcrumb log, the floorplan login and client tables, the security and
 * devices tables, the Financials setup tables) and the Financials .fin-panel. The Financials tab
 * row sits on the page itself, so it keeps the ground (final re-review m5). */
.panel, .fin-panel { --scroll-cover: var(--tray); }

/* ---- Admin > Financials > Jobs ----
   The row used to be 14 columns and three lines tall, which broke out of the centred 1240px .wrap.
   It is now a compact row plus an expandable detail panel, and the 44-option <select multiple> is a
   searchable picker. Rendered by financials.page.js; the .tscroll above contains the table. */
.fin-mergebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 8px 12px; background: var(--twilight-wash); border: 1px solid var(--rule-soft); border-radius: 8px; }
#finMergeCount { font-family: inherit; font-weight: 600; font-size: 13px; color: var(--ink); }

/* 24x24 at the least, the WCAG 2.2 2.5.8 minimum. The expander drew a 21x13 box on the control that
   opens every job (audit 2026-09-02, F-LEAD-005). The box grows and the glyph stays 13px. */
.fin-toggle { appearance: none; background: none; border: 0; padding: 0 5px; cursor: pointer;
  color: var(--ink-3); font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; vertical-align: middle; }
.fin-toggle:hover { color: var(--ink); }
.fin-detail-body { display: flex; flex-wrap: wrap; gap: 32px; padding: 12px 8px 16px 30px; }
.fin-breakdown { display: grid; grid-template-columns: auto auto; gap: 4px 20px; align-items: baseline; }
.fin-kv { display: contents; }
.fin-kv-k { color: var(--ink-3); font-size: 12px; }
.fin-kv-v { font-size: 13px; text-align: right; white-space: nowrap; color: var(--ink-2); }
.fin-kv--total .fin-kv-k, .fin-kv--total .fin-kv-v { color: var(--ink); font-weight: 600; }
.fin-inputs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.fin-in { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); }
.fin-in .input { width: 130px; }

.fin-picker { position: relative; }
.fin-pkg-btn { appearance: none; display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: left; cursor: pointer;
  background: var(--inset); border: 1px solid var(--field-edge); border-radius: 6px;
  color: var(--ink); font-family: inherit; font-weight: 500; font-size: 12px; padding: 7px 10px; }
.fin-pkg-btn:hover { border-color: var(--ink-3); }
.fin-pkg-btn:focus-visible { outline: 2px solid var(--twilight); outline-offset: 2px; }
.fin-pkg-panel { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: 340px; max-width: 78vw;
  background: var(--lift); border: 1px solid var(--rule); border-radius: 10px; padding: 8px;
  box-shadow: var(--lift-shadow); }
.fin-pkg-search { width: 100%; height: 32px; margin-bottom: 6px; }
.fin-pkg-list { max-height: 250px; overflow-y: auto; }
.fin-pkg-opt { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 6px;
  font-size: 12px; color: var(--ink); cursor: pointer; }
.fin-pkg-opt:hover { background: var(--inset); }
.fin-pkg-opt input { margin-top: 2px; flex: none; }

/* Address autocomplete (Google Places, proxied via /api/address-suggest) */
.ac-wrap { position: relative; display: inline-block; }
.ac-wrap--block { display: block; }
.ac-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: 360px; max-height: 240px; overflow-y: auto;
           background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; z-index: 60; box-shadow: 0 8px 24px var(--shadow-md); }
.ac-item { padding: 10px 13px; font-size: 13.5px; line-height: 1.3; cursor: pointer; color: var(--text); border-bottom: 1px solid var(--line); white-space: nowrap; }
 /* A booking row is two lines: the property, then its package. There was no rule for .ac-sub at
    all, so the spans ran straight into the address — "…woodendThu, Jul 30" — on a nowrap line. */
.ac-item--booking { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.ac-item--booking > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-item:last-of-type { border-bottom: none; }
.ac-item:hover, .ac-item.sel { background: var(--bg-3); }
.ac-foot { padding: 5px 13px; font-size: 10px; letter-spacing: .04em; color: var(--muted-2); text-align: right; }

/* Resume prompt — offered on load when a previous upload was left unfinished */
.resume-prompt { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--pill-warn-line); background: var(--pill-warn-bg); border-radius: 12px; }
.resume-prompt__head { font-weight: 600; color: var(--pill-warn-fg); font-size: 14px; margin-bottom: 10px; }
.resume-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--pill-warn-divider); }
.resume-row:first-of-type { border-top: none; }
.resume-row__label { flex: 1; min-width: 180px; font-size: 13px; color: var(--text); }
.resume-dismiss { margin-top: 12px; }
.resume-cancel { color: var(--cancel-fg); border-color: var(--cancel-line); }
.resume-cancel:hover { color: var(--cancel-fg-hover); border-color: var(--cancel-line-hover); background: var(--cancel-bg-hover); }

/* Notification bell */
.notif-wrap { position:relative; display:inline-block; margin-right:6px; }
.notif-bell { position:relative; display:inline-flex; align-items:center; background:none; border:none; cursor:pointer; line-height:1; padding:6px; border-radius:8px; color:var(--muted); transition:color .15s, background .15s; }
.notif-bell:hover { background:var(--bg-3); color:var(--text); }
.notif-bell.notif-ask { color:var(--brand); animation:notifpulse 2s ease-in-out infinite; }
@keyframes notifpulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }
/* Audit 2026-09-02 F-W8s-011: the bell and the upload legend pulsed forever, ignoring reduced motion.
   !important because upload.html's own <style> sets the legend animation after this sheet. */
@media (prefers-reduced-motion: reduce) {
  .notif-bell.notif-ask, .op-leg.uploading .op-leg-dot { animation: none !important; }
}
/* Audit 2026-09-02 F-W8s-012: printing a page printed the brand bar, nav and bell. */
@media print {
  .brandbar, .nav, .nav-toggle, .theme-toggle, .notif-wrap { display: none !important; }
}
/* Audit 2026-09-02 F-CTL-023: .fin-mergebar's display:flex beat the hidden attribute. */
.fin-mergebar[hidden] { display: none !important; }
/* Audit 2026-09-02 F-CTL-026: the bell is the admin's, not the photographer being viewed. */
body.preview-photographer .notif-wrap { display: none !important; }
.notif-badge { position:absolute; top:-2px; right:-2px; background:var(--badge-bg); color:var(--fault-ink); font-size:10px; font-weight:700; min-width:16px; height:16px; padding:0 4px; border-radius:999px; display:flex; align-items:center; justify-content:center; }
.notif-badge[hidden] { display:none; }   /* the class's display:flex would otherwise override the hidden attribute */
.notif-panel { position:absolute; right:0; top:38px; width:340px; max-width:86vw; background:var(--bg-2); border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 40px var(--shadow-md); z-index:60; overflow:hidden; }
.notif-panel-head { font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-2); padding:12px 14px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.notif-readall { background:none; border:none; color:var(--brand); font-size:11px; letter-spacing:0; text-transform:none; cursor:pointer; padding:0; }
.notif-readall:hover { text-decoration:underline; }
.notif-readall:disabled { color:var(--muted-2); cursor:default; text-decoration:none; }
.notif-list { max-height:360px; overflow:auto; }
.notif-row { display:flex; gap:10px; padding:11px 14px; border-bottom:1px solid var(--line); }
.notif-row.notif-critical { background:var(--critical-bg); }
.notif-ic { flex:none; }
.notif-body { display:flex; flex-direction:column; gap:2px; font-size:13px; }
.notif-msg { color:var(--muted); font-size:12px; }
.notif-when { color:var(--muted-2); font-size:11px; }
.notif-repeat { color:var(--muted); font-size:11px; font-weight:600; }
.notif-empty { padding:18px; text-align:center; color:var(--muted-2); font-size:13px; }
/* On phones the bell isn't at the screen edge, so anchoring the panel to it runs off-screen.
   Pin the panel to the viewport instead. (Placed AFTER the base .notif-panel so it wins.) */
@media (max-width: 820px) {
  .notif-panel { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
}
/* NOTIFICATION LEVELS. Colour is severity: `critical` is the 3am phone call, `attn` is worth a
   look today, `info` is for the record. Every colour is a theme token, because the app has a light
   and a dark mode and a hex is unreadable in one of them. */
.pill--danger { color: var(--pill-danger-fg); border-color: var(--pill-danger-line); background: var(--critical-bg); }
.pill--warn   { color: var(--pill-warn-fg);   border-color: var(--pill-warn-line);   background: var(--pill-warn-bg); }
.pill--info   { color: var(--pill-info-fg);   border-color: var(--pill-info-line);   background: var(--pill-info-bg); }

.notif-row { flex-wrap: wrap; }                       /* so an opened detail gets its own line */
.notif-row.notif-attn { background: var(--pill-warn-bg); }
.notif-row[role="button"] { cursor: pointer; }
.notif-row[role="button"]:hover { background: var(--bg-3); }
.notif-row.notif-critical[role="button"]:hover { background: var(--critical-bg); filter: brightness(1.08); }
.notif-row .notif-body { flex: 1 1 auto; min-width: 0; }
.notif-title { word-break: break-word; }
.notif-lvl { align-self: flex-start; text-transform: uppercase; }
.notif-kind { color: var(--muted-2); font-size: 11px; font-family: var(--mono, monospace); }
.notif-detail { flex-basis: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 9px;
  background: var(--bg-3); border: 1px solid var(--line); font-size: 12px; }
.notif-full { color: var(--text); margin-bottom: 8px; }
.notif-kv { display: flex; gap: 10px; padding: 2px 0; }
.notif-k { color: var(--muted-2); flex: none; min-width: 108px; }
.notif-v { color: var(--muted); word-break: break-word; }
.notif-more { color: var(--muted-2); }
.notif-link { display: inline-block; margin-top: 8px; color: var(--brand); text-decoration: none; }
.notif-link:hover { text-decoration: underline; }

.notif-all { display:block; text-align:center; padding:10px; font-size:12px; color:var(--brand); border-top:1px solid var(--line); text-decoration:none; }
.notif-all:hover { background:var(--bg-3); }

/* ---- Notices, the full list (board 07). The bell keeps its compact rows: every rule here is
   scoped to .notif-list--full, the list on the admin Notices tab and on notifications.html, or to
   the detail pane beside it. ---- */
.notif-list.notif-list--full { max-height:none; overflow:visible; }
.notif-group + .notif-group { margin-top:16px; }
.notif-group__head { display:flex; justify-content:space-between; align-items:baseline; margin:0 0 4px; padding:0 12px; font-size:11px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; }
.notif-group--critical .notif-group__label { color:var(--fault); }
.notif-group--attn .notif-group__label { color:var(--safelight); }
.notif-group--info .notif-group__label { color:var(--ink-3); }
.notif-group__count { color:var(--ink-3); letter-spacing:0; }
/* A row: a dot in the level's colour, the title, then the quiet lines under it. */
.notif-list--full .notif-row { align-items:flex-start; gap:12px; min-height:44px; padding:12px; border-bottom:0; border-radius:8px; }
.notif-list--full .notif-row.notif-critical, .notif-list--full .notif-row.notif-attn { background:transparent; }
.notif-list--full .notif-row[role="button"]:hover, .notif-list--full .notif-row.notif-critical[role="button"]:hover { background:var(--tray); filter:none; }
.notif-list--full .notif-row.is-open, .notif-list--full .notif-row.is-open:hover { background:var(--lift); box-shadow:var(--lift-shadow); }
.notif-list--full .notif-row:focus-visible { outline:2px solid var(--twilight); outline-offset:-2px; }
.notif-dot { flex:none; width:8px; height:8px; margin-top:6px; border-radius:50%; background:var(--ink-3); }
.notif-critical > .notif-dot { background:var(--fault); }
.notif-attn > .notif-dot { background:var(--safelight); }
.notif-list--full .notif-body { gap:2px; }
/* Final review I1: a zero basis keeps a long title wrapping inside the body, beside its dot. The row still
   wraps, so an opened detail (flex-basis 100%) takes a line of its own. */
.notif-list--full .notif-row > .notif-body { flex-basis:0; }
/* The title with its time on the right, then the one quiet line under it. */
.notif-line { display:flex; align-items:baseline; gap:12px; min-width:0; }
.notif-list--full .notif-title { flex:1; min-width:0; font-size:14px; line-height:20px; font-weight:600; color:var(--ink); }
.notif-list--full .notif-msg { color:var(--ink-3); font-size:12px; line-height:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-list--full .notif-repeat { color:var(--ink-2); font-size:12px; font-weight:500; }
.notif-list--full .notif-when { flex:none; color:var(--ink-3); font-size:12px; font-family:var(--font-mono); font-variant-numeric:tabular-nums; }

/* ---- The Notices page (board 07, frame 38b): the admin Notices tab and notifications.html ----
   The title and its lede on a rule, then a 400px list beside a detail that fills the rest, each
   scrolling on its own. Inside the shell the page bleeds past the content padding, as Jobs does.
   A phone shows the list or the detail, never both: data-view on .notices says which. */
.shell__content .notices:not([hidden]) { display:flex; flex-direction:column; margin:-24px -32px -32px; height:calc(100vh - 64px); min-height:0; }
.notices__head { padding:24px 32px 16px; border-bottom:1px solid var(--rule); }
.notices__head h1.page { margin:0; font-size:28px; line-height:34px; letter-spacing:-.02em; }
.notices__lede { margin:4px 0 0; color:var(--ink-2); font-size:14px; line-height:20px; }
.notices__sum { display:none; margin:4px 0 0; color:var(--ink-3); font-size:14px; line-height:20px; }
.notices__sum:empty { display:none; }
.notices__bench { display:flex; flex:1; min-height:0; }
.notices__list { width:400px; flex:none; box-sizing:border-box; padding:16px 12px 0; border-right:1px solid var(--rule); overflow-y:auto; }
.notices__list .notif-filters { margin:0 0 16px; }
.notices__list .notif-group + .notif-group { margin-top:24px; }
.notices__list .notif-older { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0; padding:16px 12px 24px; color:var(--ink-3); font-size:12px; }
.notices__list .notif-older .btn--ghost { color:var(--ink-2); }
.notices__detail { flex:1; min-width:0; box-sizing:border-box; padding:40px 48px; overflow-y:auto; }
.notices__detail > * { max-width:720px; }
/* A scroll region the keyboard can reach (tabindex="0" while it holds an event), with a ring that shows it has focus. */
.notif-pane:focus-visible { outline:2px solid var(--twilight); outline-offset:-2px; border-radius:8px; }
.notif-pane__empty { margin:0; color:var(--ink-3); font-size:14px; }
.notif-pane__back {
  display:inline-flex; align-items:center; gap:4px; min-height:44px; margin:0 0 8px -8px; padding:0 8px;
  border:0; background:transparent; color:var(--twilight); font:inherit; font-weight:600; cursor:pointer;
  transition:transform var(--dur-fast) var(--ease);
}
.notif-pane__back:active { transform:scale(0.97); }
.notif-pane__head { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.notif-pane__ic { display:inline-flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px; border-radius:8px; background:var(--tray); box-shadow:var(--lift-shadow); color:var(--ink-3); font-size:20px; }
.notif-pane__meta { display:flex; flex-direction:column; gap:2px; min-width:0; }
.notif-pane__lvl { font-size:12px; line-height:16px; font-weight:600; color:var(--ink-3); }
.notif-pane__head.notif-critical .notif-pane__ic, .notif-pane__head.notif-critical .notif-pane__lvl, .notif-pane__repeat.notif-critical { color:var(--fault); }
.notif-pane__head.notif-attn .notif-pane__ic, .notif-pane__head.notif-attn .notif-pane__lvl, .notif-pane__repeat.notif-attn { color:var(--safelight); }
.notif-pane__when { color:var(--ink-3); font-size:12px; line-height:16px; }
.notif-pane__title { margin:0 0 20px; font-size:28px; line-height:34px; letter-spacing:-.02em; font-weight:600; color:var(--ink); overflow-wrap:anywhere; }
.notif-pane__msg { max-width:640px; margin:0 0 20px; font-size:16px; line-height:24px; color:var(--ink-2); overflow-wrap:anywhere; }
.notif-pane__repeat { display:flex; align-items:center; gap:6px; margin:0 0 20px; font-size:14px; font-weight:500; color:var(--ink-2); }
.notif-pane__acts { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.notif-pane__acts .btn { display:inline-flex; align-items:center; gap:6px; min-height:36px; margin:0; text-decoration:none; }
/* The older .notif-link rule paints the link brand blue; in the pane it is a button and wears its own ink. */
.notif-pane__acts .btn.notif-link { color:var(--ink); }
.notif-pane__acts .btn--primary.notif-link { color:var(--brand-ink); }
.notif-pane__sub { margin:0 0 12px; padding-top:20px; border-top:1px solid var(--rule-soft); font-size:11px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); }
.notif-pane__kv .notif-kv { display:grid; grid-template-columns:120px minmax(0, 1fr); gap:16px; padding:3px 0; font-size:12px; }
.notif-pane__kv .notif-k { min-width:0; color:var(--ink-3); }
.notif-pane__kv .notif-v { color:var(--ink); font-family:var(--font-mono); font-size:12px; overflow-wrap:anywhere; }
@media (min-width: 768px) {
  .notif-pane__back { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  .notif-pane__back { transition:none; }
}
/* A phone (board 07 at 390): the count line in place of the lede, the list, then the detail with Back. */
@media (max-width: 767px) {
  .shell__content .notices:not([hidden]) { margin:-20px -16px 0; height:auto; }
  .notices__head { padding:16px 16px 8px; border-bottom:0; }
  .notices__head h1.page { font-size:24px; line-height:30px; }
  .notices__lede { display:none; }
  .notices__sum { display:block; }
  .notices__bench { display:block; }
  .notices__list { width:auto; padding:8px; border-right:0; overflow:visible; }
  .notices__list .notif-older .btn { min-height:44px; }
  .notices__detail { padding:16px; overflow:visible; }
  .notices[data-view="list"] .notices__detail { display:none; }
  .notices[data-view="detail"] .notices__list, .notices[data-view="detail"] .notices__head { display:none; }
  .notif-pane__title { font-size:22px; line-height:28px; }
  .notif-pane__acts { display:grid; grid-template-columns:1fr; }
  .notif-pane__acts .btn { min-height:44px; justify-content:center; }
}

/* ---- Video review: timeline note markers (shared by admin.html + deliver.html) ---- */
.review-markers { position:relative; height:10px; margin-top:6px; background:var(--track); border-radius:4px; }
/* min-height:0 keeps the phone 44px button rule off it: the tick is drawn 8x16 and ::before carries the hit area. */
.review-tick { position:absolute; top:-3px; width:8px; height:16px; min-height:0; margin-left:-4px; padding:0;
  border:0; border-radius:3px; background:var(--brand); cursor:pointer; }
/* TARGET SIZE (SC 2.5.8, AA). The tick is 8x16 painted, which fails the 24x24 minimum, and the audit
 * flagged it as a probable failure it could not measure.
 *
 * The HEIGHT is free, so an invisible box takes it to 24 without changing a pixel of what is drawn.
 * The WIDTH is not: this marker's horizontal position IS its timestamp on the timeline, so widening
 * it to 24 would either misplace it or make neighbouring notes overlap, and opening the wrong note
 * is a worse outcome than a small target. That is 2.5.8's "Essential" exception, claimed
 * deliberately and written down here rather than left as an oversight.
 *
 * A pseudo-element rather than padding: padding would move the tick, and the position is the point. */
.review-tick::before { content:''; position:absolute; left:50%; top:50%; transform:translate(-50%, -50%);
  width:16px; height:24px; }
.review-tick:hover { filter:brightness(1.25); }
.review-tick:focus-visible { outline:2px solid var(--twilight); outline-offset:1px; }
/* A note carrying a marked-up frame reads differently at a glance. */
.review-tick--shot { background:var(--tick-shot); box-shadow:0 0 0 2px var(--tick-shot-ring); }
/* A staged, not-yet-sent pin: hollow and dashed so it reads as a draft. */
.review-tick--draft { background:transparent; border:1.5px dashed var(--brand); box-shadow:none; }
.review-tip { position:absolute; bottom:18px; transform:translateX(-50%); z-index:5;
  max-width:260px; padding:6px 9px; border-radius:7px; background:var(--tooltip-bg);
  color:var(--tooltip-fg); font-size:12px; line-height:1.4; pointer-events:none; white-space:normal;
  border:1px solid var(--line); }
/* ---- Video review: frame markup (admin only) ---- */
.review-draw-host:empty { display:none; }
.review-draw-wrap { position:relative; display:block; margin-top:10px; line-height:0; }
.review-draw-wrap canvas { width:100%; height:auto; display:block; border-radius:8px; }
.review-draw-wrap .rd-frame { background:#000; } /* letterbox behind the marked-up frame — theme-exempt */
.review-draw-wrap .rd-over { position:absolute; inset:0; cursor:crosshair; touch-action:none; }
.review-draw-tools { display:flex; gap:6px; align-items:center; margin:8px 0; flex-wrap:wrap; }
.review-draw-tools .rd-tool[aria-pressed="true"] { outline:2px solid var(--brand); outline-offset:1px; }
/* 24, not 22 (SC 2.5.8, AA). A colour swatch has no positional constraint at all — it sits in a
   flex row of drawing tools — so there was nothing to trade for the two pixels. */
.review-swatch { width:24px; height:24px; border-radius:50%; border:2px solid transparent;
  cursor:pointer; display:inline-block; }
.review-swatch[aria-pressed="true"] { border-color:var(--focus-ink); }
/* ---- Video review: scrub thumbnail preview ---- */
.review-scrub { position:relative; }
.review-preview { position:absolute; bottom:20px; transform:translateX(-50%); z-index:6;
  width:160px; height:90px; border-radius:6px; border:1px solid var(--line);
  background-repeat:no-repeat; background-color:#000; pointer-events:none; } /* scrub-preview letterbox — theme-exempt */
.review-preview[hidden] { display:none; }
.review-proxy-chip { color:var(--muted); }
/* ---- "Likely duplicates" suggestions (Uploads history + Financials > Jobs) ----
   One panel module (duplicates.js) renders on both screens, so it styles once here. */
.dupes { margin:18px 0 6px; }
.dupes-body { margin-top:10px; padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  background:var(--bg-2); }
.dupes-intro { margin:0 0 10px; }
.dupes-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.dupes-progress { margin:0; }
.dupes-group { padding:10px 0; border-top:1px solid var(--line); }
.dupes-group:first-child { border-top:0; padding-top:0; }
.dupes-grow { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dupes-picklabel { font-size:12px; color:var(--muted-2); }
.dupes-name { max-width:320px; height:30px; padding:2px 8px; font-size:13px; }
.dupes-badge { text-transform:none; letter-spacing:0; }
.dupes-badge--medium { color:var(--pill-warn-fg); border-color:var(--pill-warn-line); }
.dupes-badge--low { color:var(--pill-danger-fg); border-color:var(--pill-danger-line); }
.dupes-reason { margin:6px 0 4px; }
.dupes-members { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px 16px; }
.dupes-member { font-size:13px; }
.dupes-folder { overflow-wrap:anywhere; }
/* A note row pinned to a moment is clickable: it seeks the player. The chip inside it is the
   visible affordance, but the row is the target, because the chip is a ~40px box beside the text
   and the picture the editor is actually reading. */
.review-note--seek { cursor: pointer; border-radius: 8px; }
.review-note--seek:hover { background: var(--bg-3); }
.review-full { font-size: 12px; color: var(--muted); }

/* "Already uploaded" on the job card: four rows, one per drop zone, read before anything is dragged. */
.already { margin-top:14px; }
.already-reshoot { margin:6px 0 8px; padding:9px 12px; border-radius:9px; font-size:12.5px; line-height:1.5;
  color:var(--pill-busy-fg); background:var(--pill-busy-bg); border:1px solid var(--pill-busy-line); }
.already-rows { border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.already-row { display:flex; align-items:center; gap:10px; padding:9px 12px; background:var(--bg-3);
  border-top:1px solid var(--line); font-size:13.5px; }
.already-row:first-child { border-top:0; }
.already-ico { width:14px; text-align:center; font-weight:700; flex-shrink:0; }
.already-kind { width:78px; font-weight:600; flex-shrink:0; }
.already-state { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.already-meta { color:var(--muted-2); font-size:12px; flex-shrink:0; }

/* ===== JOB CHAT (job chat, spec 17 Oct). Every chat rule lives in this block, all prefixed jc-, and
 * uses only the theme tokens above, so the UI redesign restyles chat here and nowhere else. ===== */
.jc-btn { position: relative; }
.jc-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; text-align: center;
  background: var(--brand-fill); color: var(--brand-ink); font-size: 11px; font-weight: 600; line-height: 18px; }
/* Read aloud, never seen: "Chat, 3 unread". */
.jc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jc-total { margin-left: 12px; color: var(--text); font-size: 13px; font-weight: 600; }
.jc-total:empty { display: none; }
.jc-panel { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column;
  width: min(440px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 32px)); background: var(--bg-2);
  color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px var(--shadow-md); }
/* In its job's card (Dave, 10 Nov 2026): part of the card's flow at the card's width, a shorter cap so a
 * long thread scrolls inside it instead of pushing the next jobs a screen away. */
.jc-panel--inline { position: static; z-index: auto; width: auto; max-height: min(520px, 70vh);
  margin: 0 16px 12px; box-shadow: none; }
/* A delivered card pads its own sides already, so the chat sits flush with the head line above it. */
.delivery-job > .jc-panel--inline { margin: 8px 0 0; }
/* Deliver photos layout A (Dave, 18 Nov 2026): the chosen job's chat is a panel of the page beside its
 * photos, open from the start. Its section supplies the heading edge, so the panel drops its own border. */
.jc-panel--embed { position: static; z-index: auto; width: auto; max-height: min(560px, 70vh); margin: 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.jc-panel--embed .jc-head { padding: 0 0 8px; }
.jc-panel--embed .jc-items { padding: 4px 0; }
.jc-panel--embed .jc-form { padding: 10px 0 0; }
.jc-panel--embed .jc-readonly { padding: 10px 0 0; }
.jc-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 10px 12px;
  border-bottom: 1px solid var(--line); }
.jc-title { margin: 0; font-size: 14px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.jc-sub { color: var(--muted); font-size: 12px; }
.jc-head__tools { margin-left: auto; display: flex; gap: 6px; }
.jc-items { flex: 1; min-height: 80px; overflow-y: auto; padding: 8px 12px; }
.jc-item { margin: 10px 0; font-size: 13.5px; line-height: 1.5; }
.jc-item--system { color: var(--muted); font-size: 12px; }
.jc-item--admin { padding-left: 24px; }
.jc-meta { margin-bottom: 2px; }
.jc-msg__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.jc-when { color: var(--muted-2); font-size: 12px; }
.jc-tag { margin-left: 6px; color: var(--muted); font-size: 11px; }
.jc-file { display: inline-block; margin: 4px 8px 0 0; font-size: 12.5px; overflow-wrap: anywhere; }
.jc-thumb { display: block; max-width: 160px; max-height: 120px; margin: 4px 0; border-radius: 6px;
  border: 1px solid var(--line); }
.jc-empty { color: var(--muted); font-size: 13px; }
.jc-form { display: grid; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.jc-form textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; padding: 8px 10px;
  color: var(--text); background: var(--bg-3); border: 1px solid var(--field-edge); border-radius: 8px; }
.jc-form [type=submit] { justify-self: end; }
.jc-error { color: var(--danger-fg); font-size: 12px; }
.jc-error:empty { display: none; }
.jc-readonly { margin: 0; padding: 10px 12px; color: var(--muted); border-top: 1px solid var(--line); }
/* Dave's note with a send: the optional box on the Resend picker and the floorplan tray (admin.page.js). */
.jc-note { display: grid; gap: 4px; width: 100%; max-width: 214px; color: var(--muted); font-size: 12px; }
.jc-note__text { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 12px;
  padding: 4px 8px; height: auto; }
/* ETA requests: the card in the chat and the badge on the board, red once the time passes undelivered. */
.jc-eta-card { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.jc-eta-buttons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.jc-eta-at { font: inherit; font-size: 12.5px; padding: 3px 6px; color: var(--text); background: var(--bg-3);
  border: 1px solid var(--field-edge); border-radius: 6px; }
.jc-eta-note { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 12.5px;
  padding: 6px 8px; color: var(--text); background: var(--bg-3); border: 1px solid var(--field-edge); border-radius: 8px; }
.jc-eta { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.jc-eta--late { color: var(--danger-fg); }
.jc-eta-at-label { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px;
  color: var(--muted); }
.jc-eta-at-result { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

/* Text a screen reader reads but the eye does not see (the upload page's "Done" beside its tick icon). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Loading skeletons (board 47a) ----------
 * Where a page used to say "Loading…", blocks in the shape of what lands: rows for a list, a panel
 * for a card, a line for a sentence, a bar per cell for a table row. The container that STAYS (the
 * panel, the tbody, the status span) carries aria-busy="true" while it loads, and the page JS removes
 * it when the data or an error lands (board 47a). The skeleton itself carries a .sr-only "Loading",
 * and the breadcrumbs say it through their role="status" line, so a screen reader still hears it.
 * No spinners. */
.skel { display: block; border-radius: 6px; background: var(--pending); }
.skel--row { height: 44px; margin: 0 0 8px; }
.skel--line { height: 12px; margin: 6px 0; width: 60%; }
.skel--panel { height: 160px; }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: skel-breathe 1.6s var(--ease) infinite alternate; }
  @keyframes skel-breathe { from { opacity: .55; } to { opacity: 1; } }
}
.skel-wrap { display: block; }
.skel-wrap .skel--line + .skel--line { width: 40%; }
/* Board 47a draws the Uploads and Deliveries rows as two lines over a thin bar, and the Uploads
 * detail as a title, a line and three columns. Each shape is layers of the one --pending fill. */
#liveList .skel--row, #earlierList .skel--row, #dlList .skel--row {
  height: 52px; margin: 0 0 12px; border-radius: 0;
  background: linear-gradient(var(--pending), var(--pending)) 0 4px / 60% 12px no-repeat,
    linear-gradient(var(--pending), var(--pending)) 0 24px / 40% 10px no-repeat,
    linear-gradient(var(--pending), var(--pending)) 0 46px / 100% 3px no-repeat;
}
#uplDetail .skel--panel {
  height: 200px; border-radius: 0;
  background: linear-gradient(var(--pending), var(--pending)) 0 0 / 50% 18px no-repeat,
    linear-gradient(var(--pending), var(--pending)) 0 30px / 30% 10px no-repeat,
    linear-gradient(var(--pending), var(--pending)) 0 64px / 31% 136px no-repeat,
    linear-gradient(var(--pending), var(--pending)) 50% 64px / 31% 136px no-repeat,
    linear-gradient(var(--pending), var(--pending)) 100% 64px / 31% 136px no-repeat;
}
/* While the detail is still loading, the queues under it (Interrupted, Files that did not upload)
 * wait too, so the loading frame is blocks only, as drawn. They show once the detail lands or fails. */
#uplDetail[aria-busy="true"] ~ .upl-queues { display: none; }
/* One line standing in for a short status sentence inside a row (the Storage panel). */
.skel-wrap--inline { display: inline-block; width: 260px; max-width: 100%; vertical-align: middle; }
.skel-wrap--inline .skel--line { width: 100%; margin: 0; }
/* A table skeleton: one bar per cell, so the rows have the table's own columns (board 47a). */
.skel-tr td { padding-top: 12px; padding-bottom: 12px; }
.skel-tr .skel--line { width: 80%; min-width: 24px; margin: 4px 0; }

/* ---------- The View as band (board 10, 44a; view-as-band.js) ----------
 * One blue band above the page while an admin views a person's page: the eye, "Viewing as", the
 * name, the read-only note, and Return to admin on the right. On a phone the note takes its own line
 * under the rest and both it and the button lose their spare words. The page's own preview banner
 * steps aside, so the band is the one thing that says it. */
.viewas-band { background: var(--twilight); color: var(--twilight-ink); }
.viewas-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 32px; }
.viewas-band__ico { font-size: 18px; }
.viewas-band__lead { font-weight: 600; }
.viewas-band__who { font-weight: 600; overflow-wrap: anywhere; }
.viewas-band__note { font-size: 14px; opacity: .85; }
.viewas-band__return { display: inline-flex; align-items: center; height: 32px; margin-left: auto; padding: 0 14px;
  border-radius: 6px; background: var(--ground); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: opacity 160ms var(--ease); }
.viewas-band__return:hover { opacity: .9; }
.viewas-band__return:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .viewas-band__return { transition: none; } }
body.view-as #previewBanner { display: none !important; }
@media (max-width: 767px) {
  .viewas-band__inner { gap: 8px; padding: 10px 16px; }
  .viewas-band__return { height: 44px; }
  .viewas-band__note { order: 1; flex-basis: 100%; font-size: 12px; }
  .viewas-band__wide { display: none; }
}

/* ---------- Carried minors from the Task 1 review (Darkroom layout Task 2, 29 Oct 2026) ----------
   (a) Collapsed, the 64px rail had room for one presence dot, and the rest ran out of the column. It
   shows the first dot and keeps the count badge; open, and in the More sheet, every dot shows as before. */
html[data-rail-state="shut"] .rail .rail__foot .pw-dot:not(:first-child) { display: none; }
/* (b) The Deliveries count (board 01, blue) went with the Needs you box on 18 Nov 2026: Awaiting review is a
   row in the box now, and Deliveries carries no count. */

/* ---------- The stage bar (board 02 "Stage bar anatomy"; stage-bar.js) ----------
   Five segments: done is twilight, current its wash, held up safelight, broken fault, not reached pending. */
.stage__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.stage__seg { display: block; border-radius: 2px; }
.stage--row .stage__seg { height: 3px; }
.stage--detail .stage__seg { height: 6px; border-radius: 3px; }
/* Each step's own colour (16 Nov 2026): solid when done, half filled while under way. Held up is striped
 * amber so it never reads as Editing's amber; only Files in is ever held up or failed. */
.stage__seg[data-step="booked"] { --stage-c: var(--stage-booked); }
.stage__seg[data-step="shot"] { --stage-c: var(--stage-shot); }
.stage__seg[data-step="filesIn"] { --stage-c: var(--stage-files); }
.stage__seg[data-step="editing"] { --stage-c: var(--stage-editing); }
.stage__seg[data-step="delivered"] { --stage-c: var(--stage-delivered); }
.stage__seg--done { background: var(--stage-c, var(--twilight)); }
.stage__seg--current { background: linear-gradient(90deg, var(--stage-c, var(--twilight)) 0 50%, color-mix(in srgb, var(--stage-c, var(--twilight)) 28%, transparent) 50% 100%); }
.stage__seg--amber { background: repeating-linear-gradient(135deg, var(--safelight) 0 4px, var(--safelight-wash) 4px 7px); }
.stage__seg--red { background: var(--fault); }
.stage__seg--none { background: var(--pending); }
.stage__labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.stage__label--done { color: var(--ink-2); }
.stage__label--current { color: var(--ink); font-weight: 600; }
.stage__label--amber { color: var(--safelight); font-weight: 600; }
.stage__label--red { color: var(--fault); font-weight: 600; }

/* ---------- The Jobs page (boards 02 and 43a; jobs-board.js) ----------
   The page bleeds past the content padding so the list runs edge to edge under the title. The list is
   400px; the detail fills the rest and its panel stops at 760px. :not([hidden]) so the tab still hides. */
.jobs:not([hidden]) { display: flex; flex-direction: column; margin: -24px -32px -32px; height: calc(100vh - 64px); min-height: 0; }
.jobs__head { padding: 24px 32px 16px; border-bottom: 1px solid var(--rule); }
.jobs__head h1.page { font-size: 28px; line-height: 34px; margin: 0; }
.jobs__sub { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.jobs__sub strong { color: var(--safelight); font-weight: 600; }
.jobs__sub .jobs__sub-quiet { color: var(--ink); }   /* 43a: "nothing booked" bold in ink, not the needs tone */
.jobs__bench { display: flex; flex: 1; min-height: 0; }
/* Waiting for you (P2; photographer-requests-strip.js): photographers' change requests, under the title.
   The page is a fixed-height column, so the strip keeps to half of it and scrolls, and the cards run in a
   row that wraps. No display rule on the strip itself, so its hidden attribute still hides it. */
.preqs { flex: none; max-height: 50vh; overflow: auto; padding: 16px 32px; border-bottom: 1px solid var(--rule); background: var(--bg-2); }
.preqs__title { margin: 0; font-size: 18px; line-height: 24px; }
.preqs__hint { margin: 2px 0 12px; color: var(--ink-3); font-size: 14px; }
.preqs__list { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
/* A send that settled with a problem leaves its words here until Dave closes them. */
.preqs__notes { display: flex; flex-direction: column; gap: 8px; }
.preqs__notes:not(:empty) { margin-bottom: 12px; }
.preqs__note { margin: 0; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 10px 12px; border: 1px solid var(--rule); border-left: 4px solid var(--safelight); border-radius: 8px;
  background: var(--bg); font-size: 14px; }
.preqs__note-text { min-width: 0; overflow-wrap: anywhere; }
.preqs__note-close { flex: none; }
/* At desktop a card is wide enough to put each marked picture beside its words, and its button bar keeps to
   the foot of the band while the card scrolls in it, so Approve and send and Turn down show on first sight
   (18 Nov 2026: at 1280 a card with its picture full width ran past the band and hid both buttons). */
.preq { flex: 0 1 640px; min-width: 0; padding: 12px; border: 1px solid var(--rule); border-left: 4px solid var(--stage-editing);
  border-radius: 8px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.preq__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.preq__who { font-weight: 600; }
.preq__where, .preq__round { color: var(--ink-3); font-size: 14px; overflow-wrap: anywhere; }
.preq__words { display: flex; flex-direction: column; gap: 4px; }
.preq__label { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.preq__words textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.preq__marks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.preq__mark { display: grid; grid-template-columns: minmax(160px, 240px) minmax(200px, 1fr); gap: 12px; align-items: start; }
.preq__held { display: block; max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 6px; background: var(--bg-3); }
/* A video note: its marked frames stack in the picture column; a note with no frame takes the full width. */
.preq__frames { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.preq__mark--words { grid-template-columns: minmax(0, 1fr); }
.preq__err { margin: 0; color: var(--fault); font-size: 14px; }
.preq__msg { margin: 0; color: var(--ink-2); font-size: 14px; }
.preq__err[hidden], .preq__msg[hidden], .preq__why[hidden] { display: none; }
.preq__bar, .preq__why { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.preq__why .preq__words { flex: 1 1 200px; }
/* Sticky pins inside the strip's 16px padding, so the bar reaches down over it and hides what scrolls under. */
.preq__bar { position: sticky; bottom: -16px; z-index: 1; padding: 10px 0 16px; border-top: 1px solid var(--rule); background: var(--bg); }
.jobs__list { width: 400px; flex: none; overflow-y: auto; border-right: 1px solid var(--rule); background: var(--tray); }
/* 24px sides, not 40: each section card now pads its own words, and the 40 cost the video review's
   player its 520px floor at 1280 (the-video-review-player-is-full-width). */
.jobs__detail { flex: 1; min-width: 0; overflow-y: auto; padding: 32px 24px; background: var(--jobd-ground); }
.jobs__detail-in { max-width: 760px; }
.jobs__group-head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px 8px; background: var(--tray); color: var(--ink-3); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.jobs__group-count { font-family: var(--font-mono); font-weight: 400; }
.jobrow {
  display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 44px; padding: 12px 20px;
  border: 0; border-bottom: 1px solid var(--rule-soft); border-left: 4px solid transparent; background: transparent;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  /* A row brought into view from above lands under the group heading that sticks to the list's top; one
     brought up from below stops 8px above the list's foot, so the open card's inset and shadow show. */
  scroll-margin: 44px 0 8px;
}
.jobrow:hover { background: var(--hover-bg); }
.jobrow:active { transform: scale(0.97); }
/* The open job is a raised card inset from the list edge (review M1) with the accent down its left edge and
 * a stronger accent wash than pills and chips use, so it stands apart from every other row in both themes
 * (Dave, 17 Nov 2026: "it needs to be more obvious which job is selected"). The near-square left corners
 * keep the bar a straight line. Hovering the open row changes nothing: it already shows it is the one. */
.jobrow[aria-current="true"] {
  width: calc(100% - 16px); margin: 4px 8px; border-radius: 2px 8px 8px 2px; border-color: transparent;
  border-left-color: var(--twilight); background: var(--twilight-wash-strong); box-shadow: var(--jobrow-open-ring);
}
.jobrow[aria-current="true"] .jobrow__street { font-weight: 700; }
.jobrow[aria-current="true"] .jobrow__when,
.jobrow[aria-current="true"] .jobrow__sub { color: var(--jobrow-open-sub); }
.jobrow:focus-visible { outline: 2px solid var(--twilight); outline-offset: -2px; }
.jobrow__top { display: flex; justify-content: space-between; gap: 12px; }
.jobrow__street { font-weight: 600; font-size: 15px; }
.jobrow__when { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.jobrow__sub { font-size: 13px; color: var(--ink-3); }
.jobrow__problem { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.jobrow__problem--fault { color: var(--fault); }
.jobrow__problem--warn { color: var(--safelight); }
.jobrow__note { font-size: 13px; color: var(--ink-2); }
.jobs__skel { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--rule-soft); }
.jobs__skel span { display: block; height: 10px; border-radius: 4px; background: var(--pending); }
.jobs__skel span:nth-child(1) { width: 60%; }
.jobs__skel span:nth-child(2) { width: 40%; }
.jobs__skel span:nth-child(3) { width: 100%; height: 3px; }
/* The empty cards of board 43a (review M3): a ruled card, the icon in a 40px wash tile, a title, a line. */
.jobs__empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 16px 20px; padding: 32px 24px;
  border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule-soft); color: var(--ink-2); font-size: 14px;
}
.jobs__empty-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
  border-radius: 10px; background: var(--lift); color: var(--ink-2);
}
.jobs__empty-tile .ph { font-size: 20px; }
.jobs__empty p { margin: 0; }
.jobs__empty-words { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.jobs__empty-title { color: var(--ink); font-size: 16px; font-weight: 600; }
.jobs__empty-body { max-width: 420px; color: var(--ink-2); font-size: 14px; }
.jobs__empty--quiet .jobs__empty-tile { background: var(--twilight-wash); color: var(--info); }
.jobs__empty--search .jobs__empty-tile { background: var(--lift); color: var(--ink-2); }
.jobs__empty--calm { flex-direction: row; align-items: center; padding: 16px; background: var(--fixer-wash); box-shadow: none; color: var(--ink); }
.jobs__empty--calm .jobs__empty-tile { width: auto; height: auto; background: transparent; color: var(--fixer); }
.jobs__empty--pane { margin: 64px auto; align-items: center; text-align: center; box-shadow: none; color: var(--ink-3); }
.jobs__empty--pane .jobs__empty-tile { background: transparent; color: var(--ink-3); }
.jobs__empty--pane .jobs__empty-tile .ph { font-size: 32px; }
.jobs__clear { margin-top: 4px; }
.jobs__next {
  display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 10px 12px;
  border-radius: 8px; background: var(--tray); box-shadow: var(--lift-shadow);
}
.jobs__next-label { font-size: 12px; color: var(--ink-3); }
.jobs__next-what { color: var(--ink); font-weight: 600; }
/* The list's own search box (board 43a; review M4). It drives the same filter as the top search. */
.jobs__find {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 12px 20px 4px; padding: 0 12px;
  border-radius: 8px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--field-edge); color: var(--ink-3);
}
.jobs__find:focus-within { box-shadow: inset 0 0 0 2px var(--twilight); }
.jobs__find-input {
  flex: 1; min-width: 0; min-height: 44px; border: 0; padding: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; outline: none;
}
.jobs__find-input::placeholder { color: var(--ink-3); }
.jobd__meta { margin: 0 0 4px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.jobd__title { margin: 0; font-size: 24px; line-height: 30px; }
.jobd__sub { margin: 4px 0 20px; color: var(--ink-3); font-size: 14px; }
.jobd__problem { display: flex; gap: 12px; margin-top: 16px; padding: 16px; border-radius: 10px; }
.jobd__problem .ph { font-size: 22px; flex: none; }
.jobd__problem p { margin: 0; }
.jobd__problem--fault { background: var(--fault-wash); }
.jobd__problem--fault .ph, .jobd__problem--fault .jobd__problem-title { color: var(--fault); }
.jobd__problem--warn { background: var(--safelight-wash); }
.jobd__problem--warn .ph, .jobd__problem--warn .jobd__problem-title { color: var(--safelight); }
.jobd__problem-words { display: flex; flex-direction: column; gap: 6px; }
.jobd__problem-title { font-weight: 600; }
.jobd__problem-body { color: var(--ink-2); font-size: 14px; }
.jobd__problem-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
/* The job panel reads as cards on a soft ground (Dave, 18 Nov 2026, option C): the header in its own card,
 * and each section its own card with a 3px top edge in a stage colour and its label in a deeper shade
 * (light) or lighter tint (dark) of that colour. Flat colours only. */
.jobd__head { padding: 20px 24px; border-radius: 10px; background: var(--tray); box-shadow: var(--lift-shadow); }
.jobd__head .jobd__sub:last-child, .jobd__head .jobd__badges:last-child { margin-bottom: 0; }
.jobd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.jobd__section {
  min-width: 0; padding: 14px 16px 6px; border-top: 3px solid var(--tone, var(--stage-booked)); border-radius: 0 0 10px 10px;
  background: var(--tray); box-shadow: var(--lift-shadow);
}
.jobd__section[data-tone="booked"]    { --tone: var(--stage-booked);    --tone-ink: var(--tone-booked-ink); }
.jobd__section[data-tone="shot"]      { --tone: var(--stage-shot);      --tone-ink: var(--tone-shot-ink); }
.jobd__section[data-tone="files"]     { --tone: var(--stage-files);     --tone-ink: var(--tone-files-ink); }
.jobd__section[data-tone="editing"]   { --tone: var(--stage-editing);   --tone-ink: var(--tone-editing-ink); }
.jobd__section[data-tone="delivered"] { --tone: var(--stage-delivered); --tone-ink: var(--tone-delivered-ink); }
.jobd__section .jobd__section-name { color: var(--tone-ink, var(--ink-3)); }
/* A job's deliveries carry their review cards (PR B1), which need the detail's full width. */
.jobd__section--wide { grid-column: 1 / -1; }
.jobd__review { margin-top: 12px; }
/* Version history (PR B2b): one block per kind and deliverer, its rounds newest first. */
.jobd__vblock + .jobd__vblock { margin-top: 18px; }
.jobd__vhead { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.jobd__rounds { margin: 0; padding: 0; list-style: none; }
.jobd__vnotes { margin: 0 0 6px; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--rule-soft); }
.jobd__vnote, .jobd__vmore { padding: 3px 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.jobd__vlabel { color: var(--ink); font-weight: 600; }
.jobd__vwho, .jobd__vmore { color: var(--ink-3); }
.jobd__volder { margin: 0; padding: 6px 0 0; border-top: 1px solid var(--rule-soft); font-size: 13px; color: var(--ink-3); }
.jr-kind { margin-top: 16px; }
.jr-kind__name { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.jr-fault { margin: 0 0 8px; }
.jobd__section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.jobd__section-name { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.jobd__section-count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.jobd__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 0; border-top: 1px solid var(--rule-soft); font-size: 14px; }
.jobd__section .jobd__item { padding: 10px 0; }
.jobd__item--file { justify-content: flex-start; flex-wrap: nowrap; gap: 16px; }
.jobd__item--file .jobd__at { flex: none; width: 84px; }
.jobd__who { color: var(--ink); }
/* A crew row: "name · task", the 12px second line under it, the status pill on the right (review M2). */
.jobd__item--crew { flex-wrap: nowrap; align-items: center; }
.jobd__crew-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jobd__note { font-size: 12px; color: var(--ink-3); }
.jobd__pill { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--pending); }
.jobd__pill--booked { color: var(--ink-2); background: var(--pending); }
.jobd__pill--shot { color: var(--fixer); background: var(--fixer-wash); }
.jobd__pill--overdue { color: var(--safelight); background: var(--safelight-wash); }
.jobd__pill--uploading { color: var(--info); background: var(--twilight-wash); }
.jobd__pill--on-site { color: var(--info); background: var(--twilight-wash); }
.jobd__state { color: var(--ink-3); font-size: 13px; }
.jobd__state--warn { color: var(--safelight); }
.jobd__state--fault { color: var(--fault); }
.jobd__state--ok { color: var(--fixer); }
.jobd__state--info { color: var(--ink-3); }   /* waiting, replaced, part approved: says so without a colour */
/* PR B2a: an archived or merged job says so under its name; a delivery's portal push sits on its own line;
 * a note reads its label over its words, which can run long. */
.jobd__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 20px; }
.jobd__badge { margin: 0; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--pending); }
.jobd__badge--archived { color: var(--safelight); background: var(--safelight-wash); }
.jobd__push { width: 100%; font-size: 13px; color: var(--ink-3); }
.jobd__push--ok { color: var(--fixer); }
.jobd__push--fault { color: var(--fault); }
.jobd__item--note { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; }
.jobd__item--note .jobd__who { font-size: 12px; color: var(--ink-3); }
.jobd__note-text { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
/* PR B2c: the job's chat, a line per kind with its Chat buttons on the right. The section spans the page
 * so a chat opened under a line has room to read; the panel sits flush with the line above it. */
.jobd__section--chat { grid-column: 1 / -1; }
.jobd__item--chat { align-items: center; }
.jobd__item--chat .jc-slot { display: flex; flex-wrap: wrap; gap: 8px; }
.jobd__chat > .jc-panel--inline { margin: 0 0 12px; }
/* An Esoft order: its state in the tab's words, the day it went, and the name it went under. */
.jobd__item--esoft { justify-content: flex-start; align-items: baseline; }
.jobd__links { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.jobd__link { color: var(--twilight); font-size: 13px; }
.jobd__at { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.jobd__none { margin: 0; color: var(--ink-3); font-size: 14px; }
.jobd__money { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.jobd__money--total { border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 8px; font-weight: 600; }
/* Profit or loss (17 Nov 2026): the price on top with its inc GST figure small under it, the result under
 * Cost so far in the theme's own good and bad colours. */
.jobd__money-figure { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; column-gap: 6px; text-align: right; }
.jobd__money-sub { flex-basis: 100%; color: var(--ink-3); font-size: 12px; }
.jobd__money-note { color: var(--ink-3); font-size: 12px; font-weight: 400; }
.jobd__money-price { font-weight: 600; padding-bottom: 8px; }
.jobd__money-price > span:first-child { white-space: nowrap; }   /* "Price (ex GST)" stays on one line */
.jobd__money-result { font-weight: 600; }
.jobd__money-result--profit { color: var(--fixer); }
.jobd__money-result--loss { color: var(--fault); }
.jobd__back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 8px -8px; padding: 0 8px;
  border: 0; background: transparent; color: var(--twilight); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.jobd__back:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .jobrow, .jobd__back { transition: none; }
}
/* A phone shows one pane at a time: the list, then the detail with Back. No date in the sub-line. */
@media (max-width: 767px) {
  .jobs:not([hidden]) { margin: -16px -16px 0; height: auto; }
  .jobs__head { padding: 16px 16px 12px; }
  .jobs__sub-date { display: none; }
  .preqs { max-height: none; padding: 12px 16px; }
  .preq { flex-basis: 100%; }
  /* The page scrolls here, not the strip, so the picture goes back above its words and the bar stays put. */
  .preq__mark { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .preq__bar { position: static; padding: 0; }
  .preq__bar .btn, .preq__why .btn { min-height: 44px; }
  .jobs__bench { display: block; }
  .jobs__list { width: auto; border-right: 0; overflow: visible; }
  .jobs__detail { padding: 16px; overflow: visible; }
  .jobs__bench[data-view="list"] .jobs__detail { display: none; }
  .jobs__bench[data-view="detail"] .jobs__list { display: none; }
  .jobd__grid { grid-template-columns: 1fr; }
  /* The page scrolls here, and the tab bar (72px items, a 1px rule, the safe area) is fixed over its foot:
     a row brought into view from below stops 8px above it. From above, the page's own scroll-padding (80px) keeps the
     row under the top bar. */
  .jobrow { padding: 12px 16px; scroll-margin-bottom: calc(81px + env(safe-area-inset-bottom, 0px)); }
  .jobs__empty:not(.jobs__empty--calm, .jobs__empty--pane) { padding: 24px 16px; margin: 16px; }
  .jobs__find { margin: 12px 16px 4px; }
}
.jobs__error { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 16px 20px; color: var(--ink-2); font-size: 14px; }
.jobs__error p { margin: 0; }

/* ===================== Deliveries (board 04; Darkroom layout, Task 3, 29 Oct 2026) =====================
 * The Jobs bench again: title and count line on top, a 400px list grouped by status on the left, the
 * picked delivery on the right. The old boards still render their cards into the detail pane; picking a
 * row hides the other cards (.dl-off) and the header above them carries the board's actions. */
.dl:not([hidden]) { display: flex; flex-direction: column; margin: -24px -32px -32px; height: calc(100vh - 64px); min-height: 0; }
.dl__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 32px 16px; border-bottom: 1px solid var(--rule); }
.dl__head h1.page { font-size: 28px; line-height: 34px; margin: 0; }
.dl__sub { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.dl__sum-lead { color: var(--ink); font-weight: 600; }
.dl__menu { position: relative; }
.dl__menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; list-style: none; cursor: pointer; }
.dl__menu-btn::-webkit-details-marker { display: none; }
.dl__menu-body {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; gap: 8px;
  width: 300px; padding: 14px; border-radius: 10px; background: var(--lift); box-shadow: var(--lift-shadow), var(--rail-shadow);
}
.dl__menu-label { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.dl__menu .deltabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.dl__menu .del-preview { font-size: 13px; color: var(--twilight); }
.dl__bench { display: flex; flex: 1; min-height: 0; }
.dl__list { width: 400px; flex: none; overflow-y: auto; border-right: 1px solid var(--rule); background: var(--tray); }
.dl__detail { flex: 1; min-width: 0; overflow-y: auto; padding: 32px 40px; }
.dl__group-head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin: 0;
  padding: 12px 20px 8px; background: var(--tray); color: var(--ink-3); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.dl__group-count { font-family: var(--font-mono); font-weight: 400; }
.dl__none { margin: 0; padding: 8px 20px 14px; color: var(--ink-4); font-size: 13px; }
.dl-row {
  display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 44px; padding: 12px 20px;
  border: 0; border-bottom: 1px solid var(--rule-soft); background: transparent;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.dl-row:hover { background: var(--hover-bg); }
.dl-row:active { transform: scale(0.97); }
/* The open delivery matches the open job on Jobs (Dave, 18 Nov 2026: "needs it to be more obvious as to which
 * job ive selected"): a 4px accent bar down the left edge and the same sky tint, inset from the list edge. The
 * row says aria-current too, so the mark is not colour alone. */
.dl-row[aria-current="true"] {
  width: calc(100% - 16px); margin: 4px 8px; border-radius: 2px 8px 8px 2px; border-left: 4px solid var(--twilight);
  padding-left: 16px; background: var(--twilight-wash-strong); box-shadow: var(--jobrow-open-ring);
}
.dl-row[aria-current="true"]:hover { background: var(--twilight-wash-strong); }
.dl-row[aria-current="true"] .dl-row__street { font-weight: 700; }
.dl-row:focus-visible { outline: 2px solid var(--twilight); outline-offset: -2px; }
.dl-row__top { display: flex; justify-content: space-between; gap: 12px; }
.dl-row__street { font-weight: 600; font-size: 15px; }
.dl-row__when { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.dl-row__line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.dl-row__status { font-size: 13px; font-weight: 600; }
.dl-row__status--wait { color: var(--safelight); }
.dl-row__status--done { color: var(--fixer); }
.dl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--up-edit); }
.dl-dot--video { background: var(--up-video); }
.dl-dot--floorplan { background: var(--up-fp); }
/* The picked delivery's header. */
.dl-head { margin: 0 0 24px; }
/* The words cap at 800px; the frames run on to the pane edge. */
.dl-head > :not(.dl-work), .dl__detail > section[data-deltab] { max-width: 800px; }
.dl-head__line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-3); font-size: 13px; }
.dl-head__title { margin: 6px 0 8px; font-size: 26px; line-height: 32px; font-weight: 600; }
.dl-head__meta { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }
.dl-pill { padding: 2px 8px; border-radius: 999px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.dl-pill--new { color: var(--info); background: var(--twilight-wash); }
.dl-pill--wait { color: var(--safelight); background: var(--safelight-wash); }
.dl-pill--done { color: var(--fixer); background: var(--fixer-wash); }
.dl-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.dl-info p { display: flex; align-items: center; gap: 8px; margin: 0; }
.dl-info--wait { background: var(--safelight-wash); color: var(--ink); }
.dl-info--wait .ph { color: var(--safelight); }
.dl-info--done { background: var(--fixer-wash); color: var(--ink); }
.dl-info--done .ph { color: var(--fixer); }
.dl-head__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.dl-head__acts .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
/* What a push from the header is doing and what it did (20 Nov demo press): the card that used to say
 * it is hidden in focus view. Empty, it takes no room. */
.dl-pushwhy { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.dl-pushout:empty { display: none; }
.dl-pushout { margin: 12px 0 0; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.dl-pushout > .msg, .dl-pushout > .push-preview { margin-top: 0; }
.dl-pushout__busy { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); }

/* Install app on a phone (pwa.js): a band at the top of the page, in the flow, so it covers no row.
   The 20 Nov 2026 demo press found the old floating button over the right end of a Deliveries row.
   Its 20px foot cancels the pull-up of the full-height panes (Notices, Jobs, Deliveries pull up by
   16 to 24px), so a pane never slides under it. */
.pwa-band { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 20px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--ink); position: relative; z-index: 1; }
.pwa-band__text { flex: 1 1 220px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pwa-band__text strong { color: var(--ink); font-weight: 600; }
.pwa-band__text .ph { font-size: 15px; vertical-align: -2px; color: var(--ink); }
.pwa-band__acts { display: flex; gap: 8px; margin-left: auto; }
.pwa-band__acts .btn { min-height: 44px; }
main#main > .pwa-band:first-child { margin-top: 0; }
body:not(:has(.shell__content)) main#main > .pwa-band { margin: 12px 16px; }
/* An iPad gets the band at full width, where those panes pull up a full 24px. */
@media (min-width: 768px) { .shell__content > .pwa-band { margin-bottom: 24px; } }
/* The card's own copy of that account would say it twice. Its clip tick list stays: it is a choice,
 * and the header points at it. */
.dl--focus #dlDetail .push-panel:not(:has(.push-clip-picker)) { display: none; }
.dl-work { margin: 24px 0 0; }
.dl-work__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; }
.dl-work__head .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.dl-frames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.dl-frame {
  position: relative; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: var(--inset);
  outline: 1px solid var(--frame-outline); outline-offset: -1px; cursor: pointer; transition: transform var(--dur-fast) var(--ease);
}
.dl-frame:active { transform: scale(0.97); }
.dl-frame:focus-visible { outline: 2px solid var(--twilight); }
.dl-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A TIFF with no drawn thumb: the review strip's plain tile, filling the frame. */
.dl-frame .pa-thumb-none { width: 100%; height: 100%; }
/* A small chip on the ground colour, so the number reads on any photo in either theme. */
.dl-frame__no { position: absolute; left: 6px; bottom: 6px; padding: 0 4px; border-radius: 4px; background: var(--ground); font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--ink-2); }
.dl-hint { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; }
/* The old boards inside the detail pane: the page has one title now, and only the picked card shows. */
.dl__detail section[data-deltab] > .eyebrow, .dl__detail section[data-deltab] > .sub { display: none; }
.dl__detail section[data-deltab] > h2.page { margin: 24px 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.dl--focus .dl__detail section[data-deltab] > h2.page { display: none; }
.dl__detail .dl-off { display: none; }
/* The markup view's notes column is 360px, as drawn. The video review has no such column: it is one
   column at every width (PR F, rv-split--stack). */
.dl .rv-split { grid-template-columns: minmax(0, 1fr) 360px; }
/* Focus view: the header carries Approve, Ask for changes and Push, and presses the card's own buttons.
 * The card's copies stay in the DOM (the header presses them) but are not shown twice. */
.dl--focus #dlDetail .del-actions .portal-push, .dl--focus #dlDetail .del-actions .photo-changes,
.dl--focus #dlDetail .del-actions .del-review, .dl--focus #dlDetail .del-actions .floorplan-changes,
.dl--focus #dlDetail .del-actions .del-approve, .dl--focus #dlDetail .del-actions .photo-approve,
.dl--focus #dlDetail .del-actions .floorplan-approve, .dl--focus #dlDetail .del-actions .notify-approve { display: none; }
/* The header presses only the newest card. An earlier version keeps its own "Approve this version" and
 * Push on its card, or a replaced version could never reach the client (re-shoot gap 2, 20 Nov 2026). */
.dl--focus #dlDetail .del-earlier .del-actions .portal-push:not([hidden]),
.dl--focus #dlDetail .del-earlier .del-actions [data-older]:not([hidden]) { display: inline-flex; }
.dl-notify { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; color: var(--ink-2); font-size: 13px; cursor: pointer; }

/* The steps: Mark up, Check and send, Sent. The step bar sits over the bench; the board's own head and
 * list step aside while a step is open. */
.dl-steps:not([hidden]) { display: flex; align-items: center; gap: 24px; padding: 12px 32px; border-bottom: 1px solid var(--rule); background: var(--tray); }
/* What an Esoft round held or refused, said on the delivery (re-review N-2). */
.dl-notice:not([hidden]) { margin: 0; padding: 12px 32px; border-bottom: 1px solid var(--rule); background: var(--tray); font-size: 14px; line-height: 1.5; }
.dl-steps__back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.dl-steps__back:hover { background: var(--hover-bg); color: var(--ink); }
.dl-steps__back:active { transform: scale(0.97); }
.dl-steps__back:focus-visible { outline: 2px solid var(--twilight); outline-offset: 2px; }
.dl-steps__id { flex: 1; min-width: 0; }
.dl-steps__title { margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-steps__line { margin: 2px 0 0; color: var(--ink-3); font-size: 12px; }
.dl-stepper { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.dl-stepper li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.dl-stepper li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.dl-stepper li.is-done { color: var(--ink-2); }
.dl-stepper__n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-strong); font-family: var(--font-mono); font-size: 11px; }
.dl-stepper li[aria-current="step"] .dl-stepper__n { background: var(--twilight); color: var(--twilight-ink); box-shadow: none; }
.dl-stepper li.is-done .dl-stepper__n { background: var(--twilight); color: var(--twilight-ink); box-shadow: none; }
.dl[data-step] .dl__head, .dl[data-step] .dl__list { display: none; }
.dl[data-step="check"] .dl__detail, .dl[data-step="sent"] .dl__detail { display: none; }
.dl[data-step] .pa-submit, .dl[data-step] .review-send-all { display: none; }
.dl:not([data-step="markup"]) .dl-sendfoot, .dl:not([data-step="markup"]) .dl-notes { display: none; }

/* Mark up shows the card's review panel alone: every sibling along the path from the detail pane to the
 * panel steps aside, and the cards on that path drop their own frame. */
.dl[data-step="markup"] .dl__detail { padding: 0; }
.dl[data-step="markup"] .dl__detail > section[data-deltab] { max-width: none; }
.dl[data-step="markup"] .dl-path > :not(.dl-path):not(.dl-keep) { display: none; }
.dl[data-step="markup"] .dl-path { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.dl[data-step="markup"] .dl-keep { margin: 0; }
.dl[data-step="markup"] .dl-keep .rv-main { padding: 16px 32px; }
.dl[data-step="markup"] .dl-keep .rv-side { padding: 20px 24px; border-left: 1px solid var(--rule); }
/* The video review is one column (PR F): its notes sit under the player, lined up with it, with the rule above. */
.dl[data-step="markup"] .dl-keep .rv-split--stack > .rv-side { padding: 20px 32px; border-left: 0; border-top: 1px solid var(--rule); }
.dl-notes { margin: 0 0 16px; }
.dl-notes__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.dl-notes__n { font-family: var(--font-mono); letter-spacing: 0; }
.dl-notes__photo { display: block; min-height: 28px; margin: 8px 0 4px; padding: 0; border: 0; background: transparent; color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.dl-notes__photo:hover { color: var(--ink); }
.dl-notes__items { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.dl-notes__items li, .dl-tray__note { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.dl-num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--twilight); color: var(--twilight-ink); font-size: 11px; font-weight: 700; }
.dl-blank { color: var(--ink-3); font-style: italic; }
.dl-sendfoot { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); }
.dl-sendfoot .btn { width: 100%; min-height: 40px; justify-content: center; }
.dl-sendfoot__hint { margin: 8px 0 0; color: var(--ink-3); font-size: 12px; text-align: center; }

/* Check and send, and Sent: their own view inside the bench. */
.dl-stepview:not([hidden]) { flex: 1; min-width: 0; overflow-y: auto; padding: 32px 40px; }
.dl-check, .dl-sent { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.dl-sent { max-width: 640px; }
.dl-check h2, .dl-sent h2 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.dl-check__how { margin: -16px 0 0; color: var(--ink-2); font-size: 16px; line-height: 24px; text-wrap: pretty; }
.dl-check__blank { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-radius: 8px; background: var(--safelight-wash); color: var(--ink-2); font-size: 14px; line-height: 20px; }
.dl-check__blank .ph { color: var(--safelight); font-size: 16px; line-height: 20px; }
.dl-tray { padding: 4px 20px; border-radius: 12px; background: var(--tray); box-shadow: var(--lift-shadow); }
.dl-tray__row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.dl-tray__thumb { flex: none; width: 120px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--frame-outline); }
.dl-tray__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dl-tray__notes { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; line-height: 20px; }
.dl-tray__label { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.dl-tray__gen { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; font-size: 14px; line-height: 20px; }
.dl-tray__gen p { margin: 0; }
.dl-check__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-check__acts .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.dl-check__msg { margin: 0; color: var(--fault); font-size: 14px; }
.dl-check__msg:empty { display: none; }
.dl-check__after { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 21px; text-wrap: pretty; }
.dl-sent__icon { color: var(--fixer); font-size: 32px; }
.dl-sent__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 0; color: var(--ink-2); font-size: 14px; }
.dl-next ol { display: flex; flex-direction: column; margin: 12px 0 0; padding: 0; list-style: none; }
.dl-next li { position: relative; display: grid; grid-template-columns: 12px 1fr; column-gap: 12px; padding: 0 0 20px; }
.dl-next li::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 2px; width: 2px; background: var(--rule-strong); }
.dl-next li:last-child::before { display: none; }
.dl-next li.is-done::before { background: var(--fixer); }
.dl-next__dot { grid-row: span 2; width: 12px; height: 12px; margin: 4px 0 0; border-radius: 50%; background: var(--pending); }
.dl-next li.is-done .dl-next__dot { background: var(--fixer); }
.dl-next li.is-now .dl-next__dot { background: transparent; box-shadow: inset 0 0 0 2px var(--twilight); }
.dl-next__t { font-size: 14px; }
.dl-next li.is-now .dl-next__t { font-weight: 600; }
.dl-next__s { color: var(--ink-3); font-size: 12px; }
.dl__back {
  display: none; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 8px -8px; padding: 0 8px;
  border: 0; background: transparent; color: var(--twilight); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.dl__back:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .dl-row, .dl-frame, .dl__back, .dl-steps__back { transition: none; }
  .dl-steps__back:active { transform: none; }
}
/* A phone shows one pane at a time: the list, then the delivery with Back. */
@media (max-width: 767px) {
  .dl:not([hidden]) { margin: -16px -16px 0; height: auto; }
  .dl__head { padding: 16px 16px 12px; }
  .dl__date { display: none; }
  .dl__menu-btn { min-height: 44px; }
  .dl__menu-body { width: min(300px, calc(100vw - 32px)); }
  .dl__bench { display: block; }
  .dl__list { width: auto; border-right: 0; overflow: visible; }
  .dl__detail { padding: 16px; overflow: visible; }
  .dl__bench[data-view="list"] .dl__detail { display: none; }
  .dl__bench[data-view="detail"] .dl__list { display: none; }
  .dl__back { display: inline-flex; }
  .dl-row { padding: 12px 16px; }
  .dl-head__title { font-size: 22px; line-height: 28px; }
  .dl-head__acts .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }
  .dl-frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl .rv-split { grid-template-columns: 1fr; }
  .dl-steps:not([hidden]) { flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; }
  .dl-notice:not([hidden]) { padding: 10px 16px; }
  .dl-steps__back, .dl-notes__photo, .dl-notify { min-height: 44px; }
  .dl-stepper { order: 3; width: 100%; overflow-x: auto; gap: 12px; }
  .dl-stepper li:not([aria-current]) { font-size: 0; gap: 0; }
  .dl[data-step="markup"] .dl-keep .rv-main { padding: 12px 16px; }
  .dl[data-step="markup"] .dl-keep .rv-side, .dl[data-step="markup"] .dl-keep .rv-split--stack > .rv-side { padding: 16px; border-left: 0; border-top: 1px solid var(--rule); }
  .dl-stepview:not([hidden]) { padding: 24px 16px; }
  .dl-check h2, .dl-sent h2 { font-size: 22px; line-height: 28px; }
  .dl-tray { padding: 4px 16px; }
  .dl-tray__thumb { width: 88px; }
  .dl-check__acts .btn, .dl-sendfoot .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }
}

/* ===================== Uploads (board 03 "List and detail"; Darkroom layout, Task 4, 29 Oct 2026) =====================
 * Title and count line on top; a 400px list (live uploads, the queues that need a hand, Earlier with
 * the kind filter) beside the picked upload. admin.html still carries older inline rules scoped to
 * `.atab-panel[data-atab="uploads"]`, which load after this file, so the rules that must beat them
 * repeat that scope and add a class. */
.atab-panel[data-atab="uploads"]:not([hidden]) { display: flex; flex-direction: column; margin: -24px -32px -32px; height: calc(100vh - 64px); min-height: 0; }
.upl-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 32px 16px; border-bottom: 1px solid var(--rule); }
.upl-title h1.page { margin: 0; font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
.upl-title .sub { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.upl-title .sub b { color: var(--ink); font-weight: 600; }
.upl-tools-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; }
.upl-tools-btn[aria-expanded="true"] { background: var(--lift); box-shadow: var(--lift-shadow); }
.upl-body { display: flex; flex: 1; min-height: 0; }
.upl-list { width: 400px; flex: none; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; padding: 16px 12px 32px; border-right: 1px solid var(--rule); background: var(--tray); }
.upl-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.upl-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 4px; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.upl-eyebrow .spacer { flex: 1; }
/* What each bar colour means. A phone has no hover, so this is the only place it can say. */
.upl-key { display: none; }
.upl-group--live:has(.upl-row) .upl-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0 4px; font-size: 11px; line-height: 16px; color: var(--ink-3); }
.upl-key__item { display: inline-flex; align-items: center; gap: 6px; }
.upl-key__dot { width: 10px; height: 10px; border-radius: 2px; }
.upl-eyebrow__note { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-4); }
.upl-count { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.upl-eyebrow .badge { letter-spacing: 0; text-transform: none; }
/* A live row: the whole row is the button that opens it. */
.atab-panel[data-atab="uploads"] .up.upl-row {
  display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 0; padding: 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.atab-panel[data-atab="uploads"] .up.upl-row:hover { background: var(--hover-bg); }
.atab-panel[data-atab="uploads"] .up.upl-row:active { transform: scale(0.97); }
.atab-panel[data-atab="uploads"] .up.upl-row[aria-current="true"] { background: var(--lift); box-shadow: var(--lift-shadow); }
.upl-row:focus-visible, .upl-erow__main:focus-visible, .upl-back:focus-visible { outline: 2px solid var(--twilight); outline-offset: -2px; }
.upl-row__line { display: flex; align-items: baseline; gap: 8px; }
.upl-row__street { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.atab-panel[data-atab="uploads"] .up-pct.upl-row__pct { font-family: var(--font-mono); font-size: 13px; }
.upl-row__who { font-size: 12px; color: var(--ink-3); }
/* A stall's "no data for" on the who line, in safelight; the markup keeps the words lowercase. */
.upl-row__idle { display: inline-block; color: var(--safelight); }
.upl-row__idle::first-letter { text-transform: uppercase; }
.upl-mini { display: flex; gap: 2px; height: 8px; }
.upl-mini > span { position: relative; overflow: hidden; border-radius: 2px; min-width: 10px; }
.upl-mini > span > i { display: block; height: 100%; border-radius: 2px; }
.atab-panel[data-atab="uploads"] .up-meta.upl-row__state { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; }
.upl-row__now { color: var(--ink-3); }
.upl-row__stall { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.upl-row--warn .upl-row__stall { color: var(--safelight); }
/* A floorplan with no client will not send itself: said on the card in safelight, not left to the pane. */
.upl-row__fpwarn { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--safelight); }
/* An Earlier row: street and status, then who and when. */
.upl-erow { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--rule-soft); }
.upl-erow__main {
  display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.upl-erow__main:hover { background: var(--hover-bg); }
.upl-erow__main:active { transform: scale(0.97); }
.upl-erow__main[aria-current="true"] { background: var(--lift); box-shadow: var(--lift-shadow); }
.upl-erow__line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upl-erow__street { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.upl-erow__who { font-size: 12px; color: var(--ink-3); }
.upl-pill { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--rule-soft); }
.upl-pill--ok { color: var(--fixer); background: var(--fixer-wash); }
.upl-pill--fault { color: var(--fault); background: var(--fault-wash); }
/* One row in the 400px list column (Task 12a): at the admin-wide 14px slice padding "Esoft" wrapped onto
   a row of its own, so the slices here are 10px a side, as a phone already draws them. */
.subtabs.upl-filter { display: flex; flex-wrap: nowrap; gap: 4px; margin: 0; }
.subtabs.upl-filter .subtab { padding: 0 10px; white-space: nowrap; }
/* The picked upload. */
.upl-detail { flex: 1; min-width: 0; overflow-y: auto; padding: 32px 40px; }
.upl-detail__inner { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.upl-detail__inner > [hidden] { display: none; }
.upl-detail__inner > .up-msg:empty { display: none; }
.upl-back { display: none; align-items: center; gap: 4px; align-self: flex-start; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--twilight); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.upl-d { display: flex; flex-direction: column; gap: 24px; }
.upl-d__head { display: flex; flex-direction: column; gap: 4px; }
.upl-d__who { margin: 0; font-size: 12px; color: var(--ink-3); }
.upl-d__title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; color: var(--ink); }
.upl-d__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.upl-d__headline { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.atab-panel[data-atab="uploads"] .up-pct.upl-d__pct { margin-left: 0; font-family: var(--font-mono); font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.atab-panel[data-atab="uploads"] .up-meta.upl-d__facts { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; font-size: 13px; }
.upl-d__sum { color: var(--ink-2); }
.upl-banner { display: flex; align-items: flex-start; gap: 8px; padding: 12px 16px; border-radius: 10px; background: var(--safelight-wash); color: var(--ink); font-size: 14px; }
.upl-banner .ph { flex: none; margin-top: 2px; color: var(--safelight); }
.atab-panel[data-atab="uploads"] .up-seg.upl-d__bar, .atab-panel[data-atab="uploads"] .up-bar.upl-d__bar { height: 12px; margin: 0; border-radius: 4px; }
.atab-panel[data-atab="uploads"] .upl-d__bar .up-seg-part, .atab-panel[data-atab="uploads"] .upl-d__bar .up-seg-part > i { border-radius: 4px; }
.upl-section { display: flex; flex-direction: column; gap: 8px; }
.upl-d__h { margin: 0; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.upl-cats { display: flex; flex-direction: column; }
.upl-cat { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto 44px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule-soft); font-size: 13px; }
.upl-cat .up-leg-dot { width: 8px; height: 8px; border-radius: 50%; }
.upl-cat__label { color: var(--ink); font-weight: 500; }
.upl-cat__state { color: var(--ink-3); }
.upl-cat--uploading .upl-cat__state { color: var(--ink-2); }
.upl-cat__size, .upl-cat__pct { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: right; }
.upl-section--routes .up-route { margin: 0; padding: 0; border-top: 0; }
.upl-section--routes .reroute-sel { height: 36px; max-width: 240px; }
.upl-file { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule-soft); font-size: 13px; }
.upl-file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.upl-file__state { color: var(--ink-3); }
.upl-file__state--warn { color: var(--safelight); }
.upl-actions, .upl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.upl-actions .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.upl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 0; }
.upl-facts dt { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.upl-facts dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.upl-tools { display: flex; flex-direction: column; gap: 16px; }
.upl-tools[hidden] { display: none; }
.upl-tool { padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.upl-tool__note { margin-left: 8px; font-size: 12px; color: var(--ink-4); }
.upl-tools .up-toggle, .upl-tools .notes-toggle.up-toggle, .upl-tools .jobtools-toggle[data-scope="upload"] { margin: 0; }
.upl-tables .utable { width: 100%; }
/* The queues that need a hand, under the picked upload. */
.upl-queues { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; border-top: 1px solid var(--rule-soft); }
.atab-panel[data-atab="uploads"] .upl-queues .up-fail[aria-current="true"] { background: var(--lift); outline: 2px solid var(--twilight); outline-offset: 2px; }
.upl-group[hidden] { display: none; }
/* Board frame 46a: an Earlier upload's status line, merged banner and Resend to section. */
.upl-d__files { margin: 4px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
/* Open job on an Uploads detail and a Deliveries card head (PR B2b): a plain link to the job page. */
.upl-d__open { margin: 2px 0 0; font-size: 13px; }
.open-job, .deljob-open { color: var(--twilight); font-size: 13px; white-space: nowrap; }
.upl-d__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink); }
.upl-d__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.upl-d__dot--ok { background: var(--fixer); }
.upl-merged { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; background: var(--twilight-wash); color: var(--ink); font-size: 14px; }
.upl-merged .ph { flex: none; color: var(--info); }
.upl-merged__what { flex: 1; min-width: 0; }
.upl-resend { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.upl-resend--fp { align-items: flex-start; }
/* Wraps on the pane's width, not the window's: the pane is a capped column beside the list, so a fixed
 * four-column row crushed the fields at 1024 and no breakpoint could see it. */
.upl-resend__grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.upl-resend__f { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; color: var(--ink-3); }
.upl-resend__f .input { height: 36px; }
.upl-resend__go { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }
.upl-resend__go .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
/* Assign an editor to a booking, above the Earlier list on the Videos filter. The column is narrow,
 * so the search and the editor share a row only while both fit, and wrap otherwise. [hidden] is
 * spelled out because display:flex beats the attribute. */
.upl-assign { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 16px; margin-bottom: 8px; border-bottom: 1px solid var(--rule-soft); }
.upl-assign[hidden] { display: none; }
.upl-assign__sub { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.upl-assign__row { display: flex; flex-wrap: wrap; gap: 8px; }
.upl-assign__row #assignBookingQ, .upl-assign__row #sendPhotoQ { flex: 1 1 180px; min-width: 0; height: 36px; }
.upl-assign__row #assignBookingEditor, .upl-assign__row #sendPhotoTo { flex: 1 1 140px; min-width: 0; height: 36px; }
.upl-assign__results:empty { display: none; }
.upl-assign__results label { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; cursor: pointer; overflow-wrap: anywhere; }
.upl-assign__meta { color: var(--ink-2); }
.upl-assign__none { color: var(--ink-3); }
/* Keep (V1 1f14eea4): ticked, a photo job is shared with the new retoucher instead of moved. */
.upl-assign__keep, .resend-keep-lbl { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.upl-assign__go { display: flex; flex-wrap: wrap; gap: 8px; }
.upl-assign__go .btn { min-height: 36px; }
.upl-assign .msg:empty { display: none; }
/* A phone shows one pane at a time: the list, then the picked upload with Back. */
@media (max-width: 767px) {
  .atab-panel[data-atab="uploads"]:not([hidden]) { margin: -20px -16px 0; height: auto; }
  .upl-title { padding: 16px 16px 12px; }
  .upl-title h1.page { font-size: 24px; line-height: 30px; }
  .upl-sub__date { display: none; }
  .upl-tools-btn { width: 44px; height: 44px; }
  .upl-body { display: block; }
  .upl-list { width: auto; padding: 16px; border-right: 0; overflow: visible; }
  .upl-detail { display: none; padding: 16px; overflow: visible; }
  .upl--open .upl-list { display: none; }
  /* Board 03 phone detail: Back leads, the page title steps aside. */
  .upl--open .upl-title { display: none; }
  .upl--open .upl-detail { display: block; }
  .upl--open .upl-back:not([hidden]) { display: inline-flex; }
  .atab-panel[data-atab="uploads"] .up-pct.upl-d__pct { font-size: 36px; }
  .upl-d__title { font-size: 20px; line-height: 26px; }
  .upl-section--routes .up-route { flex-direction: column; align-items: stretch; }
  .upl-section--routes .up-route__lbl { flex-direction: column; align-items: stretch; }
  .upl-section--routes .reroute-sel { width: 100%; max-width: none; height: 44px; }
  .upl-actions .btn, .upl-acts .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }
  .upl-filter .subtab { min-height: 44px; }
  .upl-assign__row #assignBookingQ, .upl-assign__row #assignBookingEditor,
  .upl-assign__row #sendPhotoQ, .upl-assign__row #sendPhotoTo { height: 44px; }
  .upl-assign__keep, .resend-keep-lbl { min-height: 44px; }
  .upl-assign__go .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }
  .upl-assign__results label { min-height: 44px; align-items: center; padding: 4px 0; }
  /* The state word stays on a phone; the size drops to a second line under the label. */
  .upl-cat { grid-template-columns: 8px minmax(0, 1fr) auto 40px; row-gap: 2px; }
  .upl-cat__size { grid-column: 2 / 4; grid-row: 2; text-align: left; }
  .upl-resend__go { flex: 1 1 100%; }
  .upl-resend__f .input { height: 44px; }
  .upl-resend__go .btn, .upl-resend .btn, .upl-merged .btn { min-height: 44px; flex: 1 1 auto; justify-content: center; }
  .upl-merged { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .atab-panel[data-atab="uploads"] .up.upl-row, .upl-erow__main { transition: none; }
  .atab-panel[data-atab="uploads"] .up.upl-row:active, .upl-erow__main:active { transform: none; }
}

/* Who is in the app: the presence widget in the rail foot, on admin.html and notifications.html alike.
   A dot per person, green for active and amber for idle, so the answer to "can I deploy" is readable
   without opening anything. One copy here, so the two pages cannot drift. */
.pw { position:relative; }
.pw-btn { display:flex; align-items:center; gap:8px; background:transparent; border:1px solid var(--line);
          border-radius:999px; padding:5px 12px; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; }
.pw-btn:hover { color:var(--text); border-color:var(--hover-line); background:var(--hover-bg); }
.pw-dots { display:inline-flex; gap:4px; }
.pw-dot { width:8px; height:8px; border-radius:50%; display:inline-block; background:var(--pill-ok-fg); }
.pw-dot--idle { background:var(--pill-warn-fg); }
.pw-pop { position:absolute; right:0; top:calc(100% + 8px); z-index:60; min-width:300px;
          background:var(--bg-2); border:1px solid var(--line); border-radius:12px; padding:8px;
          box-shadow:0 12px 32px var(--shadow-md); }
.pw-row { display:flex; align-items:center; gap:10px; padding:7px 8px; border-radius:8px; font-size:13px; }
.pw-row + .pw-row { border-top:1px solid var(--line); }
.pw-name { font-weight:600; white-space:nowrap; }
.pw-doing { color:var(--muted); flex:1; text-align:right; white-space:nowrap; }
.pw-when { color:var(--muted-2); font-variant-numeric:tabular-nums; white-space:nowrap; font-size:12px; }
.pw-empty { color:var(--muted-2); font-size:13px; padding:8px; }
@media (max-width: 720px) { .pw-btn span:last-child { display:none; } .pw-pop { min-width:240px; } }

/* ---------- Darkroom layout, board 09: the six admin tabs ----------
   One title over the tab row; each tab's own eyebrow goes and its h1 stays for a screen reader only. */
.admin-head { margin: 0 0 16px; }
.admin-head[hidden] { display: none; }
.admin-head__title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--ink); }
.admin-head__sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.atab-panel[data-atab="outstanding"] > .eyebrow, .atab-panel[data-atab="users"] > .eyebrow, .atab-panel[data-atab="email"] > .eyebrow, .atab-panel[data-atab="stats"] > .eyebrow, .atab-panel[data-atab="cloud"] > .eyebrow, .atab-panel[data-atab="youtube"] > .eyebrow, .atab-panel[data-atab="settings"] > .eyebrow { display: none; }
/* Every admin tab's content stops at one right edge, as on board 09 (about 1152px at 1440). The tab row above it is not capped. */
.atab-panel[data-atab="outstanding"], .atab-panel[data-atab="users"], .atab-panel[data-atab="email"], .atab-panel[data-atab="stats"], .atab-panel[data-atab="cloud"], .atab-panel[data-atab="youtube"], .atab-panel[data-atab="settings"] { max-width: 1152px; }
.atab-panel[data-atab="outstanding"] > h1.page, .atab-panel[data-atab="users"] > h1.page, .atab-panel[data-atab="email"] > h1.page, .atab-panel[data-atab="stats"] > h1.page, .atab-panel[data-atab="cloud"] > h1.page, .atab-panel[data-atab="youtube"] > h1.page, .atab-panel[data-atab="settings"] > h1.page {
  position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* YouTube (youtube-admin.js): the channels tab, and the upload panel and status line on a video card.
   Every rule that sets display has its [hidden] twin, because this page has no global [hidden] rule. */
.yt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yt-toolbar { margin: 0 0 12px; }
.yt-hint { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.yt-channels { display: grid; gap: 12px; }
.yt-channel { display: grid; gap: 10px; padding: 14px 16px; }
.yt-channel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.yt-channel__icon { font-size: 20px; color: var(--fault); }
.yt-channel__title { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; color: var(--ink); }
.yt-state { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.yt-state--ok { color: var(--fixer); background: var(--inset); }
.yt-state--warn { color: var(--safelight); background: var(--safelight-wash); }
/* minmax(0, 1fr): without it the column grew to the thumbnail strip's widest row and a phone scrolled sideways. */
.yt-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.yt-field__label { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.yt-field select, .yt-field input, .yt-field textarea { width: 100%; max-width: 520px; box-sizing: border-box; font: inherit; font-size: 14px;
  padding: 7px 10px; color: var(--text); background: var(--bg-3); border: 1px solid var(--field-edge); border-radius: 8px; }
.yt-field textarea { resize: vertical; }
.yt-field select:disabled { opacity: .7; }
.yt-empty p { margin: 0; font-size: 14px; color: var(--ink-2); }
.yt-status { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.yt-status:empty, .yt-actions:empty { display: none; }
.yt-status .ph { color: var(--fault); }
.yt-line--warn { color: var(--safelight); }
.yt-line--err { color: var(--fault); }
.yt-progress { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.yt-progress progress { width: 120px; height: 6px; }
.yt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.yt-panel { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--inset); }
.yt-panel[hidden] { display: none; }
.yt-form { display: grid; gap: 10px; }
.yt-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-width: 640px; }
.yt-thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; overflow: hidden; }
.yt-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.yt-thumb.sel { border-color: var(--focus-line); }
/* What YouTube will show: the picked photo cropped to 16:9, the way the server crops it. */
.yt-crop { width: 100%; max-width: 320px; margin-top: 8px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.yt-crop[hidden] { display: none; }
.yt-crop img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Outstanding: the Waiting pill ages (ageTone in admin.page.js), and a type filter sits over the list. */
/* .badge.out-age: admin.html sets .badge colour inline after this file, so the tone needs the extra class to win. */
.badge.out-age--pending { color: var(--ink-3); background: var(--inset); }
.badge.out-age--safelight { color: var(--safelight); background: var(--safelight-wash); }
.badge.out-age--fault { color: var(--fault); background: var(--fault-wash); }
/* A reopened job says under its address why it is back (reopened-jobs.js). */
.out-why { margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--safelight); }
.out-filter { margin: 0 0 16px; }
.out-filter .num { margin-left: 2px; }

/* People: the list (Name and Status only) beside the picked person. */
.people { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.people[hidden] { display: none; }
.people__list { min-width: 0; overflow-x: auto; }
.people .seg.peopletabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 0 0 16px; }
.people .seg.peopletabs > .btn { justify-content: center; white-space: normal; text-align: center; }
.people .pl-table th:not(.pl-keep), .people .pl-table td:not(.pl-keep) { display: none; }
.people .pl-table tr[data-user], .people .pl-table tr[data-id] { cursor: pointer; }
.people .pl-table tr[data-user]:focus-visible, .people .pl-table tr[data-id]:focus-visible { outline: 2px solid var(--ink-3); outline-offset: -2px; }
.people .pl-table tr.is-picked > td { background: var(--lift); }
/* Fix round 2 (R5): the board draws the lists with no column heads and the email under each name. */
/* Fix round 3 (N11): off screen, not out of the table, so a screen reader still names each column (as Paired devices). */
.people .pl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Fix round 3 (N7): the board aligns the Status pill to the right edge of the list. */
.people .pl-table { width: 100%; }
.people .pl-table th.pl-keep:not(:first-child), .people .pl-table td.pl-keep:not(:first-child) { width: 1%; white-space: nowrap; text-align: right; }
.people .pl-table td[data-sub]::after { content: attr(data-sub); display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-3); overflow-wrap: anywhere; white-space: pre-line; }
.people__tags { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); }
.people__add > summary { cursor: pointer; padding: 10px 0; min-height: 44px; box-sizing: border-box; }
/* Fix round 1: a heading inside a summary is announced twice and breaks the outline, so the Add titles are spans. */
.people__add-title { font-size: 16px; font-weight: 600; line-height: 24px; color: var(--ink); }
.people__detail { position: sticky; top: 16px; max-width: 720px; min-width: 0; padding: 4px 0 4px 24px; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.people__detail[hidden] { display: none; }
.people__name { margin: 0 0 12px; font-size: 20px; }
/* Fix round 1 (board 09): the detail names the role over the name, a status pill beside it, and an alert strip for what needs doing. */
.people__role { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.people__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.people__head .people__name { margin: 0; }
.people__alert { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border-radius: 6px; background: var(--fault-wash); color: var(--ink-2); font-size: 14px; line-height: 20px; }
.people__alert > .ph { flex: none; margin-top: 2px; color: var(--fault); }
.people__alert p { margin: 0; }
.people__facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 14px; }
.people__facts dt { color: var(--ink-3); }
.people__facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* A row action's result, under the buttons that made it. */
.people__body .people__msg { margin: 12px 0 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.people__detail .actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* A badge among the buttons ("Has access: ...") keeps its own height and sits on the buttons' middle. */
.people__detail .actions .badge { align-self: center; white-space: nowrap; }
.people__back { display: none; }

/* Stats and Settings: controls with no spot on the board live in a menu. */
.ps-filter { margin: 0 0 12px; }
.ps-filter .dl__menu-body, .set-more .dl__menu-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.set-more { display: inline-block; margin-top: 14px; }
.settabs { margin: 0 0 16px; }

/* Cloud files: the tidy-up rows read as cards. */
.cf-alerts .cf-row { padding: 10px 12px; margin: 0 0 6px; border: 0; border-radius: 8px; background: var(--safelight-wash); }

/* Gap round (board 09). Settings > Needs a look: one row per dependency, a dot and a sentence. */
.needs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.needs__row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.needs__row:last-child { border-bottom: 0; }
.needs__row.sto-strip { flex-wrap: nowrap; align-items: flex-start; }
.needs__dot { flex: none; display: inline-block; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--ink-3); }
.needs__dot--ok, .needs__dot.sto-dot--ok { background: var(--ok); }
.needs__dot--warn, .needs__dot.sto-dot--warn { background: var(--pill-warn-fg); }
.needs__dot--fault, .needs__dot.sto-dot--low { background: var(--danger-fg); }
.needs__main { flex: 1 1 auto; min-width: 0; }
.needs__title { margin: 0; font-size: 14px; font-weight: 600; line-height: 20px; }
.needs__line, .sto-strip .needs__line { display: block; margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.needs__info { margin-top: 6px; }
.needs__info > summary { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.needs__info .sub { margin: 6px 0 0; font-size: 12px; line-height: 18px; }
.needs__acts { flex: none; display: flex; align-items: center; gap: 8px; }
.needs__acts .set-more { margin-top: 0; }
/* V2-008: a menu at the panel's left edge opens rightward, or it lands under the rail. */
.set-more--start .dl__menu-body { left: 0; right: auto; }

/* Settings > Sign in security: the rules in an info card, who is held now as red cards. */
.set-info { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: 10px; background: var(--inset); }
.set-info > .ph { flex: none; font-size: 20px; line-height: 20px; color: var(--ink-2); }
.set-info .sub { margin: 0 0 4px; }
.sec-cards { border-collapse: separate; border-spacing: 0 6px; }
.sec-cards tbody td { border-bottom: 0; background: var(--fault-wash); }
.sec-cards tbody td:first-child { border-radius: 10px 0 0 10px; }
.sec-cards tbody td:last-child { border-radius: 0 10px 10px 0; }

/* Settings > Paired devices: rows with an icon tile; the head stays for screen readers only. */
.set-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.set-list td { vertical-align: middle; border-bottom: 1px solid var(--rule-soft); }
.set-list td.dev-ico { width: 36px; padding-right: 0; }
.dev-ico .ph { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--inset); font-size: 18px; color: var(--ink-2); }

/* Cloud files: To tidy cards tinted by tone, the client rows, the counts folded away. */
.cf-tidy-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
/* Fix round 1: To tidy and By client are the board's small labels, not 40px-padded section titles. */
.cf-tidy-head__title, .cf-label { margin: 0; padding: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 16px; text-transform: uppercase; color: var(--ink-3); }
.cf-label { margin: 24px 0 10px; }
.cf-tidy-head__count { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
/* Fix round 2 (R3): the open client reads as the board's job card, each file a row with its state in its tone. */
#cloudTree .cf-job { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; margin: 0 0 12px 40px; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--tray); box-shadow: var(--lift-shadow); }
/* Fix round 3 (N6): Download all and Copy all sit right of the address, as drawn; the rest of the card runs full width. */
#cloudTree .cf-job > * { grid-column: 1 / -1; }
#cloudTree .cf-job > .cf-job-head { grid-column: 1; }
#cloudTree .cf-job-head strong { font-size: 14px; font-weight: 600; }
#cloudTree .cf-job-head .cf-dim { flex-basis: 100%; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
#cloudTree .cf-job > .cf-acts { grid-column: 2; grid-row: 1; margin: 0; justify-content: flex-end; }
#cloudTree .cf-file { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
#cloudTree .cf-file:last-child { border-bottom: 0; }
#cloudTree .cf-file > .ph-file { grid-row: 1 / span 2; font-size: 16px; color: var(--ink-3); }
#cloudTree .cf-file > .cf-name { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
#cloudTree .cf-file > .cf-dim, #cloudTree .cf-file > .cf-fail { grid-column: 2; font-size: 11px; }
#cloudTree .cf-file > .cf-dim { color: var(--ink-3); }
#cloudTree .cf-file > .cf-state { grid-column: 3; grid-row: 1; text-align: right; font-size: 12px; font-weight: 500; }
#cloudTree .cf-file > .cf-acts { grid-column: 3; grid-row: 2; justify-content: flex-end; }
.cf-state--copied { color: var(--ok); }
.cf-state--in-cloud { color: var(--pill-warn-fg); }
.cf-state--uploading { color: var(--twilight); }
.cf-state--replaced { color: var(--ink-3); }
/* Fix round 3 (N10): "Copy asked for" is not on the NAS yet, so it waits in amber like Waiting for the office. */
.cf-state--recopy { color: var(--pill-warn-fg); }
.tab-count { margin-left: 4px; font-size: 12px; font-weight: 600; }
.tab-count--fault { color: var(--fault); }
.tab-count[hidden] { display: none; }
.cf-alerts .cf-card { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 12px; padding: 12px 16px; margin: 0 0 8px; border-radius: 10px; }
.cf-alerts .cf-card[data-tone="fault"] { background: var(--fault-wash); }
.cf-card__ico { flex: none; font-size: 18px; line-height: 20px; color: var(--pill-warn-fg); }
.cf-card__title { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--pill-warn-fg); }
.cf-card[data-tone="fault"] .cf-card__ico, .cf-card[data-tone="fault"] .cf-card__title { color: var(--danger-fg); }
.cf-card__main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.cf-card .cf-key { font-family: var(--font-mono); font-size: 12px; }
#cloudTree .cf-client > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border-bottom: 1px solid var(--rule-soft); cursor: pointer; list-style: none; }
#cloudTree .cf-client > summary::-webkit-details-marker { display: none; }
.cf-client__name { font-weight: 600; }
/* Fix round 3 (N6): the count sits on the right of the client row, before the caret, as drawn. */
.cf-client__meta { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-3); }
.cf-client__caret { color: var(--ink-3); transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (prefers-reduced-motion: reduce) {
  .cf-client__caret { transition: none; }
}
.cf-client[open] > summary .cf-client__caret { transform: rotate(180deg); }
.cf-more { margin-top: 24px; }
.cf-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--ink-2); cursor: pointer; }

/* People: the Add disclosures sit under their list. */
.people__list .people__add { margin-top: 16px; }

/* Email and Stats: a long intro is one quiet line that opens. */
.help-toggle { margin: 0 0 14px; }
.help-toggle > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13px; color: var(--ink-3); cursor: pointer; }
.help-toggle .sub { margin: 6px 0 0; max-width: 72ch; }

/* Stats > Turnaround: inline bars, green under 2.0 days and amber from it; the change rate amber. */
.ta-cell { white-space: nowrap; }
.ta-bar { display: inline-block; width: 64px; height: 6px; margin-right: 8px; vertical-align: middle; border-radius: 3px; background: var(--rule-soft); overflow: hidden; }
.ta-bar > span { display: block; height: 100%; background: var(--ok); }
.ta-bar--warn > span { background: var(--pill-warn-fg); }

@media (max-width: 767px) {
  .admin-head__title { font-size: 24px; line-height: 30px; }
  .admin-head__more { display: none; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .people.is-detail .people__list { display: none; }
  .people:not(.is-detail) .people__detail { display: none; }
  .people__detail { position: static; padding: 0; border-left: 0; }
  /* The chase list on a phone: each row a stacked card, address and age on top, then type, who and when, then the action. */
  .atab-panel[data-atab="outstanding"] thead { display: none; }
  .atab-panel[data-atab="outstanding"] table { min-width: 0; width: 100%; }
  .atab-panel[data-atab="outstanding"] tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  /* Fix round 1: the card rule above sets display, which beats the bare hidden attribute the type filter sets. */
  .atab-panel[data-atab="outstanding"] tbody tr[hidden] { display: none; }
  .atab-panel[data-atab="outstanding"] tbody td { display: block; padding: 0; border: 0; }
  .atab-panel[data-atab="outstanding"] tbody td:nth-child(2) { order: 1; flex: 0 0 calc(100% - 112px); min-width: 0; font-size: 15px; font-weight: 600; }
  /* Address and age fill the first line exactly, so type, who and when always start the second. */
  .atab-panel[data-atab="outstanding"] tbody td:nth-child(1) { order: 2; flex: 0 0 104px; text-align: right; }
  .atab-panel[data-atab="outstanding"] tbody td:nth-child(4) { order: 3; }
  .atab-panel[data-atab="outstanding"] tbody td:nth-child(3) { order: 4; }
  .atab-panel[data-atab="outstanding"] tbody td:nth-child(5) { order: 5; }
  .atab-panel[data-atab="outstanding"] tbody td:nth-child(3)::before { content: "\00B7  sent to "; }
  .atab-panel[data-atab="outstanding"] tbody td:nth-child(5)::before { content: "\00B7  "; }
  .atab-panel[data-atab="outstanding"] tbody td:nth-child(3), .atab-panel[data-atab="outstanding"] tbody td:nth-child(4), .atab-panel[data-atab="outstanding"] tbody td:nth-child(5) { font-family: inherit; font-size: 12px; color: var(--ink-3); }
  .atab-panel[data-atab="outstanding"] tbody td.acts { order: 6; flex-basis: 100%; margin-top: 8px; text-align: left; }
  .atab-panel[data-atab="outstanding"] tbody td.acts .btn { min-height: 44px; }
  .people__back { display: inline-flex; min-height: 44px; margin: 0 0 12px; }
  .people__facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .people__facts dd { margin-bottom: 8px; }
  .dr-tab .seg.peopletabs > .btn, .dr-tab .seg.settabs > .btn, .dr-tab .seg.out-filter > .btn { min-height: 44px; }
  .people__detail .actions .btn { min-height: 44px; }
  /* Gap round: phone targets on the new rows, and Sent mail as cards: subject and status, then to and when. */
  /* Fix round 1: a grid keeps the dot beside the title. Fix round 2 (R4): the action keeps its own column to
     the right of the sentence, as board 09 draws Run a drill now. */
  .needs > .needs__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 10px; }
  .needs > .needs__row[hidden] { display: none; }
  .needs__acts { grid-column: 3; align-self: start; padding-left: 0; flex-wrap: wrap; justify-content: flex-end; }
  .needs__acts .btn, .needs__acts .dl__menu-btn { min-height: 44px; }
  .needs__info > summary, .help-toggle > summary, .cf-more > summary { min-height: 44px; }
  .set-list .btn, .sec-cards .btn, .cf-card .btn { min-height: 44px; }
  /* Final review M5: the action drops under the card, lined up with the title past the icon, as board 09 draws it. */
  .cf-alerts .cf-card { flex-wrap: wrap; }
  .cf-alerts .cf-card__main { flex-basis: calc(100% - 30px); }
  .cf-alerts .cf-card > .btn { margin-left: 30px; }
  .atab-panel[data-mailtab="sent"] thead { display: none; }
  .atab-panel[data-mailtab="sent"] table { min-width: 0; width: 100%; }
  .atab-panel[data-mailtab="sent"] tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .atab-panel[data-mailtab="sent"] tbody tr[hidden] { display: none; }
  .atab-panel[data-mailtab="sent"] tbody td { display: block; padding: 0; border: 0; }
  .atab-panel[data-mailtab="sent"] tbody td:nth-child(3) { order: 1; flex: 1 1 calc(100% - 112px); min-width: 0; font-size: 15px; font-weight: 600; }
  .atab-panel[data-mailtab="sent"] tbody td:nth-child(4) { order: 2; }
  .atab-panel[data-mailtab="sent"] tbody td:nth-child(2) { order: 3; font-size: 12px; color: var(--ink-3); }
  .atab-panel[data-mailtab="sent"] tbody td:nth-child(1) { order: 4; font-size: 12px; color: var(--ink-3); }
  .atab-panel[data-mailtab="sent"] tbody td:nth-child(1)::before { content: "\00B7  "; }
  /* Fix round 3 (N1): the card keeps the board's 8px phone indent, and each file's buttons take a row of their
     own under the name, so the name and size get the width. N6: the job buttons drop under the job head. */
  #cloudTree .cf-job { margin: 0 0 12px 8px; padding: 12px; }
  #cloudTree .cf-job > .cf-acts { grid-column: 1 / -1; grid-row: auto; margin: 8px 0 4px; flex-wrap: wrap; justify-content: flex-start; }
  #cloudTree .cf-file > .cf-acts { grid-column: 2 / -1; grid-row: auto; flex-wrap: wrap; justify-content: flex-start; margin-top: 4px; }
  #cloudTree .cf-acts .btn { min-height: 44px; }
  /* Fix round 3 (N4): Turnaround By person as the board's stacked rows: the name with the average on the right,
     a meta line, then the bar. The heads leave the screen but stay for a screen reader. */
  .ta-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .ta-table { min-width: 0; width: 100%; }
  #taRows > tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  #taRows > tr > td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; }
  #taRows > tr > td.ta-who { order: 1; flex: 1 1 0; min-width: 0; font-size: 14px; font-weight: 600; }
  #taRows > tr > td.ta-avg { display: contents; }
  #taRows .ta-avg > .ta-val { order: 2; margin-left: auto; font-size: 14px; font-weight: 600; }
  /* Fix round 4 (N17): the figure takes the bar's tone, green under 2 days and amber from 2, as the board draws it. */
  #taRows .ta-val--ok { color: var(--pill-ok-fg); }
  #taRows .ta-val--warn { color: var(--pill-warn-fg); }
  #taRows > tr::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  #taRows > tr > td:nth-child(2), #taRows > tr > td[data-label] { order: 4; font-size: 12px; font-family: var(--font-sans); color: var(--ink-3); }
  /* Fix round 4 (N13): each label is its column head's word, as the table reads today. */
  #taRows > tr > td[data-label]::before { content: "\00B7  " attr(data-label) " "; }
  /* Fix round 4 (N16): the Delivered cell carries no data-label on purpose. Round 4's mono test pins it as exactly
     <td class="num">, so its label lives here and keys on its place. Keep this the second column: if the columns
     are ever reordered, move this rule with it, or the label lands on the wrong figure. */
  #taRows > tr > td:nth-child(2)::before { content: "Delivered "; }
  #taRows .ta-avg > .ta-bar { order: 5; flex: 0 0 100%; width: 100%; margin: 6px 0 0; }
  #taRows .ta-chg .ta-bar { display: none; }
  #taRows > tr > td.adm-empty { flex: 1 1 100%; }
}

/* ---- Darkroom layout: Financials (board 08) ----
 * The page head over every pill, the tab row with its dots, the search and the period popup, the Jobs
 * list beside the open job, and the Setup footer with its one Save changes. Tokens only. */
#main .dr-tab[data-atab="financials"] > .eyebrow { display: none; }
#main .atab-panel.fin-head { display: block; margin: 0 0 20px; }
/* The rule above outranks admin.html's .atab-panel[hidden], so the head needs its own hidden rule. */
#main .atab-panel.fin-head[hidden] { display: none; }
.fin-head-t { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.fin-head-s { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
/* Board 08 at 1440 (Task 12a): the title block sits on #main's own 24px padding, the hero row 16px under it
 * with the net figure beside the bars, bottoms aligned, and the tab row 20px below. */
#main .fin-head .fin-hero { margin-top: 16px; gap: 40px; }
#main .fin-head .fin-hero-v { margin-top: 8px; line-height: 1; }
#main .fin-head .fin-netbars { gap: 12px; }
#main .fin-head .fin-netkeys { gap: 12px; margin-top: 8px; }

#main .atab-panel.fintabs { align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.fin-tablist { display: flex; gap: 4px; flex-wrap: wrap; }
.fin-tabtools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.fin-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.fin-dot[hidden] { display: none; }
.fin-dot--bad { background: var(--fault); }
.fin-dot--warn { background: var(--safelight); }
.fin-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 15px;
  color: var(--ink-3); pointer-events: none; }
/* Board 08 draws this box like the top search: a filled box, not a pill. */
#main .fin-tabtools .fin-search-in { padding-left: 34px; width: 260px; height: 36px; border-radius: 8px;
  background: var(--inset); border-color: var(--field-edge); }
#main .fin-tabtools .fin-search-in:focus { border-color: var(--twilight); }
/* Any search box with the glass in front keeps room for it, wherever the box sits (the Scenarios
 * toolbar too). Comes after admin.html's own padding rule and outranks it. */
#main .fin-search-ico ~ .fin-search-in { padding-left: 34px; }

.fin-period-wrap { position: relative; }
.fin-period-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; white-space: nowrap; }
.fin-period-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 320px;
  display: grid; gap: 16px; padding: 16px; border-radius: 10px; background: var(--lift);
  box-shadow: var(--lift-shadow), var(--rail-shadow); }
.fin-period-pop[hidden] { display: none; }
.fin-period-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.fin-period-presets .fin-chip[aria-pressed="true"] { background: var(--twilight-wash); color: var(--ink); }
.fin-period-dates { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.fin-period-dates .fin-lab { font-size: 13px; color: var(--ink-2); }

/* Jobs: a grouped list on the left, the open job on the right. */
.fin-jobs { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0; margin-top: -18px; min-height: 420px; }
.fin-jobs-list { border-right: 1px solid var(--rule); padding: 8px 0; min-width: 0; background: var(--tray); }
.fin-found { padding: 4px 16px; }
.fin-found:empty { display: none; }
.fin-found-t { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.fin-found-h { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.fin-jl-group + .fin-jl-group { margin-top: 8px; }
.fin-jl-gh { display: flex; justify-content: space-between; padding: 12px 16px 6px; }
.fin-jl-gt { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fin-jl-gn { font-size: 12px; color: var(--ink-3); }
.fin-jl-row { appearance: none; display: grid; gap: 4px; width: 100%; padding: 10px 16px; border: 0;
  border-left: 2px solid transparent; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.fin-jl-row:hover { background: var(--hover-bg); }
.fin-jl-row:active { transform: scale(.97); }
.fin-jl-row.is-on { background: var(--lift); border-left-color: var(--twilight); }
.fin-jl-row:focus-visible { outline: 2px solid var(--twilight); outline-offset: -2px; }
.fin-jl-top, .fin-jl-sub { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.fin-jl-street { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-jl-sub { font-size: 12px; color: var(--ink-3); }
.fin-jl-con { font-size: 14px; font-weight: 500; }
.fin-jl-con--ok, .fin-jd-con-v--ok { color: var(--fixer); }
.fin-jl-con--warn, .fin-jd-con-v--warn { color: var(--safelight); }
.fin-jl-con--muted, .fin-jd-con-v--muted { color: var(--ink-3); }
.fin-jl-bar, .fin-jd-bar { display: block; height: 3px; border-radius: 2px; background: var(--fixer-wash); overflow: hidden; }
.fin-jl-bar > i, .fin-jd-bar > i { display: block; height: 100%; background: var(--ink-3); }
.fin-jl-issue { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.fin-jl-issue--fault { color: var(--fault); }
.fin-jl-issue--warn { color: var(--safelight); }
.fin-jl-issue--wait { color: var(--ink-2); }

.fin-jobs-detail { padding: 24px 32px 32px; min-width: 0; }
.fin-jd-back { display: none; }
.fin-jd-meta { margin: 0; font-size: 13px; color: var(--ink-3); }
.fin-jd-h { margin: 6px 0 20px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
/* Board 08: the contribution figure, with its revenue and cost lines beside it, not under it. */
.fin-jd-con { display: flex; align-items: flex-end; justify-content: flex-start; gap: 24px; max-width: 640px; margin-bottom: 12px; }
.fin-jd-con-k { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fin-jd-con-v { margin-top: 4px; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.fin-jd-con-s { margin: 6px 0 12px; font-size: 14px; color: var(--ink-2); }
.fin-jd-con-side { text-align: left; padding-bottom: 6px; }
.fin-jd-con-l { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.fin-jd-bar { height: 6px; max-width: 520px; }
.fin-jd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; }
.fin-jd-cost-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 14px; }
.fin-jd-cost-k { color: var(--ink-2); }
.fin-jd-cost-row--sum { border-bottom: 0; font-weight: 600; }
.fin-jd-cost-row--sum .fin-jd-cost-k { color: var(--ink); }
/* The words on the left, the fix button on the right of the card (board 08). */
.fin-jd-issue { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin-top: 8px; padding: 12px 14px; border-radius: 8px; border-left: 2px solid var(--safelight); background: var(--safelight-wash); }
.fin-jd-issue--fault { border-left-color: var(--fault); background: var(--fault-wash); }
.fin-jd-issue--wait { border-left-color: var(--ink-3); background: var(--rule-soft); }
.fin-jd-issue-t { font-size: 14px; font-weight: 500; color: var(--ink); }
.fin-jd-issue-h { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.fin-jd-act { white-space: nowrap; }

/* The headline's weekly bars: board 08 draws each about 82px wide, set left, never stretched to fill. */
#main .fin-head .fin-netbar, #main .fin-head .fin-netkeys span { flex: 0 1 82px; max-width: 82px; }
/* When every week sits on one side, only that half is drawn, so the axis moves to its edge. */
#main .fin-head .fin-netbars--up::before { top: auto; bottom: 0; }
#main .fin-head .fin-netbars--down::before { top: 0; }

/* Board 08's People: a month toggle and a list grouped by role, beside the open person. It reuses
   the Jobs list and detail frame (.fin-jobs), so the phone swap is the same rule. */
.fin-people { grid-template-columns: 360px minmax(0, 1fr); margin-top: 0; }
/* The months as board 08 draws them: one segmented control on an inset tray, the chosen month
   raised on --lift with its shadow (re-review R17). */
.fin-pp-months { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: calc(100% - 32px); margin: 8px 16px 4px;
  padding: 3px; border-radius: 8px; background: var(--inset); }
.fin-pp-months > .fin-pp-month { appearance: none; height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent;
  box-shadow: none; color: var(--ink-3); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.fin-pp-months > .fin-pp-month:hover { color: var(--ink); }
.fin-pp-months > .fin-pp-month:active { transform: scale(.97); }
.fin-pp-months > .fin-pp-month:focus-visible { outline: 2px solid var(--twilight); outline-offset: 2px; }
.fin-pp-months > .fin-pp-month[aria-pressed="true"] { background: var(--lift); box-shadow: var(--lift-shadow); color: var(--ink); }
.fin-pp-row { appearance: none; display: grid; gap: 4px; width: 100%; padding: 10px 16px; border: 0;
  border-left: 2px solid transparent; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.fin-pp-row:hover { background: var(--hover-bg); }
.fin-pp-row:active { transform: scale(.97); }
.fin-pp-row.is-on { background: var(--lift); border-left-color: var(--twilight); }
.fin-pp-row:focus-visible { outline: 2px solid var(--twilight); outline-offset: -2px; }
.fin-pp-top { display: flex; justify-content: space-between; gap: 12px; min-width: 0; font-size: 14px; font-weight: 500; }
.fin-pp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-pp-sub { font-size: 12px; color: var(--ink-3); }
.fin-pp-bar { display: block; height: 3px; border-radius: 2px; background: var(--rule-soft); overflow: hidden; }
.fin-pp-bar > i { display: block; height: 100%; background: var(--twilight); }
.fin-pp-back { display: none; }
/* The detail runs 800px wide, as board 08 caps it (re-review R16). */
.fin-pp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 800px; margin-bottom: 28px; }
.fin-pp-kpi { padding: 12px 14px; border-radius: 8px; background: var(--tray); }
.fin-pp-kpi-k { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fin-pp-kpi-v { margin-top: 4px; font-size: 22px; font-weight: 600; color: var(--ink); }
.fin-pp-native { margin: -16px 0 24px; font-size: 13px; color: var(--ink-2); }
.fin-pp-jobs-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; max-width: 800px; }
.fin-pp-jobs { max-width: 800px; }
.fin-pp-job { appearance: none; display: grid; grid-template-columns: 72px minmax(0, 1fr) 120px 96px; align-items: center; gap: 16px;
  width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule-soft); background: transparent;
  color: var(--ink); text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.fin-pp-job:hover .fin-pp-job-a { color: var(--twilight); }
.fin-pp-job:focus-visible { outline: 2px solid var(--twilight); outline-offset: 2px; }
.fin-pp-job-a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-pp-job-d { font-size: 13px; color: var(--ink-3); }
.fin-pp-job-s { font-size: 12px; color: var(--ink-2); }
.fin-pp-job-s--warn { color: var(--safelight); }
.fin-pp-job-s--ok { color: var(--fixer); }
.fin-pp-job-v { text-align: right; }
.fin-pp-kpi-s { margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.fin-jd-none { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.fin-jd-empty { padding: 24px 0; }
.fin-jd-empty-t { font-size: 15px; font-weight: 500; color: var(--ink); }
.fin-jd-empty-s { margin-top: 4px; font-size: 13px; color: var(--ink-3); }

.fin-jobs-more { margin-top: 24px; }
.fin-jobs-more-s { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.fin-jobs-more-s:hover { color: var(--ink); }
.fin-jobs-more-s:focus-visible { outline: 2px solid var(--twilight); outline-offset: 2px; border-radius: 4px; }

/* The range in force, said on Jobs and the Watchlist. On a wide screen the period button says it. */
.fin-range-note { display: none; }

/* Setup, as board 08 draws it: plain sections, and one row per person under Name, Type, Per job and
   Uploader usernames. The tier rates sit in a fold under the row, opened from the Per job cell. */
#main .fin-setup-sec { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; margin-bottom: 32px; }
.fin-people-table { display: grid; max-width: 1000px; }
.fin-people-head, #finPeople .fin-person { display: grid; grid-template-columns: 1.2fr 130px 104px 2.2fr; gap: 0 16px; align-items: start; }
.fin-people-head { padding: 0 0 8px; border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
#finPeople .fin-person { padding: 12px 0; margin: 0; border: 0; border-bottom: 1px solid var(--rule-soft); border-radius: 0; background: transparent; }
.fin-person-c { min-width: 0; display: grid; gap: 4px; }
.fin-person-lab { display: none; }
#finPeople .fin-person-name .fin-person-idtxt { color: var(--ink-3); }
.fin-person-rates-btn { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0;
  border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.fin-person-rates-btn:hover { color: var(--ink); }
.fin-person-rates-btn:focus-visible { outline: 2px solid var(--twilight); outline-offset: 2px; border-radius: 4px; }
.fin-person-rates-btn .ph { transition: transform var(--dur-fast) var(--ease); }
.fin-person-rates-btn[aria-expanded="true"] .ph { transform: rotate(180deg); }
.fin-person-rates { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--tray); }
.fin-person-rates[hidden] { display: none; }
#finPeople .fin-person-rates .fin-person-meta { display: flex; align-items: center; gap: 8px; }
/* The old card's top margins would drop the usernames box below the name box in a table row. */
#finPeople .fin-usernames { margin-top: 0; }
#finPeople .fin-usernames .input { margin-top: 0; }
.fin-person-rates-btn > span { display: grid; gap: 2px; }
.fin-person-rates-n { font-size: 12px; color: var(--ink-3); }

/* Setup: the red line under a contractor with no username, and the one Save changes. */
.fin-uname-warn { margin: 6px 0 0; font-size: 13px; color: var(--fault); }
.fin-uname-warn[hidden] { display: none; }
#main .fin-uname-bad { box-shadow: 0 0 0 1px var(--fault); }
.fin-setup-foot { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end;
  gap: 12px; margin-top: 24px; padding: 12px 0; background: var(--ground); border-top: 1px solid var(--rule); }
.fin-setup-status { margin-right: auto; font-size: 13px; color: var(--ink-3); }
.fin-setup-status--dirty { color: var(--safelight); }
.fin-setup-status--bad { color: var(--fault); }
.fin-more { position: relative; }
.fin-more > summary { list-style: none; }
.fin-more > summary::-webkit-details-marker { display: none; }
.fin-more-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; display: grid; gap: 4px; min-width: 200px;
  padding: 8px; border-radius: 10px; background: var(--lift); box-shadow: var(--lift-shadow), var(--rail-shadow); }

@media (max-width: 767px) {
  /* Board 08 at 390: the hero starts on #main's own 20px padding, the figure 16px over its bars. */
  #main .atab-panel.fin-head { margin-top: 0; }
  .fin-head-l { display: none; }
  #main .fin-head .fin-hero { margin-top: 0; gap: 16px; }
  /* Board 08 at 390: the search sits over the pill row, and only the pills scroll sideways. */
  #main div.atab-panel.fintabs { flex-direction: column-reverse; flex-wrap: nowrap; align-items: stretch; overflow: visible;
    background: none; border-bottom: 0; padding-bottom: 0; }
  .fin-tablist { flex-wrap: nowrap; overflow-x: auto; scroll-padding-inline: 16px; padding-inline-end: 16px; }
  .fin-range-note:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px;
    font-size: 13px; color: var(--ink-2); }
  .fin-range-note .fin-range-clear { min-height: 44px; }
  .fin-people-head { display: none; }
  #finPeople .fin-person { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  #finPeople .fin-person-name, #finPeople .fin-usernames, .fin-person-rates { grid-column: 1 / -1; }
  .fin-person-lab { display: block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  #finPeople .fin-person .input, #finPeople .fin-person select, .fin-person-rates-btn { min-height: 44px; }
  .fin-tabtools { width: 100%; margin-left: 0; }
  .fin-jobs { margin-top: 0; }
  .fin-jobs-list { background: transparent; }
  #main .fin-tabtools .fin-search { flex: 1 1 auto; min-width: 0; }
  #main .fin-tabtools .fin-search-in { width: 100%; height: 44px; }
  /* Board 08 at 390 sets the figure cards two by two. */
  #main .fin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-period-btn { min-height: 44px; }
  /* Board 08 at 390 has no period button: the dates are set from each panel's own boxes there. */
  #main .fin-period-wrap { display: none; }
  /* Kept above the fixed tab bar (72px tall, plus the safe area) for any route that opens it. */
  .fin-period-pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: calc(72px + env(safe-area-inset-bottom) + 16px);
    width: auto; z-index: 41; }
  /* Setup's Save bar sticks above the tab bar, not under it. */
  .fin-setup-foot { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .fin-period-presets .fin-chip, #finRangeApply, .fin-period-dates .input { min-height: 44px; }
  .fin-jobs { grid-template-columns: minmax(0, 1fr); border: 0; background: transparent; min-height: 0; }
  .fin-jobs-list { border-right: 0; padding: 0; }
  .fin-jobs[data-view="list"] .fin-jobs-detail { display: none; }
  .fin-jobs[data-view="detail"] .fin-jobs-list { display: none; }
  .fin-jl-row { min-height: 44px; padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--rule-soft); }
  .fin-jl-row.is-on { background: transparent; }
  .fin-jl-gh { padding: 16px 0 6px; }
  .fin-found { padding: 4px 0; }
  .fin-jobs-detail { padding: 0; }
  .fin-jd-back { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0;
    background: transparent; color: var(--twilight); font: inherit; font-size: 14px; cursor: pointer; }
  .fin-jd-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fin-jd-act, .fin-jobs-more-s { min-height: 44px; }
  .fin-setup-foot .btn { min-height: 44px; }
  /* The headline bars narrow to fit 390. The key keeps its month name ("26 Oct", never "26/10", which a
     40px slot cut to "26/1" and read as January) and may spill past its slot rather than be clipped:
     at most every other slot is labelled once there are more than eight bars, so the spill lands on
     an empty neighbour. */
  #main .fin-head .fin-netbar, #main .fin-head .fin-netkeys span { flex: 0 1 40px; max-width: 40px; }
  #main .fin-head .fin-netkeys span { overflow: visible; font-size: 10.5px; }
  /* Eight 40px bars only fit 390 on the narrower 6px step. */
  #main .fin-head .fin-netbars, #main .fin-head .fin-netkeys { gap: 6px; }
  .fin-jd-con { flex-wrap: wrap; align-items: flex-start; }
  .fin-jd-con-side { text-align: left; }
  .fin-people { grid-template-columns: minmax(0, 1fr); }
  .fin-pp-months { max-width: 100%; margin: 8px 0; }
  .fin-pp-months > .fin-pp-month { min-height: 44px; }
  .fin-pp-row { min-height: 44px; padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--rule-soft); }
  .fin-pp-row.is-on { background: transparent; }
  .fin-pp-back { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0;
    background: transparent; color: var(--twilight); font: inherit; font-size: 14px; cursor: pointer; }
  .fin-pp-kpis { gap: 8px; }
  .fin-pp-kpi { padding: 10px; }
  .fin-pp-kpi-v { font-size: 17px; }
  .fin-pp-job { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 2px 12px; }
  .fin-pp-job-d { grid-column: 1; grid-row: 1; }
  .fin-pp-job-a { grid-column: 2; grid-row: 1; }
  .fin-pp-job-v { grid-column: 3; grid-row: 1; }
  .fin-pp-job-s { grid-column: 2 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .fin-jl-row, .fin-pp-row, .fin-person-rates-btn .ph { transition: none; }
  .fin-pp-months > .fin-pp-month { transition: none; }
}
/* ---- end Financials layout (board 08) ---- */
