/* StoryWatch: the "morning overnights" world (Plan 4), softened to the owner's reference (2026-11-13): the black
   rail runs round the page and the work area is a white card with rounded corners inside it. Text is two inks only
   (#111111 and #3D3935, never lighter on a light ground). Havas red is the client's brand and where you are: the
   brand marks, the top-line figure, "New", the current page's pill and the selected tab. Deep red is missed or
   error; teal is the hollow competitor mark; green is "all fine". Archivo 400-600 at its normal width, never 700
   (owner, 2026-11-12: Plex read as overused), with Noto Sans Arabic for Arabic. Rank comes from size, weight and
   case, never from grey; rows are plain white with hairlines. One black plate per screen is its main action. */
@font-face{font-family:"Archivo";src:url("fonts/Archivo-latin.woff2") format("woff2");font-weight:400 600;font-stretch:62% 100%;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Archivo";src:url("fonts/Archivo-latin-ext.woff2") format("woff2");font-weight:400 600;font-stretch:62% 100%;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Sans Arabic";src:url("fonts/NotoSansArabic.woff2") format("woff2");font-weight:400 600;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}

/* ---------- tokens ---------- */
:root{
  /* on white: two inks only */
  --ink:#111111; --ink-2:#3D3935;
  --paper:#FFFFFF; --band:#F4F2EF; --band-2:#EEEBE6; --blush:#FFDCDC;
  --rule:#E4E1DD; --rule-strong:#BDB7B1; --grey:#CFCAC5;
  /* the rail: #FFFFFF, #F2EFEB and #D6D0CA only */
  --rail:#111111; --rail-ink:#F2EFEB; --rail-ink-2:#D6D0CA; --rail-line:#34302D; --rail-hover:#1F1D1B;
  /* colour jobs */
  --red:#E50100; --deep:#640000; --teal:#145566; --teal-bright:#2FB1C2; --teal-tint:#E2EEF0; --ok:#1F9D55;
  /* charts only (Overview, Ruling R2): the competitors' lines and bars; lists keep the hollow --teal square */
  --chart-teal:#0094AA;
  /* the Reel stage */
  --stage:#0F0E0D; --stage-2:#1C1A18; --stage-3:#2A2724; --stage-line:#3A3632; --stage-ink:#F2EFEB; --stage-ink-2:#D6D0CA;
  --f:"Archivo","Noto Sans Arabic","Segoe UI",system-ui,sans-serif;
  --f-ar:"Noto Sans Arabic","Archivo","Segoe UI",sans-serif;
  /* corners: the controls and thumbnails, and the work area's card */
  --r:.5rem; --r-card:.875rem;
  --ease:cubic-bezier(.16,1,.3,1);
  /* moving on screen (Overview's bars and figures changing period): in and out */
  --ease-in-out:cubic-bezier(.77,0,.175,1);
  --shadow-pop:0 .875rem 2.125rem rgba(17,17,17,.16),0 2px .375rem rgba(17,17,17,.08);
  /* lifted for a moment: the Influencers row that climbs past the others on a filter switch */
  --shadow-lift:0 .25rem .75rem rgba(17,17,17,.08);
}

/* ---------- base and browser surfaces ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html,body{height:100%}
/* The density: every size is root-relative (rem), so this one value sets it. 80% is the owner's "at 80% it's
   perfect" (2026-11-11) as the default at 100% browser zoom; it also follows a reader's own browser font size.
   Hairlines and rings stay 1-3px, text never renders below 10px, and the window breakpoints (@media) are the
   100% ones x 0.8: change them with this value. */
