/* Gild & Grid component rules. Every color, space, radius, shadow and font reads a token from
   tokens.css (loaded first); this file defines none (scripts/theme-tokens.test.mjs holds that line).
   Tokens follow the approved brand guide (mockups/brand/guide, Graphite & Vermilion with Bricolage
   Grotesque). Customer brand colors are data and are never themed here. */

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
img, video { max-width: 100%; display: block; }
h1 { font-family: var(--font-display); }
a { color: var(--accent-text); }
button { font-family: inherit; }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); border-radius: var(--radius-xs); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: var(--radius-md); z-index: 20; font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: var(--text-muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
/* Lockup: the mark, a hairline rule, the wordmark (guide, Logo and App bar). */
.wordmark { display: inline-flex; align-items: center; gap: .5em; max-width: 100%; line-height: 1; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark .mk { height: 1.9em; width: auto; aspect-ratio: 120/94; flex: none; display: block; overflow: visible; }
.wordmark .rule { width: 1px; align-self: stretch; margin: .15em .1em; background: var(--ink); opacity: .28; flex: none; }
.wm { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; color: var(--ink); white-space: nowrap; line-height: 1; }
.wm .amp { font-weight: 500; color: var(--p); }
.k-d { fill: var(--d); } .k-a { fill: var(--a); } .k-p { fill: var(--p); }
.nav { display: flex; gap: 14px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.nav a { text-decoration: none; color: inherit; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.nav .navhelp { font: inherit; color: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0; cursor: pointer; white-space: nowrap; }
.nav .navhelp:hover { color: var(--text); }
.helpmention { font: inherit; color: var(--accent-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.spacer { flex: 1; }
.worker { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; flex: none; }
.dot.teal { background: var(--primary); } .dot.gold { background: var(--accent); } .dot.amber { background: var(--warning); }
.dot.red { background: var(--danger); } .dot.gray { background: var(--border-strong); } .dot.green { background: var(--success); }
.who { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.who .email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-sunken); color: var(--text); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
/* Flat text with a leading icon, never a pill: it sits beside the account, not above it in weight. */
.signout { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-decoration: none; white-space: nowrap; border-radius: 4px; }
.signout:hover { color: var(--accent-text); }
.signout:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.signout svg { flex: none; }
/* A support visit hides every sign out (public/app.js); inline-flex above would otherwise win. */
.signout[hidden] { display: none; }
/* The theme switcher: flat text with a leading icon, like the sign-out link beside it. */
.themebtn { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0; border: 0; background: none; font: 600 12.5px/1 var(--font-sans); color: var(--text-muted); white-space: nowrap; border-radius: var(--radius-xs); cursor: pointer; }
.themebtn:hover { color: var(--accent-text); }
.themebtn:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.themebtn svg { flex: none; }
.themebtn [hidden] { display: none; }
/* In the header bar the switcher is the sun or moon alone and Gild is his status light alone, so Sign out
   stays on screen at a half-width window. Their words remain in each control's aria-label and title. */
.top .themebtn { min-width: 32px; justify-content: center; }
.top .themebtn .lbl { display: none; }

/* ---------- menu button and drawer (narrow screens) ---------- */
.iconbtn { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-lg); background: var(--surface-sunken); color: var(--text); cursor: pointer; padding: 0; }
.iconbtn:hover { background: var(--surface-raised); }
.menu { display: none; }
dialog.drawer { display: none; width: min(320px, 86vw); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: var(--radius-xl) 0 0 var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); overflow: hidden; }
dialog.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .22s ease-out; }
dialog.drawer::backdrop { background: var(--overlay); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--border); flex: none; }
.dnav { display: flex; flex-direction: column; padding: 8px 0; overflow-y: auto; flex: 1; }
.dnav a { display: flex; align-items: center; min-height: 48px; padding: 0 18px; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; box-shadow: inset 3px 0 0 transparent; }
.dnav .navhelp { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer; }
.dnav a.on { color: var(--text); font-weight: 700; background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent); }
.dfoot { border-top: 1px solid var(--border); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; flex: none; }
.dwho { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dtext { display: flex; flex-direction: column; min-width: 0; }
.dtext .email { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtext .role { font-size: 12px; color: var(--text-muted); }
.dworker { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }

/* ---------- page ---------- */
.main { padding: 26px 28px 34px; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; }
.foot { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px calc(20px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.foot .foot-link { color: var(--text-muted); text-decoration: none; }
.foot .foot-link:hover { color: var(--accent-text); }
.access .signin-legal { margin: 20px 0 0; font-size: 12px; color: var(--text-muted); }
.access .signin-legal a { color: inherit; }
.head { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.head > div:first-child { min-width: 0; flex: 1 1 320px; }
.head h1 { font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.015em; margin: 0; line-height: 1.25; overflow-wrap: anywhere; }
.head .sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.head .st { font-size: 13px; margin-bottom: 6px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions .note { font-size: 12.5px; color: var(--text-muted); }
/* Buttons are glass: a tinted, blurred surface with a lit top edge. --glass-tint is white on the dark
   ground and graphite on the light one, so one rule serves both. One vermilion action (.primary, or
   its older name .gold) leads a view. Vermilion takes dark ink, never white. Rounded controls, not pills. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-lg); min-height: 40px; padding: 0 16px; font: 600 14px/1 var(--font-sans); border: var(--border-width) solid color-mix(in srgb, var(--glass-tint) 18%, transparent); cursor: pointer; white-space: nowrap; text-decoration: none; background: color-mix(in srgb, var(--glass-tint) 7%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper-0) 22%, transparent); color: var(--text); transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), transform var(--dur-instant) var(--ease-standard); }
.btn:hover:not([disabled]) { background: color-mix(in srgb, var(--glass-tint) 13%, transparent); border-color: color-mix(in srgb, var(--glass-tint) 30%, transparent); }
.btn:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.btn.primary, .btn.gold { background: color-mix(in srgb, var(--accent) 96%, transparent); color: var(--on-accent); border-color: color-mix(in srgb, var(--paper-0) 32%, var(--accent) 68%); }
.btn.primary:hover:not([disabled]), .btn.gold:hover:not([disabled]) { background: color-mix(in srgb, var(--accent-hover) 92%, transparent); border-color: color-mix(in srgb, var(--paper-0) 38%, var(--accent) 62%); }
.btn.outline { color: var(--text); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--text); }
.btn.ghost:hover:not([disabled]) { background: color-mix(in srgb, var(--glass-tint) 9%, transparent); border-color: transparent; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-md); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.danger:hover:not([disabled]) { background: var(--danger-tint); border-color: var(--danger); }
.btn.link { min-height: 0; padding: 0; color: var(--accent-text); font-size: 12.5px; font-weight: 600; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.link:hover:not([disabled]) { background: transparent; }
/* A quiet link: a choice beside a field, not an action and not a problem. Muted, underlined, never the accent. */
.btn.link.quiet { color: var(--text-muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn.link.quiet:hover:not([disabled]) { color: var(--text); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.filters, .tfilters { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin: 0 0 14px; align-items: center; flex-wrap: wrap; }
.filters[hidden], .tfilters[hidden] { display: none; }
.filters a, .filters button.f, .tfilters button.f { color: inherit; text-decoration: none; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; cursor: pointer; border-radius: 0; }
.filters a.on, .filters button.f.on, .tfilters button.f.on { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.filters .search { margin-left: auto; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); padding: 8px 14px; width: 260px; max-width: 100%; color: var(--text); font-size: 13px; font-family: var(--font-sans); }
.filters .search::placeholder { color: var(--text-subtle); }
.filters .search:focus { border-color: var(--text); outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-1), inset 0 1px 0 color-mix(in srgb, var(--glass-tint) 5%, transparent); }
.card.pad { padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.stack > * + * { margin-top: 16px; }
.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.list th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-subtle); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.list td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
/* Chrome that sits in a table's card but outside the table (a heading above it, an action row below
   it) takes the table's own cell inset, 16px across and 12px at the top as .list th has, so it lines
   up with the column headers instead of sitting on the card's edge. */
.cardhead { padding: 12px 16px 0; }
.cardbar { padding: 12px 16px; }
.list .topic { font-weight: 600; color: var(--text); }
.list .topic a { color: inherit; text-decoration: none; }
.list .topic a:hover { color: var(--primary); }
.list .topic small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.list .cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.list tr.row-link { cursor: pointer; }
.list tr.row-link:hover td { background: var(--surface-sunken); }
.cover { width: 44px; height: 55px; border-radius: 8px; background: var(--surface-sunken); flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 10px; font-weight: 700; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.st { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; }
.st small { font-weight: 400; color: var(--text-muted); }
.st.wrap { white-space: normal; }
/* A per-person note on People when an Access sync did not land. */
.sync-note { margin-top: 6px; font-size: 12px; font-weight: 500; align-items: flex-start; }
.sync-note .dot { margin-top: 5px; flex: none; }
.stnote { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-top: 2px; white-space: normal; }
.by { display: flex; align-items: center; gap: 8px; color: var(--text-muted); white-space: nowrap; }
.by .avatar { width: 22px; height: 22px; font-size: 9.5px; }
.pbar { height: 6px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; width: 120px; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.pbar.wide { width: 100%; height: 8px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.grid3 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
/* The admin workspace page lists its two actions first, so one column (a phone) shows them under the
   header. Here they head the right column again with Change status under them: the auto row is as
   tall as the actions, the 1fr row takes the rest of the long left column, and the 16px row gap is
   the spacing .stack gave the right column when it was one stack. */
@media (min-width: 901px) {
  .grid3.adminws { grid-template-areas: "main acts" "main status"; grid-template-rows: auto 1fr; row-gap: 16px; }
  .adminws > .adminws-acts { grid-area: acts; }
  .adminws > .adminws-main { grid-area: main; }
  .adminws > .adminws-status { grid-area: status; }
}
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section { margin: 0 0 18px; }
.section h2 { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 10px; }

/* ---------- forms ---------- */
.field { margin: 0 0 20px; }
.label { display: block; font-size: 12px; font-weight: 700; color: var(--text); margin: 0 0 7px; }
.label small { font-weight: 400; color: var(--text-subtle); margin-left: 6px; }
.input { display: block; width: 100%; background: var(--surface-sunken); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); padding: 12px 16px; font-size: 15px; color: var(--text); line-height: 1.4; font-family: var(--font-sans); }
.input:focus { border-color: var(--text); outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.input::placeholder { color: var(--text-subtle); }
.input.area { min-height: 104px; color: var(--text); font-size: 14px; resize: vertical; }
.input.mono { font-family: var(--font-mono); font-size: 13px; }
.input.short { width: auto; min-width: 120px; }
/* Full-width date and time fields. iOS Safari gives them a native minimum width that ignores
   width: 100%, so on a phone they ran past their card (the event dates, Pick a time). Resetting the
   appearance there lets them shrink to the field; the value sits left like every other field, and
   the min-height keeps an empty one from collapsing once the native chrome is gone. */
.input:not(.short):is([type="date"], [type="datetime-local"], [type="time"]) { min-width: 0; max-width: 100%; }
@supports (-webkit-touch-callout: none) {
  .input:not(.short):is([type="date"], [type="datetime-local"], [type="time"]) { -webkit-appearance: none; appearance: none; min-height: 48px; }
  .input:not(.short)::-webkit-date-and-time-value { text-align: left; }
}
.input[disabled] { background: var(--bg); color: var(--text-muted); }
select.input { appearance: auto; }
.has-error .input { border-color: var(--danger); }
.err { font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 12px; }
.hint .over { color: var(--danger); font-weight: 600; }
.seg { display: inline-flex; background: var(--surface-sunken); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); padding: 3px; gap: 2px; flex-wrap: wrap; max-width: 100%; }
.seg button { padding: 8px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); background: transparent; border: 0; cursor: pointer; }
.seg button { transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-1); }
/* Media type: one icon tile per type, each its own button. */
.mtypes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 150px)); gap: 10px; }
.mtype { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.mtype:hover { border-color: var(--border-strong); color: var(--text); }
.mtype.on, .mtype[aria-pressed="true"] { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px var(--accent-tint); }
.mtype:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.mt-ico { width: 32px; height: 32px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mtype.on .mt-ico, .mtype[aria-pressed="true"] .mt-ico { color: var(--accent); }
/* Design tiles share a row height: the grid stretches each wrapper and the tile fills it. */
.designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.dw { position: relative; min-width: 0; display: flex; }
.dw > .design { flex: 1 1 auto; height: auto; }
.gx-brief { margin: 0 0 18px; }
.gx-brief .gx-duo { margin-bottom: 0; }
/* Before you generate sits under the full width form, so it stays in view beside the Generate button. */
.below { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; margin-top: 20px; }
.below > :empty, .below > [hidden], .below[hidden] { display: none; }
.design { border: 1.5px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; display: block; width: 100%; }
.design.on, .design[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.design .thumb { aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--accent), var(--surface-inverse)); overflow: hidden; }
.design .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.design .thumb img.center { object-position: center; }
.design .t { padding: 10px 12px; }
.design .t b { display: block; font-size: 13px; color: var(--text); }
.design .t small { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.design .th-heritage { background: radial-gradient(circle at 50% 50%, var(--thumb-vermilion-strong) 0 3px, transparent 4px) 0 0/26px 26px, repeating-linear-gradient(45deg, var(--thumb-vermilion-faint) 0 2px, transparent 2px 14px), repeating-linear-gradient(-45deg, var(--thumb-vermilion-faint) 0 2px, transparent 2px 14px), linear-gradient(160deg,var(--graphite-700),var(--graphite-900)); }
.design .th-photo { background: linear-gradient(180deg,var(--paper-300) 0%,var(--paper-100) 55%,var(--paper-500) 100%); }
.design .th-geometric { background: linear-gradient(90deg, var(--thumb-grid-line) 1px, transparent 1px) 0 0/16px 16px, linear-gradient(0deg, var(--thumb-grid-line) 1px, transparent 1px) 0 0/16px 16px, linear-gradient(135deg,var(--graphite-500),var(--graphite-800)); }
.design .th-product { background: linear-gradient(180deg,var(--paper-50),var(--paper-200)); position: relative; }
.design .th-product::after { content: ""; position: absolute; left: 50%; top: 14px; width: 36px; height: 70px; transform: translateX(-50%); border-radius: 8px; background: var(--graphite-950); border: 3px solid var(--graphite-700); }
.design .th-lifestyle { background: linear-gradient(160deg,var(--vermilion-100),var(--vermilion-500) 60%,var(--vermilion-700)); }
.design .th-card { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; }
.design .th-card::after { content: "What counts for zakat on gold?"; position: absolute; inset: 14px; font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
.design .th-myth { background: linear-gradient(90deg,var(--graphite-900) 50%,var(--paper-50) 50%); }
.design .th-hook { background: linear-gradient(160deg,var(--paper-50),var(--paper-300)); }
.design .th-checklist { background: repeating-linear-gradient(0deg,var(--surface) 0 14px,var(--paper-200) 14px 16px); }
.design .th-number { background: radial-gradient(circle at 30% 30%,var(--vermilion-500) 0 22px,transparent 23px), linear-gradient(160deg,var(--graphite-800),var(--graphite-900)); }
.design .th-kinetic { background: linear-gradient(160deg,var(--graphite-700),var(--graphite-500)); }
.design .th-tip { background: linear-gradient(160deg,var(--vermilion-50),var(--vermilion-200)); }
.design .th-frame { background: linear-gradient(160deg,var(--graphite-800),var(--graphite-900)); position: relative; }
.design .th-frame::after { content: ""; position: absolute; left: 50%; top: 10px; width: 40px; height: 68px; transform: translateX(-50%); border-radius: 8px; border: 3px solid var(--accent); }
.design .th-frame.alt { background: linear-gradient(160deg,var(--graphite-700),var(--graphite-500)); }
.design .th-frame.alt::after { border-color: var(--border); border-width: 2px; height: 60px; top: 14px; }
.design .th-seasonal { background: linear-gradient(160deg,var(--vermilion-50),var(--paper-300)); }
.design .th-chat { background: linear-gradient(160deg,var(--paper-50),var(--paper-200)); }
/* Preview button over a design tile: opens the example dialog without selecting the design. */
.peek { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 0; border-radius: var(--radius-full); background: var(--surface); color: var(--text); font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1.2; cursor: pointer; box-shadow: var(--shadow-1); }
.peek::before { content: ""; width: 13px; height: 13px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat; }
.peek:hover { background: var(--surface); color: var(--accent-text); }
.peek:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
/* Frame style gallery (New brief, creator videos): brand-colored miniatures of each container template. The brand reaches the previews as --fc-* custom properties set from script; each falls back to a token. */
.fstiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; align-items: start; }
.fstile { border: 1.5px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fstile.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.fstile .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fstile .t b { font-size: 13px; color: var(--text); }
.fstile .t small { font-size: 11.5px; color: var(--text-muted); }
.fstile .t .st { font-size: 12px; margin-top: 4px; }
.fstile .t p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
.fstile.off .fs-shot { opacity: .6; }
.fs-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-variant { border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; font-size: 12px; padding: 5px 9px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.fs-variant small { font-size: 10.5px; color: var(--text-subtle); }
.fs-variant[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); }
.fs-variant:hover:not([aria-checked="true"]):not(:disabled) { background: var(--surface-sunken); }
/* The gallery is one radiogroup: a one-look tile is a radio, the whole tile being the control. */
.fstile[role="radio"] { cursor: pointer; text-align: left; }
.fstile[role="radio"]:not(.on):not(.off):hover { border-color: var(--text-muted); }
.fstile[role="radio"]:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.fstile.off { cursor: not-allowed; }
/* Selected (leading check) replaces Available once a look is chosen; the workspace default is flat text with a dot. */
.fstile .t .st.sl { color: var(--accent-text); white-space: normal; }
.fstile .t .st.sl::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8.5l3.2 3.2L13 5'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8.5l3.2 3.2L13 5'/></svg>") center / contain no-repeat; }
.fstile .t .st.df { color: var(--text-muted); white-space: normal; }
/* The chosen look's description, shown only where the tiles drop their paragraphs. */
.fs-desc { display: none; margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
@media (max-width: 520px) {
  .fstiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fstile { padding: 10px; }
  .fstile .t p { display: none; }
  .fstile[data-container="studio-frame"] { grid-column: 1 / -1; display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; }
  .fstile[data-container="studio-frame"] .fs-shot { grid-row: 1 / 3; margin: 0; }
  .fs-desc { display: block; }
}
/* Card style picker (New brief brand cards, the first piece): Classic plus every drawn card style, each tile a server-drawn preview in the workspace brand (GET /api/cards/preview). The Frame style gallery's sibling: the same tile border, radius and selected ring. The workspace default is flat text with a leading dot, never a pill. */
.cspick { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.cspick.fp { margin: 22px 0 0; } /* first piece: spaced like .obplatforms, which follows it */
.cstiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; align-items: start; margin-top: 8px; }
.cstile { border: 1.5px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cstile:hover { border-color: var(--border-strong); }
.cstile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.cstile:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.cs-shot { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-sunken); }
.cs-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-shot.failed { display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; }
.cs-fail { font-size: 11.5px; line-height: 1.35; color: var(--text-muted); }
.cstile .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px; }
.cstile .t b { font-size: 13px; color: var(--text); }
.cstile .t small { font-size: 11.5px; line-height: 1.35; color: var(--text-muted); }
.cstile .t .st { font-size: 11.5px; font-weight: 600; margin-top: 4px; color: var(--text-muted); white-space: normal; }

/* The side column: the chosen look at full size, portrait, with its whole blurb. */
.csprev { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 14px; }
.csprev .eyebrow { display: block; margin-bottom: 10px; }
.csprev-shot { margin: 0 0 12px; }
.csprev-shot img { display: block; width: 100%; max-width: 320px; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-2); }
.csprev-shot.fp img { width: 72%; }
.csprev > b { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }

/* A phone: one row the thumb scrolls sideways inside the field (never the page), the next look
   peeking at the edge so the row reads as more. The tag lines drop; the label and the default stay. */
@media (max-width: 520px) {
  .cstiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: thin; }
  .cstile { flex: 0 0 40%; scroll-snap-align: start; }
  .cstile .t > small { display: none; }
  .csprev-shot.fp img { width: 100%; }
}
/* Post template picker (New brief, post templates in production): the Card style picker's sibling. The same tile border, radius, selected ring and type sizes, so the two read as one family. A tile is a native radio inside a label, so the group is a real radio group: one tab stop, arrow keys move the choice. The picture is 4 by 5, the shape every template page is drawn in. A tile that is not ready (a template that needs a photo, in a workspace with none) dims and its radio is disabled. Status lines are flat text with a leading dot, never a pill. */
.tpick { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.tpick[hidden] { display: none; }
.tpgroup + .tpgroup { margin-top: 18px; }
.tphead { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.tphead small { font-weight: 400; color: var(--text-subtle); }
.tptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; align-items: stretch; margin-top: 8px; }
.tptile { position: relative; border: 1.5px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; cursor: pointer; color: inherit; }
.tptile:hover { border-color: var(--border-strong); }
.tptile.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.tptile:has(input:focus-visible) { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.tptile.off { cursor: not-allowed; }
.tptile.off:hover { border-color: var(--border); }
.tp-shot { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-sunken); }
.tp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tptile.off .tp-shot img { opacity: .45; }
/* A carousel tile shows its first lesson slide, with the edge of the slides behind it. */
.tp-shot.stack { overflow: visible; border: 0; background: none; }
.tp-shot.stack::before, .tp-shot.stack::after { content: ""; position: absolute; top: 5px; bottom: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-sunken); }
.tp-shot.stack::before { left: 6px; right: -6px; }
.tp-shot.stack::after { left: 3px; right: -3px; top: 2px; }
.tp-shot.stack img { position: relative; z-index: 1; border-radius: var(--radius-md); border: 1px solid var(--border); }
.tptile .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px; }
.tptile .t b { font-size: 13px; color: var(--text); }
.tptile .t small { font-size: 11.5px; line-height: 1.35; color: var(--text-muted); }
.tptile .t .st { font-size: 11.5px; font-weight: 600; margin-top: 4px; color: var(--text-muted); white-space: normal; align-items: flex-start; }
.tptile .t .st .dot { margin-top: 4px; }
.tpick .hint { display: block; }
.tpick .hint a { color: var(--text); text-decoration: underline; }

/* Photos from the library, under the template picker: one short row per place the template draws a
   photo (Automatic, three suggestions, All N), and the whole library in a sheet that the All tile opens. */
.ppick { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.preq { margin: 0 0 16px; }
.preq p { margin: 0 0 8px; }
.preq-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ppick .fine { margin: 4px 0 0; }
.pp-row { margin-top: 14px; }
.pp-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.pp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pp-head .pp-label { margin: 0; flex: none; }
.pp-val { font-size: 12px; color: var(--text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 400px; }
.pp-tile { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; padding: 0; font: inherit; color: inherit; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); overflow: hidden; cursor: pointer; }
.pp-tile:hover { border-color: var(--border-strong); }
.pp-tile.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.pp-tile:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.pp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-num { position: absolute; left: 5px; top: 3px; font: 600 10px/1.2 var(--font-mono); color: var(--on-overlay); text-shadow: 0 1px 2px var(--overlay); pointer-events: none; }
.pp-auto { font-size: clamp(9.5px, 2.9vw, 11px); font-weight: 600; color: var(--text-muted); text-align: center; padding: 0 2px; line-height: 1.2; }
.pp-all { flex-direction: column; gap: 3px; border-style: dashed; color: var(--accent-text); font: 600 11px/1.1 var(--font-sans); }
.pp-hint { margin-top: 8px; }
.pp-more { margin-top: 12px; }
.spick { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.spick .fine { margin: 4px 0 0; }
.sp-row { margin-top: 12px; }
.sp-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-size { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 200px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; }
.sp-size:hover { border-color: var(--border-strong); }
.sp-size.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.sp-size input { margin-top: 3px; }
.sp-size strong { display: block; font-size: 13px; }
.sp-size small { display: block; font-size: 12px; color: var(--text-muted); }
.sp-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; cursor: pointer; }
.sp-swatch { width: 56px; height: 56px; border: 1.5px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.sp-swatch.sp-auto { background: var(--surface-sunken); color: var(--text-muted); font-family: inherit; font-size: 11px; }
.sp-tile:hover .sp-swatch { border-color: var(--border-strong); }
.sp-tile.on .sp-swatch { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.sp-tile:has(input:focus-visible) .sp-swatch { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.sp-name { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; line-height: 1.2; }

/* The full library for one place: a bottom sheet on a phone, a centered dialog on a wide screen. A
   native modal dialog, so the page behind is inert and Tab stays inside. */
html.pp-lock { overflow: hidden; }
dialog.pp-sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; height: 84vh; height: 84dvh; max-height: none; padding: 0; border: 0; border-top: 1px solid var(--border); border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); overflow: hidden; }
dialog.pp-sheet[open] { display: flex; flex-direction: column; }
dialog.pp-sheet::backdrop { background: var(--overlay); }
.pp-sh-head { flex: none; padding: 8px 16px 10px; border-bottom: 1px solid var(--border); }
.pp-sh-handle { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 8px; }
.pp-sh-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-sh-title { font: 700 17px/1.2 var(--font-display); margin: 0; }
.pp-sh-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 28px; }
.pp-sh-auto { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 44px 12px 12px; font: inherit; color: inherit; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-sunken); cursor: pointer; }
.pp-sh-auto:hover { border-color: var(--border-strong); }
.pp-sh-auto.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.pp-sh-auto:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.pp-sh-auto b { display: block; font-size: 14px; }
.pp-sh-auto small { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.pp-sh-ico { flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent-text); background: var(--surface); }
.pp-sh-sec { display: flex; align-items: baseline; gap: 8px; font: 700 12px/1.2 var(--font-sans); color: var(--text); margin: 20px 0 8px; }
.pp-sh-sec span { font-weight: 400; color: var(--text-muted); }
.pp-sh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-sh-cell { min-width: 0; }
.pp-sh-cap { display: block; font-size: 11.5px; line-height: 1.25; color: var(--text-muted); margin-top: 4px; }
.pp-sh-grid .pp-tile.on::after, .pp-sh-auto.on::after { content: ""; position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121419' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pp-sh-auto.on::after { right: 12px; top: 50%; margin-top: -11px; }
@keyframes pp-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pp-sheet-pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  dialog.pp-sheet[open] { animation: pp-sheet-in var(--dur-slow) var(--ease-slide); }
}
@media (min-width: 720px) {
  dialog.pp-sheet { inset: 0; margin: auto; width: min(640px, calc(100vw - 32px)); height: min(720px, calc(100vh - 48px)); border: 1px solid var(--border); border-radius: var(--radius-xl); }
  .pp-sh-handle { display: none; }
  .pp-sh-head { padding-top: 12px; }
  .pp-sh-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 720px) and (prefers-reduced-motion: no-preference) {
  dialog.pp-sheet[open] { animation: pp-sheet-pop var(--dur-base) var(--ease-standard); }
}

/* The Post template Design tile: three real previews side by side, each whole and 4 by 5, so no headline is cut mid-word. */
.design .thumb.tp-collage { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: var(--surface-sunken); }
.design .thumb.tp-collage img { flex: 1 1 0; min-width: 0; max-width: 34%; height: auto; max-height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); box-shadow: var(--shadow-1); }

/* The side column: the chosen template at full size, with its whole description. */
.tpprev { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 14px; }
.tpprev .eyebrow { display: block; margin-bottom: 10px; }
.tpprev-shots { display: flex; gap: 10px; margin: 0 0 12px; }
.tpprev-shot { margin: 0; min-width: 0; flex: 1 1 0; max-width: 320px; }
.tpprev-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-2); }
.tpprev-shot figcaption { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.tpprev > b { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.tpline { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.tpprev .st { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: normal; }

/* A phone: one row per group that the thumb scrolls sideways inside the field (never the page), the next template peeking at the edge so the row reads as more. The status line stays. */
@media (max-width: 520px) {
  .tptiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: thin; }
  .tptile { flex: 0 0 40%; scroll-snap-align: start; }
  .tp-shot.stack { margin-right: 6px; }
  .tpprev-shot { max-width: none; }
}
.fs-variant:disabled { opacity: .55; cursor: not-allowed; }
.fs-variant:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.fs-shot { position: relative; width: 84px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(170deg, var(--graphite-500), var(--graphite-800)); }
.fs-shot i { position: absolute; display: none; }
.fs-studio-frame .fs-foot { display: block; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(transparent, var(--fc-dark, var(--graphite-950))); }
.fs-studio-frame .fs-a { display: block; left: 8%; bottom: 9%; width: 36%; height: 7%; background: var(--fc-light, var(--paper-50)); }
.fs-studio-frame .fs-b { display: block; left: 8%; bottom: 4%; width: 22%; height: 3%; background: var(--fc-light, var(--paper-50)); opacity: .7; }
/* Studio frame layouts: Footer lockup adds a faint corner pattern to the scrim and lockup; Lower third is the lockup alone, a little higher, with no scrim; Heading-color bar is a solid heading-color band carrying the name and web address. */
.fs-studio-frame.fs-v-a .fs-c { display: block; right: 6%; top: 4%; width: 22%; aspect-ratio: 1; border: 1px solid var(--fc-light, var(--paper-50)); border-radius: 50%; opacity: .35; }
.fs-studio-frame.fs-v-c .fs-foot { display: none; }
.fs-studio-frame.fs-v-c .fs-a { bottom: 16%; }
.fs-studio-frame.fs-v-c .fs-b { bottom: 11%; }
.fs-studio-frame.fs-v-bar .fs-foot { height: 15%; background: var(--fc-heading, var(--primary)); }
.fs-studio-frame.fs-v-bar .fs-a { bottom: 8%; width: 40%; height: 4%; background: var(--fc-on, var(--paper-50)); }
.fs-studio-frame.fs-v-bar .fs-b { bottom: 4%; width: 30%; height: 2.5%; background: var(--fc-on, var(--paper-50)); opacity: .8; }
.fs-polaroid { background: var(--fc-ground, var(--paper-100)); }
.fs-polaroid .fs-foot { display: block; left: 8%; right: 8%; top: 6%; bottom: 24%; background: linear-gradient(170deg, var(--graphite-500), var(--graphite-800)); }
.fs-polaroid .fs-a { display: block; left: 36%; top: 3%; width: 28%; height: 7%; background: var(--fc-hl, var(--accent)); opacity: .85; transform: rotate(-4deg); }
.fs-polaroid .fs-b { display: block; left: 12%; bottom: 10%; width: 50%; height: 3%; background: var(--fc-text, var(--graphite-700)); }
.fs-warm-edge .fs-foot { display: block; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(transparent, var(--fc-heading, var(--primary))); }
.fs-warm-edge .fs-a { display: block; left: 10%; bottom: 20%; width: 64%; height: 8%; background: var(--fc-on, var(--paper-50)); }
.fs-warm-edge .fs-b { display: block; left: 10%; bottom: 10%; width: 44%; height: 6%; background: var(--fc-on, var(--paper-50)); }
.fs-floating-strip .fs-a { display: block; left: 8%; right: 8%; bottom: 10%; height: 20%; background: var(--fc-ground, var(--paper-100)); border-radius: 2px; transform: rotate(-1deg); }
.fs-floating-strip .fs-b { display: block; left: 14%; bottom: 20%; width: 40%; height: 4%; background: var(--fc-heading, var(--primary)); }
.fs-floating-strip .fs-c { display: block; left: 14%; bottom: 13%; width: 56%; height: 3%; background: var(--fc-text, var(--graphite-700)); }
.fs-split-crop { background: var(--fc-ground, var(--paper-100)); }
.fs-split-crop .fs-foot { display: block; left: 0; right: 0; top: 0; height: 58%; background: linear-gradient(170deg, var(--graphite-500), var(--graphite-800)); clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.fs-split-crop .fs-a { display: block; left: 10%; bottom: 22%; width: 70%; height: 6%; background: var(--fc-heading, var(--primary)); }
.fs-split-crop .fs-b { display: block; left: 10%; bottom: 12%; width: 50%; height: 3%; background: var(--fc-text, var(--graphite-700)); }
.fs-sticker .fs-a { display: block; left: 8%; top: 62%; width: 60%; height: 7%; background: var(--fc-hl, var(--accent)); }
.fs-sticker .fs-b { display: block; left: 8%; top: 71%; width: 44%; height: 7%; background: var(--fc-hl, var(--accent)); }
.fs-sticker .fs-c { display: block; right: 8%; bottom: 8%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: var(--fc-heading, var(--primary)); border: 2px solid var(--fc-light, var(--paper-50)); }
.fs-margin-rail .fs-foot { display: block; left: 0; top: 0; bottom: 0; width: 20%; background: var(--fc-ground, var(--paper-100)); }
.fs-margin-rail .fs-a { display: block; left: 8%; top: 12%; width: 4%; height: 50%; background: var(--fc-heading, var(--primary)); }
.fs-margin-rail .fs-b { display: block; left: 4%; bottom: 8%; width: 12%; height: 10%; background: var(--fc-heading, var(--primary)); }
.fs-ribbon-bubble .fs-a { display: block; left: 8%; top: 10%; width: 60%; height: 16%; background: var(--fc-light, var(--paper-50)); border-radius: var(--radius-md); }
.fs-ribbon-bubble .fs-b { display: block; left: -10%; right: -10%; bottom: 14%; height: 8%; background: var(--fc-heading, var(--primary)); transform: rotate(-6deg); }
.fs-ribbon-bubble .fs-c { display: block; left: -10%; right: -10%; bottom: 14%; height: 8%; background: var(--fc-hl, var(--accent)); transform: rotate(6deg); opacity: .9; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; position: relative; }
.chk i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); display: inline-block; flex: none; background: var(--surface); position: relative; }
.chk input:checked + i { background: var(--primary); border-color: var(--primary); }
.chk input:checked + i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chk input:focus-visible + i { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.chk input[disabled] + i { opacity: .5; }
.chk small { color: var(--text-subtle); font-size: 12px; margin-left: auto; font-family: var(--font-mono); }
/* Admin on/off switch (app/admin/views/Switch.jsx): a 64 by 36 track in a 44px tall hit area, the same on every screen. */
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.switch-track { position: relative; flex: none; width: 64px; height: 36px; border-radius: 999px; background: var(--switch-off); transition: background .15s; }
.switch-thumb { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--switch-thumb); box-shadow: var(--shadow-1); transition: left .15s; }
.switch.on .switch-track { background: var(--switch-on); }
.switch.on .switch-thumb { left: 32px; }
.switch-text { min-width: 28px; color: var(--switch-off-text); }
.switch.on .switch-text { color: var(--switch-on-text); }
.switch:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); border-radius: var(--radius-lg); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; position: relative; }
.toggle i { width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; display: inline-block; flex: none; transition: background .15s; }
.toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: left .15s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { left: 18px; background: var(--knob-on); }
.toggle input:focus-visible + i { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
/* Media options on the New brief form: stacked toggles, a strength slider, variant picks. */
.optgroup { display: grid; gap: 10px; justify-items: start; }
.optgroup .checks { width: 100%; margin: 2px 0; }
.optgroup .hint { margin-top: -2px; width: 100%; }
.optrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--text); }
.optrow > span:first-child { flex: none; min-width: 112px; }
.optrow input[type="range"] { width: 200px; accent-color: var(--accent); margin: 0; }
.optrow select.input { width: auto; max-width: 240px; padding: 6px 10px; font-size: 13px; }
.optrow select.input.voice { max-width: 320px; }
/* Creator Video: this clip's own words for the opening and closing cards, one fieldset a side. */
.optgroup .cardtext { width: 100%; min-width: 0; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; gap: 10px; }
.cardtext legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.cardtext-field { display: grid; gap: 4px; min-width: 0; }
.cardtext-field label { font-size: 12.5px; color: var(--text-muted); }
.cardtext-field .input { padding: 8px 12px; font-size: 14px; }
/* Voice sample player: flat text with a leading play glyph, no pill. The glyph is a CSS triangle
   because the form builds every node through h() and cannot create inline SVG. */
.play { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--primary); font: 600 12.5px var(--font-sans); cursor: pointer; }
.play i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.play:hover { color: var(--text); text-decoration: underline; }
.play:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); border-radius: var(--radius-xs); }
.upload { border: 1.5px dashed var(--border-strong); background: var(--accent-tint); border-radius: var(--radius-xl); padding: 14px 16px; }
.upload .fname { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0 0 10px; font-size: 13.5px; }
.upload .fname b { overflow-wrap: anywhere; }
.upload .pbar { margin: 0 0 8px; }
.filepick { display: inline-flex; }
.filepick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filepick input:focus-visible + span { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }

