:root {
  color-scheme: dark light;
  --bg: #0b0d10;
  --text: #e8eaed;
  --muted: #9aa3b2;
  --line: #1d2229;
  --link-border: #3a4558;
  --panel: #12161c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
main {
  max-width: 76rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}
.eyebrow a, .foot a, p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--link-border);
  font-weight: 600;
}
h1 {
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  letter-spacing: 0.02em;
  margin: 0 0 1.35rem;
  line-height: 1.15;
}
h2 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  font-weight: 600;
  margin: 2.5rem 0 0.9rem;
}
p {
  margin: 0 0 1.1rem;
  line-height: 1.65;
  opacity: 0.86;
  font-size: 1.02rem;
}
.lead { font-size: 1.08rem; opacity: 0.92; }
.scope, .fine, .status {
  color: var(--muted);
  font-size: 0.92rem;
}
.cta-row { margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
a.cta, .btn {
  display: inline-block;
  overflow-wrap: anywhere;
  background: #1a1f27;
  color: var(--text);
  border: 1px solid #4a5568;
  padding: 0.55rem 1.05rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
a.cta:hover, .btn:hover { border-color: #6b7c99; }
.foot {
  margin: 2.75rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
#drop {
  position: relative;
  border: 1px dashed #3c465a;
  border-radius: 10px;
  padding: 1.5rem 1.15rem;
  background: var(--panel);
}
#drop.hot {
  border-color: #6b7c99;
  background: #161b22;
}
#drop:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* One styled control. The native file input stays in the tab order and still opens. */
#file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
details.dev {
  margin: 0 0 1.25rem;
}
details.dev summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
}
details.dev .scope {
  margin: 0.75rem 0 0;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
code.hash {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
caption {
  text-align: left;
  margin: 0 0 0.6rem;
  color: var(--muted);
}
th, td {
  text-align: left;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  white-space: normal;
  vertical-align: bottom;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
dl { margin: 0; }
dt {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
dd {
  margin: 0.2rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.earlier {
  font-size: 1.15rem;
  line-height: 1.5;
  opacity: 1;
}
.leg-list { list-style: none; padding: 0; margin: 0.2rem 0 0; }
.leg-list li { margin: 0.15rem 0; }
.examples {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}
.examples > li {
  margin: 0 0 2.25rem;
}
.examples h2 { margin-top: 0.2rem; }
.examples code { word-break: break-all; }
main code { overflow-wrap: anywhere; }
.measure {
  overflow-wrap: anywhere;
}
dd .fine {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0.35rem 0 0;
  max-width: 40rem;
}
.counts {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  line-height: 1.55;
}
td.rate-missing {
  white-space: normal;
  min-width: 9rem;
}
.wait {
  position: relative;
  height: 0.85rem;
  margin: 0.55rem 0 1.15rem;
  background: #2c3a4d;
  border-radius: 999px;
  overflow: hidden;
}
.wait-mark {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 36%;
  border-radius: 999px;
  background: #f4f7fb;
  animation: wait-slide 1.2s ease-in-out infinite;
}
@keyframes wait-slide {
  0% { transform: translateX(-90%); }
  100% { transform: translateX(280%); }
}
@media (prefers-reduced-motion: reduce) {
  .wait-mark {
    width: 100%;
    animation: wait-pulse 1.4s ease-in-out infinite;
  }
}
@keyframes wait-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.door-film {
  margin: 0.4rem 0 1.6rem;
}
main.home h2 {
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  font-weight: 600;
  margin: 2.2rem 0 0.75rem;
  line-height: 1.25;
}
.door-film video {
  display: block;
  width: 100%;
  max-width: 64rem;
  height: auto;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.door-film figcaption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.page-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  max-width: 42rem;
}
.page-list li { margin: 0 0 0.85rem; }
.page-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--link-border);
  font-weight: 600;
}
.page-list .gloss {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.verify-section { margin: 1.35rem 0 0; }
.verify-section h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}
.section-summary { margin: 0 0 0.55rem; }
.raw-box {
  max-height: 16rem;
  overflow: auto;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  background: #0e1218;
}
.raw-box dl { margin: 0; }
.end-summary {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.band {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.band-intro { background: #141820; border-left: 4px solid #8ab4f8; }
.band-objects { background: #161410; border-left: 4px solid #e0b15a; }
.band-desktop { background: #121816; border-left: 4px solid #7dcea0; }
.band-phone { background: #161218; border-left: 4px solid #c39bd3; }
.band-integrate { background: #12161c; border-left: 4px solid #e06a12; }