html{font-size:80%}
body{font:400 .9375rem/1.375rem var(--f);font-variant-numeric:tabular-nums;color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased;overflow-wrap:break-word;caret-color:var(--ink)}
:lang(ar),[dir="rtl"]{font-family:var(--f-ar)}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-underline-offset:3px}
[hidden]{display:none !important}
::selection{background:var(--blush);color:var(--ink)}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:3px}
.rail :focus-visible,.reel :focus-visible{outline-color:#fff}
.switcher .menu :focus-visible{outline-color:var(--ink)}
*{scrollbar-width:thin;scrollbar-color:var(--rule-strong) transparent}
::-webkit-scrollbar{width:.625rem;height:.625rem}::-webkit-scrollbar-thumb{background:var(--rule-strong);border-radius:.625rem;border:3px solid var(--paper)}
svg.i{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.num{font-variant-numeric:tabular-nums}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.nowrap{white-space:nowrap}
.push{margin-left:auto}

/* ---------- shell: the black rail ---------- */
.app{display:grid;grid-template-columns:14.5rem minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:100vh;background:var(--rail)}
.rail{background:var(--rail);color:var(--rail-ink);display:flex;flex-direction:column;padding:1rem .875rem 1.125rem;gap:1.125rem;min-height:0}
.mast{background:#fff;border-radius:var(--r);padding:.75rem .875rem .6875rem;display:flex;flex-direction:column;gap:.5rem}
.mast .logo{height:1.375rem;width:auto;align-self:flex-start}
.mast .word{height:.8125rem;width:auto;align-self:flex-start;color:#111}

/* the client switcher, on dark. Without JavaScript it is a plain <details> list of links; menus.js opens the links in
   the one dropdown card (.menu-card, under "the one dropdown"), with a search box once the list is long */
.switcher{position:relative}
.switcher summary{list-style:none}
.switcher summary::-webkit-details-marker{display:none}
.client-switch{display:flex;align-items:center;gap:.625rem;border:1px solid var(--rail-line);border-radius:var(--r);padding:.5rem .75rem;cursor:pointer}
.client-switch .cur{flex:1;min-width:0}
.client-switch .lab{display:block;font:500 max(10px,.75rem)/1rem var(--f);color:var(--rail-ink-2)}
.client-switch .name{display:block;font:600 .9375rem/1.25rem var(--f);color:#fff;overflow-wrap:anywhere;min-width:0}
.client-switch svg.i{color:var(--rail-ink-2)}
.switcher[open] .client-switch{border-color:var(--rail-ink-2)}
.switcher > .menu{position:absolute;left:0;right:0;top:calc(100% + .375rem);z-index:20;max-height:60vh;overflow:auto;padding:.25rem;list-style:none;background:var(--paper);color:var(--ink);border:1px solid var(--rule-strong);border-radius:var(--r);box-shadow:var(--shadow-pop)}
.switcher > .menu a{display:block;padding:.4375rem .625rem;border-radius:.25rem;text-decoration:none;font:500 .875rem/1.25rem var(--f);overflow-wrap:anywhere}
.switcher > .menu a[aria-current="true"]{background:var(--band);font-weight:600}
/* in the card: as wide as the switcher, its entries a little smaller than the page's options */
.switcher .menu-card,.switcher .menu-card[data-search]{right:0;width:auto;min-width:0;max-width:none}
.switcher .menu-opt{font-size:.875rem;overflow-wrap:anywhere}
/* the workspace switcher under it, the same box: the two read as one "where you are". Its menu: "All of <client>",
   the workspaces with their new counts (red, as the nav's badge), then "+ New workspace", between hairlines */
.switcher + .switcher{margin-top:-.625rem}
.ws > .menu a{display:flex;align-items:center;gap:.5rem}
.ws .menu .nm{flex:1;min-width:0}
.ws .menu .count{flex:none;min-width:1.375rem;padding:0 .4375rem;border-radius:.5625rem;background:var(--red);color:#fff;font:600 max(10px,.75rem)/1.125rem var(--f);font-variant-numeric:tabular-nums;text-align:center}
.ws .menu .sep{height:1px;margin:.25rem .375rem;background:var(--rule)}
.ws .menu a.add{color:var(--ink-2);font-weight:500}
.ws .menu a.add svg.i{width:.875rem;height:.875rem}

/* the nav: the current page is the red pill (owner, 2026-11-13); the new count on it turns white */
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{display:flex;align-items:center;gap:.625rem;padding:.5625rem .625rem;border-radius:var(--r);font:500 .9375rem/1.25rem var(--f);color:var(--rail-ink);text-decoration:none}
.nav a svg.i{width:1.125rem;height:1.125rem;opacity:.9}
.nav a[aria-current="page"]{background:var(--red);color:#fff;font-weight:600}
.nav a[aria-current="page"] svg.i{opacity:1}
.nav .count{margin-left:auto;min-width:1.375rem;padding:0 .4375rem;border-radius:.5625rem;background:var(--red);color:#fff;font:600 max(10px,.75rem)/1.125rem var(--f);font-variant-numeric:tabular-nums;text-align:center}
.nav a[aria-current="page"] .count{background:#fff;color:var(--red)}

/* the foot: the sample-data label, who is signed in, Sign out */
.rail .foot{margin-top:auto;display:flex;flex-direction:column;gap:.625rem;font-size:.875rem;line-height:1.25rem;color:var(--rail-ink-2)}
.sample{align-self:flex-start;border:1px solid var(--rail-line);border-radius:.25rem;padding:1px .5rem;font:500 max(10px,.75rem)/1.125rem var(--f);color:var(--rail-ink)}
.who{display:flex;align-items:center;gap:.625rem;min-width:0}
.avatar{width:1.75rem;height:1.75rem;flex:none;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center;font:600 .8125rem/1 var(--f)}
.who .uname{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.signout{flex:none}
.signout button{color:var(--rail-ink);font-size:.875rem;line-height:1.25rem;text-decoration:underline;text-underline-offset:3px}
@media (hover:hover) and (pointer:fine){
  .client-switch:hover{background:var(--rail-hover)}
  .switcher > .menu a:hover{background:var(--band)}
  .nav a:not([aria-current="page"]):hover{background:var(--rail-hover)}
  .signout button:hover{color:#fff}
}

/* ---------- shell: the work area ---------- */
/* the white card in the black frame. It clips at its rounded edges (clip, not hidden: no new scroll container, so
   the sticky heads still stick), so nothing inside widens or lengthens the page: each page scrolls in its own areas */
.main{display:flex;flex-direction:column;min-width:0;min-height:0;margin:.625rem .625rem .625rem 0;background:var(--paper);border-radius:var(--r-card);overflow:clip}

/* the page head: the title, a one-line status, one action */
.head,.pagehead{display:flex;align-items:center;gap:1.25rem;padding:1.25rem 2rem 0}
.pagehead{padding-bottom:1rem}
.head h1,.pagehead h1{flex-shrink:0;max-width:100%;font:600 1.625rem/2rem var(--f);letter-spacing:-.0125rem}
/* a workspace's name after the title ("Mentions · Fragrance"): the title's size in the quieter ink, a word space from
   it; a long name is the first thing to give up room */
.pagehead h1 + .scope{margin-left:-.875rem;font:400 1.625rem/2rem var(--f);letter-spacing:-.0125rem;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pagehead > .grow{display:none}
.pagehead > .btn{margin-left:auto}
.status{display:block;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
/* each item is one unit, its "·" inside it: the line wraps between items, never inside "3 can't be monitored", and no
   dot is left at a line's end. Up to 1366px wide the items show their short labels (Ruling R-P4-21), so the line
   stays on one line beside the head's controls; the full wording shows above that, and in each link's title. */
.status > *{white-space:nowrap}
.status .short{display:none}
@media (max-width:1093px){.status .full{display:none}.status .short{display:inline}}
.status .dot{display:inline-block;width:.4375rem;height:.4375rem;border-radius:50%;background:var(--ok);margin-right:.5rem;vertical-align:1px}
.status.bad .dot{background:var(--deep)}
.status.idle .dot{background:var(--grey)}
.status a{color:var(--ink);font-weight:500}
.status .warn{color:var(--deep);font-weight:500}

/* the lines under the page head: R38's error line, the inactive banner, the one-time saved line */
.app-error{padding:.625rem 2rem;font:500 .875rem/1.25rem var(--f);color:var(--deep);border-bottom:1px solid var(--rule)}
.banner{display:flex;align-items:center;gap:1rem;padding:.625rem 2rem;background:var(--band);border-bottom:1px solid var(--rule);font-size:.875rem;line-height:1.25rem}
.banner form{margin-left:auto}
.flash,.sorting{display:flex;align-items:center;gap:.5rem;padding:.625rem 2rem;font-size:.875rem;line-height:1.25rem;border-bottom:1px solid var(--rule)}
.flash::before,.sorting::before{content:"";width:.4375rem;height:.4375rem;flex:none;border-radius:50%;background:var(--ok)}
/* a standing note under a page head (workspace Setup's "still sorting"): the saved line's shape, the idle dot */
.sorting{border-top:1px solid var(--rule)}
.sorting::before{background:var(--grey)}

/* ---------- controls ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;height:2.25rem;padding:0 .875rem;border:1px solid var(--rule-strong);border-radius:var(--r);background:#fff;color:var(--ink);font:500 .875rem/1.25rem var(--f);text-decoration:none;white-space:nowrap;cursor:pointer;flex:none;font-variant-numeric:tabular-nums}
.btn svg.i{width:1rem;height:1rem}
/* the screen's main action: the one black plate */
.btn.dark,.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.ghost{border-color:transparent;background:transparent}
.btn.icon{width:2.25rem;padding:0}
.btn.sm{height:1.875rem;padding:0 .625rem;font-size:.8125rem}
.btn.sm.icon{width:1.875rem}
.btn[disabled]{background:var(--band);border-color:var(--rule);color:var(--ink-2);cursor:not-allowed}
.plate{display:inline-flex;align-items:center;gap:.75rem;background:var(--ink);color:#fff;border-radius:var(--r);padding:.625rem 1rem .625rem .875rem;font:600 .9375rem/1.25rem var(--f);font-variant-numeric:tabular-nums;text-decoration:none}
.plate .play{width:1.5rem;height:1.5rem;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center}
.plate .play svg{width:.75rem;height:.75rem;margin-left:2px}
.plate small{font:400 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums;color:var(--rail-ink-2)}
.linkbtn{all:unset;cursor:pointer;color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.linkbtn:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:3px}
@media (hover:hover) and (pointer:fine){
  .btn:not([disabled]):hover{border-color:var(--ink)}
  .btn.dark:not([disabled]):hover,.btn.primary:not([disabled]):hover,.plate:hover{background:#000}
  .btn.ghost:not([disabled]):hover{border-color:transparent;background:var(--band)}
}

/* selects and search: a label wrapping the native control */
.sel,.select{display:inline-flex;align-items:center;gap:.5rem;height:2.125rem;padding:0 .625rem 0 .75rem;border:1px solid var(--rule-strong);border-radius:var(--r);background:#fff;color:var(--ink);font:500 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer}
.sel svg,.select svg.i{width:.875rem;height:.875rem}
.sel.search{min-width:13.75rem;color:var(--ink-2)}
.select .k{font-weight:400;color:var(--ink-2)}
.select select,.select input{appearance:none;border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;outline:0;padding:0;field-sizing:content}
.select:focus-within{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
a.select{text-decoration:none}

/* ---------- the one dropdown (static/menus.js; owner, 2026-11-18: "the dropdown has to look nice and fits the vibe")
   Every dropdown is this white card under its trigger, .375rem below it: Paper, a Strong Hairline, the 8px radius and
   --shadow-pop. It opens in 150ms from .97 at the trigger's corner and closes in 90ms, on --ease, transform and
   opacity only; opened from the keyboard it is there at once, and with reduced motion it only fades. A list that can
   grow has a search box on top. The current option is 600 with a check; the active one (pointer or arrows) sits on
   the Warm Band; a brand has the red square, a competitor the hollow teal one; a search match is underlined. The
   native select stays in the host, out of sight, holding the value the forms and htmx send. */
.menu-card{position:absolute;z-index:30;top:calc(100% + .375rem);left:0;width:max-content;min-width:max(100%,11.25rem);max-width:22.5rem;padding:.375rem;background:var(--paper);color:var(--ink);border:1px solid var(--rule-strong);border-radius:var(--r);box-shadow:var(--shadow-pop);text-align:left;white-space:normal;opacity:0;transform:scale(.97);transform-origin:top left;transition:opacity 90ms var(--ease),transform 90ms var(--ease)}
.menu-card[data-open]{opacity:1;transform:none;transition:opacity 150ms var(--ease),transform 150ms var(--ease)}
.menu-card[data-instant],.menu-card[data-instant][data-open]{transition:none}
.menu-card:not([data-open]){pointer-events:none}  /* a closing card is gone for the pointer at once */
.menu-card[data-search]{width:20rem}
.menu-card[data-side="top"]{top:auto;bottom:calc(100% + .375rem);transform-origin:bottom left}
.menu-card[data-align="end"]{left:auto;right:0;transform-origin:top right}
.menu-card[data-side="top"][data-align="end"]{transform-origin:bottom right}
.menu-host{position:relative;display:inline-flex;min-width:0;max-width:100%}
select[data-menu-on]{position:absolute;left:0;top:0;width:1px;height:1px;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
.menu-trig{min-width:0;max-width:100%;text-align:left}
.menu-trig .menu-val{min-width:0;overflow:hidden;text-overflow:ellipsis}
.menu-trig .chev{color:var(--ink-2);transition:transform 150ms var(--ease)}
.menu-trig[aria-expanded="true"] .chev{transform:rotate(180deg)}
.menu-trig[aria-expanded="true"],.menu-trig:focus-visible{outline:0;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.menu-search{display:flex;align-items:center;gap:.5rem;height:2.125rem;margin:-.125rem 0 .25rem;padding:0 .625rem;border-bottom:1px solid var(--rule);color:var(--ink-2);cursor:text}
.menu-search svg.i{width:.875rem;height:.875rem}
.menu-search input{flex:1;min-width:0;padding:0;border:0;outline:0;background:none;font:500 .875rem/1.25rem var(--f);color:var(--ink)}
.menu-search input::placeholder{color:var(--ink-2);opacity:1}
.menu-list{position:relative;max-height:17rem;overflow:auto;overscroll-behavior:contain;margin:0;padding:0;list-style:none}
.menu-list:focus{outline:0}  /* a switcher's list takes the keys; its active option's Warm Band shows where they are */
.menu-head{padding:.25rem .625rem .375rem;font-size:.8125rem;line-height:1.125rem;color:var(--ink-2)}
.menu-group{padding:.5rem .625rem .25rem;font:600 max(10px,.75rem)/1rem var(--f);letter-spacing:.06rem;text-transform:uppercase;color:var(--ink-2)}
.menu-opt{display:flex;align-items:center;gap:.5625rem;min-width:0;padding:.4375rem .625rem;border-radius:.25rem;font:400 .9375rem/1.25rem var(--f);color:var(--ink);text-decoration:none;cursor:pointer;user-select:none}
.menu-opt > bdi{min-width:0;overflow-wrap:anywhere}
.menu-opt .chk{width:.875rem;height:.875rem;stroke-width:2.5;visibility:hidden}
.menu-opt[aria-selected="true"]{font-weight:600}
.menu-opt[aria-selected="true"] .chk{visibility:visible}
.menu-opt.menu-act{background:var(--band)}
.menu-card .menu-opt mark{padding:0;border-radius:0;background:none;color:inherit;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}
.menu-opt .menu-n{margin-left:auto;padding-left:.75rem;font-size:.8125rem;color:var(--ink-2)}
.menu-none{padding:.625rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.menu-none:empty{padding:0}
.mk{display:inline-block;flex:none;width:.5rem;height:.5rem;border-radius:2px}
.mk.c{background:var(--red)}
.mk.p{box-shadow:inset 0 0 0 2px var(--teal)}
.mk.o{border-radius:50%;background:var(--grey)}
@media (prefers-reduced-motion:reduce){.menu-card,.menu-card[data-open]{transform:none}.menu-trig .chev,.combo .chev{transition:none}}
.chip{cursor:pointer}
.search{display:flex;align-items:center;gap:.5rem;height:2.125rem;padding:0 .625rem;border:1px solid var(--rule-strong);border-radius:var(--r);flex:0 1 17.5rem;min-width:9.375rem;color:var(--ink-2)}
.search svg.i{width:.9375rem;height:.9375rem}
.search input{border:0;outline:0;background:transparent;width:100%;font:500 .875rem/1.25rem var(--f);color:var(--ink)}
.search input::placeholder{color:var(--ink-2);opacity:1}
.search:focus-within{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.tinput{width:100%;height:2.125rem;padding:0 .625rem;border:1px solid var(--rule-strong);border-radius:var(--r);background:#fff;font:400 .875rem/1.25rem var(--f);color:var(--ink)}
.tinput:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
@media (hover:hover) and (pointer:fine){
  .select:hover,.sel:hover{border-color:var(--ink)}
}

/* plain tabs, the filters at their right */
.tabs{display:flex;align-items:flex-end;gap:1.75rem;padding:0 2rem;border-bottom:1px solid var(--rule)}
.tabs [role="tab"]{padding:.875rem 0 .75rem;font:600 .9375rem/1.25rem var(--f);color:var(--ink-2);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs [role="tab"][aria-selected="true"]{color:var(--ink);border-color:var(--red)}
.tabs .tools{margin-left:auto;display:flex;gap:.625rem;padding-bottom:.625rem}
@media (hover:hover) and (pointer:fine){.tabs [role="tab"]:hover{color:var(--ink)}}

/* tag markers: the shape carries the tag as well as the colour.
   client = filled red square, competitor = hollow teal square, other = small grey dot */
.tag{display:inline-flex;align-items:baseline;gap:.4375rem;white-space:nowrap}
.tag::before{content:"";flex:none;width:.5rem;height:.5rem;border-radius:2px;align-self:center}
.tag.client{font-weight:600;color:var(--ink)}
.tag.client::before{background:var(--red)}
.tag.comp{font-weight:500;color:var(--ink)}
.tag.comp::before{box-shadow:inset 0 0 0 2px var(--teal)}
.tag.other{color:var(--ink-2)}
.tag.other::before{width:.375rem;height:.375rem;border-radius:50%;background:var(--grey)}
.tag small{font-size:.8125rem;font-weight:400;color:var(--ink-2)}
.tag.missed{font-weight:600;color:var(--deep);align-items:center;gap:.375rem}
.tag.missed::before{display:none}
.tag.missed svg.i{width:.9375rem;height:.9375rem}
.tag.more{cursor:default}
.tags{display:flex;flex-wrap:wrap;gap:.25rem 1rem;min-width:0}
.tags > small{font-size:.8125rem;color:var(--ink-2);align-self:center}

/* tables: plain white rows with hairlines between them (owner, 2026-11-13: no stripes) */
table{width:100%;border-collapse:collapse;table-layout:fixed}
thead th{position:sticky;top:0;z-index:1;background:var(--paper);text-align:left;font:600 .8125rem/1.125rem var(--f);color:var(--ink-2);padding:.625rem .625rem .5rem;border-bottom:1px solid var(--rule-strong);white-space:nowrap}
tbody td{padding:.75rem .625rem;border-bottom:1px solid var(--rule);vertical-align:top}
tbody tr.row[hx-get]{cursor:pointer}
/* the selected row (its panel open, or opening): an ink stripe on the warm tint; red stays the brand's */
tbody tr.row[aria-selected="true"],tbody tr.row.htmx-request{background:var(--band-2)}
tbody tr.row[aria-selected="true"] > td:first-child{box-shadow:inset 3px 0 0 var(--ink)}
.r{text-align:right}
@media (hover:hover) and (pointer:fine){
  tbody tr.row:hover{background:var(--band)}
  tbody tr.row[aria-selected="true"]:hover,tbody tr.row.htmx-request:hover{background:var(--band-2)}
}

/* ---------- Mentions ---------- */
/* the tabs: plain labels (the figures are the top line's) that switch the table below; the selected one is inked
   and underlined in red */
.mtabs{display:flex;align-items:flex-end;gap:1.75rem;padding:0 2rem;border-bottom:1px solid var(--rule)}
.mtabs .tablist{display:flex;align-items:flex-end;gap:1.75rem;flex:none}
.mtab{cursor:pointer;padding:.875rem 0 .75rem;font:600 .9375rem/1.25rem var(--f);color:var(--ink-2);text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
.mtab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--red)}
.mtab:focus-visible{outline-offset:-2px}
a.mtab.htmx-request:not([aria-selected="true"]){border-bottom-color:var(--rule-strong)}
/* the filters at the right of the tabs, as the prototype's .tabs .tools: no row of their own over the sheet. When
   they can't share one line (custom dates, the influencer chip, a long brand) they wrap inside their own box and it
   grows upward, so the tabs keep their underline on the rule; 3px on top is free (the tabs are taller) */
.mtabs .tools{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem .625rem;padding:3px 0 .625rem}
.mtabs:has(.chip,option[value="custom"]:checked) .tools{padding-top:.625rem}
/* Search gives way first (it wraps only below 150px), and grows back to the prototype's 220px */
.mtabs .search{flex:1 1 9.375rem;max-width:13.75rem}
.mtabs .dates{display:none;align-items:center;gap:.5rem}
.mtabs:has(select[name="period"] option[value="custom"]:checked) .dates{display:flex}
@media (hover:hover) and (pointer:fine){.mtab:hover{color:var(--ink)}}

/* the top line: the red figure and its sentence, the one black plate, the side figures in ink, the week's bars.
   Red is the client's brand only (the figure and the bars' client segment); the side figures stay ink. */
.topline{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2.5rem;align-items:center;margin:.5rem 2rem 0;padding:1.125rem 0 1.5rem}
.lead{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:1.125rem;align-items:end}
.lead.none{grid-template-columns:minmax(0,1fr);align-items:center}
.lead.none .say{white-space:normal}
.lead .fig{grid-row:1/3;align-self:center;font:600 4rem/4rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:-2px;color:var(--red)}
.lead .say{font:500 1.3125rem/1.75rem var(--f);white-space:nowrap}
.lead .plate{grid-column:2;margin-top:.625rem;justify-self:start}
.lead.none .plate{grid-column:1}
.figs{display:flex;justify-content:center}
.figs div{padding:.125rem 1.75rem;border-left:1px solid var(--rule);font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.figs b{display:block;font:600 1.75rem/2.25rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:-.03125rem;color:var(--ink)}
.week{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1.75rem));justify-content:end;gap:.375rem;align-items:end;width:15.75rem}
.week .d{display:flex;flex-direction:column;justify-content:flex-end;height:5.75rem}
/* a day's bar: its client part caps the rest in red */
.week i,.week s{display:block;flex:none;height:calc((100% - 1.4375rem) * var(--v));min-height:2px}
.week .d > :first-child{border-radius:3px 3px 0 0}
.week i{background:var(--red)}
.week s{background:var(--grey)}
.week .d > span:not(.sr){flex:none;margin-top:.3125rem;font:600 max(10px,.75rem)/1rem var(--f);font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;color:var(--ink-2)}
.week .today > span:not(.sr){color:var(--ink)}
.week.dense{gap:3px}
.week.dense .d > span:not(.sr){visibility:hidden;width:max-content}
.week.dense .d:first-child > span:not(.sr){visibility:visible;align-self:flex-start}
.week.dense .d:nth-last-child(2) > span:not(.sr){visibility:visible;align-self:flex-end}
/* the figures give way to the panel, as the panel is the thing being read */
.work:has(> .panel:not(:empty)) .figs,.work.with-panel .figs{display:none}
.work:has(> .panel:not(:empty)) .topline,.work.with-panel .topline{grid-template-columns:minmax(0,1fr) auto}
/* on a laptop the side figures stack as three short lines, so the sentence and the week keep their room */
@media (max-width:1093px){
  .topline{gap:1.5rem}.week{width:14rem}
  .figs{flex-direction:column;gap:2px;justify-content:center}
  .figs div{white-space:nowrap;padding:0 0 0 1.25rem}
  .figs b{display:inline;margin-right:.375rem;font-size:1.25rem;line-height:1.5rem;letter-spacing:-.0125rem}
}
@media (max-width:944px){.topline{grid-template-columns:minmax(0,1fr) auto}.figs{display:none}}
@media (max-height:640px){.topline{margin-top:.75rem;padding:.75rem 0 .875rem}.lead .fig{font-size:3.125rem;line-height:3.125rem}.lead .plate{margin-top:.375rem}.week .d{height:4rem}}

/* the work area: the tabs, the table and the panel beside it. The top line, the tab row (with the filters) and the
   table are one swappable #feed that takes no box of its own (display:contents), so the panel keeps its place beside
   the table, under the tabs. */
.work{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0}
.work.with-panel{grid-template-columns:minmax(0,1fr) 26.25rem}
.work.mentions{grid-template-rows:auto auto minmax(0,1fr)}
.work.mentions:has(> .panel:not(:empty)){grid-template-columns:minmax(0,1fr) 26.25rem}
.work.mentions:has(> .panel.closing){grid-template-columns:minmax(0,1fr)}
.feed{display:contents}
.work.mentions .mtabs{grid-column:1/-1;grid-row:2}
.work.mentions .table-wrap{grid-column:1;grid-row:3}
.work.mentions .panel{grid-row:3;grid-column:2}
/* the sheet starts under the tab row: its first day header carries its own 20px above it, as in the prototype */
.table-wrap{overflow:auto;padding:0 2rem 2rem;min-height:0}

/* the rows: newest first under a Gulf-day header; the sheet's container decides whether the evidence sits beside the
   brands (wide) or under them (narrow, as with the panel open) */
.table-wrap{container:sheet/inline-size}
.sheet thead.quiet{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.sheet tbody td{vertical-align:middle}
.sheet tr.day td{position:sticky;top:0;z-index:1;padding:1.25rem .625rem .5rem;background:var(--paper);border-bottom:0;box-shadow:inset 0 -1px 0 var(--rule-strong)}
/* today's head, when it has new rows, is ruled in red under its "N new" */
.sheet tr.day.fresh td{box-shadow:inset 0 -2px 0 var(--red)}
.dh{display:flex;align-items:baseline;gap:.75rem;font:600 .8125rem/1.125rem var(--f);letter-spacing:.08125rem;text-transform:uppercase}
.dh small{font:500 .875rem/1.125rem var(--f);letter-spacing:0;text-transform:none;color:var(--ink-2)}
.dh .newmark{margin-left:auto;font:600 max(10px,.75rem)/1rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:1px;color:var(--ink)}
.thumb{position:relative;width:3rem;height:3rem;border-radius:var(--r);background:var(--rule);display:grid;place-items:center;color:var(--ink-2);overflow:hidden}
.thumb svg.i{width:.875rem;height:.875rem}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
/* a video's play mark over its poster */
.thumb svg.pm{position:absolute;inset:0;margin:auto;width:1.375rem;height:1.375rem;padding:.3125rem;border-radius:50%;background:rgba(17,17,17,.62);color:#fff;fill:#fff;stroke:none}
.thumb.none{background:transparent;border:1px dashed var(--rule-strong)}
.t b{display:block;font:600 1rem/1.375rem var(--f);font-variant-numeric:tabular-nums}
.t span{display:block;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.t .isnew{color:var(--red);font-weight:600}
.handle small{display:block;font-size:.875rem;line-height:1.25rem;font-weight:400;color:var(--ink-2)}
.handle{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.handle a{text-decoration:none}
.sheet .handle{min-width:0}
.sheet .handle a{display:block;font:600 .9375rem/1.375rem var(--f);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet .handle small{display:block;font-size:.875rem;line-height:1.25rem;font-weight:400;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wl{display:grid;grid-template-columns:minmax(0,1fr);gap:2px 1.25rem;align-items:center;min-width:0}
@container sheet (min-width:56.25rem){.wl{grid-template-columns:minmax(10.625rem,16.25rem) minmax(0,1fr)}}
.wl > .ev:only-child{grid-column:1/-1}
.bl{min-width:0;overflow-wrap:anywhere}
.brand{display:flex;align-items:center;gap:.5625rem;min-width:0;font:600 1rem/1.375rem var(--f)}
.brand::before{content:"";width:.625rem;height:.625rem;border-radius:2px;background:var(--red);flex:none}
.brand.comp{font-weight:500}
.brand.comp::before{background:none;box-shadow:inset 0 0 0 2px var(--teal)}
.brand.pend{font-weight:500}
.brand.pend::before{border-radius:50%;background:var(--grey)}
.brand bdi{min-width:0;overflow-wrap:anywhere}
.brand small{font:400 .8125rem/1.125rem var(--f);color:var(--ink-2)}
.also{margin-top:2px;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.also > :not(:last-child)::after{content:"\00b7";margin:0 3px 0 .4375rem}
.also > span{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.also small{font-size:.8125rem;white-space:nowrap}
.also .comp,.also .mine{color:var(--ink);font-weight:500}
.also .comp::before,.also .mine::before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:2px;margin-right:.375rem}
.also .comp::before{box-shadow:inset 0 0 0 2px var(--teal)}
.also .mine::before{background:var(--red)}
.also .more{cursor:default}
.ev{min-width:0;font-size:.9375rem;line-height:1.375rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.how{font:600 max(10px,.75rem)/1rem var(--f);letter-spacing:.06875rem;text-transform:uppercase;color:var(--ink-2);margin-right:.5rem}
.ev [dir="rtl"],.ev :dir(rtl){font-size:1rem}
.missed-note{display:block;margin-top:.25rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.missed-note::first-letter{text-transform:uppercase}
tr.more td{padding:.875rem .625rem;border-bottom:0}
.empty{padding:2.5rem .625rem;color:var(--ink)}
.empty p{margin:0 0 .875rem}
@media (hover:hover) and (pointer:fine){.handle a:hover{text-decoration:underline}}
/* a short laptop screen, as the prototype's max-height:800px: a tighter page head and a denser sheet (8px row
   padding, 40px thumbnails, 14px over a day header), so five rows show at 1280x720 */
@media (max-height:640px){
  .head,.pagehead{padding-top:.875rem}
  .sheet tr.day td{padding-top:.875rem}
  .sheet tbody tr.row > td{padding-top:.5rem;padding-bottom:.5rem}
  .sheet .thumb{width:2.5rem;height:2.5rem}
}

/* ---------- the snap panel (Mentions, and the standalone snap page) ---------- */
.panel{border-left:1px solid var(--rule);background:var(--paper);display:flex;flex-direction:column;min-height:0;animation:pin .18s var(--ease)}
@keyframes pin{from{transform:translateX(1rem);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.panel{animation:none}}
.panel:empty{display:none}
.panel.closing{display:none}
.panel-head{display:flex;align-items:flex-start;gap:.75rem;padding:1.125rem 1.375rem .875rem;border-bottom:1px solid var(--rule)}
.panel-head .h{flex:1;min-width:0}
.panel-head h2{font:600 1.125rem/1.5rem var(--f)}
.panel-head h2 span{margin-left:.5rem;font-size:.9375rem;font-weight:400;color:var(--ink-2)}
.panel-head .h div{font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.panel-head .btn{margin:-.25rem -.5rem 0 0}
.panel-body{flex:1;overflow:auto;padding:1.125rem 1.375rem 1.375rem;display:flex;flex-direction:column;gap:1.25rem}
.panel-note{color:var(--ink)}
.panel-note .btn{margin-left:.5rem}
.evidence{display:grid;grid-template-columns:8.25rem minmax(0,1fr);gap:1.125rem;align-items:start}
.evidence.solo{grid-template-columns:minmax(0,1fr)}
/* 132px: below that Chrome's native controls (still the player wherever there is no Reel link) drop the play button */
.video{width:8.25rem;aspect-ratio:9/16;border-radius:.5rem;background:var(--stage);position:relative;display:grid;place-items:center;color:#fff;overflow:hidden}
.video video,.video img{width:100%;height:100%;object-fit:contain;display:block;background:var(--stage)}
/* on Mentions the media is a poster into the Reel, which owns the player: the frame and a drawn play button */
.video.poster{text-decoration:none}
.video.poster img{object-fit:cover}
.video.poster:focus-visible{border-radius:.5rem}
.video .pl{position:absolute;right:.625rem;bottom:.625rem;width:1.875rem;height:1.875rem;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center;box-shadow:0 2px .375rem rgba(0,0,0,.3)}
.video .pl svg.i{width:.75rem;height:.75rem;margin-left:2px}
@media (hover:hover) and (pointer:fine){.video.poster:hover .pl{background:var(--stage-ink)}}
.mlist{display:flex;flex-direction:column;min-width:0}
.mlist > .pr{margin-top:.875rem;font-size:.8125rem;line-height:1.125rem;color:var(--ink-2)}
.mrow{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;min-width:0}
.mrow + .mrow{margin-top:.875rem;padding-top:.875rem;border-top:1px solid var(--rule)}
.mrow .b{display:flex;align-items:center;gap:.5625rem;font:600 1rem/1.375rem var(--f)}
/* the brand's mark, as on the sheet: solid red for the client, hollow teal for a competitor, a grey dot for the rest */
.mrow .b.client::before,.mrow .b.comp::before,.mrow .b.other::before{content:"";width:.625rem;height:.625rem;flex:none}
.mrow .b.client::before{border-radius:2px;background:var(--red)}
.mrow .b.comp::before{border-radius:2px;box-shadow:inset 0 0 0 2px var(--teal)}
.mrow .b.other::before{border-radius:50%;background:var(--grey)}
.mrow .pr{font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.mrow button.pr{all:unset;cursor:pointer;color:var(--ink);text-decoration:underline dotted;text-underline-offset:3px}
.mrow button.pr:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}
@media (hover:hover) and (pointer:fine){.mrow button.pr:hover{text-decoration-style:solid}}
/* the tag select draws its own marker and chevron (background SVGs) */
.tagrow{display:inline-flex;align-items:center;margin-top:.375rem}
.tagrow .aiq{margin-left:.5rem;font-size:.8125rem;font-weight:400;color:var(--ink-2)}
.tagsel{display:inline-flex;align-items:center;gap:.375rem;height:1.875rem;white-space:nowrap;padding:0 .5rem 0 .625rem;border:1px solid var(--rule-strong);border-radius:var(--r);background:#fff;font:500 .8125rem/1.125rem var(--f);color:var(--ink);cursor:pointer}
select.tagsel{appearance:none;-webkit-appearance:none;field-sizing:content;margin:0;padding:0 1.75rem 0 1.5625rem;
  background-color:#fff;background-repeat:no-repeat;background-position:.625rem 50%,right .4375rem center;background-size:.5rem .5rem,.875rem .875rem;
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D3935' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
select.tagsel.client{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Crect width='8' height='8' rx='2' fill='%23E50100'/%3E%3C/svg%3E"),var(--chev)}
select.tagsel.comp{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Crect x='1' y='1' width='6' height='6' rx='1' fill='none' stroke='%23145566' stroke-width='2'/%3E%3C/svg%3E"),var(--chev)}
select.tagsel.other{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Ccircle cx='4' cy='4' r='3' fill='%23CFCAC5'/%3E%3C/svg%3E"),var(--chev)}
select.tagsel:disabled{cursor:default;color:var(--ink-2)}
@media (hover:hover) and (pointer:fine){.tagsel:not(:disabled):hover{border-color:var(--ink)}}
.tagmenu .menu-trig .chev{width:.875rem;height:.875rem}
.tagmenu .menu-trig .mk:not(.c):not(.p):not(.o){display:none}
/* a snap's products: their own lines under the brand (a bag glyph, the name in ink, then how and when) */
.prods{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.375rem;min-width:0;max-width:100%}
.prod{display:grid;grid-template-columns:.875rem minmax(0,1fr);column-gap:.4375rem;align-items:baseline;font-size:.875rem;line-height:1.25rem;min-width:0}
.prod svg.i{grid-column:1;width:.875rem;height:.875rem;align-self:center;color:var(--ink-2)}
.prod .pname{grid-column:2;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.prod .pr{grid-column:2;font-size:.8125rem;line-height:1.125rem}
.prod.bare .pr{grid-column:1/-1}
/* brands tagged other: one quiet item in a feed row, one closed group in the panel (still re-taggable inside) */
.others{margin-top:.875rem;padding-top:.875rem;border-top:1px solid var(--rule)}
.mlist > .others:first-child{margin-top:0;padding-top:0;border-top:0}
.others > summary{display:flex;align-items:center;gap:.5rem;cursor:pointer;list-style:none;font:500 .875rem/1.25rem var(--f);color:var(--ink);min-width:0}
.others > summary::-webkit-details-marker{display:none}
.others > summary svg.i{width:.875rem;height:.875rem;flex:none;transform:rotate(-90deg);transition:transform 120ms var(--ease)}
.others[open] > summary svg.i{transform:none}
.others > summary .names{flex:1;min-width:0;margin-left:2px;font-weight:400;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.others[open] > summary .names{display:none}
.others > summary:focus-visible{outline-offset:2px;border-radius:2px}
.others > .mrow{margin-top:.875rem;padding-top:.875rem;border-top:1px solid var(--rule)}
@media (prefers-reduced-motion:reduce){.others > summary svg.i{transition:none}}
/* what was said: the original and English side by side, split by one centred hairline */
.sec h3{margin-bottom:.5rem;font:600 max(10px,.75rem)/1rem var(--f);letter-spacing:.075rem;text-transform:uppercase;color:var(--ink-2)}
.bilingual{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:1.3125rem;background:linear-gradient(var(--rule),var(--rule)) center/1px 100% no-repeat}
.bilingual.one{grid-template-columns:minmax(0,1fr);background:none}
.bilingual > div{font-size:.9375rem;line-height:1.4375rem}
.bilingual .lh{display:block;margin-bottom:.25rem;font:500 max(10px,.75rem)/1rem var(--f);color:var(--ink-2)}
.bilingual .tx{display:block;white-space:pre-line;overflow-wrap:anywhere}
.bilingual .tx:dir(rtl),.bilingual .tx:lang(ar){font-size:1.0625rem;line-height:1.75rem}
mark{background:var(--blush);color:var(--ink);padding:0 2px;border-radius:2px}
mark.comp{background:var(--teal-tint);color:var(--ink)}
.panel-foot{flex-wrap:wrap;display:flex;align-items:center;gap:.5rem .625rem;padding:.875rem 1.375rem;border-top:1px solid var(--rule)}
.panel-foot .btn{white-space:nowrap}
.panel.solo{animation:none;border-left:0;min-height:0;overflow:auto}
.panel.solo .panel-body{flex:none}
/* the standalone snap page: the same panel across the whole work area. The head sits under the 2px ink rule of the
   other pages' top lines; the evidence (the copy and its brands) is the left column, what was said the right */
.panel.solo .panel-head{margin:.5rem 2rem 0;padding:1.125rem 0 1rem}
.panel.solo .panel-body{display:grid;grid-template-columns:minmax(0,35rem) minmax(0,1fr);column-gap:3.5rem;align-items:start;padding:1.25rem 2rem 1.75rem}
.panel.solo .panel-body > :not(.evidence){grid-column:2}
.panel.solo .evidence{grid-column:1;grid-row:1/span 5}
.panel.solo .evidence:not(.solo){grid-template-columns:12.5rem minmax(0,1fr)}
.panel.solo .video{width:12.5rem}
.panel.solo .panel-foot{margin:0 2rem;padding:.875rem 0}
@media (max-width:944px){
  .panel.solo .panel-body{grid-template-columns:minmax(0,1fr)}
  .panel.solo .panel-body > :not(.evidence),.panel.solo .evidence{grid-column:1;grid-row:auto}
}
/* corrections, in the panel in place of the brand list */
.cform{gap:.5rem;align-items:stretch}
.cform-field{display:flex;flex-direction:column;gap:.25rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.cform-field input,.cform-field textarea{height:2.125rem;padding:0 .625rem;border:1px solid var(--rule-strong);border-radius:var(--r);background:#fff;font:400 .875rem/1.25rem var(--f);color:var(--ink)}
.cform-field input:focus,.cform-field textarea:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.cform-field input[aria-invalid],.cform-field textarea[aria-invalid]{border-color:var(--deep)}
.cform-field input::placeholder{color:var(--ink-2);opacity:1}
.cform-check{display:flex;align-items:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;color:var(--ink)}
.cform-check input{accent-color:var(--ink)}
.cform-acts{display:flex;gap:.375rem;margin-top:.25rem}
.cform-error{font:500 .875rem/1.25rem var(--f);color:var(--deep)}

/* ---------- Coverage, Clients and Setup: groups of hairline tables ---------- */
.pagebar{padding:0 2rem .875rem;border-bottom:1px solid var(--rule)}
.pagebar .dates{display:none;align-items:center;gap:.5rem}
.pagebar:has(select[name="period"] option[value="custom"]:checked) .dates{display:flex}
.pagebar .cform-error{margin-top:.5rem}
.groups{overflow:auto;padding:.25rem 2rem 2rem;flex:1;min-height:0}
.groups > .range-error{margin-top:1.125rem}
.group{margin-top:1.75rem}
/* a section head: tracked caps over a hairline */
.group h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:.25rem .625rem;padding-bottom:.5rem;border-bottom:1px solid var(--rule-strong);font:600 .8125rem/1.125rem var(--f);letter-spacing:.075rem;text-transform:uppercase}
.group h2 .n{font:600 .8125rem/1.125rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:0;color:var(--ink)}
.group h2 .hint{margin-left:auto;font:400 .875rem/1.125rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none;color:var(--ink-2)}
.group h2 .btn{margin-left:auto;letter-spacing:0;text-transform:none}
.groups tbody td{vertical-align:middle;padding:.625rem}
.groups thead.quiet{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.groups .none{font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.groups p.none{margin-top:.75rem}
.groups .tag small{margin-left:2px}
.state{display:inline-flex;align-items:center;gap:.4375rem;font-weight:500;color:var(--deep)}
.state::before{content:"";width:.4375rem;height:.4375rem;flex:none;border-radius:50%;background:var(--deep)}
.why{font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
/* "Show all N" folds: a native disclosure (every row is on the page already) */
.groups details.more > summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:.375rem;padding:.5rem .625rem;font:500 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums;color:var(--ink)}
.groups details.more > summary::-webkit-details-marker{display:none}
.groups details.more > summary svg.i{width:.875rem;height:.875rem}
.groups details.more[open] > summary{display:none}
@media (hover:hover) and (pointer:fine){
  .groups details.more > summary:hover{text-decoration:underline;text-underline-offset:3px}
  .linkbtn:hover{text-decoration-thickness:2px}
}

/* ---------- Influencers: the week calendar (influencers.html, _flow_*.html, flow.js) ----------
   The influencers down the side, the seven Gulf days across, one block per story the filter counts: solid red the
   client's brand, hollow teal a competitor, and under Everything grey neither and dashed deep red missed. The day
   head sticks (and the handles, on a sideways scroll); the quick row under it doesn't. The hovered block's day is
   crossed (data-col) with its row's band. */
.weeknav{margin-left:auto;display:flex;align-items:center;gap:.375rem;flex:none}
.weeknav .wk{padding:0 .375rem;font:500 .875rem/1.25rem var(--f);white-space:nowrap}
.weeknav .spacer{visibility:hidden}
/* the top line: the figure is red for the brand only, ink for Competitors and Everything; the sentence sits on the
   figure's baseline (Overview's top line and the approved mockup) */
.fl-top{margin:.5rem 2rem 0;padding:1rem 0 1.25rem}
.fl-top .lead{display:flex;align-items:baseline;gap:1rem;min-width:0}
.fl-top .lead .fig{flex:none;align-self:auto;font-size:3.5rem;line-height:3.5rem}
.fl-top .lead .fig.ink{color:var(--ink)}
.fl-top .lead .say{min-width:0;max-width:32rem;font-size:1.1875rem;line-height:1.625rem;white-space:normal}
@media (max-width:1093px){.fl-top .lead .say{max-width:26rem;font-size:1.0625rem;line-height:1.5rem}}
@media (max-height:640px){.fl-top{margin-top:.75rem;padding:.75rem 0 .875rem}.fl-top .lead .fig{font-size:3.125rem;line-height:3.125rem}}
/* the filter row: the tabs (DESIGN.md Tabs: the current one underlined in red, on the row's rule), Find, the key */
.fbar{display:flex;align-items:center;flex-wrap:wrap;gap:.625rem 1.75rem;padding:.625rem 2rem;border-bottom:1px solid var(--rule)}
.ftabs{position:relative;display:flex;align-self:stretch;gap:1.5rem;flex:none}
.ftab{position:relative;display:inline-flex;align-items:center;gap:.4375rem;font:600 .9375rem/1.25rem var(--f);color:var(--ink-2);text-decoration:none;white-space:nowrap}
.ftab[aria-current="true"]{color:var(--ink)}
.ftab[aria-current="true"]::after{content:"";position:absolute;left:0;right:0;bottom:calc(-.625rem - 1px);height:2px;background:var(--red)}
.ftab .blk,.key .blk{width:.4375rem;height:.9375rem}
a.ftab.htmx-request:not([aria-current="true"])::after{content:"";position:absolute;left:0;right:0;bottom:calc(-.625rem - 1px);height:2px;background:var(--rule-strong)}
/* the sliding underline: one red line beside the tabs (htmx replaces the tabs, never it), a 1px line scaled to the
   current tab's width. flow.js places it and marks the row [data-ind]; then it stands in for the current tab's own
   underline, which is what shows until then and without JavaScript. It slides on a filter switch by pointer. */
.ind{position:absolute;left:0;bottom:calc(-.625rem - 1px);width:1px;height:2px;background:var(--red);transform-origin:left center;opacity:0;pointer-events:none;transition:transform 200ms var(--ease)}
.ftabs[data-ind] .ind{opacity:1}
.ftabs[data-ind] .ftab[aria-current="true"]::after{content:none}
.find{display:flex;align-items:center;gap:.5rem;flex:none;width:17.5rem;height:2.125rem;padding:0 .625rem;border:1px solid var(--rule-strong);border-radius:var(--r);color:var(--ink-2)}
.find svg.i{width:.9375rem;height:.9375rem}
.find input[type="search"]{width:100%;min-width:0;border:0;outline:0;background:none;font:500 .875rem/1.25rem var(--f);color:var(--ink)}
.find input::placeholder{color:var(--ink-2);opacity:1}
.find:focus-within{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.fcount{font-size:.875rem;line-height:1.25rem;color:var(--ink-2);white-space:nowrap}
.key{margin-left:auto;display:flex;flex-wrap:wrap;gap:.5rem 1.125rem;font:500 .875rem/1.25rem var(--f);color:var(--ink)}
.key span{display:flex;align-items:center;gap:.5rem}
.blk{display:inline-block;flex:none;width:.5625rem;height:1.375rem;border-radius:2px;background:var(--grey)}
.blk.c{background:var(--red)}
.blk.p{background:var(--paper);box-shadow:inset 0 0 0 2px var(--teal)}
.blk.m{background:var(--paper);border:2px dashed var(--deep)}
.blk.on{outline:2px solid var(--ink);outline-offset:1px}
a.blk:focus-visible{outline-offset:1px}

.flow{flex:1;min-height:0;overflow:auto;position:relative;padding:0 2rem 3rem}
/* a day column is never narrower than a full cell (the One Line Cell Rule: four blocks and a two-digit "+N", 77px at
   80%): in a narrow window the handle column gives up its room first, then the calendar scrolls sideways under its
   sticky handles, so no "+N" is ever cut */
.fhead,.frow,.fsum{display:grid;grid-template-columns:minmax(10.625rem,13.75rem) repeat(7,minmax(6.125rem,1fr)) 5rem;min-width:58.5rem}
.fhead{position:sticky;top:0;z-index:3;background:var(--paper)}
.gh{padding:.75rem .625rem .5rem;border-bottom:1px solid var(--rule-strong);background:var(--paper);font:600 .8125rem/1.125rem var(--f);letter-spacing:.075rem;text-transform:uppercase}
.gh small{display:block;font:500 .8125rem/1.125rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none;color:var(--ink-2)}
.gh.today{background:var(--ink);color:#fff}
.gh.today small{color:var(--rail-ink-2)}
.gh.r{text-align:right;padding-right:.875rem}
.gh:first-child{position:sticky;left:0;z-index:1;padding-left:0}
/* the quick row: each day's count of what the filter draws, on Warm Band, with a 2px Second Ink bar scaled to the
   busiest day (neutral, so it never competes with the squares); the week's sum under the total column */
.fsum > *{padding:.625rem .625rem .75rem;border-bottom:1px solid var(--rule-strong);background:var(--band)}
.fsum .lab{position:sticky;left:0;z-index:1;font-size:.8125rem;line-height:1.125rem;font-weight:500;color:var(--ink-2)}
.fsum .d{border-left:1px solid var(--band-2)}
.fsum .d b{display:block;font:600 1rem/1.25rem var(--f);font-variant-numeric:tabular-nums}
.fsum .bar{display:block;margin-top:.375rem;height:2px;border-radius:1px;background:var(--ink-2);transform-origin:left center;transition:transform 250ms var(--ease-in-out)}
.fsum .t{text-align:right;padding-right:.875rem;font:600 1.125rem/1.375rem var(--f);font-variant-numeric:tabular-nums}
/* the fold line: who the list leaves out, and "See everyone" */
.ffold{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .5rem;padding:1rem 0 .25rem;font-size:.9375rem;line-height:1.375rem;color:var(--ink-2)}
.ffold:empty{display:none}
.ffold a{font-weight:600;color:var(--ink);text-underline-offset:3px}
.ffold a + .wait{margin-left:.5rem;padding-left:1rem;border-left:1px solid var(--rule)}
.fgroup{scroll-margin-top:4rem}
.fgroup > summary{list-style:none;display:flex;align-items:baseline;gap:.625rem;min-width:58.5rem;padding:1.125rem 0 .625rem;border-bottom:1px solid var(--rule);cursor:pointer;font:600 .8125rem/1.125rem var(--f);letter-spacing:.075rem;text-transform:uppercase}
.fgroup > summary::-webkit-details-marker{display:none}
.fgroup > summary svg.i{width:.9375rem;height:.9375rem;align-self:center;transform:rotate(-90deg);transition:transform 120ms cubic-bezier(.23,1,.32,1)}
.fgroup[open] > summary svg.i{transform:none}
.fgroup > summary b{font:600 .8125rem/1.125rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:0;color:var(--ink)}
.fgroup > summary small{font:500 .875rem/1.125rem var(--f);letter-spacing:0;text-transform:none;color:var(--ink-2)}
@media (prefers-reduced-motion:reduce){.fgroup > summary svg.i{transition:none}}
.flow .none{padding:.75rem 0;border-bottom:1px solid var(--rule);font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
/* each row is a layer of its own, so a row on the move passes whole rows, names and all: on a filter switch one going
   down passes over the rows that stay, and one climbing passes over both, on Paper (flow.js adds the class for the
   280ms move). The climbing row's lift is a shadow on its ::after that fades in as it rises and out as it lands
   (opacity only, the move's 280ms), so it never snaps on or off */
.frow{position:relative;z-index:0}
.frow.down{z-index:1;background:var(--paper)}
.frow.up{z-index:2;background:var(--paper)}
.frow.up::after{content:"";position:absolute;inset:0;z-index:-1;box-shadow:var(--shadow-lift);pointer-events:none;opacity:0;animation:fl-lift 280ms linear}
@keyframes fl-lift{30%,70%{opacity:1}}
.frow > *{border-bottom:1px solid var(--rule)}
.inf{position:sticky;left:0;z-index:1;min-width:0;padding:.5rem .625rem .5rem 0;background:var(--paper)}
.inf a,.flow .names a{display:block;font:600 .9375rem/1.25rem var(--f);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inf span,.flow .names span{display:block;font-size:.8125rem;line-height:1.125rem;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a day cell is one line: at most K blocks (routes/influencers.CELL) and "+N"; nowrap and the clip are a guard */
.cell{display:flex;flex-wrap:nowrap;overflow:hidden;align-items:center;gap:.25rem;min-height:3.25rem;padding:.375rem .5rem;border-left:1px solid #EFECE9}
.cell.today{background:#FAF9F7}
.plus{padding:0 2px;font:600 .8125rem/1.375rem var(--f);font-variant-numeric:tabular-nums;color:var(--ink);text-decoration:none}
.tot{display:flex;align-items:center;justify-content:flex-end;padding-right:.875rem;font:600 1.125rem/1.375rem var(--f);font-variant-numeric:tabular-nums}
.tot.zero{font-weight:500;color:var(--ink-2)}
/* the crosshair: the hovered block's day, down the rows and under its head */
.flow[data-col="0"] .frow > :nth-child(2),.flow[data-col="1"] .frow > :nth-child(3),.flow[data-col="2"] .frow > :nth-child(4),.flow[data-col="3"] .frow > :nth-child(5),.flow[data-col="4"] .frow > :nth-child(6),.flow[data-col="5"] .frow > :nth-child(7),.flow[data-col="6"] .frow > :nth-child(8){background:#F1EEEA}
.flow[data-col="0"] .gh:nth-child(2),.flow[data-col="1"] .gh:nth-child(3),.flow[data-col="2"] .gh:nth-child(4),.flow[data-col="3"] .gh:nth-child(5),.flow[data-col="4"] .gh:nth-child(6),.flow[data-col="5"] .gh:nth-child(7),.flow[data-col="6"] .gh:nth-child(8){box-shadow:inset 0 -3px 0 var(--ink)}
.flow[data-col="6"] .gh.today{box-shadow:inset 0 -3px 0 var(--rail-ink-2)}
/* the motion (transform and opacity only). On a full page (#flow[data-arrive]; flow.js drops it when the arrival ends
   or at the first swap) the week fills in: the first 16 rows rise 22ms apart and each of their squares grows from its
   foot 30ms a day plus 22ms a row, just after its row. When those rows hold more than 60 squares (routes/influencers
   ARRIVAL_SQUARES; Everything on a busy week) #flow is data-arrive="rows" and only the rows rise: hundreds of square
   animations at once dropped most frames under 4x CPU throttling (Task 5). On a filter switch by pointer the squares
   the filter adds grow (.pop, from flow.js, up to its POPS) 22ms a day; the squares that stay don't move. A row's
   place (--i) and a cell's day (--c) set the delays. Under reduced motion all of it only fades. */
@keyframes fl-rise{from{opacity:0;transform:translateY(.5rem)}}
@keyframes fl-grow{from{opacity:0;transform:scaleY(.35)}}
.frow:nth-child(2){--i:1}.frow:nth-child(3){--i:2}.frow:nth-child(4){--i:3}.frow:nth-child(5){--i:4}.frow:nth-child(6){--i:5}.frow:nth-child(7){--i:6}.frow:nth-child(8){--i:7}.frow:nth-child(9){--i:8}.frow:nth-child(10){--i:9}.frow:nth-child(11){--i:10}.frow:nth-child(12){--i:11}.frow:nth-child(13){--i:12}.frow:nth-child(14){--i:13}.frow:nth-child(15){--i:14}.frow:nth-child(16){--i:15}
.cell[data-c="1"]{--c:1}.cell[data-c="2"]{--c:2}.cell[data-c="3"]{--c:3}.cell[data-c="4"]{--c:4}.cell[data-c="5"]{--c:5}.cell[data-c="6"]{--c:6}
.flow[data-arrive] .frow:nth-child(-n+16){animation:fl-rise 260ms var(--ease) backwards;animation-delay:calc(var(--i,0) * 22ms)}
.flow[data-arrive]:not([data-arrive="rows"]) .frow:nth-child(-n+16) .blk{transform-origin:50% 100%;animation:fl-grow 220ms var(--ease) backwards;animation-delay:calc(40ms + var(--i,0) * 22ms + var(--c,0) * 30ms)}
.flow .blk.pop{transform-origin:50% 100%;animation:fl-grow 220ms var(--ease) backwards;animation-delay:calc(var(--c,0) * 22ms)}
@media (prefers-reduced-motion:reduce){
  .flow[data-arrive] .frow:nth-child(-n+16),.flow[data-arrive]:not([data-arrive="rows"]) .frow:nth-child(-n+16) .blk,.flow .blk.pop{animation-name:fade}
  .ind,.fsum .bar{transition:none}
}
.flow .names{display:grid;grid-template-columns:repeat(auto-fill,minmax(13.125rem,1fr));gap:.625rem 1.75rem;padding:.875rem 0 1.125rem;border-bottom:1px solid var(--rule)}
.flow .names > div{min-width:0}
.cant{display:grid;grid-template-columns:minmax(10.625rem,13.75rem) minmax(0,1fr);min-width:58.5rem;border-bottom:1px solid var(--rule)}
.cant .why{display:flex;align-items:center;gap:.625rem;padding:.5rem .625rem;color:var(--ink)}
.cant .why b{flex:none;font-weight:600;color:var(--deep)}
.cant .why a{flex:none;margin-left:auto;font-weight:500}
.flow .more{padding:.75rem 0 .375rem}
@media (hover:hover) and (pointer:fine){
  .ftab:hover{color:var(--ink)}
  .ffold a:hover{text-decoration-thickness:2px}
  .fgroup > summary:hover small{color:var(--ink)}
  .frow:hover > *{background:var(--band)}
  .frow:hover > .cell.today{background:var(--band-2)}
  a.blk:hover{outline:2px solid var(--ink);outline-offset:1px}
  .inf a:hover,.flow .names a:hover,a.plus:hover{text-decoration:underline}
}

/* the hover card: it waits on the first hover, then switches at once between blocks; it grows from its block
   (--origin, set by flow.js), 150 ms in and 90 ms out; with reduced motion it only fades */
.hc{position:fixed;z-index:60;left:0;top:0;width:19.25rem;display:grid;grid-template-columns:3.375rem minmax(0,1fr);gap:.75rem;padding:.75rem;background:var(--paper);border:1px solid var(--rule-strong);border-radius:.5rem;box-shadow:var(--shadow-pop);pointer-events:none;opacity:0;visibility:hidden;transform:scale(.97);transform-origin:var(--origin,50% 100%);transition:opacity 90ms ease-out,transform 90ms ease-out,visibility 0s linear 90ms}
.hc.on{opacity:1;visibility:visible;transform:none;transition:opacity 150ms cubic-bezier(.23,1,.32,1),transform 150ms cubic-bezier(.23,1,.32,1),visibility 0s}
.hc.instant{transition-duration:0s}
@media (prefers-reduced-motion:reduce){.hc,.hc.on{transform:none}}
.hc > div{min-width:0}
.hc .th{width:3.375rem;height:6rem;border-radius:.3125rem;background:var(--band);overflow:hidden}
.hc .th img{display:block;width:100%;height:100%;object-fit:cover}
.hc .th.m{background:var(--paper);border:2px dashed var(--deep)}
.hc .when{font:600 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums}
.hc .when span{font-weight:400;color:var(--ink-2)}
.hc .b{display:flex;align-items:center;gap:.5625rem;margin-top:.375rem;font:600 .9375rem/1.3125rem var(--f)}
.hc .b::before{content:"";width:.625rem;height:.625rem;flex:none;border-radius:2px;background:var(--red)}
.hc .b.comp::before{background:none;box-shadow:inset 0 0 0 2px var(--teal)}
.hc .b bdi{min-width:0;overflow-wrap:anywhere}
.hc .b small{flex:none;font:400 max(10px,.75rem)/1rem var(--f);color:var(--ink-2)}
.hc .pp{display:grid;grid-template-columns:.8125rem minmax(0,1fr);column-gap:.375rem;margin-left:1.1875rem;font-size:.8125rem;line-height:1.125rem;overflow-wrap:anywhere}
.hc .pp svg.i{width:.8125rem;height:.8125rem;align-self:center;color:var(--ink-2)}
.hc .none{margin-top:.375rem;font:500 .875rem/1.25rem var(--f)}
.hc .miss{margin-top:.375rem;font:600 .875rem/1.25rem var(--f);color:var(--deep)}
.hc .oth{margin-top:.25rem;font-size:.8125rem;line-height:1.125rem;color:var(--ink-2)}
.hc .q{margin-top:.375rem;font-size:.8125rem;line-height:1.125rem;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hc .q .how{font-size:max(10px,.6875rem)}
.hc .hint{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;padding-top:.5rem;border-top:1px solid var(--rule);font:500 max(10px,.75rem)/1rem var(--f);color:var(--ink-2)}
.hc .kb{padding:0 .3125rem;border:1px solid var(--rule-strong);border-bottom-width:2px;border-radius:.25rem;font:600 max(10px,.6875rem)/1rem var(--f);color:var(--ink)}

/* ---------- Overview: one brand's home page (overview.html, _overview_body.html) ----------
   Every rule for it is under .ov (the motion, static/overview.js, builds on that). The head and the body scroll
   together on one centred axis, 84rem of content as in the approved mockup: the filter row (the period tabs, the
   Brand choice, the window note), the top line (the red figure, then three side figures between hairlines), then two
   equal columns: share of voice | day by day, then who mentioned the brand | competitor watch over the products, so
   the right column holds two sections and neither ends early (owner, 2026-11-16). Each section is a caps head over a
   Strong Hairline, never a box. Red is the brand; a competitor is the hollow teal square in a list and chart teal in
   a chart. Long names break anywhere inside their cells; every grid child may shrink below its content. */
.ov-page{position:relative;flex:1;min-height:0;overflow:auto;padding-bottom:3rem}
.ov-page > .pagehead,.ov-page > .ov{width:100%;max-width:88rem;margin-inline:auto}
.ov{padding:0 2rem}
.ov .empty{padding:2.5rem 0}
.ov .filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:0 1.75rem;border-bottom:1px solid var(--rule)}
.ov .tablist{display:flex;align-items:flex-end;gap:1.75rem;flex:none}
/* the selected tab's red underline is its own mark, so a period change by pointer can slide it from the tab before
   (overview.js sets --from, the old place, then lets it go): the same 2px on the hairline as Mentions' border */
.ov .mtab{position:relative}
.ov .mtab[aria-selected="true"]{border-bottom-color:transparent}
.ov .mtab[aria-selected="true"]::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--red);transform-origin:left center;transform:var(--from,none);transition:transform 200ms var(--ease)}
.ov .mtab.still::after{transition:none}
.ov .bchoice{display:flex;align-items:center;gap:.5rem;min-width:0;max-width:100%;padding-bottom:.5rem}
.ov .bchoice .select{max-width:100%}
.ov .bchoice select{min-width:0;max-width:20rem;overflow:hidden;text-overflow:ellipsis}
.ov .note{flex:1 1 18rem;min-width:0;padding-bottom:.75rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
/* the top line: the Mentions top line's figure and sentence, then its side figures */
.ov .top{display:flex;flex-wrap:wrap;align-items:flex-end;gap:1.25rem 2.5rem;padding:1.75rem 0 1.5rem}
.ov .lead{display:flex;align-items:baseline;gap:1rem;min-width:0;max-width:42rem}
.ov .lead .fig{flex:none;align-self:auto}
.ov .lead .say{min-width:0;white-space:normal;overflow-wrap:anywhere}
.ov .sfigs{display:flex;flex-wrap:wrap;row-gap:.75rem}
.ov .sfigs > div{padding:0 1.75rem;border-left:1px solid var(--rule-strong);font-size:.875rem;line-height:1.25rem;color:var(--ink-2);white-space:nowrap}
.ov .sfigs b{display:flex;align-items:center;gap:.25rem;font:600 1.75rem/2.25rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:-.03125rem;color:var(--ink)}
.ov .sfigs b svg.i{width:1.25rem;height:1.25rem;stroke-width:2.5}
/* the grid */
.ov .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"sov trend" "who stack";gap:2.5rem 3rem;align-items:start;margin-top:1rem}
.ov .grid > *{min-width:0}
.ov .g-sov{grid-area:sov}
.ov .g-trend{grid-area:trend}
.ov .g-who{grid-area:who}
.ov .stack{grid-area:stack;display:grid;gap:2.5rem}
/* a section head: its title in tracked caps over a Strong Hairline, the hint and the Table button at its right. The
   h2 holds only the title, so the heading (and the section it names) is called just that */
.ov .sh{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .625rem;padding-bottom:.5rem;border-bottom:1px solid var(--rule-strong)}
.ov .sh h2{min-width:0;font:600 .8125rem/1.125rem var(--f);letter-spacing:.075rem;text-transform:uppercase;overflow-wrap:anywhere}
.ov .sh .hint{margin-left:auto;font-size:.875rem;line-height:1.125rem;font-variant-numeric:tabular-nums;color:var(--ink-2)}
/* the Table button is a quiet text button; its padding, cancelled by its margin, makes the press target bigger than
   the word, and it answers a press like every button (DESIGN.md Buttons). It swaps its chart for the table and back
   (overview.js), so it reads "Table" or "Chart" */
.ov .tbl{padding:.25rem .375rem;margin:-.25rem -.375rem;font:500 .8125rem/1.125rem var(--f);color:var(--ink);text-decoration:underline;text-underline-offset:3px;transition:transform 140ms var(--ease)}
.ov .tbl:active{transform:scale(.97)}
.ov .why{margin-top:.5rem}
.ov .none{margin-top:.875rem;font-size:.875rem;line-height:1.25rem;color:var(--ink)}
.ov .none a{font-weight:500}
/* marks and bars: a bar is drawn at its full length and sized with scaleX, its share of the longest row */
.ov .mk{display:inline-block;flex:none;width:.5rem;height:.5rem;border-radius:2px}
.ov .mk.own{background:var(--red)}
.ov .mk.rival{box-shadow:inset 0 0 0 2px var(--teal)}
.ov .bar{display:block;height:.75rem;border-radius:0 .25rem .25rem 0;background:var(--chart-teal);transform-origin:left center}
.ov .bar.own,.ov .thin{background:var(--red)}
.ov .thin{display:block;height:.375rem;margin-top:.3125rem;border-radius:0 .25rem .25rem 0;transform-origin:left center}
/* share of voice and the products: a name, its bar, its figures. The name's column grows with the section (every
   row is its own grid, so a share of the row keeps the bars lined up), so a short name doesn't wrap beside a long bar */
.ov .sov,.ov .plist{list-style:none;padding:0;margin-top:.875rem;display:grid;gap:.125rem}
.ov .sov a,.ov .plist a{display:grid;grid-template-columns:clamp(11rem,32%,15rem) minmax(0,1fr) 7rem;align-items:center;gap:.875rem;padding:.3125rem .375rem;margin:0 -.375rem;border-radius:.25rem;color:var(--ink);text-decoration:none}
.ov .plist a{grid-template-columns:clamp(12rem,36%,16rem) minmax(0,1fr) 3.5rem}
.ov .nm{display:flex;align-items:center;gap:.5rem;min-width:0;font-weight:500}
.ov .nm bdi,.ov .wh bdi{min-width:0;overflow-wrap:anywhere}
.ov .own .nm{font-weight:600}
.ov .v{font-size:.875rem;line-height:1.25rem;color:var(--ink-2);text-align:right;white-space:nowrap}
.ov .v b{font-weight:600;color:var(--ink)}
.ov .plist .v{font-weight:500;color:var(--ink)}
/* day by day: the legend, then the plot. The plot is 11rem tall at any width (charts.UNITS_PER_REM: 220 units) and
   as wide as the section less its gutters: the y ticks at the left, the end labels at the right, the x labels under
   it. The SVG is stretched over it (preserveAspectRatio="none"); its labels are HTML placed by their share of it, so
   no chart text scales with the drawing (a half-screen window drew it at 7px). In a narrow section the end labels
   keep their figures and drop their names (the legend has them), which gives the lines the room. */
.ov .g-trend{container-type:inline-size}
.ov .legend{display:flex;flex-wrap:wrap;gap:.375rem 1.25rem;margin-top:.875rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.ov .legend span{display:inline-flex;align-items:center;gap:.375rem;min-width:0;overflow-wrap:anywhere}
.ov .legend i{flex:none;width:1rem;height:2px;border-radius:2px;background:var(--red)}
.ov .legend i.rival{background:var(--chart-teal)}
.ov .plot{margin-top:.5rem;padding:.75rem 9.5rem 1.75rem 3rem}
.ov .area{position:relative;height:11rem}
.ov .lines{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}
.ov .lines line{stroke:var(--band-2);stroke-width:1px;vector-effect:non-scaling-stroke}
.ov .lines line.base{stroke:var(--rule-strong)}
.ov .ax{position:absolute;inset:0;pointer-events:none;font-size:.8125rem;line-height:1rem;color:var(--ink-2);white-space:nowrap}
.ov .ax span{position:absolute}
.ov .ax .yl{right:calc(100% + .5rem);transform:translateY(-50%)}
.ov .ax .xl{top:calc(100% + .5rem);transform:translateX(-50%)}
.ov .ax .el{left:calc(100% + .75rem);line-height:1.125rem;color:var(--ink);transform:translateY(-50%)}
.ov .ax .el b{font-weight:600}
/* an end label's key mark (the Shape Carries The Tag Rule): the brand's filled red square, the competitors' hollow
   square in their line's chart teal. It stays when a narrow plot drops the name */
.ov .ax .el .mk{margin-right:.3125rem}
.ov .ax .el .mk.rival,.ov .tip i.rival{background:none;box-shadow:inset 0 0 0 2px var(--chart-teal)}
@container (max-width:30rem){
  .ov .plot{padding-right:4.5rem}
  .ov .ax .el bdi{display:none}
}
/* the marks keep their size at any width (the SVG stretches, its strokes don't): lines 2px; an end dot is a round
   cap on a zero-length path, .625rem across, over a Paper one 2px wider all round, its ring */
.ov .lines .ln{fill:none;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ov .lines .ln.own{stroke:var(--red)}
.ov .lines .ln.rival{stroke:var(--chart-teal)}
.ov .lines .end .ring{fill:none;stroke:var(--paper);stroke-width:calc(.625rem + 2 * 2px);stroke-linecap:round;vector-effect:non-scaling-stroke}
.ov .lines .end .dot{fill:none;stroke-width:.625rem;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ov .lines .end.own .dot{stroke:var(--red)}
.ov .lines .end.rival .dot{stroke:var(--chart-teal)}
/* the hover read-out (overview.js, a fine pointer only): a hairline at the day, and the day's figures beside it. It
   is never wider than the plot and wraps a long name, so even unseen (opacity 0, still in layout) it can't widen the
   page; the script keeps it inside the plot */
.ov .lines .xh{stroke:var(--rule-strong);opacity:0;transition:opacity 125ms var(--ease)}
.ov .lines .xh.on{opacity:1}
/* it comes in over 125ms and goes in 80ms: leaving is the system answering, so it is quicker (the hover card's 150/90) */
.ov .tip{position:absolute;top:.25rem;left:0;z-index:2;max-width:100%;pointer-events:none;padding:.5rem .625rem;border:1px solid var(--rule-strong);border-radius:var(--r);background:var(--paper);box-shadow:var(--shadow-pop);font-size:.8125rem;line-height:1.125rem;opacity:0;transform:scale(.97);transform-origin:left top;transition:opacity 80ms var(--ease),transform 80ms var(--ease)}
.ov .tip.flip{transform-origin:right top}
.ov .tip.on{opacity:1;transform:none;transition-duration:125ms}
.ov .tip b{display:block;font-weight:600}
.ov .tip span{display:flex;align-items:baseline;gap:.375rem}
.ov .tip bdi{min-width:0;overflow-wrap:anywhere}
.ov .tip i{flex:none;width:.5rem;height:.5rem;border-radius:2px;background:var(--red)}
/* a chart's table: the same numbers (overview.js swaps the chart for it under "Table", and back under "Chart") */
.ov table{margin-top:.75rem;font-size:.875rem;line-height:1.25rem}
.ov thead th{position:static;padding:.375rem 0;font:500 .875rem/1.25rem var(--f);white-space:normal;overflow-wrap:anywhere}
.ov tbody td{padding:.375rem 0;vertical-align:middle;overflow-wrap:anywhere}
.ov th.n,.ov td.n{padding-left:.75rem;text-align:right}
/* who mentioned the brand, and the competitor watch: hairline rows under a head row, each row a link. A head wraps
   rather than cutting a brand's name short, and sits on the row's foot so the heads read along one line. In a narrow
   section (a half-screen window) the figure columns narrow, so a handle keeps its room and never breaks. */
.ov .rows{container-type:inline-size}
.ov .rows ol{list-style:none;padding:0}
.ov .rh,.ov .rows li > a{display:grid;grid-template-columns:minmax(0,1fr) 5rem 6.5rem 7.5rem;align-items:center;column-gap:.875rem}
.ov .people.solo .rh,.ov .people.solo li > a{grid-template-columns:minmax(0,1fr) 5rem 7.5rem}
.ov .watch .rh,.ov .watch li > a{grid-template-columns:minmax(0,1fr) 4.5rem 5rem 6.5rem}
@container (max-width:30rem){
  .ov .rh,.ov .rows li > a{grid-template-columns:minmax(0,1fr) 4.5rem 5.5rem 6rem;column-gap:.625rem}
  .ov .people.solo .rh,.ov .people.solo li > a{grid-template-columns:minmax(0,1fr) 4.5rem 6rem}
  .ov .watch .rh,.ov .watch li > a{grid-template-columns:minmax(0,1fr) 3.5rem 4.5rem 5.5rem}
}
.ov .rh{align-items:end;margin-top:.25rem;padding:.375rem 0;border-bottom:1px solid var(--rule-strong);font:500 .875rem/1.25rem var(--f);color:var(--ink-2)}
.ov .rh > span{min-width:0;overflow-wrap:anywhere}
.ov .rows li > a{padding:.5rem 0;border-bottom:1px solid var(--rule);font-size:.875rem;line-height:1.25rem;color:var(--ink);text-decoration:none}
.ov .rows .n{text-align:right;font-variant-numeric:tabular-nums}
.ov .wh{min-width:0}
.ov .wh b{display:block;font:600 .9375rem/1.375rem var(--f)}
.ov .wh small{display:block;font-size:.8125rem;line-height:1.125rem;color:var(--ink-2)}
.ov .watch .nm{font-size:.9375rem;line-height:1.375rem}
.ov .delta{display:inline-flex;align-items:center;gap:.25rem}
.ov .delta svg.i{width:.875rem;height:.875rem;stroke-width:2.5}
.ov .gap{margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--rule);font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.ov .gap b{font-weight:600;color:var(--ink)}
.ov .chips{display:flex;flex-wrap:wrap;gap:.3125rem;margin-top:.5rem}
.ov .chips span{max-width:100%;padding:0 .5rem;border-radius:.25rem;background:var(--band);font:500 .8125rem/1.5rem var(--f);color:var(--ink);overflow-wrap:anywhere}
@media (hover:hover) and (pointer:fine){
  .ov .sov a:hover,.ov .plist a:hover,.ov .rows li > a:hover{background:var(--band)}
  .ov .tbl:hover{text-decoration-thickness:2px}
}
/* Motion (the spec's table; the purpose of each is there). Opening the page ([data-enter], a full page only): each
   section rises 8px into place 50ms after the one before, in reading order, and the bars in it grow from their
   baseline 30ms apart (--j, the row's place); overview.js draws the lines. A period change by pointer ([data-fresh],
   set by overview.js): the rows of the two lists rise in 30ms apart, the bars change length from where they were
   (overview.js starts them there), the figures count and the underline slides. By keyboard nothing moves. Only
   transform and opacity animate (and the lines' stroke-dashoffset, in overview.js). The markers are attributes:
   htmx puts the old #ov's class on the new one until it settles. */
@keyframes ov-rise{from{opacity:0;transform:translateY(.5rem)}}
@keyframes ov-grow{from{transform:scaleX(0)}}
@keyframes ov-fade{from{opacity:0}}
.ov[data-enter] .empty,.ov[data-enter] .filters,.ov[data-enter] .top,.ov[data-enter] .g-sov,.ov[data-enter] .g-trend,.ov[data-enter] .g-who,.ov[data-enter] .g-watch,.ov[data-enter] .g-products{animation:ov-rise 300ms var(--ease) backwards}
.ov[data-enter] .top{animation-delay:50ms}
.ov[data-enter] .g-sov{animation-delay:100ms}
.ov[data-enter] .g-trend{animation-delay:150ms}
.ov[data-enter] .g-who{animation-delay:200ms}
.ov[data-enter] .g-watch{animation-delay:250ms}
.ov[data-enter] .g-products{animation-delay:300ms}
.ov[data-enter] .bar,.ov[data-enter] .thin{animation:ov-grow 300ms var(--ease) backwards}
.ov[data-enter] .g-sov .bar{animation-delay:calc(220ms + var(--j,0) * 30ms)}
.ov[data-enter] .g-who .thin{animation-delay:calc(320ms + var(--j,0) * 30ms)}
.ov[data-enter] .g-products .bar{animation-delay:calc(420ms + var(--j,0) * 30ms)}
.ov[data-fresh] .rows li{animation:ov-rise 250ms var(--ease) backwards;animation-delay:calc(var(--j,0) * 30ms)}
.ov[data-fresh] .bar{transition:transform 250ms var(--ease-in-out)}
@media (prefers-reduced-motion:reduce){
  .ov[data-enter] .empty,.ov[data-enter] .filters,.ov[data-enter] .top,.ov[data-enter] .g-sov,.ov[data-enter] .g-trend,.ov[data-enter] .g-who,.ov[data-enter] .g-watch,.ov[data-enter] .g-products,.ov[data-fresh] .rows li{animation-name:ov-fade}
  .ov[data-enter] .bar,.ov[data-enter] .thin{animation:none}
  .ov[data-fresh] .bar,.ov .mtab[aria-selected="true"]::after,.ov .tbl{transition:none}
  .ov .tip,.ov .tbl:active{transform:none}
}
@media (max-width:1093px){.ov .sfigs > div{padding:0 1.25rem}}
@media (max-width:864px){.ov .grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"sov" "trend" "who" "stack"}}

/* Coverage: the summary line, the narrow columns and the run result's dot */
.coverage .status.summary{margin-top:.625rem;white-space:normal}
.coverage table col:nth-child(2){width:10.625rem}
.coverage table.snaps col:nth-child(3){width:50%}
.coverage table.gaps col:nth-child(3),.coverage table.runs col:nth-child(n+3){width:8.125rem}
.coverage table.runs col:nth-child(1){width:11.25rem}
.coverage td small{display:block;font-size:.8125rem;line-height:1.125rem;color:var(--ink-2)}
.coverage .reason{font-size:.875rem;line-height:1.25rem;color:var(--ink);overflow-wrap:anywhere}
.run{display:inline-flex;align-items:center;gap:.4375rem}
.run::before{content:"";width:.4375rem;height:.4375rem;flex:none;border-radius:50%;background:var(--ink-2)}
.run.ok::before{background:var(--ok)}
.run.bad{color:var(--deep)}
.run.bad::before{background:var(--deep)}
.run.idle::before{background:var(--grey)}

/* Clients and Setup */
.newclient{display:flex;align-items:flex-end;gap:.5rem}
.newclient .cform-field{flex:0 1 20rem}
.clients thead th{padding-top:.875rem;border-bottom:1px solid var(--rule-strong);font-size:.8125rem;letter-spacing:.075rem;text-transform:uppercase;color:var(--ink)}
.clients table col:nth-child(2){width:8.125rem}
.clients table col:nth-child(3),.clients table col:nth-child(4){width:6.875rem}
.clients table col:nth-child(5){width:21.25rem}
.clients .cname{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acts{display:flex;align-items:center;gap:1rem;white-space:nowrap}
.acts a{font-weight:500}
.setup .newclient{margin-top:.875rem}
.setup .cform-error{margin-top:.5rem}
.setup table.brandtable col:nth-child(1){width:22%}
.setup table.brandtable col:nth-child(3){width:42%}
.setup .brandtable thead th{padding-left:.6875rem}
.setup .brandtable tbody td{padding:.25rem .625rem .25rem 0}
.setup .brandtable .tinput{border-color:transparent;background:transparent}
.setup .brandtable tr.new .tinput{border-color:var(--rule-strong)}
.setup .brandtable .tinput:focus{border-color:var(--ink)}
.setup .why{max-width:72ch;margin-top:.625rem}
.savebar{display:flex;gap:.5rem;margin-top:.875rem}
.setup table.people col:nth-child(2){width:10.625rem}
.setup h3.sub{display:flex;align-items:baseline;gap:.5rem;margin-top:1.25rem;font:600 .9375rem/1.375rem var(--f);font-variant-numeric:tabular-nums}
.setup h3.sub .n{font-weight:500;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.setup h3.sub + .why{margin:0 0 2px}
@media (hover:hover) and (pointer:fine){.setup .brandtable .tinput:hover{border-color:var(--rule-strong)}}
.group h2 .hint a{color:var(--ink);font-weight:500}

/* Workspace Setup: the client Setup's groups in two columns (one below 1080px), scrolling together. Each list is plain
   hairline rows of a marked name, what else it goes by, and its own small actions. */
/* one column, read top to bottom (owner, 2026-11-15: "users don't know where to look") */
/* centred with its page head on one axis (owner, 2026-11-16: "the right side is empty, we can center things"); the
   width is on the content, since .groups is the scrolling area, and its gutter is kept on both edges so a scrollbar
   doesn't pull the content off the head's axis */
.wsetup{scrollbar-gutter:stable both-edges}
.wsetup > *{max-width:56.25rem;margin-inline:auto}
.pagehead.wshead{width:100%;max-width:60.25rem;margin-inline:auto}
.wlist{list-style:none;padding:0}
.wlist li{display:flex;align-items:center;gap:.75rem;min-height:2.875rem;padding:.375rem 0 .375rem 2px;border-bottom:1px solid var(--rule)}
.entry{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.125rem .625rem}
.entry > small{min-width:0;font-size:.8125rem;line-height:1.125rem;color:var(--ink-2);overflow-wrap:anywhere}
.entry .was{font-size:.875rem;line-height:1.25rem}
.wlist form{flex:none;display:flex;gap:.25rem}
/* the client's other brands, one click each */
.pickrow{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;margin-top:.875rem}
.pickrow .k{flex-basis:100%;margin-bottom:2px;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.pickrow .btn{max-width:100%;gap:.375rem}
.pickrow .btn svg.i{width:.875rem;height:.875rem}
.pickrow .btn bdi{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* "Or type a new brand": a fold whose chevron turns as the others' do */
.fold{margin-top:.875rem}
.fold > summary{display:inline-flex;align-items:center;gap:.375rem;cursor:pointer;list-style:none;font:500 .875rem/1.25rem var(--f)}
.fold > summary::-webkit-details-marker{display:none}
.fold > summary svg.i{width:.875rem;height:.875rem;transform:rotate(-90deg);transition:transform 120ms var(--ease)}
.fold[open] > summary svg.i{transform:none}
@media (prefers-reduced-motion:reduce){.fold > summary svg.i{transition:none}}
.addform{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem;margin-top:.875rem}
.addform .cform-field{flex:1 1 10rem;min-width:0}
.fold .addform{margin-top:.625rem}
.fold .why{margin-top:.5rem}
/* the influencers: the two modes, and under "Only the ones I pick" the searchable checklist of the client's list */
.modes{min-width:0;margin:.625rem 0 0;padding:0;border:0}
.choice{display:flex;align-items:flex-start;gap:.625rem;padding:.4375rem 0;cursor:pointer}
.choice input{flex:none;width:1rem;height:1rem;margin:.1875rem 0 0;accent-color:var(--ink)}
.choice .lab{display:block;font-weight:500}
.choice small{display:block;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.picker{display:none;margin:.25rem 0 0 1.625rem}
.wsetup:has(input[name="mode"][value="picked"]:checked) .picker{display:block}
.picks{position:relative;max-height:17.5rem;overflow:auto;margin-top:.5rem;border:1px solid var(--rule-strong);border-radius:var(--r)}
.checks{list-style:none;padding:.25rem}
.checks label{display:flex;align-items:center;gap:.625rem;min-width:0;padding:.375rem .5rem;border-radius:.25rem;cursor:pointer}
.checks input{flex:none;width:.9375rem;height:.9375rem;margin:0;accent-color:var(--ink)}
.checks bdi{min-width:0;font-weight:600;overflow-wrap:anywhere}
.checks small{margin-left:auto;padding-left:.5rem;font-size:.8125rem;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.picks p.none{margin:0;padding:.625rem .75rem}
@media (hover:hover) and (pointer:fine){
  .fold > summary:hover{text-decoration:underline;text-underline-offset:3px}
  .checks label:hover{background:var(--band)}
}

/* ---------- importing a list: the upload and the review ---------- */
.import{display:flex;flex-direction:column;flex:1;min-height:0}
.import .steps{display:flex;gap:.375rem;align-items:center;padding:0 2rem .875rem;border-bottom:1px solid var(--rule);font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.import .steps .s{display:flex;align-items:center;gap:.5rem}
.import .steps .s b{width:1.375rem;height:1.375rem;border-radius:50%;display:grid;place-items:center;border:1px solid var(--rule-strong);font-size:max(10px,.75rem);font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.import .steps .s.done{color:var(--ink)}
.import .steps .s.done b{border-color:var(--ink);color:var(--ink)}
.import .steps .s.done svg.i{width:.75rem;height:.75rem}
.import .steps .s.on{color:var(--ink);font-weight:600}
.import .steps .s.on b{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);color:var(--ink)}
.import .steps .sep{width:1.5rem;height:1px;background:var(--rule-strong);margin:0 .375rem}
.import .layout{display:grid;grid-template-columns:minmax(0,1fr) 18.75rem;gap:2.5rem;padding:1.375rem 2rem 0;flex:1;min-height:0;overflow:auto}
.import .layout.single{grid-template-columns:minmax(0,40rem)}
.import .result{display:flex;flex-wrap:wrap;gap:.25rem 2.25rem;align-items:baseline;margin-bottom:.375rem;padding:1rem 0 1rem;border-top:1px solid var(--rule-strong)}
.import .result .big{font-size:1.625rem;line-height:2rem;font-weight:600;letter-spacing:-.01875rem;white-space:nowrap}
.import .result .big small{margin-left:.375rem;font-size:.875rem;font-weight:400;letter-spacing:0;color:var(--ink-2);white-space:nowrap}
.import .result .big.need{color:var(--deep)}
.import .result .file{flex-basis:100%;font-size:.875rem;color:var(--ink-2)}
.import .grps{border-top:1px solid var(--rule-strong)}
.import .grp + .grp{border-top:1px solid var(--rule)}
.import .grp:last-of-type{border-bottom:1px solid var(--rule)}
.import .grps{margin-bottom:1.5rem}
.import .grp summary{display:flex;align-items:center;gap:.625rem;padding:.8125rem 0;cursor:pointer;list-style:none;font:600 .8125rem/1.25rem var(--f);font-variant-numeric:tabular-nums;letter-spacing:.075rem;text-transform:uppercase}
.import .grp summary::-webkit-details-marker{display:none}
.import .grp summary .n{min-width:1.75rem;font-size:.875rem;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0;color:var(--ink);text-align:right}
.import .grp summary .n.need{color:var(--deep)}
.import .grp summary .what{font-size:.875rem;font-weight:400;letter-spacing:0;text-transform:none;color:var(--ink-2)}
.import .grp summary .go{margin-left:auto;font-size:.875rem;font-weight:400;letter-spacing:0;text-transform:none;color:var(--ink-2)}
.import .grp summary .chev{margin-left:auto;color:var(--ink-2);transition:transform 120ms var(--ease)}
.import .grp summary .go + .chev{margin-left:.5rem}
.import .grp[open] summary .chev{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.import .grp summary .chev{transition:none}}
/* the issue rows reflow by the groups' own width (two lines: the cells, then the field and actions), so the cells
   never collapse beside the 300px brands aside on a laptop */
.import .grps{container-type:inline-size}
.import .issue{display:grid;grid-template-columns:6rem minmax(0,1fr) 13.75rem auto;gap:.75rem;align-items:center;padding:.625rem 0 .625rem 2.375rem;border-top:1px solid var(--rule);margin:0}
.import .issue.wide{grid-template-columns:6rem minmax(0,1fr) auto}
.import .issue .row-no{font-size:.875rem;color:var(--ink-2);white-space:nowrap}
.import .issue .cells{min-width:0;overflow-wrap:anywhere}
.import .issue .cells b{font-weight:600}
.import .issue .cells span{display:block;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.import .issue .cells b :dir(rtl){font-size:1rem}
.import .issue .cells span :dir(rtl){font-size:.9375rem}
.import .issue .done{font-size:.875rem;line-height:1.25rem;color:var(--ink-2);white-space:nowrap}
.import .issue .ierr,.import .grp > .ierr{grid-column:2/-1;font:500 .875rem/1.25rem var(--f);color:var(--deep)}
.import .grp > .ierr{padding:0 0 .625rem 2.375rem}
@container (max-width:50rem){
  .import .issue,.import .issue.wide{grid-template-columns:6rem minmax(0,1fr);row-gap:.5rem}
  .import .issue .field,.import .issue .acts,.import .issue .done{grid-column:2}
  .import .issue .field{max-width:20rem}
}
.import .field{display:flex;align-items:center;gap:.25rem;height:2.125rem;padding:0 .625rem;border:1px solid var(--rule-strong);border-radius:var(--r);font-size:.875rem}
.import .field:focus-within{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.import .field:has(input[aria-invalid]){border-color:var(--deep)}
.import .field input{border:0;outline:0;width:100%;background:transparent;font:400 .875rem/1.25rem var(--f);color:var(--ink)}
.import .field .at{color:var(--ink-2)}
.import .acts{display:flex;align-items:center;gap:.375rem;flex-wrap:wrap;white-space:nowrap}
.import .showall{padding:.375rem 0 .875rem 2.375rem}
.import .showall a{cursor:pointer;font:500 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums;color:var(--ink);text-decoration:none}
.import .grps > p.none{margin:0;padding:.8125rem 0;border-bottom:1px solid var(--rule);font-size:.875rem;color:var(--ink-2)}
.import .progress{margin:0 0 .875rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.import .brands{align-self:start;padding-left:1.5rem;border-left:1px solid var(--rule)}
.import .brands .bitem:first-of-type{border-top:0}
.import .brands h2,.import .upload h2{padding-bottom:.5rem;border-bottom:1px solid var(--rule-strong);font:600 .8125rem/1.125rem var(--f);letter-spacing:.075rem;text-transform:uppercase}
.import .brands h2{margin-bottom:.625rem}
.import .brands p{margin-bottom:.625rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.import .bitem{padding:.5625rem 0;border-top:1px solid var(--rule)}
.import .bitem b{font-weight:600}
.import .bitem .al{margin-top:2px;font-size:.875rem;line-height:1.25rem;color:var(--ink-2);overflow-wrap:anywhere}
.import .brands details.more > summary{list-style:none;cursor:pointer;padding:.625rem 0 0;border-top:1px solid var(--rule);font:500 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums;color:var(--ink)}
.import .brands details.more > summary::-webkit-details-marker{display:none}
.import .brands details.more[open] > summary{display:none}
.import .savebar{display:flex;align-items:center;gap:.75rem;margin:0;padding:.75rem 2rem;border-top:1px solid var(--rule);background:var(--paper)}
.import .savebar .note{font-size:.875rem;line-height:1.25rem;color:var(--ink)}
.import .savebar .note b{font-weight:600;color:var(--deep)}
.import .savebar .grow{flex:1}
.import .upload{display:flex;flex-direction:column;gap:.875rem;padding-bottom:2rem}
.import .upload input[type="file"]{height:auto;padding:3px .625rem 3px 3px;cursor:pointer;color:var(--ink-2)}
.import .upload input[type="file"]::file-selector-button{height:1.75rem;margin-right:.625rem;padding:0 .625rem;border:1px solid var(--rule-strong);border-radius:.25rem;background:#fff;font:500 .8125rem/1.125rem var(--f);color:var(--ink);cursor:pointer}
.import .upload textarea{height:auto;min-height:10rem;padding:.5rem .625rem;font:400 .875rem/1.25rem var(--f);resize:vertical}
@media (hover:hover) and (pointer:fine){
  .import .grp summary:hover .chev{color:var(--ink)}
  .import .showall a:hover,.import .brands details.more > summary:hover{text-decoration:underline;text-underline-offset:3px}
  .import .upload input[type="file"]::file-selector-button:hover{border-color:var(--ink)}
}

/* ---------- sign-in and error pages (no rail: nobody may be signed in) ---------- */
body:has(> .gate){background:var(--rail)}
/* the masthead's white tile, grown to hold the one thing to do on a black ground */
.gate{width:min(25rem,calc(100% - 2rem));margin:16vh auto 0;padding:2.25rem 2.5rem 2.5rem;display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;border-radius:.5rem}
.gate .logo{width:8.25rem;height:auto;display:block}
.gate .wordmark{height:.9375rem;width:auto;margin-top:.625rem}
.gate h1{margin:2rem 0 1.375rem;font:600 1.625rem/2rem var(--f);letter-spacing:-.0125rem}
.gate-error{margin-top:1.25rem;font:500 .875rem/1.25rem var(--f);color:var(--deep)}

/* ---------- the Story Reel: one snap at a time on a dark stage (review.html) ----------
   Full screen, no rail: the top bar (Back, what is being reviewed, where you are, the keys), the list at the left, the
   stage (the snap in a 9:16 frame with its caption, the action rail) and the snap's panel at the right. On the stage
   text is #FFFFFF, #F2EFEB or #D6D0CA only; its one reversed plate is Next, in white. Coming in fades (200ms); a step
   (J/K, a link in the list) is a page load that appears at once. */
body:has(> .reel){background:var(--stage)}
.reel{display:grid;grid-template-columns:21.25rem minmax(0,1fr) 26.25rem;grid-template-rows:3.5rem auto minmax(0,1fr);height:100vh;overflow:hidden;background:var(--stage);color:var(--stage-ink);color-scheme:dark}
.reel.enter{animation:fade .2s var(--ease)}
@keyframes fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.reel.enter{animation:none}}
.reel .linkbtn:focus-visible,.reel .mrow button.pr:focus-visible{outline-color:#fff}
.reel *{scrollbar-color:var(--stage-line) transparent}
.reel ::-webkit-scrollbar-thumb{background:var(--stage-line);border-color:var(--stage-2)}
.reel ::selection{background:#5A1414;color:#fff}
.reel .app-error{grid-column:1/-1;grid-row:2;background:var(--deep);color:#fff;border-bottom:1px solid var(--stage-line)}

/* the top bar */
.rbar{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:1.125rem;min-width:0;padding:0 1.25rem;border-bottom:1px solid var(--stage-line)}
.rbar .back{flex:none;display:inline-flex;align-items:center;gap:.375rem;height:2.125rem;padding:0 .75rem 0 .5rem;border:1px solid var(--stage-line);border-radius:var(--r);font:500 .875rem/1.25rem var(--f);color:var(--stage-ink);text-decoration:none}
.rbar .back svg.i{width:1rem;height:1rem}
.rbar .what{min-width:0;font:600 .9375rem/1.25rem var(--f);font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rbar .what > span{margin-left:.5rem;font-weight:400;color:var(--stage-ink-2)}
.rbar .pos{flex:none;margin-left:auto;font:500 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums;color:var(--stage-ink-2);white-space:nowrap}
.rbar .pos b{font-weight:600;color:#fff}
.kbd{display:inline-grid;place-items:center;min-width:1.375rem;height:1.375rem;margin:0 2px;padding:0 .3125rem;border:1px solid var(--stage-line);border-bottom-width:2px;border-radius:.25rem;font:600 max(10px,.75rem)/1 var(--f);color:var(--stage-ink)}

/* the list: every snap of it, the one shown marked with a white edge */
.queue{grid-column:1;grid-row:3;min-height:0;overflow:auto;background:var(--stage-2);border-right:1px solid var(--stage-line)}
.qhead{position:sticky;top:0;z-index:1;padding:.875rem 1.125rem .625rem;background:var(--stage-2);border-bottom:1px solid var(--stage-line);font:600 max(10px,.75rem)/1rem var(--f);letter-spacing:.075rem;text-transform:uppercase;color:var(--stage-ink-2)}
.queue ol{list-style:none;margin:0;padding:0}
.qi{display:grid;grid-template-columns:2.5rem minmax(0,1fr) auto;gap:.75rem;align-items:center;padding:.75rem 1.125rem;border-bottom:1px solid var(--stage-line);color:var(--stage-ink);text-decoration:none}
.qi:focus-visible{outline-offset:-3px}
.qi[aria-current="true"]{background:var(--stage-3);box-shadow:inset 3px 0 0 #fff}
.qi .thumb{width:2.5rem;height:4.375rem;background:var(--stage-3);color:var(--stage-ink-2)}
.qi .thumb.none{background:transparent;border:1px dashed var(--stage-line)}
.qi .qt{min-width:0}
.qi b{display:block;font:600 .9375rem/1.25rem var(--f);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qi .qb{display:flex;align-items:center;gap:.4375rem;min-width:0;font:600 .875rem/1.25rem var(--f)}
.qi .qb::before{content:"";width:.5625rem;height:.5625rem;flex:none;border-radius:2px;background:var(--red)}
.qi .qb.qc,.qi .qb.qp{font-weight:500}
.qi .qb.qc::before{background:none;box-shadow:inset 0 0 0 2px var(--teal-bright)}
.qi .qb.qp::before{width:.4375rem;height:.4375rem;border-radius:50%;background:#8A837C}
.qi .qb bdi{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qi .qn{display:block;font-size:.8125rem;line-height:1.125rem;color:var(--stage-ink-2)}
.qi time{align-self:start;font:500 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums;color:var(--stage-ink-2);white-space:nowrap}
.qmore{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.125rem;border-bottom:1px solid var(--stage-line);font:500 .875rem/1.25rem var(--f);font-variant-numeric:tabular-nums;color:var(--stage-ink);text-decoration:none}
.qmore:focus-visible{outline-offset:-3px}
.qmore svg.i{width:.875rem;height:.875rem;color:var(--stage-ink-2)}

/* the stage: the frame as tall as the stage allows (and narrow enough to leave the rail its room), 9:16 */
.stage{grid-column:2;grid-row:3;display:flex;align-items:center;justify-content:center;gap:1.75rem;min-width:0;min-height:0;padding:1.25rem;container-type:size}
.frame{position:relative;flex:none;height:min(100cqh,47.5rem,(100cqw - 5.75rem) * 16 / 9);aspect-ratio:9/16;border-radius:.875rem;overflow:hidden;background:#000;box-shadow:0 1.5rem 3.75rem rgba(0,0,0,.45)}
.frame video,.frame img{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.frame.blank{background:var(--stage-2);border:1px dashed var(--stage-line)}
.nocopy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem;text-align:center}
.nocopy svg.i{width:1.375rem;height:1.375rem;color:var(--stage-ink-2)}
.nocopy b{font:600 1.0625rem/1.5rem var(--f);color:#fff}
.nocopy span{max-width:32ch;font-size:.9375rem;line-height:1.375rem;color:var(--stage-ink-2)}
/* the list's progress, then the caption over the top of the frame: the player's controls at the bottom stay clear */
.frame .ctl{position:absolute;top:.75rem;left:.875rem;right:.875rem;z-index:2;display:flex;gap:.25rem}
.frame .ctl i{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.35)}
.frame .ctl i.done{background:#fff}
.frame .ctl.long i{background:linear-gradient(to right,#fff calc(var(--p) * 100%),rgba(255,255,255,.35) 0)}
.frame .cap{position:absolute;top:0;left:0;right:0;z-index:1;padding:1.625rem 1.125rem 1.875rem;background:linear-gradient(rgba(0,0,0,.85) 65%,transparent)}
.frame.blank .cap{background:none}
.frame .ch{font:600 1.0625rem/1.5rem var(--f);color:#fff;overflow-wrap:anywhere}
.frame .ch > span{margin-left:.5rem;font-weight:400;font-variant-numeric:tabular-nums;color:var(--stage-ink-2)}
.cap .tags{display:flex;flex-wrap:wrap;gap:.375rem 1rem;margin-top:.625rem}
.tg{display:inline-flex;align-items:center;gap:.4375rem;min-width:0;font:600 1rem/1.375rem var(--f);color:#fff}
.tg::before{content:"";width:.625rem;height:.625rem;flex:none;border-radius:2px;background:var(--red)}
.tg.comp,.tg.pend{font-weight:500}
.tg.comp::before{background:none;box-shadow:inset 0 0 0 2px var(--teal-bright)}
.tg.pend::before,.tg.oth::before{width:.4375rem;height:.4375rem;border-radius:50%;background:#8A837C}
.tg.oth{font-weight:400;color:var(--stage-ink-2)}
.tg.none{font-weight:500;color:var(--stage-ink)}
.tg.none::before{display:none}
.tg bdi{min-width:0;overflow-wrap:anywhere}
.tg small{font:400 .8125rem/1.125rem var(--f);color:var(--stage-ink-2)}
.frame .q{margin-top:.625rem;font-size:.9375rem;line-height:1.375rem;color:var(--stage-ink);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.frame .q .how{color:var(--stage-ink-2)}
@container (max-height:41.25rem){.frame .q{-webkit-line-clamp:2}}
/* the action rail: round controls with their word under them; Next is the white plate */
.stage .acts{flex:none;display:flex;flex-direction:column;align-items:center;gap:1rem;width:4rem;white-space:normal}
.act{display:flex;flex-direction:column;align-items:center;gap:.375rem;font:600 .8125rem/1rem var(--f);color:var(--stage-ink);text-align:center;text-decoration:none}
.act > span{display:grid;place-items:center;width:3.25rem;height:3.25rem;border-radius:50%;background:var(--stage-3);border:1px solid var(--stage-line)}
.act > span svg.i{width:1.25rem;height:1.25rem}
.act.next > span{background:#fff;border-color:#fff;color:#111}
.act:disabled,.act[aria-disabled="true"]{cursor:default;color:var(--stage-ink-2)}
.act:disabled > span,.act[aria-disabled="true"] > span{background:transparent;border-style:dashed}
.act:focus-visible{outline:0}
.act:focus-visible > span{outline:2px solid #fff;outline-offset:2px}

/* the side panel: the shared snap panel (_panel.html), on the stage's dark */
.side{grid-column:3;grid-row:3;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--stage-2);border-left:1px solid var(--stage-line);color:var(--stage-ink)}
.side .panel-head,.side .panel-foot,.side .mrow + .mrow,.side .others,.side .others > .mrow{border-color:var(--stage-line)}
.side .panel-head h2,.side .mrow .b,.side .tag.missed,.side .linkbtn{color:#fff}
.side .panel-head h2 span,.side .panel-head .h div,.side .mrow .pr,.side .mlist > .pr,.side .tagrow .aiq,.side .prod svg.i,.side .missed-note,.side .sec h3,.side .bilingual .lh,.side .others > summary .names,.side .cform-field{color:var(--stage-ink-2)}
.side .panel-note,.side .mrow button.pr,.side .prod .pname,.side .others > summary,.side .tx,.side .cform-check{color:var(--stage-ink)}
.side .mrow .b.comp::before{box-shadow:inset 0 0 0 2px var(--teal-bright)}
.side .mrow .b.other::before{background:#8A837C}
.side select.tagsel{background-color:var(--stage-3);border-color:var(--stage-line);color:#fff;
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6D0CA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.side select.tagsel.comp{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Crect x='1' y='1' width='6' height='6' rx='1' fill='none' stroke='%232FB1C2' stroke-width='2'/%3E%3C/svg%3E"),var(--chev)}
.side select.tagsel.other{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Ccircle cx='4' cy='4' r='3' fill='%238A837C'/%3E%3C/svg%3E"),var(--chev)}
.side .menu-trig.tagsel{background:var(--stage-3);border-color:var(--stage-line);color:#fff}
.side .menu-trig .chev{color:var(--stage-ink-2)}
.side .menu-trig .mk.p{box-shadow:inset 0 0 0 2px var(--teal-bright)}
.side .menu-trig .mk.o{background:#8A837C}
.side .menu-trig[aria-expanded="true"],.side .menu-trig:focus-visible{border-color:var(--stage-ink-2);box-shadow:0 0 0 1px var(--stage-ink-2)}
.side .bilingual{background-image:linear-gradient(var(--stage-line),var(--stage-line))}
.side .bilingual.one{background:none}
.side mark{background:#5A1414;color:#fff}
.side mark.comp{background:#12434F;color:#fff}
.side .btn{background:var(--stage-3);border-color:var(--stage-line);color:#fff}
.side .btn.primary{border-color:var(--stage-ink-2)}
.side .btn.ghost{background:transparent;border-color:transparent}
.side .cform-field input,.side .cform-field textarea{background:var(--stage-3);border-color:var(--stage-line);color:#fff}
.side .cform-field input:focus,.side .cform-field textarea:focus{border-color:#fff;box-shadow:0 0 0 1px #fff}
.side .cform-check input{accent-color:#fff}
.side .cform-error{padding:.25rem .5rem;border-radius:.25rem;background:var(--deep);color:#fff}

/* an empty list */
.reel .nothing{grid-column:1/-1;grid-row:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:1.5rem;text-align:center}
.nothing h2{font:600 1.625rem/2rem var(--f);letter-spacing:-.0125rem;color:#fff}
.nothing p{max-width:46ch;color:var(--stage-ink-2)}
.nothing .btn{margin-top:.5rem;background:#fff;border-color:#fff;color:#111}

@media (hover:hover) and (pointer:fine){
  .rbar .back:hover{border-color:var(--stage-ink-2)}
  .qi:not([aria-current="true"]):hover,.qmore:hover{background:#24211F}
  .act:not(:disabled):not([aria-disabled="true"]):not(.next):hover > span{background:#35312D}
  .act.next:hover > span{background:var(--stage-ink)}
  .side .btn:not([disabled]):hover,.side select.tagsel:not(:disabled):hover,.side .menu-trig.tagsel:not(:disabled):hover{border-color:var(--stage-ink-2)}
  .side .btn.ghost:not([disabled]):hover{background:var(--stage-3);border-color:transparent}
  .nothing .btn:hover{background:var(--stage-ink)}
}

/* ---------- narrower windows ---------- */
@media (max-width:944px){
  .work.with-panel,.work.mentions:has(> .panel:not(:empty)){grid-template-columns:minmax(0,1fr) 23.75rem}
  .reel{grid-template-columns:17.5rem minmax(0,1fr) 22.5rem}
}
/* at 1080px and below the open panel overlays the right of the page; Ruling R29: the fourth tab ("All snaps"), which
   it would cut in half, steps aside while it is open */
@media (max-width:864px){
  .work.with-panel,.work.mentions:has(> .panel:not(:empty)){grid-template-columns:minmax(0,1fr)}
  .panel:not(.solo){position:fixed;inset:0 0 0 auto;width:min(26.25rem,100vw);z-index:5;box-shadow:var(--shadow-pop)}
  .work.mentions:has(> .panel:not(:empty):not(.closing)) #tab-snaps{display:none}
  .import .layout{grid-template-columns:minmax(0,1fr)}
  .import .brands{border-left:0;padding-left:0}
}

/* ---------- overflow guards (owner, 2026-11-11; Ruling R45) ----------
   Long unbroken text (links, hashtag runs, handles, long brand or product names) wraps inside its column instead of
   pushing the table or the panel past the window. Nothing in the work area may widen the page: the panel's 16px
   slide-in and any content too wide for its column are clipped at the window's edge instead of adding a sideways
   scrollbar (clip, not hidden: no new scroll container, so the sticky table heads still stick). The status line
   wraps rather than pushing the page head past the window. */
.tag{max-width:100%;min-width:0}
.tag bdi{white-space:normal;overflow-wrap:anywhere;min-width:0}
.mrow .b,.mrow .pr,.tx,.cname,.missed-note,.panel-head h2,.panel-head .h div,.panel-note{overflow-wrap:anywhere}
/* the snap id moves to its own line whole, and breaks only when it alone is wider than the head */
.panel-head .sid{display:inline-block;max-width:100%;vertical-align:top;overflow-wrap:anywhere}
.panel-body{overflow-x:hidden}
/* Every scrolling area is positioned, so the visually hidden labels in it (.sr, thead.quiet: position:absolute)
   stay inside it. Unpositioned, a label far down a long list counted against the page: the whole page scrolled
   and the app's frame slid up under a white strip (owner, 2026-11-11). */
.table-wrap,.panel-body,.panel.solo,.groups,.import .layout,.queue{position:relative}
.pagehead > *{min-width:0}
.status{white-space:normal}

/* ---------- chip fields and the influencer picker (static/fields.js; owner, 2026-11-15) ----------
   Other names and products are chips in a field: Enter or a comma adds one, a name keeps its spaces. The field looks
   like any input (34px, Strong Hairline, 8px corners, an Ink ring on focus); a chip is a Warm Band label with a 4px
   corner and its remove cross. In the brand table the field's border shows only on hover and focus, as the table's
   inputs do. "Only the ones I pick" becomes the same field with the list as a dropdown under it. */
.tokens{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:.3125rem;min-width:0;min-height:2.125rem;padding:.25rem .3125rem;border:1px solid var(--rule-strong);border-radius:var(--r);background:#fff;cursor:text}
.tokens:focus-within{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.token{display:inline-flex;align-items:center;gap:.125rem;max-width:100%;min-width:0;height:1.5rem;padding:0 .125rem 0 .5rem;border-radius:.25rem;background:var(--band);font:500 .8125rem/1.125rem var(--f);color:var(--ink);cursor:default;transition:background-color 160ms var(--ease),box-shadow 160ms var(--ease)}
.token bdi{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.token button{display:grid;place-items:center;flex:none;width:1.125rem;height:1.125rem;padding:0;border:0;border-radius:.25rem;background:transparent;color:var(--ink-2);cursor:pointer}
.token button svg.i{width:.75rem;height:.75rem;stroke-width:2.25}
.token button:active{transform:scale(.92)}
.token.armed,.token.again{background:var(--band-2);box-shadow:inset 0 0 0 1px var(--ink)}
.tokens input.tokens-in{flex:1 0 6rem;min-width:6rem;height:1.5rem;padding:0 .3125rem;border:0;border-radius:0;background:transparent;box-shadow:none;outline:0;font:400 .875rem/1.25rem var(--f);color:var(--ink)}
.tokens input.tokens-in:focus{border:0;box-shadow:none}
.tokens input.tokens-in::placeholder{color:var(--ink-2);opacity:1}
/* at rest, the typing takes no room after a chip, so a full line of chips never leaves an empty line under it */
.tokens:not(:focus-within) .token ~ input.tokens-in{flex-basis:0;min-width:0;padding:0}
@media (hover:hover) and (pointer:fine){.token button:hover{background:var(--band-2);color:var(--ink)}}
.setup .brandtable tbody td{vertical-align:top}
.setup .brandtable .tokens{border-color:transparent;background:transparent}
.setup .brandtable tr.new .tokens{border-color:var(--rule-strong)}
.setup .brandtable .tokens:focus-within{border-color:var(--ink);background:#fff}
@media (hover:hover) and (pointer:fine){.setup .brandtable .tokens:hover{border-color:var(--rule-strong)}}
/* the table's hint shows in the empty new row and in the field being typed in, not in every empty cell */
.setup .brandtable tr:not(.new) .tokens:not(:focus-within) input.tokens-in::placeholder{color:transparent}
/* a chip field grows downward, so the add forms line their fields up at the top; the button sits on their first line */
.addform{align-items:flex-start}
.addform > .btn{margin-top:1.4375rem}

.picker.combo-on .search,.picker.combo-on .picks{display:none}
.combo{position:relative;margin-top:.5rem}
.combo .tokens{position:relative;max-height:9.5rem;overflow:auto;padding-right:2rem}
.combo .chev{position:absolute;top:.5625rem;right:.625rem;width:1rem;height:1rem;color:var(--ink-2);pointer-events:none;transition:transform 150ms var(--ease)}
.combo:has(.menu-card[data-open]) .chev{transform:rotate(180deg)}
.combo .menu-card{right:0;width:auto;min-width:0;max-width:none}
.menu-opt .tick{display:grid;place-items:center;flex:none;width:.9375rem;height:.9375rem;border:1px solid var(--rule-strong);border-radius:.125rem;background:#fff}
.menu-opt .tick svg.i{width:.6875rem;height:.6875rem;color:#fff;stroke-width:3;visibility:hidden}
.menu-opt[aria-selected="true"] .tick{border-color:var(--ink);background:var(--ink)}
.menu-opt[aria-selected="true"] .tick svg.i{visibility:visible}
.menu-opt small{margin-left:auto;padding-left:.5rem;font-size:.8125rem;font-weight:400;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.combo-foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:1.875rem;margin-top:.375rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2)}
.combo-foot .btn{margin:0 -.625rem 0 auto}
@media (prefers-reduced-motion:reduce){.token{transition:none}.token button:active{transform:none}}

/* ---------- workspace Setup (owner, 2026-11-15: "users don't know where to look", then "horrible alignment wise") ----
   Read top to bottom. A Lead sentence says what the workspace does. Each section is its caps head over a Strong
   Hairline, then two tracks 40px apart: what it is for (13.75rem) and its controls (40rem). Every control, row
   and form in the right track ends on that track's edge, and rows are a grid of name, count and actions, so the counts
   and the Remove buttons line up down the page. Spacing is the scale only: 4, 8, 14, 20, 28, 40. */
.wlead{margin-top:1.25rem;font:500 1.3125rem/1.875rem var(--f);font-variant-numeric:tabular-nums;text-wrap:balance}
.wlead a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--rule-strong);text-decoration-thickness:1px;text-underline-offset:3px}
@media (hover:hover) and (pointer:fine){.wlead a:hover{text-decoration-color:var(--ink)}}
.wmark{display:inline-block;flex:none;width:.5rem;height:.5rem;border-radius:2px}
.wmark.client{background:var(--red)}
.wmark.comp{box-shadow:inset 0 0 0 2px var(--teal)}
.wlead .wmark{width:.625rem;height:.625rem;margin:0 .3125rem 0 .125rem;vertical-align:.05em}
.wsetup .group{display:grid;grid-template-columns:13.75rem minmax(0,40rem);column-gap:2.5rem;row-gap:.875rem;align-items:start;margin-top:2.5rem}
.wsetup .group > h2{grid-column:1/-1}
.wsetup .gside .why{max-width:none;margin:0}
.wsetup .gmain{min-width:0}
.wsetup .gmain > :first-child,.wsetup .gmain > p.none:first-child{margin-top:0}
.wsetup .sorting{margin-top:.5rem;padding:0;border:0}
.brandpick .combo{margin:0}
.brandpick.combo-on .pickrow{display:none}
.brandpick:not(.combo-on) .tokens:not(:has(.token)){display:none}
form.token{margin:0}
.token .wmark{margin-right:.3125rem}
.combo .menu-opt > svg.i{width:.875rem;height:.875rem;color:var(--ink-2)}
.combo .menu-opt.create{margin-top:.25rem;padding-top:.5rem;border-top:1px solid var(--rule);border-radius:0 0 .25rem .25rem;font-weight:500}
.combo .menu-opt.create bdi{font-weight:600}
/* Competitors: Yours, the add form, then the AI's suggestions, the subheads under the section head in rank */
.wsetup h3.sub{margin-top:1.25rem;font-weight:500}
.wsetup .subhead{display:flex;align-items:center;gap:.5rem;margin-top:1.75rem}
.wsetup .subhead h3.sub{margin:0}
.wsetup .subhead form{margin-left:auto}
.wsetup .subhead + .why{margin-top:.5rem}
.wsetup h3.sub + p.none{margin-top:.5rem}
/* rows: the name and what else it goes by | the count | the actions, each in its own column */
.wsetup .wlist{margin-top:.5rem}
.wsetup .wlist li{display:grid;grid-template-columns:minmax(0,1fr) 6.25rem 9.375rem;column-gap:.875rem;align-items:center;min-height:0;padding:.5rem 0}
.wsetup .wlist .cnt{font-size:.8125rem;line-height:1.125rem;color:var(--ink-2);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.wsetup .wlist form{justify-content:flex-end}
.wsetup details.more > summary{padding-left:0}
.wsetup details.more > .wlist{margin-top:0}
/* the AI's suggestions: a search, then a box of seven and a half rows with its own scroll (positioned, as every
   scroller is): the eighth row peeks out under the frame, so the box says it scrolls without a scrollbar */
.wsetup .sfind{margin-top:.75rem}
.wsetup .sfind .search{flex:none;width:100%;max-width:none}
.wsetup .sbox{position:relative;max-height:20.625rem;overflow:auto;margin:.5rem 0 0;padding:0;list-style:none;border:1px solid var(--rule);border-radius:var(--r)}
.wsetup .sbox li{display:grid;grid-template-columns:minmax(0,1fr) 6.25rem 9.375rem;column-gap:.875rem;align-items:center;height:2.75rem;padding:0 .75rem;border-bottom:1px solid var(--rule)}
.wsetup .sbox li:last-child{border-bottom:0}
.wsetup .sbox .entry{display:block;min-width:0}
.wsetup .sbox .tag{max-width:100%}
.wsetup .sbox .tag bdi{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wsetup .sbox .cnt{font-size:.8125rem;line-height:1.125rem;color:var(--ink-2);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.wsetup .sbox form{display:flex;justify-content:flex-end;gap:.25rem}
.wsetup .sbox li.empty{display:block;height:auto;padding:.75rem;font-size:.875rem;line-height:1.25rem;color:var(--ink-2);border-bottom:0}
@media (hover:hover) and (pointer:fine){
  .wsetup .sbox li:not(.empty):hover{background:var(--band)}
}
.wsetup .sfoot{margin-top:.5rem;font-size:.8125rem;line-height:1.125rem;color:var(--ink-2);font-variant-numeric:tabular-nums}
/* the forms on the same columns: fields, then the action at the right edge, in the rows' actions column */
.wsetup .addform{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 9.375rem;column-gap:.875rem;align-items:start;margin-top:.875rem}
.wsetup .addform > .btn{justify-self:end}
.wsetup .newclient{display:grid;grid-template-columns:minmax(0,1fr) 9.375rem;column-gap:.875rem;align-items:end;margin-top:0}
.wsetup .newclient > .btn{justify-self:end}
.wsetup .modes{margin:0}
.wsetup .savebar{margin-top:.875rem}
/* the quiet end: Set by hand and the workspace, under a Hairline, their heads at the left in sentence case */
.wend{margin-top:2.5rem;border-top:1px solid var(--rule)}
.wend .group{margin-top:1.25rem}
.wend .gside h2{display:block;padding:0;border:0;font:600 .9375rem/1.375rem var(--f);letter-spacing:0;text-transform:none}
.wend .gside h2 .n{font:500 .9375rem/1.375rem var(--f);color:var(--ink-2)}
.wend .gside h2 + .why{margin-top:.25rem}
.wend .fold{margin-top:1.25rem}
.wend .fold .why{margin-top:.5rem}
.wend .fold .newclient{margin-top:.875rem}
@media (max-width:944px){.wsetup .group{grid-template-columns:minmax(0,1fr)}}

/* Buttons answer a press (Emil Kowalski: "buttons must feel responsive"): a 3% scale, 140ms, on the standard ease. */
.btn{transition:transform 140ms var(--ease)}
.btn:not([disabled]):active{transform:scale(.97)}
@media (prefers-reduced-motion:reduce){.btn{transition:none}.btn:not([disabled]):active{transform:none}}
