/* U11R site styles, shared by every page. Tokens and contrast ratios: docs/brand/u11r-brand.md §7–8.
   Fonts are self-hosted (SIL OFL, fonts/OFL.txt); the CSP allows no font CDN. */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #F3F6F8;          /* Snowfield */
  --surface: #FFFFFF;
  --ink: #121A2B;
  --muted: #4E5B6B;       /* Granite */
  --accent: #B8234A;      /* Alpenglow */
  --accent-hover: #9A1D3E;
  --accent-fg: #FFFFFF;
  --data: #1D6A86;        /* Glacier */
  --line: #D5DCE3;        /* decorative hairline */
  --line-strong: #76838F; /* input borders, 3.6:1 */
  --band-bg: #121A2B;
  --band-fg: #E8EEF3;
  --band-muted: #9DABBA;
  --band-head: #8FD3E8;
  --ok: #0A6B3A;
  --err: #A1260F;

  --t1: #CDEBF3; --t2: #A6DBEA; --t3: #7FC3DB; --t4: #5C9FC6; --t5: #5F6DB3;
  --t6: #8A5FB4; --t7: #A9479E; --t8: #C5357A; --t9: #B8234A; --t10: #7E1530;
  --mix-piste: #C9D3DC;
  --mix-open: #8FD3E8;
  --mix-trees: #1D6A86;
  --mix-alpine: #4E5B6B;
  --t-dark-text: #121A2B;
  --t-light-text: #FFFFFF;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --text: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 1rem;
  --radius: 0.5rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1524;          /* Polar Night */
    --surface: #172033;
    --ink: #E8EEF3;         /* Frost */
    --muted: #9DABBA;
    --accent: #FF7D9C;
    --accent-hover: #FF9DB4;
    --accent-fg: #0E1524;
    --data: #8FD3E8;        /* Ice */
    --line: #26324A;
    --line-strong: #5A6A80;
    --band-bg: #172033;
    --band-fg: #E8EEF3;
    --band-muted: #9DABBA;
    --band-head: #8FD3E8;
    --ok: #5FD197;
    --err: #FF8F7A;
    --mix-piste: #3A4760;
    --mix-open: #8FD3E8;
    --mix-trees: #3F9BBB;
    --mix-alpine: #9DABBA;
  }
}