/* ---------- side cards ---------- */
.side { padding: 18px 20px; }
.side h3 { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 12px; }
.side p { margin: 0 0 10px; font-size: 13.5px; color: var(--text); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.side .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.side .row:last-child { border-bottom: 0; }
.side .row span:last-child { color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; text-align: right; }
.side .row span:last-child.plain { font-family: var(--font-sans); font-size: 13px; }

/* ---------- media and copy ---------- */
.mediagrid { display: grid; gap: 14px; margin: 0 0 14px; }
.mediagrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.media .img { position: relative; max-height: 560px; background: var(--surface-sunken); display: flex; align-items: center; justify-content: center; }
.media .img img { max-height: 560px; width: 100%; object-fit: contain; background: var(--stage); }
.media .img video { width: 100%; max-height: 560px; background: var(--video-matte); }
/* A carousel's slide stage on the brief page: one slide, a swipe to step (viewer.js swipeOn) and a tap to open it full size. pan-y keeps the page scrolling under a vertical drag. The arrows sit in the row under it, never over the slide. */
.car-stage { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.car-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.car-open:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: calc(-1 * var(--focus-width)); }
.car-open img { display: block; -webkit-user-drag: none; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 14px 0; }
.car-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; touch-action: manipulation; }
.car-arrow:hover { border-color: var(--accent); }
.car-arrow:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }
.car-count { margin: 0; min-width: 96px; font-size: 12.5px; color: var(--text-muted); text-align: center; }
.media .cap { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12.5px; color: var(--text-muted); gap: 12px; flex-wrap: wrap; }
.media .cap b { color: var(--text); font-weight: 600; }
.media .cap a { color: var(--primary); font-weight: 600; text-decoration: none; }
.media .cap .cap-acts { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* A composed post's picture: the same card as any generated one, with the CSS-only crop window in
   place of a rendered image. The window is exactly the rectangle's shape, so it is sized on ONE
   axis and lets aspect-ratio give the other: a cap on both would widen the window past the crop and
   show the approver more of the picture than will publish. */
.media.composed .img { padding: 16px; }
.media.composed .img .frame { width: min(100%, 400px); }
.media.composed .img .frame .shot { max-height: none; background: none; }
.media .alt { margin: 0; padding: 0 14px 12px; font-size: 12.5px; color: var(--text-muted); }
.media .alt b { color: var(--text); font-weight: 600; }
.versions { display: flex; gap: 10px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.versions button { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 12.5px; color: var(--primary); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; border-radius: 0; }
.versions button.on { color: var(--text); border-bottom-color: var(--accent); }
.versions button small { color: var(--text-subtle); font-weight: 400; margin-left: 4px; }
/* The version list with the action that goes back to the version being read, when there is one. */
.versionbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.slides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slide { aspect-ratio: 4/5; border-radius: 10px; position: relative; overflow: hidden; background: var(--surface-sunken); display: block; padding: 0; border: 1px solid var(--border); cursor: pointer; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
/* A thumbnail in the brief's slide grid carries its number as plain text beneath the picture, so nothing sits over the slide's own footer. */
.slide-cell { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.slide-cell .slide { width: 100%; }
.slide-no { font-family: var(--font-mono); font-size: 11px; line-height: 1.2; text-align: center; color: var(--text-muted); }
.slide-cell .slide[aria-pressed="true"] + .slide-no { color: var(--text); font-weight: 700; }
/* The small preview strip is too short for a caption, so its number stays over the picture. */
.pv-strip .slide small { position: absolute; left: 8px; bottom: 6px; font-size: 10px; font-weight: 700; color: var(--on-overlay); background: var(--overlay); padding: 2px 6px; border-radius: 6px; font-family: var(--font-mono); }
/* Design example dialog, opened from a card's Preview button. */
dialog.preview { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); overflow: hidden; }
dialog.preview[open] { display: flex; flex-direction: column; }
dialog.preview::backdrop { background: var(--overlay); }
.pv-head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px 14px; }
.pv-head > div { min-width: 0; flex: 1; }
.pv-head .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-subtle); }
.pv-head h2 { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.pv-head .sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.pv-close, .vw-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; }
.pv-close:hover, .vw-close:hover { border-color: var(--accent); color: var(--text); }
.pv-stage { position: relative; touch-action: pan-y pinch-zoom; background: var(--stage); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); height: min(58vh, 540px); display: flex; align-items: center; justify-content: center; padding: 16px 64px; }
.pv-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-2); }
.pv-arrow, .vw-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-1); display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; touch-action: manipulation; }
.pv-arrow.prev, .vw-arrow.prev { left: 12px; }
.pv-arrow.next, .vw-arrow.next { right: 12px; }
.pv-arrow:hover, .vw-arrow:hover { color: var(--accent-text); }
/* The arrows carry a shadow of their own; the focus ring is an outline, so the shadow stays as it is. */
.pv-arrow:focus-visible, .vw-arrow:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); box-shadow: var(--shadow-1); }
.pv-arrow[hidden], .pv-foot .btn[hidden] { display: none; }
.pv-strip { display: flex; gap: 8px; padding: 14px 20px 0; overflow-x: auto; }
.pv-strip .slide { width: 64px; flex: none; aspect-ratio: 1 / 1; }
.pv-strip .slide.port { aspect-ratio: 4 / 5; }
.pv-strip .slide.tall { aspect-ratio: 9 / 16; }
.pv-strip .slide[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.pv-cap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px 0; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }
.pv-cap b { color: var(--text); font-weight: 600; }
.pv-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px 18px; flex-wrap: wrap; }
.pv-foot .spacer { flex: 1; }
/* The file viewer: a screenshot or a brief's media, full size over the page on the same tab. The
   surface, the arrows and the close are the design preview's; the stage takes the height left. */
html.vw-lock { overflow: hidden; }
html.vw-lock.vw-gutter { scrollbar-gutter: stable; }
dialog.viewer { width: min(1040px, calc(100vw - 32px)); height: min(880px, calc(100vh - 32px)); max-width: 100%; max-height: 100%; padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); overflow: hidden; overscroll-behavior: contain; }
dialog.viewer[open] { display: flex; flex-direction: column; animation: vw-in .16s ease-out; }
dialog.viewer::backdrop { background: var(--overlay); }
/* The panel itself only takes focus as a resting place (a click on the picture); its controls show their own ring. */
dialog.viewer:focus { outline: none; }
dialog.viewer [hidden] { display: none; }
@keyframes vw-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.vw-head { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 20px; }
.vw-head > div { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 12px; }
.vw-title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; }
.vw-count { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.vw-close { width: 40px; height: 40px; }
.vw-stage { position: relative; flex: 1; min-height: 0; display: flex; padding: 16px 68px; background: var(--stage); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); user-select: none; -webkit-user-select: none; }
.vw-frame { flex: 1; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.vw-media { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-2); background: var(--surface); }
.vw-stage:not([data-state="ready"]) .vw-media { visibility: hidden; }
.vw-media.in-next { animation: vw-next .2s ease-out; }
.vw-media.in-prev { animation: vw-prev .2s ease-out; }
@keyframes vw-next { from { opacity: .4; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes vw-prev { from { opacity: .4; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.vw-msg { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--text-muted); pointer-events: none; }
.vw-msg .btn { pointer-events: auto; }
/* A file that arrives at once never flashes the word; one that takes a moment says it is coming. */
.vw-stage[data-state="loading"] .vw-msg { animation: vw-late .3s step-end both; }
@keyframes vw-late { from { visibility: hidden; } to { visibility: visible; } }
.vw-cap { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 20px 16px; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }
.vw-cap b { color: var(--text); font-weight: 600; }
.vw-cap b:empty { display: none; }
.vw-cap span { font-family: var(--font-mono); }
.copy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 16px 18px; margin: 0 0 12px; }
.copy.bad { border-color: var(--danger); }
.copy .h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.copy .h b { font-size: 13.5px; }
.copy .h .num { margin-left: auto; }
.copy .h .btn.link { font-size: 12.5px; }
.copy p { margin: 0 0 9px; font-size: 13.5px; line-height: 1.6; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.copy p.title { font-weight: 700; color: var(--text); }
.copy .tags { font-size: 12.5px; color: var(--primary); font-weight: 600; overflow-wrap: anywhere; }
.copy .alert { margin: 10px 0 0; }
.copy .edit .field { margin-bottom: 12px; }
.copy .edit .input.area { min-height: 160px; font-size: 13.5px; }
.pf { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; color: var(--on-overlay); flex: none; }
.pf.li { background: var(--platform-li); } .pf.ig { background: var(--platform-ig); } .pf.fb { background: var(--platform-fb); } .pf.yt { background: var(--platform-yt); } .pf.bs { background: var(--platform-bs); }
.pf.rd { background: var(--platform-rd); } .pf.wa { background: var(--platform-wa); } .pf.dc { background: var(--platform-dc); } .pf.xx { background: var(--platform-xx); }
.pf.xx, .pf.tt { box-shadow: inset 0 0 0 1px var(--ring-mark); }
.pf.tt { background: var(--platform-tt); } .pf.fo { background: var(--primary); } .pf.ip { background: var(--accent); color: var(--on-accent); } .pf.ot { background: var(--text-subtle); }
.pfs { display: inline-flex; gap: 4px; vertical-align: middle; }
.gates { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--success); padding: 12px 16px; background: var(--success-tint); border: 1px solid var(--success); border-radius: var(--radius-lg); margin: 0 0 14px; flex-wrap: wrap; }
.gates small { font-weight: 400; color: var(--text-muted); margin-left: auto; }
.gates.bad { color: var(--danger); background: var(--danger-tint); border-color: var(--danger); }
.gates.wait { color: var(--text); background: var(--accent-tint); border-color: var(--border); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.timeline li:last-child { border-bottom: 0; }
.timeline li .num { display: block; margin-top: 2px; }
.timeline li i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-sunken); margin-top: 6px; display: block; justify-self: center; }
.timeline li i.red { background: var(--danger); } .timeline li i.gold { background: var(--accent); } .timeline li i.amber { background: var(--warning); } .timeline li i.green { background: var(--success); }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.step i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-subtle); flex: none; margin-top: 1px; font-style: normal; }
.step i.done { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.step i.now { border-color: var(--accent); color: var(--accent-text); border-style: dashed; }
.step small { display: block; color: var(--text-muted); font-size: 12.5px; }
.drawer { background: var(--surface); border: 1.5px solid var(--accent); border-radius: var(--radius-xl); padding: 18px 20px; box-shadow: var(--shadow-2); }
.drawer h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.drawer p { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.drawer .field { margin-bottom: 14px; }
.slots { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 12px; }
.slot { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 13.5px; }
.slot .chk { gap: 0; }
.slot .cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.slot .num { text-align: right; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-lg); font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }
.alert > div { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.alert > span:first-child { flex: none; font-weight: 700; }
.alert[hidden] { display: none; }
.alert.amber { background: var(--warning-tint); border: 1px solid var(--warning); color: var(--warning); }
.alert.info { background: var(--accent-tint); border: 1px solid var(--border); color: var(--text); }
.alert.red { background: var(--danger-tint); border: 1px solid var(--danger); color: var(--danger); }
.alert.ok { background: var(--success-tint); border: 1px solid var(--success); color: var(--text); }
.alert.ok > span:first-child { color: var(--success); }
.alert.gray { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
/* An action under an alert's sentence (the New article banner for a social-only topic). */
.alert .acts { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; white-space: normal; }
.alert .acts .fine { display: block; flex: 1 1 180px; }
.alert .acts + .err { margin-top: 8px; }
.alert a { color: inherit; font-weight: 700; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; flex-wrap: wrap; }
.links li:last-child { border-bottom: 0; }
/* The row's text keeps a readable width: beside Reconnect and Publish now the buttons wrap to a second line instead of squeezing it. */
.links li .grow { flex: 1 1 11em; min-width: 0; }
.links li .sub { display: block; font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.links a { color: var(--primary); font-weight: 600; text-decoration: none; margin-left: auto; font-size: 13px; }
/* Retry beside a failed post (views/brief.js): sits at the row's end like the links do. */
.links li > button.btn { margin-left: auto; }
/* A held row's own fix (Reconnect) sits right, and Retry beside it rather than pushed apart. */
.links li > a.btn + button.btn { margin-left: 0; }
/* Retry on a post that may already be live: check the channel first, in the row itself. */
.links .retry-confirm { margin-top: 6px; }
.links .retry-confirm .note { margin: 0 0 6px; font-size: 12.5px; color: var(--text); }
.links .retry-confirm .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.kpi .card { padding: 14px 16px; margin: 0; }
.kpi b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--text-muted); }
.empty { padding: 36px 20px; text-align: center; color: var(--text-muted); font-size: 13.5px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.footnote { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.loadmore { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--border); }
.access { max-width: 520px; margin: 60px auto; padding: 28px 30px; }
.access h1 { font-size: 20px; margin: 0 0 8px; }
.access p { margin: 0 0 14px; font-size: 14px; color: var(--text); }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 30; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--surface-raised); color: var(--text); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); padding: 12px 16px; font-size: 13.5px; box-shadow: var(--shadow-3); display: flex; gap: 12px; align-items: flex-start; pointer-events: auto; }
.toast.red { background: var(--danger-tint); color: var(--danger); border-color: var(--danger); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--accent-text); font-weight: 700; cursor: pointer; font-size: 13px; flex: none; }
/* The update offer carries two buttons; only the first pushes off the message. */
.toast.update button + button { margin-left: 0; }
/* A toast with an Undo carries the same pair, the action first. */
.toast button + button { margin-left: 0; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 14px 16px; border-top: 1px solid var(--border); }
.inline-form .field { margin: 0; }
.inline-form .label { font-size: 11.5px; }
.inline-form .input { padding: 9px 12px; font-size: 14px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.sticky-actions { display: none; }
.rowactions { display: flex; gap: 8px; flex-wrap: wrap; }
.rowactions .btn { padding: 6px 10px; font-size: 12.5px; }
.mono { font-family: var(--font-mono); }
.pre { white-space: pre-wrap; font-family: var(--font-mono); font-size: 12px; background: var(--bg); border-radius: 8px; padding: 12px; overflow-x: auto; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .top { padding: 0 12px 0 16px; gap: 12px; }
  .nav { display: none; }
  .menu { display: inline-flex; }
  .top.admin { flex-wrap: wrap; height: auto; padding: 10px 16px 0; row-gap: 2px; }
  .nav.adminnav { display: flex; flex-wrap: wrap; width: 100%; column-gap: 16px; row-gap: 0; }
  .who .email { display: none; }
  .who .avatar { display: none; }
  .top .signout, .top .themebtn { display: none; }
  .main { padding: 18px 16px 90px; }
  .foot { padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
  .grid, .grid3, .cards2, .settings-grid, .mediagrid.two, .below { grid-template-columns: minmax(0, 1fr); }
  .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
  .filters .search { margin-left: 0; width: 100%; }
  .head .actions { width: 100%; }
  .head .actions .btn { flex: 1 1 auto; }
  table.list.stack, table.list.stack tbody, table.list.stack tr { display: block; }
  table.list.stack thead { display: none; }
  table.list.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  table.list.stack tr:last-child { border-bottom: 0; }
  table.list.stack td { display: block; padding: 2px 0; border: 0; }
  table.list.stack td:empty { display: none; }
  table.list.stack td.num { color: var(--text-subtle); }
  /* Cost tables (the admin Scan costs page): each stacked cell names its column, value to the right. */
  table.list.stack.costs td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; }
  table.list.stack.costs td[data-label]::before { content: attr(data-label); font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); text-align: left; }
  table.list.stack.costs td.num { color: var(--text); }
  table.list.stack.costs td.topic { overflow-wrap: anywhere; padding-bottom: 6px; }
  /* Support messages (the admin Support page): each message is a card, its status picker and Reply
     button underneath it, so nothing sits off the right edge of a phone. */
  table.list.stack.support td { overflow-wrap: anywhere; }
  table.list.stack.support td.topic { padding-bottom: 8px; }
  table.list.stack.support td.acts { padding-top: 12px; }
  table.list.stack.support td.acts .optrow select.input { flex: 1 1 auto; max-width: none; }
  table.list.stack.support td.acts .optrow .btn { flex: 1 1 auto; min-height: 40px; }
  .sticky-actions { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); z-index: 9; backdrop-filter: blur(6px); }
  .sticky-actions .btn { flex: 1; }
  .head .actions.has-sticky { display: none; }
  /* The reveal around a page that holds the bar fades only. A translate on any ancestor becomes the
     containing block for position: fixed, which pinned the bar to the foot of the page's content: it
     sat on top of the last card and could never be scrolled clear (the fox dock has the same rule). */
  .js .rv:has(.sticky-actions) { animation: rv-fade var(--rv-dur) var(--ease-premium) both; animation-delay: calc(var(--i, 0) * var(--rv-step)); }
}
@media (max-width: 720px) {
  .pv-stage { padding: 12px 52px; height: 48vh; }
}
/* On a phone the viewer is a large modal: nearly the whole screen, with the rounder corners the
   design guide keeps for large modals on mobile. */
@media (max-width: 720px) {
  dialog.viewer { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: var(--radius-xl); }
  .vw-head { padding: 8px 8px 8px 16px; }
  .vw-stage { padding: 8px; }
  .vw-arrow.prev { left: 8px; }
  .vw-arrow.next { right: 8px; }
  .vw-cap { padding: 10px 16px 14px; }
}
@media (max-width: 520px) {
  /* The admin Scan costs period presets: a two by two grid rather than a group that wraps unevenly. */
  .seg.period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 420px) {
  .designs { grid-template-columns: minmax(0, 1fr); }
  .kpi { grid-template-columns: minmax(0, 1fr); }
  .slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .pbar i, .toggle i, .toggle i::after, .switch-track, .switch-thumb { transition: none; }
  dialog.drawer[open], dialog.gx-helpdrawer[open] { animation: none; }
  dialog.viewer[open], .vw-media.in-next, .vw-media.in-prev { animation: none; }
}

/* ---------- outreach ---------- */
/* The log lives in one card: the list, then the quick add resting at the bottom of it, so a
   saved entry appears directly above the form that wrote it. */
.otadd { border-top: 1px solid var(--border); background: var(--accent-tint); padding: 14px 18px; }
.otadd .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: start; }
.otadd .wide { grid-column: 1 / -1; }
.otadd .actions { margin-top: 12px; }
.otopen { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.otopen .plus { width: 22px; height: 22px; border-radius: 7px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.otopen .said { color: var(--text-muted); font-weight: 400; }
.otwhere { display: flex; align-items: flex-start; gap: 10px; }
.otwhere .said { font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.otlink { font-family: var(--font-mono); font-size: 12px; color: var(--primary); overflow-wrap: anywhere; }
.otlink.none { color: var(--text-subtle); font-family: var(--font-sans); }
.otflag { color: var(--warning); font-weight: 600; }
.otside { display: grid; gap: 10px; }
.otside .row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.otside .row b { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.otside .row .num { margin-left: auto; }
/* The communities rollup rests under the log, not beside it, so the log has the whole width of the
   page for its columns. On a wide screen the communities read across in columns of their own. */
.otsplit { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.otedit { padding: 16px; }
.otside .pbar { width: 56px; margin-left: auto; }
.otside .row .num { margin-left: 0; flex: none; min-width: 22px; text-align: right; }
@media (min-width: 901px) { .otside { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 32px; } }
.filters .seg { padding: 2px; }
.filters .seg button { padding: 5px 12px; font-size: 12.5px; }
/* Community suggestions hang off the bottom edge of the Where field. */
.hassugg .input { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.sugg { border: 1.5px solid var(--border-strong); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface); overflow: hidden; }
.sugg button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 14px; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; text-align: left; }
.sugg button + button { border-top: 1px solid var(--border); }
.sugg button:hover, .sugg button:focus-visible { background: var(--accent-tint); outline: none; }
.sugg em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-subtle); flex: none; }
/* What you posted, the media used, and screenshots. The quick add folds each one away until it is
   asked for, so the three fields that carry a typical entry stay the first thing on the page. */
.subsec { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
.subsec .label { font-size: 12.5px; }
.subsec .lead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* One tile is one file, at a size you can recognize it by. Buttons in the picker, plain boxes once
   chosen, links once the entry is saved. */
.tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; align-items: flex-start; }
.tilewrap { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.tilewrap small { font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.tilewrap small.st { font-family: var(--font-sans); font-weight: 600; gap: 5px; }
.tile { position: relative; display: block; width: 64px; height: 80px; padding: 0; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1.5px solid var(--border-strong); flex: none; }
button.tile, a.tile { cursor: pointer; font: inherit; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.on { border-color: var(--accent); box-shadow: 0 0 0 var(--focus-width) var(--accent); }
.tile.wide { width: 80px; height: 64px; }
.tile.tall { width: 50px; height: 96px; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; font-weight: 700; color: var(--on-overlay); padding: 14px 6px 5px; background: linear-gradient(transparent, var(--overlay)); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .x { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); font: inherit; font-size: 11px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); cursor: pointer; }
.tile .chk { position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tile .veil { position: absolute; inset: 0; background: var(--surface); opacity: .62; }
.tile .pb { position: absolute; left: 6px; right: 6px; bottom: 7px; height: 4px; border-radius: 3px; background: var(--surface-sunken); }
.tile .pb i { display: block; height: 100%; width: 62%; background: var(--accent); border-radius: 3px; }

.drop { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); padding: 14px 16px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-muted); line-height: 1.5; flex-wrap: wrap; }
.drop b { color: var(--text); font-weight: 600; display: block; margin-bottom: 1px; }
.drop .kbd { font-family: var(--font-mono); font-size: 11px; color: var(--text); background: var(--accent-tint); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.drop .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.drop .btn { margin-left: auto; }
.drop.over { border-style: solid; border-color: var(--accent); background: var(--accent-tint); }

.picker { background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); padding: 12px 14px; margin-top: 10px; }
.picker .prow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.picker .prow .input { min-width: 280px; max-width: 100%; }
.picker .vnote { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

.errline { font-size: 12px; color: var(--danger); margin-top: 6px; line-height: 1.5; }

/* An opened entry: the whole of what was posted beside the files it went out with. */
.quote { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; max-width: 70ch; overflow-wrap: anywhere; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.detail h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.detail h4 small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-muted); font-size: 12px; }
.detail h4 .btn { letter-spacing: 0; text-transform: none; }
.detail h4 .copied { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--primary); font-size: 12px; margin-left: 8px; }
.detail .blk + .blk { margin-top: 16px; }
.detail .tiles { margin-top: 0; }

/* The row keeps its one line: the first line of the text, then the files as tiny thumbnails. Each
   thumbnail, and the count after them, opens the files over the page. On a touch screen they take
   a larger area than they draw, and a strip wider than a narrow Where column wraps inside it. */
.thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; }
.thumbs .t { width: 22px; height: 28px; border-radius: 5px; position: relative; border: 1px solid var(--border); flex: none; }
.thumbs .t.wide { width: 28px; height: 22px; }
.thumbs .t img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.thumbs a.t { display: block; cursor: pointer; }
.thumbs a.t:hover { border-color: var(--accent); }
.thumbs .more { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-left: 3px; }
.thumbs a.more { position: relative; text-decoration: none; }
.thumbs a.more:hover { color: var(--primary); text-decoration: underline; }
@media (pointer: coarse) {
  .thumbs a.t::after, .thumbs a.more::after { content: ""; position: absolute; inset: -8px -2px; }
  .thumbs a.more::after { inset: -8px -10px -8px -4px; }
}
.list .topic .said { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; font-style: italic; }
.list .topic .said::before { content: "\201C"; }
.list .topic .said::after { content: "\201D"; }

/* The log's columns take fixed widths and leave the rest to Where, so every column fits the page
   and long text ends inside its own column: a link on one line, the posted line with an ellipsis. */
.list.ot .topic { min-width: 0; overflow-wrap: anywhere; }
.list.ot .topic .said { max-width: 100%; }
/* The link is as wide as its label and never wider than its column, so a tap beside it is not a tap on it. */
.list.ot .otlink { display: inline-block; max-width: 100%; vertical-align: top; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
@media (min-width: 901px) {
  .list.ot { table-layout: fixed; }
  .list.ot th, .list.ot td { padding-left: 12px; padding-right: 12px; }
  .list.ot th:first-child, .list.ot td:first-child { padding-left: 16px; }
  .list.ot th:last-child, .list.ot td:last-child { padding-right: 16px; }
  .list.ot .ot-what { width: 132px; }
  .list.ot .ot-by { width: 108px; }
  .list.ot .ot-link { width: 240px; }
  .list.ot .ot-acts { width: 236px; }
  .list.ot .ot-when { width: 112px; }
  .list.ot .rowactions { gap: 4px 12px; }
  .list.ot .rowactions .btn { padding: 0; }
  .list.ot .st { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
  /* The follow-up note takes a line of its own under the kind, so it drops the dot that joins them. */
  .list.ot .stnote { flex: 1 0 100%; padding-left: 16px; }
  .list.ot .stnote .sep { display: none; }
  .list.ot .by { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .list.ot td.ot-when { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .list.ot .ot-link { width: 18%; }
  .list.ot .ot-acts { width: 156px; }
  /* The link column is narrower here than its longest label, so the label wraps rather than losing its end. */
  .list.ot .otlink { white-space: normal; overflow-wrap: anywhere; }
}

/* What a link from the daily report narrowed the log down to. */
.filterline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--text-muted); padding: 0 0 12px; }
.filterline b { color: var(--text); font-weight: 600; }

@media (max-width: 700px) { .detail { grid-template-columns: minmax(0, 1fr); } }

/* ---------- compose ---------- */
/* How the post measures up, one block per platform, in the order the contract lists them. A
   platform that threads shows the thread the splitter actually produced rather than a count. */
.meters { display: grid; gap: 10px; }
.meter { border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 10px 14px; }
.meter.bad { border-color: var(--danger); background: var(--danger-tint); }
.meter .mrow { display: flex; align-items: baseline; gap: 10px; }
.meter .mrow b { font-size: 13.5px; font-weight: 600; }
.meter .mrow small { color: var(--text-subtle); font-size: 12px; }
.meter .mrow .num { margin-left: auto; }
.meter .mrow + .mrow { margin-top: 4px; }
.meter .mrow .num.over { color: var(--danger); font-weight: 600; }
.thread { list-style: none; counter-reset: seg; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.thread li { counter-increment: seg; position: relative; padding: 8px 12px 8px 34px; background: var(--accent-tint); border-radius: var(--radius-md); font-size: 13px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.thread li::before { content: counter(seg); position: absolute; left: 10px; top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); font-weight: 700; }

/* Aiming the crop. Every value the box and the preview paint is a percentage of the original's
   natural size, so the browser does the scaling and a resize repaints nothing. */
.cropwrap { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 16px; align-items: start; margin-top: 12px; }
.cropstage { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--border); touch-action: none; }
.cropimg { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.cropbox { position: absolute; margin: 0; padding: 0; appearance: none; border: 2px solid var(--on-overlay); border-radius: 0; background: transparent; cursor: grab; touch-action: none; box-shadow: 0 0 0 9999px var(--overlay); }
.cropbox:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 9999px var(--overlay); outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.cropbox.dragging { cursor: grabbing; }
.croppreview { display: grid; gap: 8px; }
.croppreview .label { color: var(--text-subtle); }
/* The window is the shape of the rectangle; the picture inside it is the same file, oversized and
   pulled to where the rectangle points. Nothing is encoded to show it. */
.frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--border); }
.frame .shot { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.cropwrap .hint { grid-column: 1 / -1; margin-top: 0; }
.cropwrap .hint .over { color: var(--danger); }

@media (max-width: 700px) {
  .cropwrap { grid-template-columns: minmax(0, 1fr); }
  .croppreview { grid-template-columns: auto minmax(0, 140px); align-items: center; }
}

/* ---------- briefs calendar ---------- */
/* Two grids over the same fetched set: lanes by channel for a week, one entry per brief for a
   month. Both are 7 columns of equal width keyed by the local date, and neither hides work behind
   a "+N more": a busy day makes its cell taller. Modeled on the engine console's social queue
   (amanah_ops engine-console/public/styles.css, the .cpost and .lchip families). */
.calbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.calbar h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -.2px; white-space: nowrap; }
.calbar h2 span { font-size: 12px; font-weight: 500; color: var(--accent-text); margin-left: 6px; }
.calbar .seg { margin-left: auto; }
.calbar .seg button { padding: 6px 14px; font-size: 12.5px; }
/* Show archived drafts: an ordinary outline control, filled when on so the state reads without color. */
.calbar .archtoggle[aria-pressed="true"] { background: var(--surface-sunken); border-color: var(--text-subtle); color: var(--text); }

.mstep { display: inline-flex; gap: 2px; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); padding: 3px; flex: none; }
.mstep button { min-width: 30px; height: 26px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.mstep button.wide { font-size: 12.5px; font-weight: 600; }
.mstep button:hover { background: var(--accent-tint); color: var(--text); }
.mstep button:disabled { color: var(--text-subtle); cursor: default; background: transparent; }

/* What a dot means, spelled out, because the dot is the only thing carrying status in a cell. */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.legend i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; }

.calhint { padding: 12px 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.calnote { padding: 14px 18px 0; }
.calnote .alert { margin: 0; }

/* ---------- week, lanes by channel ---------- */
.cal-lanes { display: grid; grid-template-columns: 148px repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.lcorner { overflow: hidden; padding: 8px 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); border-bottom: 1px solid var(--border); }
.lhead { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lhead.today { background: var(--accent-tint); }
.wdow { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-subtle); }
.lhead.today .wdow { color: var(--accent-text); }
.wdate { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); }
.lhead.today .wdate { color: var(--text); font-weight: 700; }
.lname { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--border); min-width: 0; }
.lname .ltext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcount { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--text-subtle); }
.lcell { display: flex; flex-direction: column; gap: 4px; padding: 6px; min-height: 46px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lcell.today { background: var(--accent-tint); }
.lnone { font-size: 11px; color: var(--text-subtle); text-align: center; margin: auto; }

/* One post: the time is the label, the dot is the state. The whole chip opens the brief. */
.lchip { display: flex; align-items: center; gap: 5px; width: 100%; padding: 4px 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; font-size: 11.5px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; text-align: left; }
.lchip:hover { border-color: var(--accent); color: var(--text); }
.lchip.s-published { color: var(--success); }
.lchip.s-held, .lchip.s-failed { color: var(--danger); border-color: var(--danger); }
.lchip.s-approved { color: var(--accent-text); border-color: var(--accent); }
/* A platform a person posts by hand (API lane): it waits on them, not on the queue. */
.lchip.s-handoff { color: var(--accent-text); }
/* Withdrawn before it went out: finished, not failed, so muted rather than red. */
.lchip.s-withdrawn { color: var(--text-muted); }
/* Approved but not yet handed to the publisher: dated by a person, not by the queue. */
.dot.hollow { background: none; border: 1.5px solid var(--accent); }

/* ---------- month, one entry per brief ---------- */
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.cal-head span { padding: 8px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-subtle); border-bottom: 1px solid var(--border); }
.cal-head span + span { border-left: 1px solid var(--border); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cell { display: flex; flex-direction: column; gap: 4px; padding: 6px; min-height: 112px; border-bottom: 1px solid var(--border); }
.cal-cell + .cal-cell { border-left: 1px solid var(--border); }
.cal-cell:nth-child(7n + 1) { border-left: 0; }
.cal-cell.out { background: var(--bg); }
.cal-cell.today { background: var(--accent-tint); }
.cal-day { align-self: flex-start; padding: 1px 5px; border: 0; border-radius: var(--radius-md); background: none; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.cal-cell.out .cal-day { color: var(--text-subtle); }
.cal-cell.today .cal-day { color: var(--text); font-weight: 700; }
button.cal-day { color: var(--primary); cursor: pointer; }
button.cal-day:hover { background: var(--surface-sunken); color: var(--text); }

.cbrief { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 5px 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left; min-width: 0; }
.cbrief:hover { border-color: var(--accent); }
.cbrief-top { display: flex; align-items: center; gap: 5px; }
.cbrief-time { font-family: var(--font-mono); font-size: 10.5px; font-variant-numeric: tabular-nums; color: var(--text-subtle); }
.cbrief-label { font-size: 11.5px; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.cbrief:hover .cbrief-label { color: var(--text); }

/* ---------- the list under the calendar ---------- */
.listhead { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.listhead h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.listhead p { margin: 0; font-size: 12.5px; color: var(--text-muted); flex: 1 1 auto; }
.listhead .num { margin-left: auto; }
.nodate { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.nodate b { color: var(--text); font-weight: 600; }

/* ---------- the phone fallback ---------- */
/* Seven columns squeeze to about 50px each on a phone, which truncates every time and every
   label. Under the breakpoint the grids are hidden and this agenda takes over: one group per day
   that carries something, chronological, empty days dropped. Both are in the DOM always. */
.cal-agenda { display: none; }
.ag-day { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-subtle); }
.ag-day.today { color: var(--accent-text); }
.ag-day .muted { font-weight: 500; letter-spacing: 0; text-transform: none; }
.ag-items { display: grid; gap: 6px; padding: 0 16px 8px; }
.ag-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; min-width: 0; }
.ag-t { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-muted); flex: none; }
.ag-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1000px) {
  /* The channel mark is the house identifier for a platform, and it carries the full name as its
     title, so below this width the lane drops the written name rather than serving "Instag...". */
  .cal-lanes { grid-template-columns: 76px repeat(7, minmax(0, 1fr)); }
  .lcorner { padding: 8px 10px; font-size: 9.5px; letter-spacing: .03em; }
  .lname { padding: 10px; }
  .lname .ltext { display: none; }
  .lchip { padding: 4px; font-size: 11px; }
}

@media (max-width: 760px) {
  .calbar { gap: 10px; padding: 12px 16px; }
  .calbar .seg { margin-left: 0; }
  .legend { width: 100%; }
  .cal-lanes, .cal-head, .cal-grid { display: none; }
  .cal-agenda { display: block; border-top: 1px solid var(--border); }
  .calnote, .calhint, .listhead, .nodate { padding-left: 16px; padding-right: 16px; }
}

/* ---------- the month plan on the calendar (docs/month-plan.md, change 4) ---------- */
/* Ported from mockups/month-plan/proposed.css. A planned day has nothing made yet, so it reads
   quieter than a brief: its dot is a neutral ring, distinct from the accent ring that already means
   "Getting ready to post". Ready for review has its own filled dot, amber (--warning, state-labels.js),
   so a draft waiting for you never reads as Published. What kind of piece an entry is stays text,
   never a pill. */
.dot.planned { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-subtle); }
/* A planned day the allowance cannot cover yet: the same ring, in the Needs attention color (Phase 2). */
.dot.planned.waits { box-shadow: inset 0 0 0 1.5px var(--warning); }
/* A video day waiting on the customer's clip ("Film this", section 19): the amber ring with a filled
   center, so it reads apart from Waiting (the ring alone) and Ready for review (filled edge to edge). */
