:root {
  color-scheme: light;
  --navy:#142333; --ink:#213442; --muted:#556574; --paper:#f4f4ef;
  --surface:#fff; --header-cell:#f0f2ef; --stroke:#dce1df; --accent:#a64324;
  --focus:#197288; --hover:#588580; --halo:#40746d35; --error:#963820;
  --pill-bg:#eff2ef; --pill-text:#374e48;
  --conflict-bg:#fbe9e1; --conflict-text:#943a20;
  --new-bg:#dcefe8; --new-text:#1e6452;
  --review-bg:#f5efdb; --review-text:#6b531a;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color:var(--ink); background:var(--paper); line-height:1.65;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink:#edf3f6; --muted:#b3c4cf; --paper:#0f1922;
  --surface:#192834; --header-cell:#233644; --stroke:#405462; --accent:#ffad94;
  --focus:#80e2d2; --hover:#79baa9; --halo:#80e2d245; --error:#ffad94;
  --pill-bg:#294238; --pill-text:#d4ebe0;
  --conflict-bg:#482a29; --conflict-text:#ffb8a7;
  --new-bg:#224439; --new-text:#aff1d8;
  --review-bg:#473b26; --review-text:#f5dc9d;
}
* { box-sizing:border-box }
body { margin:0 }
a { color:inherit }
button,input,select { font:inherit }
button,.button,select { cursor:pointer }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid var(--focus); outline-offset:3px }
.skip { position:fixed; z-index:3; inset-block-start:-100px; inset-inline-start:12px; background:var(--surface); padding:10px }
.skip:focus { inset-block-start:12px }
.loading { min-height:55vh; display:grid; place-items:center }
.shell { max-width:1440px; margin:auto; padding-inline:clamp(16px, 5vw, 76px) }
.top { background:var(--surface); border-bottom:1px solid var(--stroke) }
.top .shell { display:flex; align-items:center; gap:17px; min-height:74px; flex-wrap:wrap; padding-block:10px }
.brand { font-weight:750; text-decoration:none; letter-spacing:-.03em; font-size:1.18rem }
.mark { width:34px; height:34px; background:var(--navy); color:white; display:grid; place-items:center; border-radius:8px; font-weight:800 }
.spacer { flex:1 }
.nav { background:var(--surface); border-bottom:1px solid var(--stroke) }
.nav .shell { display:flex; gap:8px 27px; flex-wrap:wrap }
.nav a { padding:11px 0 9px; text-decoration:none; font-weight:650; border-bottom:3px solid transparent }
.nav a[aria-current=page] { border-color:var(--accent); color:var(--accent) }
.page { padding-block:32px 52px; min-height:72vh }
.hero { position:relative; overflow:hidden; padding:clamp(30px, 6vw, 72px); border-radius:23px; color:#f4f6f5; background:var(--navy); isolation:isolate }
.hero:before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(120deg,transparent 25%,#1c4550 125%),repeating-linear-gradient(0deg,transparent 0 30px,#fbf8ec18 30px 31px),repeating-linear-gradient(90deg,transparent 0 30px,#fbf8ec18 30px 31px); opacity:.8; mask-image:linear-gradient(90deg,#000,transparent 90%) }
html[dir=ltr] .hero:before { mask-image:linear-gradient(270deg,#000,transparent 90%) }
.hero>div { max-width:750px }
.hero p { max-width:600px; color:#e0e8e8; margin-block:11px 22px }
.eyebrow { text-transform:uppercase; font-size:.82rem; font-weight:700; letter-spacing:.08em; color:#a4d8ca }
h1,h2,h3,p { margin-block-start:0 }
h1 { font-size:clamp(2rem, 5vw, 4.15rem); line-height:1.1; letter-spacing:-.045em; margin-block-end:13px }
h2 { font-size:1.55rem; margin-block-end:10px; line-height:1.3 }
h3 { font-size:1.12rem; margin-block-end:6px }
.sub { color:var(--muted); max-width:800px }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%, 235px),1fr)); gap:15px }
.stats { margin-block:18px 30px }
.card,.panel { border:1px solid var(--stroke); background:var(--surface); border-radius:15px; padding:20px }
.stat b { display:block; font-variant-numeric:tabular-nums; font-size:1.9rem; line-height:1.1; margin-block:6px }
.stat small,.card small,.muted { color:var(--muted) }
.panel { margin-block:17px }
.panel ol,.panel ul { margin-block:8px; padding-inline-start:24px }
.panel li+li { margin-block-start:8px }
.split { display:grid; grid-template-columns:1.35fr 1fr; gap:17px }
.split .panel { margin:0 }
.button,button { border:1px solid var(--stroke); border-radius:8px; padding:8px 14px; background:var(--surface); color:var(--ink); text-decoration:none; font-weight:650; display:inline-block }
.theme-toggle { display:inline-flex; align-items:center; gap:7px }
.theme-icon { font-size:1.14em; line-height:1 }
.button.primary { background:#b34726; color:white; border-color:#b34726 }
.button:hover,button:hover { box-shadow:0 0 0 2px var(--halo) }
.toolbar { display:flex; flex-wrap:wrap; gap:9px; margin-block:20px 16px }
input[type=search],select { border:1px solid var(--stroke); border-radius:8px; padding:8px 13px; background:var(--surface); color:var(--ink) }
input[type=search] { width:min(100%,340px) }
.part { display:flex; flex-direction:column; align-items:flex-start; text-decoration:none; gap:8px }
.part:hover { border-color:var(--hover) }
.part h3 { margin:0 }
.part .model { overflow-wrap:anywhere }
.pill { padding:2px 9px; border-radius:999px; font-size:.87rem; background:var(--pill-bg); color:var(--pill-text); display:inline-block }
.pill.conflict { background:var(--conflict-bg); color:var(--conflict-text) }
.pill.new { background:var(--new-bg); color:var(--new-text) }
.pill.review { background:var(--review-bg); color:var(--review-text) }
.row { display:flex; align-items:center; gap:8px 16px; flex-wrap:wrap }
.crumb { margin-block-end:16px; display:inline-block; color:var(--muted) }
.facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin-block:20px }
.facts div { background:var(--surface); padding:13px; border:1px solid var(--stroke); border-radius:9px }
.facts dt { color:var(--muted); font-size:.87rem }
.facts dd { margin:0; margin-block-start:4px; font-weight:650 }
.table-wrap { overflow-x:auto; border:1px solid var(--stroke); border-radius:10px }
table { width:100%; border-collapse:collapse; background:var(--surface) }
th,td { padding:10px 13px; text-align:start; border-bottom:1px solid var(--stroke); vertical-align:top }
th { background:var(--header-cell); font-weight:750 }
tr:last-child td { border-bottom:0 }
.wide { min-width:740px }
.narrow { max-width:850px; margin:auto }
.auth { min-height:78vh; display:grid; align-items:center }
.auth .hero { min-height:365px; display:flex; align-items:center }
.auth .shell { width:100%; padding-block:25px }
.auth .button { margin-block-start:7px }
.member { padding-block:10px; border-bottom:1px solid var(--stroke) }
.member:last-child { border-bottom:0 }
.error { color:var(--error) }
footer { padding-block:17px; border-top:1px solid var(--stroke); color:var(--muted); font-size:.9rem }
bdi { overflow-wrap:anywhere }
@media(max-width:670px) {
  .split { grid-template-columns:1fr }
  .top .shell { gap:9px }
  .top .brand { font-size:1rem }
  .mark { width:28px; height:28px }
  .nav .shell { column-gap:17px }
  .hero { border-radius:15px }
  .page { padding-block-start:20px }
}
