/* CUE front end: additions to the design CSS (fe/css/base.css, public.css and pages/*.css are generated; do not edit them).
   Only things the static design did not need: live badges, toast, busy buttons, form errors, confirm panels, upload bars,
   empty, error and whole-page message states, the issue card. Same tokens, same shapes. Page-only additions go in the page module (export const style). */
.cue{--r:#E7352A}
.cue h1:focus{outline:none}
#app:empty{min-height:100vh;background:#F5F1EB}
/* hidden means hidden, whatever display a design or page class gives the element (.m-only, grids, flex rows) */
.cue [hidden]{display:none !important}

/* unread badges (top bar bell, nav link, phone tab) */
.ib,.an{position:relative}
.tbi{position:relative;display:flex}
.nb{position:absolute;top:2px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--ink);color:var(--cream);font-family:"Red Hat Text","Helvetica Neue",Arial,sans-serif;font-weight:700;font-size:11px;line-height:18px;text-align:center;letter-spacing:0;box-shadow:0 0 0 2px var(--paper);pointer-events:none}
.an .nb{position:static;display:inline-block;margin-left:7px;vertical-align:1px;box-shadow:none}
.an.on .nb{background:var(--cream);color:var(--ink)}
.tbi .nb{top:-5px;right:-10px;box-shadow:0 0 0 2px #fff}
@container (max-width:560px){.ib .nb{top:-1px;right:-1px}}

/* toast (lives on <body>, outside .cue) */
/* inset 24 px each side (the page margin) and shrink to the text; long text and long addresses wrap inside (no 100vw: it can be wider than the screen on phones) */
.toast{position:fixed;left:24px;right:24px;margin:0 auto;width:fit-content;max-width:520px;overflow-wrap:anywhere;bottom:calc(28px + env(safe-area-inset-bottom,0px));z-index:100;transform:translateY(16px);opacity:0;pointer-events:none;padding:14px 22px;border-radius:24px;text-align:center;background:#141312;color:#F5F1EB;font:600 15px/1.35 "Red Hat Text","Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;box-shadow:0 24px 40px -24px rgba(20,19,18,.6);transition:opacity .2s,transform .25s cubic-bezier(.2,.7,.2,1)}
.toast.on{opacity:1;transform:none}
@media (max-width:1180px){.toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}

/* buttons and forms */
.cue button.btn{font-family:inherit;cursor:pointer}
.cue .btn{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.cue .btn[disabled],.cue .btn.is-busy{opacity:.55;cursor:progress;pointer-events:none}
.cue .btn.is-busy svg{animation:cueBusy .9s ease-in-out infinite}
@keyframes cueBusy{50%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.cue .btn.is-busy svg{animation:none}}
.ferr{display:flex;align-items:baseline;gap:9px;font-size:15px;line-height:1.4;font-weight:600;color:var(--ink)}
.ferr::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--r);flex:none;transform:translateY(-1px)}
.ferr[hidden]{display:none}
.cue [aria-invalid="true"]{border-color:var(--r) !important}
@container (max-width:560px){.ferr{font-size:14px}}

/* in-place confirm (details) */
.cue details.cfm{border:0}
.cue details.cfm>summary{list-style:none;cursor:pointer}
.cue details.cfm>summary::-webkit-details-marker{display:none}
.cue details.cfm[open]>summary{background:var(--ink);color:var(--cream)}
.cue .cfm-p{display:flex;flex-direction:column;gap:12px;margin-top:10px;padding:18px;border-radius:22px}
.cfm-t{font-weight:700;font-size:17px}
.cfm-x{font-size:15px;color:var(--stone)}
.cfm-a{display:flex;flex-wrap:wrap;gap:10px}

/* the issue card (brand and creator job pages): type from the system; only the quoted reason gets a sand panel */
.cue .iss-q{padding:16px;border-radius:16px;background:var(--sand)}

/* date fields show "27 Oct 2026" (ui.js enhanceFields) */
.dt-w{position:relative;display:block}
/* as heavy as system.css's .x-fld input rule (which sets the ink colour), or the browser's own date text shows under the view (iPhone) */
.cue .dt-w input[type=date],.cue .x-fld .dt-w input[type=date]:not([type=radio]):not([type=checkbox]):not([type=file]){color:transparent;cursor:pointer}
.cue .dt-w input[type=date]::-webkit-datetime-edit{color:transparent}
.cue .dt-w input[type=date]::-webkit-calendar-picker-indicator{opacity:.75;cursor:pointer}
.dt-v{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--ink);white-space:nowrap}
.dt-v.ph{color:#8A857C}
/* quiet counters on long text fields */
.cue .cnt{position:absolute;padding:2px 6px;border-radius:8px;background:var(--paper);font-size:12.5px;font-weight:600;line-height:1.2;color:var(--stone);font-variant-numeric:tabular-nums;pointer-events:none;visibility:hidden}
.cue .cnt.on{visibility:visible}
.cue .cnt.full{color:var(--ink)}
/* while the counter shows in a text box's bottom corner, the last line of text stops above it instead of running under it */
.cue textarea:has(+.cnt.on),.cue .x-fld textarea:has(+.cnt.on){padding-bottom:32px}
.cue .cnt.up{top:auto;bottom:calc(100% + 6px);right:12px;padding:3px 8px;border:1.5px solid var(--line);border-radius:10px}

/* upload progress */
.upbar{display:flex;align-items:center;gap:12px}
.upbar .bar{flex:1}
.upbar .bar i{transition:width .2s}
.upn{min-width:44px;text-align:right;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}

/* empty, error and whole-page messages */
.em-ic{width:48px;height:48px;border-radius:50%;background:var(--paper);border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center}
.em-t{max-width:440px;font-size:16px;line-height:1.45}
.ecard{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.pg-msg{padding-top:clamp(28px,6cqw,88px);padding-bottom:var(--sec)}
.pg-col{max-width:620px;display:flex;flex-direction:column;align-items:flex-start;gap:clamp(16px,2cqw,24px)}
.pg-t{max-width:520px}
.pg-a{display:flex;flex-wrap:wrap;gap:12px}
@container (max-width:560px){
.pg-msg{padding-top:18px;padding-bottom:28px}
.pg-msg .h1p{font-size:28px}
.pg-msg .lead{display:block}
.pg-a{width:100%}
.pg-a .btn{flex:1 1 auto}
.em-ic{width:40px;height:40px}
.em-t{font-size:14px}
}
.cue .dt-w input[type=date]::-webkit-datetime-edit-day-field:focus,.cue .dt-w input[type=date]::-webkit-datetime-edit-month-field:focus,.cue .dt-w input[type=date]::-webkit-datetime-edit-year-field:focus{background:transparent;color:transparent}

/* iPhone: never let Safari inflate text, keep tap highlight quiet, size to the real visible screen. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-tap-highlight-color:transparent}

/* ------------------------------------------------------------------ notice band (layouts.js noticeBand): new Terms to accept, a team invitation */
.cue .x-band{background:var(--sand);padding:12px 0}
.cue .x-band .x-label{color:var(--ink)}
.cue .x-band-a{display:inline-flex;align-items:center;min-height:44px;margin:-12px 0;font:600 15px/20px var(--ft);color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* a quiet report link that opens a form in place (message threads) */
.cue .x-rep{margin-top:var(--s2)}
.cue .x-rep>summary{list-style:none;display:inline-flex;align-items:center;min-height:44px;font:400 15px/20px var(--ft);color:var(--stone);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.cue .x-rep>summary::-webkit-details-marker{display:none}
.cue .x-rep-in{padding:var(--s3) 0 var(--s4)}