.dot.film { background: var(--warning); box-shadow: inset 0 0 0 1.5px var(--warning), inset 0 0 0 3px var(--surface); }
.cbrief.planned { background: transparent; }
.cbrief.planned .cbrief-label { color: var(--text-muted); }
.cbrief.planned:hover .cbrief-label { color: var(--text); }
.ag-row.planned { background: transparent; color: var(--text-muted); }
.cbrief-kind { font-size: 10.5px; color: var(--text-subtle); }
/* Week view: planned days as quiet chips in each lane, and a Blog lane for the articles. */
.lchip.planned { background: transparent; color: var(--text-muted); }
.pf.blog { background: var(--surface-raised); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* The plan line under the calendar bar. */
.planline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--text); }
.planline b { font-weight: 700; }
.planline .btn.link { margin-left: auto; }
/* "Your next 3 days": where Review them on the ready banner lands. One section a day, rows in time order. */
.rv-day { padding: 2px 18px 14px; border-bottom: 1px solid var(--border); }
.rv-day:last-of-type { border-bottom: 0; }
.rv-day h3 { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-subtle); }
.rv-day.today h3 { color: var(--accent-text); }
.rv-day h3 .muted { font-weight: 500; letter-spacing: 0; text-transform: none; }
.rv-items { display: grid; gap: 8px; }
.rv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto auto; align-items: center; gap: 8px 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: 13.5px; }
.rv-row.planned { background: transparent; color: var(--text-muted); }
.rv-row .cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rv-row .topic, .rv-what { min-width: 0; overflow-wrap: anywhere; }
.rv-row .topic { font-weight: 600; color: var(--text); }
.rv-row .topic a { color: inherit; text-decoration: none; }
.rv-row .topic a:hover { color: var(--primary); }
.rv-row .topic small, .rv-what small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.rv-what b { font-weight: 600; }
.rv-t { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.rv-empty { margin: 0; font-size: 13px; color: var(--text-muted); }
.rv-more { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }
@media (max-width: 760px) {
  .rv-day { padding: 2px 16px 12px; }
  /* The piece takes the whole first line; its status and time share the next, the button the last. */
  .rv-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rv-row > .cell, .rv-row > .rv-what { grid-column: 1 / -1; }
  .rv-row > .btn { justify-self: start; }
}

/* Drag to move a plan day (mouse and wide layout only): the entry dims while held, and a day it may
   go to takes an accent outline. The text color is untouched, so both themes keep their contrast. */
.lchip[draggable="true"], .cbrief[draggable="true"] { cursor: grab; }
.lchip.dragging, .cbrief.dragging { opacity: .5; }
.lcell.drop-ok, .cal-cell.drop-ok { background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); }

/* The planned-day panel: opens in a right-side drawer (dialog.drawer, as Connections settings do) from a
   planned entry. The panel keeps its own layout and wording; inside the drawer it loses the card frame. */
dialog.drawer.pd-drawer { width: min(480px, 100vw); max-width: 100vw; }
@media (max-width: 600px) { dialog.drawer.pd-drawer { width: 100vw; border-radius: 0; } }
.pd-body { flex: 1; min-height: 0; overflow-y: auto; }
.pd-drawer .planday { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.planday { padding: 18px 20px; max-width: 460px; }
.planday-head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.planday-kick { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }
.planday-head .btn { margin-left: auto; }
.planday h3 { font: 700 19px/1.25 var(--font-display); margin: 0 0 14px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.planday h3:focus { outline: none; }
.planfacts { margin: 0 0 16px; display: grid; gap: 12px; }
.planfacts dt { font-size: 12px; font-weight: 700; margin: 0 0 3px; }
.planfacts dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.planfacts dd small { display: block; margin-top: 3px; font-size: 12px; color: var(--text-subtle); overflow-wrap: anywhere; }
.planday .hint { margin: 10px 0 0; }
.filmprompt { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.filmprompt p { margin: 4px 0 0; }
.filmprompt ul { margin: 6px 0 0; padding-left: 18px; }
.filmprompt .hint { display: block; }
.plannote { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.planday .alert { margin: 16px 0 0; }
.planmove { margin: 16px 0 0; }
.planmove-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.planmove .input { padding: 8px 12px; font-size: 14px; }
.plantopic { margin: 0; }
.plantopics { display: grid; gap: 8px; margin: 0 0 14px; }
.plantopics label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; }
.plantopics label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.plantopics input { margin-top: 3px; accent-color: var(--accent); }
.plantopics b { display: block; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.plantopics small { display: block; font-size: 12px; color: var(--text-subtle); }
.plantopic-go { margin-top: 12px; }

@media (max-width: 760px) {
  .planline { padding: 12px 16px; }
  .planline .btn.link { margin-left: 0; }
  .planday { max-width: none; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  /* The banner's actions wrap under its text instead of squeezing it into a column. */
  .obbanner .alert { flex-wrap: wrap; }
  .obbanner .alert > div { flex: 1 1 calc(100% - 40px); }
}

/* ---------- workspaces: the top bar switcher, Profile and adding a business ---------- */
/* One login, several workspaces. Adapted from the mockup kit (.wsmenu, .wsitem, .wsnew, .oback). */
.ws { position: relative; flex: none; }
/* Cards whose body sits above a .wsfoot strip: the body pads itself, as .card.pad does. */
.wscard > .pad, .wsform > .pad { padding: 18px 20px; }
.wsswitch { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; min-height: 36px; padding: 4px 10px 4px 6px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.wsswitch:hover, .wsswitch.open { border-color: var(--border-strong); background: var(--bg); }
.wsswitch .wsname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsswitch .chev { width: 7px; height: 7px; flex: none; margin: -3px 2px 0 2px; border-right: 1.6px solid var(--text-muted); border-bottom: 1.6px solid var(--text-muted); transform: rotate(45deg); transition: transform .15s ease; }
.wsswitch.open .chev { transform: rotate(-135deg); margin-top: 3px; }
.wsmark { display: inline-grid; place-items: center; flex: none; border-radius: 7px; color: var(--text-inverse); font-weight: 700; letter-spacing: -.3px; line-height: 1; }
/* A workspace's own logo on the ground it was drawn for: a light tile for its logo, a dark tile for its
   reversed logo. The tile is the logo's ground, not the app's, so it is the same in both themes; the
   ring keeps a light tile visible on a light header. */
.wsmark.has-logo { padding: var(--space-1); overflow: hidden; background: var(--paper-0); box-shadow: inset 0 0 0 1px var(--border); }
.wsmark.on-dark { background: var(--graphite-900); }
.wsmark.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wsfixed { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; min-height: 36px; font-size: 13px; font-weight: 700; }
.wsfixed .wsname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A support visit (public/support-banner.js): one strip under the header on every page, saying whose
   workspace this is, when the visit ends and what stays read only, with Exit at its end. */
.supportbar { position: sticky; top: 56px; z-index: 9; display: flex; align-items: center; gap: 10px; padding: 8px 24px; background: var(--accent-tint); border-bottom: 1px solid var(--border); color: var(--text); font-size: 13.5px; line-height: 1.4; }
.supportbar .stext { flex: 1; min-width: 0; }
.supportbar .btn { flex: none; }
@media (max-width: 900px) { .supportbar { padding: 8px 16px; } }
.wsmenu { position: absolute; top: calc(100% + 8px); left: 0; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); padding: 6px; z-index: 30; }
.wsmenu[hidden], .wsscrim[hidden] { display: none; }
.wshead { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-subtle); padding: 8px 10px 6px; }
.wsitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-md); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.wsitem:hover { background: var(--bg); }
.wsitem.cur { background: var(--accent-tint); }
.wsitem .t { flex: 1; min-width: 0; }
.wsitem .t b { display: block; font-size: 13.5px; font-weight: 600; }
.wsitem .t span { display: block; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsitem .ck { width: 18px; flex: none; display: grid; place-items: center; }
.wsitem .ck.on::after, .ckmark::after { content: ''; display: block; width: 5px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); margin-top: -3px; }
.wsplus { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-muted); font-size: 17px; font-weight: 600; line-height: 1; }
.wsdiv { height: 1px; background: var(--border); margin: 6px 4px; }
.wsscrim { display: none; }
/* Phone: the same menu as a bottom sheet over the page, with a dim layer that closes it. */
@media (max-width: 600px) {
  .wsscrim { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 29; }
  .wsmenu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; padding: 10px 10px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-3); }
  .wsmenu::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 2px auto 6px; }
  .wsitem { min-height: 52px; }
}
/* The top bar is tight below 600px: the name is kept for screen readers only, and the sheet names
   every workspace in full. A support visit's fixed name gives way the same way, since its strip
   names the workspace in full. */
@media (max-width: 600px) { .wsswitch .wsname, .wsfixed .wsname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* With the switcher in the top bar the full-width header has less room; the address gives way
   first, and the avatar stays as the way to Profile. */
@media (max-width: 1400px) { .who .email { display: none; } }
/* Between the compact layout and a laptop width the bar is still one row, so tighten it rather than clip Sign out. */
@media (min-width: 901px) and (max-width: 1100px) {
  .top { gap: 10px; padding: 0 16px; }
  .nav { gap: 8px; font-size: 12.5px; }
}

/* The header account is the way to Profile. */
.wholink { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: var(--radius-full); }
.wholink:hover .email { color: var(--primary); }
.dprofile { font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; margin-top: 2px; }

/* Profile */
.profile { max-width: 760px; }
.aboutyou { display: flex; gap: 18px; align-items: flex-start; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.aboutyou .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; flex: 1; min-width: 0; }
.aboutyou .facts .label { margin-bottom: 2px; }
.aboutyou .facts .val { font-size: 14px; overflow-wrap: anywhere; }
.wscard .section { margin-bottom: 4px; }
.wscount { margin: 0 0 12px; font-size: 13px; }
.wsrows { list-style: none; margin: 0; padding: 0; }
.wsrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.wsrow:first-child { border-top: 0; }
.wsrow .t { flex: 1; min-width: 0; }
.wsrow .t b { display: block; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
/* Role and domain wrap rather than cut off: a long domain is the part people check. */
.wsrow .t .line { display: block; font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.wscur { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.ckmark { width: 12px; display: inline-grid; place-items: center; }
.wsfoot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.wsfoot .spacer { flex: 1; }
.wsmode { margin: -4px 0 16px; }
.gildhead { display: flex; align-items: center; gap: 14px; margin: 0; }
.gildhead h2 { margin: 0 0 4px; }
.gildhead p { margin: 0; font-size: 13px; }
.gildcard .setradios { margin-top: 12px; }
.fine { font-size: 12px; color: var(--text-muted); margin: 0; }

/* Adding a business */
.wsnewpage { max-width: 640px; margin: 0 auto; }
.oback { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; margin: 0 0 18px; }
.oback:hover { color: var(--primary); }
.oback .back { width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
.wsnewpage h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.2; }
.wsnewpage .lede { font-size: 15px; color: var(--text); margin: 0 0 22px; line-height: 1.55; }
.wsnew { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); font-size: 13.5px; color: var(--text); line-height: 1.55; }
.wsnew b { color: var(--text); font-weight: 600; }
.wsnewicon { width: 16px; height: 16px; flex: none; margin-top: 3px; border-radius: 4px; border: 1.6px solid var(--text-muted); box-shadow: 3px -3px 0 -1.6px var(--surface), 3px -3px 0 0 var(--text-muted); }
.wsform .copied { margin: -6px 0 0; }
.wsform .formerror:not(:empty) { margin-top: 16px; }
.wsform .formerror .alert { margin: 0; }
/* First sign-in (app.js showOnboarding, views/workspace-new.js renderOnboarding): there is no
   workspace yet, so the header keeps only the wordmark, the address and the theme switcher, and the
   page carries a flat step line and the way out for an invited person or the wrong account. */
.app.onboarding .top .ws, .app.onboarding .top .nav, .app.onboarding .top .worker,
.app.onboarding .top .signout, .app.onboarding .top .menu { display: none; }
.obstep { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 12px; }
.obstep .bars { display: inline-flex; gap: 4px; }
.obstep .bars i { width: 28px; height: 3px; border-radius: 2px; background: var(--border-strong); }
.obstep .bars i.on { background: var(--accent); }
.obinvite { margin: 18px 0 0; font-size: 13px; color: var(--text-muted); }
.obinvite a { font-weight: 600; }
/* Settings, Business details: the nudge above the workspace name while it is still the sign-up one. */
.wsnudge { margin: 0 0 16px; }
.wsnudge .btn { margin-top: 8px; }
/* Scan first: the scan prompt above the briefs and the scan step a new workspace lands on. Layout
   only; every color comes from the card, alert and button rules it reuses. */
.scanhero-slot:not(:empty) { margin-bottom: 16px; }
.scanhero .setcb > p:first-child { margin-top: 0; }
.scanstep .fine { margin-top: 14px; }
@media (max-width: 900px) {
  .wsnewpage h1 { font-size: 22px; }
  /* Onboarding has no menu to open, so the theme switcher stays in the header on phones. */
  .app.onboarding .top .themebtn { display: inline-flex; }
  .wsfoot .btn.primary { flex: 1 1 100%; }
}

/* Onboarding: the scan's progress (scr-scan) and the review step (scr-review). Flat text with a
   leading mark, no chips. */
.scangrid, .rvgrid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; margin: 0 0 16px; }
.scangrid .steps, .rvsteps { list-style: none; margin: 0; padding: 0; }
.foundlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.found { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.found span { color: var(--text-muted); font-size: 13px; }
.found.off b, .found.off span { color: var(--text-subtle); }
.found.now span { color: var(--primary); }
.rvsteps .step a { color: inherit; text-decoration: none; display: block; }
.rvsteps .step.cur b { color: var(--text); }
.rvcard .section { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rvstate { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.rvrows { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.rvrow { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; align-items: baseline; font-size: 14px; }
.rvrow .val { min-width: 0; overflow-wrap: anywhere; }
.rvlistrow { grid-template-columns: 160px 1fr auto auto; }
.rvitemactions { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rvlogo { display: inline-flex; align-items: center; gap: 12px; }
/* The frame takes the logo's shape: a fixed height, a width that follows the image's own aspect
   ratio (square icon, wide wordmark) up to a cap. The img's height resolves against that definite
   height, which a percentage max-height inside a grid cell did not, so large images spilled out. */
.rvlogo .vis { display: flex; align-items: center; justify-content: center; height: 56px; min-width: 56px; max-width: 152px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); padding: 6px; flex: none; overflow: hidden; }
.rvlogo .vis img { display: block; height: 100%; width: auto; max-width: 138px; object-fit: contain; }
.rvlogo .t { display: flex; flex-direction: column; font-size: 14px; }
.rvlogo .t small { color: var(--text-muted); font-size: 12.5px; }
.rvlogo .t .rvitemactions { margin-top: 6px; }
.rvrow.rvlogorow { align-items: center; }
/* The logo, and under it the line offering back the logo a scan replaced. The no-logo line stays
   plain text, so its link runs on with the sentence. */
.rvlogorow .val:not(.rvnone) { display: flex; flex-direction: column; align-items: flex-start; }
.rvearlier { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.rvearlier > span { white-space: nowrap; }
.rvearlier img { display: block; height: 24px; width: auto; max-width: 64px; object-fit: contain; }
.rvnone { color: var(--text-muted); }
.rvadd { margin: 2px 0 0; }
.rvstat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rvstat.ok { color: var(--text); }
.rvstat.sug { color: var(--warning); }
.rvstat.sug i { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); display: inline-block; }
.rvswatches { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.rvswatch { display: inline-flex; align-items: center; gap: 6px; }
.rvswatch .sw { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); display: inline-block; }
.rvactions { display: flex; flex-wrap: wrap; gap: 10px; }
.scanagain { margin-top: 16px; }
.scanagain .setcb > p.muted { margin: 12px 0 0; }
/* The scan coverage message (scan-coverage-card.js): how much of the site the scan read. A quiet line for a
   full read, a tinted panel when something needs the person's attention. Status is a dot plus text. */
.cov-wrap { margin: 0 0 16px; }
.cov-title { margin: 0 0 10px; font-size: 20px; }
.cov { margin: 14px 0 0; }
.cov-wrap .cov { margin-top: 0; }
.cov-head { display: flex; align-items: center; gap: 10px; }
.cov-status { font-weight: 600; font-size: 15px; color: var(--text); }
.cov p { margin: 6px 0 0 18px; color: var(--text-muted); font-size: 14.5px; max-width: 62ch; }
.cov .cov-actions { margin: 12px 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.cov .btn.link { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cov .btn.link:hover:not([disabled]) { text-decoration-thickness: 2px; }
.cov .hostnote { margin: 12px 0 0 18px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); font-size: 13.5px; color: var(--text-muted); max-width: 62ch; }
.cov .hostnote[hidden] { display: none; }
.cov .hostnote b { color: var(--text); }
.cov .hostnote .hn-text { margin-top: 6px; }
.cov .hostnote .mono { color: var(--text); font-family: var(--font-mono); font-size: 13px; }
.cov .hostnote .hn-actions { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.cov .hostnote .hn-state { font-size: 13px; color: var(--text-muted); }
.cov .cov-pages { margin: 14px 0 0 18px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); max-width: 62ch; }
.cov .cov-pages[hidden] { display: none; }
.cov .addpages .field { margin: 0 0 12px; }
.cov .addpages textarea.input { width: 100%; min-height: 96px; resize: vertical; font-family: var(--font-mono); font-size: 13.5px; }
.cov .addpages .alert { margin: 0 0 12px; }
.cov .addpages .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cov .addpages .actions .note { font-size: 13px; color: var(--text-muted); flex: 1 1 100%; }
.cov.panel { padding: 16px 18px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); }
.cov.panel p { color: var(--text); }
.cov.panel .cov-status { font-size: 16px; }
.cov.panel.s-warn { background: var(--warning-tint); border-color: color-mix(in srgb, var(--warning) 55%, var(--border)); }
.cov.panel.s-danger { background: var(--danger-tint); border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }
.cov.panel.strong { border-width: 2px; border-color: var(--warning); }
@media (max-width: 560px) { .cov p, .cov .cov-actions, .cov .hostnote, .cov .cov-pages { margin-left: 0; } }
.rvform .rvitem { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; margin: 0 0 12px; }
.rvform textarea, .rvform input[type="text"] { width: 100%; }
/* The brand editor's logo block: the logo shown, then the upload's status and its buttons. */
.rvedlogo { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 0 0 16px; }
.rvedlogo .rvlogo { display: flex; flex-wrap: wrap; }
.rvedlogo .rvlogo .t { gap: 4px; flex: 1 1 200px; min-width: 0; }
.rvedlogo .lu-err { margin-top: 0; }
.rvedlogo-btns { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; }
.rvedlogo-btns a, .rvfoot a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.rvfoot { font-size: 13px; margin: 0 0 14px; }
@media (max-width: 900px) {
  .scangrid, .rvgrid { grid-template-columns: 1fr; }
  .rvrow, .rvlistrow { grid-template-columns: 1fr; gap: 4px; }
}

/* A rescan that differs from an accepted or edited answer, offered back as a choice (review step and
   the Settings banner). A warning edge marks it as waiting on the person; nothing changes until
   they pick, so the panel is flat text and two plain options, never a chip. */
.rvalt { grid-column: 1 / -1; margin: 2px 0 6px; padding: 14px 16px; border: 1.5px solid var(--border-strong); border-left: 3px solid var(--warning); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.rvalt h3 { margin: 0 0 3px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rvalt h3 .ic { width: 15px; height: 15px; color: var(--warning); }
.rvalt > p { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); max-width: 62ch; }
.rvalt-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 12px; }
.rvalt-opt { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); min-width: 0; }
.rvalt-opt .who { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 6px; }
.rvalt-opt .v { font-size: 14px; overflow-wrap: anywhere; }
.rvalt-opt small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.rvalt-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rvalt-acts .note { font-size: 12.5px; color: var(--text-muted); }
.rvsum { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--warning); white-space: nowrap; }
.rvsum i { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); display: inline-block; }
.rvdone { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 6px; font-size: 13px; color: var(--text-muted); grid-column: 1 / -1; }
.rvdone .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--success); }
.rescanban { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--warning); border-radius: var(--radius-lg); background: var(--surface); font-size: 13.5px; }
.rescanban .ic { width: 16px; height: 16px; color: var(--warning); flex: none; }
.rescanban > span:nth-child(2) { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .rvalt-pair { grid-template-columns: minmax(0, 1fr); }
  .rvalt-acts .btn { flex: 1 1 auto; justify-content: center; }
  .rescanban { flex-wrap: wrap; }
}

/* ---------------------------------------------------------- settings area -- */
/* The settings shell (public/settings-nav.js) and the business profile pages (views/settings-*.js).
   Icons are CSS masks over currentColor, one custom property per icon, so they take the text color
   and need no SVG in the DOM. Names carry a set prefix because .row, .tile and .lead already mean
   other things in this sheet. */
