@font-face{font-family:"Archivo";src:url(/fonts/archivo.woff2?v=87d5752e) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}@font-face{font-family:"JetBrains Mono";src:url(/fonts/mono.woff2?v=74f4ecc7) format("woff2");font-weight:100 800;font-display:swap}
/* WRanch Cloud panel: a render console in the brand kit's terms (brand/). Ink ground, Graphite panels, hairlines,
 * tight radii, Archivo, and Lime once per view: the next step, and what is done. */
:root {
  /* The kit's values (brand/tokens.css). Lime is the one colour; Ink the ground; Graphite the panels. */
  --bg: #0D0D0D; --panel: #1C1C1C; --raise: #262626; --sunk: #0D0D0D; --stage: #050505;
  --line: #2E2E2E; --line-2: #3A3A3A; --field: #7A7A7A;
  --ink: #FFFFFF; --ink-2: #CFCFCF; --dim: #A3A3A3;
  --accent: #C5F76E; --accent-hi: #D4FA8E; --accent-ink: #0D0D0D; --accent-well: #26330F; --accent-line: #5F7A2E;
  --info: #9CC7F5; --info-well: #1B2A3A;
  --bad: #F2A08F; --bad-well: #3A1D17; --bad-line: #6B3328;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r1: 4px; --r2: 6px; --r3: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { color-scheme: dark; scrollbar-color: var(--line-2) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { background: var(--accent-well); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: 26px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }
p { text-wrap: pretty; }
code, pre { font-family: var(--mono); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--dim); }
.icon { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.spin { animation: spin 1s linear infinite; }
.wr { display: block; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 52px; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; border-radius: var(--r1); }
.brand-sub { font-weight: 400; color: var(--dim); }
.brand-mark { height: 18px; width: auto; color: var(--accent); }
.tabs { display: flex; align-self: stretch; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; padding: 0 10px; font-size: 13.5px; color: var(--dim); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; transition: color 0.12s var(--ease), box-shadow 0.12s var(--ease); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs a:focus-visible { outline-offset: -3px; }
.account { position: relative; margin-left: auto; }
.account summary, .switcher summary { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; font-size: 13px; color: var(--ink-2); list-style: none; border: 1px solid var(--line); border-radius: var(--r2); cursor: pointer; transition: border-color 0.12s var(--ease), color 0.12s var(--ease); }
.account summary::-webkit-details-marker, .switcher summary::-webkit-details-marker { display: none; }
.account summary:hover, .switcher summary:hover, .account[open] summary, .switcher[open] summary { color: var(--ink); border-color: var(--line-2); }
.account .email { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 22px; height: 22px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-well); border-radius: 50%; }
.menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; gap: 2px; min-width: 220px; padding: 4px; background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r3); box-shadow: 0 12px 32px oklch(0% 0 0 / 0.5); }
.menu form { margin: 0; }
.menu a, .menu button { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px; font-size: 13px; color: var(--ink-2); text-align: left; text-decoration: none; background: none; border: 0; border-radius: var(--r1); }
.menu a:hover, .menu button:hover, .menu a[aria-current="page"] { color: var(--ink); background: var(--line-2); }
.menu-email { padding: 8px 10px; margin-bottom: 2px; font-size: 12px; color: var(--dim); overflow-wrap: anywhere; border-bottom: 1px solid var(--line-2); }
.switcher { position: relative; }
.switcher .menu { left: 0; right: auto; }

