/* mediabot: kynship-ui v0.3.0 liquid glass (data-theme="glass" on <html>), light and dark.
   Copied from the Statics shell via docs/reference/audit-ui. The scheme is rendered on the server from the
   user's saved preference (mo_user_prefs) and the sun/moon toggle saves it with POST /prefs/scheme:
   nothing is kept in the browser. */

/* ── Header navigation ───────────────────────────────────────────────── */
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--fg-dim);
  padding: 5px 10px; border-radius: var(--r-sm);
  transition: color var(--dur-1) ease, background var(--dur-2) var(--ease-out);
}
.nav-link:hover { color: var(--fg); background: var(--fill); }
.nav-link.is-current { color: var(--fg); background: var(--fill-2); }
header .rounded-full { flex-shrink: 0; }   /* avatar keeps its size beside the nav */

.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line);
        text-underline-offset: 3px; transition: text-decoration-color var(--dur-1) ease; }
.link:hover { text-decoration-color: currentColor; }
code { font-size: 0.92em; padding: 1px 5px; border-radius: var(--r-xs); background: var(--fill); }

/* ── Notices ──────────────────────────────────────────────────────────── */
.notice {
  font-size: 14px; line-height: 1.5; padding: 12px 16px; border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line));
  background: color-mix(in srgb, var(--amber) 7%, var(--panel)); color: var(--fg);
}
.notice-error { border-color: color-mix(in srgb, var(--rose) 40%, var(--line));
                background: color-mix(in srgb, var(--rose) 7%, var(--panel)); }

@media (prefers-reduced-motion: reduce) {
  .format-card, .nav-link, .drop { transition: none; }
  .format-card:hover { transform: none; }
}

.btn-sm { font-size: 12.5px; padding: 4px 10px; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.text-err { color: var(--rose); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── App surface: light/dark, background image, frosted panels (from Statics) ──
   Every screen of this app is an app screen (<html class="st-app">).
   Light by default; the header toggle pins data-scheme and saves it per user on the server.
   The approved backgrounds sit on two fixed layers (light on ::before, dark on ::after); the
   scheme only flips the dark layer's opacity, so both images are loaded and the swap never flashes. */
.st-app {
  --st-ok: light-dark(#1e7a46, #4ade80);          /* status green: "synced", "ready" */
  /* G13 item 3: lighter fills, more of the background shows through (text contrast checked, scripts/g11_ui_check.py) */
  --st-frost: light-dark(rgb(251 250 247 / 0.42), rgb(22 23 27 / 0.40));
  --st-frost-2: light-dark(rgb(242 239 232 / 0.36), rgb(30 32 37 / 0.36));
  --st-bar: light-dark(rgb(250 248 243 / 0.50), rgb(20 21 25 / 0.48));
}
.st-app { min-height: 100%; }
/* The backdrop spans the whole document, not one viewport: long pages (home, calculator, checkpoint) keep it to the end. */
.st-app body { background: var(--bg); position: relative; min-height: 100vh; isolation: isolate; }
.st-app body::before, .st-app body::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: center top / cover no-repeat url("img/bg-light.webp");
}
.st-app body::after { background-image: url("img/bg-dark.webp"); opacity: 0; }  /* overlays are baked into the images (G13) */
.st-app[data-scheme="dark"] body::after { opacity: 1; }

/* Panels are frosted glass on the backdrop; a panel inside chrome or another panel stays flat. */
.st-app .panel {
  background: var(--st-frost);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-specular), var(--shadow-1);
}
.st-app :is(.panel, .glass, .sheet, .side-panel) .panel {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-color: var(--fill-2); box-shadow: none;
}
/* Cards in grids get the same frosted fill without a blur each (dozens per page; the backdrop is already soft). */
.st-app :is(.format-card, .img-card) { background: var(--st-frost); border-color: var(--glass-rim); }
.st-app table.tbl thead th, .st-app .slot-row { background: var(--st-frost-2); }
.st-app .top-bar.glass { background: var(--st-bar); }

/* ── Top bar (G11 navigation) ─────────────────────────────────────────── */
.wordmark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border-radius: var(--r-md); }
.wordmark-text { font-weight: 600; font-size: 15px; line-height: 1;
                 position: relative; top: 2px; }  /* the K mark sits low: this puts the baseline on its foot */
.st-app .top-bar .brand-pick select { font-size: 13px; font-weight: 500; padding: 6px 28px 6px 10px; min-height: 36px; max-width: 13rem;
                     background-color: var(--fill); border-color: transparent; border-radius: var(--r-md); }
