/* PulseBoard — one stylesheet for site and app. Dark-first, system fonts (no third parties). */
:root {
  --bg: #0b1020;
  --bg-2: #0f1628;
  --surface: #131b30;
  --surface-2: #19233d;
  --border: #26324f;
  --text: #e8ecf6;
  --muted: #a3aec8;
  --faint: #6f7b99;
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --coral: #fb7185;
  --amber: #fbbf24;
  --sky: #38bdf8;
  --lime: #a3e635;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #fb7185;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #2b3858 #0f1628; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #5eead4; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
kbd { background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; padding: 0 .4em; border-radius: 5px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--teal); color: #042f2e; padding: 8px 14px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: .5em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.grad { background: linear-gradient(90deg, var(--teal), var(--sky) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: inherit; font-weight: 650; line-height: 1; border-radius: 10px; border: 1px solid transparent;
  padding: .8em 1.2em; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, border-color .15s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--teal); color: #042f2e; }
.btn--primary:hover { background: #5eead4; color: #042f2e; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--muted); color: var(--text); background: var(--surface); }
.btn--sm { padding: .55em .9em; font-size: .9rem; min-height: 38px; }
.btn--lg { padding: 1em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--icon { min-width: 40px; height: 40px; min-height: 40px; padding: 0 8px; background: var(--surface-2); color: var(--text); border-color: var(--border); font-size: 1.1rem; }
.btn--icon:hover { border-color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(11, 16, 32, .86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand__mark { width: 32px; height: 32px; }
.brand--small { font-size: 1rem; margin-bottom: 8px; }
.brand--small .brand__mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.topbar__user { display: flex; align-items: center; gap: 12px; }
.topbar__user form { margin: 0; }
.ws-name { color: var(--muted); font-size: .9rem; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-banner { background: linear-gradient(90deg, rgba(45, 212, 191, .16), rgba(167, 139, 250, .16)); border-bottom: 1px solid var(--border); font-size: .92rem; padding: 10px 0; }

/* Live dot */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ping 1.8s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.is-paused .live-dot { background: var(--faint); animation: none; }
.is-offline .live-dot { background: var(--err); animation: none; }

/* Hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(700px 400px at 85% 10%, rgba(56, 189, 248, .13), transparent 60%),
  radial-gradient(600px 360px at 5% 55%, rgba(45, 212, 191, .09), transparent 65%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero__cta form { margin: 0; }
.hero__cta--center { justify-content: center; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock__bar em { margin-left: 10px; font-style: normal; font-size: .78rem; color: var(--faint); font-family: var(--mono); }
.mock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.mock__card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.mock__card small { color: var(--muted); font-size: .72rem; display: block; }
.mock__card strong { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; margin: 2px 0 6px; transition: color .3s; }
.mock__card strong.bump { color: var(--c); }
.mock__progress { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.mock__progress i { display: block; height: 100%; background: var(--c); border-radius: 3px; }
.w70 { width: 70%; } .w73 { width: 73%; } .w74 { width: 74%; }
.mock__spark { width: 100%; height: 30px; display: block; }
.mock__spark polyline { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mock__feed { list-style: none; margin: 0; padding: 4px 14px 14px; font-size: .8rem; color: var(--muted); }
.mock__feed li { padding: 6px 0; border-top: 1px solid var(--border); display: flex; gap: 6px; }
.mock__feed b { color: var(--text); }
.mock__feed time { margin-left: auto; color: var(--faint); white-space: nowrap; }
.c-teal { --c: var(--teal); } .c-violet { --c: var(--violet); } .c-coral { --c: var(--coral); }
.c-amber { --c: var(--amber); } .c-sky { --c: var(--sky); } .c-lime { --c: var(--lime); }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 44px; height: 44px; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.ic-bg { fill: rgba(45, 212, 191, .12); }
.ic-line { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic-dot { fill: var(--violet); }
.flow { list-style: none; padding: 0; margin: 36px 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: f; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.flow li p { color: var(--muted); margin: 0; font-size: .95rem; }
.flow__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(56, 189, 248, .15); color: var(--sky); font-weight: 800; margin-bottom: 12px; }
.link-arrow { font-weight: 650; text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.code { white-space: pre; background: #080c18; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow-x: auto; margin: 0; line-height: 1.55; font-size: .86rem; color: #d7e1f5; }
.code code { background: none; padding: 0; font-size: inherit; }
.code .c { color: var(--faint); }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style-position: outside; }
.faq p { color: var(--muted); }
.cta-band { background: radial-gradient(600px 300px at 50% 0%, rgba(45, 212, 191, .14), transparent 70%); }
.cta-band .lead { margin-inline: auto; }

/* Prose pages */
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose p, .prose li { color: #cdd5e6; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.diagram { margin: 36px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 8px; }
.d-box rect { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.d-accent rect { stroke: var(--teal); }
.d-db rect { stroke: var(--violet); }
.d-box text { fill: var(--text); font: 700 16px var(--font); text-anchor: middle; }
.d-box .d-sub { fill: var(--muted); font-weight: 500; font-size: 13px; }
.d-arrow { fill: none; stroke: #9aa6c2; stroke-width: 1.8; marker-end: url(#ah); }
.d-label { fill: var(--muted); font: 12px var(--font); text-anchor: middle; }
.d-label.d-end { text-anchor: end; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { color: var(--text); white-space: nowrap; }
.compare td { color: #cdd5e6; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); }

/* Forms / auth */
.auth { display: grid; place-items: center; padding: 64px 16px; }
.auth__card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.auth__card--wide { width: min(600px, 100%); }
.auth__card h1 { font-size: 1.9rem; }
.auth__alt { text-align: center; margin: 18px 0 0; color: var(--muted); }
.auth__demo { margin-top: 12px; }
.form { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: .92rem; margin-top: 10px; }
.form input:not([type=radio]), .form textarea, .form select {
  font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: .7em .85em; width: 100%; min-height: 44px;
}
.form textarea { font-family: var(--mono); font-size: .9rem; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--teal); outline: 2px solid rgba(45, 212, 191, .35); outline-offset: 0; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--err); }
.form button[type=submit] { margin-top: 16px; }
.form input:disabled { opacity: .6; }
.field-error { color: var(--err); font-size: .88rem; margin: 2px 0 0; }
.alert { background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .45); color: #fecdd3; padding: 10px 14px; border-radius: 10px; }
.flash { padding: 12px 16px; border-radius: 10px; margin: 18px 0 0; border: 1px solid; }
.flash--ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .4); color: #bbf7d0; }
.flash--warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .4); color: #fde68a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* App */
.app { padding: 28px 0 64px; }
.app__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 12px 0 24px; }
.app__head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .15em; }
.app__head p { margin: 0; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: .86rem; color: var(--muted); }
.pill--online { color: #bbf7d0; }
.pill--late, .pill--never { color: #fde68a; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); opacity: .9; }
.card__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card__head h3 { font-size: .95rem; color: var(--muted); font-weight: 600; margin: 0; letter-spacing: 0; }
.card__target { font-size: .75rem; color: var(--faint); white-space: nowrap; }
.card__value { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin: 0; font-variant-numeric: tabular-nums; line-height: 1.1; }
.card.flash-up .card__value { animation: flashUp 1.1s ease-out; }
.card.flash-down .card__value { animation: flashDown 1.1s ease-out; }
@keyframes flashUp { 0% { color: var(--ok); transform: translateY(-2px); } 100% { color: var(--text); transform: none; } }
@keyframes flashDown { 0% { color: var(--err); transform: translateY(2px); } 100% { color: var(--text); transform: none; } }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 3px; }
.is-ready .progress i { transition: width .6s ease; }
.spark { width: 100%; height: 48px; display: block; }
.spark__line { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark__area { fill: var(--c); opacity: .12; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.card__foot .js-updated { white-space: nowrap; font-size: .8rem; }
.stepper { display: inline-flex; gap: 6px; }
.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel + .panel { margin-top: 0; }
.app > .panel { margin-top: 16px; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel__head h2 { font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.feed__item { padding: 10px 0 10px 18px; border-top: 1px solid var(--border); position: relative; font-size: .94rem; color: #cdd5e6; }
.feed__item:first-child { border-top: 0; }
.feed__item::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.feed--job::before { background: var(--violet); }
.feed--system::before { background: var(--amber); }
.feed__item.is-new { animation: slideIn .5s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); background: rgba(45, 212, 191, .08); } to { opacity: 1; transform: none; } }
.feed__who { font-weight: 700; color: var(--text); }
.feed time { color: var(--faint); font-size: .82rem; margin-left: 4px; white-space: nowrap; }
.queue-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.qs { background: var(--surface-2); border-radius: 10px; padding: 10px; text-align: center; }
.qs strong { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.qs span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.qs--running strong { color: var(--sky); } .qs--done strong { color: var(--ok); } .qs--failed strong { color: var(--err); } .qs--queued strong { color: var(--amber); }
.quick-jobs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.jobs-mini { list-style: none; margin: 0; padding: 0; }
.jobs-mini li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.jobs-mini li a { margin-left: auto; font-size: .86rem; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip--queued { background: rgba(251, 191, 36, .14); color: #fde68a; }
.chip--running { background: rgba(56, 189, 248, .16); color: #bae6fd; }
.chip--done { background: rgba(52, 211, 153, .14); color: #bbf7d0; }
.chip--failed { background: rgba(251, 113, 133, .15); color: #fecdd3; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #3f1d2b; color: #fecdd3; border: 1px solid rgba(251, 113, 133, .5); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 20; max-width: calc(100% - 32px); }
.jobs-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.job-types { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.job-type { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; margin: 0 !important; }
.job-type:has(input:checked) { border-color: var(--teal); background: rgba(45, 212, 191, .07); }
.job-type input { margin-top: 4px; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.job-type strong { display: block; font-size: .98rem; }
.job-type small { color: var(--muted); font-weight: 400; font-size: .86rem; }
.import-box { display: grid; gap: 6px; margin-top: 4px; }
.import-box[hidden] { display: none; }
.how { margin: 14px 0 0; }
.reports { list-style: none; margin: 0; padding: 0; }
.reports li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.reports li:first-child { border-top: 0; }
.rep-kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); margin-right: 6px; }
.jobs-table td { font-size: .92rem; }
.err { color: #fecdd3; }
.good { color: #bbf7d0; } .bad { color: #fecdd3; }
.crumbs { margin: 8px 0 0; }
.crumbs a { text-decoration: none; color: var(--muted); }
.report h2 { font-size: 1.1rem; margin-top: 1.4em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.facts div { background: var(--surface-2); border-radius: 10px; padding: 14px; }
.facts strong { display: block; font-size: 1.3rem; }
.facts span { color: var(--muted); font-size: .86rem; }
.people { padding-left: 1.2em; }
.metric-row { display: grid; grid-template-columns: 14px 1.4fr 1fr; gap: 12px; align-items: end; padding: 8px 0; border-top: 1px solid var(--border); }
.metric-row:first-of-type { border-top: 0; }
.metric-row .field-error { grid-column: 2 / -1; }
.metric-row label { margin-top: 0; }
.swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--c); margin-bottom: 15px; }
.token { display: block; word-break: break-all; padding: 10px; background: var(--bg-2); border: 1px dashed var(--teal); }
.error-page { padding: 96px 0; }
.flatline { width: 260px; height: 52px; margin: 0 auto 12px; display: block; }
.flatline path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Responsive */
@media (max-width: 1020px) {
  .features, .flow { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .mock { transform: none; }
}
@media (max-width: 820px) {
  .panels, .jobs-layout { grid-template-columns: 1fr; }
  .topbar__inner { flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .is-site .topbar__cta { margin-left: auto; }
  .topbar__user { margin-left: auto; }
  .ws-name { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 56px 0; }
  .features, .flow, .cards { grid-template-columns: 1fr; }
  .mock__grid { grid-template-columns: 1fr 1fr; }
  .mock__card strong { font-size: 1.15rem; }
  .queue-stats { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 14px 1fr; }
  .metric-row > div:last-of-type { grid-column: 2; }
  .auth__card { padding: 24px 20px; }
  .hero__cta .btn, .hero__cta form { width: 100%; }
  .hero__cta form .btn { width: 100%; }
  .nav a { padding: 8px 10px; }
}
