:root{font-family:system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:#1a2b37;background:#f3f5f7;font-size:16px;line-height:1.65}main *{box-sizing:border-box}main [hidden]{display:none!important}body{margin:0}main{max-width:900px;margin:auto;padding:32px 24px 80px}main .brand{font-weight:800;letter-spacing:.12em;color:#256967}main .brand small{font-size:10px;margin-left:12px;color:#596878}main h1{font-size:clamp(32px,6vw,52px);line-height:1.2;margin:20px 0}main h2{font-size:22px;margin:0 0 14px}main h3{font-size:18px}main header{margin-bottom:32px}main p{margin:12px 0}main header p{max-width:650px;color:#536273}main .card{background:#fff;border:1px solid #dfe5ea;border-radius:18px;padding:26px;margin:22px 0}main .subtle{background:transparent}main #notice{padding:14px 18px;border-left:4px solid #377e79;background:#e5efee;border-radius:6px;white-space:pre-line}main label{display:block;margin:15px 0}main .check{display:flex;gap:12px;align-items:flex-start}main .check input{margin-top:6px;width:20px;height:20px;flex-shrink:0}main input:not([type=checkbox]),main select{display:block;border:1px solid #a9b8c5;border-radius:8px;padding:12px;width:100%;font:inherit;background:white;color:inherit;margin-top:5px}main button{font:inherit;font-weight:650;border:1px solid transparent;border-radius:9px;padding:12px 18px;min-height:48px;background:#245f60;color:white;cursor:pointer;touch-action:manipulation}main button.secondary{color:#254d5a;background:#edf3f4;border-color:#d2dfe3}main button.quiet{background:transparent;color:#465865;border-color:#bac6cf}main button:disabled{opacity:.45;cursor:not-allowed}main button:focus-visible,main input:focus-visible,main select:focus-visible{outline:3px solid #aa6508;outline-offset:3px}main .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}main .mission-head{display:flex;align-items:center;justify-content:space-between}main #board{display:block;width:100%;height:min(56vh,480px);min-height:260px;background:white;border-radius:18px;outline:1px solid #ccd8e0;touch-action:none;user-select:none}main #mission>p{font-size:15px}main table{width:100%;border-collapse:collapse;font-size:14px}main td,main th{text-align:left;border-bottom:1px solid #dfe5ea;padding:8px}main pre{white-space:pre-wrap;word-break:break-word;font-size:13px;max-height:420px;overflow:auto}main footer{font-size:12px;color:#586875;margin-top:30px}main #paused{background:#fff0cd;padding:12px;border-radius:8px}@media(max-width:520px){main{padding:20px 16px 60px}main .card{padding:20px}main .actions button{flex:1 1 40%}main #board{height:45vh;min-height:230px}main .mission-head h2{font-size:20px}}
:root:has(body.performing) header,:root:has(body.performing) section.subtle,:root:has(body.performing) footer{display:none}
body.performing main{padding-top:12px}
body.performing #notice{font-size:14px;margin-top:0;padding:8px 12px}main details{margin:18px 0;color:#465865}main summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}main details p{font-size:14px}main #setup{max-width:650px}main #setup>label:first-child{margin-top:0}main #start{width:100%}main #person{font-weight:650}

/* Translation chrome is not part of the app. Best-effort opt-out, not browser UI control. */
#goog-gt-tt,iframe.goog-te-balloon-frame{display:none!important}
main .transition-card{height:min(56vh,480px);min-height:260px;border-radius:22px;background:linear-gradient(145deg,#e2f1ed,#f9fbf4);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;animation:arrival .24s ease-out}
main .transition-card h2{font-size:clamp(24px,4vw,36px);letter-spacing:-.04em}
main .transition-mark{font-size:52px;color:#397c72;line-height:1}
main #instruction{margin:18px 0 8px;font-size:clamp(24px,4vw,34px);letter-spacing:-.035em}
main #progress{color:#596878;font-size:14px}
@keyframes arrival{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){main .transition-card{animation:none}}
@media(max-width:520px){main .transition-card{height:45vh;min-height:230px}}

#age::placeholder{color:#768492}
#sex{border:0;padding:0;margin:15px 0}
#sex legend{padding:0}
.choices{display:flex;gap:8px;margin-top:5px}
main .choices label{position:relative;flex:1;margin:0;cursor:pointer}
main .choices input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0}
.choices span{display:block;padding:10px;text-align:center;border:1px solid #a9b8c5;border-radius:8px}
.choices input:checked+span{color:white;background:#245f60;border-color:#245f60}
.choices input:focus-visible+span{outline:3px solid #aa6508;outline-offset:2px}

/* Research participant interface */
.clinical { background:#f1f5f9; color:#0f2942; }
.clinical main { max-width:828px; }
.clinical header { padding:clamp(20px,4vw,36px); background:#0f2942; color:white; border-radius:16px; border-top:5px solid #4279ff; margin-bottom:16px; }
.clinical header .brand { display:inline-block; border:1px solid #69849d; border-radius:20px; padding:4px 12px; color:#e2efff; letter-spacing:0; font-size:14px; }
.clinical header h1 { font-size:clamp(27px,4vw,38px); letter-spacing:-.035em; word-break:keep-all; margin:18px 0 8px; }
.clinical header p { color:#dfebf7; }
.clinical header .subtitle { color:#bcd5ff; font-weight:600; }
.clinical header small { color:#d3e2f5; }
.clinical #setup { max-width:none; padding:clamp(18px,4vw,32px); border-color:#cbd5e1; box-shadow:0 8px 28px #0f29420c; }
.clinical #notice { background:#eff6ff; border-color:#1d4ed8; color:#233e65; }
.clinical #setup input:not([type=radio]):not([type=checkbox]), .clinical .choices span { background:#f8fafc; border-color:#a6b6c8; min-height:50px; }
.clinical .choices input:checked+span { background:#e4edff; border-color:#1d4ed8; color:#153dac; font-weight:700; box-shadow:inset 0 0 0 1px #1d4ed8; }
.clinical .check input { accent-color:#1d4ed8; }
.clinical #setup details { background:#f5f8fc; border:1px solid #d8e2ef; border-radius:10px; padding:12px 16px; }
.clinical button:not(.secondary):not(.quiet) { background:#1d4ed8; }
.clinical #start { min-height:54px; }
.clinical #start:disabled { background:#78889c; opacity:1; }
.clinical .transition-card { background:#edf4ff; }
.clinical .transition-mark { color:#1d4ed8; }
.clinical footer { text-align:center; }
