@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/roboto/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/roboto/Roboto-Medium.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Roboto";
  src: url("/static/fonts/roboto/Roboto-Bold.woff2") format("woff2");
  font-weight: 700;
}

:root {
  --fog: #e9eef4;
  --paper: #f8fafc;
  --white: #ffffff;
  --ink: #17243a;
  --muted: #657187;
  --line: #c7d0dc;
  --line-dark: #9ba9ba;
  --target: #3158d8;
  --target-soft: rgba(49, 88, 216, 0.13);
  --suggestion: #e26b45;
  --suggestion-soft: rgba(226, 107, 69, 0.14);
  --confirmed: #138877;
  --confirmed-soft: rgba(19, 136, 119, 0.13);
  --warning: #a85b00;
  --radius: 3px;
  --shadow: 0 22px 60px rgba(27, 46, 73, 0.11);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 36, 58, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 36, 58, 0.025) 1px, transparent 1px),
    var(--fog);
  background-size: 24px 24px;
  font-family: "Roboto", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(49, 88, 216, 0.28);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.study-app { min-height: 100vh; }

.study-header {
  position: relative;
  z-index: 200;
  display: flex;
  min-height: 72px;
  padding: 0 34px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.96);
}

.study-brand { display: flex; align-items: center; gap: 13px; }
.study-brand strong { display: block; margin-top: 3px; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.utility-label, .screen-kicker {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.signal-mark {
  display: flex;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--ink);
  clip-path: polygon(0 0, 84% 0, 100% 16%, 100% 100%, 16% 100%, 0 84%);
}
.signal-mark i { width: 2px; border-radius: 2px; background: #fff; }
.signal-mark i:nth-child(1), .signal-mark i:nth-child(5) { height: 8px; }
.signal-mark i:nth-child(2), .signal-mark i:nth-child(4) { height: 18px; }
.signal-mark i:nth-child(3) { height: 28px; background: #7fe1d3; }

.session-meta { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 11px; }
.session-meta span { display: grid; gap: 3px; }
.session-meta b { color: var(--ink); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.header-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}
.header-button:hover { color: #fff; border-color: var(--ink); background: var(--ink); }

.condition-rail {
  position: relative;
  z-index: 190;
  display: grid;
  grid-template-columns: repeat(9, minmax(70px, 1fr));
  gap: 1px;
  min-height: 50px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.rail-condition { position: relative; display: grid; padding: 8px 9px; gap: 7px; background: #f3f6f9; }
.rail-condition > span { display: flex; align-items: baseline; justify-content: space-between; color: #7d899a; font-size: 9px; }
.rail-condition > span b { color: inherit; font-size: 10px; }
.rail-condition > span em { font-style: normal; }
.trial-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.trial-dots i { height: 3px; background: #c6ced8; }
.trial-dots i.is-done { background: var(--confirmed); }
.rail-condition.is-current { background: var(--white); box-shadow: inset 0 -3px 0 var(--target); }
.rail-condition.is-current > span { color: var(--target); }
.rail-condition.is-complete .trial-dots i { background: var(--confirmed); }

.study-main { min-height: calc(100vh - 122px); }
.screen { display: none; min-height: calc(100vh - 122px); padding: 42px 34px 64px; }
.screen.is-active { display: block; animation: screen-in 260ms ease-out both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.loading-screen, .break-screen, .complete-screen {
  place-content: center;
  justify-items: center;
  text-align: center;
}
.loading-screen.is-active, .break-screen.is-active, .complete-screen.is-active { display: grid; }
.loading-screen h1, .break-screen h1, .complete-screen h1 { margin: 18px 0 8px; font-size: clamp(30px, 4vw, 48px); font-weight: 500; letter-spacing: -0.05em; }
.loading-screen p, .break-screen > p, .complete-screen > p { max-width: 590px; color: var(--muted); line-height: 1.7; }

.loading-signal { display: flex; height: 54px; align-items: center; gap: 4px; }
.loading-signal i { width: 4px; height: 12px; background: var(--target); animation: listen 900ms ease-in-out infinite alternate; }
.loading-signal i:nth-child(2), .loading-signal i:nth-child(6) { animation-delay: -300ms; }
.loading-signal i:nth-child(3), .loading-signal i:nth-child(5) { animation-delay: -600ms; }
.loading-signal i:nth-child(4) { animation-delay: -150ms; }
@keyframes listen { to { height: 52px; background: var(--suggestion); } }

.form-screen { align-content: start; }
.document-panel, .form-shell, .intro-shell, .survey-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line-dark);
  background: var(--white);
  box-shadow: var(--shadow);
}
.document-panel { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.document-index { padding: 34px 28px; border-right: 1px solid var(--line); background: #edf2f7; }
.document-index span, .document-index small { display: block; color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.document-index b { display: block; margin: 14px 0 7px; font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
.document-copy { padding: 42px 52px 48px; }
.document-copy h1, .form-heading h1, .intro-shell > h1 {
  margin: 8px 0 24px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.dev-warning { margin-bottom: 22px; padding: 12px 14px; border-left: 3px solid #d58a24; color: #744b13; background: #fff5df; font-size: 12px; line-height: 1.6; }
.consent-text { color: #46536a; line-height: 1.75; }
.consent-text dl { margin: 24px 0; border-top: 1px solid var(--line); }
.consent-text dl div { display: grid; grid-template-columns: 110px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.consent-text dt { color: var(--ink); font-weight: 500; }
.consent-text dd { margin: 0; }

.check-row { display: flex; margin-top: 12px; align-items: flex-start; gap: 10px; color: #3f4d63; line-height: 1.55; }
.check-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--target); }
.form-actions { display: flex; margin-top: 34px; padding-top: 22px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.primary-button:hover { border-color: var(--target); background: var(--target); }
.primary-button b { font-size: 15px; }
.secondary-button { color: var(--ink); background: transparent; }
.secondary-button:hover { color: #fff; background: var(--ink); }

.form-shell, .survey-shell { padding: 42px 52px 50px; }
.form-heading { max-width: 690px; }
.form-heading h1 { margin-bottom: 12px; }
.form-heading > p:last-child { margin: 0 0 30px; color: var(--muted); line-height: 1.65; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { display: grid; gap: 8px; }
.field > span { color: #46536a; font-size: 12px; font-weight: 500; }
.field > span b { color: var(--suggestion); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  background: #fbfcfe;
}
.field textarea { padding: 12px; resize: vertical; }
.field small { color: var(--muted); font-size: 10px; }
.full-field { margin-top: 22px; }

.scale-fieldset { margin: 34px 0 0; padding: 24px; border: 1px solid var(--line); }
.scale-fieldset legend { padding: 0 9px; font-size: 16px; font-weight: 500; }
.scale-fieldset > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.scale-row { display: grid; grid-template-columns: minmax(260px, 1fr) 330px; min-height: 54px; align-items: center; gap: 22px; border-top: 1px solid #e2e7ed; }
.scale-row:first-of-type { border-top: 0; }
.scale-row > span { color: #3f4d63; line-height: 1.5; }
.likert { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.likert label { display: grid; gap: 4px; justify-items: center; color: var(--muted); font-size: 9px; }
.likert input { width: 17px; height: 17px; margin: 0; accent-color: var(--target); }

.intro-shell { padding: 48px 52px 50px; }
.instruction-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0; border: 1px solid var(--line); }
.instruction-grid article { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); }
.instruction-grid article:last-child { border-right: 0; }
.instruction-grid h2 { margin: 24px 0 8px; font-size: 18px; font-weight: 500; }
.instruction-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.method-glyph { position: relative; display: block; width: 100%; height: 68px; background: repeating-linear-gradient(90deg, #d9e0e8 0 2px, transparent 2px 8px); }
.manual-glyph::after, .point-glyph::after, .find-glyph::after { content: ""; position: absolute; inset: 13px 22%; border-right: 2px solid var(--confirmed); border-left: 2px solid var(--confirmed); background: var(--confirmed-soft); }
.point-glyph::before { content: ""; position: absolute; z-index: 2; top: 7px; bottom: 7px; left: 67%; width: 2px; background: var(--suggestion); box-shadow: 0 0 0 4px rgba(226,107,69,.12); }
.find-glyph::after { inset: 7px 14%; border-style: dashed; border-color: var(--target); background: var(--target-soft); }
.find-glyph::before { content: ""; position: absolute; z-index: 2; inset: 17px 28%; border-right: 2px solid var(--suggestion); border-left: 2px solid var(--suggestion); background: var(--suggestion-soft); }
.intro-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.intro-notes p { margin: 0; padding: 15px 17px; color: var(--muted); background: #f0f4f8; font-size: 12px; line-height: 1.6; }
.intro-notes b { color: var(--ink); font-weight: 500; }

.task-screen { padding-top: 28px; }
.task-heading { display: flex; width: min(1320px, 100%); margin: 0 auto 18px; align-items: flex-end; justify-content: space-between; gap: 24px; }
.task-heading h1 { margin: 6px 0 0; font-size: 28px; font-weight: 500; letter-spacing: -0.045em; }
.task-status { display: flex; align-items: center; gap: 18px; }
.task-status span { color: var(--confirmed); font-size: 10px; }
.task-status b { min-width: 68px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 18px; font-weight: 500; }

.annotation-bench { display: grid; grid-template-columns: minmax(0, 1fr) 330px; width: min(1320px, 100%); margin: 0 auto; border: 1px solid var(--line-dark); background: var(--white); box-shadow: var(--shadow); }
.wave-console { min-width: 0; padding: 25px 28px 0; border-right: 1px solid var(--line); }
.wave-console > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.wave-console > header strong { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; }
.ready-state { padding: 6px 9px; color: var(--warning); background: #fff3de; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.ready-state.is-ready { color: #0b6c5d; background: #dff3ee; }

.task-cue { display: grid; grid-template-columns: auto auto minmax(0, 1fr); min-height: 48px; margin-top: 15px; align-items: center; gap: 10px; border: 1px solid #b9c7e8; background: #f2f5ff; }
.task-cue > span { align-self: stretch; display: grid; padding: 0 12px; place-items: center; color: #fff; background: var(--target); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.task-cue > strong { padding: 6px 10px; border: 1px solid rgba(49,88,216,.3); color: var(--target); background: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.task-cue > small { padding-right: 14px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.task-cue.is-event-first { border-color: var(--line); background: #f3f6f9; }
.task-cue.is-event-first > span { background: var(--ink); }
.task-cue.is-event-first > strong { border: 0; color: var(--ink); background: transparent; }

.wave-stage { position: relative; height: 360px; margin-top: 12px; overflow: hidden; border: 1px solid var(--line-dark); background: #e7edf3; }
.time-ruler { height: 27px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(23,36,58,.23) 19px 20px); mask-image: linear-gradient(#000 0 7px, transparent 7px); }
.study-waveform { position: relative; z-index: 1; min-height: 286px; }
.study-waveform > wave { overflow: hidden !important; cursor: crosshair; }
.study-waveform canvas { top: 0 !important; }
.study-waveform .wavesurfer-region { border-right: 2px solid var(--confirmed); border-left: 2px solid var(--confirmed); background: var(--confirmed-soft) !important; }
.study-waveform .wavesurfer-handle { width: 14px !important; max-width: 14px !important; padding: 0 !important; }
.transient-snap-guide { position: absolute; z-index: 120; top: 0; bottom: 0; width: 2px; margin-left: -1px; opacity: 0; pointer-events: none; background: var(--suggestion); box-shadow: 0 0 0 1px #fff, 0 0 13px rgba(226,107,69,.8); }
.transient-snap-guide.is-visible { opacity: 1; }

.candidate-layer, .proposal-layer { position: absolute; z-index: 48; top: 27px; right: 0; bottom: 46px; left: 0; pointer-events: none; }
.candidate-point { position: absolute; bottom: 4px; width: 2px; height: 13px; margin-left: -1px; background: rgba(226, 107, 69, 0.62); }
.candidate-point::after { content: ""; position: absolute; bottom: -4px; left: -2px; width: 6px; height: 3px; background: var(--suggestion); }
.proposal-layer { z-index: 46; border-right: 2px dashed var(--suggestion); border-left: 2px dashed var(--suggestion); background: var(--suggestion-soft); }
.proposal-actions { position: absolute; z-index: 5000; top: 42px; display: grid; grid-template-columns: auto 34px 34px; min-height: 34px; transform: translateX(-50%); align-items: center; gap: 4px; pointer-events: auto; filter: drop-shadow(0 6px 12px rgba(23,36,58,.22)); }
.proposal-actions > span { height: 34px; padding: 0 9px; display: grid; place-items: center; color: #7c3f2c; background: #fff4ef; border: 1px solid var(--suggestion); font-size: 9px; white-space: nowrap; }
.proposal-actions button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--suggestion); color: var(--suggestion); background: #fff; font-size: 17px; font-weight: 700; line-height: 1; }
.proposal-actions button:first-of-type { color: #fff; background: var(--suggestion); }
.proposal-actions button:hover { transform: translateY(-1px); }
.snap-feedback { position: absolute; z-index: 5000; right: 12px; top: 41px; padding: 8px 10px; color: #fff; background: var(--confirmed); box-shadow: 0 5px 14px rgba(19,136,119,.22); font-size: 10px; pointer-events: none; }
.target-anchor { position: absolute; z-index: 70; top: 27px; bottom: 46px; width: 2px; pointer-events: none; background: var(--target); box-shadow: 0 0 0 1px rgba(255,255,255,.8); }
.target-anchor i { position: absolute; top: 12px; left: -5px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--target); }
.target-anchor span { position: absolute; top: 34px; left: 8px; padding: 4px 6px; color: #fff; background: var(--target); font-size: 9px; white-space: nowrap; }

.transport-bar { display: flex; min-height: 74px; align-items: center; gap: 18px; }
.transport-button { display: inline-flex; min-width: 105px; min-height: 40px; align-items: center; justify-content: center; gap: 9px; border: 0; color: #fff; background: var(--ink); }
.transport-button:hover { background: var(--target); }
.transport-button span { font-size: 9px; }
.transport-button b { font-size: 11px; font-weight: 500; }
.text-button { padding: 7px 0; border: 0; border-bottom: 1px solid var(--line-dark); color: var(--muted); background: transparent; font-size: 10px; }
.text-button:hover { color: var(--target); border-color: var(--target); }
.time-readout { margin-left: auto; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--muted); font-size: 11px; }

.decision-console { display: flex; min-height: 510px; padding: 27px 24px 24px; flex-direction: column; background: #f0f4f8; }
.decision-copy h2 { margin: 7px 0 8px; font-size: 21px; font-weight: 500; letter-spacing: -0.035em; }
.decision-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.boundary-readout { display: grid; grid-template-columns: 1fr auto 1fr; margin: 28px 0 20px; align-items: end; gap: 9px; }
.boundary-readout div { padding: 0 0 11px; border-bottom: 2px solid var(--confirmed); }
.boundary-readout span { display: block; color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.boundary-readout b { display: block; margin-top: 6px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14px; font-weight: 500; }
.boundary-readout > i { padding-bottom: 12px; color: var(--confirmed); font-style: normal; }
.label-panel { margin-bottom: 18px; padding: 14px; border-left: 3px solid var(--target); background: #fff; }
.label-panel > p { margin: 7px 0 11px; color: var(--ink); font-size: 11px; }
.label-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.label-options button { min-height: 36px; padding: 6px 8px; border: 1px solid var(--line-dark); color: var(--ink); background: #f7f9fb; font-size: 10px; line-height: 1.35; }
.label-options button:hover { border-color: var(--target); color: var(--target); }
.label-options button.is-selected { border-color: var(--target); color: #fff; background: var(--target); }
.decision-note { margin-top: auto; padding: 12px; color: var(--muted); background: #e3e9ef; font-size: 10px; line-height: 1.55; }
.submit-trial { display: flex; min-height: 48px; margin-top: 12px; padding: 0 15px; align-items: center; justify-content: space-between; border: 0; color: #fff; background: var(--confirmed); font-size: 12px; font-weight: 500; }
.submit-trial:hover:not(:disabled) { background: #0d6f62; }
.submit-trial:disabled { cursor: not-allowed; opacity: 0.36; }

.survey-items { border: 1px solid var(--line); }
.survey-item { display: grid; grid-template-columns: minmax(280px, 1fr) 360px; min-height: 70px; padding: 0 20px; align-items: center; gap: 26px; border-top: 1px solid var(--line); }
.survey-section-heading { display: flex; min-height: 58px; padding: 13px 20px; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line-dark); background: #e5ebf1; }
.survey-section-heading:first-child { border-top: 0; }
.survey-section-heading b { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.survey-section-heading small { color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.survey-question { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 1.55; }
.dimension-badge { display: inline-flex; padding: 3px 7px; color: var(--target); background: #e9f1ff; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; letter-spacing: .04em; }

.break-clock { position: relative; display: grid; width: 116px; height: 116px; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; }
.break-clock i { position: absolute; inset: 12px; border: 6px solid #d9e1ea; border-top-color: var(--confirmed); border-radius: 50%; transform: rotate(40deg); }
.break-clock span { z-index: 1; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: .12em; }
.break-screen .primary-button { margin-top: 26px; }

.complete-mark { display: grid; width: 70px; height: 70px; place-items: center; color: #fff; background: var(--confirmed); font-size: 30px; }
.complete-screen code { margin: 20px 0 26px; padding: 10px 14px; color: var(--ink); background: #dce4ed; font-size: 18px; }
.complete-actions { display: flex; gap: 10px; }

.pause-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(18, 29, 47, 0.88); backdrop-filter: blur(10px); }
.pause-overlay > div { width: min(560px, 100%); padding: 48px; color: var(--ink); background: var(--paper); text-align: center; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.pause-overlay h1 { margin: 9px 0 12px; font-size: 34px; font-weight: 500; letter-spacing: -.05em; }
.pause-overlay p { margin: 0 0 26px; color: var(--muted); line-height: 1.65; }
.pause-bars { display: flex; height: 46px; justify-content: center; gap: 8px; }
.pause-bars i { width: 12px; background: var(--target); }

.resume-banner { position: fixed; z-index: 1100; right: 20px; bottom: 20px; display: flex; padding: 14px 16px; align-items: center; gap: 20px; color: #fff; background: var(--ink); box-shadow: 0 15px 50px rgba(23,36,58,.3); font-size: 12px; }
.resume-banner div { display: flex; gap: 7px; }
.resume-banner button { min-height: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; font-size: 10px; }
.resume-banner button:first-child { color: var(--ink); background: #fff; }

.toast { position: fixed; z-index: 1200; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 15px; transform: translateY(12px); opacity: 0; color: #fff; background: var(--ink); pointer-events: none; transition: 180ms ease; font-size: 11px; line-height: 1.5; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 920px) {
  .study-header { padding: 0 18px; }
  .condition-rail { padding: 0 18px; overflow-x: auto; grid-template-columns: repeat(9, 92px); }
  .screen { padding: 28px 18px 50px; }
  .document-panel { grid-template-columns: 1fr; }
  .document-index { border-right: 0; border-bottom: 1px solid var(--line); }
  .document-copy, .form-shell, .survey-shell, .intro-shell { padding: 30px 24px; }
  .field-grid, .intro-notes { grid-template-columns: 1fr; }
  .instruction-grid { grid-template-columns: 1fr; }
  .instruction-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .annotation-bench { grid-template-columns: 1fr; }
  .wave-console { border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-console { min-height: 400px; }
  .scale-row, .survey-item { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .survey-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .survey-section-heading small { text-align: left; }
  .session-meta span { display: none; }
}

@media (max-width: 600px) {
  .study-brand .utility-label { display: none; }
  .wave-console { padding: 18px 14px 0; }
  .task-cue { grid-template-columns: auto 1fr; }
  .task-cue > small { grid-column: 1 / -1; padding: 0 12px 10px; }
  .wave-stage { height: 300px; }
  .transport-bar { flex-wrap: wrap; padding: 10px 0; }
  .time-readout { width: 100%; margin-left: 0; }
  .likert { gap: 2px; }
  .complete-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