@media (min-width: 40rem) {
  :root { --gutter: 1.5rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { margin: 0; }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
main:focus { outline: none; }

.inner {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
}
.skip:focus { top: 0.5rem; }

/* Header */

.site-head .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo { display: inline-flex; padding: 0.25rem 0; }
.logo svg { height: 2.25rem; width: auto; display: block; }
.logo-base { fill: var(--ink); }
.logo-11 { fill: var(--accent); }

.head-cta {
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.head-cta:hover { background: var(--accent); color: var(--accent-fg); }

/* Buttons */

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.button:hover,
button:hover { color: var(--accent-fg); background: var(--accent-hover); }
button[disabled] { opacity: 0.6; cursor: progress; }
.button-quiet { color: var(--accent); background: transparent; border: 1.5px solid var(--accent); }
.button-quiet:hover { color: var(--accent-fg); background: var(--accent); }
#uploads:focus { outline: none; }
.uploads-title { scroll-margin-top: 1rem; }

/* Hero: the headline, then two sample days drawn as fans of fall lines */

.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5.5rem); }

.hero h1 {
  font-size: clamp(3.5rem, 11.5vw, 8.75rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  max-width: 12ch;
}

.hero-intro {
  display: grid;
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 56rem) {
  .hero-intro { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.sub {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  max-width: 36rem;
  margin: 0;
}

.note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 26rem;
}

.fans {
  margin: 0;
  display: grid;
  gap: 2rem 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface) url("hex.svg");
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
/* Both days share one scale: stacked, the bowls fan is drawn at 250/734 of the groomer fan's width;
   side by side, the column widths match the two viewBoxes (734 and 250). */
#fan-bowls { width: 34.06%; }
@media (min-width: 48rem) {
  .fans { grid-template-columns: 734fr 250fr; }
  #fan-bowls { width: 100%; }
}
.fans figcaption {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 44rem;
}

.fan-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}

.fan { display: block; width: 100%; height: auto; overflow: visible; }
.fan .guides line { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.fan .guides text { fill: var(--muted); font-family: var(--display); font-weight: 600; font-size: 12px; text-anchor: end; }
@media (max-width: 47.99rem) {
  .fan .guides text { display: none; }
}
.fan .runs-drawn path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* One dash longer than any run (paths are under 1,000 units), so the offset draws it down the fall line. */
  stroke-dasharray: 1200;
  stroke-dashoffset: 0;
  animation: descend 1100ms cubic-bezier(0.3, 0.6, 0.2, 1) both;
}
.fan .runs-drawn path:nth-child(3n+1) { animation-delay: 100ms; }
.fan .runs-drawn path:nth-child(3n+2) { animation-delay: 250ms; }
.fan .runs-drawn path:nth-child(3n) { animation-delay: 400ms; }
#fan-bowls .runs-drawn path:nth-child(3n+1) { animation-delay: 700ms; }
#fan-bowls .runs-drawn path:nth-child(3n+2) { animation-delay: 850ms; }
#fan-bowls .runs-drawn path:nth-child(3n) { animation-delay: 1000ms; }
.g2 { stroke: var(--t2); } .g3 { stroke: var(--t3); } .g4 { stroke: var(--t4); } .g5 { stroke: var(--t5); }
.g6 { stroke: var(--t6); } .g7 { stroke: var(--t7); } .g8 { stroke: var(--t8); } .g9 { stroke: var(--t9); }

/* The one load moment: each day's runs draw in down the fall line. */
@keyframes descend {
  from { stroke-dashoffset: 1200; }
  to { stroke-dashoffset: 0; }
}

.fan-stats {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}
.stat dt { font-size: 0.9rem; color: var(--muted); }
.stat dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1;
}
.stat-vert dd { color: var(--muted); }
.stat-score dd { color: var(--accent); }

/* T-grade tags and ramp */

.t {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  border-radius: 0.3rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
}
.t1 { background: var(--t1); color: var(--t-dark-text); }
.t2 { background: var(--t2); color: var(--t-dark-text); }
.t3 { background: var(--t3); color: var(--t-dark-text); }
.t4 { background: var(--t4); color: var(--t-dark-text); }
.t5 { background: var(--t5); color: var(--t-light-text); }
.t6 { background: var(--t6); color: var(--t-light-text); }
.t7 { background: var(--t7); color: var(--t-light-text); }
.t8 { background: var(--t8); color: var(--t-light-text); }
.t9 { background: var(--t9); color: var(--t-light-text); }
.t10 { background: var(--t10); color: var(--t-light-text); }

/* Sections */

.scale,
.what,
.how,
.resorts,
.name,
.faq { padding-block: clamp(3rem, 8vw, 5.5rem); }

.scale { background: var(--surface); }

.lead { max-width: 40rem; font-size: 1.125rem; margin-bottom: 2rem; }

.ramp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}
.ramp .t {
  height: clamp(3rem, 8vw, 4.5rem);
  border-radius: 0;
  min-width: 0;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 0.45rem 0.45rem;
  font-size: clamp(0.9rem, 2.4vw, 1.25rem);
  font-weight: 700;
}
@media (max-width: 24rem) {
  .ramp .t { padding: 0 0 0.35rem 0.25rem; font-size: 0.8rem; }
}
.ramp li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.ramp li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.anchors {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.anchors li { color: var(--muted); font-size: 0.98rem; line-height: 1.4; }
.anchors b {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
}

@media (min-width: 48rem) {
  .anchors {
    grid-template-columns: repeat(10, 1fr);
    gap: 0 3px;
    margin-top: 0;
  }
  .anchors li { padding-top: 1rem; }
  .a3 { grid-column: 3 / span 3; border-left: 2px solid var(--ink); padding-left: 0.6rem; }
  .a6 { grid-column: 6 / span 3; border-left: 2px solid var(--ink); padding-left: 0.6rem; }
  .a10 {
    grid-column: 9 / span 2;
    border-right: 2px solid var(--ink);
    padding-right: 0.6rem;
    text-align: right;
  }
}

.what-grid { display: grid; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 60rem) {
  .what-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
.notes { margin: 0; display: grid; gap: 1.25rem; }
.notes div { border-top: 1px solid var(--line-strong); padding-top: 0.75rem; }
.notes dt { font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.25rem; }
.notes dd { margin: 0; color: var(--muted); }

.how { background: var(--surface); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--data);
  margin-bottom: 0.5rem;
}
.steps p { color: var(--muted); }

.principles {
  background: var(--band-bg);
  color: var(--band-fg);
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.principles h2 { max-width: 16ch; margin-bottom: 2rem; }
.principles h3 { color: var(--band-head); }
.principles p { color: var(--band-muted); }
.principle-grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 48rem) {
  .principle-grid { grid-template-columns: 1fr 1fr; }
}

.resort-list {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.resort-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  line-height: 1.15;
}
.resort-list li::before {
  content: "";
  width: 0.55em;
  height: 0.62em;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.resorts p { max-width: 40rem; color: var(--muted); }

.name { border-top: 1px solid var(--line); }
.name-grid { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 48rem) {
  .name-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.name-mark svg { display: block; width: min(100%, 22rem); height: auto; }
.name p { font-size: 1.15rem; max-width: 38rem; }

.faq { background: var(--surface); }
.faq h2 { margin-bottom: 1.5rem; }
.faq details {
  border-top: 1px solid var(--line);
  max-width: 48rem;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; max-width: 42rem; }

/* Waitlist */

.join { padding-block: clamp(3.5rem, 9vw, 6rem); }
.join-grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 52rem) {
  .join-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.join-copy p { color: var(--muted); max-width: 30rem; font-size: 1.125rem; }

.join-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.join-form button { width: 100%; margin-top: 0.25rem; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent { color: var(--muted); font-size: 0.92rem; margin: 0.85rem 0 0; }
.status { min-height: 1.5rem; margin: 1rem 0 0; font-weight: 600; }
.status:empty { margin: 0; min-height: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
[hidden] { display: none; }

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-foot .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.site-foot p { margin: 0; }
.site-foot .copy { margin-left: auto; }

/* Plain pages (confirm, privacy, sign-in, verify, account, admin): one narrow column. */

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
}
.wrap.wide { max-width: 64rem; }

.brand {
  margin: 0 0 2.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand a { color: var(--ink); text-decoration: none; }
.brand .eleven { color: var(--accent); }

.wrap h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  line-height: 1;
  margin: 0 0 1rem;
}
.wrap h2 {
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 2rem 0 0.5rem;
}
.lede { color: var(--muted); font-size: 1.15rem; margin: 0 0 2rem; }
.foot { margin-top: 2.5rem; font-size: 0.95rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td button { min-height: 2.25rem; padding: 0.2rem 0.75rem; font-size: 0.9rem; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.inline-form label { margin: 0; }
.inline-form input { width: 9rem; }
p.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
p.actions[hidden] { display: none; }
td.actions { white-space: nowrap; }
td.actions button + button { margin-left: 0.5rem; }

/* Day report: the landing's sample day and the real report (report.js, upload and admin pages) */

.dr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: clamp(1.1rem, 3.5vw, 1.75rem);
}
.dr[hidden] { display: none; }

.dr-tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--data);
  border-radius: 1rem;
  color: var(--data);
  font-size: 0.85rem;
  font-weight: 600;
}

.dr-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.dr .dr-resort {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1;
  margin: 0 0 0.35rem;
}
.dr-date { color: var(--muted); margin: 0; }

.dr-score { margin: 0; text-align: right; flex-shrink: 0; }
.dr-score-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 5rem);
  line-height: 0.85;
  color: var(--accent);
}
.dr-score-label { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }
.dr-score-none .dr-score-num { color: var(--muted); }

.dr-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}
@media (min-width: 36rem) {
  .dr-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dr-facts dt { font-size: 0.85rem; color: var(--muted); }
.dr-facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
}

