:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d6168;
  --line: #e6e6e2;
  --accent: #0e5e66;
  --accent-ink: #ffffff;
  --accent-soft: #e7f1f1;
  --btn: #16181d;
  --btn-ink: #ffffff;
  --band: #16181d;
  --band-ink: #f4f4f2;
  --ok: #17703c;
  --warn: #9a5a00;
  --bad: #b42318;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 18, 24, 0.04);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111214;
  --bg-alt: #151619;
  --surface: #18191c;
  --text: #ececea;
  --muted: #9b9ea4;
  --line: #2a2c30;
  --accent: #6cc0c0;
  --accent-ink: #0d1414;
  --accent-soft: #17292a;
  --btn: #ececea;
  --btn-ink: #111214;
  --band: #1b1c20;
  --band-ink: #ececea;
  --ok: #4cc577;
  --warn: #e6a64d;
  --bad: #ff8a80;
  --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
header.site { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-group { display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand svg { color: var(--accent); }
.theme-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.theme-btn:hover { color: var(--text); border-color: var(--muted); }
.theme-btn .i-sun, [data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 0.93rem; }
nav a:hover { color: var(--text); }
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin: 0; font-size: 1.05rem; }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.01em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.btn {
  display: inline-block; background: var(--btn); color: var(--btn-ink); padding: 11px 20px;
  border-radius: 6px; font-weight: 500; text-decoration: none; border: 1px solid var(--btn); cursor: pointer; font: 500 0.97rem/1.4 var(--sans);
}
.btn:hover { opacity: 0.88; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); margin-left: 10px; }
.btn.ghost:hover { opacity: 1; border-color: var(--muted); }
.cta-row { margin-top: 32px; }
.grid { display: grid; gap: 20px; }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.3em; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.mono { font-family: var(--mono); }

