:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #1b2430;
  --muted: #5d6675;
  --line: #e2dfd7;
  --accent: #1f4e5f;
  --accent-hover: #17394a;
  --on-accent: #ffffff;
  --focus: #2a7fb8;
  --danger: #a3302a;

  --pre-bg: #fff3d9; --pre-fg: #7a4800; --pre-dot: #d98a00;
  --rev-bg: #e5effa; --rev-fg: #17487a; --rev-dot: #2f78c4;
  --peer-bg: #e2f3e7; --peer-fg: #145a37; --peer-dot: #1f8a56;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 4px 14px rgba(20, 30, 40, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d; --surface: #1b2128; --surface-2: #222a33; --ink: #e8ebef; --muted: #98a2b0; --line: #2f3944;
    --accent: #6cb4cc; --accent-hover: #8cc7db; --on-accent: #0e1a20; --focus: #7ab8e8; --danger: #ef8a83;
    --pre-bg: #3a2c0e; --pre-fg: #f1c777; --pre-dot: #e39d1f;
    --rev-bg: #15283d; --rev-fg: #9cc7f0; --rev-dot: #5aa0e3;
    --peer-bg: #12301f; --peer-fg: #8fd6af; --peer-dot: #48b27c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); font-size: .9em; }
[hidden] { display: none !important; }