.dr-flags { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.dr-flags li { border-left: 3px solid var(--accent); padding: 0.15rem 0 0.15rem 0.75rem; font-weight: 600; }

.dr-section { margin-top: 1.5rem; }
.dr .dr-section h3,
.dr .dr-section h4 {
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.mix {
  display: flex;
  height: 0.75rem;
  border-radius: 0.375rem;
  overflow: hidden;
  gap: 2px;
}
.mix-seg { flex: 0 0 auto; min-width: 0; }
.mix-piste, .k-piste::before { background: var(--mix-piste); }
.mix-open, .k-open::before { background: var(--mix-open); }
.mix-trees, .k-trees::before { background: var(--mix-trees); }
.mix-alpine, .k-alpine::before { background: var(--mix-alpine); }
.m-20 { flex-grow: 20; } .m-22 { flex-grow: 22; } .m-27 { flex-grow: 27; } .m-31 { flex-grow: 31; }
.mix-key {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.mix-key li { display: inline-flex; align-items: center; gap: 0.4rem; }
.mix-key li::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 2px; }
.mix-key b { color: var(--ink); font-weight: 600; }

.dr-hardest { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0; font-weight: 600; font-size: 1.1rem; }
.dr-hardest-num { color: var(--muted); font-weight: 400; font-size: 1rem; }

.dr-runs { list-style: none; margin: 0; padding: 0; }
.dr-runs li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.45rem;
  border-top: 1px solid var(--line);
}
.dr-runs li:last-child { border-bottom: 1px solid var(--line); }
.dr-runs .t { justify-self: start; }
.dr-run-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-run-pitch { color: var(--muted); min-width: 2.5rem; text-align: right; }
.dr-run-vert { min-width: 4.75rem; text-align: right; font-weight: 600; }
.dr-runs li.dr-runs-more { display: block; color: var(--muted); font-size: 0.95rem; }
.t-none { background: var(--line); color: var(--muted); }

/* App pages (upload): the landing's header, one column */

.head-link { font-weight: 600; text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.head-link:hover { text-decoration: underline; }

.app { padding-block: clamp(1rem, 4vw, 2.5rem) 3rem; }
.app > * { max-width: 46rem; }
.app h1 {
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  line-height: 0.9;
  margin-bottom: 0.75rem;
}
.app .lede { margin-bottom: 1.75rem; }

.upload-form { display: grid; gap: 1rem; justify-items: start; }

.drop {
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: clamp(1.75rem, 6vw, 2.75rem) 1rem;
  background: var(--surface) url("hex.svg");
  border: 2px dashed var(--line-strong);
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 400;
}
.drop:hover,
.drop.drag { border-color: var(--accent); }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  line-height: 1.1;
}
.drop-hint { color: var(--muted); font-size: 0.95rem; }
.drop-file { font-weight: 600; color: var(--data); overflow-wrap: anywhere; }
.drop-file:empty { display: none; }
/* The input stays in the accessibility tree and takes focus; the label is what people see and click. */
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; }

.app .status { font-size: 1.05rem; }
.app .report { margin-top: 1.5rem; scroll-margin-top: 1rem; }

.uploads-title { font-size: clamp(1.75rem, 5vw, 2.25rem); margin: 3rem 0 0.75rem; }
.empty { color: var(--muted); }
.uploads td, .uploads th { padding: 0.65rem 0.6rem; }
.uploads td:first-child { font-weight: 600; overflow-wrap: anywhere; min-width: 10rem; }
.uploads td:last-child { text-align: right; }
.uploads button { white-space: nowrap; }
.st { white-space: nowrap; }
.st::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.62rem;
  margin-right: 0.45rem;
  background: var(--muted);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.st-done::before { background: var(--ok); }
.st-failed { color: var(--err); white-space: normal; min-width: 12rem; }
.st-failed::before { background: var(--err); }
.st-queued::before, .st-processing::before, .st-pending::before { background: var(--data); }

.foot a + a { margin-left: 1.25rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
