.student-mode{background:#f5f7fa}.student-mode .content{padding:26px 30px;background:#f5f7fa;min-height:calc(100vh - 60px)}.portal-student-label{margin-left:24px;font-size:14px;white-space:nowrap}.portal-student-label small{margin-left:10px;padding:3px 7px;font-size:10px;border:1px solid #ffffff70;border-radius:3px}.student-mode .portal-top-search{max-width:330px;margin-left:auto}.student-mode .footer{font-size:11px;color:#7b8794;border-top:0;margin:30px 0 0;padding:0;display:flex;gap:12px;align-items:center}.student-mode .footer button{border:0;background:none;color:#65768a;padding:0;font-size:11px}.student-tabs{display:flex;gap:25px;border-bottom:1px solid #dfe5ec;margin-bottom:26px;overflow-x:auto;max-width:100%;scrollbar-width:none;-webkit-overflow-scrolling:touch}.student-tabs::-webkit-scrollbar{display:none}.student-tabs a{color:#6b7785;padding:0 2px 13px;font-size:14px;white-space:nowrap;flex-shrink:0}.student-tabs a.active{color:#2569b0;border-bottom:2px solid #397ac3;font-weight:600}.student-tabs a:hover{text-decoration:none;color:#2569b0}.student-home,.student-overview,.student-results{max-width:940px;margin:0 auto}.student-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.student-heading h1{font-size:25px;line-height:1.4;color:#24364b;font-weight:600}.student-heading p{color:#788493;font-size:13px;margin-top:5px}.student-round{border:1px solid #dfe6ef;border-radius:9px;background:#fff;padding:28px 32px;box-shadow:0 2px 6px #24476304}.student-round-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.student-kicker{font-size:11px;letter-spacing:.8px;font-weight:600;color:#6a7a8f}.student-round h2{font-size:22px;line-height:1.4;color:#253c57;font-weight:600}.student-round-description{margin-top:9px;font-size:14px;max-width:680px;color:#677789;line-height:1.6}.student-progress{padding:0;margin:28px 0;display:flex;list-style:none;gap:0}.student-progress li{display:flex;align-items:center;gap:9px;color:#94a0ad;font-size:12px;flex:1;position:relative}.student-progress li:not(:last-child):after{content:'';height:1px;background:#e2e7ee;flex:1;margin:0 15px}.student-progress li>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;border:1px solid #d9e1ea;background:#fff;flex-shrink:0;font-size:11px}.student-progress .current{color:#2569b0;font-weight:600}.student-progress .current>span{background:#397ac3;color:#fff;border-color:#397ac3}.student-progress .complete>span{background:#eaf3ff;color:#397ac3;border-color:#c6dbf2}.student-progress .icon{width:14px;height:14px}.student-round-bottom{border-top:1px solid #edf0f4;padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.student-round-bottom>span{display:flex;gap:7px;align-items:center;font-size:12px;color:#64768b}.student-round .btn{padding:10px 20px;min-height:42px;font-size:13px;border-radius:5px}.student-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.student-shortcuts a{display:flex;gap:11px;align-items:center;color:#3d536b;background:white;border:1px solid #e0e6ee;border-radius:7px;padding:20px 16px;font-size:13px}.student-shortcuts a>.icon:first-child{color:#397ac3}.student-shortcuts a>.icon:last-child{margin-left:auto;width:14px}.student-shortcuts a:hover{border-color:#a5c3e6;text-decoration:none}.student-overview-links{display:flex;gap:26px;margin:22px 3px;flex-wrap:wrap}.student-overview-links a{font-size:12px;display:flex;gap:7px;align-items:center;color:#58728e}.student-help{border-top:1px solid #e1e6ed;padding:18px 3px;color:#6a7c8e;font-size:12px}.student-help summary{cursor:pointer;color:#4f6882}.student-help p{margin-top:12px;max-width:700px;line-height:1.7}.student-back{font-size:12px;display:inline-block;margin-bottom:16px;color:#6c7f94}.student-form-view{max-width:1140px;margin:auto}.student-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 208px;gap:12px;align-items:start}.student-form-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;font-size:12px;color:#778593;flex-wrap:wrap}.student-quick-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.student-text-button{border:0;background:none;color:#397ac3;padding:5px 0;font-size:12px;white-space:nowrap;font-weight:600}.student-text-button:hover{text-decoration:underline}.criterion[hidden]{display:none!important}.student-group{border:1px solid #dfe6ee;border-radius:6px;background:#fff;margin-bottom:10px;overflow:hidden}.student-group>summary{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;background:#fff;list-style:none;color:#364c64}.student-group>summary::-webkit-details-marker{display:none}.student-group>summary>span:first-child{display:flex;gap:10px;align-items:center}.student-group>summary b{font-size:11px;color:#7a91aa;font-weight:500}.student-group>summary:after{content:'⌄';color:#8a9bb0}.student-group[open]>summary:after{transform:rotate(180deg)}.student-group-total{font-size:12px;font-weight:600;color:#397ac3;white-space:nowrap;margin-left:auto}.student-group[open]>summary{border-bottom:1px solid #e8edf3;background:#fafcfe}.student-group .criterion{padding:13px 16px;grid-template-columns:32px minmax(0,1fr) 156px;gap:10px;border-color:#f0f3f6}.student-group .criterion label{font-size:12px;font-weight:400;line-height:1.5;color:#3a4e63}.student-group .criterion small{font-size:10px;color:#8a96a3;line-height:1.5}.student-group .criterion-code{font-size:10px;color:#a1acb7}.student-group input{height:35px;font-size:13px;text-align:center;border-color:#dce4ed}.student-group .error-text{font-size:11px}.student-criterion-evidence{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:6px;color:#946829;font-size:10px}.student-criterion-evidence[hidden]{display:none}.student-criterion-evidence .btn{min-height:25px;padding:3px 7px;font-size:10px}.student-criterion-evidence .icon{width:13px;height:13px}.student-score-card{position:sticky;top:84px;border:1px solid #dfe6ee;border-radius:7px;background:#fff;padding:23px 20px}.student-score-caption{color:#7c8c9d;font-size:12px}.student-score-number{display:flex;align-items:baseline;gap:7px;margin:9px 0 3px}.student-score-number strong{font-size:40px;line-height:1.25;letter-spacing:-1px;color:#2d669f}.student-score-number span{font-size:14px;color:#9aa7b4}.student-score-card #score-grade{color:#8a98a6;font-size:11px;line-height:1.6;margin-bottom:20px}.student-score-card #dirty-status{font-size:11px;color:#778a9b;display:block;padding:12px 0;border-top:1px solid #edf0f4}.student-score-card #dirty-status.unsaved{color:#956523}.student-score-actions{display:flex;flex-direction:column;gap:9px}.student-score-actions .btn{min-height:40px;border-radius:4px;font-size:12px}.student-deadline{font-size:10px;color:#8a98a6;margin-top:13px;text-align:center}.student-process{font-size:11px;margin-top:15px;color:#75889c}.student-process summary{cursor:pointer}.student-process a{display:block;margin-top:10px}.student-evidence-list{margin-top:18px;background:#fff;border:1px solid #e0e7ef;border-radius:6px;overflow:hidden}.student-evidence-list>summary{display:flex;align-items:center;gap:8px;padding:15px;color:#536b84;font-size:12px;cursor:pointer}.student-evidence-list>summary>span{margin-left:auto;color:#8a9aab;font-size:11px}.student-evidence-list .empty-state{padding:16px}.student-evidence-list table{min-width:470px;font-size:11px}.student-evidence-list td,.student-evidence-list th{padding:10px}.student-evidence-add{padding:12px}.student-criteria-note{font-size:10px;color:#8c99a7;margin-top:15px}.student-criteria-note .btn{font-size:10px;padding:0 4px;min-height:0}.student-feedback{padding:14px 18px;border-left:3px solid #d39a40;background:#fff7e9;margin-bottom:22px;font-size:13px;color:#80591f}.student-feedback p{margin-top:4px}.student-readonly{font-size:12px;color:#60758e;border:1px solid #dce6f2;background:#f0f6fd;padding:12px 16px;border-radius:4px;margin-bottom:20px}.student-result-card{background:white;border:1px solid #dfe7ef;border-radius:8px;padding:30px;display:flex;justify-content:space-between;align-items:center;gap:25px}.student-result-score{display:flex;align-items:baseline;gap:10px;margin:15px 0 6px}.student-result-score strong{font-size:50px;color:#28659f}.student-result-score span{font-size:13px;color:#8b99a8}.student-result-card h2{font-size:19px;color:#366f59}.student-result-card p{font-size:12px;color:#8b99a8;margin-top:6px}.student-result-empty{background:white;border:1px solid #e0e6ee;border-radius:8px;padding:38px;text-align:center}.student-result-empty>.icon{color:#86a3c2;width:28px;height:28px;margin-bottom:15px}.student-result-empty h2{font-size:18px;color:#4a6078}.student-result-empty p{font-size:13px;color:#8191a2;margin:10px 0 20px}.student-history,.student-appeals{margin-top:28px}.student-history h2,.student-appeals h2{font-size:15px;margin-bottom:12px;color:#526981}.student-history table{background:white;min-width:420px}.student-history>p{font-size:11px;color:#8b99a8;margin-top:8px}.student-appeals article{background:white;border:1px solid #e1e6ee;padding:18px;border-radius:6px;margin-bottom:12px}.student-appeals article>div:first-child{display:flex;align-items:center;justify-content:space-between}.student-appeals time{font-size:11px;color:#8b99a8}.student-appeals article p{font-size:13px;color:#667b91;margin-top:10px}.student-response{background:#f3f7fc;padding:12px;margin-top:12px;font-size:12px;color:#536f8d}.student-account{display:flex;align-items:center;gap:15px;margin-bottom:24px}.student-account img{height:42px;width:42px}.student-account p{color:#8191a2;font-size:12px;margin-top:3px}.student-account-actions{display:flex;flex-direction:column;gap:8px}.student-account-actions .btn{justify-content:flex-start}.student-mode .breadcrumbs{display:none}.student-mode .portal-module-note{display:none}
.student-mode .portal-course{display:none}
.student-group>summary>span.student-group-total{flex:0 0 auto;margin-left:auto}.student-group .error-text:empty{display:none}.student-group .criterion{align-items:center}.student-group .criterion-code{padding-top:0}.student-group .criterion label{margin:0 0 3px;font-size:13px}.student-group .criterion small{font-size:11px}.student-group[open]>summary:after{content:'⌄'}
@media(max-width:1100px){.student-form-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.portal-student-label{display:none}.student-mode .portal-top-search{margin-left:20px}.student-mode .content{padding:24px}}
@media(max-width:760px){.student-form-layout{grid-template-columns:1fr}.student-score-card{position:static;display:grid;grid-template-columns:1fr 1fr;gap:5px 16px;padding:18px;order:1}.student-score-card #score-grade{display:none}.student-score-card #dirty-status{grid-row:2;grid-column:1;border:0;padding:0}.student-score-actions{grid-row:1/3;grid-column:2}.student-deadline{grid-column:1/-1;text-align:left;margin-top:8px}.student-score-number strong{font-size:30px}.student-score-card .student-process{grid-column:1/-1}.student-shortcuts{grid-template-columns:1fr;gap:9px}.student-shortcuts a{padding:15px}.student-round{padding:23px}.student-heading h1{font-size:23px}.student-result-card{flex-wrap:wrap}}
@media(max-width:480px){.student-mode .content{padding:20px 16px}.student-tabs{gap:23px;margin-bottom:22px}.student-tabs a{font-size:13px}.student-heading{margin-bottom:20px;gap:10px;flex-wrap:wrap}.student-heading h1{font-size:22px}.student-heading p{font-size:12px}.student-round{padding:21px 19px}.student-round h2{font-size:20px}.student-round-top{gap:8px;align-items:flex-start;margin-bottom:20px}.student-kicker{font-size:9px}.student-round-description{font-size:13px}.student-progress{margin:24px 0;gap:7px}.student-progress li{font-size:10px;gap:6px;flex-direction:column;align-items:center}.student-progress li:not(:last-child):after{position:absolute;width:calc(100% - 31px);left:calc(50% + 16px);top:12px;margin:0}.student-round-bottom{flex-direction:column;align-items:stretch;gap:15px;padding-top:17px}.student-round-bottom>.btn{width:100%}.student-overview-links{gap:15px}.student-form-intro{align-items:flex-start;font-size:11px}.student-form-intro p{max-width:210px}.student-text-button{font-size:10px}.student-group>summary{padding:14px 12px;font-size:12px;gap:8px}.student-group-total{font-size:11px}.student-group .criterion{padding:12px 10px;grid-template-columns:24px minmax(0,1fr) 136px;gap:7px}.student-group .criterion label{font-size:12px}.student-result-empty{padding:30px 20px}.student-mode .footer{flex-wrap:wrap;line-height:1.7}.student-heading .badge{font-size:10px}.student-group>summary>span:first-child{gap:7px}}
@media print{.student-tabs,.student-back,.student-form-intro button,.student-score-actions,.student-criteria-note,.student-overview-links,.student-help{display:none!important}.student-mode .content{padding:0;background:white}.student-form-layout{display:block}.student-score-card{position:static}.student-group{break-inside:avoid}.student-round{box-shadow:none}}

/* V5: one choice per published score level, with a genuine unanswered value. */
.criterion,.student-group .criterion{grid-template-columns:32px minmax(0,1fr) 156px}.criterion select{min-width:0;width:100%;font:inherit;font-size:12px;min-height:40px;padding:7px 9px;border:1px solid #b9c9d8;border-radius:5px;background:#fff;color:#263e54}.criterion select[aria-invalid=true]{border-color:#c53434}.criterion select:disabled{color:#3c5164;background:#f3f6f9;opacity:1}.score-comparison>summary{padding:16px;cursor:pointer;color:#145c9a;font-weight:600}.score-comparison>p{padding:0 16px}.feedback-ticket{border-top:1px solid #e1e7ed;padding-top:16px;margin-top:20px}.feedback-panel .card-body>p{line-height:1.6}.student-group .criterion select{font-size:12px}.student-criterion-evidence[hidden]{display:none}
.student-heading p,.student-kicker,.student-round-description,.student-round-bottom>span,.student-form-intro,.student-score-caption,.student-score-card #score-grade,.student-score-card #dirty-status,.student-deadline,.student-criteria-note,.student-progress li{color:#4b5c6e}
.student-readiness-box{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 14px;border-radius:6px;border:1px solid #ecd49d;border-left:4px solid #d97706;background:#fffaf0;color:#6c4b15;margin-bottom:10px;font-size:12.5px}
.student-readiness-box.is-ready{border-color:#bfdacb;border-left-color:#176944;background:#f1f9f4;color:#165b3a}
.readiness-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;background:#fff;border:1px solid #e5d8b8;font-size:12px;color:#544019}
.readiness-pill.is-warn{background:#fff4db;border-color:#f0c36d;color:#8a4f08}
.readiness-pill.is-ok{background:#e8f6ee;border-color:#a8d5bc;color:#145b39;font-weight:600}
.readiness-pill.is-danger{background:#feecec;border-color:#f0b4b4;color:#a02626;font-weight:600}
.student-drive-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;border-radius:7px;border:1px solid #d4e2f1;border-left:4px solid #2569b0;background:#f4f8fd;margin-bottom:12px}
.student-drive-banner.is-attached{border-color:#c6dcd0;border-left-color:#176944;background:#f3faf6}
.student-drive-banner strong{font-size:13px;color:#1d354d}
.student-drive-banner p,.student-drive-banner small{display:block;font-size:12px;color:#546a82;margin-top:3px;line-height:1.4}
.student-drive-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.student-drive-link{display:block;margin-top:5px;font-size:12px;font-weight:600;color:#1a5ca8;word-break:break-all;overflow-wrap:anywhere}
.student-tabs a{display:inline-flex;align-items:center;gap:6px}
.student-tabs a .nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#e6eef8;color:#1e5694;font-size:11px;font-weight:700}
.student-tabs a.active .nav-count{background:#2569b0;color:#fff}
.student-officer-card{border-color:#d5e5f6;background:#ffffff}
.student-own-summary{margin-top:16px}
.officer-queue-card{max-width:940px;margin:20px auto 0}
.student-officer-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 4px}
.student-officer-metrics>div{background:#f3f7fc;border:1px solid #e1ebf6;border-radius:6px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.student-officer-metrics strong{font-size:22px;line-height:1.2;color:#1f4e84}
.student-officer-metrics span{font-size:11.5px;color:#556a82}
@media(max-width:760px){.student-officer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.criterion,.student-group .criterion{grid-template-columns:26px minmax(0,1fr)}.criterion select,.student-group .criterion select{grid-column:2;width:168px;max-width:100%}.feedback-panel .card-body{padding:16px}.toolbar{align-items:stretch}.student-drive-banner{align-items:flex-start}}

/* Tổng hợp điểm rèn luyện toàn khóa và bảng điểm từng học kỳ */
.conduct-overview{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:24px;align-items:center;border:1px solid #dfe6ef;border-radius:9px;background:#fff;padding:24px 30px;margin-bottom:18px;box-shadow:0 2px 6px #24476304}
.conduct-overview-main p{margin-top:8px;font-size:12px;color:#6b7c90;line-height:1.6}
.conduct-overview-score{display:flex;align-items:baseline;gap:8px;margin-top:10px}
.conduct-overview-score strong{font-size:44px;line-height:1.1;letter-spacing:-1px;color:#2d669f;font-weight:650}
.conduct-overview-score span{font-size:14px;color:#9aa7b4}
.conduct-overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;border-left:1px solid #e8edf3;padding-left:24px}
.conduct-overview-stats div{min-width:0}
.conduct-overview-stats dt{font-size:11px;color:#6b7c90;line-height:1.5}
.conduct-overview-stats dd{margin:4px 0 2px;font-size:25px;font-weight:650;color:#294b6d;line-height:1.2}
.conduct-overview-stats small{display:block;font-size:10px;color:#8a98a6;line-height:1.5}
.conduct-terms{margin-top:18px}
.conduct-terms .card-head span{font-size:12px;color:#7b8794}
.conduct-table{min-width:600px}
.conduct-table .is-current{background:#f4f9ff}
.conduct-table .conduct-score{font-size:17px;font-weight:650;color:#2d669f}
.conduct-note{font-size:11px;color:#7b8794;line-height:1.7;padding:12px 18px;border-top:1px solid #edf1f5;margin:0}
@media(max-width:860px){.conduct-overview{grid-template-columns:minmax(0,1fr);gap:18px;padding:20px}.conduct-overview-stats{border-left:0;padding-left:0;border-top:1px solid #e8edf3;padding-top:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:600px){.conduct-table{min-width:0;table-layout:auto}.conduct-table thead{display:none}.conduct-table,.conduct-table tbody,.conduct-table tr,.conduct-table td{display:block;width:100%}.conduct-table tr{padding:12px 14px;border-bottom:1px solid #e5ebf2}.conduct-table td{border:0!important;padding:4px 0!important}.conduct-table td[data-label]:not(:first-child){display:flex;gap:10px;align-items:center;flex-wrap:wrap}.conduct-table td[data-label]:not(:first-child)::before{content:attr(data-label) ": ";color:#61758a;min-width:84px;font-size:11px}.conduct-overview-score strong{font-size:38px}}