/* header / footer */
.proto-banner { background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; font-size: .8125rem; padding: 6px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; } .brand-mark rect { fill: var(--accent); }
/* phones: brand and sign-in share the first row, the menu gets the second (the name is long) */
@media (max-width: 640px) {
  .header-inner { gap: 4px 12px; }
  .brand { font-size: 1.1rem; }
  .nav-auth { order: 2; margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; flex-wrap: wrap; gap: 0; margin: 0 -9px; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
}
@media (max-width: 440px) { .brand .pill { display: none; } }
.brand-mark .glyph { stroke: #fff; }
@media (prefers-color-scheme: dark) { .brand-mark .glyph { stroke: #0e1a20; } }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--surface-2); }
.nav-auth { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 16px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none; min-height: 40px; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--surface-2); color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: .85rem; font-weight: 400; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; min-height: 40px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field { margin-bottom: 20px; }
.err { color: var(--danger); font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 5px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }

/* layout bits */
.page { padding: 40px 0 0; }
.hero { padding: 64px 0 36px; max-width: 800px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0 8px; }
.stat { background: var(--surface); padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.badge svg { width: 14px; height: 14px; flex: none; }
.badge-preprint { background: var(--pre-bg); color: var(--pre-fg); }
.badge-review { background: var(--rev-bg); color: var(--rev-fg); }
.badge-peer { background: var(--peer-bg); color: var(--peer-fg); }
.tag { display: inline-block; font-size: .78rem; color: var(--muted); background: var(--surface-2); padding: 2px 9px; border-radius: 999px; }
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--peer-fg); }
.verified svg { width: 14px; height: 14px; }

/* report list */
.rlist { display: grid; gap: 14px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.rcard:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rcard h3 { margin: 0; font-size: 1.2rem; }
.rcard h3 a { color: var(--ink); text-decoration: none; }
.rcard h3 a:hover { color: var(--accent); text-decoration: underline; }
.rcard .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.rcard .abs { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* archive */
.archive { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .archive { grid-template-columns: 1fr; gap: 20px; } }
.filters { position: sticky; top: 80px; display: grid; gap: 18px; }
@media (max-width: 860px) { .filters { position: static; } }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-weight: 700; font-size: .85rem; margin-bottom: 6px; padding: 0; }
.filters .check { margin-bottom: 6px; font-size: .9rem; }
.count-chip { margin-left: auto; color: var(--muted); font-size: .8rem; }

/* report page */
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .report-layout { grid-template-columns: 1fr; gap: 28px; } }
.report h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: .4em; }
.report .byline { color: var(--muted); margin-bottom: 4px; }
.report .byline strong { color: var(--ink); font-weight: 600; }
.report section { margin-top: 32px; }
.report section h2 { font-size: 1.25rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.report .prose { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; }
.report .prose p { margin-bottom: .9em; }
.notice { border: 1px solid; border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-size: .95rem; display: flex; gap: 12px; }
.notice.pre { background: var(--pre-bg); color: var(--pre-fg); border-color: color-mix(in srgb, var(--pre-dot) 40%, transparent); }
.notice.rev { background: var(--rev-bg); color: var(--rev-fg); border-color: color-mix(in srgb, var(--rev-dot) 40%, transparent); }
.notice.peer { background: var(--peer-bg); color: var(--peer-fg); border-color: color-mix(in srgb, var(--peer-dot) 40%, transparent); }
.notice p { margin: 0; }
.aside { position: sticky; top: 80px; display: grid; gap: 16px; }
@media (max-width: 960px) { .aside { position: static; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .9rem; }
.panel h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.panel dt { color: var(--muted); } .panel dd { margin: 0; text-align: right; word-break: break-word; }
.panel .stack { display: grid; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 720px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.compare .card { box-shadow: none; }
.compare h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cite { font-family: var(--mono); font-size: .8rem; background: var(--surface-2); padding: 10px 12px; border-radius: 6px; line-height: 1.5; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* wizard */
.wizard { max-width: 800px; margin-inline: auto; }
.stepper { display: flex; gap: 6px; margin: 20px 0 28px; flex-wrap: wrap; }
.stepper button { flex: 1 1 110px; text-align: left; font: inherit; font-size: .8rem; cursor: pointer; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.stepper button b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.stepper button.active { border-color: var(--accent); color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.stepper button.done { color: var(--ink); }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.rowcard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; margin-bottom: 12px; }
.rowcard .rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; font-size: .9rem; }
.rowcard label { font-size: .8rem; }
.grid.series { grid-template-columns: 3fr 1fr; }
.grid.series2 { grid-template-columns: 2fr 1.4fr 1fr 1fr; }
@media (max-width: 720px) { .grid.series, .grid.series2 { grid-template-columns: 1fr 1fr; } }
.summary dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
.summary dt { color: var(--muted); font-size: .9rem; } .summary dd { margin: 0; }
@media (max-width: 640px) { .summary dl { grid-template-columns: 1fr; gap: 0; } .summary dd { margin-bottom: 10px; } }

/* login */
.login { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 760px) { .login { grid-template-columns: 1fr; } }
.demo-box { border: 1px dashed var(--pre-dot); background: var(--pre-bg); color: var(--pre-fg); border-radius: var(--radius); padding: 10px 12px; font-size: .88rem; margin-bottom: 14px; }
.orcid-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #a6ce39; color: #fff; font-size: 10px; font-weight: 800; flex: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: .92rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 50; max-width: calc(100% - 32px); }

@media print {
  .site-header, .site-footer, .aside .actions, .proto-banner, .toast, .no-print { display: none !important; }
  body { background: #fff; color: #000; } .report-layout { display: block; } .aside { position: static; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =====================================================================
   v2 additions
   ===================================================================== */
:root {
  --reg-bg: #eceae4; --reg-fg: #4d5563;
  --ipa-bg: #efe9fb; --ipa-fg: #4b2f8a;
  --pre-line: color-mix(in srgb, var(--pre-dot) 40%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root { --reg-bg: #262e38; --reg-fg: #b4bdca; --ipa-bg: #2a2145; --ipa-fg: #cdbcf5; }
}
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.nowrap { white-space: nowrap; }

/* header pill, footer */
.pill { font-family: var(--sans); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); align-self: center; }
.site-footer { margin-top: 72px; padding: 36px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 10px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-about p { margin: 6px 0 0; max-width: 260px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* chips & protocol badges */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; line-height: 1.5; }
.chip svg { width: 13px; height: 13px; flex: none; }
.chip-prereg { background: var(--ipa-bg); color: var(--ipa-fg); }
.chip-ok { background: var(--peer-bg); color: var(--peer-fg); }
.chip-warn { background: var(--pre-bg); color: var(--pre-fg); }
.badge-reg { background: var(--reg-bg); color: var(--reg-fg); }
.badge-ipa { background: var(--ipa-bg); color: var(--ipa-fg); }
.badge-done { background: var(--peer-bg); color: var(--peer-fg); }
.notice.neutral { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.notice svg { flex: none; margin-top: 2px; }

/* home */
.hero { max-width: 860px; }
.deadend { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); max-width: 740px; margin-top: 26px; }
.deadend > label { font-size: 1rem; }
.de-row { display: flex; gap: 10px; margin-top: 8px; }
.de-row input { flex: 1; min-width: 0; }
.chip-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
/* foreword: a short editorial note under the hero, set like the front matter of a book */
.foreword { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 28px; max-width: 860px; margin-top: 12px; padding: 28px 0 8px; border-top: 1px solid var(--line); }
.foreword .fw-title { font-family: var(--sans); margin: 6px 0 0; line-height: 1.4; }
.foreword p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; margin: 0 0 .85em; max-width: 62ch; }
.foreword p.refs { font-family: var(--sans); font-size: .8125rem; line-height: 1.55; color: var(--muted); margin: 18px 0 0; }
.foreword p.refs a { white-space: nowrap; }
@media (max-width: 640px) { .foreword { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-top: 22px; } .foreword .fw-title { margin: 0 0 6px; } }
.chip-links a { font-size: .82rem; text-decoration: none; background: var(--surface-2); color: var(--ink); padding: 3px 11px; border-radius: 999px; }
.chip-links a:hover { background: var(--accent); color: var(--on-accent); }
.de-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.step .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.step h3 { margin-bottom: .3em; } .step p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.band h2 { margin-bottom: .2em; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* mini result bar on cards */
.minibar { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink); }
.mb-track { position: relative; width: 120px; height: 8px; background: var(--surface-2); border-radius: 4px; flex: none; }
.mb-track i { display: block; height: 100%; min-width: 2px; background: var(--accent); border-radius: 4px; }
.mb-track b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); opacity: .65; }

/* report: tiles + strip plot */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.tile span { display: block; font-size: .85rem; }
.tile small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.row-control td { background: color-mix(in srgb, var(--peer-bg) 55%, transparent); }
.strip { margin: 0 0 22px; padding: 16px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.strip-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.strip-row { display: grid; grid-template-columns: minmax(150px, 250px) 1fr; gap: 6px 16px; align-items: center; padding: 2px 0; }
.strip-row svg { width: 100%; height: auto; display: block; }
.strip-label { font-size: .82rem; line-height: 1.3; }
.sl-name { display: block; font-weight: 600; }
.sl-meta { display: block; color: var(--muted); font-size: .75rem; }
.strip-axis { position: relative; height: 1.3em; font-size: .72rem; color: var(--muted); }
.strip-axis span { position: absolute; transform: translateX(-50%); }
.strip .track { fill: var(--surface-2); }
.strip .grid { stroke: var(--line); stroke-width: 1; }
.strip .thr { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: .75; }
.strip .dt { fill: var(--accent); fill-opacity: .6; }
.strip .dc { fill: var(--peer-dot); fill-opacity: .8; }
.strip .bar { fill: var(--accent); fill-opacity: .8; }
.strip .bar.bc { fill: var(--peer-dot); }
.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin: 10px 0 6px; align-items: center; }
.legend svg { vertical-align: -1px; margin-right: 4px; }
.strip figcaption { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .strip-row { grid-template-columns: 1fr; gap: 2px; padding: 5px 0; } .strip-row.axis-row > div:first-child { display: none; } }

/* notes, related, lifecycle, fingerprint */
.tally { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.notes { margin-bottom: 20px; }
.note { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; margin: 0 0 18px; }
.note p { margin: 6px 0 0; }
.note-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.related { padding-left: 1.1em; margin: 0; } .related li { margin: 4px 0; }
.lifecycle { display: flex; list-style: none; padding: 0; margin: 20px 0 8px; }
.lifecycle li { flex: 1; position: relative; padding-top: 22px; font-size: .84rem; padding-right: 10px; }
.lifecycle li::before { content: ''; position: absolute; top: 6px; left: 14px; right: 0; height: 2px; background: var(--line); }
.lifecycle li:last-child::before { display: none; }
.lifecycle .lc-dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.lifecycle li.done .lc-dot { background: var(--peer-dot); border-color: var(--peer-dot); }
.lifecycle li small { display: block; color: var(--muted); }
@media (max-width: 640px) { .lifecycle { flex-direction: column; gap: 10px; } .lifecycle li { padding: 0 0 0 24px; } .lifecycle li::before { display: none; } .lifecycle .lc-dot { top: 3px; } }
.fp { font-size: .72rem; word-break: break-all; margin-bottom: 8px; }
.amend { padding-left: 1.1em; } .amend li { margin: 6px 0; }

/* wizard: import + series */
.import { border: 1px dashed var(--accent); border-radius: 10px; padding: 16px 18px; margin-bottom: 22px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.import h3 { margin-bottom: .2em; }
.import-ok { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.small.warn, p.warn { color: var(--pre-fg); }
.grid.series3 { grid-template-columns: 1fr 3fr; }
@media (max-width: 720px) { .grid.series3 { grid-template-columns: 1fr; } }

/* wanted */
.newreq summary { cursor: pointer; }
.wcard { display: grid; grid-template-columns: 72px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.wcard h3 { margin: 6px 0; font-size: 1.15rem; }
.metoo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 72px; height: 72px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font: inherit; }
.metoo b { font-family: var(--serif); font-size: 1.5rem; line-height: 1; } .metoo span { font-size: .7rem; color: var(--muted); }
.metoo:hover { border-color: var(--accent); }
.metoo.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); } .metoo.on span { color: inherit; }
.have { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
@media (max-width: 520px) { .wcard { grid-template-columns: 1fr; } .metoo { width: 100%; flex-direction: row; gap: 8px; height: 44px; } }

/* board, faq */
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.seat { border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; background: var(--surface); }
.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* desk */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 22px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); } .tabs a.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.daybar { margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; }
.kpi b { font-family: var(--serif); font-size: 2rem; line-height: 1; } .kpi b small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.kpi.ok { border-color: var(--peer-dot); }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.kpi.ok .progress i { background: var(--peer-dot); }
.fun { display: grid; grid-template-columns: 150px 1fr 28px; gap: 12px; align-items: center; margin: 8px 0; font-size: .9rem; }
dl.plain { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; } dl.plain dd { margin: 0; font-weight: 600; text-align: right; }
.tbl td { vertical-align: top; } .tbl select, .tbl textarea { min-width: 130px; font-size: .85rem; }

/* layout hardening: wide children (tables, plots) must scroll inside their box, never widen the page */
.report-layout { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 960px) { .report-layout { grid-template-columns: minmax(0, 1fr); } }
.report-layout > *, .archive > *, .split > *, .wcard > * { min-width: 0; }
.table-wrap { max-width: 100%; }
.header-inner { gap: 14px 18px; }
.nav { gap: 0; } .nav a { padding: 6px 10px; }

/* honeypot field for bots (kept out of sight, not display:none so naive bots still fill it) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* peer review: editor panel, reviews, reviewer form, versions */
.review-box { margin: 18px 0 8px; }
.review-box h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 20px 0 8px; }
.review-box .section-head { margin-bottom: 8px; }
.review-box details { border-top: 1px solid var(--line); padding: 10px 0; }
.review-box summary { cursor: pointer; }
.rvcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; background: var(--surface); }
.rv-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ratings { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.ratings li { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .88rem; border-bottom: 1px dotted var(--line); padding-bottom: 3px; }
.confidential { background: var(--pre-bg); color: var(--pre-fg); border-radius: 6px; padding: 8px 10px; }
.crit { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.rate { display: flex; gap: 14px; }
@media (max-width: 640px) { .crit { grid-template-columns: 1fr; } }
.versions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.versions li.cur a { font-weight: 700; }

/* scrollbars and form controls follow the light/dark theme */
:root { color-scheme: light dark; }
.tbl.compact { min-width: 0; }


/* ===== products: overview, Data, Enterprise ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 8px; }
@media (max-width: 960px) { .products { grid-template-columns: minmax(0, 1fr); } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pcard h2 { font-size: 1.3rem; margin: 10px 0 8px; }
.pcard .pname { color: var(--accent); }
.pcard .btnrow { margin-top: auto; padding-top: 14px; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--accent); margin-bottom: 8px; }
.pstatus { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pstatus.ok { background: var(--peer-bg); color: var(--peer-fg); }
.pstatus.pilot { background: var(--pre-bg); color: var(--pre-fg); }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; }
.ticks li { position: relative; padding: 3px 0 3px 22px; font-size: .94rem; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 9px; height: 5px; border-left: 2px solid var(--peer-dot); border-bottom: 2px solid var(--peer-dot); transform: rotate(-45deg); }
.ticks.warn li::before { border-color: var(--pre-dot); }
.cards3.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards3.two { grid-template-columns: minmax(0, 1fr); } }
.flow { display: flex; align-items: stretch; gap: 0; margin: 14px 0 16px; flex-wrap: wrap; }
.flow-step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; min-width: 150px; }
.flow-step span { font-size: .82rem; color: var(--muted); }
.flow-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 12px; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.flow-arrow span { font-size: .72rem; color: var(--muted); max-width: 120px; text-align: center; margin-bottom: 4px; }
@media (max-width: 760px) { .flow { flex-direction: column; } .flow-arrow { flex-direction: row; gap: 8px; padding: 6px 0; } .flow-arrow span { max-width: none; margin: 0; } }
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .94rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: var(--serif); font-size: 1.05rem; border-bottom: 2px solid var(--line); }
.compare-table tbody th { width: 15%; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; max-width: 760px; color: var(--muted); }
.code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font: .84rem/1.55 var(--mono); overflow: auto; max-height: 360px; margin: 10px 0; white-space: pre; }
.cols summary { cursor: pointer; font-weight: 600; margin-top: 10px; }
.explorer .grid { margin-bottom: 4px; }
.explorer input[type="search"], .explorer input[type="number"] { width: 100%; }
.inline-form { display: flex; gap: 6px; margin-top: 6px; }
.inline-form input { flex: 1; min-width: 0; }
.plainlist { list-style: none; padding: 0; margin: 8px 0; }
.plainlist li { padding: 3px 0; }

/* ===== Enterprise workspace ===== */
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.ws-head h1 { margin-bottom: 0; }
.ws-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conf-banner { display: flex; align-items: flex-start; gap: 10px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 10px; padding: 11px 14px; margin: 10px 0 16px; font-size: .92rem; }
.conf-banner svg { flex: none; margin-top: 2px; color: var(--accent); }
.chip-conf { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); color: var(--accent); }
.chip-conf svg { width: 13px; height: 13px; }
.ws-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 6px; }
@media (max-width: 760px) { .ws-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rcard.archived { opacity: .7; }
.prose.entry h3 { margin: 18px 0 4px; font-size: 1.05rem; }
.release { margin-top: 26px; border-style: dashed; }
.xtable td, .xtable th { white-space: nowrap; }
.xtable td { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.todo { background: color-mix(in srgb, var(--pre-dot) 22%, transparent); padding: 0 4px; border-radius: 3px; }
.legal h2 { font-size: 1.2rem; }
.depiction { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 10px 0; overflow-x: auto; max-width: 100%; }
.depiction svg { max-width: 100%; height: auto; }
.smiles { word-break: break-all; }
.smiles-preview { margin: -8px 0 14px; }
