/* Participant pages fit the available viewport; researcher tables retain scrolling. */
body:not(.researcher-view){margin:0;}
body:not(.researcher-view) .study-container{width:min(1100px,calc(100vw - 32px));max-width:1100px;margin:12px auto;}
body:not(.researcher-view) .study-card{padding:20px 28px;}
button:disabled,button:disabled:hover{background:#d7dce2!important;border-color:#d7dce2!important;color:#737d89!important;cursor:not-allowed;opacity:1;box-shadow:none;}
.guide-page{display:flex;flex-direction:column;min-height:min(570px,calc(100dvh - 90px));}.guide-page h1{font-size:30px;margin:8px 0 14px;}.guide-content{flex:1;min-height:0;}.guide-content p{font-size:17px;line-height:1.5;}.guide-image{display:block;max-width:100%;width:auto;height:min(340px,43dvh);object-fit:contain;margin:10px auto;}.guide-content .example-choices{max-width:560px;margin:28px auto;}
.navigation{display:flex;justify-content:center;gap:20px;align-items:center;margin-top:18px;}.navigation button{min-width:150px;margin:0;}
.intro-video video{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 145px);margin:auto;}.intro-video{display:flex;flex-direction:column;align-items:center;}
.demographic-basics{display:grid;grid-template-columns:1fr 1fr;gap:20px;}.demographics-form fieldset{padding:12px;margin:12px 0;}.demographics-form legend{font-size:18px;}.experience-options{display:flex;flex-wrap:wrap;gap:18px;}.experience-options label{display:flex;align-items:center;gap:8px;margin:0;}.experience-options input{width:auto;margin:0;}.demographics-form>button{display:block;margin:16px auto 0;}
.overall-clock{position:fixed;top:0;left:0;right:0;z-index:10000;background:#20364b;color:white;display:flex;justify-content:center;gap:16px;padding:8px;font-size:15px;font-variant-numeric:tabular-nums;}.overall-clock+main.study-container{margin-top:48px;}.overall-clock~main .task-layout{grid-template-rows:minmax(200px,1fr) 190px 28px;height:calc(100dvh - 120px);min-height:430px;}.task-action-area{min-height:180px!important;}.overall-clock~main .task-content{min-height:0;}.overall-clock~main .rack-inspection{padding-top:45px;}.rating{display:flex;justify-content:space-between;gap:8px;}.rating label{display:flex;gap:8px;align-items:center;}.rating input{width:auto;}
@media(max-width:650px){.demographic-basics{grid-template-columns:1fr 1fr;}.guide-content p{font-size:15px;}.guide-image{height:32dvh;}.experience-options{gap:12px;}.navigation button{min-width:110px;}.study-team{grid-template-columns:1fr 1fr;}.rating label{flex-direction:column;}.guide-page{min-height:0;}}

.task-preview-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center;}.trial-preview{margin:0;padding:14px;border:1px solid #dce3ec;border-radius:12px;background:white;}.preview-clock{background:#20364b;color:white;text-align:center;padding:7px;border-radius:6px;font-size:12px;}.trial-preview .target-display{background:#f3f6f8;text-align:center;margin:10px 0;padding:8px;}.trial-preview h2{font-size:26px;margin:0;}.trial-preview .eyebrow{font-size:10px;margin:0;}.preview-pepper{display:flex;align-items:center;gap:12px;}.preview-pepper img{width:78px;height:100px;object-fit:contain;}.preview-pepper .speech-bubble{padding:12px;flex:1;}.preview-pepper h3{font-size:13px;margin:0 0 6px;}.preview-pepper .speech-bubble p{font-size:14px;margin:0;}.trial-preview .preview-prompt{text-align:center;font-size:13px;margin:8px 0;}.trial-preview .example-choices{margin:0;gap:6px;}.trial-preview .example-choices span{padding:7px;}.trial-preview .example-manual{max-width:170px;margin:10px auto 0;padding:7px;}.trial-preview .preview-trial-time{text-align:center;font-size:17px;margin:6px 0;font-variant-numeric:tabular-nums;}.trial-preview figcaption{text-align:center;color:#64748b;font-size:11px;}.preview-explanation p,.preview-explanation li{font-size:15px;line-height:1.5;}.preview-explanation ol{padding-left:22px;}.preview-explanation li{margin-bottom:12px;}@media(max-width:700px){.task-preview-layout{grid-template-columns:1fr;gap:12px;}.trial-preview{max-width:400px;width:100%;margin:auto;}.preview-explanation p,.preview-explanation li{font-size:14px;}}

/* Reserve an independent countdown row, shared with the feedback footer geometry. */
.overall-clock~main .task-layout{grid-template-rows:minmax(200px,1fr) 190px 64px;row-gap:10px;min-height:474px;}
.trial-clock-slot{display:flex;align-items:center;justify-content:center;min-height:64px;}
.trial-countdown{display:flex;align-items:center;justify-content:center;gap:12px;margin:0;padding:10px 18px;border:2px solid #26824b;border-radius:10px;background:#e9f7ee;color:#176338;line-height:1.2;white-space:nowrap;}
.trial-countdown .clock-label{font-size:14px;font-weight:600;}.trial-countdown strong{font-size:28px;font-weight:750;font-variant-numeric:tabular-nums;}
.trial-countdown.clock-urgent{background:#fff0f0;border-color:#c22c35;color:#a61923;}
.inspection-actions{align-items:center;justify-content:space-between;gap:16px;min-height:72px;flex-shrink:0;}.inspection-actions .trial-countdown{flex-shrink:0;}.overall-clock~main .task-footer{height:64px;min-height:64px;}

.manual-guide-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:26px;align-items:center;}.manual-guide-layout figure{margin:0;}.manual-guide-image{width:100%;height:auto;display:block;}.manual-guide-layout figcaption{font-size:15px;text-align:center;line-height:1.5;margin-top:12px;}.manual-steps{padding-left:24px;margin:0;}.manual-steps li{font-size:17px;line-height:1.45;margin-bottom:12px;}.instruction-note{background:#edf4ff;padding:14px;border-radius:10px;}.timing-guide{display:grid;grid-template-columns:1fr 1fr;gap:24px;}.timing-guide section{padding:18px;background:#f3f6f8;border-radius:12px;}.timing-guide h2{font-size:22px;}@media(max-width:700px){.manual-guide-layout,.timing-guide{grid-template-columns:1fr;gap:14px;}.manual-steps li{font-size:16px;}.manual-guide-image{max-height:230px;object-fit:contain;}}

/* Spacious single-page questionnaires with aligned response columns. */
body:not(.researcher-view) .study-container{width:min(1240px,calc(100vw - 48px));max-width:1240px;}
body:not(.researcher-view) .study-card{padding:24px 32px;}
.survey-page{max-width:1120px;margin:auto;}.survey-page h1{font-size:28px;margin:0 0 12px;}.survey-intro{font-size:16px;line-height:1.45;margin-bottom:16px;}.survey-matrix{border:1px solid #dce3ec;border-radius:10px;overflow:hidden;}.survey-row{display:grid;grid-template-columns:minmax(190px,2.8fr) repeat(var(--options),minmax(44px,1fr));align-items:center;min-height:42px;border-bottom:1px solid #e2e8f0;}.survey-row:last-child{border-bottom:0;}.survey-row:nth-child(even){background:#f5f8fb;}.survey-row>span{padding:8px 12px;}.survey-row label{display:flex;align-items:center;justify-content:center;margin:0;min-height:42px;cursor:pointer;}.survey-row input{width:19px;height:19px;margin:0;}.survey-head{background:#eaf0f6;font-weight:600;font-size:14px;text-align:center;}.survey-head>span:first-child{text-align:left;}.survey-label{font-size:16px;line-height:1.3;}.survey-label small{display:block;font-size:12px;color:#536479;margin-top:3px;}.survey-page .navigation{margin-top:16px;}.consent-contacts{font-size:14px;line-height:1.5;}.consent-grid{gap:14px 28px;}.consent-section p{font-size:15px;line-height:1.45;}
@media(max-height:700px){body:not(.researcher-view) .study-card{padding:18px 26px;}.survey-page h1{font-size:25px;}.survey-intro{margin-bottom:10px;}.survey-page .navigation{margin-top:12px;}.survey-row,.survey-row label{min-height:38px;}}