.ic { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; vertical-align: -3px; }
.ic-building { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l8-2v18M12 8h8v13M2 21h20M8 8h.01M8 12h.01M8 16h.01M16 12h.01M16 16h.01'/%3E%3C/svg%3E"); }
.ic-palette { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1.1.9-2 2-2h2.4A4.6 4.6 0 0 0 21 9.8C21 6 17 3 12 3zM7.5 11.5h.01M10 7.5h.01M14.5 7.5h.01'/%3E%3C/svg%3E"); }
.ic-voice { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3zM5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.ic-target { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM12 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E"); }
.ic-box { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4zM3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E"); }
.ic-hash { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9h14M5 15h14M10 3 8 21M16 3l-2 18'/%3E%3C/svg%3E"); }
.ic-check { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.ic-checkc { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.ic-alert { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20zM12 9v5M12 17h.01'/%3E%3C/svg%3E"); }
.ic-info { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.ic-plus { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ic-trash { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 14h10l1-14'/%3E%3C/svg%3E"); }
.ic-chevr { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ic-globe { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.ic-upload { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M7 8l5-5 5 5M4 21h16'/%3E%3C/svg%3E"); }
.ic-edit { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16zM14 6l4 4'/%3E%3C/svg%3E"); }
.ic-users { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM2 21a7 7 0 0 1 14 0M16 3.5a4 4 0 0 1 0 7M22 21a7 7 0 0 0-4-6.3'/%3E%3C/svg%3E"); }
.ic-user { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.ic-link { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.ic-clock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7v5l3 2'/%3E%3C/svg%3E"); }
.ic-pin { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11zM12 7.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E"); }
.ic-star { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E"); }
.ic-spark { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8zM19 3v4M17 5h4'/%3E%3C/svg%3E"); }
.ic-sliders { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M14 4v4M8 10v4M16 16v4'/%3E%3C/svg%3E"); }
.ic-up { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E"); }
.ic-down { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.ic-x { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.ic-image { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3zM3 16l5-5 4 4 3-3 6 6M15.5 8.5h.01'/%3E%3C/svg%3E"); }
.ic-card { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.ic-fit { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5M9 9h6v6H9z'/%3E%3C/svg%3E"); }

.setshell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.setmain { min-width: 0; max-width: 820px; }
.snav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.snav h2 { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); margin: 4px 10px 10px; }
.snav .g { font-size: 11px; font-weight: 700; color: var(--text-subtle); margin: 14px 10px 4px; }
.snav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.snav a .ic { color: var(--text-subtle); }
.snav a:hover { background: var(--surface-sunken); }
.snav a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.snav a.on .ic { color: var(--accent-text); }
.snav a span:not(.ic):not(.sdot):not(.vh) { flex: 1; min-width: 0; }
.sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-text); flex: none; }

.setcard { overflow: hidden; }
.setcard:has(.tz-pop:not([hidden])) { overflow: visible; }
.setcard:has(.fp-pop:not([hidden])) { overflow: visible; }
.setcard + .setcard, .setmain .alert + .setcard, .setbanner + .setcard, .pg-products + .setcard { margin-top: 16px; }
/* The card a Page or account choice just added (views/settings-connections.js). It is focused on arrival:
   the ring shows while it keeps focus, and with motion allowed it fades out on its own instead. */
.setcard.cx-arrived:focus { outline: none; box-shadow: 0 0 0 var(--focus-width) var(--focus); }
@media (prefers-reduced-motion: no-preference) {
  .setcard.cx-arrived { animation: cx-arrived 2.4s ease-out forwards; }
}
@keyframes cx-arrived { 0%, 45% { box-shadow: 0 0 0 var(--focus-width) var(--focus); } 100% { box-shadow: 0 0 0 var(--focus-width) transparent; } }
.setch { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 0; }
.setch > div:first-child { flex: 1; min-width: 0; }
.setch > .t { flex: 1; min-width: 0; }
.setch .st { font-size: 13px; margin-top: 2px; flex: none; }
.setch .act { flex: none; }
.setch .cx-lead { margin-right: 0; }
.setch h2 { font-size: 15.5px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.setch p { font-size: 13px; color: var(--text-muted); margin: 3px 0 0; }
.setch .btn .ic, .head .btn .ic { margin-right: 6px; width: 14px; height: 14px; }
.setcb { padding: 16px 20px 20px; }
.setcb > .field:last-child { margin-bottom: 0; }
.setgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.setgrid .wide { grid-column: 1 / -1; }
.setsub { font-size: 12px; font-weight: 700; color: var(--text-muted); margin: 18px 0 6px; }
.setiwrap { position: relative; }
.setiwrap > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; }
.setiwrap > .input { padding-left: 40px; }
.setflag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--warning); white-space: nowrap; }
.setflag .ic { width: 13px; height: 13px; }
.label .setflag { font-size: 11.5px; }
.setnote { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin: 0 0 16px; border-radius: var(--radius-lg); background: var(--warning-tint); border: 1px solid var(--warning); color: var(--warning); font-size: 13px; }
.setnote > div { flex: 1; min-width: 0; }
.setprov { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.setprov .ic { width: 13px; height: 13px; }
.setfine { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.setfine .ic { width: 13px; height: 13px; }
/* Why an immediate answer to a suggestion did not save (views/profile-kit.js answerError): under the row it
   belongs to, in line with the row's text, or across the card for Add all. */
.setrowerr { display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; margin: 0 0 10px; }
.setrowerr .ic { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.setrowerr > span { min-width: 0; overflow-wrap: anywhere; }
.setrows > .setrowerr { margin: -2px 0 10px 46px; }

/* The lane label on a topic row (views/topic-library.js): what a topic may be used for. Social is
   vermilion and articles is graphite, a highlight on the label only. The second selector outranks
   .setrow .t span, which would otherwise gray both. */
.lane { display: inline-block; white-space: nowrap; font: 600 12px/1.5 var(--font-sans); padding: 0 7px; border-radius: 4px; }
.lane.social, .setrow .t .lane.social { background: var(--lane-social-bg); color: var(--lane-social-fg); }
.lane.articles, .setrow .t .lane.articles { background: var(--lane-article-bg); color: var(--lane-article-fg); }
.lanes { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; vertical-align: baseline; }
.setrow .t .setmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
button.lanes { background: none; border: 0; padding: 2px; margin: -2px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; }
button.lanes:hover { background: color-mix(in srgb, var(--glass-tint) 9%, transparent); }
button.lanes:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
button.lanes .ic { width: 12px; height: 12px; margin-left: 2px; color: var(--text-muted); vertical-align: -1px; transform: rotate(90deg); }
/* The picker under a row: where a topic can be used, and the line that says a change saved. */
.lanepick { margin: -4px 0 6px 46px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.lanepick fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lanepick legend { font-size: 12.5px; font-weight: 600; padding: 0; }
.lanepick .opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.lanepick label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; cursor: pointer; font-size: 13px; }
.lanepick label:has(input:checked) { border-color: var(--primary); background: var(--accent-tint); }
.lanepick input { accent-color: var(--primary); }
.lanepick .hint { margin: 0; font-size: 12px; color: var(--text-muted); }
.lanesaved { display: flex; align-items: center; gap: 6px; margin: 2px 0 8px 46px; font-size: 12.5px; color: var(--success); }
.lanesaved .ic { width: 14px; height: 14px; flex: none; }
.lanesaved.madeactive { align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.lanesaved.madeactive .ic { margin-top: 2px; }
.setempty { margin: 0; padding: 6px 0; font-size: 13.5px; }
.setempty.big { text-align: center; padding: 40px 28px; }
.setempty.big h2 { margin: 0 0 6px; font-size: 18px; }
.setempty.big p { max-width: 440px; margin: 0 auto 20px; }
.setbadge { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-sunken); color: var(--text-muted); display: grid; place-items: center; margin: 0 auto 16px; }
.setbadge .ic { width: 24px; height: 24px; }

.setrows { display: flex; flex-direction: column; }
.setrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; min-width: 0; }
.setrows > .setrow:first-child, .setrows > .seteditor:first-child { border-top: 0; }
.setrow .lead { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--primary); display: grid; place-items: center; flex: none; overflow: hidden; }
.setrow .lead.done { background: var(--primary); color: var(--on-primary); }
/* Numbers & testimonials (views/settings-proof.js): the inline add and edit form. */
.proofedit { display: grid; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.proofedit .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.setrow .lead.img img { width: 100%; height: 100%; object-fit: cover; }
.setrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.setrow .t b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.setrow .t span { font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.setrow .t .one { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-subtle); }
.setrow .meta { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.setrow.dim .t b { color: var(--text-muted); font-weight: 500; }
.setrow.link:hover .t b { color: var(--primary); }
.setrow .go { color: var(--text-subtle); }
.setmono { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-inverse); color: var(--text-inverse); display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; }
.setrank { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-sunken); color: var(--text-muted); display: grid; place-items: center; flex: none; font-weight: 700; font-family: var(--font-mono); font-size: 12.5px; }
.setibtn { width: 32px; height: 32px; border-radius: var(--radius-md); border: 0; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.setibtn:hover:not([disabled]) { background: var(--surface-sunken); color: var(--text); }
.setibtn[disabled] { opacity: .35; cursor: default; }
.setdec { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seteditor { padding: 14px 16px; margin: 6px 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.seteditor .field { margin-bottom: 14px; }
.seteditor .input { padding: 10px 14px; font-size: 14px; }

.settiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.settile { border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); min-width: 0; }
.settile.on { border-color: var(--accent); }
.settile .vis { display: grid; place-items: center; aspect-ratio: 2 / 1; background: var(--bg); padding: 12px; width: 100%; border: 0; font: inherit; font-size: 12.5px; }
.settile .vis.dark { background: var(--surface-inverse); color: var(--text-inverse); }
.settile .vis.dark .muted { color: var(--graphite-300); }
.settile .vis img { max-height: 100%; max-width: 100%; object-fit: contain; }
.settile .vis.add { background: var(--surface); color: var(--text-subtle); cursor: pointer; }
.settile .vis.add .ic { width: 22px; height: 22px; }
.settile .vis.add[disabled] { cursor: default; opacity: .5; }
.settile .cap { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.settile .cap > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.settile .cap small { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.settiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settile.drop { border-style: dashed; border-color: var(--accent); }
.settile .vis .lu-up { display: grid; gap: 6px; justify-items: center; text-align: center; }
.settile .vis.dark .lu-up .btn { color: var(--text-inverse); border-color: color-mix(in srgb, var(--text-inverse) 22%, transparent); background: color-mix(in srgb, var(--text-inverse) 7%, transparent); }
/* Logo upload (public/logo-upload.js): the Branding logo card and the review's Name and logo card. */
.lu-note { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.lu-stat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--success); }
.lu-stat .ic { width: 15px; height: 15px; }
p.lu-done { margin: 12px 0 0; }
.lu-err { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; }
.lu-err .ic { width: 15px; height: 15px; margin-top: 1px; }
.lu-stat.busy { color: inherit; }
.lu-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); flex: none; }
@media (prefers-reduced-motion: no-preference) { .lu-spin { animation: pc-spin .9s linear infinite; } }

.sethexes { display: grid; gap: 14px; }
.sethex { display: flex; align-items: center; gap: 14px; }
.sethex .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sethex label { font-size: 13.5px; font-weight: 600; }
.sethex .t span { font-size: 12px; color: var(--text-muted); }
.sethex .input { width: 132px; flex: none; padding: 10px 12px; }
.sethex.has-error .input { border-color: var(--danger); }
.sw { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); flex: none; display: inline-block; }
/* The Branding color picker: the native control, drawn as the same rounded square as .sw. */
.sw-pick { appearance: none; -webkit-appearance: none; padding: 0; background: none; cursor: pointer; overflow: hidden; }
.sw-pick::-webkit-color-swatch-wrapper { padding: 0; }
.sw-pick::-webkit-color-swatch { border: 0; border-radius: 9px; }
.sw-pick::-moz-color-swatch { border: 0; border-radius: 9px; }
.sw-pick.empty { border-style: dashed; }
.sw-pick.empty::-webkit-color-swatch { opacity: 0; }
.sw-pick.empty::-moz-color-swatch { opacity: 0; }
.sw-pick:focus-visible { border-radius: 10px; }
.sw-pick:disabled { cursor: default; }
.sw.sm { width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.setcontrast { display: flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--success); }
.setcontrast.warn { color: var(--warning); }
.setcontrast.bad { color: var(--danger); }
.setadjust { margin: 14px 0 0; }
.setadjust ul { margin: 6px 0; padding-left: 18px; white-space: normal; }
.setadjust li { margin: 3px 0; }
.setadjust .fine { color: inherit; opacity: .85; }
.setfont { margin-top: 10px; color: var(--text); overflow-wrap: anywhere; }
.setfont.head { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.setfont.body { font-size: 15px; }
.setfont.acc { font-size: 22px; }
.setfont.fnone { font-size: 13px; font-weight: 600; color: var(--text-muted); }
/* The Fonts card (design B): pairings drawn in their own faces, then Customize for the three lists.
   A face with one weight is drawn as it is, never as a bold the browser made up. */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 150px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface-sunken); border: 1.5px solid var(--border); color: var(--text); cursor: pointer; text-align: left; font: inherit; font-synthesis-weight: none; }
.pcard:hover:not([disabled]) { border-color: var(--border-strong); }
.pcard.sel, .pcard.sel:hover { border-color: var(--accent); }
.pcard[disabled] { cursor: default; }
.pcard .t { display: flex; align-items: center; gap: 6px; font: 400 11.5px/1.3 var(--font-sans); color: var(--text-subtle); }
.pcard .hl { font-size: 26px; line-height: 1.08; overflow-wrap: anywhere; }
.pcard .bd { font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.pcard .nm { margin-top: auto; font: 500 11px/1.3 var(--font-mono); color: var(--text-subtle); }
.pcard .txn, .pmorebtn { display: none; }
.pmorebtn { margin-top: 10px; }
.fcustom { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.fcustom.row { display: flex; align-items: center; gap: 12px; }
.fcustom.row .fine { flex: 1; min-width: 0; }
.fcustom .row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fcustom .row h3 { flex: 1; margin: 0; font-size: 13px; font-weight: 700; }
.fcustom > .fine { margin-top: 2px; }
.fcustom .btn .ic { width: 14px; height: 14px; }
.facc { font-size: 16px; color: var(--text); }
.setgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setgrid.three .field { position: relative; }
.setgrid.three .field:has(.fp-pop:not([hidden])) { z-index: 6; }
.fdetect { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--warning-tint); border: 1px solid var(--warning); font-size: 13px; color: var(--text); }
.fdetect .dot { margin-top: 6px; }
.fdetect > div { flex: 1; min-width: 0; }
.fdetect .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.fpwrap { position: relative; }
.fsel { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 10px 14px 10px 16px; background: var(--surface-sunken); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); color: var(--text); cursor: pointer; text-align: left; font: inherit; font-synthesis-weight: none; }
.fsel[disabled] { cursor: default; opacity: .7; }
.fsel .nm { flex: 1; min-width: 0; font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsel .nm.none { font-family: var(--font-sans); font-size: 15px; color: var(--text-muted); }
.fsel .kind { font-size: 11.5px; color: var(--text-subtle); white-space: nowrap; }
.fsel .ic { width: 16px; height: 16px; color: var(--text-subtle); flex: none; }
.fpwrap.open .fsel { border-color: var(--text); outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.fp-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; max-height: 420px; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.fp-pop[hidden] { display: none; }
.fp-search { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--border); }
.fp-search .ic { width: 15px; height: 15px; color: var(--text-subtle); flex: none; }
.fp-search .input { flex: 1; min-width: 0; min-height: 40px; background: transparent; border: 0; box-shadow: none; padding: 0; font-size: 14px; }
.fp-search .input:focus { outline: none; }
.fp-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 8px; }
.fp-list .wshead { position: sticky; top: 0; background: var(--surface-raised); z-index: 1; padding: 12px 14px 6px; }
.fp-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px; cursor: pointer; color: var(--text); }
.fp-opt:hover { background: color-mix(in srgb, var(--glass-tint) 7%, transparent); }
.fp-opt.act { box-shadow: inset 0 0 0 2px var(--focus); }
.fp-opt .on { flex: 1; min-width: 0; font-size: 18px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-opt.plain .on { font-family: var(--font-sans); font-size: 14px; color: var(--text-muted); }
.fp-opt .ck { width: 15px; height: 15px; color: var(--accent-text); visibility: hidden; flex: none; }
.fp-opt.sel .ck { visibility: visible; }
.fp-empty { padding: 14px; font-size: 13px; color: var(--text-muted); }
.fp-foot { border-top: 1px solid var(--border); padding: 9px 14px; font-size: 11.5px; color: var(--text-subtle); }
@media (max-width: 900px) {
  .setgrid.three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 12px; min-height: 132px; }
  .pcard .hl { font-size: 21px; }
  .pcard .bd { font-size: 12px; }
  .pcard .txw { display: none; }
  .pcard .txn { display: inline; }
  .pgrid:not(.all) .pmore { display: none; }
  .pmorebtn { display: block; }
  .fp-pop { max-height: 360px; }
}

.setphotos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.setphoto { margin: 0; position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); }
.setphoto img { width: 100%; height: 100%; object-fit: cover; }
.setphoto img.whole { object-fit: contain; padding: 6%; }
.setphoto .ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text-subtle); }
.setphoto figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 16px 4px 4px 8px; background: linear-gradient(transparent, var(--overlay)); color: var(--on-overlay); font-size: 11px; font-weight: 600; }
.setphoto figcaption > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setphoto .setsrc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 500; opacity: .85; }
.setphoto figcaption .setibtn { width: 24px; height: 24px; color: var(--on-overlay); }
.setphoto.sug { outline: 2px dashed var(--accent); outline-offset: -2px; }
.setphoto.sug figcaption { flex-wrap: wrap; }
.setphoto.sug .btn { padding: 2px 8px; font-size: 11px; }
.setphoto.more { display: grid; place-content: center; justify-items: center; gap: 2px; width: 100%; border: 0; padding: 0; font: inherit; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.setphoto.more b { font-size: 16px; color: var(--text); }
.setphoto.more:hover { background: var(--surface-raised); color: var(--primary); }
.setphoto.more:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.setphoto .ph.linked, .setphoto .ph .lu-stat { place-content: center; gap: 6px; padding: 8px 8px 30px; text-align: center; font-size: 11px; font-weight: 600; }
.setphoto .ph.linked > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.setphoto .ph .ic { width: 13px; height: 13px; flex: none; }
.setphoto .ph .btn { padding: 2px 8px; font-size: 11px; }
.setphoto.sug .ph.linked { place-content: start center; padding-top: 8px; white-space: nowrap; }
.lu-err .lu-line { display: block; }
.setfound { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.setfoundhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.setfoundhead h4 { margin: 0; font-size: 14px; }
.setphotos.drop, .setempty.drop { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: var(--radius-md); }
.setempty.drop { color: var(--accent); font-weight: 600; }
.setradios { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.setradio { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); margin-top: 8px; cursor: pointer; position: relative; }
.setradio.on { border-color: var(--accent); background: var(--accent-tint); }
.setradio i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); flex: none; margin-top: 1px; position: relative; }
.setradio input:checked + i { border-color: var(--primary); }
.setradio input:checked + i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.setradio input:focus-visible + i { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.setradio > span { display: flex; flex-direction: column; }
.setradio b { font-weight: 600; font-size: 14px; }
.setradio small { color: var(--text-muted); font-size: 12.5px; }
.setradios .setsub { margin: 10px 0 2px 30px; }

.setsample .input.area { background: var(--warning-tint); border-color: var(--warning); font-size: 15.5px; line-height: 1.6; color: var(--text); font-style: italic; }
.setsliders { display: grid; gap: 18px; margin-top: 6px; }
.setslider .ends { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.setslider input[type=range] { width: 100%; accent-color: var(--primary); }
.setslider input[type=range].unset { opacity: .45; }
.settg { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.settg:first-child { border-top: 0; padding-top: 0; }
.settg .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.settg .t b { font-weight: 600; font-size: 14px; }
.settg .t > span { font-size: 12.5px; color: var(--text-muted); }
.setmeter { height: 6px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; margin-bottom: 6px; }
.setmeter i { display: block; height: 100%; background: var(--accent); }

/* Setup home (/): the brand card and Gild the Fox on the left, the checklist on the right. The column runs
   the height of the page so the brand card scrolls on and Gild's dock sticks just under the 56px header
   (the approved dock, mockups/gild-float, Option B). */
.homegrid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.homecol { display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.homemain { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.homecta { align-items: center; }
.bcard { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-1); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bcard-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bcard-head .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-subtle); }
.bcard-head b { font-family: var(--font-display); font-size: 18px; overflow-wrap: anywhere; }
.bslots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bslot { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-muted); font-size: 12.5px; min-width: 0; }
.bslot .lead { width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--text-subtle); display: grid; place-items: center; flex: none; }
.bslot.on { border-style: solid; border-color: var(--accent); color: var(--text); background: var(--accent-tint); }
.bslot.on .lead { background: var(--accent); color: var(--on-accent); }
.bcard.foil { border-color: var(--accent); box-shadow: var(--shadow-2); }
.foxdock { display: flex; flex-direction: column; align-items: center; gap: 8px; position: sticky; top: 72px; }
.foxdock.docked .foxsay, .foxdock.docked .foxart { cursor: pointer; }
.foxsay { align-self: stretch; position: relative; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; font-size: 13.5px; box-shadow: var(--shadow-1); }
.foxsay p { margin: 0; }
.foxsay::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: var(--surface-raised); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: translateX(-50%) rotate(45deg); }
.foxart { width: 150px; }
.fox { display: block; width: 100%; height: auto; }
.fox polygon.hl { stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.foxmeta { align-self: stretch; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
/* A tucked line (a tap on it; a tap on Gild brings it back) is hidden visually only, so it stays the
   page's status line and screen readers still hear each new one. */
.foxdock.docked.tucked .foxsay { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 860px) {
  .homegrid { grid-template-columns: minmax(0, 1fr); }
  /* Off has no drawing, so nothing floats: the line and the count stay in the page. */
  .foxdock { position: static; }
  /* The dock: one small raised card fixed to the bottom corner, his line and the count on the left and
     Gild perched over the card's top edge on the right, so he is on screen for every card. */
  .foxdock.docked { position: fixed; top: auto; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 12; width: min(300px, calc(100% - 24px)); display: grid; grid-template-columns: minmax(0, 1fr) 76px; grid-template-areas: "say art" "meta art"; align-items: center; gap: 6px 10px; padding: 10px 8px 10px 14px; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); }
  .foxdock.docked .foxsay { grid-area: say; background: none; border: 0; box-shadow: none; padding: 0; font-size: 13px; line-height: 1.4; }
  .foxdock.docked .foxsay::after { display: none; }
  .foxdock.docked .foxart { grid-area: art; width: 76px; align-self: end; margin-top: -34px; }
  .foxdock.docked .foxmeta { grid-area: meta; flex-direction: row; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
  .foxdock.docked .foxmeta b { font-weight: 600; }
  .foxdock.docked .foxmeta .setmeter { flex: 1; height: 4px; margin: 0; }
  .foxdock.docked.tucked { grid-template-areas: "meta art"; }
  /* Typing: he steps aside while a text field has focus, so the keyboard and the field are never under
     him. Slid away, not hidden, so his line stays in the accessibility tree. */
  .foxdock.docked.aside { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
  /* The page ends in the footer, so the room the dock needs goes there: at the very end of the page
     nothing, the last card's buttons or the footer's links, is ever stuck under him. */
  .app:has(.foxdock.docked) .foot { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .foxdock.docked { transition: transform .2s ease-out, opacity .2s ease-out; }
  /* The reveal around the dock fades only (reduced motion already does). A translate on any ancestor
     becomes the containing block for position: fixed and would pin the dock to the foot of the page. */
  .js .rv:has(.foxdock.docked) { animation: rv-fade var(--rv-dur) var(--ease-premium) both; animation-delay: calc(var(--i, 0) * var(--rv-step)); }
}

/* Setup home deck: one card per thing a first piece needs, the open one asking its question. */
.qdeck { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.qrow { border-top: 1px solid var(--border); min-width: 0; }
.qdeck > .qrow:first-child { border-top: 0; }
.qhead { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; cursor: pointer; min-width: 0; }
.qhead:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-md); }
.qhead .lead { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.qhead .lead.done { background: var(--primary); color: var(--on-primary); }
.qhead .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qhead .t b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.qhead .t span { font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.qhead:hover .t b { color: var(--primary); }
.qgo { font-size: 12.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.qrow.open > .qhead .t b { color: var(--primary); }
.qbody { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 14px 46px; min-width: 0; }
.qvalue { background: var(--surface-sunken); border-radius: var(--radius-md); padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.qlogo { display: flex; align-items: center; gap: 12px; white-space: normal; }
.qlogo .vis { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: none; }
.qlogo .vis img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qlogo .t { display: flex; flex-direction: column; min-width: 0; }
.qlogo .t small { color: var(--text-muted); font-size: 12px; }
.qstat { font-size: 12.5px; }
.qactions { align-items: center; }
.qform { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qerr { margin: 0; }
@media (max-width: 520px) { .qbody { padding-left: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .fox polygon.fresh { animation: fox-fresh 1.1s ease-out; }
  .bslot.fresh { animation: slot-fresh 1.1s ease-out; }
  .foxdock.docked .foxsay.say-new { animation: say-in .35s ease-out; }
}
@keyframes say-in { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fox-fresh { 0% { opacity: .15; stroke: var(--vermilion-400); stroke-width: 5; } 60% { opacity: 1; stroke: var(--vermilion-400); stroke-width: 4; } 100% { opacity: 1; stroke-width: 0; } }
@keyframes slot-fresh { 0% { background: var(--vermilion-100); transform: scale(1.04); } 100% { transform: scale(1); } }

/* Gild the Fox kit (public/fox.js). fox() returns a span.gild with a placement, a size and either gild-idle
   (breathing, blinking, an ear twitch, a tail swish) or gild-still (the finished frame). Every value is a
   class because the CSP refuses style attributes; reduced motion always gets the still frame. The idle
   loop and its pivots are the approved art sheet's (mockups/gild-art-sheet/build_sheet2.py). */
.gild { display: inline-block; flex: none; line-height: 0; pointer-events: none; vertical-align: middle; }
.gild-art { display: block; width: 100%; height: 100%; overflow: visible; }
.gild-tall { aspect-ratio: 440 / 490; height: auto; }
.gild-square { aspect-ratio: 1 / 1; height: auto; }
.gild-peekbox { aspect-ratio: 280 / 290; height: auto; }
.gild-stampbox { aspect-ratio: 240 / 110; height: auto; }
.gild-wallbox { aspect-ratio: 480 / 260; height: auto; }
.gild-s16 { width: 16px; } .gild-s24 { width: 24px; } .gild-s32 { width: 32px; }
.gild-s48 { width: 48px; } .gild-s64 { width: 64px; } .gild-s96 { width: 96px; }
.gild-s128 { width: 128px; } .gild-s160 { width: 160px; } .gild-s240 { width: 240px; }
.gild-peek { position: absolute; bottom: 100%; right: 16px; margin-bottom: -6px; }
.gild-dock { position: fixed; right: 16px; bottom: 16px; z-index: 20; }
.gild-inline { margin: 0 4px; }
.gild-badge { vertical-align: -0.25em; }
.gild-stage { display: block; margin: 0 auto; max-width: 100%; }
.gild-idle .g-eyes { transform-box: fill-box; transform-origin: center; }
.gild-idle .g-tail { transform-box: view-box; transform-origin: 276px 420px; }
.gild-idle .g-ear-r { transform-box: fill-box; transform-origin: 40% 100%; }
.gild-tall.gild-idle .g-fox { transform-box: view-box; transform-origin: 200px 468px; }
@media (prefers-reduced-motion: no-preference) {
  .gild-idle .g-eyes { animation: gild-blink 5.2s infinite; }
  .gild-idle .g-tail { animation: gild-swish 3.8s ease-in-out infinite; }
  .gild-idle .g-ear-r { animation: gild-twitch 6.5s ease-in-out infinite; }
  .gild-tall.gild-idle .g-fox { animation: gild-breathe 4.2s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .gild-idle .g-eyes, .gild-idle .g-tail, .gild-idle .g-ear-r, .gild-idle .g-fox { animation: none; transform: none; }
}
@keyframes gild-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
@keyframes gild-swish { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg); } }
@keyframes gild-twitch { 0%, 80%, 88%, 100% { transform: rotate(0deg); } 83% { transform: rotate(9deg); } 85% { transform: rotate(-2deg); } }
@keyframes gild-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.014); } }
/* The shell's fox-host: in this wave only a polite live region, kept off screen until a later wave gives
   him a visible place to talk. Off hides the whole host. */
.foxhost-say { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.foxhost[hidden] { display: none; }

/* Completion graffiti: sprayed over the page when the eighth thing is confirmed. Graphite, Vermilion and
   Paper are the same in both themes. Every position is a class because the CSP refuses style attributes. */
.gfx { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.gfx-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--graphite-950) 90%, transparent); }
.gfx-in, .gfx-pop, .gfx-actions { position: relative; z-index: 2; }
.gfx > .gfx-in, .gfx > .gfx-pop { position: absolute; }
.gfx-eight { top: 18%; left: 50%; transform: translateX(-50%) rotate(-4deg); font-family: var(--font-mono); font-weight: 600; font-size: clamp(16px, 3.4vw, 28px); letter-spacing: 6px; color: var(--paper-50); white-space: nowrap; }
.gfx-main { top: 28%; left: 50%; transform: translateX(-50%) rotate(-6deg); font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 17vw, 190px); line-height: 1; letter-spacing: -2px; color: var(--vermilion-500); text-shadow: 6px 6px 0 var(--paper-50); white-space: nowrap; }
.gfx-sub { top: 62%; left: 50%; transform: translateX(-50%) rotate(-2deg); font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 4.4vw, 44px); letter-spacing: 3px; color: var(--graphite-950); background: var(--paper-50); padding: 4px 16px; white-space: nowrap; }
.gfx-plan { top: 74%; left: 50%; transform: translateX(-50%); margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 2.6vw, 26px); color: var(--paper-50); text-align: center; max-width: 90vw; }
.gfx-drip { position: absolute; top: 88%; width: 9px; border-radius: 0 0 6px 6px; background: var(--vermilion-500); }
.gfx-stamp { right: 8%; bottom: 20%; transform: rotate(9deg); border: 4px solid var(--vermilion-300); color: var(--vermilion-300); font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 3vw, 30px); padding: 6px 14px; border-radius: 6px; }
.gfx-fox { left: 6%; bottom: 8%; width: clamp(120px, 18vw, 200px); }
.gfx-fox .fox { width: 100%; }
.gfx-spark .gfx-star { width: 100%; height: 100%; fill: var(--paper-50); display: block; }
.gfx-dot { position: absolute; border-radius: 50%; }
.gfx-actions { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0 16px; cursor: default; }
.gfx-dot-1 { left: 32%; top: 51%; width: 22px; height: 22px; background: var(--paper-50); opacity: .6; }
.gfx-dot-2 { left: 27%; top: 9%; width: 8px; height: 8px; background: var(--vermilion-300); opacity: .6; }
.gfx-dot-3 { left: 34%; top: 68%; width: 12px; height: 12px; background: var(--paper-200); opacity: .8; }
.gfx-dot-4 { left: 85%; top: 7%; width: 22px; height: 22px; background: var(--graphite-700); opacity: .8; }
.gfx-dot-5 { left: 61%; top: 53%; width: 22px; height: 22px; background: var(--vermilion-600); opacity: .6; }
.gfx-dot-6 { left: 54%; top: 15%; width: 22px; height: 22px; background: var(--vermilion-500); opacity: .6; }
.gfx-dot-7 { left: 5%; top: 38%; width: 30px; height: 30px; background: var(--paper-50); opacity: .8; }
.gfx-dot-8 { left: 63%; top: 52%; width: 40px; height: 40px; background: var(--vermilion-300); opacity: .5; }
.gfx-dot-9 { left: 87%; top: 37%; width: 8px; height: 8px; background: var(--paper-200); opacity: .5; }
.gfx-dot-10 { left: 52%; top: 83%; width: 22px; height: 22px; background: var(--graphite-700); opacity: .5; }
.gfx-dot-11 { left: 87%; top: 11%; width: 16px; height: 16px; background: var(--vermilion-600); opacity: .6; }
.gfx-dot-12 { left: 91%; top: 15%; width: 22px; height: 22px; background: var(--vermilion-500); opacity: .6; }
.gfx-dot-13 { left: 77%; top: 22%; width: 30px; height: 30px; background: var(--paper-50); opacity: .5; }
.gfx-dot-14 { left: 72%; top: 8%; width: 22px; height: 22px; background: var(--vermilion-300); opacity: .6; }
.gfx-dot-15 { left: 21%; top: 78%; width: 22px; height: 22px; background: var(--paper-200); opacity: .8; }
.gfx-dot-16 { left: 39%; top: 75%; width: 16px; height: 16px; background: var(--graphite-700); opacity: .8; }
.gfx-dot-17 { left: 20%; top: 24%; width: 30px; height: 30px; background: var(--vermilion-600); opacity: .5; }
.gfx-dot-18 { left: 71%; top: 92%; width: 16px; height: 16px; background: var(--vermilion-500); opacity: .7; }
.gfx-dot-19 { left: 85%; top: 67%; width: 30px; height: 30px; background: var(--paper-50); opacity: .6; }
.gfx-dot-20 { left: 42%; top: 23%; width: 16px; height: 16px; background: var(--vermilion-300); opacity: .7; }
.gfx-dot-21 { left: 68%; top: 88%; width: 8px; height: 8px; background: var(--paper-200); opacity: .6; }
.gfx-dot-22 { left: 47%; top: 35%; width: 8px; height: 8px; background: var(--graphite-700); opacity: .7; }
.gfx-dot-23 { left: 46%; top: 32%; width: 16px; height: 16px; background: var(--vermilion-600); opacity: .5; }
.gfx-dot-24 { left: 57%; top: 36%; width: 22px; height: 22px; background: var(--vermilion-500); opacity: .7; }
.gfx-drip-1 { left: 8%; height: 44px; }
.gfx-drip-2 { left: 28%; height: 29px; }
.gfx-drip-3 { left: 48%; height: 60px; }
.gfx-drip-4 { left: 68%; height: 43px; }
.gfx-drip-5 { left: 88%; height: 25px; }
.gfx-spark-1 { left: 14%; top: 16%; width: 34px; height: 34px; }
.gfx-spark-2 { left: 82%; top: 20%; width: 46px; height: 46px; }
.gfx-spark-3 { left: 70%; top: 52%; width: 30px; height: 30px; }
.gfx-spark-4 { left: 22%; top: 66%; width: 40px; height: 40px; }
.gfx-spark-5 { left: 93%; top: 58%; width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .gfx-scrim { animation: gfx-fade .25s ease-out both; }
  .gfx-dot { animation: gfx-splat .45s cubic-bezier(.2, 1.4, .4, 1) both; }
  .gfx-in { animation: gfx-spray .5s ease-out both; }
  .gfx-pop { animation: gfx-pop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
  .gfx-drip { animation: gfx-drip 1.1s ease-in .7s both; transform-origin: top; }
  .gfx-actions { animation: gfx-fade .4s ease-out 1.2s both; }
  .gfx-eight { animation-delay: .15s; }
  .gfx-main { animation-delay: .35s; }
  .gfx-sub { animation-delay: .75s; }
  .gfx-stamp { animation-delay: 1s; }
  .gfx-fox { animation-delay: 1.1s; }
  .gfx-dot-1 { animation-delay: 0.04s; }
  .gfx-dot-2 { animation-delay: 0.08s; }
  .gfx-dot-3 { animation-delay: 0.12s; }
  .gfx-dot-4 { animation-delay: 0.16s; }
  .gfx-dot-5 { animation-delay: 0.2s; }
  .gfx-dot-6 { animation-delay: 0.24s; }
  .gfx-dot-7 { animation-delay: 0.28s; }
  .gfx-dot-8 { animation-delay: 0.32s; }
  .gfx-dot-9 { animation-delay: 0.36s; }
  .gfx-dot-10 { animation-delay: 0.4s; }
  .gfx-dot-11 { animation-delay: 0.44s; }
  .gfx-dot-12 { animation-delay: 0.48s; }
  .gfx-dot-13 { animation-delay: 0.52s; }
  .gfx-dot-14 { animation-delay: 0.56s; }
  .gfx-dot-15 { animation-delay: 0.6s; }
  .gfx-dot-16 { animation-delay: 0.64s; }
  .gfx-dot-17 { animation-delay: 0.68s; }
  .gfx-dot-18 { animation-delay: 0.72s; }
  .gfx-dot-19 { animation-delay: 0.76s; }
  .gfx-dot-20 { animation-delay: 0.8s; }
  .gfx-dot-21 { animation-delay: 0.84s; }
  .gfx-dot-22 { animation-delay: 0.88s; }
  .gfx-dot-23 { animation-delay: 0.92s; }
  .gfx-dot-24 { animation-delay: 0.96s; }
  .gfx-spark-1 { animation-delay: 1.02s; }
  .gfx-spark-2 { animation-delay: 1.14s; }
  .gfx-spark-3 { animation-delay: 1.26s; }
  .gfx-spark-4 { animation-delay: 1.38s; }
  .gfx-spark-5 { animation-delay: 1.5s; }
}
@keyframes gfx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gfx-splat { from { opacity: 0; scale: .2; } }
@keyframes gfx-spray { from { opacity: 0; scale: 1.25; filter: blur(8px); } }
@keyframes gfx-pop { from { opacity: 0; scale: .3; } }
@keyframes gfx-drip { from { scale: 1 0; } }

@media (max-width: 900px) {
  .setshell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* The side list gives way to a slim bar that opens the same list as a sheet (.snav-bar, .ss-sheet). */
  .snav { display: none; }
  .setgrid { grid-template-columns: minmax(0, 1fr); }
  .settiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setphotos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The phone's settings bar: where you are, and a way to change page. Hidden beside the side nav. */
.snav-bar { display: none; align-items: baseline; gap: 8px; width: 100%; min-height: 46px; padding: 0 14px; font: inherit; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; }
.snav-bar:hover { border-color: var(--border-strong); }
.snav-bar:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.snav-bar-k { flex: none; align-self: center; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); }
.snav-bar-v { flex: 1; min-width: 0; align-self: center; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snav-bar-chg { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--accent-text); }
/* The sheet reuses the photo sheet's frame (dialog.pp-sheet); only its height and the list are its own. */
dialog.pp-sheet.ss-sheet { height: auto; max-height: 82vh; max-height: 82dvh; }
.ss-body { padding: 0 8px 20px; }
.ss-list .g { font: 500 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-subtle); padding: 18px 10px 6px; }
.ss-list a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; color: var(--text); text-decoration: none; font-size: 15px; border-left: 2px solid transparent; }
.ss-list a .ic { color: var(--text-muted); }
.ss-list a span:not(.ic):not(.sdot):not(.vh) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-list a:hover { background: var(--surface-sunken); }
.ss-list a:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -2px; }
.ss-list a.on { border-left-color: var(--accent); background: var(--accent-tint); font-weight: 600; }
.ss-list a.on .ic { color: var(--accent-text); }
@media (max-width: 900px) { .snav-bar { display: flex; } }
@media (min-width: 720px) {
  dialog.pp-sheet.ss-sheet { height: auto; max-height: min(720px, calc(100vh - 48px)); width: min(420px, calc(100vw - 32px)); }
}
.snav-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.snav-top h2 { margin-right: 0; }
.snav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-subtle); cursor: pointer; }
.snav-toggle:hover { background: var(--surface-sunken); color: var(--text); }
.snav-toggle:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.snav-toggle .ic { transform: rotate(180deg); transition: transform var(--dur-fast) var(--ease-standard); }
.snav-collapsed .snav-toggle .ic { transform: none; }
@media (min-width: 901px) {
  .setshell.snav-collapsed { grid-template-columns: 56px minmax(0, 1fr); }
  .snav-collapsed .snav-top { flex-direction: column; }
  .snav-collapsed .snav h2, .snav-collapsed .snav .g, .snav-collapsed .snav a > span:not(.ic):not(.sdot) { display: none; }
  .snav-collapsed .snav a { justify-content: center; padding: 8px 0; position: relative; }
  .snav-collapsed .snav a .sdot { position: absolute; top: 6px; right: 8px; }
}
@media (max-width: 900px) {
  .snav-top { display: none; }
}
@media (max-width: 420px) {
  .settiles.two { grid-template-columns: minmax(0, 1fr); }
  .sethex { flex-wrap: wrap; }
  .sethex .input { width: 100%; }
  .setrow { flex-wrap: wrap; }
  /* A row with several text controls (Edit, Dismiss, Add) wraps them under the title rather than squeezing it. */
  .setrow.acts { row-gap: 6px; }
  .setrow.acts .t { flex: 1 1 calc(100% - 46px); }
  .setrow.acts .t + * { margin-left: 46px; }
  .setrows > .setrowerr { margin-left: 0; }
}

/* ---------- time zone picker and inline Saved ---------- */
/* The picker (views/time-zone-picker.js): a popover under the field on a wide screen, a bottom sheet
   at 600px and below, the same breakpoint the workspace switcher uses. The sheet is fixed to the
   viewport and the script fits it to the visual viewport so the on-screen keyboard never covers it. */
.ic-search { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM20 20l-4-4'/%3E%3C/svg%3E"); }
.tzwrap { position: relative; }
button.tzbtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; text-align: left; cursor: pointer; font-family: var(--font-sans); color: var(--text); }
.tzbtn .tzval { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tzbtn .tzval.empty { color: var(--text-subtle); }
.tzbtn .tzoff { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); flex: none; }
.tzbtn .ic { color: var(--text-muted); width: 16px; height: 16px; flex: none; }
.tzbtn[aria-expanded="true"] { border-color: var(--text); }
.tz-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 0 20px; flex: none; }
.tz-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
.tz-close { width: 44px; height: 44px; background: transparent; }
.tz-search { position: relative; margin: 4px 16px 8px; flex: none; }
.tz-search > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; }
.tz-search .input { padding: 11px 46px 11px 40px; font-size: 16px; min-height: 48px; }
.tz-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; border-radius: var(--radius-lg); padding: 0; }
.tz-list { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 14px; overscroll-behavior: contain; }
.tz-list .wshead { position: sticky; top: 0; background: var(--surface); z-index: 1; padding-top: 10px; }
.tz-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; color: var(--text); }
.tz-row:hover { background: var(--bg); }
.tz-row.sel, .tz-row.sel:hover { background: var(--accent-tint); }
.tz-row.act { box-shadow: inset 0 0 0 2px var(--focus); }
.tz-row .t { flex: 1; min-width: 0; }
.tz-row .t b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.tz-row .t b em { font-style: normal; font-weight: 700; color: var(--accent-text); }
.tz-row .t > span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.tz-off { font-family: var(--font-mono); font-style: normal; font-size: 11.5px; }
.tz-row .ck { width: 18px; flex: none; display: grid; place-items: center; }
.tz-row .ck.on::after { content: ''; display: block; width: 5px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); margin-top: -3px; }
.tz-empty { padding: 30px 20px 20px; text-align: center; }
.tz-empty b { display: block; font-size: 15px; font-weight: 650; margin-bottom: 6px; overflow-wrap: anywhere; }
.tz-empty p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.tz-empty .btn.link { min-height: 44px; padding: 0 12px; }
.tz-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; width: max(100%, 340px); max-width: min(480px, calc(100vw - 32px)); max-height: 392px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); padding: 10px 0 0; overflow: hidden; }
.tz-pop .tz-search { margin: 0 10px 6px; }
.tz-pop .tz-search .input { min-height: 44px; font-size: 14px; }
.tz-sheet { position: fixed; left: 0; right: 0; top: 48px; bottom: 0; z-index: 40; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-3); }
.tz-sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 8px auto 0; flex: none; }
.tz-scrim { position: fixed; inset: 0; z-index: 39; background: var(--overlay); touch-action: none; }
.tz-sheet[hidden], .tz-scrim[hidden], .tz-pop[hidden], .tz-clear[hidden] { display: none; }

/* Saving and Saved sit on the label row of the field they belong to, where the eye already is. */
.lrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 7px; min-height: 18px; }
.lrow .label { margin: 0; }
.lrow.after { justify-content: flex-end; margin: 6px 0 0; }
.fsave { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--primary); min-height: 18px; opacity: 1; transition: opacity .4s var(--ease-standard); }
.fsave.out { opacity: 0; }
.fsave.saving { color: var(--text-muted); font-weight: 500; }
.fsave .ic { width: 14px; height: 14px; vertical-align: 0; }
.field .err { display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; }
.field .err .ic { width: 14px; height: 14px; margin-top: 2px; vertical-align: 0; }
.err .retry { border: 0; background: none; padding: 12px 8px; margin: -12px 0 -12px -2px; font: inherit; font-weight: 600; color: var(--accent-text); text-decoration: underline; cursor: pointer; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .fsave { transition: none; } }

/* ---------- plan & billing ---------- */
/* Flat text and tokens only; the usage meters reuse .meters / .meter from compose. */
.bill-stack { display: grid; gap: 16px; }
.bill-stack > div:empty { display: none; }
.bill-stack .card, .bill-stack > .alert { margin: 0; }
.bill-state { font-size: 18px; margin: 0 0 8px; }
.bill-line { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--text); max-width: 62ch; }
.bill-mode { margin: 0 0 12px; }
.bill-when { margin: 0 0 12px; }
.bill-notice:empty { display: none; }
.bill-bar { height: 6px; border-radius: var(--radius-full); background: var(--border); margin-top: 8px; overflow: hidden; }
.bill-bar > i { display: block; height: 100%; transform-origin: 0 50%; background: var(--accent); border-radius: var(--radius-full); }
.bill-meter.bad .bill-bar > i { background: var(--danger); }
.bill-picker .seg { margin: 0 0 14px; }
.bill-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.bill-col { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px; background: var(--surface); color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius-lg); font: inherit; cursor: pointer; }
.bill-col:hover { border-color: var(--border-strong); }
.bill-col.on, .bill-col[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.bill-rec { font-size: 12px; font-weight: 600; color: var(--accent-text); }
.bill-name { font-size: 15px; font-weight: 700; }
.bill-price { font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
.bill-price small { font-family: var(--font-sans); font-size: 12.5px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.bill-sub { font-size: 12px; color: var(--text-muted); }
.bill-feat { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--text-muted); }
.bill-buy { border-top: 1px solid var(--border); padding-top: 14px; }
.bill-packlist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 0; }
.bill-pack { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.bill-packname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bill-pausedlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.bill-packname small { font-size: 12px; color: var(--text-muted); }
@media (max-width: 700px) { .bill-cols { grid-template-columns: minmax(0, 1fr); } }

/* plan change: the marks on the plan columns, the review panel (price preview, facts, limits table),
   the scheduled change row and its confirm, the Managed line. */
.pc-cur { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.pc-cur .ic { width: 13px; height: 13px; color: var(--success); }
.pc-cur.sched .ic { color: var(--warning); }
.bill-col[disabled] { cursor: not-allowed; opacity: .55; }
.pc-confirm { margin: 0; padding: 18px 20px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg); }
.pc-confirm h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.pc-confirm > p.lead { margin: 0 0 14px; font-size: 13.5px; color: var(--text-muted); max-width: 62ch; }
.pc-confirm .alert { margin: 0 0 14px; }
.pc-h { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-subtle); margin: 18px 0 8px; }
.pc-sum { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.pc-sum > div { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; font-size: 13.5px; }
.pc-sum > div + div { border-top: 1px solid var(--border); }
.pc-sum dt { flex: 1; min-width: 0; color: var(--text-muted); }
.pc-sum dt small { display: block; font-size: 12px; color: var(--text-subtle); }
.pc-sum dd { margin: 0; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-sum .tot dt { color: var(--text); font-weight: 700; }
.pc-sum .tot dd { font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.pc-facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 6px; font-size: 13.5px; }
.pc-facts dt { color: var(--text-muted); }
.pc-facts dd { margin: 0; min-width: 0; }
.pc-facts dd small { display: block; color: var(--text-subtle); font-size: 12px; }
.pc-diff { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 6px; }
.pc-diff th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-subtle); padding: 0 0 6px; }
.pc-diff th:not(:first-child), .pc-diff td:not(:first-child) { text-align: right; white-space: nowrap; }
.pc-diff td { padding: 7px 0; border-top: 1px solid var(--border); }
.pc-diff th:not(:first-child) { width: 128px; }
.pc-diff td:first-child { color: var(--text-muted); }
.pc-diff td.up, .pc-diff td.dn { font-weight: 600; }
.pc-diff td.up .ic { width: 13px; height: 13px; color: var(--success); margin-right: 4px; }
.pc-diff td.dn .ic { width: 13px; height: 13px; color: var(--warning); margin-right: 4px; }
.pc-keeps { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.pc-keeps li { display: flex; gap: 10px; align-items: flex-start; }
.pc-keeps li .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--text-subtle); }
.pc-keeps li.warn .ic { color: var(--warning); }
.pc-keeps li b { font-weight: 600; }
.pc-keeps li span { min-width: 0; }
.pc-more { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.pc-more .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--text-subtle); }
.pc-more b { font-weight: 600; color: var(--text); }
.pc-more a { font-weight: 600; white-space: nowrap; }
.pc-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.pc-fine { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; font-size: 12px; color: var(--text-muted); }
.pc-fine .ic { width: 13px; height: 13px; margin-top: 2px; }
.pc-sched { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--warning); border-radius: var(--radius-lg); background: var(--surface-sunken); font-size: 13.5px; }
.pc-sched > .ic { width: 18px; height: 18px; color: var(--warning); }
.pc-sched > div { flex: 1; min-width: 0; }
.pc-sched b { font-weight: 600; }
.pc-sched small { display: block; color: var(--text-muted); font-size: 12.5px; }
.pc-ask { margin: 0 0 12px; padding: 14px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg); }
.pc-ask h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }
.pc-ask p { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.pc-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); flex: none; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) { .pc-spin { animation: pc-spin .9s linear infinite; } }
.bill-change-closed .bill-line { margin: 0; }
.pc-wait { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-muted); }

@media (max-width: 560px) {
  .pc-confirm { padding: 16px 14px; }
  .pc-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pc-facts dd { margin-bottom: 10px; }
  .pc-acts .btn { flex: 1 1 auto; justify-content: center; white-space: normal; height: auto; min-height: 40px; text-align: center; }
  .pc-sched { flex-wrap: wrap; }
  .pc-sched .btn { flex: 1 1 100%; }
  .pc-sum .tot dd { font-size: 19px; }
  .pc-diff th:not(:first-child) { width: auto; }
}

/* ---------- motion: Premium archetype (motion-design skill) ----------
   One easing (--ease-premium), 480 ms reveals on a 55 ms step capped at 8 steps, transform and opacity
   only, no overshoot. Content is visible if the script never runs: .js is stamped by the shell's
   pre-paint script, and the reveal keyframes run only under it. Reduced motion keeps a plain fade. */
