/* ANTI-A.I. A.I. CLUB — shared styles. Three colors only (and their rgba), squares only, cursor never changes,
   one font stack everywhere (BRAND.md: Helvetica Neue Condensed Black, web fallback Archivo Condensed Black). */
@font-face { font-family: "Menu Fallback"; src: url(/fonts/archivo-condensed-black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --red: #F6020C; --white: #FFFFFF; --black: #000000;
  --font: "HelveticaNeue-CondensedBlack", "Helvetica Neue", "Menu Fallback", sans-serif;
  --menu: var(--font); --text: var(--font);   /* aliases kept for pages written against the earlier names */
  --gutter: 24px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; cursor: default !important; border-radius: 0 !important;
    outline-color: var(--red); accent-color: var(--red); -webkit-tap-highlight-color: transparent; }
::selection { background: var(--red); color: var(--white); }
::placeholder { color: var(--white); opacity: 1; }
::cue { background: var(--black); color: var(--white); font-family: var(--font); }
html, body { background: var(--black); color: var(--white); }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
       font-family: var(--font); font-weight: 900; font-stretch: condensed; }
button, input, textarea, select { font: inherit; font-family: var(--font); color: inherit; }
a { color: var(--white); }
nav a, .ticker, footer, .btn, .tab, .lbl, h1, h2, .card, .player .play, .player .time, .player .flag, .field, .status .sq b { text-transform: uppercase; }

/* header (same layout as the live site) */
header { display: flex; align-items: center; gap: 32px; padding: 20px var(--gutter); }
header .logo { flex: 1; min-width: 0; }
header .logo img { display: block; width: 100%; max-width: 1100px; height: auto; }
nav { display: flex; gap: 28px; flex-shrink: 0; position: relative; top: 12px; }
nav a { color: var(--white); text-decoration: none; font-size: 28px; line-height: 1; }
nav a.on { color: var(--red); }
/* the site menu (js/nav.json): hosts get more words, so it wraps onto more lines (right-aligned) instead of crowding the
   logo; the host's name is a label (inverted), LOGOUT a word like the others */
nav[data-nav] { flex-wrap: wrap; justify-content: flex-end; row-gap: 14px; max-width: 50%; }
nav .nav-who, nav .nav-out { font-family: var(--font); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; white-space: nowrap; }
nav .nav-who { background: var(--white); color: var(--black); padding: 0 6px; }
nav .nav-out { background: none; border: 0; padding: 0; color: var(--white); -webkit-appearance: none; appearance: none; }
footer .login { display: block; width: max-content; margin: 14px auto 0; color: var(--white); text-decoration: none; }

/* banner: one line, scaled so it spans the full screen width (sized by AIC.fitBanner) */
.ticker { background: var(--white); color: var(--black); font-size: 28px; line-height: 1; }
.ticker .static { display: flex; flex-wrap: nowrap; white-space: nowrap; justify-content: center; column-gap: 1.75em;
                  padding: 4px 16px 2px; font-size: calc((100vw - 32px) / 48.2); }
footer { margin-top: auto; color: var(--white); font-size: 16px; line-height: 1; text-align: center; padding: 24px 16px 32px; }

/* controls */
.btn, .tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--white); color: var(--black);
             border: 2px solid var(--white); padding: 7px 12px 5px; font-size: 18px; line-height: 1; text-decoration: none; white-space: nowrap;
             -webkit-appearance: none; appearance: none; user-select: none; -webkit-user-select: none; }
.btn.ghost, .tab { background: var(--black); color: var(--white); }
.btn.on, .tab.on { background: var(--red); border-color: var(--red); color: var(--white); }
.btn:disabled { background: var(--black); color: var(--black); border-color: var(--black); }
.btn[hidden], .tab[hidden], .lbl[hidden] { display: none; }
.field { background: var(--black); color: var(--white); border: 2px solid var(--white); padding: 7px 10px 5px; font-size: 18px; line-height: 1;
         -webkit-appearance: none; appearance: none; min-width: 0; }
