/* Clipforge console — Apple product UI on the web. Tokens come from apple.css; this file only consumes them. */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
a, button, .btn, .shot, .cell, .qrow, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; }
body { margin: 0; background: var(--bg-grouped); color: var(--label); font: 17px/23px var(--font); -webkit-font-smoothing: antialiased; caret-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--gray-3) transparent; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a.plain { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 28px; line-height: 34px; letter-spacing: -.015em; }
h2 { font-size: 22px; line-height: 28px; letter-spacing: -.012em; margin: 0 0 10px; }
h3 { font-size: 15px; line-height: 20px; }
p { margin: 4px 0; }
code { font: 13px/18px var(--mono); background: var(--fill-3); padding: 1px 6px; border-radius: 6px; }
kbd { font: 12px var(--mono); background: var(--fill-3); border-radius: 5px; padding: 1px 6px; }
q { quotes: "\201C" "\201D"; }
.muted { color: var(--label-2); }
.small { font-size: 13px; line-height: 18px; }
.err { color: var(--red-text); font-size: 13px; line-height: 18px; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
/* grouped panels clip their corners with overflow:hidden, which would eat an outset ring */
.list a:focus-visible, .cell:focus-visible, .needs .row:focus-visible, .glance .row:focus-visible,
.form .fields label:focus-within { outline-offset: -3px; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- top bar (the one material surface) ---- */
.top { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); position: sticky; top: 0; z-index: 20; background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--separator); }
.bar { display: flex; align-items: center; height: 52px; gap: 28px; }
.brand { font-weight: 600; color: var(--label); font-size: 17px; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { color: var(--label-2); font-size: 15px; line-height: 20px; white-space: nowrap; padding: 4px 0; }
nav a.on { color: var(--label); font-weight: 500; }
nav a:hover { text-decoration: none; color: var(--label); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 16px; min-width: 0; }
.whoami { color: var(--label-2); font-size: 13px; line-height: 18px; white-space: nowrap; }
.signout { border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--font); color: var(--accent); font-size: 13px; line-height: 18px; white-space: nowrap; }
.signout:hover { text-decoration: underline; }
.studio-link { color: var(--accent); font-size: 13px; line-height: 18px; white-space: nowrap; text-decoration: none; }
.studio-link:hover { text-decoration: underline; }
.live { display: inline-flex; align-items: center; font-size: 13px; line-height: 18px; color: var(--label); background: var(--fill-3); padding: 5px 12px 5px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.live:hover { text-decoration: none; }

/* ---- page scaffolding ---- */
.hero { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -.02em; margin: 40px 0 24px; max-width: 30ch; text-wrap: balance; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0 16px; flex-wrap: wrap; }
.page-head .filters { flex-basis: 100%; }
section { margin: 32px 0; }
h1, h2, h3, [id] { scroll-margin-top: 68px; }
.sec-head { position: relative; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sec-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
/* a 1fr track is minmax(auto, 1fr), so one nowrap line inside would set a min-content floor and
   push the whole page sideways. min-width: 0 lets the track shrink and the text ellipsis instead. */
.cols > * { min-width: 0; }
.list li > div { min-width: 0; }
.cols > div > section:first-child { margin-top: 0; }
.cols > section { margin-top: 0; }

/* ---- grouped inset panels: lists, tables, form fields ---- */
.list { list-style: none; margin: 0; padding: 0; background: var(--bg-3); border-radius: var(--r-group); overflow: hidden; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 11px 16px; }
.list li + li { border-top: 1px solid var(--separator); }
.list b { font-weight: 600; font-size: 15px; line-height: 20px; }
.list p { font-size: 13px; line-height: 18px; }
.when { color: var(--label-2); font-size: 15px; line-height: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { font-size: 13px; line-height: 18px; color: var(--label-2); background: var(--fill-3); padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.tag.new { color: var(--bg-3); background: var(--label); }
.glance, .needs { background: var(--bg-3); border-radius: var(--r-group); overflow: hidden; margin: 0 0 12px; }
.glance .row, .needs .row { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 11px 16px; color: var(--label); font-size: 17px; transition: background var(--t-fast) var(--ease); }
.glance .row + .row, .needs .row + .row { border-top: 1px solid var(--separator); }
.glance .row:hover, .needs .row:hover { text-decoration: none; background: var(--fill-3); }
.glance b { font-weight: 600; margin-right: 6px; min-width: 2ch; font-variant-numeric: tabular-nums; }
.chev { margin-left: auto; color: var(--label-3); }
.activity li { font-size: 15px; line-height: 20px; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-group); background: var(--bg-3); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 20px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 400; color: var(--label-2); font-size: 13px; line-height: 18px; padding: 10px 16px; border-bottom: 1px solid var(--separator); white-space: nowrap; }
.tbl td { padding: 11px 16px; vertical-align: top; }
.tbl tbody tr + tr td { border-top: 1px solid var(--separator); }
.tbl td p { margin: 2px 0 0; }
.tbl.cands td { font-size: 14px; line-height: 19px; }
.excerpt { color: var(--label-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.logrow td { padding: 0 0 12px; border-top: 0 !important; }
pre.log { margin: 0; background: var(--fill-3); border-radius: 0; padding: 14px 16px; font: 12px/1.55 var(--mono); max-height: 380px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ---- controls ---- */
.btn { font: 500 15px/20px var(--font); padding: 8px 17px; min-height: 36px; border-radius: var(--r-pill); border: 0; background: var(--accent); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn.quiet { background: color-mix(in srgb, var(--accent) 14%, transparent);
  /* the plain accent on its own 14% tint is 3.9:1; a touch deeper clears AA in both themes */
  color: color-mix(in srgb, var(--accent) 88%, black); }
@media (prefers-color-scheme: dark) { .btn.quiet { color: color-mix(in srgb, var(--accent) 88%, white); } }
.btn.link { background: transparent; color: var(--accent); padding-left: 8px; padding-right: 8px; }
.btn.danger { background: transparent; color: var(--red-text); }
.btn.sm { font-size: 13px; line-height: 18px; padding: 5px 13px; min-height: 30px; }
.btn:disabled { opacity: .4; cursor: default; filter: none; transform: none; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.actions.center { justify-content: center; }
.seg { display: inline-flex; background: var(--fill-3); border-radius: 9px; padding: 2px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a, .seg button { font: 500 13px/18px var(--font); padding: 5px 12px; border-radius: 7px; color: var(--label); border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.seg .on { background: var(--bg-3); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.seg a:hover { text-decoration: none; }
.n { color: var(--label-2); font-weight: 400; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input[type=text], input[type=url], input[type=password], input[type=number], input[type=search], select, textarea {
  font: 15px/20px var(--font); padding: 7px 12px; min-height: 36px; border: 0; border-radius: 10px; background: var(--fill-3); color: var(--label); }
input::placeholder, textarea::placeholder { color: var(--label-3); }
select { max-width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 18px; }
input[type=number] { width: 84px; text-align: right; }
input[type=file] { font: 13px/18px var(--font); color: var(--label-2); }
.filepick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filepick:focus-within .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.filename { color: var(--label-2); font-size: 13px; line-height: 18px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
textarea { width: 100%; resize: vertical; }
textarea.code { font: 13px/1.5 var(--mono); }
.search { position: relative; flex: 1; min-width: 200px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--label-3); }
.search input { width: 100%; padding-left: 34px; }
input[type=checkbox].switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill); position: relative; cursor: pointer; flex: none; transition: background var(--t) var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .06); transition: transform var(--t) var(--ease); }
input[type=checkbox].switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 20px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* forms as settings groups */
.form .fields { background: var(--bg-3); border-radius: var(--r-group); overflow: hidden; }
.form .fields label, .form .fields .frow { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 8px 16px; font-size: 15px; line-height: 20px; }
.form .fields > * + * { border-top: 1px solid var(--separator); }
.form .fields label span.hint { color: var(--label-2); font-size: 13px; line-height: 18px; display: block; margin-top: 2px; }
.form .fields label > span:first-child { flex: 1; min-width: 0; }
.form .fields label input[type=text], .form .fields label input[type=url], .form .fields label input[type=password] { flex: 1; max-width: 58%; }
.form .fields label .unit { color: var(--label-2); white-space: nowrap; }
.form .actions { justify-content: flex-end; margin: 12px 0 0; }
.form p.muted { margin: 0 0 10px; }
.flash { padding: 11px 16px; border-radius: var(--r-group); background: var(--bg-3); font-size: 15px; line-height: 20px; margin: 0 0 16px; }
.flash.ok { color: var(--green-text); } .flash.bad { color: var(--red-text); }
.copy { user-select: all; }

/* ---- status dots ---- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-3); margin-right: 8px; vertical-align: middle; flex: none; }
.dot.ok { background: var(--green-text); } .dot.wait { background: #b26200; } .dot.done { background: var(--accent); }
.dot.bad { background: var(--red-text); } .dot.off { background: var(--gray); }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- clip shelf: poster, then its words underneath on the page ground.
       The clips carry burned-in captions, so an overlay label fights the artwork. ---- */
.shelf { display: flex; gap: 14px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shelf::-webkit-scrollbar { height: 8px; }
.shelf::-webkit-scrollbar-thumb { background: var(--fill); border-radius: 4px; }
.shot { flex: 0 0 164px; scroll-snap-align: start; color: var(--label); }
.shot:hover { text-decoration: none; }
.shot .frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-control); overflow: hidden; background: var(--fill-3); }
.shot .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .cap { display: block; margin-top: 9px; }
.shot .cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 13px; line-height: 18px; }
.shot:hover .cap b { color: var(--accent); }
/* .sr-only is position:absolute, so without a positioned ancestor its containing block is the
   viewport: it escapes the shelf's overflow clip and stretches the page to the last poster. */
.shot .who { position: relative; display: flex; align-items: center; margin-top: 3px; font-size: 12px; line-height: 16px; color: var(--label-2); }
.shot .who .dot { width: 6px; height: 6px; margin-right: 6px; }
.len { position: absolute; left: 8px; top: 8px; font: 500 12px/16px var(--font); font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 7px; border-radius: var(--r-pill); }
.bulk { position: sticky; top: 52px; z-index: 10; display: flex; gap: 10px; align-items: center; padding: 8px 12px 8px 16px; background: var(--bg-3); border-radius: var(--r-group); margin: 10px 0; font-size: 15px; box-shadow: 0 1px 0 var(--separator); }
.banner { position: sticky; top: 52px; z-index: 11; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; margin: 10px 0; background: color-mix(in srgb, var(--accent) 12%, var(--bg-3)); border-radius: var(--r-group); font-size: 15px; }
.hint { margin: 6px 0 0; }
.empty { text-align: center; padding: 64px 16px; color: var(--label-2); }
.empty svg { width: 44px; height: 44px; stroke-width: 1.2; color: var(--label-3); margin: 0 auto 12px; display: block; }
.empty h2, .empty .empty-title { color: var(--label); font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -.012em; margin: 0 0 4px; }
[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---- popover ---- */
.pop { position: fixed; z-index: 24; width: 320px; max-width: calc(100vw - 24px); background: var(--bg-3); color: var(--label); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-float); font-size: 14px; line-height: 19px; animation: fade var(--t-fast) var(--ease); }
.pop h4 { margin: 0 0 4px; font-size: 16px; line-height: 21px; font-weight: 600; }
.pop .meta { margin-bottom: 8px; }
.pop dl { margin: 8px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.pop dt { color: var(--label-2); white-space: nowrap; }
.pop dd { margin: 0; overflow-wrap: anywhere; }
.pop .actions { margin: 10px 0 0; }
.pop.sheetish { left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* ---- review sheet ---- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 25; animation: fade var(--t) var(--ease); }
.sheet { overscroll-behavior: contain; position: fixed; top: 0; right: 0; bottom: 0; width: min(940px, 100%); background: var(--bg-3); z-index: 30; display: flex; flex-direction: column; box-shadow: var(--shadow-float); animation: fromright var(--t-slow) var(--ease); }
@keyframes fromright { from { transform: translateX(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--separator); min-height: 52px; }
.sheet-head .nav { display: flex; gap: 2px; }
.sheet-body { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding: 22px 28px 40px; overflow: auto; }
.player video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-control); background: #000; display: block; }
.player .under { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.details h2, .decide h2 { margin-bottom: 4px; }
.details details, .decide details { border-top: 1px solid var(--separator); padding: 10px 0; }
.details summary, .decide summary { cursor: pointer; font-weight: 500; font-size: 15px; line-height: 20px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.details summary::-webkit-details-marker, .decide summary::-webkit-details-marker { display: none; }
.details summary::after, .decide summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--label-3); border-bottom: 1.5px solid var(--label-3); transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); margin-right: 4px; }
.details details[open] summary::after, .decide details[open] summary::after { transform: rotate(-135deg); }
.captions { padding-left: 20px; font-size: 14px; line-height: 19px; color: var(--label-2); }
.captions li { margin: 6px 0; position: relative; padding-right: 60px; }
.captions .copy-btn { position: absolute; right: 0; top: -3px; }
.words { font-size: 14px; line-height: 1.7; }
.words .out { color: var(--label-2); opacity: .6; }
.words .in { color: var(--label); cursor: pointer; border-radius: 4px; padding: 0 1px; }
.words .in:hover { background: var(--fill-3); }
.words .in.now { background: var(--accent); color: #fff; }
.words .peak { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.recut { display: grid; grid-template-columns: auto repeat(4, auto); gap: 6px; align-items: center; justify-content: start; margin: 8px 0; font-size: 14px; }
.recut span { color: var(--label-2); margin-right: 6px; }
.posts-mini { margin-top: 14px; font-size: 14px; line-height: 19px; }

/* ---- toast ---- */
#toast { position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); transform: translateX(-50%); background: var(--label); color: var(--bg-3); padding: 10px 18px; border-radius: var(--r-pill); font: 500 14px/19px var(--font); z-index: 40; box-shadow: var(--shadow-float); animation: rise var(--t) var(--ease); display: flex; align-items: center; }
@keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } }
.toast-undo { margin-left: 12px; background: transparent; border: 0; color: var(--bg-3); font: 600 14px/19px var(--font); cursor: pointer; }

/* ---- phone ---- */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .bar { gap: 12px; padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 16px; }
  nav { gap: 12px; }
  nav a { font-size: 14px; }
  .hero { font-size: 28px; line-height: 34px; margin: 28px 0 18px; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .card .pick, .card .info { opacity: 1; display: grid; }
  .live span + * { display: none; }
  .search { min-width: 0; width: 100%; }
  .filters { width: 100%; }
  .btn { min-height: 44px; } .btn.sm { min-height: 36px; }
  .form .fields label input[type=text], .form .fields label input[type=url], .form .fields label input[type=password] { max-width: 50%; }
  .sheet { top: 6vh; left: 0; right: 0; width: 100%; border-radius: 14px 14px 0 0; animation: fromdown var(--t-slow) var(--ease); }
  .sheet::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--fill); margin: 8px auto 0; }
  .sheet-head { min-height: 44px; padding-top: 2px; padding-left: 6px; padding-right: 6px; }
  .sheet-head .seg button { padding: 4px 9px; }
  .sheet-body { grid-template-columns: 1fr; padding: 12px 18px 40px; }
  .player video { max-height: 56vh; aspect-ratio: auto; width: auto; margin: 0 auto; }
}
@keyframes fromdown { from { transform: translateY(100%); } }
@media (hover: none) { .card .info { display: grid; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } *, .sheet, .pop, #toast { animation-duration: 1ms !important; transition-duration: 1ms !important; } }


/* ---- clips: queue + stage (desktop), vertical feed (phone) ---- */
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 32px 0 16px; flex-wrap: wrap; }
.review-head .filters { flex-basis: 100%; }
.wide .wrap { max-width: 1280px; }
.review { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.queue { position: sticky; top: 68px; max-height: calc(100vh - 84px); display: flex; flex-direction: column; background: var(--bg-3); border-radius: var(--r-group); overflow: hidden; }
.queue .bulk { position: static; margin: 0; border-radius: 0; box-shadow: 0 1px 0 var(--separator); }
.queue-list { overflow: auto; flex: 1; position: relative; }
.qh { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 10px; padding: 8px 16px 6px; font: 600 13px/18px var(--font); background: var(--material); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.qh .muted { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 16px; min-height: 60px; cursor: pointer; border-top: 1px solid var(--separator); transition: background var(--t-fast) var(--ease); }
.qrow img { width: 40px; height: 71px; object-fit: cover; border-radius: 6px; background: var(--fill-3); display: block; }
.qrow:hover { background: var(--fill-3); }
.qrow.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.qtext b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 15px/20px var(--font); }
.qtext .meta { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .pick { opacity: 0; transition: opacity var(--t-fast); }
.qrow:hover .pick, .qrow.selected .pick, .queue.selecting .pick { opacity: 1; }
.stage { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.phone { position: sticky; top: 68px; }
.phone video { width: 320px; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; display: block; box-shadow: 0 0 0 1px var(--separator); }
.decide h2 { font-size: 22px; line-height: 28px; }
.decide .actions { margin: 14px 0 10px; }
.decide .keys { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.decide #variants { margin: 0 0 10px; }
.under { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 12px; }
.feed { display: none; }
@media (max-width: 760px) {
  .review-head .search, .review-head select { display: none; }
  .review-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .review-head .seg { width: 100%; }
  .review-head { margin: 12px 0 8px; }
  .review { display: block; }
  .queue, .stage { display: none; }
  .feed { display: block; overscroll-behavior: contain; height: calc(100dvh - 52px - 100px); overflow-y: auto; scroll-snap-type: y mandatory; margin: 0 -18px; background: #000; border-radius: 14px 14px 0 0; }
  .slide { position: relative; height: calc(100dvh - 52px - 100px); scroll-snap-align: start; scroll-snap-stop: always; background: #000; }
  .slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
  .overlay { position: absolute; left: 0; right: 0; bottom: 72px; padding: 72px 18px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; }
  .overlay h3 { font: 600 20px/25px var(--font); color: #fff; margin-top: 4px; }
  .meta.light { color: rgba(255, 255, 255, .78); }
  .fbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px 14px; background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .fbar .btn { flex: 1; min-height: 44px; }
  .sheet-body { display: block; }
}

/* ---- overview: lede, cells, navigation rows, sign-in ---- */
/* status dots carry meaning, so every dot is paired with a word screen readers can reach */
/* parked off-screen with transform, not a negative offset: a negative top left its shadow visible */
.skip { position: absolute; left: 12px; top: 10px; z-index: 40; background: var(--bg-3); color: var(--accent);
  padding: 10px 16px; border-radius: var(--r-group); box-shadow: var(--shadow-float); font-size: 15px;
  transform: translateY(-200%); }
.skip:focus { transform: none; text-decoration: none; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0; }
.lede-block { margin: 0 0 28px; }
.lede-block .hero { margin: 40px 0 6px; }
.hero-sub { color: var(--label-2); font-size: 17px; line-height: 23px; max-width: 54ch; margin: 0; text-wrap: pretty; }
.lede-block .actions { margin: 22px 0 0; }
.needs { margin: 0 0 32px; }
.needs .row { position: relative; align-items: flex-start; gap: 0; }
.needs .row .t { flex: 1; min-width: 0; }
.needs .row .dot { margin-top: 8px; }
.needs .row .chev { margin-top: 2px; }

/* three numbers about getting clips out; one panel, hairline cells, never three cards */
.cells { display: flex; background: var(--bg-3); border-radius: var(--r-group); overflow: hidden; }
.cell { flex: 1 1 0; min-width: 0; padding: 13px 16px 15px; color: var(--label); transition: background var(--t-fast) var(--ease); }
.cell + .cell { border-left: 1px solid var(--separator); }
.cell:hover { text-decoration: none; background: var(--fill-3); }
.cell b { display: block; font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.cell > span { display: flex; align-items: center; font-size: 13px; line-height: 18px; color: var(--label-2); margin-top: 1px; }
.cell .dot { width: 7px; height: 7px; margin-right: 7px; }

/* a whole row that navigates: the target is the row, not the words in it */
.list.nav li { padding: 0; }
.list.nav li > form { display: contents; }
.list.nav li > a, .list.nav li > form > button { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; width: 100%; padding: 11px 16px; min-height: 44px; color: var(--label); font: inherit; text-align: left; border: 0; background: none; cursor: pointer; transition: background var(--t-fast) var(--ease); }
.list.nav li > a:hover, .list.nav li > form > button:hover { text-decoration: none; background: var(--fill-3); }
.list.nav li > a > div, .list.nav li > form > button > div { flex: 1; min-width: 0; }
.list.nav li > form > button:focus-visible { outline-offset: -3px; }
.list.nav .chev { margin-left: 0; }


.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footline { color: var(--label-2); font-size: 13px; line-height: 19px; max-width: 78ch; margin: 36px 0 56px; text-wrap: pretty; }

/* ---- sign in ---- */
.gate { min-height: 100dvh; max-width: 372px; margin: 0 auto; padding: 40px 24px 72px; display: flex; flex-direction: column; justify-content: center; }
.gate .mark { display: block; width: 44px; height: 44px; margin: 0 0 20px; }
.gate h1 { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -.02em; }
.gate .lede { color: var(--label-2); font-size: 17px; line-height: 23px; margin: 4px 0 26px; }
.gate .form .fields label > span:first-child { flex: none; }
.gate .form .fields label input { flex: 1; max-width: none; min-width: 0; text-align: right; }
.btn.wide { width: 100%; min-height: 44px; margin-top: 18px; }
.gate-msg { margin: 14px 2px 0; }
.gate-foot { color: var(--label-2); font-size: 13px; line-height: 18px; margin: 26px 0 0; }
.gate-foot code { font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .lede-block .hero { margin: 26px 0 6px; }
  .hero-sub { font-size: 15px; line-height: 20px; }
  .lede-block .actions .btn { flex: 1; }
  .cells { flex-direction: column; }
  .cell + .cell { border-left: 0; border-top: 1px solid var(--separator); }
  .cell { display: flex; align-items: baseline; gap: 10px; }
  .cell b { font-size: 22px; line-height: 28px; }
  .cell > span { margin-top: 0; }
  /* the bar cannot hold five sections plus an account: signing out lives in Settings on a phone */
  .whoami, .signout { display: none; }
  nav { flex: 1; min-width: 0; }
  .cols section:first-child { margin-bottom: 32px; }
}

/* ---- posts: experiment (live style A/B test) — prefixed so it can't collide, see DESIGN.md §9 ---- */
.exp-h3 { margin: 0 0 8px; }
.exp-sentence { margin: 8px 0 0; }
@media (max-width: 760px) {
  .exp-cols > div + div { margin-top: 32px; }
}

/* ---- campaigns (autonomous joining, docs/specs/2026-09-28-campaign-automation.md §4) — prefixed so it
   can't collide with an unrelated page later, see DESIGN.md §9 ---- */
.camp-row > div:first-child { min-width: 0; }
.camp-sources { margin-top: 2px; color: var(--label-3); }
.camp-source-off { text-decoration: line-through; }
.camp-detail { max-width: 440px; white-space: normal; }