@property --beam-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes beam-rotate { to { --beam-angle: 360deg; } }
@keyframes rv { from { opacity: 0; transform: translateY(var(--rv-shift)); } to { opacity: 1; transform: none; } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tile-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes tile-accent { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes fill-in { from { transform: scaleX(0); } }

.js .rv { animation: rv var(--rv-dur) var(--ease-premium) both; animation-delay: calc(var(--i, 0) * var(--rv-step)); }
.js .bill-bar > i { animation: fill-in 900ms var(--ease-premium) both; animation-delay: calc(260ms + var(--i, 0) * 60ms); }

/* The masks below read only alpha, so --on-overlay stands in as the opaque stencil color.
   Tile field: ambient, fixed behind the content of sign-in and scan, masked to fade toward the edges. The tiles match the homepage hero (34 px squares, 7 px gap, radius size/4);
   motion.js sets --cols and --rows to cover the window and the overflow is clipped. Every track is the same fixed size, so every cell is a square at any window shape. */
.tilestage { position: relative; }
.tilestage > :not(.tiles) { position: relative; z-index: 1; }
.tiles { --tile: 34px; --gap: 7px; position: fixed; inset: 56px 0 0 0; z-index: 0; display: grid; grid-template-columns: repeat(var(--cols, 1), var(--tile)); grid-template-rows: repeat(var(--rows, 1), var(--tile)); justify-content: center; align-content: center; gap: var(--gap); overflow: hidden; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, var(--on-overlay) 20%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, var(--on-overlay) 20%, transparent 100%); }
.tiles i { display: block; align-self: stretch; min-height: 0; border-radius: calc(var(--tile) / 4); background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); opacity: .7; }
.tiles i.b { animation: tile-breathe 7s var(--ease-premium) infinite; animation-delay: calc(var(--tile-delay, 0) * 1s); }
.tiles i.f { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); animation: tile-accent 5s var(--ease-premium) infinite; animation-delay: calc(var(--tile-delay, 0) * 1s); }

/* Beam ring: a conic highlight walks around the recommended plan. */
.ring { position: relative; }
.ring::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--beam-angle), transparent 0deg, transparent 265deg, var(--accent) 288deg, var(--accent-hover) 310deg, var(--accent) 332deg, transparent 352deg, transparent 360deg), color-mix(in srgb, var(--accent) 32%, transparent); -webkit-mask: linear-gradient(var(--on-overlay) 0 0) content-box, linear-gradient(var(--on-overlay) 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam-rotate 5s linear infinite; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { animation: rv-fade 200ms linear both; animation-delay: 0s; }
  .js .bill-bar > i { animation: none; }
  .tiles i, .tiles i.b, .tiles i.f { animation: none; opacity: .7; }
  .ring::after { animation: none; }
  .btn:active:not([disabled]) { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* Connections (Google): icons the shared set did not have yet */
.ic-chart { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V11M12 20V4M19 20v-6'/%3E%3C/svg%3E"); }
.ic-lock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11h12v9H6zM8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.ic-refresh { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.5-4M4 4v4h4M4 13a8 8 0 0 0 14.5 4M20 20v-4h-4'/%3E%3C/svg%3E"); }
.ic-eye { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zM12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E"); }

/* Connections (Google): cards, picker, disconnect panel, landing page */
.cx-lead { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-sunken); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.cx-lead .ic { width: 20px; height: 20px; }
.cx-top { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 0; }
.cx-top .t { flex: 1; min-width: 0; }
.cx-top h2 { font-size: 15.5px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.cx-top p { font-size: 13px; color: var(--text-muted); margin: 3px 0 0; }
.cx-top .st { font-size: 13px; margin-top: 2px; }
.cx-body { padding: 16px 20px 20px; }
.cx-facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 16px; font-size: 13.5px; }
.cx-facts dt { color: var(--text-muted); }
.cx-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cx-facts dd small { display: block; color: var(--text-subtle); font-size: 12px; }
.cx-facts .mono { font-size: 12px; color: var(--text-muted); }
.cx-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cx-acts .grow { flex: 1; }
.cx-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); margin: 14px 0 0; }
.cx-note .ic { width: 14px; height: 14px; margin-top: 2px; }
.cx-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 16px; }
.cx-split h3 { font-size: 12px; font-weight: 700; color: var(--text-muted); margin: 0 0 8px; }
.cx-split ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.cx-split li { display: flex; gap: 8px; align-items: flex-start; }
.cx-split li .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--text-subtle); }
.cx-pick { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.vs-back { margin: 0 0 14px; font-size: 13.5px; }
.cx-opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: left; width: 100%; font: inherit; color: var(--text); cursor: pointer; }
.cx-opt:hover { border-color: var(--border-strong); }
.cx-opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); }
.cx-opt .r { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.cx-opt[aria-checked="true"] .r { border-color: var(--accent); }
.cx-opt[aria-checked="true"] .r::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cx-opt .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cx-opt .t b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cx-opt .t span { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.cx-opt .t .id { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-subtle); }
.cx-opt .lv { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.cx-confirm { margin: 16px 0 0; padding: 16px 18px; border: 1px solid var(--danger); border-radius: var(--radius-lg); background: var(--bg); }
.cx-confirm h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }
.cx-confirm > p { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.cx-confirm .cx-split { margin-bottom: 14px; }
/* The Instagram sign-in choice (views/social-connect-cards.js), opened in place: it hides the row
   that opened it, so the hidden attribute has to win over those rows' own display. */
.cx-body > [hidden], .cx-choose[hidden] { display: none; }
.cx-choose h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.cx-routes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.cx-route { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.cx-route:hover { border-color: var(--border-strong); }
.cx-route .lead { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-sunken); display: grid; place-items: center; flex: none; }
.cx-route .lead .bm { width: 22px; height: 22px; }
.cx-route .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-route .t b { font-size: 14px; font-weight: 600; }
.cx-route .t span { font-size: 12.5px; color: var(--text-muted); }
.cx-route .t small { font-size: 12px; color: var(--text-subtle); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.cx-route .t small .ic { width: 13px; height: 13px; }
.cx-route > .ic { color: var(--text-subtle); }
/* Your data (views/settings-data.js): the export list and the deletion steps, a dot and words per row. */
.card .section > p.muted { margin: 0 0 10px; font-size: 13.5px; }
.dxhead { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; }
.dxlist { list-style: none; margin: 14px 0 12px; padding: 0; }
.dxrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.dxrow:first-child { border-top: 0; }
.dxrow .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dxrow .what b { font-weight: 600; }
.dxrow .what small { color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.dxrow .btn { flex: none; }
.cx-confirm .field { margin: 0 0 14px; }
.cx-viewer { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.cx-viewer .ic { width: 14px; height: 14px; }
/* Announce new articles (views/social-connect-cards.js): the switch on a LinkedIn Company Page card. */
.cx-announce { border-top: 1px solid var(--border); margin: 4px 0 16px; padding-top: 16px; }
.cx-announce .toggle { font-weight: 600; }
.cx-announce .toggle input { position: absolute; left: 0; top: 0; width: 36px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.cx-announce .toggle input:disabled { cursor: progress; }
.cx-announce .hint { display: block; margin: 8px 0 0 46px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.cx-announce .hint b { color: var(--text); font-weight: 600; }
.cx-announce .since { display: block; margin: 10px 0 0 46px; font-size: 12.5px; color: var(--text-subtle); }
.cx-announce .sample { margin: 12px 0 0 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 13px; line-height: 1.5; color: var(--text); }
.cx-announce .sample small { display: block; font-size: 11.5px; color: var(--text-subtle); margin-bottom: 3px; letter-spacing: .02em; }
.cx-announce .sample small.tail { margin: 4px 0 0; }
.cx-announce .alert { margin: 0 0 12px; }
.cx-announce.readonly .line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.cx-announce.readonly .hint, .cx-announce.readonly .since { margin-left: 0; }
.cx-announce-profile { margin: 4px 0 16px; }
@media (max-width: 480px) { .cx-announce .hint, .cx-announce .since, .cx-announce .sample { margin-left: 0; } }
.cx-landing { max-width: 520px; margin: 24px auto 0; }
.cx-landing .setbadge.ok { background: var(--success-tint); color: var(--success); }
.cx-landing .setbadge.warn { background: var(--warning-tint); color: var(--warning); }
.cx-landing .setbadge.bad { background: var(--danger-tint); color: var(--danger); }
.cx-landing .setempty.big { padding: 36px 28px 30px; }
.cx-landing .cx-acts { justify-content: center; }
.cx-landing .detail { margin: 18px auto 0; max-width: 420px; text-align: left; font-size: 12.5px; color: var(--text-muted); display: flex; gap: 8px; }
.cx-landing .detail .ic { width: 14px; height: 14px; margin-top: 2px; }
/* The Bluesky card: the two-field form and the plain steps for making an app password */
.bsf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 0 0 6px; }
.bsf .field { margin: 0; }
.bsf label { display: block; font-size: 12.5px; font-weight: 700; margin: 0 0 6px; }
.bsf .hint { display: block; }
.bsf .has-error .hint { color: var(--danger); }
.bssteps { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-sunken); font-size: 13.5px; }
.bssteps h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.bssteps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.bssteps b { font-weight: 600; }
.bssteps .bslink { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--text); font-weight: 600; text-decoration: underline; }
.bssteps .bslink .ic { width: 13px; height: 13px; }
.bsbusy { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.cx-note + .cx-split { margin-top: 18px; }
/* The read-only Google report under a connected card's buttons (views/settings-connections.js) */
.rp { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.rp + .rp { margin-top: 22px; padding-top: 0; border-top: 0; }
.rp-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; }
.rp-head > div { flex: 1; min-width: 0; }
.rp-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.rp-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }
.rp-scroll { max-height: 340px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.rp-tbl { font-size: 13px; }
.rp-tbl th { position: sticky; top: 0; z-index: 1; background: var(--surface-sunken); padding: 10px 14px; }
.rp-tbl td { padding: 9px 14px; }
.rp-tbl th.r, .rp-tbl td.r { text-align: right; white-space: nowrap; }
.rp-tbl td.r { color: var(--text); }
.rp-tbl td.pg { overflow-wrap: anywhere; font-weight: 500; }
.rp-tbl td.pg .mono { font-family: var(--font-mono); font-size: 12.5px; }
.rp-tbl tbody tr:hover td { background: var(--surface-sunken); }
.rp-fine { margin: 10px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); }
.rp-fine .ic { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.rp-busy { display: flex; align-items: center; gap: 10px; padding: 26px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); font-size: 13.5px; color: var(--text-muted); }
.rp-busy i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); display: inline-block; animation: rpspin .9s linear infinite; }
@keyframes rpspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rp-busy i { animation: none; } }
.rp-empty { padding: 24px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); text-align: left; }
.rp-empty h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.rp-empty p { margin: 0; font-size: 13px; color: var(--text-muted); }
.rp .alert { margin: 0 0 12px; }
.rp .cx-acts { margin: 0; }

@media (max-width: 560px) {
  .rp-head { flex-wrap: wrap; }
  .rp-scroll { max-height: 420px; }
  .rp-tbl thead { display: none; }
  .rp-tbl, .rp-tbl tbody, .rp-tbl tr { display: block; }
  .rp-tbl tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .rp-tbl tr:last-child { border-bottom: 0; }
  .rp-tbl td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; border: 0; text-align: right; }
  .rp-tbl td::before { content: attr(data-label); font-size: 12px; color: var(--text-muted); text-align: left; }
  .rp-tbl td.pg { display: block; text-align: left; padding-bottom: 6px; }
  .rp-tbl td.pg::before { content: none; }
}

@media (max-width: 560px) {
  .setch { flex-wrap: wrap; padding: 16px 16px 0; }
  .setch > .t, .setch > div:first-child { flex: 1 1 200px; }
  .setch .st { flex: 1 1 100%; margin: 0; }
  .setch .cx-lead ~ .st { margin-left: 54px; }
  .setch .act { flex: 1 1 100%; }
  .cx-top { flex-wrap: wrap; padding: 16px 16px 0; }
  .cx-top .t { flex: 1 1 calc(100% - 54px); }
  .cx-top .st { flex: 1 1 100%; margin: 0 0 0 54px; }
  .cx-body { padding: 14px 16px 18px; }
  .cx-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cx-facts dd { margin-bottom: 10px; }
  .cx-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cx-acts .grow { display: none; }
  .cx-acts .btn { flex: 1 1 auto; justify-content: center; white-space: normal; height: auto; min-height: 40px; text-align: center; }
  .cx-opt .lv { display: none; }
  .bsf { grid-template-columns: minmax(0, 1fr); }
  .cx-landing { margin-top: 8px; }
}

/* ------------------------------------------------------------ post on X -- */
/* The brief page's Post on X card (views/brief.js): X is posted by hand from the copy and a compose
   link, never through its API (docs/api.md, "Posting to X by hand"). */
