/* CUE "Black with the CUE red": a switchable alternative look, for comparison with the approved cream look.
   Nothing here applies unless the root element carries data-look="night" (set by the small script in index.html:
   ?look=night turns it on and remembers it, ?look=day turns it off). The default look is untouched.

   The idea: ink is the ground on the key homepage sections and on every signed-in screen, with near-white lettering.
   Cream and sand stay for contrast in a few places (the one white card, the sand "How it works", the questions).
   The CUE red (#E7352A, the logo dot and the day look's red) is the only accent, for small marks only: link arrows,
   the state dot, unread dots, ticks, the ring on the next step of a timeline, focus rings, the page-loading line.
   Red is never used for small text on ink (4.4:1 on #141312 is below 4.5:1), so all lettering stays cream-white.
   (Until 15 Oct 2026 this accent was an orange, #EA8F45; Nawwar: it did not match the site.)
   Type, spacing, radius and components are the system's own; only colours change.

   How it works: a "dark scope" re-maps the system's colour tokens (--ink becomes the lettering, --cream the ground,
   --sand and --paper the raised surfaces), so every component inside follows. The one white card and video posters
   restore the light tokens inside them. Three helper properties carry what the remap cannot:
   --on   text on a surface filled with var(--ink) (white in the light look, ink in the dark scope)
   --acc  the red accent (unset outside dark scopes, so each rule falls back to the system's colour)
   --cf   the real cream, for .x-btn.cream on ink

   Since 14 Oct 2026 the night look is what every visitor whose phone or computer is in dark mode sees, on every page.
   Everything below sits in @media screen, so printing (a receipt, a page) always uses the day look. */
