:root {
  --ink: #162520;
  --muted: #66756f;
  --paper: #f4f7f4;
  --surface: #ffffff;
  --line: #dfe7e2;
  --green: #12664f;
  --green-dark: #0b4d3a;
  --mint: #dff4eb;
  --lime: #c9f266;
  --warning: #d86b2b;
  --shadow: 0 20px 60px rgba(17, 44, 35, 0.09);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
body { margin: 0; min-height: 100vh; }
body.immersive .app-header { display: none; }
body.immersive .view { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(244,247,244,.94);
  position: relative;
  z-index: 20;
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 11px; font-family: Manrope, sans-serif; font-size: 18px; }
.brand b { color: var(--green); }
.brand-family { display: grid; line-height: 1.05; }
.brand-family small { margin-top: 4px; color: var(--muted); font: 700 10px "DM Sans", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.brand-mark { width: 30px; height: 22px; border: 2px solid var(--green); border-radius: 60% 20% 60% 20%; transform: rotate(-7deg); display: grid; place-items: center; }
.brand-mark span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.privacy-chip { font-size: 13px; font-weight: 600; color: var(--green-dark); background: var(--mint); border: 1px solid #c5e7d9; padding: 8px 12px; border-radius: 100px; }
.privacy-chip span { font-size: 9px; margin-right: 5px; }

.view { min-height: calc(100vh - 72px); }
.setup-view, .results-view { max-width: 1180px; margin: 0 auto; padding: 60px 28px 72px; }
.intro { max-width: 850px; margin-bottom: 38px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; margin: 0 0 12px; }
h1, h2 { font-family: Manrope, sans-serif; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; max-width: 800px; }
h2 { font-size: 21px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 760px; margin: 20px 0 0; }

.setup-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 24px; align-items: start; }
.preview-view { max-width: 900px; margin: 0 auto; padding: 72px 28px; }
.preview-shell { text-align: center; }
.preview-shell h1, .preview-shell .lede { margin-left: auto; margin-right: auto; }
.preview-start-card, .preview-result-card { width: min(100%,650px); margin: 38px auto 24px; padding: 30px; }
.preview-sequence { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 28px; }
.preview-sequence span { min-width: 105px; display: grid; gap: 3px; }
.preview-sequence b { color: var(--green-dark); font: 700 22px Manrope,sans-serif; }
.preview-sequence small, .preview-start-card > small { color: var(--muted); }
.preview-start-card > small { display: block; margin-top: 14px; line-height: 1.5; }
.preview-sequence i { color: #9eb2aa; font-style: normal; }
.preview-result-mark { width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--lime); font-size: 25px; font-weight: 900; }
.preview-result-card h2 { font-size: 30px; }
.preview-result-card dl { margin: 24px 0; border-top: 1px solid var(--line); }
.preview-result-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.preview-result-card dt { color: var(--muted); }
.preview-result-card dd { margin: 0; font-weight: 800; text-align: right; }
.preview-back { color: var(--green); font-weight: 700; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.camera-panel, .stimulus-panel { padding: 26px; }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.step-number { color: var(--green); font: 700 12px Manrope, sans-serif; border: 1px solid #b8d9cc; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
.status-pill { font-size: 12px; color: var(--muted); background: #eef2ef; padding: 6px 10px; border-radius: 20px; }
.status-pill.good { background: var(--mint); color: var(--green-dark); }

.camera-stage { height: 238px; position: relative; border-radius: 16px; overflow: hidden; background: #192923; margin-bottom: 18px; }
.camera-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-crosshair { position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: .82; transition: opacity .2s ease; }
.camera-crosshair i { position: absolute; background: rgba(201,242,102,.46); box-shadow: 0 0 0 1px rgba(8,40,30,.12); }
.camera-crosshair i:first-child { top: 0; bottom: 0; left: 50%; width: 1px; }
.camera-crosshair i:nth-child(2) { left: 0; right: 0; top: 50%; height: 1px; }
.camera-crosshair::after { content: ""; position: absolute; left: 50%; top: 50%; width: 42%; height: 58%; transform: translate(-50%,-50%); border: 2px dashed rgba(201,242,102,.7); border-radius: 46%; background: rgba(201,242,102,.035); transition: .2s ease; }
.camera-crosshair span { position: absolute; z-index: 1; left: 50%; top: calc(50% + 76px); transform: translateX(-50%); color: #e8f6f0; background: rgba(7,27,20,.7); border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.camera-stage.position-good .camera-crosshair::after { border-style: solid; border-color: var(--lime); background: rgba(201,242,102,.10); box-shadow: 0 0 24px rgba(201,242,102,.18); }
.position-direction { position: absolute; z-index: 4; left: 50%; bottom: 12px; transform: translateX(-50%); width: max-content; max-width: 88%; padding: 6px 10px; border-radius: 30px; color: white; background: rgba(7,27,20,.78); font-size: 11px; font-weight: 700; text-align: center; pointer-events: none; }
.camera-placeholder { height: 100%; display: grid; place-content: center; justify-items: center; gap: 15px; color: #b8c6c1; font-size: 14px; }
.face-guide { width: 76px; height: 100px; border: 1px dashed #87a098; border-radius: 45% 45% 38% 38%; }
.camera-corners { position: absolute; inset: 18px; pointer-events: none; }
.camera-corners i { position: absolute; width: 24px; height: 24px; border-color: var(--lime); border-style: solid; }
.camera-corners i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.camera-corners i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.camera-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.camera-corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.distance-guide { margin: -2px 0 18px; padding: 13px 14px; background: #f7faf8; border: 1px solid var(--line); border-radius: 12px; }
.distance-guide > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.distance-guide span { color: var(--muted); font-size: 12px; font-weight: 700; }
.distance-guide strong { color: var(--green-dark); font-size: 13px; text-align: right; }
.distance-guide small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.distance-meter { height: 5px; margin-top: 10px; overflow: hidden; background: #dfe8e3; border-radius: 20px; }
.distance-meter span { display: block; width: 0; height: 100%; background: var(--green); transition: width .15s linear; }

.field-label { font-size: 13px; font-weight: 700; display: block; margin: 0 0 8px; }
.camera-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
select, textarea { border: 1px solid #cad6d0; background: #fbfdfc; color: var(--ink); border-radius: 11px; outline: none; }
select { min-width: 0; padding: 11px 12px; }
textarea { width: 100%; resize: vertical; padding: 14px; font-size: 16px; line-height: 1.55; min-height: 168px; }
select:focus, textarea:focus, input:focus-visible, button:focus-visible { outline: 3px solid rgba(18,102,79,.2); outline-offset: 2px; border-color: var(--green); }
.position-tips { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.position-tips span { background: #f0f5f2; color: #52635d; border-radius: 30px; padding: 6px 9px; font-size: 12px; }
.glasses-tip { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; padding: 12px 14px; border-left: 3px solid var(--lime); background: #f8fbef; }

.button { border: 0; border-radius: 11px; padding: 11px 17px; font-weight: 700; min-height: 44px; transition: transform .15s, background .15s, opacity .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: var(--green); color: white; }
.button.primary:hover:not(:disabled) { background: var(--green-dark); }
.button.secondary { color: var(--green-dark); background: #edf4f0; border: 1px solid #d2e2da; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.full { width: 100%; display: flex; justify-content: center; gap: 12px; align-items: center; }
.range-row { display: grid; grid-template-columns: auto 1fr 52px; align-items: center; gap: 12px; margin: 20px 0; font-size: 14px; }
.range-row label { font-weight: 700; }
input[type="range"] { accent-color: var(--green); width: 100%; }
.range-row output { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.duration-row { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.study-sequence { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.study-sequence li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.study-sequence li > span { color: var(--green); font: 700 12px Manrope, sans-serif; }
.study-sequence b, .study-sequence small { display: block; }
.study-sequence b { font-size: 14px; }
.study-sequence small { color: var(--muted); margin-top: 3px; font-size: 12px; }
.participant-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 7px; }
.participant-fields label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.participant-fields input { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fbfcfb; border: 1px solid #cad7d1; border-radius: 9px; outline: none; }
.participant-fields input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,102,79,.1); }
.field-help { margin: 0 0 19px; color: var(--muted); font-size: 12px; }
.sequence-title { margin: 0 0 10px; font: 700 14px Manrope, sans-serif; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; margin: 18px 0; cursor: pointer; }
.consent-row input { width: 18px; height: 18px; accent-color: var(--green); }
.error-message { color: #a43f31; font-size: 13px; min-height: 18px; margin: 10px 0 0; }

.guidance-view { background: #10231d; color: white; display: grid; place-items: center; padding: 30px; }
.guidance-card { width: min(92vw, 680px); text-align: center; }
.guidance-card .eyebrow { color: var(--lime); }
.guidance-card h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 auto; }
.guidance-card > p:not(.eyebrow) { color: #b8c7c2; font-size: 18px; line-height: 1.65; max-width: 620px; margin: 22px auto 30px; }
.guidance-icon { width: 84px; height: 84px; border-radius: 50%; border: 1px solid #456158; display: grid; place-items: center; margin: 0 auto 24px; }
.guidance-icon span { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 12px rgba(201,242,102,.12); }
.guidance-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 0 0 22px; }
.guidance-steps div { background: #193129; border: 1px solid #2a473d; border-radius: 13px; padding: 16px 10px; }
.guidance-steps strong { display: grid; place-items: center; margin: 0 auto 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #173326; }
.guidance-steps span { color: #c8d4d0; font-size: 13px; }
.audio-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; margin: 22px 0; cursor: pointer; }
.audio-toggle input { width: 20px; height: 20px; accent-color: var(--lime); }
.audio-toggle span, .audio-toggle small { display: block; }
.audio-toggle small { color: #9eb2aa; margin-top: 2px; }
.guidance-card .button { max-width: 380px; margin: 0 auto; background: var(--lime); color: #173326; }

.calibration-view { position: relative; overflow: hidden; background: #10231d; color: white; }
.calibration-topbar { display: flex; justify-content: space-between; align-items: start; padding: 32px 42px 17px; position: relative; z-index: 2; }
.calibration-topbar h2 { font-size: 20px; }
.calibration-topbar .eyebrow { color: var(--lime); }
.progress-copy { display: flex; align-items: baseline; gap: 7px; }
.progress-copy strong { font: 700 24px Manrope; }
.progress-copy span { color: #9eb2aa; font-size: 12px; }
.progress-track { height: 3px; background: #2e433c; position: relative; z-index: 2; }
.progress-track span { display: block; height: 100%; background: var(--lime); width: 11.11%; transition: width .3s; }
.calibration-phase { position: absolute; z-index: 3; top: 92px; left: 42px; color: #dce9e4; background: #1a352c; border: 1px solid #385248; border-radius: 100px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.calibration-instruction { position: absolute; z-index: 2; bottom: 28px; width: 100%; text-align: center; color: #b8c7c2; font-size: 14px; }
.point-capture-status { position: absolute; top: 27px; left: 50%; transform: translateX(-50%); z-index: 3; display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 8px; background: rgba(20,48,39,.9); border: 1px solid #365248; border-radius: 100px; padding: 9px 16px; }
.point-capture-status > span { grid-row: 1 / 3; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,242,102,.1); }
.point-capture-status b { font-size: 14px; }
.point-capture-status small { color: #9eb2aa; font-size: 11px; }
.calibration-grid-guide { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.calibration-guide-point { position: absolute; width: 24px; height: 24px; margin: -12px; display: grid; place-items: center; border: 2px dotted rgba(210,229,221,.27); border-radius: 50%; color: transparent; font-size: 13px; font-weight: 900; transition: opacity .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.calibration-guide-point::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(210,229,221,.32); }
.calibration-guide-point.active { width: 108px; height: 108px; margin: -54px; border-style: dotted; border-color: rgba(201,242,102,.8); background: rgba(201,242,102,.035); box-shadow: 0 0 0 8px rgba(201,242,102,.025); animation: guidePulse 1.6s ease-in-out infinite; }
.calibration-guide-point.active::after { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 12px rgba(201,242,102,.8); }
.calibration-guide-point.complete, .calibration-guide-point.provisional { border-style: solid; border-color: rgba(201,242,102,.42); background: rgba(201,242,102,.08); color: rgba(201,242,102,.75); }
.calibration-guide-point.complete::after, .calibration-guide-point.provisional::after { content: "\2713"; width: auto; height: auto; background: none; }
.calibration-guide-point.provisional { border-color: rgba(23,213,226,.5); color: rgba(23,213,226,.85); }
.calibration-guide-point.provisional::after { content: "\2026"; transform: translateY(-3px); }
.calibration-guide-point.failed { border-style: solid; border-color: #ed8650; background: rgba(237,134,80,.12); }
.calibration-guide-point.failed::after { background: #ed8650; }
@keyframes guidePulse { 50% { box-shadow: 0 0 0 13px rgba(201,242,102,.075); } }
.calibration-target { --hold: 0deg; position: absolute; width: 78px; height: 78px; padding: 0; margin: -39px; border: 0; border-radius: 50%; background: conic-gradient(var(--lime) var(--hold), rgba(201,242,102,.15) var(--hold)); display: grid; place-items: center; transition: left .35s ease, top .35s ease; box-shadow: 0 0 0 1px rgba(201,242,102,.4), 0 0 0 12px rgba(201,242,102,.05); }
.calibration-target::before { content: ""; grid-area: 1/1; width: 62px; height: 62px; border-radius: 50%; background: #173128; }
.calibration-target .target-dot { grid-area: 1/1; width: 17px; height: 17px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 7px rgba(201,242,102,.15); }
.calibration-target .target-timer { grid-area: 1/1; align-self: end; margin-bottom: 8px; color: #9eb2aa; font-size: 11px; font-weight: 700; }
.calibration-target .target-tick { grid-area: 1/1; opacity: 0; color: #153327; font-size: 30px; font-weight: 900; transform: scale(.5); transition: .2s ease; }
.calibration-target .target-pending { grid-area: 1/1; opacity: 0; color: var(--lime); font-size: 30px; font-weight: 900; letter-spacing: .08em; }
.calibration-target.provisional .target-dot, .calibration-target.provisional .target-timer { opacity: 0; }
.calibration-target.provisional .target-pending { opacity: 1; }
.calibration-target.provisional { background: rgba(23,213,226,.18); box-shadow: 0 0 0 2px rgba(23,213,226,.7), 0 0 0 12px rgba(23,213,226,.07); }
.calibration-target.verified { animation: none; background: var(--lime); border-color: var(--lime); }
.calibration-target.verified::before { background: var(--lime); }
.calibration-target.verified .target-dot { opacity: 0; }
.calibration-target.verified .target-timer { opacity: 0; }
.calibration-target.verified .target-tick { opacity: 1; transform: scale(1); }
.calibration-target.unstable { background: conic-gradient(#e57949 360deg, #e57949 360deg); box-shadow: 0 0 0 8px rgba(229,121,73,.12); }
.target-tolerance-ring { position: absolute; z-index: 1; width: var(--diameter, 180px); height: var(--diameter, 180px); transform: translate(-50%, -50%); border: 2px dashed rgba(201,242,102,.5); border-radius: 50%; pointer-events: none; transition: left .35s ease, top .35s ease; }
.predicted-gaze-dot { position: fixed; z-index: 8; width: 26px; height: 26px; margin: -13px; border: 2px solid white; border-radius: 50%; background: rgba(23,213,226,.25); box-shadow: 0 0 0 7px rgba(23,213,226,.13), 0 3px 18px rgba(0,0,0,.4); pointer-events: none; }
.predicted-gaze-dot::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: var(--gaze-halo-diameter, 160px); height: var(--gaze-halo-diameter, 160px); transform: translate(-50%,-50%); border: 1px solid rgba(23,213,226,.22); border-radius: 50%; background: radial-gradient(circle, rgba(23,213,226,.08), rgba(23,213,226,.025) 55%, transparent 72%); }
.predicted-gaze-dot span { position: absolute; width: 7px; height: 7px; left: 7.5px; top: 7.5px; border-radius: 50%; background: #17d5e2; }
.live-tracking-panel { position: absolute; z-index: 6; width: 290px; right: 18px; bottom: 18px; border: 1px solid #3b5b50; border-radius: 15px; overflow: hidden; background: rgba(9,27,21,.94); box-shadow: 0 18px 60px rgba(0,0,0,.35); transition: .25s ease; }
.live-tracking-panel.panel-left { right: auto; left: 18px; }
.live-tracking-panel.panel-top { bottom: auto; top: 132px; }
.live-preview { height: 163px; position: relative; background: #07140f; }
.live-preview canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.live-badge { position: absolute; top: 9px; left: 9px; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #e9fff6; background: rgba(6,24,18,.72); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 5px 7px; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 9px; padding: 11px 12px 8px; }
.signal { color: #849a92; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.signal i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #6d7e78; }
.signal.good { color: #dff8eb; }
.signal.good i { background: var(--lime); box-shadow: 0 0 0 4px rgba(201,242,102,.1); }
.signal.warn { color: #ffc29f; }
.signal.warn i { background: #ed8650; }
.live-tracking-panel > p { color: #91a69e; font-size: 10px; line-height: 1.35; margin: 0; padding: 0 12px 11px; }
@keyframes pulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 16px rgba(201,242,102,.04); } }
.validation-card { position: absolute; z-index: 4; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(92vw, 480px); background: white; color: var(--ink); border-radius: 22px; padding: 34px; text-align: center; box-shadow: 0 30px 100px #06120e; }
.validation-card p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.validation-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

.test-view { background: #edf2ef; padding-bottom: 50px; }
.test-toolbar { min-height: 112px; background: white; display: flex; align-items: center; justify-content: space-between; padding: 20px max(28px, calc((100vw - 1100px) / 2)); }
.test-toolbar .eyebrow { margin-bottom: 6px; }
.quiet { color: var(--muted); font-size: 14px; line-height: 1.5; }
.timer { display: flex; align-items: baseline; gap: 7px; color: var(--green); }
.timer strong { font: 700 40px Manrope; font-variant-numeric: tabular-nums; }
.timer span { color: var(--muted); font-size: 12px; }
.test-progress { height: 4px; background: #dbe4df; }
.test-progress span { display: block; width: 0; height: 100%; background: var(--green); }
.trial-stage { width: min(96vw, 1180px); min-height: calc(100vh - 166px); margin: 0 auto; padding: 28px 0 40px; display: grid; place-items: center; }
.trial-intro { text-align: center; width: min(90vw, 720px); }
.trial-intro h1 { margin: 0 auto; }
.trial-intro > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.6; }
.trial-intro > strong { display: grid; place-items: center; width: 86px; height: 86px; margin: 28px auto 0; border-radius: 50%; background: var(--green); color: white; font: 700 38px Manrope; }
.reading-card { width: min(92vw, 1040px); min-height: 460px; margin: 0 auto; padding: clamp(42px, 7vw, 88px); background: white; border-radius: 12px; box-shadow: var(--shadow); line-height: 1.45; letter-spacing: -.02em; display: grid; place-items: center; text-align: center; }
.message-stimulus { font: 700 clamp(30px, 3.2vw, 46px)/1.38 Manrope, sans-serif; text-wrap: balance; }
.message-copy { display: block; width: 100%; }
.message-copy-uniform { display: grid; gap: .08em; }
.message-line { display: block; white-space: nowrap; }
.message-uniform .critical, .message-uniform .supporting { font: inherit; }
.message-variable .critical-small { font-size: .62em; vertical-align: .2em; letter-spacing: .01em; color: #385048; }
.message-variable .critical-large { font-size: 1.45em; color: var(--green); white-space: nowrap; }
.message-variable .supporting { font-size: .84em; font-weight: 600; }
.reading-card .tracked-word, .result-text .tracked-word { display: inline; }
.reading-card.notification-stimulus { min-height: 520px; padding: 32px; background: radial-gradient(circle at 50% 30%, #33433e 0, #14221e 72%); }
.phone-mockup { width: min(88vw, 350px); min-height: 600px; padding: 22px 14px; border: 8px solid #07110e; border-radius: 46px; background: linear-gradient(150deg,#e9f4f0,#c5e0d6 55%,#a6cbbb); box-shadow: 0 24px 55px rgba(4,18,13,.35), inset 0 0 0 2px rgba(255,255,255,.18); color: #13211c; text-align: left; position: relative; overflow: hidden; }
.phone-mockup::before { content: ""; display: block; width: 106px; height: 25px; margin: -15px auto 54px; border-radius: 0 0 18px 18px; background: #07110e; }
.phone-status { position: absolute; top: 21px; left: 28px; right: 28px; display: flex; justify-content: space-between; font: 700 12px Manrope, sans-serif; }
.phone-wallpaper { position: absolute; inset: 0; background: radial-gradient(circle at 78% 76%,rgba(255,255,255,.52),transparent 32%), radial-gradient(circle at 15% 55%,rgba(18,102,79,.26),transparent 36%); }
.notification-card { position: relative; z-index: 1; padding: 16px; border: 1px solid rgba(255,255,255,.62); border-radius: 20px; background: rgba(255,255,255,.86); box-shadow: 0 14px 34px rgba(20,54,42,.18); backdrop-filter: blur(16px); }
.notification-app { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #456157; font: 700 12px Manrope, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.notification-app i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--green); color: white; font-style: normal; }
.notification-card p { margin: 0; color: #172a23; font: 600 17px/1.45 "DM Sans",sans-serif; letter-spacing: -.01em; }
.notification-card [data-critical="true"] { color: inherit; font-weight: inherit; }
.recall-card { width: min(92vw, 800px); min-height: 500px; display: grid; place-items: center; text-align: center; }
.washout-panel p { margin: 20px 0 0; color: var(--muted); }
.washout-orbit { width: 106px; height: 106px; display: grid; place-items: center; border: 2px solid #cddbd5; border-radius: 50%; }
.washout-orbit i { width: 14px; height: 14px; border-radius: 50%; background: var(--green); animation: washoutPulse 1.15s ease-in-out infinite; }
@keyframes washoutPulse { 50% { transform: scale(1.8); opacity: .4; } }
.voice-panel { width: 100%; padding: 46px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.voice-panel h1 { max-width: 680px; margin: 0 auto; font-size: clamp(34px,5vw,56px); }
.voice-panel > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.voice-ring { --voice-progress: 0deg; width: 116px; height: 116px; margin: 26px auto 14px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) var(--voice-progress),#dfe8e3 0); position: relative; }
.voice-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: white; }
.voice-ring span { position: relative; z-index: 1; color: var(--green-dark); font: 700 36px Manrope,sans-serif; }
.voice-panel > strong { display: block; min-height: 22px; color: var(--green); }
.number-fallback { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.number-fallback p { color: var(--muted); font-size: 14px; }
.number-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.number-buttons button { width: 44px; height: 44px; border: 1px solid #b8cec5; border-radius: 10px; color: var(--green-dark); background: #f6faf8; font-weight: 800; }
.number-buttons button:hover, .number-buttons button:focus-visible { color: white; background: var(--green); outline: none; }
.shelf-card { width: min(96vw, 1180px); background: #f8faf9; border: 1px solid #d8e2dd; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.shelf-header { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 20px; background: white; border-bottom: 1px solid var(--line); }
.shelf-header b { color: var(--green-dark); font-size: 18px; }
.shelf-header span { color: var(--muted); font-size: 12px; }
.shelf-end-button { border: 1px solid #cad8d1; border-radius: 8px; padding: 7px 10px; color: #52675f; background: white; font: 700 12px Manrope, sans-serif; cursor: pointer; }
.shelf-end-button:hover { border-color: #849b91; color: var(--green-dark); }
.shelf-grid, .result-shelf { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 7px), #9ca9a4 calc(25% - 7px), #dce2df 25%); padding: 9px 11px 13px; }
.shelf-grid { min-height: 505px; }
.yogurt-item { position: relative; min-width: 0; display: grid; place-items: end center; padding: 10px 3px 16px; border-right: 1px solid rgba(92,110,102,.12); }
.yogurt-item img { width: min(82px, 92%); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(22,37,32,.14)); pointer-events: none; }
.shelf-grid .yogurt-item.gaze-active::after { content: ""; position: absolute; z-index: 5; inset: 4px; border-radius: 12px; background: conic-gradient(#17d5e2 var(--gaze-progress, 0deg), rgba(23,213,226,.13) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0); pointer-events: none; }
.shelf-grid .yogurt-item.gaze-identified { z-index: 2; border-radius: 10px; background: rgba(201,242,102,.14); box-shadow: inset 0 0 0 3px rgba(87,148,45,.9), 0 0 22px rgba(154,215,79,.42); animation: targetConfirmed .45s ease-out; }
.shelf-grid .yogurt-item.gaze-identified::after { content: "✓"; position: absolute; z-index: 6; right: 7px; top: 7px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #173027; background: var(--lime); font-size: 14px; font-weight: 900; box-shadow: 0 3px 12px rgba(22,48,38,.2); }
.shelf-grid .yogurt-item.gaze-identified.gaze-probable { background: rgba(242,177,102,.13); box-shadow: inset 0 0 0 3px rgba(216,107,43,.86), 0 0 22px rgba(216,107,43,.28); }
.shelf-grid .yogurt-item.gaze-identified.gaze-probable::after { background: #f2b166; }
@keyframes targetConfirmed { 0% { transform: scale(.96); } 60% { transform: scale(1.025); } 100% { transform: scale(1); } }
.yogurt-label { position: absolute; left: 10%; right: 10%; bottom: 22px; min-height: 27px; display: grid; place-items: center; padding: 3px 2px; border-radius: 4px; color: #173027; background: var(--flavor, #e3efe9); border: 1px solid rgba(25,50,41,.18); font-size: clamp(8px, .82vw, 11px); font-weight: 800; text-align: center; line-height: 1.05; }
.shelf-talker { position: absolute; z-index: 3; left: 3%; right: 3%; bottom: 1px; min-height: 17px; display: grid; place-items: center; color: white; background: #c9282d; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,.25); font-size: clamp(7px, .72vw, 10px); font-weight: 900; line-height: 1; letter-spacing: .02em; }
.yogurt-item.target-reveal::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; transform: translate(-50%,-50%); border: 2px dashed rgba(18,102,79,.65); border-radius: 50%; pointer-events: none; }
.yogurt-item.target-reveal.target-wic::after { top: 84%; border-color: rgba(186,39,45,.72); }
.yogurt-item.target-reveal.target-confirmed::after { border-style: solid; border-width: 3px; background: rgba(18,102,79,.04); }
.yogurt-item.target-reveal.target-probable::after { border-width: 3px; border-color: rgba(216,107,43,.82); background: rgba(216,107,43,.04); }
.yogurt-item.target-reveal.target-seen::before { content: attr(data-attention-status) " ✓"; position: absolute; z-index: 4; left: 50%; top: 4px; transform: translateX(-50%); color: white; background: var(--green); border-radius: 50px; padding: 3px 7px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.yogurt-item.target-reveal.target-probable::before { background: var(--warning); }
.yogurt-item.target-reveal.target-wic.target-seen::before { top: auto; bottom: 3px; background: #b9272c; }
.tracking-warning { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #fff3ea; color: #803e18; border: 1px solid #efc4a9; padding: 11px 16px; border-radius: 9px; box-shadow: var(--shadow); font-size: 14px; }
.shelf-gaze-ring { --dwell-progress: 0deg; position: fixed; z-index: 7; width: 86px; height: 86px; margin: -43px; border-radius: 50%; background: conic-gradient(#17d5e2 var(--dwell-progress),rgba(23,213,226,.12) 0); -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - 6px),#000 0); mask: radial-gradient(farthest-side,transparent calc(100% - 6px),#000 0); pointer-events: none; filter: drop-shadow(0 3px 7px rgba(0,49,57,.28)); }
.shelf-gaze-ring.complete { background: conic-gradient(var(--lime) 360deg,transparent 0); animation: dwellComplete .45s ease-out; }
@keyframes dwellComplete { 50% { transform: scale(1.18); } }

.results-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 32px; }
.results-heading h1 { font-size: 48px; }
.results-heading p:last-child { color: var(--muted); margin: 10px 0 0; }
.result-actions { display: flex; gap: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric { padding: 19px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.metric span, .metric small { display: block; color: var(--muted); }
.metric span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; font: 700 25px Manrope; margin: 8px 0 3px; overflow: hidden; text-overflow: ellipsis; }
.metric small { font-size: 12px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
.heatmap-panel { padding: 22px; }
.heatmap-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.heat-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.heat-legend i { width: 90px; height: 8px; border-radius: 10px; background: linear-gradient(90deg,#1d65d6,#36c9ba,#f0e831,#ff4a23); }
.heatmap-stage { position: relative; min-height: 460px; background: #fbfcfb; border: 1px solid var(--line); overflow: hidden; border-radius: 10px; }
.result-text { position: relative; z-index: 1; padding: clamp(38px, 6vw, 70px); line-height: 1.72; color: #25322e; }
#heatmap-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; }
.insight-panel { padding: 22px; align-self: start; }
.insight-panel h2 { margin-bottom: 5px; }
.word-ranking { list-style: none; margin: 22px 0; padding: 0; counter-reset: words; }
.word-ranking li { counter-increment: words; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.word-ranking li::before { content: counter(words, decimal-leading-zero); color: #9aa9a3; font-size: 11px; }
.word-ranking b { overflow: hidden; text-overflow: ellipsis; }
.word-ranking span { color: var(--green); font-size: 12px; }
.research-note { background: #f4f8e9; border: 1px solid #dce8bc; border-radius: 12px; padding: 15px; margin: 24px 0 18px; }
.research-note strong { color: #496019; }
.research-note p { color: #637049; font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.comparison-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.roi-note { color: var(--muted); font-size: 12px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.comparison-grid.single-result { grid-template-columns: minmax(0,760px); justify-content: center; }
.result-trial { position: relative; overflow: hidden; box-shadow: none; }
.result-trial > header { min-height: 55px; position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 13px 17px; background: white; border-bottom: 1px solid var(--line); }
.result-trial > header span { color: var(--green); font-size: 12px; font-weight: 700; }
.result-stimulus { position: relative; z-index: 1; min-height: 330px; padding: 34px; display: grid; place-items: center; text-align: center; text-wrap: balance; font: 700 clamp(19px, 1.9vw, 28px)/1.4 Manrope, sans-serif; }
.result-stimulus .message-copy-uniform { gap: .14em; }
.notification-result { min-height: 350px; padding: 24px; background: #20332d; }
.notification-result .phone-mockup { width: 230px; min-height: 320px; border-width: 5px; border-radius: 30px; padding: 15px 10px; }
.notification-result .phone-mockup::before { width: 72px; height: 17px; margin: -10px auto 30px; }
.notification-result .phone-status { top: 14px; left: 18px; right: 18px; font-size: 8px; }
.notification-result .notification-card { padding: 11px; border-radius: 13px; }
.notification-result .notification-app { margin-bottom: 7px; font-size: 8px; }
.notification-result .notification-app i { width: 20px; height: 20px; border-radius: 6px; }
.notification-result .notification-card p { font-size: 11px; }
.result-trial > canvas { position: absolute; z-index: 3; left: 0; top: 55px; width: 100%; height: calc(100% - 96px); pointer-events: none; mix-blend-mode: multiply; }
.result-trial > p { position: relative; z-index: 4; min-height: 41px; margin: 0; padding: 11px 17px; color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: 12px; }
.shelf-result-stack { display: grid; gap: 18px; }
.shelf-result { min-height: 430px; }
.result-shelf { position: relative; z-index: 1; min-height: 335px; }
.result-shelf .yogurt-item { padding-top: 3px; padding-bottom: 12px; }
.result-shelf .yogurt-item img { width: min(58px, 88%); }
.result-shelf .yogurt-label { bottom: 16px; min-height: 20px; font-size: 8px; }
.result-shelf .shelf-talker { font-size: 7px; min-height: 13px; border-width: 1px; }
.results-note { max-width: none; margin-top: 24px; }
.end-actions { display: flex; justify-content: flex-end; padding-top: 10px; }

.calibration-report, .attention-report-start { display: grid; gap: 24px; margin-bottom: 24px; }
.report-page { min-height: 790px; position: relative; padding: 28px 28px 48px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.report-masthead { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px solid var(--green); }
.report-masthead h1 { font-size: 40px; }
.report-masthead h2 { font-size: 28px; }
.report-masthead .eyebrow { margin-bottom: 7px; }
.report-identity { display: grid; justify-items: end; text-align: right; }
.report-identity strong { font: 700 16px Manrope, sans-serif; }
.report-identity span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.report-intro { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.calibration-capture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calibration-capture-card { overflow: hidden; background: #f8faf9; border: 1px solid var(--line); border-radius: 13px; }
.capture-image-wrap { position: relative; background: #10231d; }
.calibration-capture-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #10231d; }
.capture-unavailable { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #afc0ba; font-size: 12px; }
.capture-target-map { position: absolute; top: 9px; right: 9px; width: 52px; height: 34px; background: rgba(7,24,18,.78); border: 1px solid rgba(255,255,255,.55); border-radius: 5px; }
.capture-target-map::before, .capture-target-map::after { content: ""; position: absolute; background: rgba(255,255,255,.2); }
.capture-target-map::before { top: 50%; left: 0; right: 0; height: 1px; }
.capture-target-map::after { left: 50%; top: 0; bottom: 0; width: 1px; }
.capture-target-map i { position: absolute; z-index: 1; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px rgba(201,242,102,.25); }
.capture-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px 8px; }
.capture-card-head strong { font: 700 14px Manrope, sans-serif; }
.capture-card-head span { color: var(--green); font-size: 11px; font-weight: 800; }
.capture-data { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0 13px 12px; }
.capture-data div { min-width: 0; padding: 6px 8px 2px 0; border-top: 1px solid var(--line); }
.capture-data dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.capture-data dd { margin: 3px 0 0; font-size: 12px; font-weight: 700; }
.report-footer { position: absolute; left: 28px; right: 28px; bottom: 18px; padding-top: 9px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; text-align: right; }
.calibration-final-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; }
.calibration-capture-grid.single { grid-template-columns: 1fr; }
.calibration-summary-panel { padding: 22px; background: #f4f8e9; border: 1px solid #dce8bc; border-radius: 14px; }
.calibration-summary-panel h3 { margin: 0 0 14px; font: 700 20px Manrope, sans-serif; }
.calibration-summary-panel dl { margin: 0; }
.calibration-summary-panel dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #dce8bc; }
.calibration-summary-panel dt { color: #637049; font-size: 12px; }
.calibration-summary-panel dd { margin: 0; color: #30450b; font-size: 12px; font-weight: 800; text-align: right; }
.calibration-summary-panel > p { color: #637049; font-size: 11px; line-height: 1.55; margin: 16px 0 0; }
.verification-matrix-wrap { margin-top: 14px; }
.verification-matrix-wrap > strong { display: block; margin-bottom: 6px; color: #30450b; font-size: 11px; }
.verification-matrix { display: grid; grid-template-columns: 1fr; gap: 3px; }
.verification-matrix span { display: flex; justify-content: space-between; gap: 6px; color: #637049; font-size: 9px; }
.verification-matrix b { color: #30450b; }
.report-metric-table { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.report-metric-table div { min-width: 0; padding: 10px 12px; background: #f8faf9; border-right: 1px solid var(--line); }
.report-metric-table div:last-child { border-right: 0; }
.report-metric-table dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.report-metric-table dd { margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 800; }
.shelf-metrics { grid-template-columns: repeat(6,1fr); }
.shelf-metrics div { padding: 8px 9px; }
.target-timeline { display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; margin-top: 8px; }
.target-timeline span { min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fbfcfb; font-size: 8px; line-height: 1.3; }
.target-timeline span b { display: block; color: var(--ink); font-size: 9px; }
.target-timeline span.core { border-color: #a9ce8a; background: #f1f8e7; }
.target-timeline span.probable { border-color: #edc19f; background: #fff6ef; }
.accuracy-disclosure { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: center; margin-top: 18px; padding: 16px 18px; background: #f7faf8; border: 1px solid var(--line); border-radius: 14px; }
.accuracy-copy strong { font: 700 15px Manrope, sans-serif; }
.accuracy-copy p { margin: 7px 0 5px; color: #4f6059; font-size: 11px; line-height: 1.45; }
.accuracy-copy small { color: #9a4c25; font-size: 10px; line-height: 1.4; }
.accuracy-diagram { display: block; width: 100%; max-height: 150px; }
.attention-report-start { padding-top: 8px; }
.attention-sheet .comparison-section { margin-top: 20px; }
.shelf-report-page .section-heading { margin-top: 0; padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.shelf-report-page .shelf-result { min-height: 540px; }
.shelf-report-page .result-shelf { min-height: 445px; }
.analytical-sheet { color: var(--ink); }
.descriptive-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.descriptive-summary article { padding: 14px; background: #f7faf8; border: 1px solid var(--line); border-radius: 12px; }
.descriptive-summary span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.descriptive-summary strong { display: block; margin-top: 5px; color: var(--green); font: 700 20px Manrope, sans-serif; }
.descriptive-summary small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.report-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.report-prose-card { padding: 16px 18px; background: #f4f8e9; border: 1px solid #dce8bc; border-radius: 12px; }
.report-prose-card.caution { background: #fff7ef; border-color: #f0d3bb; }
.report-prose-card h3 { margin: 0 0 7px; color: var(--green); font: 700 15px Manrope, sans-serif; }
.report-prose-card p { margin: 0; color: #53635d; font-size: 11px; line-height: 1.55; }
.table-section-title { margin: 16px 0 7px; color: var(--green); font: 700 15px Manrope, sans-serif; }
.analysis-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; font-size: 9px; }
.analysis-table th { padding: 8px 7px; color: #f5fbf8; background: var(--green); border-right: 1px solid rgba(255,255,255,.16); font-size: 8px; line-height: 1.2; text-align: left; text-transform: uppercase; letter-spacing: .035em; }
.analysis-table td { padding: 7px; color: #44544e; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 1.3; vertical-align: middle; overflow-wrap: anywhere; }
.analysis-table tbody tr:nth-child(even) td { background: #f8faf9; }
.analysis-table th:last-child, .analysis-table td:last-child { border-right: 0; }
.analysis-table td strong { color: var(--ink); }
.analysis-table .status-complete { color: #12664f; font-weight: 800; }
.analysis-table .status-probable { color: #a65322; font-weight: 800; }
.analysis-table .status-incomplete { color: #9c3d31; font-weight: 800; }
.calibration-table-page .analysis-table:first-of-type th:nth-child(1) { width: 14%; }
.wide-analysis-table th:nth-child(1) { width: 10%; }
.wide-analysis-table th:nth-child(2) { width: 17%; }
.wide-analysis-table th:nth-child(4) { width: 19%; }
.definition-table th:first-child { width: 17%; }
.definition-table th:nth-child(2) { width: 45%; }
.target-analysis-table { font-size: 8px; }
.target-analysis-table th, .target-analysis-table td { padding: 6px 5px; }
.target-analysis-table th:nth-child(1) { width: 8%; }
.target-analysis-table th:nth-child(2) { width: 13%; }
.target-analysis-table th:nth-child(10) { width: 12%; }
.compact-notes { margin-top: 16px; }

.loading-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8,25,19,.92); color: white; display: grid; place-content: center; justify-items: center; gap: 12px; }
.loading-overlay span { color: #aabbb5; font-size: 13px; }
.loader { width: 45px; height: 45px; border-radius: 50%; border: 3px solid #3b5149; border-top-color: var(--lime); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .setup-grid, .result-grid, .comparison-grid, .calibration-final-layout, .accuracy-disclosure { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .results-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .privacy-chip { display: none; }
  .setup-view, .results-view { padding: 38px 18px; }
  .camera-panel, .stimulus-panel { padding: 18px; }
  .camera-row { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .result-actions, .validation-actions { width: 100%; flex-direction: column; }
  .result-actions .button { width: 100%; }
  .participant-fields, .calibration-capture-grid { grid-template-columns: 1fr; }
  .report-page { min-height: auto; padding: 20px; }
  .report-masthead { align-items: start; flex-direction: column; }
  .report-identity { justify-items: start; text-align: left; }
  .report-footer { position: static; margin-top: 24px; }
  .calibration-topbar { padding: 22px; }
  .calibration-phase { left: 22px; top: 83px; }
  .calibration-topbar h2 { font-size: 16px; }
  .live-tracking-panel { width: 230px; }
  .live-preview { height: 129px; }
  .reading-card { margin: 24px auto; padding: 30px 22px; }
  .preview-view { padding: 45px 18px; }
  .preview-sequence { gap: 8px; }
  .preview-sequence span { min-width: 82px; }
  .preview-sequence b { font-size: 18px; }
  .reading-card.notification-stimulus { padding: 16px; }
  .phone-mockup { min-height: 540px; }
  .voice-panel { padding: 32px 20px; }
  .guidance-steps { grid-template-columns: 1fr; }
  .shelf-grid, .result-shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(12.5% - 5px), #9ca9a4 calc(12.5% - 5px), #dce2df 12.5%); }
  .shelf-grid { min-height: 840px; }
  .shelf-header { align-items: start; flex-direction: column; gap: 4px; }
  .report-metric-table, .shelf-metrics { grid-template-columns: repeat(2,1fr); }
  .target-timeline { grid-template-columns: repeat(4,1fr); }
  .descriptive-summary { grid-template-columns: repeat(2,1fr); }
  .report-two-column { grid-template-columns: 1fr; }
}

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

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: white; }
  .app-header, #setup-view, #guidance-view, #calibration-view, #test-view, .result-actions, .end-actions { display: none !important; }
  #results-view { display: block !important; max-width: none; padding: 0; }
  .results-heading { margin-bottom: 16px; }
  .results-heading h1 { font-size: 34px; }
  .calibration-report, .attention-report-start { display: block; margin: 0; }
  .report-page { min-height: 190mm; height: 190mm; padding: 7mm; margin: 0; border: 0; border-radius: 0; break-after: page; page-break-after: always; overflow: hidden; }
  .report-masthead { margin-bottom: 5mm; padding-bottom: 4mm; }
  .report-masthead h1 { font-size: 30px; }
  .report-masthead h2 { font-size: 23px; }
  .calibration-capture-grid { gap: 4mm; }
  .calibration-capture-card img { aspect-ratio: 16 / 8.2; }
  .capture-card-head { padding: 2.5mm 3mm 1.5mm; }
  .capture-data { padding: 0 3mm 2.5mm; }
  .report-footer { left: 8mm; right: 8mm; bottom: 5mm; }
  .attention-report-start { break-before: page; page-break-before: always; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .comparison-section, .result-trial, .metric-grid { break-inside: avoid; }
  .comparison-section { margin-top: 20px; }
  .comparison-grid { grid-template-columns: 1fr 1fr; }
  .shelf-result { min-height: 360px; }
  .result-shelf { min-height: 270px; }
  .report-metric-table { margin-top: 3mm; }
  .report-metric-table div { padding: 2mm 2.4mm; }
  .shelf-metrics { grid-template-columns: repeat(6,1fr); }
  .target-timeline { grid-template-columns: repeat(8,1fr); }
  .results-note { margin-top: 16px; }
  .analytical-sheet .report-masthead { margin-bottom: 4mm; }
  .analysis-table th { padding: 1.8mm 1.6mm; }
  .analysis-table td { padding: 1.55mm 1.6mm; }
  .target-analysis-table th, .target-analysis-table td { padding: 1.45mm 1.25mm; }
  .report-prose-card { padding: 3.2mm 3.8mm; }
}