.xcard { display: grid; gap: 14px; }
.xcard h3 { margin: 0; }
.xcard .alert { margin: 0; }
.xhead { display: flex; align-items: center; gap: 10px; }
.xhead h3 { flex: 1; }
.xhead .st { font-size: 12.5px; color: var(--text-muted); }
.xintro { margin: 0; font-size: 13px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.input.area.post { min-height: 132px; font-size: 13.5px; line-height: 1.5; resize: vertical; }
.xthumb { width: 40px; height: 50px; border-radius: var(--radius-sm); flex: none; object-fit: cover; border: 1px solid var(--border); }
.xcard .links a.btn { margin-left: auto; color: var(--text); }
.xcard .rule { height: 1px; background: var(--border); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .lbl { flex: 1; font-size: 13px; font-weight: 600; }
.stepper .lbl span { color: var(--text-muted); font-weight: 400; }
.seg-dots { display: flex; gap: 5px; }
.seg-dots i { width: 18px; height: 4px; border-radius: 2px; background: var(--border); }
.seg-dots i.on { background: var(--accent); }
.icon-btn { width: 32px; padding: 0; }
.posted-line { display: flex; gap: 10px; align-items: flex-start; }
.posted-line .dot { margin-top: 6px; }
.posted-line b { display: block; font-size: 14px; }
.posted-line .sub { display: block; font-size: 12.5px; color: var(--text-muted); }
.xquote { margin: 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ic-external { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H5v14h14v-5M14 5h5v5M19 5l-8 8'/%3E%3C/svg%3E"); }
.ic-copy { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3'/%3E%3C/svg%3E"); }
.ic-download { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------ utilities -- */
/* One-off layout and type tweaks that used to be inline style attributes. The CSP's style-src has
   no 'unsafe-inline' (functions/_lib/security-headers.mjs), so a static style lives here as a class
   and render code never writes a style attribute (scripts/csp-style.test.mjs holds both). Each one
   carries !important so it outranks the component rules exactly as the inline style it replaced
   did. Shorthands come before longhands, so `u-m-0 u-mt-6` reads as `margin: 6px 0 0`. A value
   computed at runtime (a progress width, a swatch color, a picked font) is still set through the
   element's style object, a CSSOM write the policy does not govern. */
.u-m-0 { margin: 0 !important; }
.u-mt-0 { margin-top: 0 !important; }
.u-mt-4 { margin-top: 4px !important; }
.u-mt-6 { margin-top: 6px !important; }
.u-mt-8 { margin-top: 8px !important; }
.u-mt-10 { margin-top: 10px !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-14 { margin-top: 14px !important; }
.u-mt-16 { margin-top: 16px !important; }
.u-mt-18 { margin-top: 18px !important; }
.u-mt-22 { margin-top: 22px !important; }
.u-mt-28 { margin-top: 28px !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-mb-2 { margin-bottom: 2px !important; }
.u-mb-6 { margin-bottom: 6px !important; }
.u-mb-10 { margin-bottom: 10px !important; }
.u-mb-12 { margin-bottom: 12px !important; }
.u-mb-18 { margin-bottom: 18px !important; }
.u-ml-auto { margin-left: auto !important; }
.u-pt-12 { padding-top: 12px !important; }
.u-p-24-28 { padding: 24px 28px !important; }
.u-p-26-28 { padding: 26px 28px !important; }
.u-fs-12-5 { font-size: 12.5px !important; }
.u-fs-13 { font-size: 13px !important; }
.u-fs-16 { font-size: 16px !important; }
.u-lh-155 { line-height: 1.55 !important; }
.u-bt { border-top: 1px solid var(--border) !important; }
.u-block { display: block !important; }
.u-abs { position: absolute !important; }
.u-maxw-480 { max-width: 480px !important; }
.u-gap-12 { gap: 12px !important; }
.u-wrap { flex-wrap: wrap !important; }
.u-grow-220 { flex: 1 1 0% !important; min-width: 220px !important; }
.u-ai-start { align-items: flex-start !important; }
.u-jc-end { justify-content: flex-end !important; }
.u-split { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; flex-wrap: wrap !important; }

/* First piece (/onboarding/first-piece), the topic picker, the Briefs banner and the brief page's first-piece lines. */
.obstep { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.obgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
.obleft, .obright { min-width: 0; }
.obright p { margin: 8px 0 14px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.obtopics { margin-top: 0; }
.obtopics-head h2 { margin: 0 0 4px; font-size: 17px; }
.obtopics-head p { margin: 0 0 6px; font-size: 13.5px; }
.obother { margin-top: 10px; }
.obplatforms { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.obplatforms .hint { margin: 10px 0 0; }
/* The "What to make" row on the first piece (onboarding step three): New brief's media type tiles with a
   count line under each. The pickers under it are the shipped ones (.cspick, .tpick), spaced alike. */
.fpkinds { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.fpkinds .mtypes { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; margin-top: 8px; }
.mtype small { font-size: 11.5px; font-weight: 400; color: var(--text-subtle); }
.mtype.on small { color: var(--text-muted); }
.tpick.fp { margin: 22px 0 0; }
.fpsource { margin: 22px 0 0; }
@media (max-width: 520px) {
  .fpkinds .mtypes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fpkinds .mtype { padding: 12px 6px 10px; font-size: 12.5px; }
}
.obcheck { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); margin-top: 8px; cursor: pointer; position: relative; }
.obcheck.on { border-color: var(--accent); background: var(--accent-tint); }
.obcheck i { width: 18px; height: 18px; border-radius: var(--radius-xs); border: 1.5px solid var(--border-strong); background: var(--surface); flex: none; margin-top: 1px; position: relative; }
.obcheck input:checked + i { border-color: var(--primary); background: var(--primary); }
.obcheck input:checked + i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.obcheck input:focus-visible + i { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.obcheck > span { display: flex; flex-direction: column; }
.obcheck b { font-weight: 600; font-size: 14px; }
.obcheck small { color: var(--text-muted); font-size: 12.5px; }
.obshapes { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.obshape { display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; width: 110px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--accent-tint); color: var(--text-muted); font-size: 11.5px; font-weight: 600; }
.obshape.square { aspect-ratio: 1 / 1; }
.obshape.portrait { aspect-ratio: 4 / 5; }
.obalerts:empty { display: none; }
.obalerts { margin-top: 16px; }
.obactions { margin-top: 20px; }
.obmake { margin-top: 14px; }
.obsticky { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.obsticky small { color: var(--text-muted); font-size: 12px; text-align: center; }
.obbanner:empty { display: none; }
.obbanner { margin: 12px 0; }
.obfoot { margin-top: 16px; }
@media (max-width: 860px) { .obgrid { grid-template-columns: minmax(0, 1fr); } .obright { display: none; } }
@media (max-width: 900px) { .obactions { display: none; } }

/* ==================================================================== Gild W2: first impressions
   Gild peeking over the sign-in card and the workspace form (fox-peek.js), his bubbles there and on
   the first-piece page, the pawprint trail on the setup home and the Approved stamp on a first piece
   (fox-paw.js). Every change is a class, since the CSP refuses style attributes, and reduced motion
   gets the still frame. Keep this block together: W3 adds its own block after it. */
.peekhost { position: relative; }
.access.peekhost { margin-top: 112px; }
.wsform.peekhost { margin-top: 84px; }
.peekrow + .wsform.peekhost { margin-top: 0; }
/* The peek pose without its drawn card, cropped to head, paws and tail tip (PEEK_VIEWBOX), so his
   paws rest on the real card's top border. The idle pivots move by the crop's origin (60, 156). */
.gild.peek-over { aspect-ratio: 330 / 244; margin-bottom: -3px; }
.peek-over .g-card { display: none; }
.peek-over.gild-idle .g-tail { transform-origin: 216px 264px; }
.peek-over.gild-idle .g-fox { transform-origin: 140px 312px; }
/* His eyes follow the focused field: the form lies below and to his left, so each field down looks
   a little further down and left. The blink scales .g-eyes, so the look moves its children. */
.peek-over .g-eyes > * { transition: transform var(--dur-base) var(--ease-standard); }
.peek-over.look-1 .g-eyes > * { transform: translate(-3px, 2px); }
.peek-over.look-2 .g-eyes > * { transform: translate(-4px, 4px); }
.peek-over.look-3 .g-eyes > * { transform: translate(-5px, 5px); }
.peek-over.look-4 .g-eyes > * { transform: translate(-5px, 6px); }
.peek-over.look-5 .g-eyes > * { transform: translate(-6px, 7px); }
.peek-over.gasp .g-head { transform-box: fill-box; transform-origin: 50% 100%; }
/* The sign-in bubble floats above the card, to his left; the form's bubble sits in a row above it. */
.peeksay, .peekbubble { position: relative; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: var(--text); box-shadow: var(--shadow-1); }
.peeksay::after, .peekbubble::after { content: ""; position: absolute; right: -7px; bottom: 16px; width: 12px; height: 12px; background: var(--surface-raised); border-top: 1px solid var(--border); border-right: 1px solid var(--border); transform: rotate(45deg); }
.access .peeksay { position: absolute; right: 124px; bottom: calc(100% + 10px); max-width: 260px; margin: 0; }
.peeksay[hidden] { display: none; }
.peekrow { display: flex; justify-content: flex-end; align-items: flex-end; min-height: 84px; padding: 0 124px 12px 0; }
.peekbubble { max-width: 380px; }
.peekline { margin: 0; }
.peekline + .peekline:not([hidden]) { margin-top: 6px; }
.peekline[hidden] { display: none; }
.obfox { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 6px; }
.peekbubble.side { margin: 0 0 18px; max-width: none; }
.peekbubble.side::after { right: auto; left: -7px; transform: rotate(-135deg); }
/* The pawprint trail: three prints walking toward the next step, a full fox's walking in one by one. */
.pawtrail { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); margin-right: 10px; }
.paw { width: 22px; height: 22px; display: block; fill: currentColor; transform: rotate(90deg); }
.paw .paw-facet { opacity: .55; fill: var(--surface); }
.pawtrail .paw-1, .pawtrail .paw-3 { transform: translateY(-4px) rotate(90deg); }
.pawtrail .paw-2 { transform: translateY(4px) rotate(90deg); }
.pawlabel { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
/* The Approved stamp, set at a tilt; a fresh one lands with a thud. */
.pawstamp { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 2px solid var(--accent); border-radius: var(--radius-sm); color: var(--accent-text); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-8deg); }
.pawstamp .paw { width: 18px; height: 18px; transform: none; }
.piecefox { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.alert > .piecefox:last-child { align-self: center; }
@media (prefers-reduced-motion: no-preference) {
  .peek-over.gasp .g-head { animation: peek-gasp .5s var(--ease-premium) both; }
  .pawtrail.walk .paw { animation: paw-step .45s var(--ease-enter) both; }
  .pawtrail.walk .paw-2 { animation-delay: .35s; }
  .pawtrail.walk .paw-3 { animation-delay: .7s; }
  .pawtrail.walk .pawlabel { animation: paw-fade .4s var(--ease-enter) 1s both; }
  .pawstamp.thud { animation: paw-thud .38s cubic-bezier(.3, 1.4, .5, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .peek-over .g-eyes > * { transition: none; }
  .peek-over.gasp .g-head, .pawtrail.walk .paw, .pawtrail.walk .pawlabel, .pawstamp.thud { animation: none; }
}
@keyframes peek-gasp { 0%, 100% { transform: none; } 35% { transform: translateY(-8px) scale(1.06); } }
@keyframes paw-step { from { opacity: 0; } to { opacity: 1; } }
@keyframes paw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes paw-thud { from { opacity: 0; transform: scale(1.7) rotate(-8deg); } to { opacity: 1; transform: rotate(-8deg); } }
@media (max-width: 560px) {
  .access.peekhost { margin-top: 120px; }
  .access .peeksay { right: 116px; left: 0; max-width: none; }
  .peekrow { padding-right: 116px; }
  .alert .piecefox .gild-s64 { width: 48px; }
}
/* ==================================================================== end Gild W2 */

/* ===== Gild everywhere W3: everyday (begin) =====
   The header mark and its panel (public/gild-shell.js), the empty and error scenes and the loading line
   (public/views/common.js), the toasts with his head (public/app.js) and the Worker page's Today log
   (public/views/worker.js). Tokens only, every value a class (the CSP refuses style attributes), and
   every motion sits under no-preference, so reduced motion is the still frame. Keyframes are ev-, the
   kit's gild- loop stays in its own block. */

/* Empty and error scenes: the guidance stays first in the page; the figure is drawn above it. */
.empty.gscene { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gscene-fig { order: -1; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 10px; }
.gscene-said { margin: 0; font-size: 13px; font-style: italic; color: var(--text-muted); max-width: 360px; }
.alert.gscene-alert { align-items: center; }
.alert.gscene-alert .gscene-said { margin-top: 4px; color: var(--text); }

/* Loading: a small sitting fox beside the words, after a 400 ms wait so a quick answer never flashes him. */
.gload { display: flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .gload { animation: ev-appear .25s ease-out .4s both; }
}

/* The header mark: a button holding the badge fox, the dot and the words. */
.gmark { display: inline-flex; align-items: center; gap: 7px; position: relative; padding: 4px 8px; margin: 0 -8px; background: none; border: 0; border-radius: var(--radius-md); font: inherit; font-size: 12px; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.gmark:hover { background: var(--accent-tint); color: var(--text); }
.gmark:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.gmark[aria-expanded="true"] { background: var(--accent-tint); color: var(--text); }
.gmark-art { display: inline-flex; line-height: 0; }
.gmark-art:empty { display: none; }
.gmark.is-news .gmark-text { color: var(--text); font-weight: 600; }
/* At full: a little z drifts off him while the worker sleeps, three dots type while he writes. */
.gmark.full.is-offline::after, .gmark.full.is-writing::after { position: absolute; left: 22px; top: -2px; font-size: 10px; font-weight: 700; line-height: 1; color: var(--text-subtle); pointer-events: none; }
.gmark.full.is-offline::after { content: "z"; }
.gmark.full.is-writing::after { content: "..."; left: 20px; top: 0; letter-spacing: 1px; color: var(--accent-text); }
@media (prefers-reduced-motion: no-preference) {
  .gmark.full.is-offline::after { animation: ev-doze 2.6s ease-in-out infinite; }
  .gmark.full.is-writing::after { animation: ev-type 1.2s steps(4, end) infinite; }
}

/* The panel under the header: what he is writing, what waits for this person, and today's log. */
.gpanel { position: absolute; top: 56px; right: 20px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow-y: auto; z-index: 25; background: var(--surface-raised); color: var(--text); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 16px 18px; font-size: 13.5px; }
.gpanel[hidden] { display: none; }
.gpanel-head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.gpanel-head > div { min-width: 0; }
.gpanel-state { display: flex; align-items: center; gap: 7px; margin: 0; font-weight: 700; font-size: 14px; }
.gpanel-line { margin: 4px 0 0; color: var(--text-muted); line-height: 1.45; }
.gpanel-note { color: var(--text-muted); font-size: 12px; }
.gpanel-head .gpanel-note { margin: 4px 0 0; }
.gpanel-sec { padding-top: 12px; }
.gpanel-sec h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.gpanel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gpanel-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.gpanel-list a { color: var(--text); font-weight: 600; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpanel-list a:hover { text-decoration: underline; }
.gpanel-list .gpanel-note { flex: none; }
.gpanel-day li { justify-content: flex-start; }
.gpanel-day li > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpanel-time { flex: none; width: 44px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-subtle); }
.gpanel-empty { margin: 0; color: var(--text-muted); }
.gpanel-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.gpanel-foot a { color: var(--accent-text); font-weight: 700; text-decoration: none; }

/* Toasts that carry his head: the join and the new-version offer. */
.toast.gtoast { align-items: center; }
.toast.gtoast > .gild { flex: none; }

/* The Worker page's Today log: a card padded like the side cards, its heading in their small caps. */
.card.gday { padding: 18px 20px; }
.gday-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.gday-head h3 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-subtle); }
.gday-head .muted { font-size: 12.5px; }
.gday-list { list-style: none; margin: 0; padding: 0; }
.gday-list li { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; min-width: 0; }
.gday-list li:first-child { border-top: 0; }
.gday-list a { color: var(--text); font-weight: 600; }
.gday-time { flex: none; width: 52px; font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle); }
.gday-note { margin: 0; }
.gday .empty { padding: 20px 12px; }

.top .gmark-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.top .gmark { margin: 0; padding: 4px; }
@media (max-width: 900px) {
  .gmark { margin: 0; padding: 4px; }
  .gmark-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .gpanel { left: 16px; right: 16px; width: auto; }
}

@keyframes ev-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes ev-doze { 0% { opacity: 0; transform: translate(0, 2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -8px); } }
@keyframes ev-type { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
/* ===== Gild everywhere W3: everyday (end) ===== */

/* ===== Gild everywhere W4: at work (begin) =====
   The gilding meter, the dropped-it callout, the approve stamp, the Approved and Scheduled cards, the
   changes echo, the archive sweep with its Undo, the publish plane (public/views/brief.js), the row fox
   (public/views/common.js statusCell), the approvals head, the outreach draft and the topic ideas.
   Quiet and off are decided in the views (no bubble, no reaction drawn), so nothing here keys on the
   intensity. Tokens only, every value a class, every motion under no-preference. Keyframes are wk-. */

/* His line in a bubble: the tail points left at him by default, up from below him with .up. */
.gx-say { position: relative; margin: 0; display: inline-block; max-width: 300px; padding: 9px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-1); font-size: 13.5px; line-height: 1.4; color: var(--text); }
.gx-say::after { content: ""; position: absolute; left: -7px; bottom: 12px; width: 12px; height: 12px; background: var(--surface-raised); border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); transform: rotate(45deg); }
.gx-say.up::after { left: 22px; bottom: auto; top: -7px; transform: rotate(135deg); }
.gx-say.right::after { left: auto; right: -7px; transform: rotate(225deg); }
.gx-duo { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.gx-duo > .gild { flex: none; }
.gx-text { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.gx-note { font-size: 12.5px; color: var(--text-subtle); margin: 8px 0 0; }

/* The gilding meter: a 128 px fox lit part by part as the steps pass, his line under him. */
.gx-gen { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 24px; align-items: start; }
.gx-meter { display: grid; justify-items: center; gap: 10px; }
.gx-meter .gx-say { max-width: 170px; font-size: 13px; }
.gx-meter .gx-say::after { left: 50%; bottom: auto; top: -7px; margin-left: -6px; transform: rotate(135deg); }
@media (max-width: 600px) {
  .gx-gen { grid-template-columns: minmax(0, 1fr); }
  .gx-meter { grid-template-columns: 96px minmax(0, 1fr); justify-items: start; align-items: center; }
  .gx-meter > .gild { width: 96px; height: auto; }
  .gx-meter .gx-say::after { left: -7px; top: auto; bottom: 12px; margin-left: 0; transform: rotate(45deg); }
}

/* The row fox: his head beside a brief's status in the lists. */
.gx-rowfox { display: inline-flex; align-items: center; gap: 6px; }
.gx-rowfox > .gild { flex: none; }
.gx-rowstatus .stnote, .gx-rowstatus .pbar { margin-left: 38px; }

/* A failed brief: the cloth callout under the red alert. */
.gx-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 18px 20px; margin: 14px 0 18px; }
.gx-callout p { margin: 0; }
.gx-callout.plain { grid-template-columns: minmax(0, 1fr); }
.gx-callout .actions { margin-top: 12px; }

/* Reactions drawn over a card: the approve stamp, the plane. */
.gx-host { position: relative; }
.drawer.gx-host .gild-peek { right: auto; left: 22px; }
.gx-react { position: absolute; z-index: 6; pointer-events: none; }
.gx-stampfx { inset: 0; display: grid; place-items: center; }
.gx-stampmark { font-family: var(--font-display); font-weight: 800; font-size: 42px; letter-spacing: 3px; color: var(--vermilion-500); border: 5px solid var(--vermilion-500); border-radius: 10px; padding: 4px 18px; transform: rotate(-9deg); background: color-mix(in srgb, var(--paper-0) 82%, transparent); }
.gx-stampfx .gx-stamptool { position: absolute; top: 6%; left: 50%; margin-left: -48px; }
.gx-stampfx .gx-stamppaw { position: absolute; right: 18%; bottom: 14%; width: 34px; height: 34px; color: var(--vermilion-500); transform: rotate(-12deg); }
.gx-planefx { left: 0; right: 0; top: 0; height: 0; overflow: visible; }
.gx-planefx .gild { position: absolute; right: 18px; top: -30px; }
.gx-sweepfx { position: fixed; left: 0; right: 0; top: 38%; height: 180px; overflow: hidden; z-index: 30; }
.gx-sweepfx .gild { position: absolute; left: -160px; top: 0; }
.gx-changesay { display: block; margin-top: 12px; }

/* The approvals head and the other side-by-side pairs: fox and bubble on one center line. */
.gx-approvalsduo, .gx-ideas .gx-duo, .gx-draft .gx-duo { align-items: center; }
.gx-approvalsduo .gx-say, .gx-ideas .gx-duo .gx-say, .gx-draft .gx-duo .gx-say { margin-bottom: 0; }
.empty .gx-emptysay { display: flex; justify-content: center; margin: 4px 0 14px; }

/* The outreach draft and the topic ideas. */
.gx-draft .actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.gx-quote { margin: 10px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface-sunken); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.gx-slot.is-piece { background: var(--accent-tint); border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.gx-ideas ul.links li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .gx-stampfx .gx-stamptool { animation: wk-stamp-tool 1.1s cubic-bezier(.3, 1.4, .5, 1) both; }
  .gx-stampfx .gx-stampmark { animation: wk-stamp-hit .5s cubic-bezier(.2, 1.6, .4, 1) .38s both; }
  .gx-planefx .gild { animation: wk-fly 1.3s cubic-bezier(.5, 0, .7, .4) both; }
  .gx-sweepfx .gild { animation: wk-broom 1.1s ease-in-out both; }
  .gx-pop { animation: wk-pop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
  .gx-in { animation: wk-fade .45s ease-out both; }
  .gx-gilding > .gild { animation: wk-gild .8s ease-out both; }
}
/* Reduced motion: the stamp lands still, and the plane and the broom are not drawn at all. */
@media (prefers-reduced-motion: reduce) {
  .gx-planefx, .gx-sweepfx, .gx-stampfx .gx-stamptool { display: none; }
}
@keyframes wk-stamp-tool { 0% { transform: translateY(-120px) rotate(-14deg); opacity: 0; } 35% { transform: translateY(10px) rotate(-4deg); opacity: 1; } 50% { transform: translateY(0) rotate(-4deg); } 100% { transform: translateY(-150px) rotate(-12deg); opacity: 0; } }
@keyframes wk-stamp-hit { 0% { transform: rotate(-9deg) scale(1.6); opacity: 0; } 100% { transform: rotate(-9deg) scale(1); opacity: 1; } }
@keyframes wk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wk-fly { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(260px, -240px) rotate(-14deg) scale(.6); opacity: 0; } }
@keyframes wk-broom { 0% { transform: translateX(0) rotate(-10deg); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(calc(100vw + 170px)) rotate(14deg); opacity: 0; } }
@keyframes wk-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes wk-gild { from { opacity: 0; filter: saturate(0); } to { opacity: 1; filter: none; } }
/* ===== Gild everywhere W4: at work (end) ===== */

/* ===== Gild everywhere W5: delight (start) =====
   Profile (sound and touch, wardrobe, sticker book and its picture), the Monday report and moods at
   the top of Briefs, the settings tips and the brand scarf, the Connections cable, the People wave,
   the billing limit note, and the secrets (gild-secrets.js). Motion is class driven and lives inside
   the no-preference block; reduced motion gets the still frame, and the secrets never run at all. */
.gx-sticker { display: block; flex: none; }
.gx-sticker.gx-lg { width: 84px; height: 84px; }
.gx-sticker.gx-sm { width: 30px; height: 30px; }
.gx-kick { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-subtle); }
.gx-stack { display: grid; width: 128px; }
.gx-stack > * { grid-area: 1 / 1; }
.gx-stack .gild { width: 100%; height: auto; }

/* Profile */
.gx-setgroup { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.gx-setgroup h3 { margin: 0 0 4px; font-size: 14px; }
.gx-setgroup .fine { margin: 8px 0 0; }
.gx-setrow .t { gap: 2px; }
.gx-hear { display: flex; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.gx-wardrobe, .gx-stickers { margin-top: 16px; }
.gx-wtiles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gx-wtile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.gx-wvis { position: relative; display: flex; justify-content: center; margin-bottom: 6px; }
.gx-wtile small { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.gx-lockedart .gx-wvis .gild { filter: grayscale(1); opacity: .45; }
.gx-sbhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gx-sgrid { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gx-sgrid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.gx-sgrid b { font-size: 13px; font-weight: 600; }
.gx-sgrid small { font-size: 12px; color: var(--text-muted); }
.gx-notyet b { color: var(--text-muted); }
.gx-sharecard { margin-top: 14px; }
.gx-sharepic { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--graphite-900); color: var(--paper-0); max-width: 460px; }
.gx-sharepic .gx-kick { color: var(--graphite-300); }
.gx-sharettl { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; margin: 2px 0 8px; overflow-wrap: anywhere; }
.gx-sharerow { display: flex; gap: 4px; flex-wrap: wrap; }
.gx-sharecount { display: block; margin-top: 8px; font-size: 13px; color: var(--graphite-300); }
.gx-sharecard .actions { margin-top: 12px; }
.gx-sharecard .fine { margin: 8px 0 0; }
.gx-teamrows { list-style: none; margin: 10px 0 0; padding: 0; }
.gx-teamrows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.gx-teamrows li:first-child { border-top: 0; }
.gx-teamrows .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gx-teamrows .num { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.gx-teamrows .wsmark { width: 32px; height: 32px; font-size: 13px; }

/* Monday report and moods, in the onboarding banner slot at the top of Briefs */
.gx-mondayslot:empty { display: none; }
.gx-monday { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; padding: 18px 22px; margin-bottom: 16px; }
.gx-monday.nofox { grid-template-columns: minmax(0, 1fr); }
.gx-mline { margin: 4px 0 0; font-family: var(--font-display); font-size: 19px; line-height: 1.3; letter-spacing: -.01em; max-width: 640px; }
.gx-nums { display: flex; gap: 28px; margin: 12px 0 0; flex-wrap: wrap; }
.gx-nums div { display: flex; flex-direction: column-reverse; }
.gx-nums dt { font-size: 12.5px; color: var(--text-muted); }
.gx-nums dd { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gx-next { margin: 12px 0 0; font-size: 14px; }
.gx-monday .actions { margin-top: 12px; }
.gx-moodstrip { display: flex; align-items: center; gap: 16px; padding: 12px 18px; margin-bottom: 16px; }
.gx-moodstack { width: 64px; flex: none; }
.gx-moodsay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Settings tips and the brand scarf */
.gx-tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 12px 18px; margin: 0 0 16px; }
.gx-tip.nofox { grid-template-columns: minmax(0, 1fr); }
.gx-tip .t { min-width: 0; }
.gx-tipline { margin: 0; font-size: 14.5px; }
.gx-tip .actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Help panel (W5, help-panel.js): the menu drawer's frame, a little wider, opened from Help in the footer */
.foot .gx-helplink { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
dialog.gx-helpdrawer { display: none; width: min(360px, 88vw); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: var(--radius-xl) 0 0 var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); overflow: hidden; }
dialog.gx-helpdrawer[open] { display: flex; flex-direction: column; animation: drawer-in .22s ease-out; }
dialog.gx-helpdrawer::backdrop { background: var(--overlay); }
.gx-helph { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -.01em; }
.gx-helpbody { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 22px; align-content: start; }
.gx-helpbody section + section { padding-top: 18px; border-top: 1px solid var(--border); }
.gx-helpbody h3 { margin: 0 0 4px; font-size: 14px; }
.gx-helpbody .fine { margin: 4px 0 0; }
.gx-helpbody .actions { margin-top: 12px; }
.gx-helpduo { align-items: flex-end; margin-bottom: 0; }
.gx-helpduo .gx-say { max-width: 220px; }
.gx-tiplist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.gx-tiplist li { display: flex; gap: 8px; flex-wrap: wrap; color: var(--text-muted); }
.gx-tiplist b { color: var(--text); font-weight: 600; }
.gx-cform { margin-top: 14px; }
.gx-cform .field { margin: 0 0 14px; }
.gx-cws { display: flex; gap: 8px; align-items: flex-start; }
.gx-cws .ic { margin-top: 2px; }
.gx-cform .alert { margin: 12px 0 0; }
.gx-csent { margin-top: 14px; display: grid; gap: 10px; }
.gx-csentmsg { margin: 0; font-size: 14px; line-height: 1.5; }
.gx-scarfgrid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px 28px; align-items: center; }
.gx-scarfstack { justify-self: center; }
.gx-scarffacts { margin: 0 0 14px; }
.gx-scarffacts dt { font-size: 12.5px; color: var(--text-subtle); }
.gx-scarffacts dd { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gx-scarffacts small { color: var(--text-muted); font-size: 12.5px; }
.gx-chip { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border); }

/* Connections: the cable, unplugged while Google wants a fresh sign-in, plugged back in after */
.gx-cxduo { align-items: center; margin-bottom: 14px; }
.gx-cxduo .gx-say { margin-bottom: 0; max-width: 420px; }
.gx-cxduo .gx-art { display: flex; align-items: flex-end; }
.gx-cable { width: 72px; height: auto; margin-left: -10px; }

/* People */
.gx-joined { display: inline-flex; align-items: center; }
.gx-wave { display: inline-flex; margin-left: 8px; }

/* Billing: Gild's line at Full, the plain line otherwise */
.gx-limit { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); }
.gx-limit p { margin: 0; font-size: 14px; }
.gx-limit .gx-say { max-width: 460px; }

/* Secrets. The wall is a painted scene, so its colors are fixed whatever the theme, like the art. */
.gx-pokesay { position: fixed; z-index: 40; max-width: 220px; margin: 0; pointer-events: none; }
.gx-dock { position: fixed; right: 22px; bottom: 22px; z-index: 30; pointer-events: none; }
.gx-wall { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; padding: 24px 16px; background: color-mix(in srgb, var(--graphite-950) 82%, transparent); cursor: pointer; }
.gx-wall:focus { outline: none; }
.gx-bricks { position: relative; width: min(860px, 100%); height: min(520px, 76vh); border-radius: 12px; overflow: hidden;
  background-color: var(--wall-brick);
  background-image: linear-gradient(var(--wall-mortar) 3px, transparent 3px), linear-gradient(90deg, var(--wall-mortar) 3px, transparent 3px), linear-gradient(90deg, var(--wall-mortar) 3px, transparent 3px);
  background-size: 100% 40px, 90px 80px, 90px 80px; background-position: 0 0, 0 0, 45px 40px; }
.gx-tag { position: absolute; font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 0 var(--wall-shadow); white-space: nowrap; }
.gx-tag0 { left: 6%; top: 8%; font-size: 64px; color: var(--vermilion-400); transform: rotate(-6deg); }
.gx-tag1 { right: 7%; top: 40%; font-size: 40px; color: var(--wall-gold); transform: rotate(5deg); }
.gx-tag2 { left: 8%; bottom: 12%; font-size: 30px; color: var(--paper-50); transform: rotate(-3deg); }
.gx-tag3 { left: 40%; top: 30%; font-size: 24px; color: var(--wall-sea); transform: rotate(8deg); max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.gx-tag4 { right: 10%; bottom: 10%; font-size: 26px; color: var(--paper-50); transform: rotate(-9deg); }
.gx-tag5 { left: 10%; top: 46%; font-size: 20px; color: var(--graphite-300); transform: rotate(4deg); }
.gx-wallfox { position: absolute; left: 50%; bottom: 0; margin-left: -80px; line-height: 0; }
.gx-bricks .gx-paw { position: absolute; width: 60px; height: auto; fill: currentColor; color: var(--paper-50); opacity: .7; }
.gx-bricks .gx-paw .paw-facet { fill: var(--wall-brick); opacity: .55; }
.gx-bricks .gx-paw:nth-of-type(1) { right: 30%; top: 12%; transform: rotate(18deg); }
.gx-bricks .gx-paw:nth-of-type(2) { left: 28%; bottom: 30%; transform: rotate(-14deg); }
.gx-wallnote { margin: 12px 0 0; color: var(--paper-50); font-size: 13.5px; text-align: center; }

/* Motion. The trick rules name .gild as well, so they outrank the idle breathe on .gild-tall. */
.gx-shine { position: relative; display: inline-block; overflow: hidden; border-radius: 50% 50% 18px 18px; }
.gx-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--paper-0) 55%, transparent) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .gild.gx-wiggle .g-fox { transform-box: view-box; transform-origin: 200px 468px; animation: gx-wiggle .45s ease-in-out; }
  .gild.gx-dance .g-fox { transform-box: view-box; transform-origin: 200px 468px; animation: gx-dance 1.6s ease-in-out; }
  .gild.gx-spin .g-fox { transform-box: view-box; transform-origin: 200px 300px; animation: gx-spin .9s cubic-bezier(.4, 0, .2, 1); }
  .gild.gx-flip .g-fox { transform-box: view-box; transform-origin: 200px 300px; animation: gx-flip 1s cubic-bezier(.4, 0, .2, 1); }
  .gild.gx-stretch .g-arm-l, .gild.gx-stretch .g-arm-r { transform-box: view-box; transform-origin: 200px 304px; animation: gx-reach 2.4s ease-in-out infinite; }
  .gx-shine::after { animation: gx-shine 2.6s ease-in-out infinite; }
  .gx-cable.gx-plugin .g-plug { animation: gx-plugin .5s cubic-bezier(.2, 1.4, .4, 1) both; }
}
@keyframes gx-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes gx-dance { 0%, 100% { transform: rotate(0) translateY(0); } 12% { transform: rotate(-9deg) translateY(-14px); } 25% { transform: rotate(0) translateY(0); } 37% { transform: rotate(9deg) translateY(-14px); } 50% { transform: rotate(0); } 62% { transform: rotate(-9deg) translateY(-14px); } 75% { transform: rotate(0); } 87% { transform: rotate(9deg) translateY(-14px); } }
@keyframes gx-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes gx-flip { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-90px) rotate(-120deg); } 70% { transform: translateY(-90px) rotate(-280deg); } 100% { transform: translateY(0) rotate(-360deg); } }
@keyframes gx-reach { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.06) translateY(-8px); } }
@keyframes gx-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes gx-plugin { from { transform: translateX(-34px); } to { transform: none; } }

@media (max-width: 600px) {
  .gx-wtiles { grid-template-columns: minmax(0, 1fr); }
  .gx-sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gx-monday { grid-template-columns: minmax(0, 1fr); }
  .gx-monday .gild { width: 64px; height: auto; }
  .gx-scarfgrid { grid-template-columns: minmax(0, 1fr); }
  .gx-sharepic { flex-direction: column; align-items: flex-start; }
  .gx-mline { font-size: 17px; }
  .gx-tag0 { font-size: 40px; } .gx-tag1 { font-size: 28px; }
  .gx-dock { right: 12px; bottom: 12px; }
  .gx-dock .gild { width: 64px; height: auto; }
}
/* ===== Gild everywhere W5: delight (end) ===== */

/* Connections: each platform's own mark (public/brand-marks.js). Brand colors are fixed in both themes; TikTok's single-color mark follows the text color. */
.cx-lead.cx-brand { background: var(--surface-sunken); }
.cx-lead .bm { width: 24px; height: 24px; display: block; }
.bm-white { fill: var(--bm-glyph); }
.bm-g-blue { fill: var(--bm-g1); } .bm-g-green { fill: var(--bm-g2); } .bm-g-yellow { fill: var(--bm-g3); } .bm-g-red { fill: var(--bm-g4); }
.bm-ga-hi { fill: var(--bm-analytics-hi); } .bm-ga-lo { fill: var(--bm-analytics-lo); }
.bm-fb-disc { fill: var(--bm-facebook); }
.bm-li-tile { fill: var(--bm-linkedin); }
.bm-bsky { fill: var(--bm-bluesky); }
.bm-tt { fill: var(--text); }
.bm-line { fill: none; stroke: var(--text); stroke-width: 2.1; }
.bm-dot { fill: var(--text); }

/* The event question (event-card.js, docs/month-plan.md section 17). It sits on the setup home
   between the checklist and the first piece, and on Briefs folded into the banner slot. */
.evq { padding: 18px 20px; }
.evq-kick { font-size: 12px; color: var(--text-muted); margin: 0 0 4px; }
.evq h2 { font: 700 19px/1.25 var(--font-display); letter-spacing: -.01em; margin: 0 0 4px; }
.evq-lead { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); max-width: 60ch; }
.evq .field { margin-bottom: 12px; }
.evq-eg { margin: 0 0 14px; font-size: 12.5px; color: var(--text-subtle); line-height: 1.5; }
.evq .actions { margin-top: 4px; }
.evq-skipped { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; font-size: 13.5px; color: var(--text-muted); }
.evq-skipped .btn { margin-left: auto; }
.evq-saved { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13.5px; }
.evq-saved .btn { margin-left: auto; }

/* The read-back: what was understood, as plain facts, with a yes before anything is saved. */
.evq-read { margin: 0 0 14px; padding: 14px 16px; border: 1.5px solid var(--accent); border-radius: var(--radius-lg); background: var(--accent-tint); }
.evq-read > p { margin: 0 0 8px; font-size: 12.5px; color: var(--text-muted); }
.evq-read dl { margin: 0; display: grid; gap: 8px; }
.evq-read dt { font-size: 12px; font-weight: 700; margin: 0 0 2px; }
.evq-read dd { margin: 0; font-size: 14px; line-height: 1.4; }
.evq-read dd small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.evq-dates { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.evq-dates .field { margin: 0; flex: 1 1 150px; min-width: 0; }
.evq .alert { margin: 0 0 14px; }

/* The month calendar after saving: a promotion band across its days, and a closed day. */
.cal-cell.promo { box-shadow: inset 0 -3px 0 var(--warning); }
.cal-cell.closed { background: var(--surface-sunken); }
.promo-label, .closed-label { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.3; color: var(--text-muted); overflow-wrap: anywhere; }
.promo-label { color: var(--warning); font-weight: 600; }
.closed-label { color: var(--text); font-weight: 600; }
.closed-note { font-size: 11px; line-height: 1.3; color: var(--text-subtle); }

/* The week's Events lane, above the channels: the band across a promotion's days, a closed day. */
.lname.events { color: var(--text-muted); }
.pf.events { background: var(--surface-raised); color: var(--warning); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pband { display: flex; align-items: center; gap: 6px; padding: 8px 10px; min-width: 0; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--warning); box-shadow: inset 0 -3px 0 var(--warning); overflow-wrap: anywhere; }
.pband.closed { color: var(--text); background: var(--surface-sunken); box-shadow: none; }
.pband.s1 { grid-column: span 1; } .pband.s2 { grid-column: span 2; } .pband.s3 { grid-column: span 3; } .pband.s4 { grid-column: span 4; }
.pband.s5 { grid-column: span 5; } .pband.s6 { grid-column: span 6; } .pband.s7 { grid-column: span 7; }
.lhead.promo { box-shadow: inset 0 -3px 0 var(--warning); }
@media (max-width: 1000px) { .pband { padding: 6px; font-size: 11px; } }

/* Phone day list: the promotion or closure heads the day. */
.ag-day .promo-tag { color: var(--warning); font-weight: 600; letter-spacing: 0; text-transform: none; }
.ag-row.closed { background: var(--surface-sunken); cursor: default; }

/* Promotions and events (settings-promotions.js): the list the question feeds. */
.evlist .list td small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.evlist .st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }

@media (max-width: 760px) {
  .evq { padding: 16px; }
  .evq-skipped { padding: 12px 16px; }
  .evq-skipped .btn, .evq-saved .btn { margin-left: 0; }
  .evlist .st { white-space: normal; }
  .evlist td .actions { margin-top: 8px; }
}

/* The TikTok settings panel in the approve drawer (public/tiktok-panel.js) */
.tt-panel { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.tt-panel[hidden] { display: none; }
.tt-who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.tt-who .n { flex: 1; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.tt-who .n b { font-weight: 700; }
.tt-body { padding: 14px; }
.tt-body .field { margin-bottom: 16px; }
.tt-body .alert { margin-bottom: 12px; }
.tt-media { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; }
.tt-thumb { position: relative; width: 84px; aspect-ratio: 9 / 16; border-radius: var(--radius-md); background: linear-gradient(160deg, var(--graphite-700) 0%, var(--graphite-900) 55%, var(--vermilion-900) 100%); border: 1px solid var(--border); flex: none; overflow: hidden; color: var(--on-overlay); }
.tt-thumb .dur, .tt-thumb .pg { position: absolute; font: 500 10px var(--font-mono); background: var(--overlay); color: var(--on-overlay); padding: 1px 5px; border-radius: 4px; }
.tt-thumb .dur { bottom: 5px; right: 5px; }
.tt-thumb .pg { top: 5px; left: 5px; }
.tt-meta { font-size: 13px; min-width: 0; display: grid; gap: 4px; }
.tt-meta b { font-weight: 700; }
.tt-meta .over { color: var(--danger); font-weight: 600; }
.tt-meta .okline { color: var(--text-muted); }
.tt-save { margin-top: 8px; }
.tt-save[hidden], .tt-save > [hidden] { display: none; }
.tt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.tt-row + .tt-row { border-top: 1px solid var(--border); }
.tt-row .t { display: grid; gap: 1px; min-width: 0; }
.tt-row .t span { font-size: 14px; font-weight: 500; }
.tt-row .t small { font-size: 12px; color: var(--text-muted); }
.tt-row.locked .t span { color: var(--text-subtle); }
.tt-box { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.tt-sub { padding: 12px; display: grid; gap: 10px; border-top: 1px solid var(--border); }
.tt-sub[hidden] { display: none; }
.tt-chk { align-items: flex-start; }
.tt-chk small { display: block; margin-left: 0; font-family: var(--font-sans); color: var(--text-muted); }
.tt-labelnote { font-size: 12.5px; color: var(--text-muted); }
.tt-consent { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.tt-consent a { color: var(--accent-text); font-weight: 600; }
.tt-summary { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface-sunken); border: 1px solid var(--border); font-size: 13px; }
.tt-summary[hidden] { display: none; }
.tt-summary h4 { margin: 0 0 4px; font: 700 11px var(--font-sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-subtle); }
.tt-summary p { margin: 0; }
.tt-why { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; }
.tt-why:empty { display: none; }
.tt-why.bad { color: var(--danger); }
.tt-flat { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.tt-flat:empty, .tt-flat[hidden] { display: none; }
.tt-loading { padding: 18px 14px; font-size: 13px; color: var(--text-muted); }
.tt-prev { text-decoration: line-through; color: var(--text-subtle); }
.tt-prev-line { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }
.tt-listnote { display: flex; gap: 6px; align-items: center; }
.tt-ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.tt-who .mono { font-family: var(--font-mono); font-size: 12.5px; }
.tt-who .muted { color: var(--text-muted); }

/* LinkedIn: post as, and Instagram: post to (public/linkedin-author.js, public/instagram-account.js) */
.li-as, .ig-as { margin: 0 0 12px; font-size: 13.5px; }
.li-as.quiet, .ig-as.quiet { color: var(--text-muted); }
.li-as fieldset, .ig-as fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.li-as legend, .ig-as legend { font-size: 12.5px; font-weight: 700; color: var(--text-muted); padding: 0; margin: 0 0 6px; }
.li-as .opts, .ig-as .opts { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 8px; }
.li-as .opt, .ig-as .opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; position: relative; }
.li-as .opt:has(input:checked), .ig-as .opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.li-as .opt:has(input:focus-visible), .ig-as .opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.li-as .opt.off, .ig-as .opt.off { opacity: .75; cursor: not-allowed; }
.li-as .av, .ig-as .av { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.li-as .av.sq { border-radius: var(--radius-md); }
.li-as .who, .ig-as .who { display: flex; flex-direction: column; min-width: 0; }
.li-as .who small, .ig-as .who small { color: var(--text-muted); font-size: 12.5px; }
.li-as .sum, .ig-as .sum { margin: 0 0 6px; }
.li-as .hint, .ig-as .hint { color: var(--text-muted); font-size: 12.5px; }
.li-as .field-check, .ig-as .field-check { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }

/* ---------- help center (views/help.js, help-render.js, help-signin.js) ---------- */
/* Tokens only, so both themes follow the app's. Status is never a pill: the feedback and the
   troubleshooting rows are plain text. */
.hc { max-width: 880px; margin: 0 auto; display: grid; gap: 18px; }
.hc h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.hc-hero { display: grid; gap: 12px; padding: 18px 0 6px; }
.hc-lead { margin: 0; font-size: 16px; color: var(--text-muted); max-width: 62ch; }
.hc-search { position: relative; max-width: 560px; }
.hc-search .ic { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--text-subtle); pointer-events: none; }
.hc-search .input { width: 100%; padding-left: 36px; min-height: 44px; }
.hc-h2 { margin: 22px 0 8px; font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; scroll-margin-top: 72px; }
.hc-h3 { margin: 16px 0 6px; font-size: 15px; }
.hc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.hc-group { padding: 16px; margin: 0; }
.hc-group + .hc-group { margin-top: 0; }
.hc-group h3 { margin: 0 0 4px; font-size: 15px; }
.hc-group .fine { margin: 0 0 10px; }
.hc-group ul, .hc-related ul, .hc-toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hc-list { margin: 0; padding: 4px 0; list-style: none; }
.hc-list li + li { border-top: 1px solid var(--border); }
.hc-row { display: grid; gap: 2px; padding: 12px 16px; min-height: 44px; text-decoration: none; color: var(--text); }
.hc-row:hover b { color: var(--accent-text); }
.hc-none, .hc-callouts, .hc-feedback, .hc-address { padding: 16px; }
.hc-none { display: flex; gap: 14px; align-items: center; }
.hc-none p { margin: 4px 0 0; }
.hc-callouts p { margin: 0 0 6px; }
.hc-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-muted); }
.hc-crumbs li { display: flex; gap: 4px; align-items: center; }
.hc-sep { color: var(--text-subtle); }
.hc-article { display: grid; gap: 14px; min-width: 0; }
.hc-meta { margin: 0; }
.hc-series { margin: -6px 0 0; }
.hc-rowseries, .hc-count { color: var(--text-subtle); }
.hc-count { white-space: nowrap; }
.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-pager a { display: grid; gap: 2px; padding: 12px 16px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text); }
.hc-pager a:hover { border-color: var(--accent); }
.hc-pager a:hover b { color: var(--accent-text); }
.hc-prev { grid-column: 1; }
.hc-next { grid-column: 2; text-align: right; }
.hc-toc { padding: 14px 16px; display: grid; gap: 8px; }
.hc-body { display: grid; gap: 12px; max-width: 70ch; font-size: 15px; line-height: 1.6; }
.hc-body p, .hc-body ul, .hc-body ol { margin: 0; }
.hc-body ul, .hc-body ol { padding-left: 22px; display: grid; gap: 6px; }
.hc-body .hc-h2:first-child { margin-top: 4px; }
.hc-faq { margin: 0; display: grid; gap: 10px; }
.hc-faq dt { font-weight: 600; }
.hc-faq dd { margin: 2px 0 0; color: var(--text-muted); }
.hc-callout { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: var(--radius-md); }
.hc-callout p { margin-top: 4px; }
.hc-ext { display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }
.hc-feedback { display: flex; gap: 12px; align-items: flex-start; }
.hc-fbbtns { display: flex; gap: 8px; margin-top: 8px; }
.hc-fbsaid { margin: 8px 0 0; }
.hc-fbsaid:empty { display: none; }
.hc-stuck { margin: 0; color: var(--text-muted); }
.hc-trouble { display: grid; gap: 14px; }
.hc-area { padding: 6px 16px 12px; }
.hc-area dl { margin: 0; }
.hc-trow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.hc-trow dt, .hc-trow dd { margin: 0; }
.hc-trow dt { font-weight: 600; }
.hc-trow .label { display: block; font-size: 12px; font-weight: 600; color: var(--text-subtle); margin-bottom: 2px; }
.hc-contactform { padding: 16px; }
.hc-address { display: flex; gap: 14px; align-items: center; }
.hc-address .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hc-address .hc-h2 { margin-top: 0; }
/* Meet Gild */
.hc-stage { display: grid; justify-items: center; gap: 10px; padding: 20px 16px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-sunken); text-align: center; }
.hc-stageart { min-height: 160px; display: grid; place-items: center; }
.hc-stage.is-off .hc-stageart { min-height: 0; }
.hc-bubble { margin: 0; padding: 8px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); max-width: 34ch; }
.hc-modes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.hc-modes .btn[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--text); }
.hc-modenote { margin: 0; max-width: 52ch; }
.hc-allposes { text-align: left; max-width: 52ch; }
.hc-allposes summary { cursor: pointer; min-height: 32px; }
/* Sign-in help dialog */
.signin-trouble { margin: 8px 0 0; text-align: center; }
.hc-troublelink { min-height: 32px; font-size: 13px; }
dialog.hc-signdlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); overflow: hidden; }
dialog.hc-signdlg[open] { display: flex; flex-direction: column; }
dialog.hc-signdlg::backdrop { background: var(--overlay); }
dialog.hc-signdlg .dhead h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; }
.hc-signbody { overflow-y: auto; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.hc-signbody p { margin: 0; }
.hc-signart h3 { margin: 0 0 8px; font-size: 16px; }
.hc-signart .hc-h2 { font-size: 16px; margin: 14px 0 6px; }
.gx-findanswer .actions { margin-top: 12px; }
@media (max-width: 640px) {
  .hc h1 { font-size: 25px; }
  .hc-trow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hc-none, .hc-address { flex-direction: column; align-items: flex-start; }
  .hc-groups { grid-template-columns: minmax(0, 1fr); }
  .hc-pager { grid-template-columns: minmax(0, 1fr); }
  .hc-prev, .hc-next { grid-column: 1; text-align: left; }
}

/* Branding: "What your backgrounds show" (public/views/branding-backgrounds.js). */
.bgwhat { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 14px; }
.bgsrc { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bgscene { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; min-width: 0; }
.bgscene.editing { display: grid; gap: 8px; }
.bgscene .bgtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bgscene .bgtop b { font-size: 14px; }
.bgscene .bgacts { display: inline-flex; gap: 4px; flex: none; }
.bgscene .sd { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.bgwhat .edact { display: flex; gap: 8px; flex-wrap: wrap; }
.bgwhat .rule { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; display: grid; gap: 10px; }
.bgwhat .rulehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bgwhat .rule blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--border-strong); font-size: 13.5px; line-height: 1.5; }
.bgwhat .always { margin: 0; font-size: 12.5px; }
.bgchar .bgcharrow { display: flex; align-items: center; gap: 12px; }
.bgchar .bgcharrow img { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-sunken); }
.bgchar .bgcharrow .field { flex: 1; min-width: 0; margin: 0; }
/* Brand backgrounds: the generated library group on Branding. */
.bglib { display: grid; gap: 12px; }
.bglib .bgsub { margin: 10px 0 0; font-size: 13px; font-weight: 700; }
.bglib .bgsub small { font-weight: 400; color: var(--text-muted); margin-left: 8px; font-size: 12px; }
.bglib .bgnote { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--warning); }
.bglib .bgnote .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.bggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bgtile { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bgshot { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); border: 1px solid var(--border); }
.bgshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bgshot .gap { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 10px; font-size: 12.5px; color: var(--text-muted); border: 2px dashed var(--border-strong); border-radius: var(--radius-md); }
.bgcap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bgcap b { font-size: 13px; }
.bgcap .st { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.bgact { display: flex; flex-wrap: wrap; gap: 6px; }
.bgact .btn.sm { min-height: 32px; padding: 0 10px; }
.bgspin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--primary); animation: bgspin 0.9s linear infinite; }
@keyframes bgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bgspin { animation: none; } }
@media (max-width: 760px) { .bggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 760px) {
  .scenes { grid-template-columns: 1fr; }
  .bgscene .bgtop { flex-wrap: wrap; }
  .bgscene .bgtop b { flex: 1 1 100%; }
}