.st-app .top-bar .brand-pick select:hover { background-color: var(--fill-2); }
.st-app .top-bar .brand-pick { display: flex; align-items: center; gap: 6px; }
.st-app .top-bar .brand-pick .brand-logo { flex-shrink: 0; }
/* Logo left, brand and sections centred on the bar, icons right (two equal side columns keep the middle centred). */
.bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; }
.bar-center { display: flex; align-items: center; gap: 8px; }
@media (min-width: 641px) {
  .st-app .top-bar:has(> .bar-center) { display: grid; grid-template-columns: 1fr auto 1fr; }
  .st-app .top-bar > .wordmark { justify-self: start; }
}
.bar-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
            border-radius: var(--r-md); color: var(--fg-dim); flex-shrink: 0;
            transition: color var(--dur-1) ease, background var(--dur-2) var(--ease-out); }
.bar-icon:hover { color: var(--fg); background: var(--fill); }
.bar-icon.is-current { color: var(--fg); background: var(--fill-2); }
.bar-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7;
                stroke-linecap: round; stroke-linejoin: round; }
.scheme-toggle .i-sun, [data-scheme="dark"] .scheme-toggle .i-moon { display: none; }
[data-scheme="dark"] .scheme-toggle .i-sun { display: block; }
.avatar-wrap { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; flex-shrink: 0; }
.settings-tabs { display: flex; align-items: center; gap: 12px; padding: 10px 6px 0; }
.settings-tabs-title { font-size: 13px; font-weight: 600; color: var(--fg-dim); }
.settings-tabs .seg-opt { min-height: 36px; display: inline-flex; align-items: center; }
@media (max-width: 420px) { .avatar-wrap { display: none; } }  /* no hover on a phone: its name tooltip cannot be read */
@media (max-width: 640px) {
  .wordmark-text, .settings-tabs-title { display: none; }
  .st-app .top-bar .brand-pick select { max-width: 7rem; }
  .st-app .top-bar { flex-wrap: wrap; height: auto; padding-block: 2px; row-gap: 0; }
  .st-app .top-bar > .bar-center { order: 10; width: 100%; justify-content: center; padding: 0 0 6px; }  /* brand and sections get their own row */
}

/* Status green for "synced" (the kit's --grn is the ink/bone accent, so it read as white). */
.st-app .source-dot.is-synced { background: #00c853; }  /* saturated: a 10px dot must read at a glance */
.st-app .source-dot.is-error { background: #f0182c; }
.st-app .source-dot.is-unavailable { background: #ff8a00; }

@media (prefers-reduced-transparency: reduce) {
  .st-app .panel, .st-app :is(.format-card, .img-card) {
    background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--line);
  }
  .st-app table.tbl thead th, .st-app .slot-row { background: var(--panel-2); }
  .st-app .top-bar.glass { background: var(--glass-tint); }  /* the kit sets it solid here */
}
@media (prefers-contrast: more) {
  .st-app .panel, .st-app :is(.format-card, .img-card) { background: var(--panel); border-color: var(--fg-faint); }
  .st-app .top-bar.glass { background: var(--glass-tint); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .st-app .top-bar.glass { background: var(--glass-tint); }
}


.spec-form [hidden] { display: none !important; }  /* form labels are flex; hidden must still hide them */
.spec-form .wz-offers input[type=radio] { width: auto; padding: 0; }

/* ── Loading feedback (G11 item 18): one spinner, the page bar, image placeholders ───────────────── */
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes st-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.st-spin { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; border-radius: 50%; vertical-align: -0.15em;
           border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor;
           animation: st-spin .8s linear infinite, st-appear .15s ease .15s both; }
.btn.st-busy { display: inline-flex; align-items: center; gap: 8px; cursor: progress; }
.btn.st-busy:disabled { opacity: .85; }
html.st-nav, html.st-nav * { cursor: progress !important; }
#progress.active { animation: st-appear .15s ease .15s both; }  /* fast pages never flash the bar */
.st-img-loading { position: relative; }
.st-img-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px;
  border-radius: 50%; border: 3px solid rgb(255 255 255 / .35); border-top-color: #fff; z-index: 2;
  box-shadow: 0 0 0 6px rgb(0 0 0 / .18); animation: st-spin .8s linear infinite, st-appear .15s ease .15s both; }
.lightbox.st-img-loading::after { position: fixed; }
.st-img-loading img { visibility: hidden; }  /* the spinner replaces the image while it loads, never sits on it (G13) */
:is(.img-card, .format-card, .wz-pick-item) img:not(.st-loaded) {
  background: linear-gradient(100deg, var(--fill) 30%, var(--fill-2) 50%, var(--fill) 70%) 0 0 / 200% 100%;
  animation: st-shimmer 1.4s ease-in-out infinite; }
.asset-empty.is-working::before, .ws-wait::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  vertical-align: -2px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor; animation: st-spin .8s linear infinite; }
.field-row .btn.is-busy, form[data-field] .btn.is-busy { cursor: progress; }
form[data-field] .btn.is-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px;
  border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor;
  vertical-align: -2px; animation: st-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) {  /* a still indicator: a half ring, no spinning, no shimmer */
  .st-spin, .st-img-loading::after, .asset-empty.is-working::before, .ws-wait::before, form[data-field] .btn.is-busy::before {
    animation: st-appear .15s ease .15s both; }
  :is(.img-card, .format-card, .wz-pick-item) img:not(.st-loaded) { animation: none; }
}
.st-busy-soft { position: relative; cursor: progress; }
.st-busy-soft::after { content: ""; position: absolute; right: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor;
  animation: st-spin .8s linear infinite, st-appear .15s ease .15s both; }