/* Page */
.content { width: 100%; max-width: 1360px; margin: 0 auto; padding: 28px 24px 72px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.sub { margin-top: 6px; max-width: 62ch; font-size: 13.5px; color: var(--ink-2); }
.model-head { margin-bottom: 24px; }
.model-text { min-width: 0; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.owner { font-weight: 400; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font-size: 12px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r1); }
.tags .icon { width: 13px; height: 13px; color: var(--accent); }

/* Controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; border: 1px solid transparent; border-radius: var(--r2); transition: background-color 0.12s var(--ease), border-color 0.12s var(--ease), color 0.12s var(--ease), transform 0.12s var(--ease); }
.button.primary { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.button.primary:hover { background: var(--accent-hi); }
.button.quiet { color: var(--ink); background: var(--raise); border-color: var(--line-2); }
.button.quiet:hover { border-color: var(--field); }
.button.small { height: 28px; padding: 0 10px; font-size: 12.5px; }
.button.wide { width: 100%; height: 38px; }
.button:active:not(:disabled) { transform: scale(0.98); }
.button:disabled { color: var(--dim); background: var(--raise); border-color: var(--line); cursor: not-allowed; }
.icon-button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--ink-2); background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r2); transition: border-color 0.12s var(--ease), color 0.12s var(--ease); }
.icon-button:hover { color: var(--ink); border-color: var(--field); }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; margin-left: -6px; color: var(--ink-2); background: none; border: 0; border-radius: var(--r1); transition: color 0.12s var(--ease), background-color 0.12s var(--ease); }
.copy code { font-size: 12.5px; }
.copy .icon { width: 13px; height: 13px; opacity: 0; transition: opacity 0.12s var(--ease); }
.copy:hover, .copy:focus-visible { color: var(--ink); background: var(--raise); }
.copy:hover .icon, .copy:focus-visible .icon, .chip-copy .icon { opacity: 1; }
.copy.copied { color: var(--accent); }
.chip-copy { height: 24px; padding: 0 8px; margin: 0; background: var(--panel); border: 1px solid var(--line); }
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r2); }
.seg button { height: 24px; padding: 0 10px; font-size: 12.5px; color: var(--dim); background: none; border: 0; border-radius: var(--r1); transition: color 0.12s var(--ease), background-color 0.12s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--raise); }
.chip, .badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--ink-2); background: var(--raise); border-radius: var(--r1); }
.badge { padding-left: 6px; }
.badge .icon { width: 13px; height: 13px; stroke-width: 2; }
.chip[data-tone="active"], .badge.active { color: var(--info); background: var(--info-well); }
.chip[data-tone="done"], .badge.done { color: var(--accent); background: var(--accent-well); }
.chip[data-tone="failed"], .badge.failed { color: var(--bad); background: var(--bad-well); }
.notice { padding: 10px 12px; font-size: 13px; background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r2); }
.notice.error { background: var(--bad-well); border-color: var(--bad-line); }
.content > .notice { margin-bottom: 16px; }

/* Panels */
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r3); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel-body { display: grid; gap: 16px; padding: 16px; }
.panel-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }
.hint { margin-right: auto; font-size: 12.5px; color: var(--dim); }
.playground { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }

/* Fields */
fieldset { display: grid; gap: 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
label, .label { font-size: 13px; font-weight: 500; color: var(--ink); }
input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]):not([type="range"]), select { width: 100%; height: 36px; padding: 0 10px; font-size: 14px; color: var(--ink); background: var(--sunk); border: 1px solid var(--field); border-radius: var(--r2); transition: border-color 0.12s var(--ease); }
input[type="number"] { font-family: var(--mono); font-size: 13.5px; }
input:not([type="checkbox"]):not([type="range"]):hover, select:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled .drop, fieldset:disabled button { opacity: 0.6; cursor: not-allowed; }
.help { font-size: 12px; color: var(--dim); }
.facts:empty { display: none; }
.facts.error { color: var(--bad); }
.with-action { display: flex; gap: 6px; }
.group { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.group-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 26px; }
.chips { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.chips button { height: 26px; min-width: 36px; padding: 0 8px; font: 500 12.5px var(--mono); color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line-2); border-radius: var(--r1); transition: border-color 0.12s var(--ease), color 0.12s var(--ease), background-color 0.12s var(--ease); }
.chips button:hover:not(:disabled) { color: var(--ink); border-color: var(--field); }
.chips button[aria-pressed="true"] { color: var(--accent); background: var(--accent-well); border-color: var(--accent-line); }
.chips button:disabled { opacity: 0.45; cursor: not-allowed; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; }
.times { padding-top: 31px; font: 400 17px var(--mono); color: var(--dim); }
.params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.params .wide { grid-column: 1 / -1; }
.toggle { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 12px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r2); }
.toggle .help { margin-top: 2px; }
.switch { position: relative; flex: none; width: 36px; height: 20px; margin: 0; appearance: none; background: var(--raise); border: 1px solid var(--field); border-radius: 999px; cursor: pointer; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease); }
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--ink-2); border-radius: 50%; transition: transform 0.15s var(--ease), background-color 0.15s var(--ease); }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::before { background: var(--accent-ink); transform: translateX(16px); }