/* Branding: "Footage", the clip library (public/views/branding-footage.js). Reuses the .bgcap and .bgact rows. */
.footage .fhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footage .fpanel { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 12px; }
.footage .fdrop { border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 20px 16px; display: grid; justify-items: center; gap: 6px; text-align: center; background: var(--surface); }
.footage .fdrop.over { border-color: var(--primary); }
.footage .fdrop .muted { font-size: 13px; max-width: 46ch; }
.footage .fcheck { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.footage .fcheck input { margin-top: 3px; flex: none; }
.footage .fhint { margin: 0; font-size: 12.5px; }
.footage .frows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footage .frow { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.footage .frow .fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.footage .frow .muted { min-width: 0; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ftile { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ftile.removed .fshot img { opacity: 0.55; }
.fshot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); border: 1px solid var(--border); }
.fshot.portrait { aspect-ratio: 9 / 16; width: 56%; align-self: center; }
.fshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fshot .gap { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 10px; font-size: 12.5px; color: var(--text-muted); }
.fshot .orient, .fshot .dur { position: absolute; bottom: 6px; padding: 2px 6px; border-radius: var(--radius-md); background: var(--overlay); color: var(--on-overlay); font-family: var(--font-mono); font-size: 11px; line-height: 1.3; }
.fshot .orient { left: 6px; }
.fshot .dur { right: 6px; }
.ftile .ftags { font-size: 12px; overflow-wrap: anywhere; }
.ftile .fask { font-size: 12.5px; align-self: center; }
.ftile .fedit { display: grid; gap: 8px; }
.ftile .fedit .input { padding: 8px 12px; font-size: 14px; }
@media (max-width: 760px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* The article reading page (views/article.js): the text, its hero, and the review cards beside it. */
.rd-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; margin: 0 0 14px; min-height: 32px; }
.rd-back:hover { color: var(--text); }
.rd-back .back { width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
.rd-kick { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); margin: 0 0 6px; }
.rd-head h1 { font: 650 28px/1.2 var(--font-display); letter-spacing: -.015em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; max-width: 30ch; }
.rd-meta { font-size: 13px; color: var(--text-muted); margin: 8px 0 20px; }
.rd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.rd-doc { padding: 26px 30px 30px; min-width: 0; }
.rd-by { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.rd-body { max-width: 68ch; font-size: 15.5px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.rd-body > :first-child { margin-top: 0; }
.rd-body h2 { font: 650 21px/1.3 var(--font-display); letter-spacing: -.01em; margin: 30px 0 10px; text-wrap: balance; }
.rd-body h3 { font: 600 16px/1.4 var(--font-sans); margin: 22px 0 6px; }
.rd-body h4 { font: 600 15px/1.4 var(--font-sans); margin: 18px 0 6px; }
.rd-body p { margin: 0 0 14px; }
.rd-body ul, .rd-body ol { margin: 0 0 14px; padding-left: 22px; }
.rd-body li { margin: 4px 0; }
.rd-body li > ul, .rd-body li > ol { margin: 4px 0 0; }
.rd-body a { color: var(--accent-text); text-underline-offset: 2px; }
.rd-body code { font: 500 .88em var(--font-mono); background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 1px 5px; }
.rd-body pre { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; overflow-x: auto; margin: 0 0 16px; }
.rd-body pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.6; }
.rd-body .tw { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.rd-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.rd-body th, .rd-body td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.rd-body tr:last-child td { border-bottom: 0; }
.rd-body th { background: var(--surface-sunken); font-weight: 600; }
.rd-body blockquote { margin: 18px 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); font: 500 17px/1.5 var(--font-display); color: var(--text); }
.rd-body blockquote p { margin: 0; }
.rd-body hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.rd-body figure { margin: 18px 0; }
.rd-body figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.rd-bodyimg { display: block; max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.rd-imgalt { display: inline-block; font-size: 13px; color: var(--text-muted); font-style: italic; }
.rd-take { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 18px 4px; margin: 0 0 18px; }
.rd-take h2 { margin: 0 0 6px; font-size: 16px; }
.rd-hero { margin: 0 0 18px; }
.rd-heroimg { display: block; width: 100%; max-width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-sunken); }
.rd-hero figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.rd-nohero { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); padding: 14px 16px; margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.rd-nohero b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.rd-nohero a { color: var(--accent-text); font-weight: 600; }
.rd-heroframe { position: relative; }
.rd-heroframe.is-blank { aspect-ratio: 16 / 9; max-width: 100%; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken); }
.rd-heroframe.is-making .rd-heroimg { opacity: .35; }
.rd-making { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; }
.rd-making span { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--text); box-shadow: var(--shadow-2); }
.rd-making .dot { animation: rd-pulse 1.4s ease-in-out infinite; }
@keyframes rd-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rd-making .dot { animation: none; } }
.rd-side { display: grid; gap: 16px; min-width: 0; }
.rd-card { padding: 16px 18px; }
.rd-card h2 { font: 700 14px/1.3 var(--font-sans); margin: 0 0 12px; }
.rd-card .planfacts { margin-bottom: 14px; }
.rd-card .planfacts dd small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.rd-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0 0 12px; }
.rd-fine { font-size: 12px; line-height: 1.45; color: var(--text-subtle); margin: 10px 0 0; }
.rd-quote { margin: 0 0 12px; padding: 2px 0 2px 12px; border-left: 3px solid var(--warning); font-size: 14px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap; }
.rd-field { margin: 0 0 12px; }
.rd-field textarea { width: 100%; resize: vertical; font-size: 14px; }
.rd-herostatus { display: flex; align-items: flex-start; gap: 8px; color: var(--text); }
.rd-herostatus .dot { margin-top: 6px; }
.rd-herocard .alert { margin: 0 0 12px; }
.rd-herocard .label small { margin-left: 6px; }
.rd-herocard textarea:disabled { opacity: .6; cursor: not-allowed; }
.rd-herocard .hint { gap: 12px; }
/* The article facts panel (public/views/article.js factsCard): one card down the reading page's rail. */
.rf { padding: 4px 18px 6px; min-width: 0; }
.rd-side > * { min-width: 0; }
.rf-sec { padding: 14px 0; border-top: 1px solid var(--border); }
.rf-sec:first-child { border-top: 0; }
.rf-lab { display: flex; align-items: center; gap: 8px; font: 700 11px/1.2 var(--font-sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 9px; }
.rf-lab .ic { width: 14px; height: 14px; color: var(--text-muted); }
.rf-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--text); min-width: 0; margin: 0; }
.rf-line + .rf-line { margin-top: 6px; }
.rf-fine { font-size: 12px; line-height: 1.45; color: var(--text-subtle); margin: 6px 0 0; }
.rf-fine a, .rf-p a { color: var(--accent-text); font-weight: 600; }
.rf-sec .row-actions { margin-top: 10px; }
.rf-preview { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunken, var(--surface)); font-size: 13px; line-height: 1.5; }
.rf-preview b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.rf-preview-url { display: block; margin-top: 4px; font: 500 12px/1.4 var(--font-mono); color: var(--text-muted); overflow-wrap: anywhere; }
.rf-p { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0; }
/* Checks summary */
.rf-checks summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; border-radius: var(--radius-md); }
.rf-checks summary::-webkit-details-marker { display: none; }
.rf-checks summary:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.rf-score { font: 650 17px/1.2 var(--font-display); color: var(--text); letter-spacing: -.01em; }
.rf-score small { display: block; font: 400 12.5px/1.4 var(--font-sans); color: var(--text-muted); letter-spacing: 0; margin-top: 2px; }
.rf-ring { width: 34px; height: 34px; flex: none; border-radius: 50%; color: var(--success); background: var(--border); -webkit-mask: radial-gradient(circle, transparent 12px, var(--on-overlay) 12.5px); mask: radial-gradient(circle, transparent 12px, var(--on-overlay) 12.5px); }
.rf-ring.warn { color: var(--warning); }
.rf-chev { color: var(--text-muted); transition: transform .15s; }
.rf-checks[open] .rf-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .rf-chev { transition: none; } }
.rf-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.rf-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 9px; align-items: baseline; font-size: 13px; line-height: 1.45; color: var(--text); }
.rf-list li .dot { transform: translateY(-1px); }
.rf-list li small { grid-column: 2; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
/* Customize future articles */
.rf-custom { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1.3 var(--font-sans); color: var(--accent-text); text-decoration: none; min-height: 32px; }
.rf-custom:hover { text-decoration: underline; text-underline-offset: 2px; }
.rf-custom .arr { margin-left: auto; color: var(--text-muted); }
/* On your site */
.rf-url { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 12.5px/1.4 var(--font-mono); color: var(--text); text-decoration: none; }
.rf-url span:not(.ic) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-url .ext { color: var(--text-muted); }
.rf-url:hover span:not(.ic) { text-decoration: underline; text-underline-offset: 2px; }
/* Article data, and the Status rows */
.rf-data { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; row-gap: 7px; column-gap: 12px; }
.rf-data dt { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--text-muted); min-width: 0; }
.rf-data dt .dot.none { visibility: hidden; }
.rf-data dd { margin: 0; display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; text-align: right; font-size: 13px; line-height: 1.4; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-data dd small { order: -1; font-weight: 400; font-size: 11.5px; color: var(--text-subtle); }
.rf-data .kw { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 3px; padding-bottom: 8px; margin-bottom: 1px; border-bottom: 1px dashed var(--border); }
.rf-data .kw dd { justify-content: flex-start; text-align: left; white-space: normal; overflow-wrap: anywhere; font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; }
/* Slug */
.rf-slug { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rf-slug code { flex: 1; min-width: 0; font: 500 12.5px/1.4 var(--font-mono); color: var(--text); background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-md); border: 1.5px solid var(--border); background: transparent; color: var(--text); font: 600 12.5px/1 var(--font-sans); cursor: pointer; }
.rf-copy:hover { border-color: var(--border-strong); }
.rf-copy:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
/* Search description */
.rf-desc { font-size: 13px; line-height: 1.5; color: var(--text); margin: 0; overflow-wrap: anywhere; }
.rf-count { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rf-count.warn { color: var(--warning); }
.rf-meter { flex: 1; height: 4px; border-radius: 2px; background: var(--border); position: relative; }
.rf-meter i { position: absolute; inset: 0 auto 0 0; background: var(--success); border-radius: 2px; }
.rf-count.warn .rf-meter i { background: var(--warning); }
.rf-meter b { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--text-subtle); }
/* Cover */
.rf-cover { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.rf-thumb { width: 88px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.rf-thumb.is-blank { display: grid; place-items: center; background: var(--surface-sunken); color: var(--text-subtle); }
.rf-cover .rf-p { color: var(--text); }
.rf-cover .links { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; }
.rf-cover .links a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.rf-cover .links a:hover { text-decoration: underline; }
.rf-sec .rd-herostatus { margin: 12px 0 0; }
.rf-sec > .alert { margin: 12px 0 0; }
.rf-change { margin-top: 12px; }
/* Status and downloads */
.rf-status .rf-data { margin: 12px 0 14px; }
.rf-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rf-export > span { font-size: 13px; color: var(--text-muted); margin-right: 2px; }
.rd-herocard .hint .num { flex: none; white-space: nowrap; }
.rd-state { max-width: 560px; }
@media (max-width: 960px) {
  .rd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .rd-doc { padding: 18px 16px 22px; }
  .rd-head h1 { font-size: 23px; }
  .rd-body { font-size: 15px; }
}

/* Automatic captions on a Creator Video: the look picker on New brief (views/caption-style-picker.js).
   The preview frame stands for the customer's footage with an example caption on it, so its colors are
   fixed on purpose (the --cap-* tokens in tokens.css): video has no light and dark, and the caption's
   white-on-dark edge must read the same on either theme. Class names are namespaced (.capframe, .cf-*) because .frame and .cap are
   already the brief page's own. The caption sits clear of the footer bar, as the renderer places it. */
.cap-style { display: grid; gap: 6px; width: 100%; justify-items: start; }
.cap-style[hidden] { display: none; }
.cap-style .hint { margin-top: 0; }
.style-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 14px; margin-top: 6px; }
.style-pick { appearance: none; text-align: left; background: transparent; color: inherit; font: inherit; border: 1.5px solid var(--border); border-radius: 14px; padding: 8px; display: grid; gap: 8px; cursor: pointer; align-content: start; }
.style-pick:hover { border-color: var(--border-strong); }
.style-pick[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); }
.style-pick:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.style-pick strong { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.style-pick span.d { font-size: 12px; color: var(--text-muted); }
.style-pick .tick { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; }
.style-pick[aria-checked="true"] .tick { background: var(--accent); border-color: var(--accent); }
.capframe {
  position: relative; container-type: inline-size; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); background: var(--cap-clip-c); width: 100%; aspect-ratio: 9 / 16; }
.capframe .cf-clip { position: absolute; inset: 0; background: radial-gradient(90% 60% at 72% 22%, var(--cap-clip-a) 0%, transparent 62%), linear-gradient(165deg, var(--cap-clip-b), var(--cap-clip-c)); }
.capframe .cf-cap { position: absolute; left: 6%; right: 6%; bottom: 23%; text-align: center; font: 700 11cqw/1.2 var(--font-sans); color: var(--cap-ink); -webkit-text-stroke: 1.6cqw var(--cap-edge); paint-order: stroke fill; text-shadow: 0 .5cqw 1.4cqw var(--cap-shadow); text-wrap: balance; display: flex; align-items: flex-end; justify-content: center; }
.capframe[data-style="highlight"] .cf-w.lit { color: var(--cap-lit); }
.capframe .cf-brand { position: absolute; left: 6cqw; right: 6cqw; bottom: 5.5cqw; display: grid; gap: 2cqw; }
.capframe .cf-brand i { display: block; height: 3cqw; border-radius: 2cqw; background: var(--cap-brand-hi); width: 54%; }
.capframe .cf-brand i + i { height: 2.4cqw; width: 32%; background: var(--cap-brand-lo); }
@media (max-width: 780px) { .style-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Captions on the brief page (views/brief.js captionsBand, views/brief-captions.js). The videos stay in
   view on the left while the Captions card sits on the right with its own scrolling list of words, so
   both formats are visible while someone edits. One column by default (a phone, and the width where
   the page's own 360px side column squeezes this band); two columns where the band has room. */
.cc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.cc-media { min-width: 0; }
.cc-media .mediagrid { margin: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 721px) and (max-width: 900px), (min-width: 1101px) {
  .cc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .cc-media { position: sticky; top: 72px; }
  /* Two stacked videos have to fit one screen to stay put, so the tall one is held to a third of it. */
  .cc-media .media .img video { max-height: min(34vh, 340px); }
}
/* One column but still room: the two videos sit side by side so the card is not pushed a screen down. */
@media (min-width: 481px) and (max-width: 720px), (min-width: 901px) and (max-width: 1100px) {
  .cc-media .mediagrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .cc-media .media .img video { max-height: 340px; }
}
/* A phone stacks the videos, so the tall one is held to about half the screen to keep the card within reach. */
@media (max-width: 480px) {
  .cc-media .media .img video { max-height: min(52vh, 440px); }
}
.cc-card { display: grid; gap: 18px; min-width: 0; }
.cc-card h3 { margin: 0; }
.cc-status { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.cc-status .dot { margin-top: 6px; }
.cc-status small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.cc-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cc-subhead b { font-size: 14px; font-weight: 600; }
.cc-aside { font-size: 12px; color: var(--text-muted); }
.cc-changes { font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .03em; color: var(--text-muted); }
.cc-card .links a.btn { margin-left: auto; color: var(--text); }
.cc-card p.cc-note { margin: 0 0 8px; font-size: 12.5px; color: var(--text-muted); white-space: normal; }
.cc-scroll { max-height: min(460px, 62vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; margin-right: -8px; padding: 12px 8px 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cc-scroll:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.cc-cues { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cc-cue { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.cc-cue-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .03em; color: var(--text-muted); }
.cc-edited { margin-left: 8px; color: var(--text); font-weight: 700; }
.cc-edited[hidden] { display: none; }
.cc-cue .hint { margin-top: 0; flex-wrap: wrap; }
.input.cc-text { padding: 8px 10px; font-size: 14px; resize: vertical; min-height: 0; }
.input.cc-text[aria-invalid="true"] { border-color: var(--danger); }
.cc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cc-card p.cc-limit { margin: 8px 0 0; font-size: 12.5px; color: var(--danger); white-space: normal; }
.cc-card p.cc-limit[hidden] { display: none; }
.cc-confirm { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.cc-confirm[hidden] { display: none; }
.cc-card .cc-confirm p { margin: 0; white-space: normal; }
.cc-confirm .cc-actions { margin-top: 0; }
.cc-failure { margin-top: 12px; }
.cc-failure:empty { display: none; }
.cc-failure .alert { margin: 0; }
.cc-card .seg button:disabled, .cc-card .input.cc-text:disabled { opacity: .6; cursor: default; }

/* ---------- auto-approve page rows (queue, left for you, hours summary, stop everything result) ---------- */
.aa-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.aa-row:last-child { border-bottom: 0; }
.aa-row > :first-child { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.aa-row.aa-failed { flex-direction: column; align-items: flex-start; gap: 2px; }
.aa-row.aa-failed > :first-child { flex: none; }
.aa-result { margin: 0 0 16px; }
.ic-key { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 2-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E"); }
/* API keys page (views/settings-api.js): the keys card (make-a-key bar over a full-width table), the
   how-to strip, the example request and the key shown once. */
.ak-b { display: flex; flex-direction: column; gap: 16px; }
.ak-code { margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); font-family: var(--font-mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
#ak-fresh { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13px; }
.ak-inline { display: flex; gap: 10px; align-items: stretch; }
.ak-inline .input { flex: 1; min-width: 0; }
.ak-inline .btn { flex: none; }
.ak-b > .card > .section > .ak-inline { margin: 0 0 14px; }
.ak-bar { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.ak-bar .t { flex: 1 1 200px; min-width: 0; }
.ak-bar h2 { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-subtle); }
.ak-bar .field { flex: 1 1 380px; max-width: 520px; margin: 0; }
.ak-bar .label { font-size: 12.5px; color: var(--text-muted); margin: 0 0 4px; }
.ak-count { font-size: 13px; color: var(--text-muted); }
.ak-empty { margin: 0; padding: 16px 20px; }
.ak-howto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 28px; align-items: start; }
.ak-howto h2 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-subtle); }
.ak-howto p.muted { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; }
.ak-howto p.ak-last { margin: 0; }
.ak-guide { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
table.ak th:first-child, table.ak td:first-child { padding-left: 20px; }
table.ak th:last-child, table.ak td:last-child { padding-right: 20px; }
table.ak td.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
table.ak td.acts { text-align: right; white-space: nowrap; }
table.ak .when { white-space: nowrap; }
table.ak .when small, table.ak .stat small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--text-muted); }
table.ak .never { color: var(--text-muted); }
table.ak tr.is-revoked td.topic, table.ak tr.is-revoked td.mono { color: var(--text-muted); }
@media (max-width: 1000px) {
  .ak-howto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  table.list.stack.ak td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; }
  table.list.stack.ak td[data-label]::before { content: attr(data-label); font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); text-align: left; flex: none; }
  table.list.stack.ak td.topic { padding: 0 0 6px; }
  table.list.stack.ak td.acts { text-align: left; padding-top: 8px; }
  table.list.stack.ak th, table.list.stack.ak td { padding-left: 0; padding-right: 0; }
  table.list.stack.ak .when small, table.list.stack.ak .stat small { display: inline; margin: 0 0 0 6px; }
}
@media (max-width: 520px) {
  .ak-inline { flex-direction: column; }
  .ak-inline .btn { width: 100%; justify-content: center; }
  .ak-bar .field { flex-basis: 100%; max-width: none; }
}

/* ---------- Articles: the month calendar of blog articles (views/articles.js) ---------- */
/* Reuses the briefs calendar's bar, grid and phone agenda (.calbar, .cal-*, .ag-*); only the article
   card (a link to the article), the count filters and the search field are new. Status is a dot plus text. */
.acounts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 14px; }
.acount { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-muted); font: inherit; cursor: pointer; }
.acount b { font-family: var(--font-mono); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.acount[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.acounts-note { font-size: 12.5px; }
.cal-card .calbar h2 { font-size: 18px; min-width: 9ch; }
.asearch { margin-left: auto; min-width: 220px; padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-sunken); color: var(--text); font: inherit; font-size: 13px; }
.asearch::placeholder { color: var(--text-subtle); }
.calbar-legend { padding-top: 10px; padding-bottom: 10px; }
.cal-card .cal-cell { min-height: 132px; }
.cal-card .cal-cell.out .acard { opacity: .55; }
.acard { display: flex; text-decoration: none; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.acard:hover { border-color: var(--border-strong); }
.acard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acard .st { font-size: 11px; letter-spacing: .02em; color: var(--text-muted); }
.acard-title { font-size: 12.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.acard-foot { display: flex; justify-content: space-between; gap: 6px; padding-top: 5px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-subtle); }
.acard-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A planned article day: nothing written yet, so it reads quieter than an article. */
.acard.planned { background: transparent; border-style: dashed; }
.acard.planned .acard-title { color: var(--text-muted); font-weight: 400; }
.acard-why { font-size: 11.5px; line-height: 1.35; color: var(--text-subtle); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.acard.planned:hover .acard-title { color: var(--text); }
.acard.planned.late { opacity: .8; }
.amore { align-self: flex-start; padding: 0 5px; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: 11.5px; cursor: pointer; }
@media (max-width: 760px) {
  .asearch { margin-left: 0; min-width: 0; flex: 1 1 100%; }
  .cal-card .ag-items .acard { opacity: 1; }
}

/* ------------------------------------------------ Connections: category grid -- */
/* views/connections-grid.js. One tile per provider; its settings open in a drawer holding the
   provider's own cards. Status is a dot plus words, never a pill. */
.cg-group + .cg-group { margin-top: 30px; }
.cg-gh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cg-gt { min-width: 0; }
.cg-gh h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.cg-gh p { margin: 3px 0 0; font-size: 13px; color: var(--text-muted); }
.cg-gn { flex: none; font-size: 12.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
/* The summary banner above the groups: the count, one line in words, and a bar with one segment per
   tile (connected, needs attention, not connected). Counts come from the tiles' own dots. */
.cg-banner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 36px; align-items: center; padding: 20px 24px; margin: 0 0 30px; }
.cg-banner[hidden] { display: none; }
.cg-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.cg-count { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.cg-count .n { color: var(--accent-text); }
.cg-sumline { margin: 6px 0 0; font-size: 13.5px; color: var(--text-muted); max-width: 46ch; }
.cg-segs { display: flex; gap: 4px; }
.cg-segs i { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border); }
.cg-segs i.ok { background: var(--success); box-shadow: none; }
.cg-segs i.warn { background: var(--warning); box-shadow: none; }
.cg-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--text-muted); }
.cg-legend li { display: inline-flex; align-items: center; }
.cg-legend .st { font-size: inherit; font-weight: 400; gap: 7px; }
.cg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cg-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 16px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-1); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard); }
.cg-tile:hover { border-color: var(--border-strong); background: var(--surface-raised); }
.cg-tile:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.cg-tile[data-state="amber"], .cg-tile[data-state="amber"]:hover { border-color: var(--warning); }
.cg-tile[data-state="red"], .cg-tile[data-state="red"]:hover { border-color: var(--danger); }
.cg-mark { margin-bottom: 4px; }
.cg-name { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.cg-line { font-size: 13px; line-height: 1.4; color: var(--text-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.cg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; margin-top: auto; padding-top: 10px; }
.cg-foot .st { font-size: 13px; }
.cg-act { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.cg-act .ic { width: 14px; height: 14px; }

dialog.drawer.cg-drawer { width: min(560px, 100vw); max-width: 100vw; }
@media (max-width: 600px) { dialog.drawer.cg-drawer { width: 100vw; border-radius: 0; } }
.cg-dhead { flex: none; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cg-dhead .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cg-dname { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.cg-dst .st { font-size: 13px; }
.cg-close .ic { width: 16px; height: 16px; }
.cg-dbody { flex: 1; min-height: 0; overflow-y: auto; }
/* The cards keep their own layout and wording; inside a drawer they simply lose the frame. */
.cg-drawer .setcard { border: 0; border-radius: 0; box-shadow: none; background: transparent; margin: 0; overflow: visible; }
.cg-drawer .setcard + .setcard { margin-top: 0; border-top: 1px solid var(--border); }
.cg-drawer .cx-split, .cg-drawer .bsf { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.cg-drawer .cx-acts .grow { display: none; }
/* A provider with one card says its name and status in the drawer header, so the card's own header is not repeated. */
.cg-one > .setcard > .cx-top { display: none; }
.cg-one > .setcard > .cx-body { padding-top: 18px; }
@media (max-width: 600px) {
  .cg-dhead { padding: 14px 16px; }
  .cg-tiles { grid-template-columns: minmax(0, 1fr); }
  .cg-banner { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .cg-gh { flex-wrap: wrap; }
}

/* Cover style picker (views/cover-style-picker.js): the card for the style in use with a drawing of
   it, "Change style" opening the other four. Used in Settings > Articles > Visuals and on an
   article's Hero image card. The drawings are built from container-query units, so they scale. */
.ic-type { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6V4h14v2M12 4v16M9 20h6'/%3E%3C/svg%3E"); }
.cvp { display: grid; gap: 14px; }
.cvp-current { display: flex; flex-wrap: wrap; gap: 18px; padding: 14px; border: 1.5px solid var(--accent); background: var(--surface-raised); border-radius: var(--radius-lg); align-items: flex-start; }
.cvp-current > .cvf { flex: 1 1 220px; max-width: 300px; }
.cvp-current > .cvp-info { flex: 1 1 240px; min-width: 0; }
.cvp-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.cvp-name h4 { margin: 0; font: 700 17px/1.2 var(--font-display); letter-spacing: -.3px; }
.cvp-name .dot { width: auto; height: auto; border-radius: 0; background: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.cvp-name .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.cvp-desc { margin: 0 0 10px; font-size: 13.5px; color: var(--text-muted); }
.cvp-facts { display: grid; gap: 5px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; }
.cvp-facts li { display: flex; gap: 8px; align-items: flex-start; }
.cvp-facts .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--text-subtle); }
.cvp-from { font-size: 12.5px; color: var(--text-muted); margin: 0 0 12px; }
.cvp-foot { margin: 14px 0 0; }
.cvp-back { margin: 12px 0 0; }
.cvp-others[hidden] { display: none; }
.cvp-others h5 { margin: 0 0 10px; font: 700 12px/1 var(--font-mono); letter-spacing: .9px; text-transform: uppercase; color: var(--text-subtle); }
.cvp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.cvp-tile { appearance: none; grid-template-columns: minmax(0, 1fr); text-align: left; color: inherit; font: inherit; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 8px; display: grid; gap: 8px; align-content: start; cursor: pointer; }
.cvp-tile:hover:not(:disabled) { border-color: var(--border-strong); }
.cvp-tile:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.cvp-tile:disabled { cursor: not-allowed; opacity: .6; }
.cvp-tile strong { font-size: 13.5px; font-weight: 600; padding-inline: 2px; }
.cvp-tile .d { font-size: 12px; color: var(--text-muted); padding-inline: 2px 4px; }
.cvp-tile .t { font-size: 11.5px; color: var(--text-subtle); padding: 0 2px 2px; display: flex; gap: 6px; align-items: center; }
.cvp-tile .t .ic { width: 12px; height: 12px; }
.cvp-chev { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-standard); }
.btn[aria-expanded="true"] > .cvp-chev { transform: rotate(180deg); }
.cvp-workspace { justify-self: start; }
/* the 16:9 preview frame, every style drawn in CSS from container-query units */
.cvf { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; container-type: inline-size; background: var(--cs-flat-bg); border: 1px solid var(--border); }
.cvf > * { position: absolute; }
.cvf .ttl { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
/* Standard: a library photo, or a picture in the brand image style */
.cvf[data-style="default"] { background: linear-gradient(180deg, var(--cs-sky-a), var(--cs-sky-b) 62%); }
.cvf[data-style="default"] .sun { width: 15cqw; height: 15cqw; border-radius: 50%; background: var(--cs-sun); right: 18cqw; top: 14cqw; }
.cvf[data-style="default"] .h1 { left: -10cqw; right: 30cqw; bottom: -14cqw; height: 34cqw; border-radius: 50% 50% 0 0; background: var(--cs-hill-a); }
.cvf[data-style="default"] .h2 { left: 28cqw; right: -12cqw; bottom: -16cqw; height: 30cqw; border-radius: 50% 50% 0 0; background: var(--cs-hill-b); }
.cvf[data-style="default"] .edge { inset: 3cqw; border: .5cqw solid var(--cs-edge); border-radius: 1.2cqw; }
/* Photographic: depth, soft light, bokeh */
.cvf[data-style="photographic"] { background: radial-gradient(70% 90% at 78% 22%, var(--cs-photo-a), transparent 60%), linear-gradient(160deg, var(--cs-photo-b), var(--cs-photo-c)); }
.cvf[data-style="photographic"] i { border-radius: 50%; background: var(--cs-bokeh); filter: blur(.6cqw); }
.cvf[data-style="photographic"] i:nth-child(1) { width: 12cqw; height: 12cqw; right: 12cqw; top: 8cqw; }
.cvf[data-style="photographic"] i:nth-child(2) { width: 7cqw; height: 7cqw; right: 30cqw; top: 22cqw; opacity: .7; }
.cvf[data-style="photographic"] i:nth-child(3) { width: 9cqw; height: 9cqw; right: 4cqw; top: 30cqw; opacity: .6; }
.cvf[data-style="photographic"] i:nth-child(4) { width: 5cqw; height: 5cqw; right: 42cqw; top: 8cqw; opacity: .5; }
.cvf[data-style="photographic"] .sub { left: 8cqw; bottom: 8cqw; width: 34cqw; height: 24cqw; border-radius: 3cqw; background: linear-gradient(160deg, var(--cs-glass-a), var(--cs-glass-b)); box-shadow: 0 3cqw 6cqw var(--cs-shadow); }
.cvf[data-style="photographic"] .vig { inset: 0; background: radial-gradient(120% 100% at 50% 40%, transparent 55%, var(--cs-vignette)); }
/* Illustrated: flat shapes in brand colors */
.cvf[data-style="illustrated"] { background: var(--cs-flat-bg); }
.cvf[data-style="illustrated"] .a { width: 30cqw; height: 30cqw; border-radius: 50%; background: var(--cs-flat-hot); left: 12cqw; top: 9cqw; }
.cvf[data-style="illustrated"] .b { left: 36cqw; bottom: 0; width: 26cqw; height: 32cqw; border-radius: 13cqw 13cqw 0 0; background: var(--cs-flat-ink); }
.cvf[data-style="illustrated"] .c { right: 9cqw; top: 12cqw; width: 22cqw; height: 22cqw; background: var(--cs-flat-soft); transform: rotate(14deg); border-radius: 2cqw; }
.cvf[data-style="illustrated"] .d { left: 0; right: 0; bottom: 0; height: 8cqw; background: var(--cs-flat-hot); opacity: .18; }
/* Sketch with title: ink linework on paper, the title on a scrim along the bottom */
.cvf[data-style="sketch-title"] { background: var(--cs-paper); }
.cvf[data-style="sketch-title"] .s1 { left: 10cqw; top: 8cqw; width: 28cqw; height: 28cqw; border: .7cqw solid var(--cs-ink); border-radius: 50% 46% 52% 48%; transform: rotate(-6deg); }
.cvf[data-style="sketch-title"] .s2 { left: 38cqw; top: 14cqw; width: 36cqw; height: 22cqw; border: .7cqw dashed var(--cs-ink); border-radius: 3cqw 8cqw 3cqw 8cqw; transform: rotate(3deg); }
.cvf[data-style="sketch-title"] .s3 { left: 22cqw; top: 31cqw; width: 52cqw; height: 0; border-top: .7cqw solid var(--cs-ink); transform: rotate(-2deg); opacity: .6; }
.cvf[data-style="sketch-title"] .scrim { left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(180deg, transparent, var(--cs-scrim) 55%); }
.cvf[data-style="sketch-title"] .ttl { left: 6cqw; right: 20cqw; bottom: 4.5cqw; color: var(--cs-title); font-size: 7.2cqw; }
/* Type on color: the title alone on a brand color, no picture */
.cvf[data-style="type-on-color"] { background: var(--cs-color); display: grid; place-items: center; }
.cvf[data-style="type-on-color"] .ttl { position: static; color: var(--cs-color-ink); font-size: 8.6cqw; text-align: center; padding-inline: 9cqw; }
@media (prefers-reduced-motion: reduce) { .cvp-chev { transition: none; } }

/* ===== settings cards: area 1 auto-approve START ===== */
/* One column of headed cards (views/settings-auto-approve.js). The form wraps the settings cards so one Save
   covers all of them; the Save row sits after the last card, outside any card. */
.aa-page > * + *, .aa-form > * + * { margin-top: 16px; }
.aa-form + .setcard { margin-top: 24px; }
.aa-form .setch .st, .aa-page .setch .st { max-width: 250px; line-height: 1.4; }
.aa-form .setcb .checks + .hint { margin-top: 12px; }
.aa-form .setcb .setgrid { margin-top: 18px; }
.aa-form .setcb .setgrid .field { margin-bottom: 0; }
.aa-form .setcb .setgrid .hint { margin-top: 10px; }
.aa-form .setcb .aa-note { margin-top: 16px; }
.aa-form .setcb .aa-offer { margin-top: 14px; }
.aa-page .aa-stopbody > .cx-confirm:first-child { margin-top: 0; }
.aa-page .aa-stopbody > .aa-result { margin-bottom: 0; }
.aa-ownernote { margin: 14px 0 0; }
.aa-about .setcb p { font-size: 13.5px; }
.aa-about .setcb p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .aa-form .setch .st, .aa-page .setch .st { max-width: none; }
}
/* ===== area 1 END ===== */

/* ===== area 2 brief defaults START ===== */
/* Brief defaults: three grouped cards in one form, one Save below the last. */
.bd-form .bd-slots { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 0; }
.bd-form .bd-slots > .label { display: block; }
.bd-form .bd-slots .hint { margin-top: 0; }
.bd-form .bd-styles .field { margin-bottom: 0; }
/* The two style pickers are the same galleries New brief shows, each in its own card; Planned image posts follows the card style picker under a rule, like the slots under the platforms. */
.bd-form .bd-styles .cspick { margin-bottom: 0; }
.bd-form .bd-styles .cspick + .field { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.bd-form .bd-styles .bd-clear .btn { margin-top: 10px; }
.bd-form .bd-styles .bd-clear [hidden], .bd-form .bd-styles .bd-clear[hidden] { display: none; }
.bd-form .bd-actions { margin-top: 16px; }
.bd-form .stslot { display: contents; }
/* ===== area 2 END ===== */

/* ===== area 3 profile START ===== */
.pr-card .pr-fox { width: 48px; height: 48px; border-radius: var(--radius-xl); }
.pr-card .setradios { margin-top: 0; }
.pr-card .gx-wtiles { margin-top: 0; }
.pr-card .gx-sgrid { margin-top: 0; margin-bottom: 14px; }
.pr-card .setrows + .fine { margin-top: 10px; }
.pr-card .setrows + .fine + .fine { margin-top: 6px; }
.pr-card .gx-wnote { margin-top: 12px; }
.pr-card .setch .st { white-space: nowrap; }
.pr-card .setch .seg button { padding: 6px 12px; font-size: 13px; }
/* ===== area 3 END ===== */

/* ===== area 4 plan settings START ===== */
[data-replan] .setcb .alert { margin: 0 0 14px; }
[data-replan] .pl-confirm { margin-top: 0; }
/* ===== area 4 END ===== */

/* ===== area 5 billing and data START ===== */
/* Plan & billing and Your data: each card is a .setcard with the shared head (views/billing.js,
   views/settings-data.js). The head replaces the old uppercase .section label inside the body. */
.setcb > .bill-line:last-child { margin-bottom: 0; }
.setcb > .bill-packlist .bill-pack:first-child { border-top: 0; padding-top: 0; }
.setcb > .bill-packlist:last-child { margin-bottom: 0; }
.bill-picker .setch .seg { margin: 0; flex: none; }
.dx-card .setcb > p.muted { margin: 0; font-size: 13.5px; }
.dx-card .setcb > p.muted + p.muted { margin-top: 10px; }
.dx-card .setcb > .alert { margin: 12px 0 0; }
.dx-card .setcb > .dxlist { margin: 14px 0 12px; }
.dx-card .setcb > .dxlist:first-child { margin-top: 0; }
.dx-card .setcb > .dxlist:last-child { margin-bottom: 0; }
.dx-card .setcb > .dxlist + .cx-note { margin-top: 0; }
.dx-card .setcb > .dxhead:first-child { margin-top: 0; }
.dx-card .setcb > .cx-confirm:first-child { margin-top: 0; }
.dx-card .setcb > .actions { margin-top: 14px; }
/* ===== area 5 END ===== */

/* ===== area 6 team START ===== */
/* People: Members and Open invitations are headed setcards, the table sits under the head with a top rule. */
.tm-members .tablewrap.sep, .tm-invites .tablewrap.sep { margin-top: 16px; border-top: 1px solid var(--border); }
.tm-members .tm-invite { margin-top: 16px; }
.tm-members .tm-invite + .tablewrap.sep { margin-top: 0; }
.tm-members .footnote { padding: 12px 16px; }
/* ===== area 6 END ===== */
/* New article (views/article-new.js): the cards reuse .setcard, .setcb, .setgrid and the .cx-pick radio rows. */
.an-form { max-width: 760px; }
.an-pick { margin: 0; }
.an-facts { margin: 0; }
.an-note { margin: 0; font-size: 13.5px; }
.an-facts + .an-note, .an-note + .an-note { margin-top: 12px; }
/* The picture-gone notice on a finished video (AMV-05): a dot and a line on a sunken ground, an amber edge. */
.an-note[data-role="gone-notice"] { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--warning); background: var(--surface-sunken); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 14px; }
.an-note[data-role="gone-notice"] .dot { margin-top: 7px; }
.an-field { margin-bottom: 0; }
.an-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.an-foot-note { flex: 1 1 240px; min-width: 0; font-size: 13px; }
@media (max-width: 560px) {
  .an-form .setgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Product catalog page: grid or list, a drawer and the library picker (settings-catalog.js) ---- */
.ic-grid { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h7v7H3z M14 3h7v7h-7z M3 14h7v7H3z M14 14h7v7h-7z'/%3E%3C/svg%3E"); }
.ic-list { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13 M8 12h13 M8 18h13 M3 6h.01 M3 12h.01 M3 18h.01'/%3E%3C/svg%3E"); }
.setmain.pg-main { max-width: none; }
.pg-head { display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 18px; }
.pg-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.pg-head h1 { font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.015em; margin: 0; line-height: 1.25; }
.pg-head .sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.pg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.pg-search { position: relative; flex: 1 1 240px; max-width: 380px; min-width: 0; }
.pg-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-subtle); pointer-events: none; }
.pg-search .input { padding: 9px 14px 9px 40px; font-size: 14px; }
.pg-tools select.input { width: auto; padding: 9px 12px; font-size: 14px; }
.pg-tools .sp { flex: 1; }
.pg-view { display: inline-flex; }
.pg-view button { padding: 7px 11px; display: inline-flex; align-items: center; }
.pg-view .ic { width: 16px; height: 16px; }
.pg-count { font-size: 13px; color: var(--text-muted); }
/* tiles */
.pg-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pg-grid.sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pg-tile { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.pg-tile.is-sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pg-tile.is-sug { border-style: dashed; border-color: var(--border-strong); background: transparent; }
.pg-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(145deg, var(--surface-sunken), var(--surface)); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pg-grid.sm .pg-media { aspect-ratio: 4 / 3; }
.pg-media svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the no-image placeholder: the catalog's existing tinted tile with the outlined box icon (.setrow .lead), enlarged to fill the picture slot */
.pg-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--accent-tint); color: var(--primary); }
.pg-ph .ic { width: 52px; height: 52px; }
.pg-grid.sm .pg-ph .ic, .pg-photo.sm .pg-ph .ic { width: 42px; height: 42px; }
.pg-thumb .pg-ph .ic { width: 20px; height: 20px; }
.pg-row .pg-thumb .pg-ph .ic { width: 24px; height: 24px; }
.pg-edit { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-raised); border: 1px solid var(--border-strong); color: var(--text); box-shadow: var(--shadow-1); }
.pg-edit .ic { width: 15px; height: 15px; }
.pg-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; min-width: 0; }
.pg-grid.sm .pg-body { padding: 11px 13px 13px; }
.pg-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-subtle); letter-spacing: .2px; }
.pg-kind .ic { width: 13px; height: 13px; }
.pg-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.pg-grid.sm .pg-name { font-size: 15px; }
.pg-price { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-price.req { font-weight: 600; color: var(--text-muted); }
.pg-avail { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.pg-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 12.5px; color: var(--text-subtle); }
.pg-foot .src { display: inline-flex; align-items: center; gap: 6px; }
.pg-foot .src .ic { width: 13px; height: 13px; }
.pg-foot .st { font-size: 12.5px; }
.pg-sugacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pg-sugacts .btn { flex: 0 0 auto; }
.pg-span { grid-column: 1 / -1; min-width: 0; }
.pg-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warning); font-weight: 600; margin-top: 2px; }
.pg-flag .ic { width: 13px; height: 13px; }
/* table */
.pg-tablecard { overflow: hidden; }
table.pg-t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.pg-t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-subtle); padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); }
table.pg-t td { padding: 10px 8px; border-top: 1px solid var(--border); vertical-align: middle; }
table.pg-t tr:first-child td { border-top: 0; }
table.pg-t th:first-child, table.pg-t td:first-child { padding-left: 16px; }
table.pg-t th:last-child, table.pg-t td:last-child { padding-right: 16px; }
table.pg-t td.thumb { width: 56px; padding-right: 0; }
table.pg-t td.nm b { font-weight: 600; display: block; overflow-wrap: anywhere; }
table.pg-t td.nm small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.pg-t td.pr { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
table.pg-t td.mu { color: var(--text-muted); white-space: nowrap; }
table.pg-t td .pg-avail { font-size: 13px; }
table.pg-t td.acts { text-align: right; white-space: nowrap; width: 1%; }
table.pg-t tr.is-sel td { background: var(--accent-tint); }
table.pg-t tr.is-sug td { color: var(--text); }
table.pg-t .src { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); white-space: nowrap; }
table.pg-t .src .ic { width: 13px; height: 13px; }
.pg-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--surface-sunken); position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.pg-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the detail form */
.pg-photo { margin: 0 0 16px; }
.pg-photo .pg-media { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.pg-photo .label { margin-top: 12px; }
.pg-photo.sm .pg-media { aspect-ratio: 16 / 9; }
.pg-photo .hint { display: block; }
.pg-imgacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pg-imgacts .btn .ic { width: 14px; height: 14px; }
.pg-photo .label { margin-top: 0; }
.pg-photo .hint { margin-top: 10px; }
/* image library picker */
.pg-modal { position: fixed; left: 50%; top: 40px; transform: translateX(-50%); width: min(780px, calc(100% - 48px)); max-height: calc(100% - 80px); z-index: 41; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-2, var(--shadow-1)); display: flex; flex-direction: column; overflow: hidden; }
.pg-modal .mh { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.pg-modal .mh > div { flex: 1; min-width: 0; }
.pg-modal .mh h2 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.pg-modal .mh p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.pg-modal .mt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px 0; }
.pg-modal .mt .pg-search { max-width: none; }
.pg-modal .mt .btn .ic { width: 14px; height: 14px; }
.pg-modal .mb { padding: 14px 20px 6px; overflow: auto; flex: 1; }
.pg-modal .mn { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 20px 12px; font-size: 12.5px; color: var(--text-subtle); }
.pg-modal .mf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); }
.pg-modal .mf .sp { flex: 1; }
.pg-modal .mf .btn .ic { width: 14px; height: 14px; }
.pg-libgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; }
.pg-lib { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pg-lib .pg-media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); border: 1px solid var(--border); }
.pg-lib.is-pick .pg-media { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pg-lib .tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: none; place-items: center; }
.pg-lib.is-pick .tick { display: grid; }
.pg-lib .tick .ic { width: 12px; height: 12px; }
.pg-lib b { font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pg-lib small { font-size: 12px; color: var(--text-subtle); line-height: 1.3; }
/* image states board */
/* split: grid and drawer */
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.pg-drawer { position: sticky; top: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-2, var(--shadow-1)); overflow: hidden; }
.pg-drawer .dh { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--border); }
.pg-drawer .dh b { flex: 1; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-subtle); }
.pg-drawer .db { padding: 18px 20px 6px; }
.pg-drawer .df { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; background: var(--surface); }
.pg-drawer .df .sp { flex: 1; }
.pg-drawer .df .btn .ic { width: 14px; height: 14px; }
/* empty */
.pg-empty { text-align: center; padding: 44px 24px 40px; }
.pg-empty h2 { margin: 18px 0 6px; font-family: var(--font-display); font-size: 20px; font-weight: 650; }
.pg-empty p { max-width: 460px; margin: 0 auto 22px; font-size: 14px; color: var(--text-muted); }
.pg-empty .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pg-empty .acts .btn .ic { width: 14px; height: 14px; }
.pg-empty .fine { margin: 18px auto 0; max-width: 460px; display: block; font-size: 12.5px; color: var(--text-subtle); }
.pg-badge { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-sunken); border: 1px solid var(--border); color: var(--text-muted); }
.pg-badge .ic { width: 24px; height: 24px; }
/* phone */
.pg-rows { display: flex; flex-direction: column; }
.pg-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--border); }
.pg-row:first-child { border-top: 0; }
.pg-row .pg-thumb { width: 56px; height: 56px; border-radius: 10px; }
.pg-row .nm { min-width: 0; }
.pg-row .nm b { display: block; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; line-height: 1.3; }
.pg-row .nm > span:not(.pg-avail) { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pg-row .nm .pg-avail { display: flex; font-size: 12.5px; margin-top: 3px; }
.pg-row .pr { font-weight: 700; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.pg-row .pr small { display: block; font-weight: 400; font-size: 12px; color: var(--text-subtle); margin-top: 2px; }
.pg-scrim-on { display: block !important; }
/* The reveal around the Products page fades only. A finished translate still leaves a transform on its
   element, which becomes the containing block for position: fixed, so the picker sheet and the product
   drawer sized to the whole page instead of the screen and their buttons sat screens below the fold. */
.js .rv:has(.pg-split) { animation: rv-fade var(--rv-dur) var(--ease-premium) both; animation-delay: calc(var(--i, 0) * var(--rv-step)); }
.pg-scrim { display: none; position: fixed; inset: 0; background: var(--overlay); z-index: 40; }
.pg-drawer .seteditor { border: 0; padding: 0; margin: 0; background: none; }
.pg-drawer .seteditor .setgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-drawer .seteditor .actions { position: sticky; bottom: 0; margin: 12px -20px 0; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.pg-photo .hint { margin-top: 10px; font-size: 12.5px; color: var(--text-subtle); }
.pg-empty .setcard-note { margin-top: 12px; }
.pg-more { margin: 16px 0 0; }
.pg-none { margin: 0; padding: 28px 8px; text-align: center; color: var(--text-muted); font-size: 14px; }
@media (max-width: 1100px) {
  .pg-scrim { display: block; }
  .pg-split { grid-template-columns: minmax(0, 1fr); }
  .pg-drawer { position: fixed; left: 0; right: 0; bottom: 0; top: 64px; z-index: 41; border-radius: 20px 20px 0 0; border-bottom: 0; display: flex; flex-direction: column; }
  .pg-drawer .db { flex: 1; overflow: auto; }
  .pg-photo .pg-media { aspect-ratio: 16 / 9; max-height: 260px; }
  .pg-modal { left: 0; right: 0; top: 64px; bottom: 0; width: auto; max-height: none; transform: none; border-radius: 20px 20px 0 0; border-bottom: 0; }
}
@media (max-width: 700px) {
  .pg-search { flex-basis: 100%; max-width: none; }
  .pg-tools select.input { flex: 1 1 130px; }
  .pg-grid, .pg-grid.sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pg-grid .pg-media, .pg-grid.sm .pg-media { aspect-ratio: 1 / 1; }
  .pg-body, .pg-grid.sm .pg-body { padding: 10px 12px 12px; }
  .pg-name, .pg-grid.sm .pg-name { font-size: 14.5px; }
  .pg-price { font-size: 15px; }
  .pg-ph .ic, .pg-grid.sm .pg-ph .ic { width: 40px; height: 40px; }
  .pg-libgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-drawer .seteditor .setgrid { grid-template-columns: minmax(0, 1fr); }
  .pg-head .btn { width: 100%; }
  .pg-grid.pg-found { grid-template-columns: minmax(0, 1fr); }
  .pg-grid.sm.pg-found .pg-media { aspect-ratio: 16 / 9; }
}

/* Research (/research, /research/:id): the weekly research results. Flat text and dots, no chips. */
.rs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; padding: 4px 0; }
.rs-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; min-width: 0; border-left: 1px solid var(--border); }
.rs-stat:first-child { border-left: 0; }
.rs-stat b { font: 650 22px/1.2 var(--font-display); letter-spacing: -.01em; }
.rs-stat span { font-size: 12.5px; color: var(--text-muted); }
.rs-split { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.rs-pane { min-width: 0; }
.rs-list { padding: 6px 0; }
.rs-grp { margin: 0; padding: 12px 18px 6px; font: 600 11.5px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.rs-run { display: flex; flex-direction: column; gap: 4px; padding: 12px 18px; color: var(--text); text-decoration: none; border-top: 1px solid var(--border); border-left: 3px solid transparent; }
.rs-grp + .rs-run { border-top: 0; }
.rs-run:hover { background: var(--surface-sunken); }
.rs-run[aria-current="true"] { background: var(--accent-tint); border-left-color: var(--accent); }
.rs-run:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -2px; }
.rs-run-t { font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.rs-run-m { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-muted); }
.rs-run-m .st { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.rs-run-w { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; overflow-wrap: anywhere; }
.rs-detail { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.rs-head { display: flex; flex-direction: column; gap: 6px; }
.rs-back { display: none; font-size: 13px; color: var(--accent-text); text-decoration: none; font-weight: 600; }
.rs-title { margin: 0; font: 650 22px/1.25 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.rs-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-muted); }
.rs-meta .st { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.rs-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rs-detail .alert { margin: 0; }
.rs-fresh { display: flex; flex-direction: column; gap: 6px; }
.rs-meter { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: var(--radius-full); background: var(--surface-sunken); overflow: hidden; }
.rs-meter::-webkit-progress-bar { background: var(--surface-sunken); border-radius: var(--radius-full); }
.rs-meter::-webkit-progress-value { background: var(--accent); border-radius: var(--radius-full); }
.rs-meter::-moz-progress-bar { background: var(--accent); border-radius: var(--radius-full); }
.rs-meter.due::-webkit-progress-value { background: var(--warning); }
.rs-meter.due::-moz-progress-bar { background: var(--warning); }
.rs-fresh-l { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.rs-blk { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.rs-blk-h { display: flex; align-items: center; gap: 10px; }
.rs-blk-h h4 { margin: 0; font: 600 14px/1.3 var(--font-sans); }
.rs-cnt { font-size: 12.5px; color: var(--text-muted); }
.rs-blk-h .btn { margin-left: auto; }
.rs-lst { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rs-lst li { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.rs-sub { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
p.rs-sub { margin: 0; }
.rs-date, .rs-source small, .rs-quote small { color: var(--text-muted); font-size: 12px; }
.rs-source small, .rs-quote small { display: block; margin-top: 2px; }
.rs-src-link { font-size: 12.5px; color: var(--accent-text); }
.rs-num { display: flex; gap: 12px; align-items: baseline; }
.rs-num b { flex: none; font: 600 15px/1.3 var(--font-mono); }
.rs-why, .rs-terms, .rs-allow { margin: 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.rs-allow { font-size: 12.5px; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--border); }
.rs-quote { padding-left: 12px; border-left: 2px solid var(--border-strong); }
.rs-lane { margin: 8px 0 0; font: 600 11.5px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.rs-idea { display: flex; align-items: center; gap: 12px; justify-content: space-between; font-size: 14px; line-height: 1.45; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rs-idea > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rs-idea .btn { flex: none; }
.rs-onlist { flex: none; font-size: 12.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.rs-onlist::before { content: ""; width: 12px; height: 12px; background: var(--success); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.rs-used { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rs-used small { color: var(--text-muted); font-size: 12.5px; text-align: right; }
.rs-used a { color: var(--accent-text); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-stat:nth-child(3) { border-left: 0; }
  .rs-split { grid-template-columns: minmax(0, 1fr); }
  .rs-split.is-detail .rs-pane-list, .rs-split.is-list .rs-pane-detail { display: none; }
  .rs.is-detail > div:first-child, .rs.is-detail > div:nth-child(2) { display: none; }
  .rs-back { display: inline-block; }
  .rs-detail { padding: 16px; }
  .rs-act .btn { flex: 1 1 100%; }
  .rs-idea { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Videos, 3D object style (views/motion-ads.js, motion-ad-new.js, motion-ad.js): the cards reuse .setcard, .setcb, .cx-pick,
   .cx-facts and .pbar. The preview frame takes its background and ink from the person's chosen color
   (a computed style on the element), so only its shape lives here. */
.ma-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 24px; align-items: start; }
.ma-layout .an-form { max-width: none; }
/* The sketch rides beside the form and stays near the middle of the visible screen, so a field far down the form can be edited with the
   result in view. The frame is as tall as the screen allows (its width follows its height through the aspect ratio) and never so
   tall that it slides under the 56px top bar; where the screen is short the top edge clamps below that bar and the frame shrinks to fit. */
.ma-side { position: sticky; top: max(72px, calc(50vh - 290px)); align-self: start; }
.ma-side .ma-frame { width: min(100%, calc((100vh - 190px) * 9 / 16)); margin-inline: auto; }
.ma-side .ma-frame-reel[data-aspect="4:5"] { width: min(100%, calc((100vh - 190px) * 4 / 5)); }
.ma-side .ma-caption { max-width: 300px; margin-inline: auto; }
.ma-frame { position: relative; aspect-ratio: 9 / 16; width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px 14px; text-align: center; overflow: hidden; }
.ma-chest { display: block; width: 46%; aspect-ratio: 5 / 4; border: 3px solid currentColor; border-radius: 6px 6px 3px 3px; position: relative; opacity: .85; }
.ma-chest::before { content: ''; position: absolute; left: -3px; right: -3px; top: 36%; border-top: 3px solid currentColor; }
.ma-chest::after { content: ''; position: absolute; left: 50%; top: 30%; width: 14%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 3px; background: currentColor; }
.ma-frame-head { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.ma-frame-url { font-size: 12px; opacity: .8; overflow-wrap: anywhere; }
.ma-frame-reel { gap: 10px; }
/* The portrait (4:5) shape: the same sketch, shorter. */
.ma-frame-reel[data-aspect="4:5"] { aspect-ratio: 4 / 5; gap: 8px; padding-block: 14px; }
.ma-frame-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; overflow-wrap: anywhere; }
.ma-frame-points { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.25; opacity: .9; }
.ma-frame-points > span { overflow-wrap: anywhere; }
.ma-caption { margin: 10px 0 0; font-size: 12.5px; }
/* The Animated video's background choices (views/video-pattern-picker.js). The drawings stand for the video, which has no light
   and dark, so their ground and stroke are fixed; the preview's pattern takes the preview's own ink color at low opacity. */
.vp-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* One row that scrolls sideways, so the whole card stays short and the sketch above it stays in view while you browse. The
   next tile peeks in at the edge as the cue to swipe, and the padding leaves room for the focus ring and the selected border. */
.vp-picks { display: flex; gap: 10px; margin: 6px -4px 0; padding: 4px 4px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.vp-pick { flex: 0 0 104px; scroll-snap-align: start; appearance: none; text-align: left; background: transparent; color: inherit; font: inherit; border: 1.5px solid var(--border); border-radius: 14px; padding: 6px; display: grid; gap: 6px; cursor: pointer; align-content: start; min-width: 0; }
.vp-pick:hover { border-color: var(--border-strong); }
.vp-pick[aria-checked="true"] { border-color: var(--accent); background: var(--accent-tint); }
.vp-pick:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.vp-thumb { display: block; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; background: var(--vp-ground); }
.vp-art { display: block; width: 100%; height: 100%; }
.vp-art path, .vp-art line, .vp-art ellipse, .vp-art circle, .vp-art polygon { fill: none; stroke: var(--vp-ink); stroke-width: 4; stroke-linejoin: round; }
.vp-art .f { fill: var(--vp-ink); stroke: none; }
.vp-name { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.vp-pick .tick { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; }
.vp-pick[aria-checked="true"] .tick { background: var(--accent); border-color: var(--accent); }
.vp-note { margin-top: 0; justify-content: flex-start; }
.ma-frame-pat { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }
.ma-frame-pat path, .ma-frame-pat line, .ma-frame-pat ellipse, .ma-frame-pat circle, .ma-frame-pat polygon { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }
.ma-frame-pat .f { fill: currentColor; stroke: none; }
.ma-frame-reel > :not(.ma-frame-pat) { position: relative; }
/* The website line in the sketch: a pill and a button are plates (their colors are computed in motion-ad-new.js: the ink behind the
   frame's own color), a pill fully round and a button with a small radius. None is plain text. */
.ma-frame-reel[data-cta="pill"] .ma-frame-url, .ma-frame-reel[data-cta="button"] .ma-frame-url { padding: 4px 12px; opacity: 1; font-weight: 600; }
.ma-frame-reel[data-cta="pill"] .ma-frame-url { border-radius: 999px; }
.ma-frame-reel[data-cta="button"] .ma-frame-url { border-radius: 5px; }
.ma-own { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.ma-own .ic { width: 13px; height: 13px; vertical-align: 0; }
.ma-colorrow { display: flex; align-items: center; gap: 10px; }
/* The workspace's saved brand colors: flat chips with a name, no pill. The pressed one has the accent border and a tint, like the video background choices. */
.ma-brandrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ma-brandpick { appearance: none; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "chip name" "chip hex"; column-gap: 10px; align-items: center; text-align: left; min-width: 132px; padding: 8px 12px 8px 8px; font: inherit; color: inherit; background: transparent; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; }
.ma-brandpick:hover { border-color: var(--border-strong); }
.ma-brandpick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.ma-brandpick:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.ma-brandchip { grid-area: chip; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-strong); }
.ma-brandname { grid-area: name; font-size: 13px; font-weight: 600; line-height: 1.2; }
.ma-brandhex { grid-area: hex; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); line-height: 1.2; }
.ma-swatch { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.ma-hex { max-width: 140px; font-family: var(--font-mono); }
/* A counter never wraps onto a second line in the narrow two column fields. */
.ma-layout .an-form .hint .num { white-space: nowrap; flex: none; }
.ma-list { overflow: hidden; }
.ma-listnote { margin: 0 0 12px; font-size: 13.5px; }
.ma-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; color: inherit; text-decoration: none; }
.ma-row + .ma-row { border-top: 1px solid var(--border); }
.ma-row:hover, .ma-row:focus-visible { background: var(--surface-sunken); }
.ma-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.ma-row-main b { font-size: 15px; overflow-wrap: anywhere; }
.ma-timeline { margin-top: 12px; }
.ma-playerwrap { display: flex; justify-content: center; margin-bottom: 16px; }
.ma-player { width: 100%; max-width: 320px; aspect-ratio: 9 / 16; background: var(--surface-sunken); border-radius: var(--radius-xl); }
.ma-cancel { margin: 20px 0; }
.ma-colorfact { display: inline-flex; align-items: center; gap: 8px; }
.ma-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border-strong); }
@media (max-width: 900px) {
  .ma-layout { grid-template-columns: minmax(0, 1fr); }
  .ma-side { position: static; order: -1; max-width: 200px; }
  .ma-side .ma-frame, .ma-side .ma-frame-reel[data-aspect="4:5"] { width: 100%; }
}

/* Event ads (views/event-ads.js, event-ad-new.js, event-ad.js): list, create form and review page. Status is a dot plus text, never a pill. */
.ea-list { padding: 0; overflow: hidden; }
.ea-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.ea-row:last-child { border-bottom: 0; }
.ea-row:hover { background: var(--surface-raised); }
.ea-row:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: -2px; }
.ea-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ea-row-main b { overflow-wrap: anywhere; }
.ea-thumb { flex: none; width: 72px; height: 72px; border-radius: var(--radius-md); object-fit: cover; background: var(--surface-sunken); border: 1px solid var(--border); }
.ea-thumb-empty { display: inline-block; }
.ea-form { max-width: 760px; }
/* Look card: Size first, then the three styles as pictures drawn at that size. The tiles are the Card style picker's own
   (.cspick, .cstiles, .cstile, .cs-shot); this adds the picture's shape, which follows the chosen size, and the larger view. */
.ea-look[data-size="portrait"] .ea-shot { aspect-ratio: 4 / 5; }
.ea-look[data-size="square"] .ea-shot { aspect-ratio: 1 / 1; }
.ea-look[data-size="story"] .ea-shot { aspect-ratio: 9 / 16; }
.ea-look[data-size="letter"] .ea-shot { aspect-ratio: 17 / 22; }
.ea-shot img { object-position: center top; }
.ea-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ea-tiles .cs-shot { border-color: var(--border-strong); }
.ea-seg { margin-top: 2px; }
.ea-styles { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.ea-styles legend { padding: 0; }
.ea-styles .label { margin-bottom: 0; }
.ea-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.ea-blurb { display: none; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
/* A phone: the Card style picker's rule already makes .cstiles a sideways row and drops the tag lines, so the chosen style's line is said once beneath it. */
@media (max-width: 520px) {
  .ea-tiles { grid-template-columns: none; }
  .ea-blurb { display: block; }
  .ea-seg { display: flex; width: 100%; }
  .ea-seg button { flex: 1 1 0; padding-inline: 6px; }
}
.ea-bigwrap { display: flex; justify-content: center; padding: 4px 0 8px; }
.ea-big { display: block; width: auto; height: auto; max-width: min(100%, 360px); max-height: 58vh; border-radius: var(--radius-md); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); }
.ea-bighint { text-align: center; margin: 8px 0 0; }
.ea-note { margin: 0; font-size: 13.5px; }
.ea-group { margin-bottom: 8px; }
.ea-gap { height: 8px; }
.ea-pic-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ea-pic-img { flex: none; width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; background: var(--surface-sunken); border: 1px solid var(--border); }
.ea-pic-empty.kept { border-style: dashed; }
.ea-pic-name { flex: 1 1 140px; min-width: 0; font-size: 13.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.ea-pic .btn.disabled { opacity: .45; pointer-events: none; }
.ea-contacts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ea-contact { display: flex; align-items: flex-end; gap: 12px; }
.ea-contact > .field { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.ea-x { flex: none; }
.ea-person { display: flex; flex-direction: column; gap: 4px; }
.ea-block { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
.ea-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.ea-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-muted); margin: 8px 0; }
.ea-check input { margin-top: 3px; flex: none; }
.ea-brand-name { margin: 0 0 12px; }
.ea-swatches { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; font-size: 13px; color: var(--text-muted); }
.ea-swatch { display: inline-flex; align-items: center; gap: 8px; }
.ea-swatch i { width: 18px; height: 18px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); flex: none; }
.ea-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ea-foot-note { flex: 1 1 240px; min-width: 0; font-size: 13px; }
.ea-back { margin: 0 0 8px; font-size: 13.5px; }
.ea-back a { color: var(--accent-text); }
.ea-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ea-view { padding: 16px; display: grid; place-items: center; background: var(--surface-sunken); }
.ea-ad { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
.ea-ad-story { max-height: 78vh; width: auto; }
.ea-downloads { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) {
  .ea-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ea-row { gap: 12px; padding: 12px; }
  .ea-thumb { width: 56px; height: 56px; }
  .ea-contact { flex-direction: column; align-items: stretch; gap: 4px; }
}

/* Voice picker on the Videos page (views/voice-picker.js): one row per voice, a native radio beside its
   own play button. Flat rows, a status dot plus text, no pills. */
.voice-picker { display: grid; gap: 6px; min-width: 0; }
.voice-picks { display: grid; gap: 2px; max-height: 440px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px; }
.voice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--radius-md); min-width: 0; }
.voice-row:hover { background: var(--accent-tint); }
.voice-row.on { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.voice-pick { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.voice-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.voice-pick .r { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.voice-row.on .voice-pick .r { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface, var(--bg)); }
.voice-pick input:focus-visible ~ .r { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.voice-pick .t { display: grid; gap: 1px; min-width: 0; }
.voice-pick .t b { font-size: 14px; font-weight: 600; }
.voice-pick .t span { font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.voice-side { display: flex; align-items: center; gap: 12px; flex: none; }
.voice-status { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.voice-row .play { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: var(--accent-text); font: 600 12.5px var(--font-sans); cursor: pointer; }
.voice-row .play:hover { color: var(--text); text-decoration: underline; }
.voice-row .play:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); border-radius: var(--radius-xs); }
.voice-row .play .tri { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.voice-row .play .stop { width: 9px; height: 9px; background: currentColor; border-radius: 1px; }
@media (max-width: 560px) { .voice-side { gap: 6px; } .voice-status { display: none; } .voice-picks { max-height: 70vh; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Videos page, generic style form (views/video-style-form.js, views/video-new.js). Tokens only, no pills. */
.vs-form { display: block; }
.vs-grid { grid-template-columns: 1fr; }
.vs-rows { display: grid; gap: 8px; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.vs-row .vs-from { width: 92px; }
.vs-row:has(.vs-from) { grid-template-columns: auto minmax(0, 1fr) auto; }
.vs-music { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.vs-mood { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
@media (max-width: 560px) { .vs-row, .vs-row:has(.vs-from) { grid-template-columns: minmax(0, 1fr); } .vs-row .vs-from { width: 100%; } }
.vb-current { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.vb-shot { position: relative; display: block; width: 72px; aspect-ratio: 9 / 16; flex: none; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-sunken); }
.vb-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vb-wash { position: absolute; inset: 0; background: var(--overlay); }
.vb-name { color: var(--text-muted); overflow-wrap: anywhere; }
.vb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.vb-opt { display: grid; gap: 6px; justify-items: start; padding: 8px; text-align: left; background: var(--surface); color: var(--text); border: var(--border-width-control) solid var(--border); border-radius: var(--radius-lg); cursor: pointer; font: inherit; }
.vb-opt:hover { border-color: var(--border-strong); }
.vb-opt.on { border-color: var(--accent); }
.vb-opt:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
/* A small preview opens full size: the shot sits in a button with the eye (.peek, the design tile's
   Preview look) in its corner. In the library grid the eye is its own button over the tile's shot,
   so choosing a picture and looking at it stay two separate clicks. */
.vb-zoom { position: relative; display: block; flex: none; padding: 0; border: 0; background: none; border-radius: var(--radius-md); cursor: zoom-in; }
.vb-zoom:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.vb-zoom:hover .vb-shot { border-color: var(--border-strong); }
.peek.vb-peek { top: 4px; right: 4px; padding: 6px; gap: 0; }
.vb-tile { position: relative; display: grid; min-width: 0; }
.vb-tile > .peek.vb-peek { top: 12px; right: auto; left: 51px; }
.vs-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.vs-pic { margin: 0; display: grid; gap: 6px; }
.vs-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
/* One picture for one point of the Animated video (views/video-style-pictures.js, pointPicture). */
.an-point { display: grid; gap: 10px; padding-top: 16px; margin-top: 4px; margin-bottom: 8px; border-top: 1px solid var(--border); }
.vs-point { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: -6px; margin-bottom: 14px; }
.vs-thumb { width: 96px; height: 64px; flex: none; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; background: var(--surface-sunken); display: grid; place-items: center; }
.vs-thumb.empty { border-style: dashed; color: var(--text-muted); }
.vs-thumb img, .vs-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-clipface { position: relative; display: block; width: 100%; height: 100%; background: var(--surface-sunken); }
.vs-play { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--overlay); }
.vs-play::after { content: ''; position: absolute; left: 10px; top: 7px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--on-overlay); }
.vs-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 200px; }
.vs-meta { font-size: 13px; overflow-wrap: anywhere; }
.vs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-point .err { flex-basis: 100%; }
.ma-frame-clip { height: 40px; background: var(--surface-sunken); border: 1px solid var(--border-strong); }
.ma-frame-pic { display: block; width: 100%; max-height: 56px; margin-top: 4px; object-fit: cover; border-radius: 6px; }

/* The chat-style setup (views/setup-chat.js): Gild asks one thing at a time. Gild's lines sit left beside
   the fox, the person's answers sit right, and the one open question carries its own controls. */
.chat { display: grid; gap: var(--space-5); max-width: 720px; margin: 0 auto; width: 100%; }
.chat-head { align-items: flex-start; }
.chat-log { display: grid; gap: var(--space-4); min-width: 0; }
.chat-row { display: flex; gap: var(--space-4); align-items: flex-end; min-width: 0; }
.chat-row.you { justify-content: flex-end; }
.chat-ava { width: 56px; flex: none; align-self: flex-end; }
.chat-row.from-gild:not(.now) .chat-ava { visibility: hidden; }
.chat-fox { display: block; width: 100%; height: auto; }
.chat-col { display: grid; gap: var(--space-3); min-width: 0; max-width: min(100%, 560px); }
.chat-row.you .chat-col { justify-items: end; }
.chat-bubble { margin: 0; padding: 10px 14px; border-radius: var(--radius-lg); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-bubble.from-gild { background: var(--surface-raised); border: 1px solid var(--border-strong); box-shadow: var(--shadow-1); color: var(--text); }
.chat-bubble.you { background: var(--accent-tint); border: 1px solid var(--accent); color: var(--text); }
.chat-logo { display: block; max-width: 120px; max-height: 64px; object-fit: contain; }
.chat-found { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: 14px; overflow-wrap: anywhere; }
.chat-quick { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.chat-quick .btn { min-height: 44px; }
.chat-composer { display: grid; gap: var(--space-3); min-width: 0; width: min(100%, 520px); }
.chat-composer .input { width: 100%; }
.chat-note, .chat-scanline { margin: 0; font-size: 13px; color: var(--text-muted); }
.chat-scanhost { min-height: 0; }
.chat-scanhost .scanstart { display: none; }
.chat-scanhost .scanstart .err:not([hidden]) { display: block; }
@media (max-width: 560px) {
  .chat-ava { width: 40px; }
  .chat-row { gap: var(--space-3); }
}

/* Style guide as a setup input: the picker, the reading, the confirm card and the Branding record. */
.gl-ic-lg { width: 28px; height: 28px; color: var(--text-muted); }
.gl-entry { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; padding-top: var(--space-3); border-top: 1px dashed var(--border); }
.gl-entry span { font-size: 13px; color: var(--text-muted); flex: 1 1 220px; }
.gl-drop { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-8) var(--space-6); text-align: center; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.gl-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-sunken)); }
.gl-drop p { margin: 0; display: grid; gap: var(--space-2); }
.gl-drop p span { font-size: 13px; color: var(--text-muted); }
.gl-file { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: 14px; }
.gl-file > span { color: var(--text-muted); }
.gl-filename { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.gl-card { display: grid; gap: var(--space-6); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.gl-sec { display: grid; gap: var(--space-4); }
.gl-sec + .gl-sec { padding-top: var(--space-6); border-top: 1px solid var(--border); }
.gl-sec-h { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; align-items: baseline; }
.gl-sec-h h4 { margin: 0; font: 600 14px var(--font-display); letter-spacing: .02em; }
.gl-roles, .gl-schemes, .gl-logos, .gl-ns ul { list-style: none; margin: 0; padding: 0; }
.gl-roles { display: grid; gap: var(--space-3); }
.gl-role { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--space-4); align-items: center; font-size: 14px; }
.gl-role-t { display: grid; min-width: 0; }
.gl-role-t span { font-size: 12.5px; color: var(--text-muted); }
.gl-role code { font: 500 13px var(--font-mono); color: var(--text); }
.gl-sw { width: 40px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); display: block; flex: none; }
.gl-sw.sm { width: 32px; height: 22px; }
.gl-sw.gl-empty { background: repeating-linear-gradient(45deg, transparent 0 5px, var(--border) 5px 6px); }
.gl-sw.gl-multi { background: linear-gradient(90deg, var(--gl-multi-a) 33%, var(--gl-multi-b) 33% 66%, var(--gl-multi-c) 66%); }
.gl-none code { color: var(--text-subtle); }
.gl-schemes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); }
.gl-scheme { display: grid; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--border-strong); font-size: 13px; min-width: 0; }
.gl-scheme b { font: 700 17px/1.1 var(--font-display); }
.gl-scheme small { font: 400 11px var(--font-mono); opacity: .85; overflow-wrap: anywhere; }
.gl-fonts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4); margin: 0; }
.gl-fonts div { display: grid; gap: var(--space-1); }
.gl-fonts dt { font-size: 12px; color: var(--text-muted); }
.gl-fonts dd { margin: 0; font: 600 15px var(--font-sans); overflow-wrap: anywhere; }
.gl-fonts dd small { display: block; font-weight: 400; font-size: 12px; color: var(--text-muted); }
.gl-fonts dd.gl-off { color: var(--text-subtle); font-weight: 400; }
.gl-logos { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.gl-logos li { display: grid; gap: var(--space-3); justify-items: start; font-size: 13px; color: var(--text-muted); }
.gl-logo-box { display: inline-grid; place-items: center; padding: var(--space-4) var(--space-5); background: var(--paper-0); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.gl-logo-img { display: block; max-width: 160px; max-height: 64px; }
.gl-ns { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.gl-ns summary { cursor: pointer; padding: var(--space-4) var(--space-5); font: 600 14px var(--font-sans); display: flex; justify-content: space-between; gap: var(--space-4); }
.gl-ns summary span { font-weight: 400; color: var(--text-muted); }
.gl-ns ul { display: grid; gap: var(--space-4); padding: 0 var(--space-5) var(--space-4); }
.gl-ns li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); align-items: start; font-size: 13.5px; }
.gl-ns-t { display: grid; gap: var(--space-1); min-width: 0; }
.gl-ns-t span { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.gl-ns-note { margin: 0; padding: 0 var(--space-5) var(--space-5); font-size: 12.5px; color: var(--text-muted); }
.gl-mark { width: 32px; height: 22px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: 500 10.5px var(--font-mono); color: var(--text-muted); }
.gl-mark .ic { width: 14px; height: 14px; }
.gl-strip { display: inline-flex; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-strong); margin-right: var(--space-4); vertical-align: middle; }
.gl-strip i { width: 22px; height: 22px; display: block; }
.gl-b-a { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-start; }
.gl-b-row { padding: 12px 20px 0; font-size: 13px; }
.gl-b-card .gl-ns { margin: 14px 20px 18px; }
.gl-b-card > .err { margin: 12px 20px 16px; }
.gl-b-card > .setch:last-child, .gl-b-card > .setch:only-child { padding-bottom: 18px; }
@media (max-width: 560px) { .gl-role { grid-template-columns: 40px 1fr; } .gl-role code { grid-column: 2; } }
.gl-b-flow { padding: 14px 20px 6px; display: grid; gap: var(--space-4); }
.gl-b-flow p { margin: 0; font-size: 13.5px; }
.gl-b-btns { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.gl-b-flow + .gl-ns { margin-top: 10px; }

/* What is new on your website (public/views/whats-new.js): only the pieces the shipped row, card, banner and photo patterns do not already cover. */
.wn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 14px; font-size: 12.5px; color: var(--text-muted); }
.wn-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wn-meta .ic { width: 13px; height: 13px; }
.wn-group { margin: 0; }
.wn-group + .wn-group { margin-top: 14px; }
.wn-group > h3 { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-subtle); }
.wn-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.wn-done { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.wn-done .ic { width: 13px; height: 13px; color: var(--success); }
.wn-done.no .ic { color: var(--text-subtle); }
.wn-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.wn-clear { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; }
.wn-clear .lead { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.wn-clear b { display: block; font-size: 14px; font-weight: 600; }
.wn-clear span.t { display: block; font-size: 13px; color: var(--text-muted); max-width: 62ch; }
.wn-photos .setphoto .ph { background: linear-gradient(135deg, var(--surface-sunken), var(--border)); }
.wn-photos .setphoto.gone { opacity: .45; }
.wn-photos .setphoto figcaption .go { font-weight: 600; }
.wn-photos .setphotos { grid-template-columns: repeat(3, minmax(0, 168px)); }
.wn-photos .setphoto figcaption { flex-wrap: wrap; padding: 22px 6px 6px; row-gap: 6px; }
.wn-photos .setphoto figcaption > span.go { flex: 1 1 100%; }
.wn-photos .wn-pa { display: flex; gap: 4px; }
.wn-photos .wn-pa .btn { padding: 0 8px; height: 24px; font-size: 11px; background: transparent; color: var(--on-overlay); border: 1px solid color-mix(in srgb, var(--on-overlay) 45%, transparent); }
.wn-ban-count { white-space: nowrap; }
@media (max-width: 560px) {
  .wn-acts .btn { flex: none; }
  .setrow.wn-r { flex-wrap: wrap; }
  .setrow.wn-r .wn-acts { width: 100%; justify-content: flex-end; padding-left: 46px; }
  .wn-photos .setphotos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The chooser opened from Replace on a point (AMV-05). */
.ch-group { padding: 12px 16px 16px; }
.ch-group + .ch-group { border-top: 1px solid var(--border); }
.ch-group h4 { margin: 0 0 8px; font: 700 12px var(--font-mono); color: var(--text-muted); }
.ch-list { display: grid; gap: 6px; }
.ch-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; width: 100%; padding: 8px; border-radius: var(--radius-md); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.ch-row:hover { border-color: var(--text-muted); }
.ch-row[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.ch-row .th { width: 84px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-sunken); }
.ch-row .th img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ch-t { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.ch-t b { font-weight: 600; }
.ch-t .s { color: var(--text-muted); font-size: 13px; }
.ch-t .fl { color: var(--warning); font-size: 13px; }
.ch-here { font-size: 13px; color: var(--text); }
.ch-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
/* Upload first: the block is pinned above the list, which is the only part that scrolls (.pp-sh-body is its own scroller). */
.ch-up { flex: none; display: grid; gap: 8px; padding: 12px 16px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ch-upload { position: relative; width: 100%; min-height: 48px; }
.ch-upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The real file input stays in the layout and on top of nothing: hidden by size and clip, never by display or the hidden attribute (iOS Safari will not open a picker from a control that is not rendered). */
.ch-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.ch-hint { font-size: 13px; }
.ch-or { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.ch-or::before, .ch-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