@media (prefers-reduced-motion: reduce) { .st-busy-soft::after { animation: st-appear .15s ease .15s both; } }


/* Two faces, self-hosted (SIL OFL): Poppins for titles and subtitles only (h1-h3, wizard questions, sheet titles,
   the wordmark); Geist (variable 400-700) for all body text, labels, tables, buttons and figures. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/geist-latin-var.woff2") format("woff2");
  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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/poppins-400-latin.woff2") format("woff2");
  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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/poppins-700-latin.woff2") format("woff2");
  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; }
.st-app { --font-ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1; }
.st-app .font-display { font-family: "Poppins", var(--font-ui); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/poppins-500-latin.woff2") format("woff2");
  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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
  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; }
.st-app :is(h1, .wz-q) { font-family: "Poppins", var(--font-ui); font-weight: 600; }
.st-app :is(h2, h3, .sheet-title) { font-family: "Poppins", var(--font-ui); font-weight: 500; }

/* ── This app's components (kit tokens only) ───────────────────────────────────────────────────────── */
.page-head { margin: 8px 0 28px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.page-lede { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--fg-dim); max-width: 62ch; }
.crumbs { font-size: 13px; color: var(--fg-dim); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--fg-dim); } .crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { color: var(--fg-faint); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-lg { font-size: 15px; padding: 11px 20px; min-height: 44px; border-radius: var(--r-md); }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 17px; }
.section-head a { font-size: 13px; color: var(--fg-dim); } .section-head a:hover { color: var(--fg); }

/* rows that open something */
.rows { padding: 4px 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
       padding: 14px 18px; min-height: 56px; color: var(--fg); border-top: 1px solid var(--fill-2);
       transition: background var(--dur-1) ease; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--fill); }
.row-title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.row-meta { font-size: 13px; color: var(--fg-dim); }
.row-side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; text-align: right; font-size: 13px; color: var(--fg-dim); }
.row-side b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.row-next { font-size: 13px; color: var(--fg); }
.row-next::after { content: "\2192"; margin-left: 6px; color: var(--fg-dim); }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .row-side { justify-content: flex-start; text-align: left; } }

/* empty states say what to do next */
.empty { padding: 28px 22px; text-align: center; color: var(--fg-dim); font-size: 14px; line-height: 1.55; }
.empty p + .actions { justify-content: center; margin-top: 14px; }

/* status pill */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--fg-dim); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-faint); }
.status.is-done::before { background: var(--st-ok); }
.status.is-current::before { background: var(--cyn); }
.status.is-error::before { background: var(--rose); }
.status.is-wait::before { background: var(--amber); }

.what-a-run-does { max-width: 52ch; margin: 0 auto; text-align: left; }
.what-a-run-does li { margin-top: 6px; }

/* ── Runs: step 1 form, run rows with a "⋯" menu, the run overview ───────────────────────────────── */
.notice-ok { border-color: color-mix(in srgb, var(--st-ok) 40%, var(--line));
             background: color-mix(in srgb, var(--st-ok) 7%, var(--panel)); }
.notice + .section, .page-head + .notice { margin-top: 0; }
.notice { margin-bottom: 16px; }
.chip-sm { font-size: 11.5px; padding: 1px 8px; vertical-align: 2px; margin-left: 6px; }
.field-err { margin-top: 6px; font-size: 13px; color: var(--rose); line-height: 1.45; }
ul.field-err { list-style: disc; padding-left: 18px; }
.field-hint { font-size: 13px; color: var(--fg-dim); line-height: 1.45; }
[aria-invalid="true"] { border-color: var(--rose) !important; }

