@font-face{font-family:'Portal Icons';src:url('assets/portal/fa-solid-900.woff2') format('woff2');font-display:block;font-weight:900}
:root{--navy:#2b659e;--navy-dark:#1e4b7a;--blue:#2866a7;--blue-soft:#edf4fb;--ink:#1e293b;--muted:#475569;--line:#d8e1eb;--bg:#fff;--radius:3px;--shadow:none;--font:'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif}
body{font:14px/1.5 var(--font);background:white;color:#333}.portal-fa{font:900 14px/1 'Portal Icons';display:inline-block;width:20px;text-align:center;flex-shrink:0}.portal-topbar{height:60px;background:#397ac3;color:white;display:flex;align-items:center;position:fixed;top:0;left:0;right:0;z-index:40;box-shadow:0 2px 4px #0002;gap:0}.portal-brand-block{width:300px;flex-shrink:0;display:flex;align-items:center;border-right:1px solid #ffffff40;height:60px}.portal-brand{display:flex;align-items:center;color:white;gap:7px;white-space:nowrap;line-height:1.4}.portal-brand:hover{text-decoration:none}.portal-brand img{object-fit:contain;width:40px;height:40px}.portal-brand strong{font-size:15px;font-weight:500;display:block}.portal-brand small{font-size:10px;display:block}.portal-icon-button{display:inline-flex;align-items:center;justify-content:center;color:inherit;border:0;background:transparent;width:40px;height:40px;flex-shrink:0;border-radius:2px}.portal-icon-button .portal-fa{font-size:21px}.portal-icon-button:hover,.portal-user:hover,.portal-course:hover{background:#ffffff1f;color:white;text-decoration:none}.portal-course{color:white;border:0;background:transparent;padding:12px 16px;text-align:left;font-size:14.5px;font-weight:600;white-space:nowrap;flex-shrink:0}.portal-top-search{display:flex;margin-left:auto;height:34px;min-width:210px;max-width:360px;flex:1 1 220px;background:white;color:#555;border:1px solid #d2d2d2;border-radius:2px;overflow:hidden}.portal-top-search input{border:0;border-radius:0;padding:5px 10px;min-width:0;width:100%;height:32px;background:white;font-size:14px}.portal-top-search button{border:0;border-left:1px solid #ddd;background:#fafafa;color:#666;width:30px}.portal-top-search>span{background:#eee;border-left:1px solid #ccc;padding:6px 10px;white-space:nowrap;font-size:12px}.portal-top-actions{display:flex;align-items:center;margin:0 8px 0 10px;flex-shrink:0}.portal-user{display:flex;align-items:center;gap:8px;color:white;background:transparent;border:0;padding:5px 8px;font-size:12px;font-weight:700;white-space:nowrap;flex-shrink:0}.portal-user img{border-radius:50%;object-fit:cover}
/* ... */.portal-sidebar{position:fixed;z-index:30;top:60px;bottom:0;width:285px;left:0;border-right:1px solid #ddd;background:white;box-shadow:2px 0 6px #0001;display:flex;flex-direction:column}.portal-side-title{height:50px;display:flex;align-items:center;padding:0 10px;gap:8px;font-size:14px;font-weight:700;border-bottom:1px solid #ddd;color:#2e6d9a;flex-shrink:0}.portal-side-title:hover{text-decoration:none;background:#f7f7f7}.portal-nav-scroll{overflow:auto;overscroll-behavior:contain;flex:1;padding:12px 0 20px;scrollbar-width:thin}.portal-nav-link,.portal-nav-group>summary{display:flex;align-items:center;gap:12px;min-height:42.4px;padding:10px;color:#555;border:0;font-size:14px;line-height:1.6;text-decoration:none;cursor:pointer;list-style:none}.portal-nav-group>summary::-webkit-details-marker{display:none}.portal-nav-group>summary .portal-fa:last-child{margin-left:auto;width:14px}.portal-nav-group[open]>summary{color:#2b6c9d;background:#f4f4f4;font-weight:700}.portal-nav-group[open]>summary .portal-fa:last-child{transform:rotate(180deg)}.portal-nav-link:hover,.portal-nav-group>summary:hover{background:#f3f3f3;text-decoration:none}.portal-nav-link.active{color:#2b6c9d;background:#ededed;font-weight:700}.portal-nav-link.sub{padding-left:30px}.portal-nav-link[hidden],.portal-nav-group[hidden]{display:none}.portal-nav-find{border-top:1px solid #ddd;display:flex;align-items:center;padding:0 8px;height:36px;flex-shrink:0;color:#777}.portal-nav-find input{border:0;padding:6px 4px;width:100%;min-width:0;font-size:12px}.portal-overlay{display:none}.app-layout{display:block;padding:60px 0 0 285px;min-height:100vh}.content{max-width:none;padding:14px 15px 22px;margin:0;width:100%;min-width:0}.portal-demo{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap;border:1px solid #e4e9ef;background:#f7f9fc;color:#586579;padding:6px 12px;margin-bottom:14px;font-size:11.5px}.portal-demo-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-demo-actions{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto}.portal-demo strong{font-size:10.5px;letter-spacing:.3px}.portal-demo button{background:white;border:1px solid #dce2ea;color:#31669b;border-radius:2px;padding:3px 8px;font-size:11px;white-space:nowrap}.portal-module-note{color:#555;font-size:13px;font-weight:700;margin-bottom:8px}.portal-module-note span{font-weight:400;color:#777;font-size:11px}.portal-module-tabs{display:flex;gap:0;overflow-x:auto;border-bottom:1px solid #d8d8d8;margin:0 0 20px;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.portal-module-tabs::-webkit-scrollbar{display:none}.portal-module-tabs a{display:flex;align-items:center;gap:4px;padding:8px 6px;color:#555;border:1px solid transparent;border-bottom:0;white-space:nowrap;font-size:11.5px;flex-shrink:0}.portal-module-tabs .nav-count{margin-left:2px;padding:0 5px;min-width:16px}.portal-module-tabs a:hover{text-decoration:none;background:#f5f5f5}.portal-module-tabs a.active{color:#2866a7;border-color:#d8d8d8;background:#f5f8fc;box-shadow:inset 0 3px #397ac3;font-weight:700}.portal-module-tabs .icon{width:16px;height:16px}h1,.page-head h1{font-size:20px;line-height:30px;font-weight:400;letter-spacing:0;color:#555}h2{font-size:16px}.page-head{margin-bottom:18px}.page-head p{font-size:12px}.breadcrumbs{margin-bottom:8px}.card{border-radius:3px;box-shadow:none}.card-head{padding:14px 16px}.card-body{padding:16px}.btn{border-radius:3px;min-height:34px;padding:6px 12px;font-size:12px;font-weight:400}.btn.small{min-height:30px}.badge{border-radius:2px}.hero{background:#f3f8fd;color:#315676;border:1px solid #d8e5f2;padding:20px 24px}.hero:after{display:none}.hero h2{color:#315676;font-size:23px}.hero p{color:#536a7c}.hero .eyebrow{color:#397ac3}.hero .btn.light{background:white;color:#2b659e;border:1px solid #cedfee}.hero-aside{border-color:#d1e0ed}.hero-aside small,.hero-aside span{color:#536a7c}.stats{gap:12px}.stat{padding:16px;border-radius:3px}.stat-value{font-size:27px}.form-meta{border-radius:3px}.flow-group,.criteria-group,.summary-card,.info-box,.step-item,.activity-card{border-radius:3px}.flow-group.active{background:#edf4fc}.criteria-group>summary{background:#f8f9fa}.summary-card{top:74px}input,select,textarea{border-radius:3px}.portal-page-title{margin:2px 0 20px}.portal-results-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:12px;flex-wrap:wrap}.portal-results-toolbar strong{color:#287eaf}.portal-results-toolbar>div{display:flex;align-items:center;gap:16px}.portal-table-button{border:0;background:white;color:#667782;padding:8px;min-height:32px}.portal-results{border:1px solid #ddd;border-radius:3px}.portal-results table{min-width:1050px;width:100%;border-collapse:collapse;font-size:13px}.portal-results th{background:#fbfbfb;text-transform:none;letter-spacing:0;font-size:13px;text-align:center;font-weight:700;white-space:normal;border:1px solid #e7e7e7;padding:12px 8px;min-width:65px}.portal-results td{border:1px solid #eee;padding:14px 8px;text-align:center;white-space:normal}.portal-results tbody tr:nth-child(even){background:#f7f7f7}.portal-results .portal-empty-row{height:95px;text-align:left;padding:20px;color:#777}.portal-result-note{font-size:11px;color:#777;margin:10px 0 26px}.portal-current-round{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#f7faff;border:1px solid #d7e4f3;border-left:3px solid #397ac3;padding:18px 20px}.portal-current-round h2{font-size:15px}.portal-current-round p{color:#66788a;font-size:12px;margin-top:5px}.portal-welcome{text-align:center;padding:100px 15px 60px;color:#1e4e8c;min-height:72vh}.welcome-icon{background:#2b659e;color:white;display:grid;place-items:center;width:66px;height:66px;border-radius:5px;margin:0 auto 18px}.welcome-icon .portal-fa{font-size:42px;width:auto}.portal-welcome>p{font-size:22px;color:#334155}.portal-welcome h1{font-size:28px;line-height:1.4;font-weight:700;color:#1e3a5f;margin:8px 0 14px}.portal-welcome>a{font-size:14px;font-weight:600;color:#1d4ed8}.portal-quick-links{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:36px}.portal-quick-links a{display:flex;gap:7px;align-items:center;padding:12px 18px;border:1px solid #cbd8e8;border-radius:3px;color:#1e4b7a;font-weight:600;font-size:13px}.portal-quick-links a:hover{background:#f4f8fd;text-decoration:none}.portal-welcome .portal-home-note{font-size:12px;color:#475569;margin-top:20px}.footer{margin-top:35px;font-size:10px;padding-top:16px}.portal-login{min-height:100vh;background:linear-gradient(90deg,#e7effa55,#f5f9ff22),url('assets/portal/hub-background.png') center/cover;display:grid;place-items:center;padding:40px 20px}.portal-login-card{background:#145390ed;color:white;width:460px;max-width:100%;padding:35px 38px;box-shadow:0 10px 50px #172f5833;border-radius:3px}.portal-login-brand{display:flex;align-items:center;gap:14px;font-size:22px;font-weight:700;line-height:1.3}.portal-login-brand img{flex-shrink:0;object-fit:contain}.portal-login-brand small{font-size:10px;font-weight:400;line-height:1.5;display:block;margin-top:5px}.portal-login-card h1{color:white;font-size:27px;margin:28px 0 5px}.portal-login-tag{font-size:9px;letter-spacing:.4px;color:#d6e9ff;margin-bottom:22px}.portal-login-card label{color:white}.portal-login-card select{margin:7px 0 10px;color:#333;background:white;width:100%;height:44px}.portal-login-card .profile-preview{background:#ffffff12;border:1px solid #ffffff3d;color:white;padding:13px;margin-bottom:18px}.portal-login-card .profile-preview small{color:#e0ecff}.portal-login-card .btn{width:100%;background:#2c88dd;border-color:#2c88dd;font-weight:600;font-size:15px;min-height:42px}.portal-login-note{font-size:11px;color:#e0ecff;margin-top:20px;line-height:1.8}.portal-topbar :focus-visible{outline-color:#fff}.portal-demo button:focus-visible{outline-color:#397ac3}dialog{border-radius:4px}.portal-nav-scroll .portal-nav-link:focus-visible{outline-offset:-3px}.portal-module-tabs a:focus-visible{outline-offset:-3px}
@media(min-width:1101px){body.portal-sidebar-collapsed .portal-sidebar{display:none}body.portal-sidebar-collapsed .app-layout{padding-left:0}}
@media(max-width:1280px){.portal-course{font-size:13px;padding:12px 16px}.portal-top-search>span{display:none}.portal-user span{max-width:150px;overflow:hidden;text-overflow:ellipsis}.portal-brand-block{width:285px}.content{padding:14px 15px}}
@media(max-width:1100px){.portal-sidebar{transform:translateX(-100%);transition:transform .15s;z-index:45}.portal-sidebar.is-open{transform:translateX(0)}.app-layout{padding-left:0}.portal-overlay{position:fixed;inset:60px 0 0;background:#0004;z-index:44;border:0;width:100%;height:calc(100vh - 60px)}body.portal-menu-open .portal-overlay{display:block}.portal-course{display:none}.portal-top-search{margin-left:20px}.portal-topbar .portal-brand-block{width:285px}.portal-demo>span:nth-child(2){margin-left:auto}.summary-card{top:72px}}
@media(max-width:980px){.portal-demo{flex-wrap:wrap;padding:6px 10px}.portal-demo-text{white-space:normal}}
@media(max-width:680px){.portal-topbar{height:60px}.portal-topbar .portal-brand-block{width:246px}.portal-brand strong{font-size:12px}.portal-brand small{font-size:9px}.portal-brand{gap:5px}.portal-brand img{width:37px;height:37px}.portal-brand-block>.portal-icon-button{width:34px}.portal-top-search{display:none}.portal-top-actions{margin-left:auto;margin-right:5px;gap:1px}.portal-top-actions>a{display:none}.portal-top-actions .portal-icon-button{width:32px}.portal-user{padding:4px}.portal-user span{display:none}.portal-user img{height:30px;width:30px}.portal-sidebar{width:min(285px,85vw)}.portal-nav-scroll{padding-top:8px}.content{padding:12px}.portal-demo{font-size:10px;padding:7px;gap:7px;margin-bottom:12px;flex-wrap:wrap}.portal-demo-text{white-space:normal}.portal-demo-actions{width:100%;justify-content:flex-end}.portal-demo button{font-size:10px;padding:3px 6px}.portal-module-note{font-size:12px}.portal-module-note span{display:block;font-size:10px}.portal-module-tabs{margin-bottom:16px}.portal-module-tabs a{font-size:11px;padding:10px}.portal-page-title{font-size:20px;margin-bottom:18px}.portal-results-toolbar{gap:8px;font-size:12px}.portal-results-toolbar>div{margin-left:auto}.portal-results th,.portal-results td{font-size:12px;padding:10px 8px}.portal-current-round{padding:16px;gap:16px}.portal-current-round h2{font-size:14px}.portal-current-round .actions{width:100%}.portal-current-round .btn{flex:1}.portal-welcome{padding:80px 8px 30px;min-height:65vh}.portal-welcome>p{font-size:20px}.portal-welcome h1{font-size:24px}.portal-quick-links{margin-top:30px;gap:8px}.portal-quick-links a{width:100%;justify-content:center}.portal-welcome .portal-home-note{font-size:11px}.hero{padding:18px}.hero h2{font-size:21px}.page-head h1{font-size:20px}.portal-login{padding:22px 15px}.portal-login-card{padding:30px 25px}.portal-login-brand{font-size:18px}.portal-login-brand img{height:58px;width:58px}.portal-login-card h1{font-size:25px}.portal-login-card select{font-size:12px}.footer{font-size:9px}.dialog-body{padding:18px}}
@media(max-width:360px){.portal-topbar .portal-brand-block{width:232px}.portal-top-actions>.portal-icon-button{display:none}.portal-brand strong{font-size:11px}}
.content h1[tabindex="-1"]:focus{outline:none}.portal-result-history{border:1px solid #ddd;margin:0 0 22px;border-radius:3px}.portal-result-history summary{padding:12px 15px;cursor:pointer;background:#f7f9fc;color:#315676;font-weight:600}.portal-result-history>p{font-size:12px;color:#666;padding:12px 15px}.portal-result-history table{min-width:580px}

/* USMART Administrative Banner & Sober ERP Header */
.usmart-admin-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid #cfd9e6;border-top:3px solid #2b659e;border-radius:3px;padding:16px 20px;margin-bottom:16px}
.usmart-admin-kicker{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#1e4b7a;margin-bottom:4px}
.usmart-admin-banner h2{font-size:18px;font-weight:700;color:#1e3a5f;margin:4px 0 6px}
.usmart-admin-banner p{font-size:13px;color:#334155;margin:0 0 12px}
.usmart-eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#2b659e;margin-bottom:2px}
.usmart-admin-cert,.usmart-admin-meta{background:#f7faff;border:1px solid #d5e3f4;border-radius:3px;padding:12px 16px;min-width:250px;font-size:12px;display:grid;gap:10px}
.usmart-admin-cert small,.usmart-admin-meta small{display:block;color:#475569;font-weight:700;text-transform:uppercase;font-size:10px}
.usmart-admin-cert strong,.usmart-admin-meta strong{display:block;color:#1e3a5f;font-size:13px;margin:2px 0}
.usmart-admin-meta span{font-size:11px;color:#475569}
.usmart-score-box{text-align:center;padding:12px 10px;background:#f8fbff;border:1px solid #d5e3f4;border-radius:4px;margin-bottom:14px}
.usmart-score-caption{display:block;font-size:10.5px;font-weight:700;letter-spacing:.4px;color:#475569}
.usmart-score-val{display:flex;align-items:baseline;justify-content:center;gap:4px;margin:6px 0 2px}
.usmart-score-val strong{font-size:34px;line-height:1.15;color:#1e3a5f}
.usmart-score-val span{font-size:13px;color:#475569}
.usmart-score-box .score-label{display:inline-block;font-size:12px;font-weight:700;color:#176944}
.evidence-preview-frame{width:100%;height:400px;border:1px solid #cbd5e1;border-radius:3px;background:#f8fafc}
.evidence-preview-img-wrap{border:1px solid #cbd5e1;border-radius:3px;padding:10px;background:#f8fafc;text-align:center}
.evidence-preview-img-wrap img{max-width:100%;max-height:400px;object-fit:contain}
.ev-status{display:inline-block;font-size:11px;font-weight:600;margin-bottom:4px}
.ev-status.is-ok{color:#166534}.ev-status.is-err{color:#b91c1c}.ev-status.is-wait{color:#92400e}.ev-status.is-none{color:#475569}
.mobile-bottom-nav{display:none}

/* 8-Column QD 3238 / USMART Criteria Matrix */
.usmart-matrix-wrap{overflow-x:auto;border:1px solid #cfd8e3;border-radius:3px;background:#fff;margin-bottom:16px}
.student-mode .content{padding:18px 20px}
.usmart-matrix-table{width:100%;min-width:0;border-collapse:collapse;font-size:12px;color:#222;table-layout:fixed}
.usmart-matrix-table tr.criterion{display:table-row;padding:0;border:0}
.usmart-matrix-table tr.criterion[hidden]{display:none!important}
.usmart-matrix-table th,.usmart-matrix-table td{border:1px solid #d6dee8;padding:6px 4px;vertical-align:middle}
.usmart-matrix-table td:last-child,.usmart-matrix-table th:last-child{white-space:normal}
.usmart-matrix-table thead th{background:#edf3fa;color:#1e3a5f;font-weight:700;text-align:center;font-size:10.5px;line-height:1.25;position:sticky;top:0;z-index:2;padding:6px 3px;overflow-wrap:break-word}
.usmart-matrix-table thead th small{display:block;font-weight:400;color:#5a6b82;font-size:9.5px;margin-top:2px}
.usmart-matrix-table thead th.col-active-head{background:#dbeafe;color:#1e40af;box-shadow:inset 0 -2px 0 #1d4ed8}
.usmart-matrix-table .col-code{width:38px;text-align:center;font-weight:700;color:#1e3a5f;white-space:nowrap}
.usmart-matrix-table .col-desc{width:auto;min-width:140px}
.usmart-matrix-table .col-max{width:46px;text-align:center;font-weight:600;color:#475569;white-space:nowrap;font-size:11px}
.usmart-matrix-table .col-tier{width:64px;text-align:center;white-space:nowrap}
.usmart-matrix-table .col-active-input{width:162px;background:#eff6ff;text-align:center}
.usmart-matrix-table .col-ev,.usmart-matrix-table .col-evidence{width:102px;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.usmart-matrix-table .col-num{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.student-form-view{max-width:none}
.student-form-layout,.detail-layout{grid-template-columns:minmax(0,1fr) 204px;gap:12px}
.usmart-matrix-table .matrix-group-row{cursor:pointer}
.usmart-matrix-table .matrix-group-row td{background:#f1f5f9;color:#0f172a;padding:9px 10px;font-size:13px;border-top:2px solid #cbd5e1}
.usmart-matrix-table .matrix-group-sub{text-align:center;font-weight:700;color:#1e3a5f;white-space:nowrap}
.usmart-matrix-table .matrix-crit-title{font-weight:600;color:#1e293b;line-height:1.4}
.usmart-matrix-table .matrix-crit-hint{font-size:11.5px;color:#64748b;margin-top:2px}
.usmart-matrix-table .matrix-input-cell select,.usmart-matrix-table .matrix-input-cell input{min-width:152px;width:100%;height:34px;padding:4px 5px;font-size:12px;font-weight:600;border:1px solid #60a5fa;background:#fff;color:#0f172a}
.usmart-matrix-table .matrix-input-cell select:disabled,.usmart-matrix-table .matrix-input-cell input:disabled{background:#f8fafc;border-color:#cbd5e1;color:#334155;opacity:1}
.usmart-matrix-table .tier-val{display:inline-block;font-weight:700;color:#1e293b;font-variant-numeric:tabular-nums}
.usmart-matrix-table .tier-empty{color:#94a3b8;font-size:12px}
.usmart-matrix-table .tier-diff{color:#b45309;background:#fef3c7;padding:2px 6px;border-radius:2px}
.usmart-matrix-table .penalty-row td{background:#fffafa}
.usmart-matrix-table .has-diff td{background:#fffbeb}
.usmart-matrix-table .matrix-ev-head{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.usmart-matrix-table .matrix-ev-req{font-size:11px;font-weight:700;color:#b45309;background:#fef3c7;padding:1px 6px;border-radius:2px}
.usmart-matrix-table .matrix-ev-opt{font-size:11px;color:#64748b}
.usmart-matrix-table .matrix-ev-item{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#f8fafc;border:1px solid #e2e8f0;padding:4px 6px;border-radius:2px;margin-top:4px;font-size:11.5px}
.usmart-matrix-table .matrix-ev-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.usmart-matrix-table .matrix-diff-tag{margin-top:4px;font-size:11px;font-weight:600;color:#b45309}
.usmart-matrix-table .matrix-footer-row td{background:#e2e8f0;font-size:13.5px;padding:10px;border-top:2px solid #94a3b8}
.usmart-matrix-table .matrix-total-cell{text-align:center;font-weight:700;color:#0f172a;font-size:14px}

/* Multi-column USMART Class/Unit Roster Table */
.usmart-roster-table th,.usmart-roster-table td{padding:7px 8px;font-size:12px;vertical-align:middle}
.usmart-roster-table .col-num,.usmart-roster-table .num-col{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.usmart-roster-table .diff-score{color:#b45309;background:#fef3c7;padding:2px 6px;border-radius:2px}
.pki-badge-ok{display:inline-block;background:#dcfce7;color:#166534;border:1px solid #86efac;padding:2px 7px;border-radius:2px;font-size:11px;font-weight:700}
.pki-badge-none{display:inline-block;color:#64748b;font-size:11px}

/* Decree 30/2020/NĐ-CP Visual Digital Signature Stamps & Red Seal */
.nd30-stamp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:14px;margin-top:10px}
.nd30-stamp{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:3px;background:#fff;position:relative;font-family:'Times New Roman',Times,serif;line-height:1.35;text-align:left}
.nd30-stamp.nd30-official{border:2px solid #b91c1c;background:#fffafa;color:#991b1b}
.nd30-stamp.nd30-initial{display:block;border:1.5px dashed #1d4ed8;background:#f8fbff;color:#1e3a8a}
.nd30-stamp.nd30-invalid,.nd30-stamp.is-invalid{border:2px solid #dc2626;background:#fef2f2;color:#7f1d1d}
.nd30-stamp.is-revoked{border-color:#94a3b8;background:#f8fafc;color:#475569;opacity:.88}
.nd30-seal-wrap{width:100px;height:100px;flex-shrink:0;margin-right:0;z-index:2;opacity:.94;pointer-events:none}
.nd30-seal-svg{width:100%;height:100%;display:block}
.nd30-initial-header{display:flex;align-items:center;gap:6px;font-size:11.5px;margin-bottom:6px;color:#1e40af}
.nd30-initial-body p{font-size:12px;color:#1e293b;margin:2px 0}
.nd30-hash-line{font-size:10.5px!important;color:#475569!important;margin-top:4px!important}
.nd30-sig-box{flex:1;min-width:0;z-index:1}
.nd30-sig-title{font-weight:700;font-size:11.5px;text-transform:uppercase;letter-spacing:.3px;margin-bottom:3px}
.nd30-sig-status{margin-bottom:4px;font-family:var(--font)}
.nd30-badge{display:inline-block;font-size:10.5px;font-weight:700;padding:2px 6px;border-radius:2px;background:#dcfce7;color:#166534}
.nd30-stamp.is-invalid .nd30-badge{background:#fee2e2;color:#b91c1c}
.nd30-stamp.is-revoked .nd30-badge{background:#e2e8f0;color:#475569}
.nd30-Cursive{font-size:16px;font-style:italic;font-weight:700;color:#991b1b;margin:4px 0}
.nd30-sig-meta{font-size:11.5px;color:#1f2937;display:grid;gap:2px}
.nd30-placeholder{border:1px dashed #94a3b8;background:#f8fafc;padding:22px 12px;color:#64748b;font-size:12px;font-style:italic;border-radius:3px}

/* PKI Signing Ceremony Modal & Sandbox */
.pki-cert-card{background:#f8fafc;border:1px solid #cbd5e1;border-radius:3px;padding:10px 12px;display:grid;gap:6px;font-size:12.5px}
.pki-cert-card>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pki-cert-card span{color:#64748b}
.pki-stamp-preview-box{max-width:420px;margin-top:6px}
.pki-sandbox-list{display:grid;gap:14px}
.pki-sandbox-item{border:1px solid #cbd5e1;border-radius:3px;padding:14px;background:#fcfdff;margin-bottom:12px}
.pki-sandbox-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.pki-sandbox-stamp{min-width:300px;max-width:380px}
.tamper-diff-box{background:#fff1f2;border:1px solid #fecdd3;padding:8px 12px;border-radius:3px;margin:8px 0;font-size:12.5px;color:#881337}
.tamper-diff-box ul{margin:4px 0 0 18px;padding:0}
.danger-text{color:#dc2626}
.sig-pill-stack{display:flex;flex-wrap:wrap;gap:4px}
.sig-mini-badge{display:inline-block;padding:2px 6px;border-radius:2px;font-size:10.5px;font-weight:600;background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0;white-space:nowrap}
.sig-mini-badge.is-signed{background:#dcfce7;color:#166534;border-color:#86efac}
.row-has-diff td{background:#fffdf5}

/* Official A4 Administrative Document Sheet (Decree 30/2020/NĐ-CP) */
.a4-document-sheet{background:#fff;border:1px solid #cbd5e1;box-shadow:0 2px 8px #00000012;padding:28px 32px;margin-top:18px;font-family:'Times New Roman',Times,serif;color:#111;line-height:1.45}
.a4-header,.a4-gov-header{display:grid;grid-template-columns:1fr 1fr;gap:16px;text-align:center;margin-bottom:18px}
.a4-gov-left strong,.a4-gov-right strong{font-size:13.5px;display:block}
.a4-gov-left small,.a4-gov-right em{font-size:12.5px;display:block;margin-top:2px}
.a4-line,.a4-gov-line{display:block;width:120px;height:1px;background:#111;margin:5px auto 6px}
.a4-title,.a4-doc-title{text-align:center;margin:14px 0 16px}
.a4-title h2,.a4-doc-title h2{font-size:17px;font-weight:700;margin:0 0 4px;color:#000}
.a4-title p,.a4-doc-title p{font-size:13px;margin:0;color:#333}
.a4-student-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 16px;font-size:13.5px;margin-bottom:14px;padding:10px 12px;border:1px solid #cbd5e1;background:#fafafa}
.a4-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px;padding:10px 12px;border:1px solid #94a3b8;background:#f8fafc;font-size:13px;text-align:center}
.a4-summary-strip span{display:block;font-size:12px;color:#475569}
.a4-signatures-row,.a4-signatures-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px;align-items:start}
.a4-sig-col{text-align:center}
.a4-sig-col h4,.a4-sig-title{font-size:12px;font-weight:700;text-transform:uppercase;margin:0 0 8px}
.a4-footer-hash,.a4-doc-footer{margin-top:16px;padding-top:10px;border-top:1px solid #cbd5e1;font-family:var(--font);font-size:11px;color:#475569;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media(max-width:980px){.usmart-matrix-table{min-width:740px}}
@media(max-width:900px){.usmart-admin-banner{flex-direction:column;align-items:flex-start}.usmart-admin-cert,.usmart-admin-meta{min-width:0;width:100%}.pki-sandbox-stamp{min-width:0;max-width:100%;width:100%}.a4-header,.a4-gov-header,.a4-student-meta,.a4-summary-strip,.a4-signatures-row,.a4-signatures-grid{grid-template-columns:1fr}}
@media(max-width:680px){
  .student-mode .usmart-matrix-wrap{overflow-x:visible;border:0;background:transparent}
  .student-mode .usmart-matrix-table{min-width:0;display:block}
  .student-mode .usmart-matrix-table thead{display:none}
  .student-mode .usmart-matrix-table tbody,.student-mode .usmart-matrix-table tfoot{display:block}
  .student-mode .usmart-matrix-table tr.matrix-group-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;background:#e8eff7;border:1px solid #cbd5e1;border-radius:4px;padding:8px 10px;margin:12px 0 6px}
  .student-mode .usmart-matrix-table tr.matrix-group-row td{border:0;padding:0;background:transparent}
  .student-mode .usmart-matrix-table tr.matrix-group-row td.col-num{display:none}
  .student-mode .usmart-matrix-table tr.criterion{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;background:#fff;border:1px solid #d6dee8;border-radius:4px;padding:10px 12px;margin-bottom:8px}
  .student-mode .usmart-matrix-table tr.criterion td{border:0;padding:0;text-align:left}
  .student-mode .usmart-matrix-table tr.criterion td.col-code{grid-column:1;width:auto}
  .student-mode .usmart-matrix-table tr.criterion td.col-max{grid-column:2;width:auto;text-align:right}
  .student-mode .usmart-matrix-table tr.criterion td.col-desc{grid-column:1/-1;min-width:0}
  .student-mode .usmart-matrix-table tr.criterion td.col-active-input{grid-column:1/-1;width:100%;padding:6px;border-radius:3px}
  .student-mode .usmart-matrix-table tr.criterion td.col-num[data-label]:before,.student-mode .usmart-matrix-table tr.criterion td.col-active-input[data-label]:before{content:attr(data-label) ": ";font-size:11px;color:#64748b;font-weight:600;display:inline-block;margin-right:4px}
  .student-mode .usmart-matrix-table tr.criterion td.col-evidence{grid-column:1/-1;width:auto;min-width:0;border-top:1px dashed #e2e8f0;padding-top:6px}
  .student-mode .usmart-matrix-table tr.matrix-total-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#e2e8f0;border:1px solid #cbd5e1;border-radius:4px;padding:10px}
  .student-mode .usmart-matrix-table tr.matrix-total-row td{border:0;padding:2px 4px}
  .student-mode .student-score-card{position:static;padding:14px 16px;gap:8px 12px;border-color:#93c5fd;margin-top:8px}
  .student-mode .student-score-card .student-score-caption{font-size:11px}
  .student-mode .student-score-card .student-score-number{margin:2px 0 0}
  .student-mode .student-score-card .student-score-number strong{font-size:28px;line-height:1.1}
  .student-mode .student-score-card #dirty-status{font-size:11px}
  .student-mode .student-score-card .student-score-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:8px}
  .student-mode .student-score-card .student-score-actions .btn{min-height:38px;padding:6px 12px;font-size:12px;width:auto}
  .student-mode .student-score-card .student-deadline{display:none}
}
@media(max-width:768px){
  .content,.student-mode .content{padding-bottom:78px!important}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;height:58px;background:#fff;border-top:1px solid #cbd5e1;box-shadow:0 -2px 10px #0f172a14;z-index:38}
  .mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10.5px;font-weight:600;color:#475569;text-decoration:none;position:relative;padding:4px 2px}
  .mobile-bottom-nav a .icon{width:18px;height:18px}
  .mobile-bottom-nav a.active{color:#1d4ed8;background:#f0f6ff;box-shadow:inset 0 2px 0 #2563eb}
  .mobile-bottom-nav a .nav-count{position:absolute;top:4px;right:calc(50% - 22px);margin:0;padding:0 5px;font-size:9.5px;min-width:16px}
}

@media print{.portal-topbar,.portal-sidebar,.portal-overlay,.portal-demo,.portal-module-tabs,.portal-module-note,.portal-result-note,.mobile-bottom-nav{display:none!important}.app-layout{padding:0}.content{padding:8px}.portal-results table{min-width:0}.portal-current-round{background:white}.hero{color:black;background:white}.hero h2,.hero p{color:black}}