.field:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
textarea.field, input.field.text { text-transform: none; line-height: 1.35; }
textarea.field { resize: vertical; }
.hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.hp input { background: var(--black); color: var(--white); border: 0; }
.sq { display: inline-block; width: 12px; height: 12px; background: var(--red); flex-shrink: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.lbl { font-size: 16px; line-height: 1; }
.lbl.pend { background: var(--red); color: var(--white); padding: 4px 6px 2px; }

/* generic page (archive, tools, episodes) */
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter); flex: 1; }
.page h1 { font-size: 44px; line-height: 1; margin-bottom: 24px; }

/* archive entries (live layout) */
.item { display: grid; grid-template-columns: 360px 1fr; gap: 24px; border-top: 4px solid var(--white); padding: 24px 0; }
.item img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; background: var(--black); }
.item .noimg { display: block; width: 100%; aspect-ratio: 3 / 1; background: var(--black); border: 2px solid var(--white); }
.item h2 { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.item .meta { font-size: 16px; color: rgba(255,255,255,.6); margin-bottom: 12px; text-transform: uppercase; }
.item .go { display: inline-block; background: var(--white); color: var(--black); text-decoration: none; font-size: 20px; padding: 8px 12px; text-transform: uppercase; }
.item .go.ghost { background: var(--black); color: var(--white); border: 2px solid var(--white); padding: 6px 10px; }
.item .gos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* tools: two columns (YURI RYBAK left, JONATHAN MANN right); stacked on phones */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
.tools section { min-width: 0; }
.tools h2 { text-transform: uppercase; font-size: 32px; line-height: 1; border-top: 4px solid var(--white); padding-top: 20px; margin: 0 0 20px;
            display: flex; align-items: center; gap: 12px; }
.tools h2::before { content: ""; width: 16px; height: 16px; background: var(--red); flex-shrink: 0; }
.tools ul { list-style: none; display: grid; grid-template-columns: 1fr; gap: 20px; }
.tools li { min-width: 0; }
.tools li a { text-transform: uppercase; font-size: 22px; line-height: 1.05; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.tools li a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tools li p { font-size: 16px; line-height: 1.4; margin-top: 6px; font-weight: 400; }

/* episodes grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { display: block; background: var(--black); color: var(--white); text-decoration: none; border: 4px solid var(--white); }
.card > a { display: block; text-decoration: none; }
.card img, .card .noimg { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; background: var(--black); border-bottom: 4px solid var(--white); }
.card .body { padding: 12px; display: grid; gap: 8px; }
.card h2 { font-size: 32px; line-height: 1; }
.card .meta { font-size: 18px; line-height: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.card .meta b { color: var(--red); font-weight: 900; }
.card .links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }

/* front page: episodes stacked newest first, each full width at the site cut's shape (1920x720); the page scrolls */
main.stack { width: 100%; display: flex; flex-direction: column; gap: 24px; padding: 12px 0; }

/* player */
.player { position: relative; width: 100%; background: var(--black); user-select: none; -webkit-user-select: none; }
.player .frame { position: relative; width: 100%; aspect-ratio: 1920 / 720; container-type: inline-size; background: var(--black); overflow: hidden; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: var(--black); }
.player .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--white); color: var(--black); border: 0;
                padding: 12px 22px; font-size: clamp(16px, 2.4cqw, 32px); width: max-content; max-width: 90%; text-wrap: balance; line-height: 1.1; z-index: 3; }
.player.playing .play { display: none; }
.player .time { position: absolute; right: 16px; bottom: 14px; font-size: 18px; line-height: 1; color: var(--white);
                background: var(--black); padding: 4px 6px; z-index: 3; }
.player .flag { position: absolute; left: 16px; bottom: 14px; font-size: 18px; line-height: 1; color: var(--white);
                background: var(--red); padding: 4px 6px; z-index: 3; }
.player .flag[hidden], .player .pending[hidden] { display: none; }
.player .pending { position: absolute; left: 16px; top: 14px; font-size: 18px; line-height: 1; color: var(--white); background: var(--red);
                   padding: 4px 6px; z-index: 3; text-transform: uppercase; }
.player .cue { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); max-width: 90%; text-align: center; z-index: 2;
               background: var(--black); color: var(--white); font-size: clamp(12px, 2cqw, 24px); line-height: 1.2; padding: 4px 8px; }