.intake { padding: 22px; display: flex; flex-direction: column; gap: 24px; }
.intake .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.field-opt { font-weight: 400; color: var(--fg-dim); font-size: 13px; margin-left: 4px; }
.intake :is(input[type=text], input[type=search], select) { width: 100%; padding: 9px 12px; border-radius: var(--r-md); }
.intake input[type=file] { padding: 6px; border-radius: var(--r-md); }
.brand-list { min-height: 12rem; padding: 4px; }
.brand-list option { padding: 6px 8px; border-radius: var(--r-xs); }
.source-rows { display: flex; flex-direction: column; gap: 8px; }
.source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 6px; align-items: center; }
.source-row .field-err { grid-column: 1 / -1; margin-top: 0; }
.source-rows:has(.source-row:only-child) [data-remove-source] { visibility: hidden; }
.skip-box { grid-column: 1 / -1; font-size: 13px; }
.skip-box > summary { cursor: pointer; color: var(--fg-dim); width: max-content; }
.skip-box textarea, .skip-form textarea { width: 100%; margin-top: 6px; padding: 8px 12px; border-radius: var(--r-md);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.skip-form { flex-basis: 100%; display: grid; gap: 6px; margin-top: 4px; }
.skip-picks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.skip-picks .check { font-size: 13px; gap: 8px; }
.skip-picks .check input { width: 15px; height: 15px; }
.skip-picks .lvl-2 { padding-left: 22px; }
.src-list .skip-box { flex-basis: 100%; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; }

.run-row { grid-template-columns: minmax(0, 1fr) auto; }
.run-open { color: var(--fg); }
.run-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-menu { position: relative; }
.row-menu > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 18px; color: var(--fg-dim); }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 10rem; padding: 6px;
  border-radius: var(--r-md); display: flex; flex-direction: column; text-align: left; }
.row-menu-list form { display: contents; }
.row-menu-list :is(a, button) { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--fg); background: none; border: 0; cursor: pointer; }
.row-menu-list .text-err { color: var(--rose); }
.row-menu-list :is(a, button):hover { background: var(--fill-2); }
dialog.run-sheet { width: min(30rem, calc(100% - 16px)); }

.run-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .run-grid { grid-template-columns: 1fr; } }
.run-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.run-steps, .run-box { padding: 18px 20px; }
.run-h { font-size: 16px; margin-bottom: 12px; }
.vstepper { list-style: none; margin: 0; padding: 0; }
.vstep { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.vstep:last-child { padding-bottom: 0; }
.vstep:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--fill-2); }
.vstep-n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); color: var(--fg-dim); background: var(--panel); }
.vstep.is-done .vstep-n { border-color: var(--st-ok); background: var(--st-ok); color: #fff; }
.vstep.is-done:not(:last-child)::before { background: color-mix(in srgb, var(--st-ok) 50%, transparent); }
.vstep.is-current .vstep-n { border-color: var(--cyn); color: var(--cyn); }
.vstep-name { font-weight: 600; font-size: 14.5px; padding-top: 4px; }
.vstep.is-todo .vstep-name { color: var(--fg-dim); }
.vstep-what { font-size: 13px; color: var(--fg-dim); line-height: 1.45; margin-top: 2px; }
.src-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 10px; }
.src-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.src-list .chip-sm { margin-left: 0; }
.src-name { font-weight: 500; overflow-wrap: anywhere; }
.src-meta { font-size: 12.5px; color: var(--fg-dim); flex-basis: 100%; }
.src-raw { font-size: 13px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── Run overview: live job progress (SSE) ─────────────────────────────────────────────────────── */
.run-jobs { margin-bottom: 18px; }
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.job-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; }
.job-label { font-weight: 600; }
.job-state { display: inline-flex; align-items: center; gap: 8px; }
.job:not(.is-running, .is-queued) .job-state .st-spin { display: none; }
.job-count { font-variant-numeric: tabular-nums; color: var(--fg-dim); }
.job-est { color: var(--fg-dim); font-size: 13px; }
.job-cancel { margin-left: auto; }
.job-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
.job-bar span { display: block; height: 100%; width: 0; background: var(--cyn); transition: width .4s ease; }
.job.is-done .job-bar span { background: var(--st-ok); }
.job.is-failed .job-bar span { background: var(--rose); }
.job.is-done .job-word { color: var(--st-ok); }
.job.is-failed .job-word { color: var(--rose); }
.job-error { margin: 10px 0 0; display: grid; gap: 6px; }
.job-error[hidden] { display: none; }
.job-err-title { font-weight: 600; }
.job-error form { margin-top: 4px; }
.job-tech summary { cursor: pointer; font-size: 13px; color: var(--fg-dim); }
.job-tech pre { margin-top: 6px; max-height: 240px; overflow: auto; font-size: 12px; white-space: pre-wrap;
  word-break: break-word; background: var(--fill); border-radius: 8px; padding: 8px 10px; }
@media (prefers-reduced-motion: reduce) { .job-bar span { transition: none; } }
