@import url("./fonts.css");
@import url("./components.css");
@import url("./journey.css");

:root {
  color-scheme: dark;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "Geist Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 20px;
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 24px; --fs-2xl: 34px;
  --bg: #07080c;
  --surface: #0d0f15;
  --surface-2: #141721;
  --line: #1c2030;
  --line-strong: #2a3043;
  --ink: #f2f0ea;
  --ink-2: #c3c7d1;
  --ink-3: #8a92a1;
  --accent: #9b8cff;
  --accent-ink: #0a0b10;
  --accent-soft: #1c1b2e;
  --mint: #86d7bf;
  --amber: #f3b27a;
  --aurora: linear-gradient(100deg, #86d7bf 0%, #9b8cff 55%, #f3b27a 100%);
  --good: #86d7bf;
  --good-soft: #162122;
  --warning: #f5c46b;
  --warning-soft: #241f17;
  --serious: #f39a5b;
  --serious-soft: #261b16;
  --critical: #ff7a7a;
  --critical-soft: #251619;
  --console-bg: #05060a;
  --console-ink: #e8e8ed;
  --glass: rgba(9, 10, 15, .82);
  --glass-line: rgba(255, 255, 255, .07);
  --tint: rgba(155, 140, 255, .08);
  --focus: 0 0 0 2px #07080c, 0 0 0 4px #9b8cff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .4);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .55), 0 30px 70px rgba(0, 0, 0, .6);
  --sev-critical: var(--critical); --sev-high: var(--serious); --sev-medium: var(--warning); --sev-low: var(--accent); --sev-info: var(--ink-3);
  --stage-lead: #7aa7ff; --stage-researcher: #f39a5b; --stage-revision: #86d7bf; --stage-coder: #f5c46b;
  --stage-tester: #f08fb8; --stage-reviewer: #7fd18b; --stage-git: #9b8cff; --stage-scenarist: #ff8f8f;
  --chart-muted: var(--ink-3); --chart-grid: var(--line); --chart-axis: var(--line-strong);
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: var(--fs-md)/1.6 var(--font-sans);
  background: var(--bg);
  background-image: radial-gradient(1100px 620px at 8% -12%, rgba(134, 215, 191, .07), transparent 60%), radial-gradient(1000px 640px at 92% -8%, rgba(155, 140, 255, .10), transparent 58%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  min-height: 100vh;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p { margin: 0; }
a { color: var(--accent); }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
pre { margin: 0; font-family: var(--font-mono); font-size: var(--fs-sm); white-space: pre-wrap; word-break: break-word; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.skip-link { position: absolute; left: -9999px; top: var(--sp-2); background: var(--surface); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: var(--sp-2); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: 52px;
  padding: var(--sp-2) var(--sp-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; letter-spacing: .01em; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 14px; height: 14px; border-radius: 3px; background: var(--ink); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--ink); }
.switchers { display: flex; gap: var(--sp-2); align-items: center; min-width: 0; }
.switchers .input-sm { max-width: 200px; }
.tenant-name { font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; padding-right: var(--sp-2); border-right: 1px solid var(--line); }
.menu-toggle { display: none; margin-left: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; overflow: visible; align-items: center; }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.nav-menu .nav-link { justify-content: flex-start; }
.nav-menu .nav-link span { display: inline; }
.nav::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); border: 1px solid transparent;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { background: var(--bg); border-color: var(--line); color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.lang-switch { width: auto; padding-inline: var(--sp-2) 26px; }
.me { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; list-style: none; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.me::-webkit-details-marker { display: none; }
.me:hover, .user-menu[open] .me { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.user-menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-2); display: flex; flex-direction: column; gap: 2px; z-index: 30; }
.menu-head { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-1); font-size: var(--fs-sm); }
.menu-head .chip { align-self: flex-start; margin-top: 4px; }
.menu-item { display: flex; align-items: center; gap: var(--sp-2); width: 100%; text-align: left; background: none; border: 0; padding: 8px var(--sp-2); border-radius: var(--radius-sm); font-size: var(--fs-sm); cursor: pointer; color: var(--ink); }
.menu-item:hover { background: var(--surface-2); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.live.tone-good { color: var(--good); }
.live.tone-warning { color: var(--warning); }
.live.tone-muted { color: var(--ink-3); }
@media (max-width: 1560px) and (min-width: 901px) {
  .topbar { flex-wrap: wrap; row-gap: var(--sp-2); }
  .switchers { margin-right: auto; }
  .nav { order: 6; width: 100%; margin-left: 0; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
}
@media (max-width: 1180px) and (min-width: 901px) { .nav-link span { display: none; } .nav-link { padding: 8px; } .me-name { display: none; } }
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: var(--sp-3); padding-inline: var(--sp-4); }
  .menu-toggle { display: inline-flex; }
  .live-text { display: none; }
  .switchers { order: 5; width: 100%; }
  .switchers .input-sm { max-width: none; flex: 1; }
  .tenant-name { border-right: 0; }
  .nav { display: none; order: 6; width: 100%; flex-direction: column; gap: 2px; margin: 0; overflow: visible; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
  .nav-link { padding: 10px var(--sp-3); font-size: var(--fs-md); }
  .nav-link span { display: inline; }
  .nav-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 var(--sp-3); }
  .topbar.menu-open .nav { display: flex; }
  .topbar:not(.menu-open) .switchers { display: none; }
}
@media (max-width: 640px) { .topbar { padding-inline: var(--sp-3); } .brand-name { display: none; } }

.main { padding-block: var(--sp-5) var(--sp-10); padding-inline: var(--sp-5); max-width: 1500px; margin: 0 auto; }
.main:focus { outline: none; box-shadow: none; }
@media (max-width: 640px) { .main { padding-inline: var(--sp-4); } }

.page-head { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: flex-start; margin-bottom: var(--sp-5); flex-wrap: wrap; }
.page-head p { margin-top: 2px; font-size: var(--fs-sm); }
.page-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.card-head h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 600; }
.card-actions { display: flex; gap: var(--sp-2); }
.card-hint { margin-top: -6px; }
.card-danger { border-color: var(--critical); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.stat-value { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: var(--fs-sm); color: var(--ink-3); }
.stat.tone-warning .stat-hint { color: var(--warning); }
.stat.tone-critical .stat-hint { color: var(--critical); }
.stat.tone-good .stat-hint { color: var(--good); }
.stat .sparkline { color: var(--ink-3); margin-top: 4px; }

.console { background: var(--console-bg); color: var(--console-ink); border-radius: var(--radius-sm); padding: var(--sp-3); max-height: 320px; overflow: auto; font: var(--fs-sm)/1.45 var(--font-mono); }
.console .l-warn { color: #fab219; } .console .l-error { color: #e66767; } .console .l-event { color: #86b6ef; }
.console:empty::after { content: attr(data-empty); color: #898781; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-2); }
.module { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); background: var(--surface-2); font-size: var(--fs-sm); display: flex; flex-direction: column; gap: 2px; }
.module-name { font-weight: 600; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.module[data-state="running"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.module[data-state="ok"] { border-color: var(--good); }
.module[data-state="ok"][data-worst="medium"] { border-color: var(--warning); }
.module[data-state="ok"][data-worst="high"], .module[data-state="ok"][data-worst="critical"] { border-color: var(--critical); }
.module[data-state="crashed"], .module[data-state="timeout"], .module[data-state="limit"] { border-color: var(--critical); }
.module .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.module[data-state="running"] .dot { background: var(--accent); animation: pulse 1s infinite; }
.module[data-state="ok"] .dot { background: var(--good); }
.module[data-state="ok"][data-worst="low"] .dot { background: var(--sev-low); }
.module[data-state="ok"][data-worst="medium"] .dot { background: var(--warning); }
.module[data-state="ok"][data-worst="high"] .dot { background: var(--serious); }
.module[data-state="ok"][data-worst="critical"] .dot { background: var(--critical); }
.module[data-state="ok"][data-worst="high"] { border-color: var(--serious); }
.module[data-state="crashed"] .dot, .module[data-state="timeout"] .dot, .module[data-state="limit"] .dot { background: var(--critical); }
@keyframes pulse { 50% { opacity: .25; } }

.stream-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.stream-strip li { display: grid; grid-template-columns: 64px minmax(90px, 180px) 1fr; gap: var(--sp-2); padding: 4px 0; border-bottom: 1px dashed var(--line); }
.stream-strip .time { font-family: var(--font-mono); color: var(--ink-3); }
.stream-strip .src { font-family: var(--font-mono); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .stream-strip li { grid-template-columns: 56px 1fr; } .stream-strip .text { grid-column: 1 / -1; } }

.login { min-height: 80vh; display: grid; place-items: center; }
.login .card { width: min(100%, 400px); }
.mfa-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); gap: 6px 16px; padding-left: 1.6em; margin: 0; }
.mfa-secret { letter-spacing: 0.08em; word-break: break-all; }
.mfa-qr-box { margin-top: 8px; }
.ua-full { max-width: 32ch; overflow-wrap: anywhere; }
.mfa-qr { width: 200px; max-width: 100%; height: auto; display: block; border-radius: 6px; }
.login-foot { justify-content: space-between; align-items: center; gap: var(--sp-3); }
.login-foot p { margin: 0; }

.md h2, .md h3, .md h4 { margin: var(--sp-3) 0 var(--sp-1); }
.md p, .md ul, .md ol, .md pre, .md blockquote { margin: var(--sp-2) 0; }
.md pre { background: var(--surface-2); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); }
.md blockquote { border-left: 3px solid var(--line-strong); padding-left: var(--sp-3); color: var(--ink-2); }
.md code { background: var(--surface-2); padding: 0 4px; border-radius: 4px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); }
.timeline li { border-left: 2px solid var(--line); padding-left: var(--sp-2); }
.timeline .when { color: var(--ink-3); font-family: var(--font-mono); margin-right: 6px; }
.timeline li[data-level="warn"] { border-color: var(--warning); }
.timeline li[data-level="error"] { border-color: var(--critical); }

.stage-track { display: flex; gap: 3px; align-items: center; }
.stage-track i { width: 14px; height: 6px; border-radius: 2px; background: var(--line-strong); display: inline-block; }
.stage-track i[data-state="done"] { background: var(--good); }
.stage-track i[data-state="current"] { background: var(--accent); animation: pulse 1.2s infinite; }
.stage-track i[data-state="failed"] { background: var(--critical); }

.banner { border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); border: 1px solid; display: flex; gap: var(--sp-2); align-items: flex-start; }
.banner-warning { background: var(--warning-soft); border-color: var(--warning); }
.banner-critical { background: var(--critical-soft); border-color: var(--critical); }
.banner-info { background: var(--accent-soft); border-color: var(--accent); }
.banner-good { background: var(--good-soft); border-color: var(--good); }

.evidence { max-width: 100%; max-height: 340px; object-fit: contain; object-position: top; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; }
.getting-started { display: flex; flex-direction: column; gap: var(--sp-3); }
.getting-started h2 { margin: 0; font-size: var(--fs-md, 1rem); }
.gs-nudge { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--accent); border-radius: var(--radius, 8px); color: inherit; text-decoration: none; font-size: var(--fs-sm); }
.gs-nudge:hover, .gs-nudge:focus-visible { background: var(--tint); }
.gs-nudge-count { color: var(--ink-3); }
.gs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.gs-step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.gs-step.next { border-color: var(--accent); background: var(--accent-soft); }
.gs-step.done { opacity: .7; }
.gs-mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.gs-step.done .gs-mark { background: var(--good); border-color: var(--good); color: var(--bg); }
.gs-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-step a.btn { text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .gs-step { grid-template-columns: 22px minmax(0, 1fr); } .gs-step > :last-child { grid-column: 2; justify-self: start; } }
.login-sso { display: flex; justify-content: center; margin-top: var(--sp-2); }
.login-sso .btn { width: 100%; justify-content: center; }
.compare-group h3 { margin: var(--sp-2) 0; font-size: var(--fs-sm); }
.compare-list li { gap: var(--sp-2); flex-wrap: wrap; }
.compare-introduced h3 { color: var(--critical); }
.compare-fixed h3 { color: var(--good); }
.digest-subject { display: flex; flex-direction: column; gap: 2px; }
.digest-preview { white-space: pre-wrap; word-break: break-word; max-height: 55vh; overflow: auto; margin: 0; padding: var(--sp-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font: var(--fs-sm)/1.55 var(--font-mono); }
.install-panel { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.install-command { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
.install-command .console { width: 100%; white-space: pre; margin: 0; }
.install-status { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.install-status.is-connected { border-color: var(--good); background: var(--good-soft); }
.install-status.is-connected svg { color: var(--good); }
.install-next { margin-left: auto; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
.token-reveal { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: var(--sp-3); font-family: var(--font-mono); word-break: break-all; }
.list-nav { display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow: auto; }
.list-nav button { text-align: left; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 6px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.list-nav button:hover { background: var(--surface-2); }
.list-nav button[aria-current="true"] { background: var(--bg); border-color: var(--line); }
.editor textarea { min-height: 420px; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.55; resize: vertical; }

.board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-3); margin-top: var(--sp-3); }
.board-column { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-direction: column; min-height: 320px; min-width: 0; }
.board-column.is-auto { background: var(--surface); }
.board-column.is-over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.board-column-head { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.board-column-body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2); flex: 1; }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); cursor: grab; min-width: 0; overflow: hidden; }
.board-card .row { min-width: 0; }
.board-card .row > .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card:hover { border-color: var(--accent); }
.board-card:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.board-card.is-locked { cursor: pointer; border-left: 3px solid var(--accent); }
.board-job-card { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); cursor: pointer; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; }
.board-job-card .row { min-width: 0; }
.board-job-card .row > .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-job-card .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-job-card:hover { border-color: var(--accent); }
.board-card.is-needs-you, .board-job-card.is-needs-you { border-left: 3px solid var(--warning); box-shadow: 0 0 0 1px color-mix(in srgb, var(--warning) 35%, transparent); }
.board-job-card:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.board-card-title { font-size: var(--fs-sm); color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.board-empty { padding: var(--sp-3); text-align: center; color: var(--ink-3); }
.chip-sm { font-size: var(--fs-xs); padding: 0 6px; }

.start-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-block: var(--sp-3); }
.start-progress > span { display: block; height: 100%; background: var(--accent); }
.start-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.start-step { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.start-step.is-current { border-color: var(--accent); }
.start-step.is-done { opacity: 0.85; }
.start-index { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-weight: 600; flex: none; }
.start-step.is-done .start-index { background: var(--good); color: var(--surface); }
.start-step.is-current .start-index { background: var(--accent); color: var(--surface); }
.watch-pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-2); }
.watch-step { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.watch-step-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: var(--fs-sm); background: var(--surface-2); color: var(--ink-2); }
.watch-step-label { font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-step.is-done { border-color: var(--good); }
.watch-step.is-done .watch-step-dot { background: var(--good); color: #07080c; }
.watch-step.is-current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.watch-step.is-current .watch-step-dot { background: var(--accent); color: var(--accent-ink); animation: pulse 1.2s infinite; }
.watch-step.is-problem { border-color: var(--critical); }
.watch-step.is-paused { border-color: var(--warning); }
.watch-action { border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--sp-2); background: var(--surface); }
.watch-action h2 { margin: 0; font-size: var(--fs-lg, 1.1rem); }
.watch-action p { margin: 0; }
.watch-action.tone-warning { border-color: var(--warning); background: var(--warning-soft); }
.watch-action.tone-accent { border-color: var(--accent); background: var(--accent-soft); }
.watch-action.tone-good { border-color: var(--good); background: var(--good-soft); }
.watch-action.tone-critical { border-color: var(--critical); background: var(--critical-soft); }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--sp-3); align-items: start; }
.watch-feed { list-style: none; margin: 0; padding: 0; max-height: 540px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.watch-feed li { display: flex; gap: var(--sp-2); font-size: var(--fs-sm); line-height: 1.4; }
.watch-feed li .when { color: var(--ink-3); flex: none; }
.watch-feed li[data-level="warn"] { color: var(--serious); }
.watch-feed li.is-live { animation: fade-in .4s ease-out; }
.watch-diff { margin: 0; max-height: 460px; overflow: auto; font-size: 12px; line-height: 1.45; background: var(--console-bg); color: var(--console-ink); padding: var(--sp-3); border-radius: var(--radius-sm); }
.watch-diff span { display: block; white-space: pre; }
.watch-diff .diff-add { color: #3fb950; }
.watch-diff .diff-del { color: #f85149; }
.watch-diff .diff-hunk { color: #79c0ff; }
.watch-diff .diff-file { color: var(--console-ink); font-weight: 700; }
.start-demo { flex-direction: row; gap: var(--sp-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.watch-action > .btn, .watch-action > button { align-self: flex-start; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .watch-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .watch-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .watch-step.is-current .watch-step-dot, .watch-feed li.is-live { animation: none; } }
.tour-mock { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: 14px; display: grid; gap: 10px; }
.tour-mock-title { font-weight: 600; font-size: var(--fs-sm); }
.tour-mock-list { list-style: none; margin: 0; }
.tour-mock-list li, .tour-log { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.tour-mark { color: var(--critical); font-weight: 700; }
.tour-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; }
.tour-chip.tone-success { background: var(--good-soft); color: var(--good); }
.tour-chip.tone-warning { background: var(--warning-soft); color: var(--warning); }
.tour-chip.tone-danger { background: var(--critical-soft); color: var(--critical); }
.tour-field { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tour-input { min-width: 64px; text-align: right; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 2px 8px; font-family: var(--font-mono); font-size: var(--fs-sm); }
.tour-option { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.tour-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.tour-radio { color: var(--accent); }
.tour-nav { justify-content: space-between; align-items: center; }
.tour-dots { display: flex; gap: 6px; margin: 0 auto; }
.tour-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.tour-dot.is-active { background: var(--accent); }
.guide { max-width: 960px; }
.guide-toc ol { margin: 0; padding-left: 20px; }
.guide-figure { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-steps { margin: 0; padding-left: 22px; }
.guide-section { scroll-margin-top: 80px; }