/* Landing */
.hero { padding: 96px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.preview { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 18, 24, 0.04), 0 12px 32px rgba(16, 18, 24, 0.07); overflow: hidden; font-size: 0.86rem; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.preview-top strong { font-size: 0.95rem; }
.preview-row { display: grid; grid-template-columns: 1fr 120px 44px 64px; gap: 14px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.preview-row:last-of-type { border-bottom: 0; }
.preview-row .meter { height: 6px; border-radius: 3px; background: var(--bg-alt); border: 1px solid var(--line); overflow: hidden; }
.preview-row .meter i { display: block; height: 100%; background: var(--accent); }
.preview-row .meter.dim i { background: var(--muted); opacity: 0.55; }
.preview-row .num { font-family: var(--mono); text-align: right; }
.preview-label { padding: 10px 18px 8px; font: 400 0.78rem var(--mono); color: var(--muted); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.preview-detail { padding: 14px 18px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.preview-detail .crit { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.preview-detail .crit span:last-child { font-family: var(--mono); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--text); padding-top: 18px; }
.step .n { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); display: block; margin-bottom: 10px; }
.step p { margin: 0; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.point { padding: 22px 0; border-top: 1px solid var(--line); }
.point h3 { margin-bottom: 4px; }
.point p { margin: 0; }
.cta-band { background: var(--band); color: var(--band-ink); border-top: 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.75; }
.cta-band .btn { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.cta-band .btn.ghost { background: transparent; color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 35%, transparent); }

table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { font: 500 0.8rem var(--mono); color: var(--muted); background: var(--bg-alt); }
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:nth-child(2) { color: var(--muted); }
table.compare th:last-child { color: var(--accent); }
.compare-wrap { overflow-x: auto; }
.pill { display: inline-block; font-size: 0.76rem; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.pill.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.pill.plain { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.problem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.problem header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.problem h3 { margin-bottom: 0; }
.problem details.prob-more > summary { font-size: 0.92rem; color: var(--muted); }
.problem details.prob-more[open] > summary { margin-bottom: 10px; }
.problem details.prob-more > summary .if-open, .problem details.prob-more[open] > summary .if-closed { display: none; }
.problem details.prob-more[open] > summary .if-open { display: inline; }
.prob-hide { display: block; margin-top: 14px; }
.problem.picked { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.problem.unpicked { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); background: color-mix(in srgb, var(--bad) 4%, var(--surface)); }
.problem.unpicked > :not(header) { opacity: 0.55; }
.pick-form { margin: 0 0 6px; flex-basis: 100%; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 6px; border: 1px solid; font-size: 0.95rem; font-weight: 400; cursor: pointer; user-select: none; }
.pick strong { font-weight: 600; }
.pick.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.pick.bad { background: color-mix(in srgb, var(--bad) 13%, transparent); border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); }
.pick:hover { border-color: currentColor; }
.pick input { accent-color: var(--ok); margin: 0; width: 22px; height: 22px; flex: none; cursor: pointer; }
.pick input:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
.statement { white-space: pre-wrap; }
details { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
summary { cursor: pointer; font-weight: 500; }
ul.tight { margin: 8px 0 0; padding-left: 20px; }
ul.tight li { margin-bottom: 4px; }
.weights { width: 100%; border-collapse: collapse; margin-top: 8px; }
.weights td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.weights td.w { width: 56px; text-align: right; font-family: var(--mono); font-size: 0.9rem; }
form.stack { display: grid; gap: 16px; }
label { font-weight: 500; font-size: 0.92rem; display: grid; gap: 6px; }
input[type=text], input[type=url], input[type=email], input[type=password], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 12px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 0; border-color: var(--accent); }
.notice { border: 1px solid var(--line); background: var(--bg-alt); border-radius: 6px; padding: 12px 14px; font-size: 0.93rem; }
.notice.bad { background: color-mix(in srgb, var(--bad) 8%, transparent); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.notice.ok { background: color-mix(in srgb, var(--ok) 8%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.progress { display: flex; gap: 6px; margin: 18px 0; }
.progress div { flex: 1; text-align: center; padding: 10px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 0.85rem; color: var(--muted); }
.progress div.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.progress div.now { color: var(--text); border-color: var(--text); font-weight: 500; }
pre.log { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: 0.8rem/1.5 var(--mono); overflow-x: auto; max-height: 260px; white-space: pre-wrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sample-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.copy { font-family: var(--mono); font-size: 0.84rem; background: var(--bg-alt); border: 1px solid var(--line); padding: 6px 10px; border-radius: 6px; word-break: break-all; display: inline-block; }
details.cand { border: 1px solid var(--line); border-radius: 6px; padding: 0; margin: 8px 0; background: var(--surface); }
details.cand > summary { padding: 12px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; }
details.cand > summary::-webkit-details-marker { display: none; }
details.cand > summary::before { content: "▸"; color: var(--muted); }
details.cand[open] > summary::before { content: "▾"; }
details.cand > .cand-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.sub { border-top: 1px solid var(--line); padding: 12px 0; }
.sub:first-child { border-top: 0; }
.sub pre { white-space: pre-wrap; margin: 6px 0 0; font: inherit; }
/* Accounts */
nav { display: flex; align-items: center; }
nav form.inline { display: inline; margin-left: 22px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 0.93rem; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
.linkbtn.small { font-size: 0.88rem; }
.acct { position: relative; margin: 0 0 0 22px; padding: 0; border: 0; }
.acct > summary { display: block; list-style: none; cursor: pointer; border-radius: 50%; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); font: 500 0.74rem var(--mono); color: var(--text); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acct[open] .avatar, .acct > summary:hover .avatar { border-color: var(--muted); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 248px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 10; font-size: 0.92rem; }
.acct-who { display: grid; padding: 8px 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); line-height: 1.35; }
.acct-who strong { font-weight: 600; }
.acct-who span { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.acct-menu a, .acct-menu button { display: block; width: 100%; margin: 0; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg-alt); }
.acct-sep { border-top: 1px solid var(--line); margin: 6px 0; }
.btn.nav-cta { margin-left: 22px; padding: 7px 14px; font-size: 0.9rem; color: var(--btn-ink); }
.auth { max-width: 440px; }
.auth h1 { font-size: 2.1rem; text-align: center; }
.center { text-align: center; }
.seg { display: flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin: 0 0 14px; }
.seg a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.93rem; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16, 18, 24, 0.08); }
.seg-radio { margin: 0; }
.seg-radio label { flex: 1 1 auto; min-width: 0; display: block; text-align: center; padding: 7px 4px; border-radius: 6px; color: var(--muted); font-weight: 500; font-size: 0.88rem; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16, 18, 24, 0.08); }
.seg-radio label:has(input:focus-visible) { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.form-steps { display: grid; gap: 22px; }
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.form-step + .form-step { border-top: 1px solid var(--line); padding-top: 22px; }
.form-step legend { padding: 0; margin-bottom: 14px; }
.form-step legend span { color: var(--muted); }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 500; font-size: 0.92rem; }
.timer { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 16px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 0.92rem; }
.timer strong { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; }
.timer.low strong { color: var(--warn); }
.overview { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin: 12px 0 4px; }
.overview .eyebrow { display: block; margin-bottom: 4px; }
.overview p { margin: 0; }
.example-bar { justify-content: space-between; margin-bottom: 16px; }
details.hint { border: 0; padding: 0; margin: -6px 0 0; }
details.hint summary { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
details.hint ul { margin: 8px 0 0; color: var(--muted); }
.auth .card { display: grid; gap: 14px; margin-bottom: 16px; }
.auth .btn { width: 100%; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: #1f1f1f; font-weight: 500; text-decoration: none; font-size: 0.97rem; }
.google-btn:hover { border-color: #9aa0a6; }
.google-btn.off { opacity: 0.55; cursor: not-allowed; }
.google-btn + .google-btn { margin-top: -4px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.82rem; margin: 2px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-card .or { margin: 14px 0; }
.screen-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-bottom: 10px; padding: 16px 20px; }
.screen-row:hover { border-color: var(--muted); }
/* Shortlist: funnel, score distribution, ranked picker */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chart h3 { margin-bottom: 2px; }
.funnel { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3ch; gap: 12px; align-items: center; font-size: 0.9rem; }
.f-label { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel li.last .f-label { color: var(--text); font-weight: 500; }
.f-track { height: 18px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.f-track i { display: block; height: 100%; min-width: 2px; background: color-mix(in srgb, var(--accent) 55%, var(--surface)); border-radius: 0 4px 4px 0; }
.funnel li.last .f-track i { background: var(--accent); }
.f-num { font-family: var(--mono); text-align: right; }
.hist { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; height: 168px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.hcol { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; padding: 0 2px; }
.hcol i { display: block; width: 100%; max-width: 26px; height: min(26px, calc((168px - var(--rows) * 2px) / var(--rows))); border-radius: 2px; background: color-mix(in srgb, var(--muted) 28%, var(--surface)); }
.hcol i.on { background: var(--accent); }
.haxis { display: flex; justify-content: space-between; font: 0.74rem var(--mono); color: var(--muted); margin-top: 6px; }
.hbands { display: flex; margin-top: 8px; font: 0.74rem var(--mono); color: var(--muted); }
.hbands span { border-top: 2px solid var(--line); padding-top: 4px; text-align: center; }
.hbands span + span { border-left: 1px solid var(--surface); }
.sl-controls { display: flex; gap: 14px 24px; align-items: center; flex-wrap: wrap; }
.sl-controls .seg { flex: 1 1 420px; }
.btn.sm { padding: 5px 12px; font-size: 0.85rem; margin: 0; }
.btn.danger { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.settings .seg.tabs { margin-bottom: 20px; }
.settings .notice { margin-bottom: 16px; }
.settings .field { display: grid; gap: 2px; font-size: 0.95rem; }
.conn { display: grid; gap: 0; }
.conn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.conn-row:first-child { border-top: 0; padding-top: 0; }
.conn-row > div { display: grid; gap: 2px; }
details.confirm { border: 0; padding: 0; margin: 4px 0 0; }
details.confirm > summary { list-style: none; display: inline-block; }
details.confirm > summary::-webkit-details-marker { display: none; }
details.confirm[open] > summary { display: none; }
details.confirm .notice p { margin: 0 0 8px; }
.compose { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
/* Folded sections: a ruled header that opens to the content. */
details.fold:not(.compose) { margin-top: 32px; border-top: 1px solid var(--line); }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; padding: 16px 0 0; }
details.fold.compose > summary { padding: 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { font-size: 1.4rem; margin: 0; }
details.fold > summary h3 { margin: 0; }
.fold-sub { margin-left: auto; color: var(--muted); font-size: 0.9rem; text-align: right; }
details.fold > summary::after { content: ""; flex: none; align-self: center; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
details.fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.fold[open]:not(.compose) > summary { margin-bottom: 18px; }
.compose .seg { margin: 0; }
.sl-n { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.sl-n input { width: 76px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.table-wrap { overflow-x: auto; }
table.ranked { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.ranked th { text-align: left; font: 500 0.78rem var(--mono); color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.ranked td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.ranked tr:last-child td { border-bottom: 0; }
table.ranked tr.on td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
table.ranked td:first-child, table.ranked th:first-child { width: 34px; padding-right: 0; }
table.ranked input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
table.ranked input[type=checkbox]:disabled { cursor: not-allowed; }
table.ranked td .pill { margin-left: 6px; }
table.ranked td.c-view { width: 1%; text-align: right; }
.sl-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 14px 0 6px; }
.sl-find { gap: 10px; flex-wrap: nowrap; }
.sl-find input[type=search] { width: 200px; font: inherit; font-size: 0.9rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
.sl-find .seg, .il-filter { margin: 0; }
.il-filter { margin: 14px 0 4px; }
.sub[hidden], tr[hidden] { display: none; }
/* Shortlist tabs: overview, screen, each round, offer. */
.tabs-bar { margin-top: 28px; }
.seg.tabs { overflow-x: auto; scrollbar-width: none; margin: 0; }
.seg.tabs a { flex: 1 0 auto; white-space: nowrap; }
.tab-n { font: 0.78rem var(--mono); color: var(--muted); margin-left: 4px; }
details.rounds-edit { border-top: 0; padding-top: 0; margin-top: 0; }
.rounds-edit > summary { list-style: none; display: inline-block; margin-top: 10px; }
.rf-filter label { padding: 7px 12px; white-space: nowrap; }
.rounds-edit > summary::-webkit-details-marker { display: none; }
.rounds-edit[open] > summary { color: var(--text); }
.rounds-edit form { margin-top: 10px; max-width: 560px; }
.round-row { display: grid; grid-template-columns: 2ch minmax(0, 1fr) 7.5rem; gap: 12px; align-items: center; margin-top: 10px; }
.round-row input[type=text] { padding: 7px 10px; }
.r-notes { display: grid; gap: 6px; max-width: 760px; padding-top: 12px; }
.r-notes textarea { min-height: 72px; }
.r-notes .earlier { white-space: pre-wrap; }
.notes-pill { margin-left: 6px; }
.act-bar .linkbtn { margin-left: auto; }
.act-bar .linkbtn:disabled { opacity: 0.45; cursor: default; }
@media (min-width: 601px) { table.by-step td:first-child { white-space: nowrap; } }
table.by-step td, table.by-step th { padding: 10px 8px; }
table.by-step td:first-child, table.by-step th:first-child { width: auto; padding: 10px 8px 10px 0; }
table.by-step .n { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.by-step th.n { font-family: var(--mono); }
.r-add { color: var(--accent); justify-self: start; grid-column: 2; }
.round-row > .r-remove, .round-row > span.small { justify-self: end; }
table.ranked tr.sl-detail td { background: var(--bg-alt); padding: 4px 16px 16px; }
tr.sl-detail .cand-body { max-width: 760px; }
tr.sl-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.c-score { white-space: nowrap; }
.c-score .pill { margin-left: 8px; }
.meter { display: inline-block; vertical-align: middle; width: 96px; height: 6px; margin-right: 8px; border-radius: 3px; background: var(--bg-alt); border: 1px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn:disabled { opacity: 0.45; cursor: default; }
footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.88rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site .brand { font-size: 1rem; }
footer.site .foot-links a { color: var(--muted); text-decoration: none; margin-left: 20px; }
footer.site .foot-links a:hover { color: var(--text); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) { nav a.info { display: none; } nav > a, nav form.inline, .acct, .btn.nav-cta { margin-left: 12px; } }
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 52px; }
  .progress { flex-wrap: wrap; }
  .steps, .points { grid-template-columns: 1fr; }
  .preview-row { grid-template-columns: 1fr 40px 64px; }
  .preview-row .meter { display: none; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
  footer.site .foot-links a { margin: 0 20px 0 0; }
  .funnel li { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 3ch; gap: 8px; line-height: 1.3; }
  .f-label { white-space: normal; }
  .sl-controls .seg { flex-wrap: wrap; }
  .sl-find { flex-wrap: wrap; width: 100%; }
  .sl-find input[type=search] { flex: 1 1 100%; width: auto; }
  .il-filter { flex-wrap: wrap; }
  .rf-filter { flex-wrap: wrap; width: 100%; }
  .rf-filter label { padding: 7px 8px; }
  .c-mail { display: none; }
  .c-view .row { flex-direction: column; align-items: stretch; }
  .c-rank, .c-ans, .meter { display: none; }
}

.ws { margin: 14px 0 6px; }
/* Code workspace: a small IDE that breaks out of the narrow reading column. */
.ws-app { width: min(1180px, calc(100vw - 32px)); margin-left: calc(50% - min(590px, 50vw - 16px)); margin-top: 10px; }
.ws.full .ws-app { position: fixed; inset: 0; z-index: 50; width: auto; margin: 0; padding: 10px; background: var(--bg); display: flex; flex-direction: column; }
.ws.full .ide { flex: 1; min-height: 0; }
.ws.full .ide-main { height: auto; flex: 1; min-height: 0; }
body.ide-locked { overflow: hidden; }
.ide { --ide-hover: rgba(127, 127, 127, 0.12); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; }
.ide button { font: inherit; }
.ide-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.ide-btn { font-size: 12.5px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; padding: 4px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ide-btn:hover:not(:disabled) { border-color: var(--accent); }
.ide-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.ide-btn:disabled { opacity: 0.45; cursor: default; }
.ide-btn.icon { padding: 3px 5px; border-color: transparent; background: none; color: var(--muted); }
.ide-btn.icon:hover { color: var(--text); background: var(--ide-hover); }
.ide-spacer { flex: 1; }
.ide-langs { color: var(--muted); font-size: 12px; }
.ide-main { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 600px; }
.ide-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg); min-height: 0; }
.ide-side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ide-side-head > span:last-child { display: inline-flex; }
.ide-tree { flex: 1; overflow: auto; padding-bottom: 8px; }
.ide-row { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px calc(10px + var(--d) * 14px); cursor: pointer; white-space: nowrap; user-select: none; }
.ide-row:hover { background: var(--ide-hover); }
.ide-row.on { background: var(--accent-soft); }
.ide-row .name { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ide-row .chev { display: inline-flex; color: var(--muted); transition: transform 0.1s; }
.ide-row .chev.open { transform: rotate(90deg); }
.ide-row .tag { font-size: 10.5px; color: var(--muted); }
.ide-row .mark { font-size: 11px; font-weight: 700; width: 12px; text-align: center; }
.ide-row .mark.M { color: var(--warn); }
.ide-row .mark.U { color: var(--ok); }
.ide-row .acts { display: none; gap: 2px; }
.ide-row:hover .acts, .ide-row:focus-within .acts { display: inline-flex; }
.ide-row .acts button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 3px; font-size: 13px; }
.ide-row .acts button:hover { color: var(--text); }
.ico { font: 700 8.5px/1 ui-monospace, Menlo, Consolas, monospace; min-width: 22px; text-align: center; letter-spacing: 0.02em; }
.ico.py { color: #3d7fc1; } .ico.sql { color: #d9822b; } .ico.js { color: #b89600; } .ico.ts { color: #3178c6; }
.ico.json { color: #9b6bcc; } .ico.md, .ico.txt, .ico.csv, .ico.yml { color: var(--muted); }
.ide-new { padding: 3px 8px 3px calc(10px + var(--d) * 14px); display: flex; flex-wrap: wrap; gap: 4px; }
.ide-new input[type=text], .ide-new select { font: 12px ui-monospace, Menlo, Consolas, monospace; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--accent); width: 100%; }
.ide-new select { border-color: var(--line); }
.ide-new .err { width: 100%; color: var(--bad); font-size: 11.5px; white-space: normal; }
.ide-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ide-tabs { display: flex; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); min-height: 34px; flex: none; scrollbar-width: thin; }
.ide-tab { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 10px; border-right: 1px solid var(--line); cursor: pointer; color: var(--muted); white-space: nowrap; }
.ide-tab.on { background: var(--surface); color: var(--text); box-shadow: inset 0 2px 0 var(--accent); }
.ide-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.ide-tab .x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 4px; font-size: 15px; line-height: 1; border-radius: 4px; opacity: 0.6; }
.ide-tab .x:hover { opacity: 1; background: var(--ide-hover); }
.ide-editor { flex: 1; min-height: 80px; position: relative; }
.ide-editor .CodeMirror { position: absolute; inset: 0; height: auto; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--surface); color: var(--text); }
.ide .CodeMirror-gutters { background: var(--surface); border-right: 1px solid var(--line); }
.ide .CodeMirror-linenumber { color: var(--muted); opacity: 0.7; }
.ide .CodeMirror-cursor { border-left-color: var(--text); }
.ide .CodeMirror-activeline-background { background: var(--ide-hover); }
.ide .CodeMirror-selected, .ide .CodeMirror-focused .CodeMirror-selected { background: var(--accent-soft); }
.ide .CodeMirror-matchingbracket { color: var(--ok) !important; text-decoration: underline; }
.ide .cm-keyword { color: #a626a4; } .ide .cm-def { color: #4078f2; } .ide .cm-string, .ide .cm-string-2 { color: #50a14f; }
.ide .cm-number, .ide .cm-atom { color: #b07800; } .ide .cm-comment { color: #80858e; font-style: italic; }
.ide .cm-builtin, .ide .cm-variable-2 { color: #0184bc; } .ide .cm-property { color: #c45a1a; } .ide .cm-type, .ide .cm-variable-3 { color: #b07800; }
.ide .cm-header { color: #4078f2; } .ide .cm-meta { color: #80858e; } .ide .cm-operator { color: inherit; }
[data-theme="dark"] .ide .cm-keyword { color: #c678dd; } [data-theme="dark"] .ide .cm-def { color: #61afef; }
[data-theme="dark"] .ide .cm-string, [data-theme="dark"] .ide .cm-string-2 { color: #98c379; }
[data-theme="dark"] .ide .cm-number, [data-theme="dark"] .ide .cm-atom { color: #d19a66; } [data-theme="dark"] .ide .cm-comment { color: #7f848e; }
[data-theme="dark"] .ide .cm-builtin, [data-theme="dark"] .ide .cm-variable-2 { color: #56b6c2; } [data-theme="dark"] .ide .cm-property { color: #e5a46e; }
[data-theme="dark"] .ide .cm-type, [data-theme="dark"] .ide .cm-variable-3 { color: #e5c07b; } [data-theme="dark"] .ide .cm-header { color: #61afef; }
[data-theme="dark"] .ico.js { color: #e3c13b; } [data-theme="dark"] .ico.ts { color: #5a9bea; }
.ide-fallback { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; resize: none; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 8px 12px; min-height: 0; }
.ide-sash { height: 4px; cursor: row-resize; border-top: 1px solid var(--line); flex: none; touch-action: none; }
.ide-sash:hover { background: var(--accent); }
.ide-panel { height: 210px; display: flex; flex-direction: column; flex: none; min-height: 70px; }
.ide-ptabs { display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--line); flex: none; }
.ide-ptabs button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 6px 5px; border-bottom: 2px solid transparent; }
.ide-ptabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.ide-ptabs .ws-clear { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ide-pbody { flex: 1; overflow: auto; min-height: 0; position: relative; }
.ide-term { font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 8px 12px; }
.ide-term .ln { white-space: pre-wrap; word-break: break-word; min-height: 1.5em; }
.ide-term .err { color: var(--bad); }
.ide-term .info { color: var(--muted); }
.ide-term .done { color: var(--ok); }
.ide-term .sep { border-top: 1px dashed var(--line); margin: 8px 0; min-height: 0; }
.ide-term table { border-collapse: collapse; margin: 4px 0; font-size: 12px; }
.ide-term th, .ide-term td { border: 1px solid var(--line); padding: 2px 10px; text-align: left; white-space: pre; }
.ide-term th { background: var(--bg); font-weight: 600; }
.ide-term td.null { color: var(--muted); font-style: italic; }
.ide-raw summary { cursor: pointer; color: var(--muted); margin-top: 8px; }
.ide-input { position: absolute; inset: 0; }
.ide-stdin { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; resize: none; font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 8px 12px; }
.ide-status { display: flex; align-items: center; gap: 16px; padding: 2px 10px; font-size: 12px; background: var(--accent); color: var(--accent-ink); flex-wrap: wrap; }
.ide-status select { font: inherit; background: transparent; color: inherit; border: 0; border-radius: 4px; padding: 2px 4px; width: auto; cursor: pointer; }
.ide-status select:disabled { cursor: default; opacity: 1; }
.ide-status select option, .ide-status select optgroup { background: var(--surface); color: var(--text); }
.ide-lang-wrap { display: inline; font-weight: inherit; }
@media (max-width: 760px) {
  .ide-main { grid-template-columns: 1fr; grid-template-rows: 150px minmax(0, 1fr); height: 760px; }
  .ide-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .ide-langs { display: none; }
}