@media screen{

html[data-look="night"]{
  --night-red:#E7352A;      /* the one accent: the CUE red (system.css --red) */
  --night:#141312;          /* the ground: CUE ink */
  --night-up:#1F1D1B;       /* fields, search, compose, account menu */
  --night-soft:#2A2825;     /* the soft panel, avatars, secondary buttons (ink2) */
  --night-line:#2E2C29;     /* the only hairline on ink */
  --night-text:#F5F1EB;     /* lettering: cream-white, warmer than pure white on near-black */
  --night-stone:#A39E95;    /* secondary text on ink, 6.9:1 */
  background:#141312;
}
html[data-look="night"] body{background:#141312}
html[data-look="night"] body:has(.cue > .hdr){background:#F5F1EB}
html[data-look="night"] body:has(.cue > .hdr):not(:has(.hm-hero, .fc-hero)){background:#141312}

/* ------------------------------------------------------------------ dark scopes */
/* signed-in screens (brand, creator, admin shells), the public header, and chosen public sections */
html[data-look="night"] .cue:has(> .app),
html[data-look="night"] .cue:has(> .hdr):not(:has(.hm-hero, .fc-hero)),
html[data-look="night"] .cue .hdr,
html[data-look="night"] .cue .x-ink,
html[data-look="night"] .cue .x-end,
html[data-look="night"] .cue .hm-hero,
html[data-look="night"] .cue .fc-hero,
html[data-look="night"] .cue .wrap:has(> .hm-brands),
html[data-look="night"] .cue .wrap:has(> .fc-brands),
html[data-look="night"] .cue .hm-dealsec,
html[data-look="night"] .cue .fc-mem{
  --ink:var(--night-text);--cream:var(--night);--paper:var(--night-up);--sand:var(--night-soft);--ink2:#36332F;--soft:var(--night-soft);
  --stone:var(--night-stone);--onk:var(--night-stone);--line:var(--night-line);
  --on:#141312;--acc:var(--night-red);--cf:#F5F1EB;--tk:var(--night-soft);--ring:rgba(245,241,235,.14);
  background:#141312;color:var(--night-text);color-scheme:dark;
}
/* light islands inside a dark scope: the one white card (and its sand variant), video posters */
html[data-look="night"] .cue .x-card,
html[data-look="night"] .cue .x-poster,
html[data-look="night"] .cue .apanel .x-card,
html[data-look="night"] .cue .x-sand.sp-ct,
html[data-look="night"] .cue .x-ink.pr-job{
  --ink:#141312;--cream:#F5F1EB;--paper:#FFFFFF;--sand:#E4DACB;--ink2:#2A2825;--soft:#2A2825;--stone:#5B5B56;--onk:#C9C4BA;--line:#E0D9CD;
  --on:#fff;--acc:initial;--cf:initial;--tk:initial;
  color:#141312;color-scheme:light;
}
html[data-look="night"] .cue .x-card{background:var(--paper);--ring:initial}
html[data-look="night"] .cue .x-card.sand{background:var(--sand)}

/* full-bleed: public sections that are a .wrap (max 1320) carry their ink to both edges of the screen */
html[data-look="night"] .cue .hm-hero,
html[data-look="night"] .cue .fc-hero,
html[data-look="night"] .cue .wrap:has(> .hm-brands),
html[data-look="night"] .cue .wrap:has(> .fc-brands),
html[data-look="night"] .cue .hm-dealsec,
html[data-look="night"] .cue .fc-mem{box-shadow:0 0 0 100vmax #141312;clip-path:inset(-1px -100vmax)}

/* ------------------------------------------------------------------ the homepage and /for-creators */
/* rhythm, top to bottom: ink hero and brands line | cream "for brands" | ink "for creators" | sand "how it works" |
   ink "one payment" with the white card | cream questions | ink footer. /for-creators follows the same beat
   (ink hero | cream open briefs and full price | ink "agreed in writing" | sand how | ink membership | cream questions). */
html[data-look="night"] .cue .hdr{background:#141312;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-look="night"] .cue .mpanel{background:#141312;border-bottom:1px solid var(--night-line);box-shadow:0 32px 40px -32px rgba(0,0,0,.6)}
html[data-look="night"] .cue .hm-hero,html[data-look="night"] .cue .fc-hero{padding-bottom:0}
html[data-look="night"] .cue .wrap:has(> .hm-brands),
html[data-look="night"] .cue .wrap:has(> .fc-brands){padding-top:var(--s7);padding-bottom:var(--s3)}
html[data-look="night"] .cue .hm-brands,html[data-look="night"] .cue .fc-brands{margin-top:0;border-bottom:0}
html[data-look="night"] .cue .hm-brands .x-marq-awakn,html[data-look="night"] .cue .fc-brands .x-marq-awakn,html[data-look="night"] .cue .hm-brands .x-marq-mismo,html[data-look="night"] .cue .fc-brands .x-marq-mismo{filter:invert(1);opacity:1}
html[data-look="night"] .cue .hm-brands span,html[data-look="night"] .cue .fc-brands span{opacity:1}
/* captions under the hero reel: white (Nawwar, 2026-10-14: not orange) */
html[data-look="night"] .cue .hm-reel figcaption,html[data-look="night"] .cue .fc-reel figcaption{color:#fff}
html[data-look="night"] .cue .hm-dealsec,html[data-look="night"] .cue .fc-mem{margin-top:var(--s7);padding-bottom:var(--s7)}
html[data-look="night"] .cue .x-sand + .hm-dealsec,html[data-look="night"] .cue .x-sand + .fc-mem{margin-top:0}
html[data-look="night"] .cue .fc-mem .x-pairs dt{color:var(--night-stone)}
/* the first membership label and the footer headings: cream-white lettering (red is for marks, not small text) */
html[data-look="night"] .cue .fc-mem .x-pairs > div:first-child dt{color:var(--night-text)}
html[data-look="night"] .cue .x-end .x-fcols .x-strong{color:var(--night-text)}
html[data-look="night"] .cue .x-end .x-fcols{border-top-color:var(--night-line)}
html[data-look="night"] .cue .x-end .x-flegal{border-top-color:var(--night-line)}
@container (max-width:860px){html[data-look="night"] .cue .x-end{border-top:1px solid var(--night-line)}}

/* ------------------------------------------------------------------ surfaces filled with var(--ink): their lettering */
html[data-look="night"] .cue .x-btn:not(.sand):not(.cream):not(.red):not(.ink2),
html[data-look="night"] .cue .btn:not(.o):not(.c):not(.oc):not(.r),
html[data-look="night"] .cue .x-av.ink,
html[data-look="night"] .cue .x-me,
html[data-look="night"] .cue details.acct>summary .av,
html[data-look="night"] .cue .app .av,
html[data-look="night"] .cue .tb .c,
html[data-look="night"] .cue .x-send,
html[data-look="night"] .cue .chip.on,
html[data-look="night"] .cue .seg a.on,
html[data-look="night"] .cue .x-pick label:has(input:checked),
html[data-look="night"] .cue .x-seg>.on,
html[data-look="night"] .cue .x-seg>label:has(input:checked),
html[data-look="night"] .cue details.cfm[open]>summary{color:var(--on,#fff)}
@media (hover:hover){html[data-look="night"] .cue .btn:not(.o):not(.c):not(.oc):not(.r):hover{color:var(--on,#fff)}}
html[data-look="night"] .cue .x-btn.cream,html[data-look="night"] .cue .btn.c{background:var(--cf,var(--cream));color:#141312}
html[data-look="night"] .cue .x-tick{background:var(--tk,var(--ink));color:var(--acc,#fff)}

/* ------------------------------------------------------------------ red accents (dark scopes only; elsewhere the system's colour) */
html[data-look="night"] .cue .x-link svg{color:var(--acc,currentColor)}
html[data-look="night"] .cue .x-state:not(.quiet) .x-dot{background:var(--acc,var(--ink))}
html[data-look="night"] .cue .x-state.now .x-dot{background:var(--acc,var(--red))}
html[data-look="night"] .cue .nb,html[data-look="night"] .cue .an.on .nb,html[data-look="night"] .cue .ms-dot{background:var(--acc,var(--ink))}
html[data-look="night"] .cue .x-tl li.next::before{box-shadow:inset 0 0 0 2px var(--acc,var(--ink))}
html[data-look="night"] .cue .x-tl li.next .d{color:var(--ink)}
html[data-look="night"] .cue :is(a,summary,button,input,textarea,select):focus-visible{outline-color:var(--acc,var(--ink))}

/* ------------------------------------------------------------------ signed-in shells on ink */
html[data-look="night"] .cue .app{background:#141312;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-look="night"] .cue .tabs{background:#141312;border-top-color:var(--night-line)}
html[data-look="night"] .cue .tb{color:var(--night-stone)}
html[data-look="night"] .cue .tb.on{color:var(--night-text)}
html[data-look="night"] .cue .tbi .nb{box-shadow:0 0 0 2px #141312}
html[data-look="night"] .cue .x-actbar{background:#141312;border-top-color:var(--night-line)}
html[data-look="night"] .cue .apanel{box-shadow:0 0 0 1px var(--night-line),0 24px 48px -16px rgba(0,0,0,.7)}
html[data-look="night"] .cue .af-t{color:#8E8A83}
/* the creator's sand note on ink reads as a raised panel; its avatar sits on the ground colour */
html[data-look="night"] .cue .x-note .x-av{background:var(--night);color:var(--night-text)}
html[data-look="night"] .cue .x-note.mine{background:var(--night-up)}
/* photos and posters on ink: a faint 1 px edge, so a dark photograph does not melt into the ground */
html[data-look="night"] .cue .x-photo{position:relative}
html[data-look="night"] .cue :is(.x-photo,.x-poster,.x-thumb)::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--ring,transparent);pointer-events:none}
/* photos and posters keep a dark placeholder while loading */
html[data-look="night"] .cue .x-photo,html[data-look="night"] .cue .x-thumb{background:var(--night-soft)}
/* the toast: a cream pill on ink screens, so it still reads */
html[data-look="night"] .toast{background:#F5F1EB;color:#141312;box-shadow:0 24px 40px -24px rgba(0,0,0,.8)}
/* the page-loading line */
html[data-look="night"].cue-wait body::before{background:var(--night-red)}

/* ================================================================== every page in night (14 Oct 2026)
   The look above was drawn for the homepage, /for-creators and the signed-in shells. What follows carries it to every
   other page: the public pages are ink like the app (one sand band where the page has a second part), fields and
   controls read on ink, nothing is filled with the lettering colour and lettered in white, logos and photo buttons keep
   their own light ground. */
html[data-look="night"]{color-scheme:dark}
html[data-look="night"] #app:empty{background:#141312}

/* public pages (all but the homepage and /for-creators): ink from the header to the footer, like the signed-in screens.
   Where a page has a second part it is one sand band, as on the homepage: pricing's worked example, support's contact. */
html[data-look="night"] .cue .x-sand.sp-ct,
html[data-look="night"] .cue .x-ink.pr-job{background:#E4DACB;color:#141312}
html[data-look="night"] .cue .pr-job .x-label,
html[data-look="night"] .cue .pr-job .x-stone{color:#5B5B56}
html[data-look="night"] .cue .pr-job .x-kv+.x-kv{border-top-color:#CFC4B3}
html[data-look="night"] .cue .pr-job .x-kv.total{border-top-color:#141312}
html[data-look="night"] .cue .x-ink.pr-job .pb-il,html[data-look="night"] .cue .x-ink.pr-job .pb-ctv{color:#141312}
/* the footer starts with a hairline wherever the page above it is ink too */
html[data-look="night"] .cue:not(:has(.hm-hero, .fc-hero)) .x-end{border-top:1px solid var(--night-line)}

/* ------------------------------------------------------------------ filled with the lettering colour: lettered in ink */
html[data-look="night"] .cue .xa-filt a.on,
html[data-look="night"] .cue .x-seg>label:has(input:checked),
html[data-look="night"] .cue #pr-b:checked~.x-seg label[for=pr-b],
html[data-look="night"] .cue #pr-c:checked~.x-seg label[for=pr-c],
html[data-look="night"] .cue .fc-cm:has(input:checked),
html[data-look="night"] .cue .ms-m.me .ms-b,
html[data-look="night"] .cue .jn-box,
html[data-look="night"] .cue .hx-ra .hx-dot,
html[data-look="night"] .cue .ay-t:has(input:checked) .ay-ck,
html[data-look="night"] .cue .x-check .x-box{color:var(--on,#fff)}
html[data-look="night"] .cue .ba-tabs:has(#ba-t1:checked) label[for=ba-t1],
html[data-look="night"] .cue .ba-tabs:has(#ba-t2:checked) label[for=ba-t2],
html[data-look="night"] .cue .ba-tabs:has(#ba-t3:checked) label[for=ba-t3]{color:var(--on,#fff)}
/* my own messages: a cream bubble with ink lettering; theirs stay the raised ink */
html[data-look="night"] .cue .ms-m.me .ms-b a{color:inherit}

/* switches: on = cream track with an ink knob, off = the raised ink with a stone knob */
html[data-look="night"] .cue :is(.xa-sw .k,.st-tg,.cs-tg){background:var(--night-soft)}
html[data-look="night"] .cue :is(.xa-sw .k,.st-tg,.cs-tg)::after{background:var(--night-stone)}
html[data-look="night"] .cue :is(.xa-sw input:checked+.k,.st-sw input:checked+.st-tg,.cs-sw input:checked+.cs-tg){background:var(--night-text)}
html[data-look="night"] .cue :is(.xa-sw input:checked+.k,.st-sw input:checked+.st-tg,.cs-sw input:checked+.cs-tg)::after{background:#141312}

/* checkboxes and radios: a ring that reads on ink (3.1:1), ticked = cream with an ink tick */
html[data-look="night"] .cue .x-check .x-box{background:transparent;box-shadow:inset 0 0 0 1.5px #77726A}
html[data-look="night"] .cue .x-check:has(input:checked) .x-box{background:var(--night-text);box-shadow:none}
html[data-look="night"] .cue .x-card .x-check .x-box{box-shadow:inset 0 0 0 1.5px #8C877E}
html[data-look="night"] .cue .x-card .x-check:has(input:checked) .x-box{background:#141312}
html[data-look="night"] .cue .jn-box{background:transparent}

/* unread dots are the red accent, as in the shells */
html[data-look="night"] .cue :is(.nt-dot,.cn-dot){background:var(--acc,var(--ink))}

/* quiet rows (closed briefs, declined applicants) stay readable on ink: 4.9:1 */
html[data-look="night"] .cue :is(.hx-quiet,.ba-r.off){opacity:.8}

/* white discs on photographs keep ink lettering and icons */
html[data-look="night"] .cue :is(.hx-mark,.ay-pl,.cf-ph .x-dur){color:#141312}
html[data-look="night"] .cue .hx-mark.on,html[data-look="night"] .cue .hx-mark[aria-pressed="true"].on{background:#141312;color:#F5F1EB}
html[data-look="night"] .cue .ay-t:has(input:checked) .ay-ck{background:#141312;color:#F5F1EB}

/* logos keep a light tile, so a black logo never sits on black */
html[data-look="night"] .cue .pf-logo .pf-box{background:#F5F1EB}
html[data-look="night"] .cue .pf-logo .pf-box svg{color:#5B5B56}

/* admin: CUE's income is the raised ink panel (the screen's one white card is the issue above it) */
html[data-look="night"] .cue .x-card.ah-inc{
  --ink:var(--night-text);--cream:var(--night);--paper:var(--night-up);--sand:var(--night-soft);--ink2:#36332F;--soft:var(--night-soft);
  --stone:var(--night-stone);--onk:var(--night-stone);--line:var(--night-line);--on:#141312;--acc:var(--night-red);--cf:#F5F1EB;--tk:var(--night-soft);
  background:var(--night-up);color:var(--night-text);color-scheme:dark}
html[data-look="night"] .cue .ah-inc .x-kv+.x-kv{border-top-color:var(--night-line)}

/* the media viewer: its caption is cream on the dimmed screen, the dimming a little deeper on ink */
html[data-look="night"] .cue .wk-vc{color:#F5F1EB}
html[data-look="night"] .cue dialog.wk-view::backdrop{background:rgba(0,0,0,.88)}
html[data-look="night"] .cue .wk-vx{background:#F5F1EB;color:#141312}

/* initials of brands in rows: a lighter raised circle, not a cream disc (a column of cream discs shouts on ink) */
html[data-look="night"] .cue .x-row .x-av.ink{background:#3A3733;color:var(--night-text)}
}