/* The file drop */
.drop { display: block; background: var(--sunk); border: 1px dashed var(--field); border-radius: var(--r3); cursor: pointer; transition: border-color 0.12s var(--ease), background-color 0.12s var(--ease); }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop.over { background: var(--accent-well); }
.drop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-empty { display: grid; justify-items: center; gap: 4px; padding: 28px 16px; text-align: center; }
.drop-file { display: flex; align-items: center; gap: 12px; padding: 12px; }
.drop[data-state="empty"] .drop-file, .drop[data-state="chosen"] .drop-empty { display: none; }
.drop[data-state="chosen"] { border-style: solid; border-color: var(--line-2); }
.drop-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-bottom: 6px; color: var(--accent); background: var(--accent-well); border-radius: var(--r2); }
.drop-file .drop-icon { margin: 0; }
.drop strong { font-size: 13.5px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.drop small { font-size: 12px; color: var(--dim); }
.drop-text { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.drop-text small { font-family: var(--mono); }
pre { max-height: 28rem; margin: 0; padding: 12px; overflow: auto; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r2); }

/* The result: the video, what was read from it, the job's road */
.stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stage); border: 1px solid var(--line); border-radius: var(--r2); }
.stage video, .stage img { width: 100%; height: 100%; object-fit: contain; }
/* The Media page: the storage panel takes a dropped file; files and results sit in a grid of cards. */
.media-storage { margin-bottom: 28px; transition: border-color 0.12s var(--ease); }
.media-storage.over { border-color: var(--accent); }
.media-storage .panel-body { display: grid; gap: 10px; }
.storage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.storage-head .label, .media-storage .help { margin: 0; }
.storage-used { margin: 0; font-size: 13px; color: var(--ink-2); }
.storage-used strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.media-section { margin-bottom: 32px; }
.media-section h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.media-card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r3); }
.media-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--stage); border-bottom: 1px solid var(--line); }
.media-thumb video { width: 100%; height: 100%; object-fit: contain; }
.media-body { display: grid; gap: 4px; padding: 12px 14px 0; }
.media-name { margin: 0; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.media-meta { margin: 0; font-size: 12.5px; color: var(--dim); }
.media-meta a { color: var(--ink-2); }
.media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding: 12px 14px 14px; }
.media-actions form { margin: 0; }
.media-pick { margin-top: 10px; }
.media-pick .dim { color: var(--dim); font-weight: 400; }
.from-media { color: var(--accent); }
/* The gallery window: a search field over a grid of cards; the chosen card has an accent edge. */
.media-dialog { width: min(960px, calc(100vw - 32px)); max-height: min(82vh, 800px); padding: 0; overflow: hidden; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r3); box-shadow: 0 24px 80px rgb(0 0 0 / 0.6); }
.media-dialog[open] { display: flex; flex-direction: column; }
.media-dialog::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(2px); }
.media-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.media-dialog-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.media-search { padding: 14px 16px 0; }
.media-choices { flex: 1; min-height: 0; padding: 14px 16px 16px; overflow-y: auto; }
.media-choices li[hidden] { display: none; }
.media-choice { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; color: inherit; text-align: left; cursor: pointer; background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r2); transition: border-color 0.12s var(--ease), transform 0.12s var(--ease); }
.media-choice:hover { border-color: var(--field); }
.media-choice:active { transform: scale(0.99); }
.media-choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.media-choice .media-thumb { position: relative; width: 100%; }
.media-choice .media-body { padding: 10px 12px 12px; }
.media-choice .media-name, .media-choice .media-meta { display: block; }
.media-chosen { position: absolute; top: 8px; left: 8px; display: none; }
.media-choice[aria-pressed="true"] .media-chosen { display: inline-flex; }
.media-none { margin: 0; padding: 0 16px 16px; }
/* The result player: the bar fades while the video plays and the pointer rests, never while paused or in keyboard focus. */
.player { position: relative; }
.player video { cursor: pointer; }
.player-big { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 50%; box-shadow: 0 6px 24px rgb(0 0 0 / 0.45); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.player-big .icon { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.player-big:hover { background: var(--accent-hi); }
.player[data-state="playing"] .player-big { opacity: 0; transform: scale(0.9); pointer-events: none; }
.player-bar { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 12px; padding: 28px 12px 10px; background: linear-gradient(to top, rgb(5 5 5 / 0.85), rgb(5 5 5 / 0)); transition: opacity 0.2s var(--ease); }
.player[data-state="playing"].idle:not(:has(:focus-visible)) .player-bar { opacity: 0; }
.player[data-state="playing"].idle:not(:has(:focus-visible)) { cursor: none; }
.player-button { display: grid; place-items: center; flex: none; width: 32px; height: 32px; color: var(--ink); background: rgb(38 38 38 / 0.8); border: 1px solid var(--line-2); border-radius: var(--r2); transition: border-color 0.12s var(--ease), color 0.12s var(--ease); }
.player-button:hover { border-color: var(--field); }
.player-button .icon { width: 15px; height: 15px; }
.player-button [class*="when-"] { display: none; }
.player[data-state="paused"] .when-paused, .player[data-state="playing"] .when-playing, .player:not(.is-full) .when-window, .player.is-full .when-full { display: block; }
.player .when-paused { fill: currentColor; }
.player-time, .player-frame { flex: none; font: 500 12px/1 var(--mono); color: var(--ink-2); }
.player-frame { color: var(--dim); }
.player-seek { flex: 1; min-width: 60px; height: 20px; margin: 0; background: transparent; cursor: pointer; appearance: none; }
.player-seek:focus-visible { outline-offset: 4px; border-radius: var(--r1); }
.player-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--line-2) var(--p, 0%)); }
.player-seek::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; background: var(--accent); border: 0; border-radius: 50%; appearance: none; }
.player-seek::-moz-range-track { height: 4px; background: var(--line-2); border-radius: 2px; }
.player-seek::-moz-range-progress { height: 4px; background: var(--accent); border-radius: 2px; }
.player-seek::-moz-range-thumb { width: 12px; height: 12px; background: var(--accent); border: 0; border-radius: 50%; }
.player.is-full { border: 0; border-radius: 0; }
@media (max-width: 40rem) { .player-frame { display: none; } }
.stage-empty { display: grid; justify-items: center; gap: 16px; width: 100%; padding: 16px; font-size: 13px; color: var(--dim); text-align: center; }
.stage-mark { width: 96px; height: auto; color: var(--line-2); }
.spec { display: flex; align-items: center; gap: 20px; padding: 14px 16px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r2); }
.figure { position: relative; flex: none; width: 92px; max-height: 72px; }
.figure span { position: absolute; left: 0; bottom: 0; border-radius: 2px; }
.figure .out { background: var(--accent-well); border: 1px solid var(--accent); }
.figure .in { background: var(--line-2); border: 1px solid var(--ink-2); }
.spec dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; flex: 1; min-width: 0; }
.spec dt { font-size: 12px; color: var(--dim); }
.spec dd { font: 500 16px/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.spec dd.out { color: var(--accent); }
.spec dd.sub { font: 400 12px/1.4 var(--sans); color: var(--dim); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: baseline; gap: 6px; padding-top: 8px; font-size: 12.5px; color: var(--dim); border-top: 2px solid var(--line-2); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.steps .n { font: 400 11px var(--mono); }
.steps li.done { color: var(--ink-2); border-color: var(--accent-line); }
.steps li.now { color: var(--ink); border-color: var(--accent); }
.upload { display: grid; gap: 8px; }
.confirm { display: grid; gap: 8px; }
.confirm p { margin: 0; }
.confirm .price { font-size: 15px; }
.confirm .price strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.row-action { margin: 8px 0 0; }
.job-link { color: inherit; text-decoration: none; }
.job-link:hover { text-decoration: underline; }
/* A job row opens its job: the workflow link covers the row, and the row's buttons stay above it. */
.job-row { position: relative; cursor: pointer; }
.job-row .job-link::after { content: ""; position: absolute; inset: 0; }
.job-row button, .job-row form { position: relative; z-index: 1; }
.job-row .job-link:focus-visible { outline: none; }
.job-row:has(.job-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.table .go { width: 1%; padding-left: 0; color: var(--dim); transition: color 0.12s var(--ease); }
.job-row:hover .go { color: var(--ink); }
.back { font-size: 13px; color: var(--dim); text-decoration: none; }
.back:hover { color: var(--ink); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.result-actions .status-line { margin: 0; }
.job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.job-facts dt { font-size: 12px; color: var(--dim); }
.job-facts dd { margin: 4px 0 0; }
.progress { display: block; height: 6px; overflow: hidden; background: var(--raise); border-radius: 999px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.next { font-size: 12.5px; color: var(--dim); }
.status-line { display: block; margin-top: 4px; max-width: 46ch; font-size: 12.5px; color: var(--dim); }
.status-line.error { color: var(--bad); }
.upload .status-line { margin: 0; font-size: 13px; color: var(--ink-2); }

/* Credits */
.credits { display: grid; gap: 16px; }
.balance { margin: 0; font-size: 15px; color: var(--ink-2); }
.balance strong { font: 600 36px/1.1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.table .amount { width: 1%; text-align: right; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table td.amount.in { color: var(--accent); }

/* Jobs */
.more { display: flex; justify-content: center; margin: 16px 0 0; }
.table-wrap { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { height: 40px; padding: 0 16px; font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; color: var(--dim); background: var(--sunk); border-bottom: 1px solid var(--line); }
/* Middle: a cell with a second line (frames, credits) must not pull the row's first lines apart. */
.table td { padding: 14px 16px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 0.12s var(--ease); }
.table tbody tr:hover { background: var(--raise); }
.table td.status { width: 34%; min-width: 16rem; }
.table td.when { white-space: nowrap; color: var(--ink-2); }
.status-top { display: flex; align-items: center; gap: 12px; }
.pipeline { display: inline-grid; grid-template-columns: repeat(5, 20px); gap: 3px; }
.pipeline > span { height: 4px; overflow: hidden; background: var(--line-2); border-radius: 2px; }
.pipeline .done { background: var(--accent); }
.pipeline .now { background: var(--accent-line); }
.pipeline .now i { display: block; height: 100%; background: var(--accent); }
.pipeline .now.wait { background: linear-gradient(90deg, var(--accent-line) 0 40%, var(--accent) 50%, var(--accent-line) 60% 100%) 0 0 / 300% 100%; animation: sweep 1.4s linear infinite; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sizes { display: inline-flex; align-items: center; gap: 8px; }
.sizes code { font-size: 13px; color: var(--ink-2); }
.sizes code.out { color: var(--ink); }
.sizes .icon { width: 13px; height: 13px; color: var(--dim); }
.empty { overflow: hidden; }
/* The mark as motif: far larger than its frame and cut by it, a few percent of white on Ink */
.empty-art, .auth-art { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.empty-art { height: 132px; }
.motif { position: absolute; left: -3%; top: -70%; height: 340%; width: auto; color: #fff; opacity: 0.06; }
.empty-body { display: grid; justify-items: start; gap: 8px; padding: 24px; }
.empty-body h2 { font-size: 18px; font-weight: 700; font-stretch: 108%; }
.empty-body p { max-width: 58ch; font-size: 13.5px; color: var(--ink-2); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Terms */
.terms .prose { max-width: 60ch; padding: 24px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin: 24px 0 8px; font-size: 17px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 16px 0 4px; font-size: 14.5px; color: var(--ink); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 4px; }
.prose strong { font-weight: 600; color: var(--ink); }

/* Sign in and errors: one card, no chrome */
.auth { display: grid; place-items: center; min-height: 100dvh; padding: 24px 16px; }
.auth-main { display: grid; gap: 20px; width: min(100%, 400px); }
.auth-main .brand { justify-self: start; }
.auth-card { overflow: hidden; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r3); }
.auth-art { height: 72px; }
.auth-body { display: grid; gap: 14px; padding: 24px; }
.auth-body h1 { font-size: 20px; }
.auth-body .sub { margin: 0; }
.auth-body form { display: grid; gap: 14px; margin: 0; }
.auth-foot { font-size: 12px; color: var(--dim); }
.auth-body .or { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; color: var(--dim); }
.auth-body .or::before, .auth-body .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Accepting the terms: the sign-in card, wider, with the text in a scroll box and two ticks */
.terms { width: fit-content; max-width: 100%; }
.auth-main.wide { width: min(100%, 560px); }
.terms-text { max-height: min(44dvh, 340px); overflow: auto; overscroll-behavior: contain; padding: 16px 18px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r2); }
.terms-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.terms-text h2 { font-size: 15px; }
.tick-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.tick-row:hover { color: var(--ink); }
.tick { display: grid; place-content: center; width: 18px; height: 18px; margin: 1px 0 0; appearance: none; background: var(--sunk); border: 1px solid var(--field); border-radius: 5px; cursor: pointer; transition: background-color 0.12s var(--ease), border-color 0.12s var(--ease); }
.tick::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) scale(0); transition: transform 0.12s var(--ease); }
.tick:hover { border-color: var(--ink-2); }
.tick:checked { background: var(--accent); border-color: var(--accent); }
.tick:checked::after { transform: rotate(-45deg) scale(1); }
.tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Until both boxes are ticked the button looks off, but it stays clickable, so the browser names the missing tick. */
.accept:invalid .button.primary { color: var(--dim); background: var(--raise); }
.auth-body .auth-account { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }
.auth-account span { min-width: 0; overflow-wrap: anywhere; }
.auth-account button { flex: none; padding: 0; font: inherit; color: var(--ink-2); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.auth-account button:hover { color: var(--ink); }

@media (max-width: 56rem) {
  .playground { grid-template-columns: minmax(0, 1fr); }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td, .table td.status { width: 100%; min-width: 0; padding: 8px 16px; border: 0; }
  .table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; color: var(--dim); }
  .table .go { display: none; }
}
@media (max-width: 40rem) {
  .topbar { gap: 12px; padding: 0 12px; }
  .brand-sub, .account .email { display: none; }
  .content { padding: 20px 12px 56px; }
  h1 { font-size: 22px; }
  .params { grid-template-columns: minmax(0, 1fr); }
  .spec { flex-direction: column; align-items: flex-start; }
  .spec dl { width: 100%; }
  .steps li { flex-direction: column; gap: 2px; font-size: 11.5px; }
  .panel-foot { flex-wrap: wrap; }
  .hint { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
