:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  color: #1e342d;
  background: #f5f6f0;
  --paper: #fffefa;
  --line: #dbe2d7;
  --muted: #52675d;
  --green: #245c49;
  --dark: #163b30;
  --mint: #dfeddf;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, select, textarea { border-radius: 12px; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid #45866a; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p, li { line-height: 1.65; }
h1 { font-size: clamp(2rem, 5.8vw, 4rem); letter-spacing: -.045em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
.shell { width: min(1110px, calc(100% - 48px)); margin-inline: auto; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand, nav button, .text-button { color: var(--dark); border: 0; background: transparent; }
.brand { display: flex; align-items: center; gap: .65rem; font-size: 1.45rem; font-weight: 800; padding: 4px 0; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--dark); color: #fff; border-radius: 11px; }
nav { display: flex; gap: 6px; }
nav button { padding: .65rem .85rem; }
nav button[aria-current] { background: var(--mint); font-weight: bold; }
#history-count:not(:empty) { margin-inline-start: .3em; color: var(--muted); }
main { flex: 1; padding-block: 38px 52px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; min-height: 315px; padding: clamp(27px, 5vw, 60px); border-radius: 26px; background: var(--dark); color: #f8faf2; }
.hero p:not(.eyebrow) { margin: .85rem 0 1.65rem; color: #e0ece3; max-width: 34rem; }
.eyebrow { color: var(--green); font-weight: 700; font-size: .91rem; margin-bottom: .55rem; }
.hero .eyebrow { color: #bfd9c5; }
.hero-art { display: grid; place-items: center; min-height: 210px; }
.orbit { width: 195px; aspect-ratio: 1; display: flex; gap: 9px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #9bb8a1a0; box-shadow: 0 0 0 24px #c5dfc31c, 0 0 0 47px #c5dfc311, 0 0 0 71px #c5dfc309; background: #b5dfb412; }
.orbit span { width: 8px; border-radius: 10px; background: #bfe0b0; height: 28px; }
.orbit span:nth-child(2), .orbit span:nth-child(4) { height: 51px; }
.orbit span:nth-child(3) { height: 78px; }
.primary, .secondary { padding: .78rem 1.15rem; font-weight: 700; border: 1px solid transparent; transition: background .15s; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #174636; }
.hero .primary { background: #dcebc9; color: var(--dark); }
.hero .primary:hover, .secondary:hover { background: #cbe2c8; }
.primary span { margin-inline-start: .55em; }
.secondary { background: var(--mint); color: var(--dark); }
.text-button { padding: .6rem .2rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 32px 0 14px; }
.section-title p, .small, .disclaimer { color: var(--muted); font-size: .93rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.card, .panel, .history-item { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.card { color: inherit; text-align: start; padding: 19px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.card:hover { border-color: #6e9a80; background: #f8fcf5; }
.card strong, .card small { display: block; }
.card small { color: var(--muted); margin-top: 5px; line-height: 1.4; }
.icon { background: var(--mint); color: var(--green); border-radius: 12px; min-height: 42px; display: grid; place-items: center; font-size: 1.35rem; }
.disclaimer { margin-top: 19px; }
.station-grid { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(220px, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
.panel { padding: clamp(19px, 4vw, 35px); }
.panel h1, #history h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.prompt { font-size: 1.26rem; margin: 1rem 0; }
.callout, .notice { background: var(--mint); border-radius: 12px; padding: 12px 15px; margin-bottom: 12px; }
.timer-panel { background: var(--dark); color: white; }
.timer-panel p:not(.clock) { color: #cbe2d1; }
.clock { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0 8px; }
.check { font-size: .96rem; }
#answer-panel > label { display: block; font-weight: bold; margin: 16px 0 8px; }
textarea { display: block; width: 100%; resize: vertical; padding: 12px; background: #fbfcf7; border: 1px solid #b8cabe; color: inherit; line-height: 1.55; }
audio { display: block; width: 100%; margin-block: 10px; }
.pointers p { margin-top: 13px; }
.pointers ul { padding-inline-start: 20px; margin-bottom: 0; }
.pointers li + li { margin-top: 8px; }
#self-form, #ai-result { margin-top: 20px; }
.rubric-row { display: grid; grid-template-columns: 1fr minmax(130px, 32%); align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rubric-row small { display: block; color: var(--muted); line-height: 1.5; margin-top: 4px; }
select { width: 100%; padding: 8px; background: var(--paper); color: inherit; border: 1px solid #b8cabe; }
.score { font-weight: bold; margin-top: 12px; }
.new-station { margin-top: 14px; }
.history-list { display: grid; gap: 10px; margin-top: 18px; }
.history-item { padding: 16px 20px; }
.history-item p { margin-block: 5px; }
meter { width: min(100%, 320px); height: 16px; accent-color: var(--green); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-block: 17px; color: var(--muted); font-size: .88rem; }
@media (max-width: 850px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .shell { width: calc(100% - 26px); }
  main { padding-top: 19px; }
  .hero { grid-template-columns: 1fr; min-height: 260px; }
  .hero-art { display: none; }
  .cards, .station-grid { grid-template-columns: 1fr; }
  .timer-panel { grid-row: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; }
  .timer-panel .eyebrow { margin: 0; }
  .timer-panel .clock { grid-row: span 2; line-height: 1.15; }
}
