:root {
  color-scheme: light;
  --bg: #f5f7fc;
  --ink: #27324b;
  --muted: #52617a;
  --accent: #4358a3;
  --line: #d3dbea;
  --pale: #edf0fc;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; }
header, main { max-width: 1060px; margin: auto; padding: 0 28px; }
header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
a { color: inherit; }
.brand { text-decoration: none; font-weight: 700; font-size: 21px; }
.brand span { font-size: 27px; margin-right: 8px; color: var(--accent); }
.badge { font-size: 15px; color: var(--muted); }
.intro { padding: 34px 0 24px; max-width: 730px; }
.eyebrow, .step { font-size: 15px; font-weight: 650; color: var(--muted); letter-spacing: .025em; }
h1 { font-size: clamp(30px, 3.5vw, 40px); font-weight: 650; line-height: 1.3; letter-spacing: -.6px; margin: 12px 0 16px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 690px; }
.workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
.card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.label { display: block; font-weight: 650; font-size: 18px; }
.score { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.score output { font-size: 36px; font-weight: 650; line-height: 1.4; }
.score span { color: var(--muted); font-size: 16px; }
#feeling { margin-left: auto; }
input[type=range] { width: 100%; accent-color: var(--accent); margin: 14px 0 8px; min-height: 36px; }
.ends { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); gap: 10px; }
.state-label, .duration-label { margin-top: 22px; }
.small { font-size: 16px; color: var(--muted); }
select { width: 100%; font: inherit; color: var(--ink); background: white; border: 1px solid #7a88a3; border-radius: 10px; padding: 12px; margin-top: 10px; min-height: 50px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { padding: 0; width: 100%; }
legend .step { display: block; margin: 12px 0; }
legend .label { margin-bottom: 16px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; min-height: 78px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--pale); }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); width: 20px; height: 20px; flex-shrink: 0; }
.choice small { display: block; color: var(--muted); font-size: 16px; margin-top: 3px; }
.choice b { font-size: 18px; }
.preparation { padding: 20px 24px; margin-top: 22px; background: #eaf0fc; border-radius: 16px; border-left: 4px solid #8a9bd4; }
.preparation p { margin: 6px 0 0; }
.begin-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 12px; gap: 18px; }
button { font: inherit; cursor: pointer; min-height: 50px; border-radius: 12px; padding: 12px 20px; font-weight: 650; border: 1px solid transparent; }
button:hover { filter: brightness(.96); }
.primary { background: var(--accent); color: white; }
.primary span { margin-left: 16px; }
.secondary { background: white; border-color: #7a88a3; color: var(--ink); }
.text-button { background: transparent; color: var(--muted); text-decoration: underline; }
.sound-panel { display: grid; grid-template-columns: 1.2fr auto 1fr; align-items: center; gap: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 24px 0; }
.sound-panel p { margin: 3px 0 0; }
.sound-panel input { margin: 0; }
.sound-volume { display: flex; align-items: center; gap: 10px; }
.sound-volume label { white-space: nowrap; font-size: 16px; }
.sound-volume output { font-size: 16px; min-width: 40px; }
#music-status { grid-column: 1 / -1; margin: 0; font-size: 16px; color: var(--muted); }
.privacy { border-top: 1px solid var(--line); padding: 24px 0; }
.privacy > div { display: flex; gap: 14px; align-items: start; }
.privacy > div > span { font-size: 27px; }
.privacy p { margin: 6px 0 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 10px 0; min-height: 44px; }
summary { cursor: pointer; min-height: 48px; padding: 10px 0; }
footer { border-top: 1px solid var(--line); padding: 22px 0 32px; color: var(--muted); font-size: 15px; }
footer p { max-width: 850px; margin: 0 0 12px; }
.session-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 28px; }
.timer { font-variant-numeric: tabular-nums; font-size: 22px; }
progress { width: 100%; height: 7px; accent-color: var(--accent); }
.practice { text-align: center; padding: 20px 0 14px; }
.practice h1 { font-size: 30px; }
.practice p { margin-left: auto; margin-right: auto; }
#instruction { font-size: 21px; line-height: 1.7; max-width: 650px; color: var(--ink); min-height: 72px; }
.orb { height: 124px; width: 124px; border-radius: 50%; background: radial-gradient(circle at 30% 25%,#e6edff,#a5b5ed); box-shadow: 0 0 0 16px #edf0fc, 0 0 0 30px #f1f4fc; display: grid; place-items: center; margin: 28px auto 44px; transition: transform .1s linear; }
.orb span { font-size: 34px; color: var(--accent); }
.orb.paused { transition: none; }
.controls { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.centered { text-align: center; }
.narrow { max-width: 680px; margin: 36px auto; }
.narrow h1 { font-size: 32px; }
.wide { width: 100%; margin-top: 22px; }
.comparison { display: flex; align-items: center; justify-content: center; gap: 36px; background: var(--pale); border-radius: 16px; padding: 24px; margin: 22px 0; }
.comparison div { display: grid; text-align: center; }
.comparison strong { font-size: 32px; }
.comparison span { color: var(--muted); }
:focus-visible { outline: 3px solid #5843ad; outline-offset: 4px; }
h1:focus { outline: none; }
.skip { position: absolute; top: -100px; padding: 12px; background: white; z-index: 10; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.reduced .orb { transition: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .orb { transition: none !important; transform: none !important; } }
@media (max-width: 700px) {
  header, main { padding-left: 18px; padding-right: 18px; }
  header { padding-top: 16px; padding-bottom: 16px; }
  .badge { font-size: 15px; }
  .intro { padding-top: 24px; }
  .workspace { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  .begin-row { align-items: stretch; flex-direction: column; }
  .begin-row .small { margin: 0; }
  .begin-row button { width: 100%; }
  .sound-panel { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .sound-volume { flex-wrap: wrap; }
  .sound-volume input { flex: 1; min-width: 80px; width: auto; }
  .practice h1, .narrow h1 { font-size: 28px; }
  #instruction { font-size: 20px; min-height: 0; }
  .controls button { flex: 1; }
  .controls .text-button { flex-basis: 100%; }
  .narrow { margin: 24px auto; }
  .comparison { gap: 24px; }
}