.player .cue:empty { display: none; }
/* episode page bar under the frame (chapter edges, comment markers, selection) */
.scrub { position: relative; height: 18px; background: var(--black); touch-action: none; }
.scrub .fill { position: absolute; left: 0; bottom: 0; height: 6px; width: 0; background: var(--red); }
.scrub .mk { position: absolute; pointer-events: none; }
.scrub .mk.ch { top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--white); }
.scrub .mk.cm { top: 0; width: 8px; height: 8px; margin-left: -4px; background: var(--red); }
.scrub .mk.sel { top: 8px; height: 4px; background: var(--white); }
/* front-page block: the live site's look (bar inside the frame, 6 px red) */
.player.block .scrub { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: transparent; z-index: 3; }
.player.block .scrub .fill { top: 0; height: 6px; }
.player.block .scrub .mk { display: none; }
/* full call: two tiles at the renderer's positions (x 40 / 980, 900x506 inside 1920x720) */
.fullcall { position: absolute; inset: 0; background: var(--black); }
.fullcall .tile { position: absolute; top: 15.278%; width: 46.875%; height: 70.278%; background: var(--black); overflow: hidden; }
.fullcall .tile.a { left: 2.083%; } .fullcall .tile.b { left: 51.042%; }
.fullcall .tile.on { outline: 0.4cqw solid var(--red); outline-offset: 0; }
.fullcall .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fullcall .tile video.off { visibility: hidden; }
.fullcall .name { position: absolute; top: 87.5%; width: 46.875%; font-size: clamp(10px, 2.2cqw, 28px); line-height: 1; text-transform: uppercase; }
.fullcall .name.a { left: 2.083%; } .fullcall .name.b { left: 51.042%; }

/* episode page */
.ep { display: flex; flex-direction: column; gap: 0; }
.bar2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px var(--gutter); }
.bar2 .grow { flex: 1; }
.bar2 form { display: flex; gap: 8px; min-width: 0; }
.bar2 form .field { width: 220px; }
.status { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 var(--gutter) 12px; }
.status[hidden] { display: none; }
.status .sq { width: auto; height: auto; min-width: 16px; padding: 4px 6px 2px; background: var(--black); border: 2px solid var(--white); color: var(--white); }
.status .sq b { font-size: 12px; line-height: 1; display: block; font-weight: 900; }
.status .sq.running { border-color: var(--red); }
.status .sq.done { background: var(--red); border-color: var(--red); }
.status .sq.failed, .status .sq.blocked, .status .sq.held { background: var(--white); color: var(--black); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter); border-bottom: 4px solid var(--white); padding-bottom: 12px; }
.panel { padding: 16px var(--gutter) 24px; }
.panel[hidden] { display: none; }
.scroll { max-height: 56vh; overflow-y: auto; overflow-x: hidden; }

/* transcript */
.tx { position: relative; font-size: 18px; line-height: 1.5; font-weight: 400; }
.tx p { margin: 0 0 12px; }
.tx p .who { text-transform: uppercase; font-size: 15px; display: inline-block; margin-right: 8px; color: var(--white); }
.tx p .who.first { color: var(--red); }
.tx w { padding: 0 1px; }
.tx w.cut { background: var(--white); color: var(--black); }
.tx w.now { background: var(--red); color: var(--white); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 18px; }
.tbl th { text-transform: uppercase; text-align: left; font-size: 15px; padding: 6px 12px 6px 0; border-bottom: 2px solid var(--white); white-space: nowrap; }
.tbl td { padding: 6px 12px 6px 0; border-bottom: 2px solid var(--black); vertical-align: top; }
.tbl td.t, .tbl td.k { text-transform: uppercase; white-space: nowrap; }
.tbl tr.go:hover td { background: var(--white); color: var(--black); }
.tbl tr.on td { background: var(--red); color: var(--white); }
.strip { position: relative; height: 32px; background: var(--black); border: 2px solid var(--white); margin-bottom: 16px; overflow: hidden; }
.strip i { position: absolute; top: 0; bottom: 0; }
.strip i.kept { background: var(--red); }
.strip i.hatch { background: repeating-linear-gradient(45deg, var(--white) 0 3px, var(--black) 3px 6px); }
.strip i.head { width: 2px; margin-left: -1px; background: var(--white); }

