/* Batch board: the same family as Market Feed and Heisenberg. */
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f5f5f3; --panel: #ffffff; --panel-2: #f0f0ee; --raise: #e7e7e4;
  --line: #d9d9d5; --line-2: #898e89;
  --fg: #292a29; --fg-strong: #111211; --text: #383a38; --muted: #5c605d; --faint: #686d69;
  --accent: #bd1824; --accent-soft: rgba(189, 24, 36, .09); --accent-ink: #ffffff;
  --ok: #176a41; --warn: #795000; --bad: #bd1824;
  --focus: #202220; --control-border: #858a85; --button-hover-border: #747975;
  --glow: #ffffff; --header-bg: rgba(245, 245, 243, .9);
  --select-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235c605d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px; --content-width: 980px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #050505; --panel: #0b0b0b; --panel-2: #111111; --raise: #161616;
    --line: #1f1f1f; --line-2: #2a2a2a;
    --fg: #ededed; --fg-strong: #f7f7f7; --text: #cfcfcf; --muted: #9a9a9a; --faint: #777b79;
    --accent: #ff2a2a; --accent-soft: rgba(255, 42, 42, .12); --accent-ink: #050505;
    --ok: #3ddc84; --warn: #ffb020; --bad: #ff2a2a;
    --focus: #ededed; --control-border: #626262; --button-hover-border: #626262;
    --glow: #141414; --header-bg: rgba(5, 5, 5, .86);
    --select-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23ededed' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  }
}
* { box-sizing: border-box; }
::selection { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); color: var(--fg-strong); }
html { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; }
p, h2 { margin: 0; }
body { background: radial-gradient(1200px 500px at 70% -200px, var(--glow) 0%, var(--bg) 60%) fixed, var(--bg); }
a { color: var(--fg); }
button, input, select { font: inherit; color: inherit; }
button, .file-btn, select { height: 36px; }
button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--control-border); border-radius: 8px;
  padding: 0 12px; line-height: 1; }
button:hover, .file-btn:hover { border-color: var(--button-hover-border); background: var(--raise); }
button:active, .file-btn:active { background: var(--raise); }
select { appearance: none; -webkit-appearance: none; background-color: var(--panel);
  background-image: var(--select-chevron); background-repeat: no-repeat; background-position: right 10px center;
  border: 1px solid var(--control-border); border-radius: 8px; padding: 0 30px 0 10px;
  font-size: 14px; line-height: 1; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  width: min(var(--content-width), 100%); margin: 0 auto; padding: 12px 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mark { width: 28px; height: 28px; display: block; }
.product { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--fg-strong); }
.check { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--fg); }

.page { width: min(var(--content-width), 100%); margin: 0 auto; padding: 24px 24px 80px; }
.lede { margin: 0 0 20px; max-width: 68ch; color: var(--text); }
.error { color: var(--bad); }
.empty { color: var(--muted); }

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker, summary::marker { display: none; content: ""; }
.chevron { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--fg); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chevron svg { display: block; }
details[open] > summary .chevron svg { transform: rotate(90deg); }
.kind, .section-label, .label, .ctrl, .verdict {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.kind { letter-spacing: .14em; color: var(--muted); }
.section-label, .label { display: block; margin: 20px 0 8px; color: var(--muted); }
.summary-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; }
.eyebrow, .hyp-meta, .ad-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.file-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--control-border); background: var(--panel-2); text-decoration: none; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: var(--fg); }
.day h2, .count, select { font-variant-numeric: tabular-nums; }
.loading { color: var(--muted); }

.day + .day { margin-top: 32px; }
.day > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; }
.day h2 { font-weight: 500; font-size: 26px; line-height: 1; letter-spacing: -.02em; color: var(--fg-strong); }
.count { font-family: var(--mono); font-size: 11px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day[open] { margin-bottom: 8px; }

.batch { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.batch > summary { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius); }
.batch[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
summary:hover .chevron { border-color: var(--fg); }
.batch > summary .file-btn { margin-left: 8px; flex: none; }
.batch-kicker { font-family: var(--mono); font-size: 12px; line-height: 1; letter-spacing: .04em; color: var(--muted); }
.batch-name, .hyp-name { font-weight: 550; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; color: var(--fg-strong); }
.batch-body { padding: 0 16px 8px 56px; }
.intro { display: grid; gap: 8px; padding-bottom: 16px; max-width: 68ch; }
.goal, .why, .expect { max-width: 68ch; color: var(--text); }
.idea { max-width: 68ch; color: var(--muted); }

.hyp { margin: 0 -16px 0 -56px; padding: 0 16px 0 56px; border-top: 1px solid var(--line); }
.hyp > summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.hyp-meta { font-family: var(--mono); font-size: 11px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hyp-body { padding: 0 0 16px 40px; }
.verdict { display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; margin: 2px 0 0; color: var(--muted); }
.verdict select { width: 148px; flex: none; }

.ad { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line); }
.ad-copy { display: grid; gap: 4px; min-width: 0; }
.ad-idea { font-weight: 500; line-height: 1.35; }
.ad-meta { font-family: var(--mono); font-size: 12px; line-height: 1.3; color: var(--muted); }
.ad-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: flex-end; }
.ctrl { display: flex; flex-direction: column; align-items: stretch; gap: 6px; color: var(--muted); }
.ctrl select, .verdict select { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
.ctrl select[data-field="status"] { width: 156px; }
.ctrl select[data-field="result"] { width: 148px; }
.ad .file-btn { width: 116px; }
.ad.cut { opacity: .55; }
.save:empty { display: none; }
.save { font-family: var(--mono); font-size: 11px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.save.bad { color: var(--bad); }
select.status-Live, select.result-Win, select.verdict-Win { border-color: var(--ok); }
select.status-Cut, select.status-Paused, select.result-Loss, select.verdict-Loss { border-color: var(--bad); }
select.result-Meh, select.verdict-Meh, select.status-Revision, select.status-Writing { border-color: var(--warn); }

@media (max-width: 720px) {
  .top-inner, .page { padding-left: 16px; padding-right: 16px; }
  .top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .brand { grid-column: 1; margin-right: 0; }
  #refresh { grid-column: 2; grid-row: 1; }
  #brand, .check { grid-column: 1 / -1; }
  #brand { width: 100%; }
  .day h2 { font-size: 22px; }
  .batch > summary { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 10px;
    align-items: center; padding: 14px; }
  .batch > summary .chevron { grid-column: 1; grid-row: 1; }
  .batch > summary .summary-text { grid-column: 2; grid-row: 1; }
  .batch > summary .file-btn { grid-column: 2; grid-row: 2; margin-left: 0; justify-self: start; }
  .batch-body { padding: 0 14px 8px 54px; }
  .hyp { margin: 0 -14px 0 -54px; padding: 0 14px 0 54px; }
  .hyp-body { padding-left: 40px; }
  .ad { grid-template-columns: 1fr; grid-template-areas: "copy" "controls"; row-gap: 12px; }
  .ad-copy { grid-area: copy; }
  .ad-controls { grid-area: controls; }
  .ad-controls { display: grid; grid-template-columns: 1fr; width: 100%; }
  .ad .file-btn { width: max-content; }
  .ctrl select[data-field="status"], .ctrl select[data-field="result"] { width: 100%; }
}
