/* Cabin Voice student mobile H5 UI/UX increment. Scoped to the student role. */
body.student-mode{background:var(--cv-page);color:var(--cv-text)}
body.student-mode .student-app{min-height:100dvh;padding-bottom:calc(82px + env(safe-area-inset-bottom));background:var(--cv-page);color:var(--cv-text)}
body.student-mode .mobile-header{height:64px;padding:0 18px;background:rgba(255,255,255,.92);border-color:var(--cv-border-subtle);backdrop-filter:blur(18px);color:var(--cv-text)}
body.student-mode .mobile-main{max-width:560px;padding:20px 16px 32px}
body.student-mode .mobile-nav{height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.96);border-color:var(--cv-border-subtle);box-shadow:0 -8px 24px rgba(15,23,42,.06)}
body.student-mode .mobile-nav button{color:var(--cv-text-tertiary);font:500 11px/1 var(--cv-font)}
body.student-mode .mobile-nav button span{font-size:19px}
body.student-mode .mobile-nav button.active{color:var(--cv-info)}
body.student-mode .brand-inline strong,body.student-mode .page-head h1,body.student-mode .record-head h2{color:var(--cv-text)}
body.student-mode .brand-inline small,body.student-mode .page-head p{color:var(--cv-text-secondary)}
body.student-mode .mobile-avatar{border-color:#d2e5f8;background:var(--cv-info-soft);color:var(--cv-info)}
body.student-mode .student-greeting{display:flex;justify-content:space-between;align-items:flex-start;margin:3px 2px 18px}
body.student-mode .student-greeting h1{margin:0;font-size:28px;letter-spacing:-.03em}
body.student-mode .student-greeting p{margin:7px 0 0;color:var(--cv-text-secondary);font-size:14px}
body.student-mode .student-section-title{margin:24px 2px 10px;font-size:15px}
body.student-mode .task-card,body.student-mode .mobile-card{border:1px solid var(--cv-border-subtle);border-radius:var(--cv-radius-card);background:var(--cv-card);box-shadow:0 3px 14px rgba(15,23,42,.05);color:var(--cv-text)}
body.student-mode .student-task-card{padding:18px;margin:0 0 12px}
body.student-mode .student-task-card h2{margin:11px 0 7px;font-size:18px;line-height:1.35}
body.student-mode .student-task-card p{margin:0;color:var(--cv-text-secondary);font-size:13px;line-height:1.7}
body.student-mode .student-task-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}
body.student-mode .student-task-meta span{padding:10px;border-radius:9px;background:var(--cv-subtle);color:var(--cv-text-secondary);font-size:12px}
body.student-mode .student-task-meta b{display:block;margin-top:4px;color:var(--cv-text);font-size:13px}
body.student-mode .btn{min-height:44px;border-radius:10px;font-weight:600}
body.student-mode .btn.primary{background:var(--cv-action);border-color:var(--cv-action);color:#fff}
body.student-mode .btn.blue{background:var(--cv-info);border-color:var(--cv-info);color:#fff}
body.student-mode .btn.danger{background:#fff;border-color:#e5b7b3;color:var(--cv-danger)}
body.student-mode .status{border-radius:999px}
body.student-mode .status.green,body.student-mode .status.done{background:var(--cv-success-soft);color:var(--cv-success)}
body.student-mode .status.blue,body.student-mode .status.active{background:var(--cv-info-soft);color:var(--cv-info)}
body.student-mode .status.pending,body.student-mode .status.waiting{background:var(--cv-warning-soft);color:var(--cv-warning)}
body.student-mode .record-head{min-height:44px}.student-exam-exit{width:40px;height:40px;border:0;border-radius:50%;background:var(--cv-card);color:var(--cv-text);font-size:23px;box-shadow:0 1px 6px rgba(15,23,42,.08)}
body.student-mode .question-progress{margin:8px 0 15px;color:var(--cv-text-secondary);font-size:13px}
body.student-mode .student-progress{height:5px;margin:0 0 20px;border-radius:99px;background:#e7e7eb;overflow:hidden}.student-progress i{display:block;height:100%;background:var(--cv-info)}
body.student-mode .draw-result{text-align:center;padding:30px 20px}.draw-result .paper-symbol{width:70px;height:70px;margin:0 auto 18px;display:grid;place-items:center;border-radius:22px;background:var(--cv-success-soft);color:var(--cv-success);font-size:30px}.draw-result h2{margin:10px 0 7px;font-size:23px}.draw-result p{color:var(--cv-text-secondary);font-size:14px;line-height:1.7}
body.student-mode .preview-countdown{margin:16px 0 4px;color:var(--cv-text);font-size:46px;font-variant-numeric:tabular-nums;font-weight:700;letter-spacing:-.04em}
body.student-mode .preview-timing-bar{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 14px;margin:10px 0 14px;padding:12px 15px;border:1px solid rgba(34,111,175,.18);border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 4px 16px rgba(15,23,42,.08);backdrop-filter:blur(8px)}
body.student-mode .preview-timing-bar>span{color:var(--cv-text);font-size:14px;font-weight:650}body.student-mode .preview-timing-bar>small{grid-column:1/-1;color:var(--cv-text-secondary);font-size:11px}body.student-mode .preview-countdown.preview-countdown-compact{margin:0;font-size:30px;line-height:1;color:var(--cv-info);letter-spacing:0;font-variant-numeric:tabular-nums}
body.student-mode .preview-caption{text-align:center;color:var(--cv-text-secondary);font-size:12px}.preview-paper{padding:18px}.preview-paper h2{margin:10px 0;font-size:21px}.preview-tabs{padding-bottom:3px}.preview-tabs button{min-width:70px;padding:9px 12px;border-color:var(--cv-border);background:#fff;color:var(--cv-text-secondary)}.preview-tabs button.active{background:var(--cv-info);border-color:var(--cv-info);color:#fff}
body.student-mode .script-box{padding:20px;border-color:var(--cv-border-subtle);border-radius:12px;background:#fff;color:var(--cv-text);font-size:16px;line-height:2;box-shadow:inset 0 0 0 1px rgba(0,0,0,.01)}
body.student-mode .script-box .en{color:var(--cv-text-secondary);font-size:15px}
body.student-mode .record-stage{min-height:calc(100dvh - 105px);display:flex;flex-direction:column}.record-content-label{margin:18px 0 8px;color:var(--cv-text-secondary);font-size:12px;font-weight:600}.record-bottom{margin-top:auto;padding:18px 0 calc(8px + env(safe-area-inset-bottom));text-align:center}
body.student-mode .record-wave{margin:8px 0 12px}.record-wave i{background:linear-gradient(var(--cv-brand-500),var(--cv-action))}
body.student-mode .timer{margin:0;color:var(--cv-text);font-size:24px;font-variant-numeric:tabular-nums}.record-attempts{margin:6px 0 16px;color:var(--cv-text-secondary);font-size:12px}.record-tip{min-height:20px;color:var(--cv-text-secondary)!important;font-size:13px!important}
body.student-mode .record-main{width:82px;height:82px;border-color:rgba(33,138,85,.12);background:var(--cv-success);box-shadow:0 8px 28px rgba(33,138,85,.22)}body.student-mode .record-main.recording{border-color:rgba(244,63,74,.14);background:var(--cv-brand-500);box-shadow:0 8px 28px rgba(244,63,74,.22)}
body.student-mode .round-control{color:var(--cv-text-secondary)}body.student-mode .round-control span{border-color:var(--cv-border);background:#fff;color:var(--cv-text)}
body.student-mode .student-upload-status{min-height:34px;margin:8px 0;color:var(--cv-text-secondary);font-size:13px}.student-upload-status.success{color:var(--cv-success)}.student-upload-status.failed{color:var(--cv-danger)}
body.student-mode .submission-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.submission-summary div{padding:14px 6px;border-radius:10px;background:var(--cv-subtle);text-align:center}.submission-summary b{display:block;font-size:22px}.submission-summary span{color:var(--cv-text-secondary);font-size:11px}
.student-confirm-box{margin-top:16px;padding:15px;border-radius:10px;background:var(--cv-warning-soft);color:#703b09;font-size:13px;line-height:1.7}.student-submit-actions{display:grid;gap:10px}
.student-leave-layer{position:fixed;z-index:80;inset:0;display:grid;align-items:end;background:rgba(15,23,42,.42);padding:18px}.student-leave-sheet{max-width:520px;width:100%;margin:0 auto;padding:20px;border-radius:18px;background:#fff;color:var(--cv-text);box-shadow:var(--cv-shadow-raised)}.student-leave-sheet h3{margin:0 0 8px}.student-leave-sheet p{color:var(--cv-text-secondary);line-height:1.6}.student-leave-actions{display:grid;gap:9px}
body.student-mode .history-item,body.student-mode .waiting-result{border-color:var(--cv-border-subtle);color:var(--cv-text)}body.student-mode .history-item small,body.student-mode .waiting-result small{color:var(--cv-text-secondary)}body.student-mode .history-score{color:var(--cv-text)}
body.student-mode .result-ring{background:var(--cv-info-soft)!important;color:var(--cv-info);box-shadow:inset 0 0 0 8px #d7eafb}.student-result-meta{display:grid;gap:8px;margin:14px 0}.student-result-meta p{margin:0;color:var(--cv-text-secondary)}.appeal-box{margin-top:18px;padding:16px;border-radius:12px;background:var(--cv-subtle)}.appeal-counter{text-align:right;color:var(--cv-text-tertiary);font-size:11px}
body.student-mode .student-scorecard{padding:16px}
body.student-mode .student-report-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}
body.student-mode .student-report-totals span{padding:12px 8px;border-radius:10px;background:var(--cv-subtle);color:var(--cv-text-secondary);font-size:11px;text-align:center}
body.student-mode .student-report-totals b{display:block;margin-top:5px;color:var(--cv-text);font-size:18px}
body.student-mode .student-adjustment{padding:10px 12px;border-radius:8px;background:var(--cv-warning-soft);color:#703b09;font-size:12px}
body.student-mode .student-final-comment,body.student-mode .student-evaluator-comment{display:grid;gap:6px;padding:13px;border-left:3px solid var(--cv-info);border-radius:6px;background:var(--cv-info-soft);color:var(--cv-text-secondary);font-size:12px;line-height:1.7}
body.student-mode .student-final-comment b,body.student-mode .student-evaluator-comment b{color:var(--cv-text)}
body.student-mode .student-report-list{margin-top:22px}.student-report-list>h3{margin:0 0 10px;font-size:16px}
body.student-mode .student-report-question{margin:10px 0;border:1px solid var(--cv-border-subtle);border-radius:12px;background:#fff;overflow:hidden}
body.student-mode .student-report-question summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;cursor:pointer;list-style:none}
body.student-mode .student-report-question summary::-webkit-details-marker{display:none}
body.student-mode .student-report-question summary span:first-child{display:grid;gap:5px}.student-report-question summary small{color:var(--cv-text-secondary);font-size:11px;font-weight:400}
body.student-mode .student-question-final{color:var(--cv-info);font-size:22px;font-weight:700}
body.student-mode .student-question-body{padding:0 14px 14px;border-top:1px solid var(--cv-border-subtle)}
body.student-mode .student-question-scores,body.student-mode .student-slice-scores{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}
body.student-mode .student-question-scores span,body.student-mode .student-slice-scores span{padding:9px;border-radius:8px;background:var(--cv-subtle);color:var(--cv-text-secondary);font-size:11px;text-align:center}
body.student-mode .student-question-scores b,body.student-mode .student-slice-scores b{display:block;margin-top:3px;color:var(--cv-text);font-size:15px}
body.student-mode .student-score-dimensions{margin:12px 0}.student-score-dimensions h4{margin:0 0 7px;font-size:12px}.student-score-dimensions>div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--cv-border-subtle);color:var(--cv-text-secondary);font-size:12px}.student-score-dimensions>div b{color:var(--cv-text)}
body.student-mode .student-result-slice{margin-top:16px;padding:14px;border:1px solid var(--cv-border-subtle);border-radius:10px;background:var(--cv-subtle)}
body.student-mode .student-result-slice>h4{margin:0 0 12px;font-size:14px}.student-transcript{margin:10px 0}.student-transcript>b,.student-result-diff>b{font-size:11px;color:var(--cv-text-secondary)}.student-transcript p,.student-result-diff p{margin:6px 0;padding:11px;border-radius:8px;background:#fff;color:var(--cv-text);font-size:12px;line-height:1.8}
body.student-mode .student-result-diff mark{padding:2px 4px;border-radius:4px;color:#fff}.student-result-diff .diff-delete{background:#a93c46;text-decoration:line-through}.student-result-diff .diff-insert{background:#19724d}.student-result-diff .diff-replace{background:#8b5b18}
body.student-mode .student-ise-section{margin-top:14px;padding-top:12px;border-top:1px solid var(--cv-border-subtle)}.student-ise-section>h4{margin:0 0 8px;font-size:13px}.student-ise-errors p,.student-ise-details p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:8px 0;border-bottom:1px solid var(--cv-border-subtle);font-size:11px}.student-ise-errors p b,.student-ise-details p b{color:var(--cv-text)}.student-ise-errors p span{color:var(--cv-danger)}
body.student-mode .student-ise-details h5{margin:12px 0 4px;font-size:12px}.student-ise-details p span{min-width:34px;color:var(--cv-info)}.student-ise-details p em{color:var(--cv-text-secondary);font-style:normal}.student-ise-details small{display:block;margin-top:7px;color:var(--cv-text-tertiary)}
body.student-mode .student-report-empty{margin:8px 0;padding:10px;border-radius:8px;background:#fff;color:var(--cv-text-secondary);font-size:11px;line-height:1.6}.student-report-clear{margin:8px 0;padding:10px;border-radius:8px;background:var(--cv-success-soft);color:var(--cv-success);font-size:11px;line-height:1.6}
body.student-mode .profile-summary{border-bottom:1px solid var(--cv-border-subtle);padding-bottom:16px}.info-list{margin:12px 0}.info-list p{display:flex;justify-content:space-between;gap:12px;margin:0;padding:13px 0;border-bottom:1px solid var(--cv-border-subtle);color:var(--cv-text-secondary);font-size:13px}.info-list p b{color:var(--cv-text);font-weight:500}.password-disclosure{margin:12px 0}.password-panel{display:grid;gap:12px;margin:10px 0 16px;padding:14px;border-radius:12px;background:var(--cv-subtle)}
body.exam-mode .mobile-header,body.exam-mode .mobile-nav{display:none!important}body.exam-mode .student-app{padding-bottom:0}body.exam-mode .mobile-main{max-width:640px;padding-top:12px;padding-bottom:12px}
@media(max-width:380px){body.student-mode .student-task-meta{grid-template-columns:1fr}.submission-summary{grid-template-columns:1fr}.record-controls{grid-template-columns:1fr 82px 1fr}}
@media(prefers-reduced-motion:reduce){body.student-mode .record-main.recording{animation:none}}