/* comments */
.cmts { display: grid; gap: 10px; }
.cmt { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px; align-items: baseline; }
.cmt .t { text-transform: uppercase; font-size: 16px; background: var(--white); color: var(--black); padding: 3px 6px 1px; white-space: nowrap; }
.cmt .t.cutt { background: var(--red); color: var(--white); }
.cmt .n { text-transform: uppercase; font-size: 16px; }
.cmt .pend { text-transform: uppercase; font-size: 16px; background: var(--red); color: var(--white); padding: 3px 6px 1px; justify-self: start; }
.cmt .x { grid-column: 1 / -1; font-size: 18px; line-height: 1.4; font-weight: 400; overflow-wrap: anywhere; white-space: pre-wrap; }
.cform { display: grid; gap: 8px; margin-top: 20px; max-width: 720px; }
.cform .row .field { flex: 1; }

/* data links */
.links { display: grid; gap: 8px; }
.links a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; color: var(--white); }
.links a .lbl { min-width: 120px; background: var(--white); color: var(--black); padding: 4px 6px 2px; }
.links a span.u { font-size: 16px; font-weight: 400; overflow-wrap: anywhere; min-width: 0; }

/* search results */
.hits { display: grid; gap: 8px; }
.hit { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: baseline; }
.hit .t { font-size: 16px; background: var(--white); color: var(--black); padding: 3px 6px 1px; white-space: nowrap; text-transform: uppercase; }
.hit .t.cutt { background: var(--red); color: var(--white); }
.hit .s { text-transform: uppercase; font-size: 15px; }
.hit .x { font-size: 17px; font-weight: 400; overflow-wrap: anywhere; }

/* clip */
.clipbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.clipbox .field { flex: 1 1 280px; }

/* ---------------------------------------------------------------- top menu (studio pages, episode page; js/menu.js)
   One row like the site header (aiclub.css header/nav: logo flex 1 up to 1100 px, nav words 28 px, 28 px apart,
   12 px drop; phones: stacked, nav right, 22 px). Words are buttons that open dropdowns (js/studio/menu.js). */
header.st-menu { flex-shrink: 0; }
header.st-menu .logo { display: block; }
.mn-item { position: relative; }
.mn-btn, header.st-menu nav > a { display: block; background: none; border: 0; padding: 0; color: var(--white); font-family: var(--font); font-weight: 900;
          font-size: 28px; line-height: 1; text-transform: uppercase; text-decoration: none; -webkit-appearance: none; appearance: none;
          user-select: none; -webkit-user-select: none; }
.mn-item.open .mn-btn, header.st-menu nav > a.on { color: var(--red); }
header.st-menu nav > a[hidden] { display: none; }
/* dropdown: a white frame whose 2 px gaps draw the rules between rows (hidden rows leave no rule) */
.mn-drop { position: fixed; z-index: 30; min-width: 300px; max-width: 560px; display: flex; flex-direction: column; gap: 2px; background: var(--white);
           border: 2px solid var(--white); overflow-y: auto; overscroll-behavior: contain; }
.mn-drop[hidden], .mn-grp[hidden], .mn-kv[hidden], .mn-act[hidden] { display: none; }
.mn-grp { display: contents; }
.mn-act { display: block; width: 100%; text-align: left; background: var(--black); color: var(--white); border: 0; font-family: var(--font); font-weight: 900;
          font-size: 22px; line-height: 1; padding: 12px 14px 10px; text-transform: uppercase; text-decoration: none; white-space: nowrap;
          -webkit-appearance: none; appearance: none; user-select: none; -webkit-user-select: none; }
.mn-act:hover { background: var(--white); color: var(--black); }
.mn-act.on, .mn-act.on:hover { background: var(--red); color: var(--white); }
.mn-act:disabled, .mn-act:disabled:hover { background: var(--black); color: var(--white); opacity: 0.4; }
.mn-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; background: var(--black); color: var(--white);
         font-size: 18px; line-height: 1; padding: 10px 14px 8px; white-space: nowrap; }
.mn-kv b { font-weight: 900; text-align: right; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mn-kv b.red { color: var(--red); }
.mn-sel { display: grid; gap: 8px; background: var(--black); color: var(--white); font-size: 18px; line-height: 1; padding: 10px 14px 12px; }
.mn-sel select { width: 100%; max-width: 420px; font-family: var(--font); font-weight: 900; font-size: 18px; line-height: 1; padding: 8px 10px 6px;
                 background: var(--black); color: var(--white); border: 2px solid var(--white); text-transform: uppercase;
                 -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.mn-sel select:disabled { opacity: 0.4; }
.mn-sel select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.mn-sel option { background: var(--black); color: var(--white); }


.mn-item[hidden] { display: none; }
.mn-btn.on { color: var(--red); }
.mn-form { display: block; background: var(--black); padding: 12px 14px; }
.mn-form .field { width: 100%; }
.mn-kv.st-done { background: var(--red); color: var(--white); }
.mn-kv.st-running b { color: var(--red); }
.mn-kv.st-failed, .mn-kv.st-blocked { background: var(--white); color: var(--black); }

/* episode page: one row under the player, title as plain text then the menu words (same type as the header nav) */
.ep-menu { display: flex; align-items: baseline; gap: 28px; padding: 20px var(--gutter); }
.ep-title { flex: 1; min-width: 0; font-size: 28px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-row { display: flex; gap: 28px; flex-shrink: 0; align-items: baseline; }
.mn-row > .mn-btn, .mn-row > .mn-item { flex-shrink: 0; white-space: nowrap; }
.mn-row .mn-btn { white-space: nowrap; }
/* content dropdowns (CLIP, SHARE, COMMENTS, DATA, SEARCH): up to 560 px wide, at most 60% of the screen tall (js/menu.js) */
.mn-drop.wide { width: 560px; }
.mn-drop.wide { white-space: normal; }   /* the row's nowrap must not reach the content */
.mn-pane { background: var(--black); color: var(--white); padding: 14px; text-transform: none; }
.mn-pane[hidden] { display: none; }
.mn-pane .cform { margin-top: 16px; max-width: none; }
.mn-pane .cmts:empty + .cform { margin-top: 0; }
.mn-pane .clipbox .field { flex: 1 1 200px; }
.mn-pane .links a .lbl { min-width: 110px; }
/* when the title and the words do not fit on one line (set by the page): title on its own line, words below */
.ep-menu.stack { flex-direction: column; align-items: stretch; gap: 14px; }
.ep-menu.stack .ep-title { white-space: normal; }
.ep-menu.stack .mn-row { flex-wrap: wrap; row-gap: 14px; }

/* raw recordings (host page /raw, server-rendered by cf/src/raw.ts) */
.raw-s { border-top: 4px solid var(--white); padding: 24px 0; }
.raw-s h2 { font-size: 32px; line-height: 1; margin-bottom: 8px; text-transform: uppercase; }
.raw-s h2 a { color: var(--white); text-decoration: none; }
.raw-s h2 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.raw-s .meta { font-size: 18px; line-height: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; text-transform: uppercase; }
.raw-s .meta b { color: var(--red); font-weight: 900; }
.raw-row { display: grid; grid-template-columns: 240px 1fr; gap: 12px 24px; padding: 10px 0; border-top: 2px solid rgba(255,255,255,.25); }
.raw-who { font-size: 20px; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.raw-who p { font-size: 15px; line-height: 1.3; margin-top: 6px; }
.raw-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.raw-files .btn .sz { font-size: 14px; }
.raw-files .lbl.pend { text-transform: uppercase; }
.raw-checks { border-top: 4px solid var(--white); padding-top: 20px; }
.raw-checks summary { font-size: 24px; line-height: 1; text-transform: uppercase; list-style: none; user-select: none; -webkit-user-select: none; }
.raw-checks summary::-webkit-details-marker { display: none; }
.raw-checks summary::before { content: ""; display: inline-block; width: 14px; height: 14px; background: var(--red); margin-right: 12px; }
.raw-checks[open] summary { margin-bottom: 12px; }
.raw-login { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.raw-login .field { width: 320px; max-width: 100%; }
.raw-msg { font-size: 28px; line-height: 1; }

/* rant clips (host page /rants, server-rendered by cf/src/rants.ts): red, white and black, square edges */
.rant-intro { font-size: 20px; line-height: 1.1; text-transform: uppercase; margin-bottom: 16px; }
.rant-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rant-jump .btn { font-size: 18px; }
.rant-jump .btn .sz { color: var(--red); }
.rant-jump .btn.on .sz { color: var(--white); }
.rant[hidden], .rant-s[hidden] { display: none; }
.rant-ver { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 12px 0; }
.rant-ver .btn { font-size: 16px; }
.rant-who { background: var(--white); color: var(--black); padding: 2px 6px 0; }
.rant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rant { border: 2px solid var(--white); display: flex; flex-direction: column; min-width: 0; }
.rant video { display: block; width: 100%; height: auto; background: var(--black); border-bottom: 2px solid var(--white); object-fit: contain; }
/* NEW FORMAT tiles open on the 1080x1920 file: keep the player inside the window (560 px wide it would be 996 px tall) */
.rant[data-f2] video { max-height: 90vh; }
.rant-b { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rant-b h3 { font-size: 24px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; display: flex; gap: 10px; align-items: flex-start; }
.rant-n { flex: none; background: var(--red); color: var(--white); font-size: 18px; line-height: 1; padding: 4px 6px 2px; }
.rant-m { font-size: 16px; line-height: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; text-transform: uppercase; }
.rant-m b { color: var(--red); font-weight: 900; }
.rant-b p { font-size: 16px; line-height: 1.3; flex: 1; }
.rant-dl { display: flex; flex-wrap: wrap; gap: 8px; }
.rant-dl .btn .sz { font-size: 14px; }
/* a long label (DOWNLOAD HORIZONTAL CAROUSEL MP4, a long footage name) wraps inside a phone-width tile instead of crossing its edge */
.rant-dl .btn, .rant-ver .btn { max-width: 100%; white-space: normal; }
.rant-over { background: var(--red); color: var(--white); padding: 2px 6px 0; }

/* editing process (host page /process, server-rendered by cf/src/process.ts) */
.proc-stages { display: flex; flex-wrap: wrap; gap: 8px; }
.proc-st { width: 176px; min-height: 96px; border: 2px solid var(--white); padding: 8px 8px 6px; display: flex; flex-direction: column; gap: 4px;
           font-size: 13px; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
.proc-st h3 { font-size: 16px; line-height: 1; margin-bottom: 2px; }
.proc-st .st { font-size: 16px; line-height: 1; }
.proc-st.s-done { background: var(--white); color: var(--black); }
.proc-st.s-running { border-color: var(--red); color: var(--red); }
.proc-st.s-running h3 { color: var(--white); }
.proc-st.s-failed { background: var(--red); border-color: var(--red); color: var(--white); }
.proc-st.s-blocked, .proc-st.s-held { border-color: var(--white); }
.proc-st.s-blocked .st, .proc-st.s-held .st { color: var(--red); }
.proc-st.s-pending { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.6); }
.proc-st .err { text-transform: none; margin-top: 2px; }
.proc-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.proc-note { font-size: 16px; line-height: 1.3; margin: 8px 0 12px; text-transform: uppercase; }
.proc-d h3 { font-size: 22px; line-height: 1; margin: 20px 0 10px; text-transform: uppercase; }
.proc-d h4 { font-size: 18px; line-height: 1; margin: 14px 0 8px; text-transform: uppercase; }
.proc-tw { width: 100%; overflow-x: auto; margin: 8px 0 12px; }
.proc-t { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.25; }
.proc-t th { text-align: left; font-size: 14px; padding: 6px 10px 4px 0; border-bottom: 2px solid var(--white); text-transform: uppercase; white-space: nowrap; }
.proc-t td { text-align: left; vertical-align: top; padding: 6px 10px 4px 0; border-bottom: 2px solid rgba(255,255,255,.25); text-transform: uppercase; }
.proc-t td p { font-size: 13px; line-height: 1.25; margin-top: 3px; text-transform: none; }
.proc-t .txt, .proc-t .err { text-transform: none; }
.proc-t .mono { text-transform: none; font-size: 12px; overflow-wrap: anywhere; }
.proc-t .err { color: var(--red); }
.proc-t .st.s-done { color: var(--white); }
.proc-t .st.s-failed, .proc-t .st.s-running, .proc-t .st.s-blocked, .proc-t .st.s-held { color: var(--red); }
.proc-t .st.s-pending { color: rgba(255,255,255,.6); }
.proc-stt { margin-top: 16px; }
.proc-h { padding-top: 16px; margin-top: 8px; border-top-width: 2px; }
.proc-md { font-size: 16px; line-height: 1.35; }
.proc-md h2, .proc-md h3, .proc-md h4 { font-size: 22px; line-height: 1; margin: 20px 0 10px; text-transform: uppercase; }
.proc-md p, .proc-md ul { margin: 8px 0; }
.proc-md ul { list-style: none; }
.proc-md li { padding-left: 20px; position: relative; margin: 4px 0; overflow-wrap: anywhere; }
.proc-md li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; background: var(--red); }
.proc-md .proc-t td { text-transform: none; }
.proc-md code { font-size: 14px; overflow-wrap: anywhere; }

/* architecture (host page /arch, server-rendered by cf/src/arch.ts): one editable text, "## " lines are headings */
.arch-meta { font-size: 18px; line-height: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; text-transform: uppercase; }
.arch-meta b { color: var(--red); font-weight: 900; }
.arch-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.arch-doc { max-width: 1100px; }
.arch-doc h2 { font-size: 32px; line-height: 1; text-transform: uppercase; border-top: 4px solid var(--white); padding-top: 20px; margin: 24px 0 10px; }
.arch-doc h2:first-child { margin-top: 0; }
.arch-p { font-size: 20px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 12px; }
.arch-edit textarea.field { display: block; width: 100%; min-height: 70vh; font-size: 18px; margin-bottom: 12px; }
.arch-hint { font-size: 14px; line-height: 1.2; text-transform: uppercase; }
.arch-h ul { list-style: none; }
.arch-h li { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 18px; line-height: 1; padding: 6px 0; text-transform: uppercase; }
.arch-h li a { color: var(--white); }
.arch-h li.on a { color: var(--red); }

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .raw-row { grid-template-columns: 1fr; }
  .rant-grid { grid-template-columns: 1fr; gap: 16px; }
  .rant-b h3 { font-size: 22px; }
  .rant-intro { font-size: 18px; }
  .proc-st { width: calc(50% - 4px); }
  .raw-s h2 { font-size: 26px; }
  .arch-doc h2 { font-size: 26px; }
  .arch-p { font-size: 18px; }
  footer { font-size: 12px; white-space: nowrap; }
  header { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  nav { justify-content: flex-end; flex-wrap: wrap; gap: 10px 20px; top: 0; }
  nav a, nav .nav-who, nav .nav-out { font-size: 22px; }
  nav[data-nav] { max-width: none; row-gap: 12px; }
  .btn, .tab { font-size: 16px; padding: 6px 9px 4px; }
  .bar2 form { flex: 1 1 100%; }
  .bar2 form .field { width: auto; flex: 1; }
  .grid { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; } .tools section + section h2 { margin-top: 32px; } .tools h2 { font-size: 26px; }
  .mn-btn, header.st-menu nav > a { font-size: 22px; }
  .mn-drop { min-width: 0; }
  .mn-act { font-size: 20px; }
  .ep-menu { padding: 16px var(--gutter); flex-direction: column; align-items: stretch; gap: 14px; }   /* phones: always stacked */
  .ep-menu .ep-title { white-space: normal; }
  .ep-menu .mn-row { flex-wrap: wrap; row-gap: 14px; }
  .ep-title { font-size: 22px; }
  .mn-row { gap: 20px; }
  .tbl { font-size: 15px; }
  .tbl th, .tbl td { padding-right: 8px; }
  .tx { font-size: 17px; }
  .hit { grid-template-columns: auto 1fr; }
  .hit .x { grid-column: 1 / -1; }
  .links a { flex-direction: column; gap: 4px; }
  .player .play { padding: 2cqw 3.5cqw; font-size: clamp(12px, 5cqw, 32px); }
  .player .time, .player .flag, .player .pending { font-size: clamp(10px, 2.8cqw, 18px); bottom: 4cqw; }
  .player .time { right: 2cqw; } .player .flag { left: 2cqw; }
  .player .pending { top: 2cqw; bottom: auto; left: 2cqw; }
}
