:root{--blue:#2457d6;--blue2:#173d9e;--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#667085;--line:#d8dee9;--ok:#12805c;--warn:#b54708;--danger:#b42318;--shadow:0 6px 22px rgba(16,24,40,.08)}*{box-sizing:border-box}html,body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.boot{min-height:100vh;display:grid;place-items:center;gap:12px}.boot img{width:64px}.topbar{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--line);padding:8px 12px;display:flex;align-items:center;gap:10px}.brand{display:flex;align-items:center;gap:8px;min-width:0}.brand img{width:34px;height:34px}.brand b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spacer{flex:1}.pill{padding:5px 9px;border-radius:999px;background:#eef3ff;color:var(--blue2);font-size:12px}.btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 11px;color:var(--text)}.btn:hover{background:#f8fafc}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.danger{color:#fff;background:var(--danger);border-color:var(--danger)}.btn.small{padding:5px 8px;font-size:12px}.layout{max-width:1450px;margin:auto;padding:14px}.grid{display:grid;gap:12px}.grid.cols2{grid-template-columns:1fr 1fr}.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:14px}.card h2,.card h3{margin:0 0 10px}.muted{color:var(--muted)}.tabs{display:flex;gap:6px;overflow:auto;padding:2px 0 10px}.tab{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px}.tab.active{background:var(--blue);color:#fff;border-color:var(--blue)}.field{display:grid;gap:5px;margin-bottom:10px}.field label{font-size:12px;font-weight:700;color:#475467}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:9px 10px;background:#fff}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:8px;border-bottom:1px solid #eef0f4;text-align:left;white-space:nowrap}.table th{background:#f8fafc;position:sticky;top:0}.class-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.class-card{border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px;text-align:left}.class-card.mine{border-color:#a6bdfb;background:#f3f6ff}.class-card strong{display:block;font-size:16px}.class-card small{color:var(--muted)}.toolbar{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:10px}.board-label{background:#1f2937;color:#fff;border-radius:8px;padding:7px;text-align:center;font-weight:800;letter-spacing:.08em;margin:8px auto 12px;max-width:520px}.seatroom{overflow:auto;padding-bottom:8px}.desk-rows{display:grid;gap:10px;min-width:650px}.desk-row{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}.desk{border:1px solid #aeb8ca;background:#fdfdfd;border-radius:10px;padding:5px}.desk-title{font-size:10px;color:#667085;text-align:center;margin-bottom:4px}.seats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.seat{position:relative;min-height:54px;border:1px dashed #c8cfda;border-radius:8px;background:#f8fafc;display:flex;align-items:center;justify-content:center;text-align:center;padding:3px;user-select:none}.seat.occupied{border-style:solid;background:#fff}.seat.selected{outline:2px solid var(--blue)}.seat.locked{background:#fff8e7;border-color:#d5a214}.seat-lock-btn{position:absolute;right:2px;top:2px;z-index:3;width:22px;height:22px;padding:0;border:1px solid #d5dbe6;border-radius:6px;background:rgba(255,255,255,.94);font-size:12px;line-height:20px;display:grid;place-items:center}.seat-lock-btn:hover{background:#eef3ff}.seat.locked .seat-lock-btn{border-color:#e5b93c;background:#fff3c4}.student{width:100%;display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;text-align:center}.student img,.avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:none;background:#e7ecf5}.avatar.fallback{display:grid;place-items:center;font-weight:800;color:#52627a}.student-name{font-size:11px;line-height:1.13;font-weight:700;overflow:hidden;display:-webkit-box;text-align:center;flex:1;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.popover{position:fixed;z-index:80;width:min(300px,calc(100vw - 20px));background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 38px rgba(16,24,40,.2);padding:12px;pointer-events:none}.popover .profile{display:grid;grid-template-columns:52px 1fr;gap:9px}.popover img{width:52px;height:64px;border-radius:9px;object-fit:cover;background:#edf1f7}.popover dl{margin:7px 0 0;display:grid;grid-template-columns:72px 1fr;font-size:12px;gap:3px}.popover dt{color:#667085}.popover dd{margin:0}.modal{position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.45);display:grid;place-items:center;padding:12px}.modal-card{background:#fff;border-radius:16px;max-width:720px;width:100%;max-height:92vh;overflow:auto;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.modal-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}.modal-head h3{margin:0}.toast{position:fixed;right:12px;bottom:12px;z-index:200;background:#111827;color:#fff;border-radius:10px;padding:10px 12px;max-width:360px;box-shadow:var(--shadow)}.toast.ok{background:var(--ok)}.toast.warn{background:var(--warn)}.toast.err{background:var(--danger)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stat{padding:12px;border:1px solid var(--line);border-radius:12px}.stat b{font-size:22px;display:block}.dropzone{border:2px dashed #b7c1d2;border-radius:12px;padding:16px;text-align:center;background:#fafcff}.warnbox{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:10px;padding:10px}.okbox{background:#ecfdf3;color:#067647;border:1px solid #abefc6;border-radius:10px;padding:10px}.login{max-width:480px;margin:8vh auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}.login img{width:68px;display:block;margin:auto}.login h1{text-align:center;font-size:23px}.login p{text-align:center;color:var(--muted)}.share-shell{max-width:1000px;margin:auto;padding:10px}.share-title{text-align:center}.compact-note{font-size:11px;color:#667085}.badge{font-size:10px;padding:2px 5px;border-radius:999px;background:#eef2f6;color:#475467}.photo-toggle.active{background:#eef3ff;border-color:#a6bdfb}.screen-photo-hidden{display:none!important}.print-only{display:none}
@media(max-width:700px){.layout{padding:8px}.topbar{padding:6px 8px}.brand b{font-size:13px}.pill{display:none}.card{padding:10px;border-radius:11px}.grid.cols2{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr}.desk-rows{min-width:0}.desk-row{grid-template-columns:1fr 1fr;gap:6px}.desk{padding:3px}.seats{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.seat{min-height:58px;padding:2px}.student{display:block}.student img,.avatar{width:25px;height:25px;margin:auto}.student-name{font-size:10px;line-height:1.05;margin-top:2px}.toolbar .btn{padding:6px 7px;font-size:11px}.board-label{font-size:12px;margin:5px auto 8px;padding:6px}.class-list{grid-template-columns:repeat(3,1fr);gap:5px}.class-card{padding:7px}.class-card strong{font-size:14px}.class-card small{font-size:10px}.modal{align-items:end;padding:0}.modal-card{border-radius:16px 16px 0 0;max-height:88vh}.table{font-size:12px}}
@media(max-width:390px){.class-list{grid-template-columns:repeat(2,1fr)}.student-name{font-size:9.5px}.seat{min-height:56px}.stat-grid{grid-template-columns:1fr 1fr}}
@media print{.seat-lock-btn{display:none!important}body{background:#fff}.topbar,.no-print,.tabs,.toolbar{display:none!important}.layout,.share-shell{max-width:none;padding:0}.card{box-shadow:none;border:0;padding:0}.seatroom{overflow:visible}.desk-rows{min-width:0}.student{justify-content:center;text-align:center}.student img,.student .avatar,.screen-photo-hidden{display:block!important;width:26px!important;height:30px!important;object-fit:cover;border-radius:4px!important;flex:none}.student-name{text-align:center!important;font-size:10px!important;line-height:1.05!important;flex:1}.seat{min-height:46px}.print-only{display:block}.board-label{background:#fff;color:#000;border:1px solid #000}}


/* ===== v2.1.0: giao diện tiết học, mobile, random, ghi nhớ, in ===== */
.desk-title{display:none!important}
.student-note-btn{position:absolute;right:2px;bottom:2px;z-index:4;width:20px;height:20px;padding:0;border:0;border-radius:6px;background:rgba(255,255,255,.76);color:#667085;font-size:11px;line-height:20px;display:grid;place-items:center;opacity:.22}
.seat:hover .student-note-btn,.student-note-btn.has-note{opacity:1}.student-note-btn.has-note{background:#eef3ff;color:var(--blue2)}
.memo-peek,.memo-summary{margin-top:8px;padding:7px 8px;border-radius:8px;background:#f7f9fc;border:1px solid #e3e8f0;font-size:11px;line-height:1.35;white-space:normal}
.checkline{display:flex!important;align-items:center;gap:7px;font-weight:500!important;min-height:39px}.checkline input{width:auto!important}
.seat.random-flash{background:#d1fadf!important;border-color:#12b76a!important;box-shadow:0 0 0 3px rgba(18,183,106,.18),0 3px 14px rgba(18,183,106,.22);transform:scale(1.025);transition:transform .08s,background .08s}
.seat.random-winner{background:#a6f4c5!important;border:2px solid #039855!important;box-shadow:0 0 0 4px rgba(3,152,85,.18),0 8px 24px rgba(3,152,85,.28);transform:scale(1.035);animation:winnerPulse .65s ease-in-out 3}
@keyframes winnerPulse{50%{transform:scale(1.06);box-shadow:0 0 0 7px rgba(3,152,85,.12),0 10px 28px rgba(3,152,85,.3)}}
.random-result{text-align:center}.random-caption{font-size:12px;font-weight:800;letter-spacing:.09em;color:#067647}.random-name{font-size:26px;font-weight:900;margin:8px 0}.random-photo{width:92px;height:116px;object-fit:cover;border-radius:12px;margin-top:10px;border:2px solid #abefc6}.random-actions{justify-content:center;margin-top:14px}
.print-header{text-align:center;margin:0 0 4mm}.print-school{font-size:11pt;font-weight:700;text-transform:uppercase}.print-header h1{font-size:16pt;margin:1.5mm 0}.print-meta{font-size:9.5pt}
.share-toolbar{justify-content:center}
.seatroom .desk{padding:3px}.seatroom .desk-row{gap:14px}.seatroom .desk-rows{gap:7px}
.seatroom .seat{min-height:50px}.seatroom .student-name{font-size:12px;line-height:1.08}
.seats:has(> .seat:nth-child(5):last-child)> .seat:nth-child(5){grid-column:1/-1;max-width:50%;width:100%;justify-self:center}

@media(max-width:700px){
 .layout,.share-shell{padding:4px}.card{padding:6px;border-radius:9px}.class-head{gap:5px}.class-head h2{font-size:19px}
 .toolbar{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:3px;margin-bottom:5px;scrollbar-width:none}.toolbar::-webkit-scrollbar{display:none}.toolbar .btn{flex:0 0 auto;padding:6px 7px;font-size:11px}
 .desk-rows{gap:4px!important}.desk-row{gap:4px!important}.desk{padding:2px!important;border-radius:7px}.seats{gap:2px}.seat{min-height:47px!important;border-radius:6px;padding:1px}
 .student img,.avatar{width:23px;height:23px}.student-name{font-size:10.5px!important;line-height:1.02!important;margin-top:1px;-webkit-line-clamp:2}
 .seat-lock-btn{width:18px;height:18px;line-height:16px;font-size:10px}.student-note-btn{width:17px;height:17px;line-height:17px;font-size:9px}
 .board-label{margin:3px auto 5px;padding:4px;max-width:45%;font-size:11px}
 .compact-note{font-size:10px}.random-name{font-size:23px}.random-actions .btn{flex:1 1 42%}
 .share-title h2{font-size:18px}.share-title p{margin:3px 0 5px;font-size:11px}
}
@media(max-width:390px){
 .seat{min-height:44px!important}.student-name{font-size:10px!important}.student img,.avatar{width:21px;height:21px}
 .board-label{font-size:10px}.desk-row{gap:3px!important}
}

/* Bản in A4 ngang */
@page{size:A4 landscape;margin:7mm}
@media print{
 html,body{width:100%;background:#fff!important}
 .class-view,.share-card{width:100%;margin:0;padding:0!important}
 .print-header{display:block!important}
 .seatroom{width:100%;padding:0}
 .board-label{max-width:36%;padding:3px;margin:2mm auto 2mm;font-size:9pt;background:#fff!important;color:#000!important;border:1.2px solid #111!important;border-radius:3px}
 .desk-rows{gap:2.2mm!important;min-width:0!important}.desk-row{gap:6mm!important;page-break-inside:avoid}.desk{padding:1.2mm!important;border:1px solid #777!important;border-radius:3px!important}
 .seats{gap:1mm!important}.seat{min-height:11.5mm!important;padding:.6mm!important;border:1px solid #aaa!important;border-radius:2px!important;background:#fff!important}
 .student{gap:1mm!important;display:flex!important;align-items:center!important;justify-content:center!important}
 .student img,.student .avatar,.screen-photo-hidden{display:block!important;width:8mm!important;height:9.5mm!important;object-fit:cover!important;border-radius:2px!important;margin:0!important}
 .student-name{font-size:8.3pt!important;line-height:1.02!important;text-align:center!important;font-weight:700!important;-webkit-line-clamp:2!important}
 .print-no-photos .student img,.print-no-photos .student .avatar{display:none!important}
 .student-note-btn,.seat-lock-btn{display:none!important}
 .seat.random-flash,.seat.random-winner{transform:none!important;box-shadow:none!important;background:#fff!important;border-color:#aaa!important}
 .compact-note.no-print{display:none!important}
}

/* ===== v2.1.1: tự vừa một màn hình trên điện thoại/tablet/máy tính ===== */
#chartWrap.fit-stage,#room.fit-stage{overflow:hidden;position:relative;width:100%}
#chartWrap.fit-stage .seatroom,#room.fit-stage .seatroom{width:100%;will-change:transform}
.seats{grid-template-columns:repeat(var(--seat-cap,4),minmax(0,1fr))}
.seatroom.fit-compact .desk-rows{gap:3px!important;min-width:0!important}
.seatroom.fit-compact .desk-row{gap:4px!important}
.seatroom.fit-compact .desk{padding:1px!important;border-radius:5px}
.seatroom.fit-compact .seats{grid-template-columns:repeat(var(--seat-cap,4),minmax(0,1fr))!important;gap:1px!important}
.seatroom.fit-compact .seat{min-height:31px!important;padding:1px!important;border-radius:4px}
.seatroom.fit-compact .student{display:flex!important;align-items:center;justify-content:center;margin:0!important}
.seatroom.fit-compact .student img,.seatroom.fit-compact .student .avatar{display:none!important}
.seatroom.fit-compact .student-name{font-size:9.5px!important;line-height:1!important;margin:0!important;-webkit-line-clamp:2;text-align:center!important}
.seatroom.fit-compact .board-label{padding:2px!important;margin:2px auto 3px!important;font-size:9px!important;max-width:34%!important;border-radius:4px}
.seatroom.fit-compact .seat-lock-btn,.seatroom.fit-compact .student-note-btn{width:14px;height:14px;line-height:13px;font-size:8px;border-radius:4px;opacity:.45}
.seatroom.fit-ultra .desk-rows{gap:2px!important}.seatroom.fit-ultra .desk-row{gap:3px!important}.seatroom.fit-ultra .seat{min-height:26px!important}
.seatroom.fit-ultra .student-name{font-size:8.3px!important;line-height:.96!important;letter-spacing:-.1px}
.seatroom.fit-ultra .board-label{font-size:8px!important;padding:1px!important;margin:1px auto 2px!important}
.seatroom.fit-ultra .seat-lock-btn,.seatroom.fit-ultra .student-note-btn{width:12px;height:12px;line-height:11px;font-size:7px}
body.classroom-active .layout{max-width:none}
@media(max-width:700px){
 body.classroom-active .topbar{padding:3px 5px;min-height:34px;gap:5px}
 body.classroom-active .topbar .brand b,body.classroom-active .topbar .pill,body.classroom-active .topbar>.compact-note{display:none!important}
 body.classroom-active .topbar .brand img{width:25px;height:25px}
 body.classroom-active .topbar .btn{padding:4px 6px;font-size:10px}
 body.classroom-active .tabs{display:none!important}
 body.classroom-active .layout{padding:2px!important}
 body.classroom-active .class-view{padding:3px!important;border-radius:6px}
 body.classroom-active .class-head{display:flex;flex-wrap:nowrap;gap:4px;margin-bottom:2px;min-height:29px}
 body.classroom-active .class-head h2{font-size:17px;white-space:nowrap}
 body.classroom-active .class-head .class-label{display:none}
 body.classroom-active .class-head .badge{font-size:8px;padding:1px 4px;white-space:nowrap}
 body.classroom-active .class-head #backHome{font-size:0;width:28px;height:27px;padding:0}
 body.classroom-active .class-head #backHome::after{content:'←';font-size:16px}
 body.classroom-active .class-head #planSelect{max-width:118px;padding:4px 5px;font-size:9.5px;min-width:0}
 body.classroom-active .toolbar{margin:2px 0 2px!important;padding:0 0 2px;gap:3px}
 body.classroom-active .toolbar .btn{padding:4px 5px;font-size:9.5px;border-radius:6px}
 body.classroom-active .class-status{display:none!important}
 body.classroom-active #chartWrap{margin-top:1px}
 body.share-active .share-shell{padding:2px!important}
 body.share-active .share-card{padding:4px!important;border-radius:7px}
 body.share-active .share-title{display:flex;align-items:baseline;justify-content:center;gap:6px;min-height:24px}
 body.share-active .share-title h2{font-size:16px!important;white-space:nowrap}
 body.share-active .share-title p{font-size:9px!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.share-active .share-toolbar{margin:1px 0 3px!important;padding:0!important}
 body.share-active .share-toolbar .btn{padding:4px 7px;font-size:9.5px}
 body.share-active .compact-note.no-print{display:none!important}
}
@media(max-height:560px) and (orientation:landscape){
 body.classroom-active .topbar{display:none!important}
 body.classroom-active .class-head{min-height:24px}
 body.classroom-active .class-head h2{font-size:15px}
 body.classroom-active .toolbar .btn{padding:3px 5px;font-size:9px}
 body.share-active .share-title{min-height:20px}
}
@media print{#chartWrap,#room{height:auto!important;overflow:visible!important}.seatroom{transform:none!important}.seatroom.fit-compact .student img,.seatroom.fit-compact .student .avatar{display:block!important}.seatroom.fit-compact .seat,.seatroom.fit-ultra .seat{min-height:11.5mm!important}.seatroom.fit-compact .student-name,.seatroom.fit-ultra .student-name{font-size:8.3pt!important;line-height:1.02!important}}

/* ===== v2.1.2: danh sách lớp rõ hơn, cờ lưu ý, hướng dẫn theo vai trò, modal theo visual viewport ===== */
body.home-active .layout{max-width:1680px;padding:12px}
body.home-active .tabs{padding-bottom:8px}
body.home-active .tab{font-size:14px;font-weight:750;padding:8px 14px}
.home-section{padding:12px 14px}
.home-section.other-section{margin-top:10px}
.home-title-row{margin-bottom:10px}
.home-title-row h1,.other-title-row h2{margin:0;line-height:1.05;letter-spacing:-.02em}
.home-title-row h1{font-size:clamp(25px,2vw,32px)}
.other-title-row h2{font-size:clamp(20px,1.45vw,25px)}
.muted-sub{font-size:.68em;font-weight:600;color:var(--muted)}
.home-count{font-size:13px;font-weight:800;padding:4px 9px;border-radius:999px;background:#eef3ff;color:var(--blue2)}
.home-class-list{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:9px}
.home-class-list .class-card{min-height:66px;padding:9px 12px;border-radius:10px;display:flex;flex-direction:column;justify-content:center;gap:2px}
.home-class-list .class-card strong{font-size:21px;line-height:1;font-weight:850;letter-spacing:-.02em}
.home-class-list .class-card small{font-size:11.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-class-list .class-card.mine{box-shadow:inset 0 0 0 1px rgba(36,87,214,.08)}
.home-class-list .class-card:hover{border-color:#8ca9f5;box-shadow:0 3px 10px rgba(36,87,214,.10)}

/* Đánh dấu Cần lưu ý: chỉ xuất hiện trong tài khoản giáo viên sở hữu ghi nhớ */
.seat.needs-attention{background:#fff9eb!important;border-color:#f79009!important;box-shadow:inset 0 0 0 1px rgba(247,144,9,.16)}
.student-note-btn.is-pinned{opacity:1!important;background:#fef0c7!important;color:#b54708!important;border:1px solid #fec84b!important;font-size:12px;font-weight:900}
.memo-peek.memo-pinned,.memo-summary.memo-pinned{background:#fffaeb;border-color:#fedf89}
.attention-label{display:inline-block;font-weight:850;color:#b54708;background:#fef0c7;border:1px solid #fedf89;border-radius:999px;padding:1px 6px;margin:1px 0}

/* Hướng dẫn theo vai trò */
.help-card{padding:16px}
.help-title{margin-bottom:12px}
.help-title h1{font-size:clamp(24px,2vw,31px);margin:7px 0 0;line-height:1.08;letter-spacing:-.02em}
.role-chip{display:inline-block;padding:4px 9px;border-radius:999px;background:#eef3ff;color:var(--blue2);font-size:12px;font-weight:850}
.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.help-block{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fff}
.help-block h3{font-size:17px;margin:0 0 5px;color:#1d3f91}
.help-block p{font-size:13.5px;line-height:1.45;margin:0;color:#344054}
.help-privacy{margin-top:10px}

/* Hộp thoại luôn nằm giữa vùng màn hình đang nhìn, kể cả khi pinch-zoom */
.modal{align-items:center!important;justify-items:center!important;padding:10px!important;overscroll-behavior:contain}
.modal-card{margin:auto;max-height:calc(100% - 8px);overscroll-behavior:contain}

@media(min-width:1500px){
 .home-class-list{grid-template-columns:repeat(auto-fill,minmax(195px,1fr))}
 .home-class-list .class-card strong{font-size:23px}
 .home-class-list .class-card small{font-size:12px}
}
@media(max-width:900px){
 .home-class-list{grid-template-columns:repeat(3,minmax(0,1fr))}
 .home-class-list .class-card strong{font-size:20px}
 .help-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
 body.home-active .layout{padding:5px!important}
 body.home-active .topbar{padding:5px 7px}
 body.home-active .brand b{font-size:14px}
 body.home-active .tabs{gap:4px;padding-bottom:5px}
 body.home-active .tab{font-size:12px;padding:6px 9px}
 .home-section{padding:8px!important;border-radius:9px!important}
 .home-section.other-section{margin-top:6px!important}
 .home-title-row{margin-bottom:7px}
 .home-title-row h1{font-size:23px}
 .other-title-row h2{font-size:19px}
 .home-count{font-size:11px;padding:3px 7px}
 .home-class-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 .home-class-list .class-card{min-height:62px;padding:8px 9px!important}
 .home-class-list .class-card strong{font-size:20px!important}
 .home-class-list .class-card small{font-size:11px!important}
 .modal{padding:7px!important}
 .modal-card{border-radius:15px!important;max-height:calc(100% - 4px)!important;padding:13px!important}
 .help-card{padding:9px!important}
 .help-title h1{font-size:23px}
 .help-block{padding:9px}
 .help-block h3{font-size:16px}
 .help-block p{font-size:13px}
 .seat.needs-attention{box-shadow:inset 0 0 0 1px rgba(247,144,9,.2)!important}
}
@media(max-width:390px){
 .home-class-list .class-card{min-height:58px}
 .home-class-list .class-card strong{font-size:19px!important}
 .home-class-list .class-card small{font-size:10.5px!important}
}
@media print{
 .seat.needs-attention{background:#fff!important;border-color:#aaa!important;box-shadow:none!important}
 .attention-label{display:none!important}
}

/* ===== v2.1.3: sơ đồ tự động & trạng thái đang áp dụng ===== */
.active-plan-badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#ecfdf3;color:#067647;font-weight:800;white-space:nowrap}
.auto-plan-table .auto-date-input{width:118px;max-width:100%;padding:6px 7px;border:1px solid var(--line);border-radius:8px}
.auto-plan-table td:last-child{white-space:nowrap}
@media(max-width:700px){.auto-plan-table .table{font-size:11px}.auto-plan-table .table th,.auto-plan-table .table td{padding:6px}.auto-plan-table .auto-date-input{width:104px;font-size:11px}.auto-plan-table .btn.small{padding:5px 6px;font-size:10px}}


/* ===== v2.1.4: góc nhìn GV Trên xuống + tận dụng toàn bộ vùng hiển thị ===== */
body.classroom-active .tabs{display:none!important}
body.classroom-active .layout{max-width:none!important;padding:4px 6px!important}
body.classroom-active .class-view{padding:6px!important;border-radius:9px!important}
body.classroom-active .topbar{padding:4px 8px;min-height:38px}
body.classroom-active .class-head{margin-bottom:2px!important;gap:5px;min-height:30px}
body.classroom-active .class-head h2{font-size:clamp(18px,1.6vw,25px);line-height:1}
body.classroom-active .toolbar{margin:3px 0!important;gap:4px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body.classroom-active .toolbar::-webkit-scrollbar{display:none}
body.classroom-active .toolbar .btn{flex:0 0 auto}
body.classroom-active .class-status{display:none!important}
body.classroom-active #chartWrap{margin-top:2px!important}

/* Khi sơ đồ đã vừa: kéo giãn theo chiều cao thực tế của màn hình thay vì để khoảng trống. */
.seatroom.fit-fill{height:var(--fit-height)!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-bottom:0!important}
.seatroom.fit-fill>.board-label{flex:0 0 auto;margin-top:2px!important;margin-bottom:5px!important}
.seatroom.fit-fill>.desk-rows{flex:1 1 auto;min-height:0!important;height:auto!important;grid-template-rows:repeat(var(--desk-count,6),minmax(0,1fr));gap:clamp(3px,.7vh,8px)!important}
.seatroom.fit-fill .desk-row{height:100%;min-height:0!important;align-items:stretch!important;gap:clamp(6px,1.4vw,22px)!important}
.seatroom.fit-fill .desk{height:100%;min-height:0!important;display:flex;flex-direction:column;padding:clamp(2px,.45vh,5px)!important}
.seatroom.fit-fill .seats{flex:1 1 auto;min-height:0!important;height:100%!important;grid-auto-rows:minmax(0,1fr);align-items:stretch!important;gap:clamp(2px,.38vh,4px)!important}
.seatroom.fit-fill .seat{height:100%!important;min-height:0!important;padding:clamp(1px,.35vh,4px)!important}
.seatroom.fit-fill:not(.fit-compact):not(.fit-ultra) .student-name{font-size:clamp(11.5px,min(1.25vw,1.72vh),15px)!important;line-height:1.05!important;font-weight:800!important}
.seatroom.fit-fill:not(.fit-compact):not(.fit-ultra) .student img,.seatroom.fit-fill:not(.fit-compact):not(.fit-ultra) .avatar{width:clamp(24px,min(2.7vw,4.6vh),40px)!important;height:clamp(24px,min(2.7vw,4.6vh),40px)!important}
.seatroom.fit-fill.fit-compact .student-name{font-size:clamp(10px,min(1.45vw,1.65vh),12px)!important;line-height:1!important}
.seatroom.fit-fill.fit-ultra .student-name{font-size:clamp(9px,min(1.3vw,1.45vh),10.5px)!important}

/* Trang học sinh cũng tận dụng chiều cao, nhưng vẫn mặc định Dưới lên. */
body.share-active .share-shell{max-width:none!important;padding:4px!important}
body.share-active .share-card{padding:6px!important}
body.share-active .share-title h2{font-size:clamp(18px,2vw,25px)!important}
body.share-active .share-title p{margin:2px 0 4px!important}
body.share-active .share-toolbar{margin:2px 0 3px!important}

@media(max-width:700px){
 body.classroom-active .layout{padding:1px!important}
 body.classroom-active .class-view{padding:2px!important;border-radius:5px!important}
 body.classroom-active .class-head{min-height:27px!important;margin-bottom:1px!important}
 body.classroom-active .class-head h2{font-size:18px!important}
 body.classroom-active .toolbar{margin:1px 0!important;padding:0 0 1px!important;gap:3px!important}
 body.classroom-active .toolbar .btn{padding:4px 6px!important;font-size:10px!important}
 body.classroom-active #chartWrap{margin-top:0!important}
 .seatroom.fit-fill>.desk-rows{gap:3px!important}
 .seatroom.fit-fill .desk-row{gap:4px!important}
 .seatroom.fit-fill .desk{padding:2px!important}
 .seatroom.fit-fill:not(.fit-compact):not(.fit-ultra) .student-name{font-size:clamp(10.5px,3vw,12.5px)!important}
 .seatroom.fit-fill:not(.fit-compact):not(.fit-ultra) .student img,.seatroom.fit-fill:not(.fit-compact):not(.fit-ultra) .avatar{width:clamp(22px,6.5vw,29px)!important;height:clamp(22px,6.5vw,29px)!important}
 body.share-active .share-shell{padding:1px!important}
 body.share-active .share-card{padding:2px!important}
}
@media(max-height:560px) and (orientation:landscape){
 body.classroom-active .class-head{min-height:22px!important}
 body.classroom-active .toolbar .btn{padding:3px 5px!important;font-size:9px!important}
 .seatroom.fit-fill>.desk-rows{gap:2px!important}
 .seatroom.fit-fill .desk-row{gap:5px!important}
}
@media print{
 .seatroom.fit-fill{height:auto!important;display:block!important;overflow:visible!important}
 .seatroom.fit-fill>.desk-rows{display:grid!important;height:auto!important;grid-template-rows:none!important}
}

/* ===== v2.2.0: Điểm TX + bảng điểm + xuất VNEDU ===== */
.tx-seat-badge{position:absolute;left:2px;top:2px;z-index:4;max-width:46px;padding:1px 4px;border-radius:999px;background:#eaf2ff;color:#1849a9;border:1px solid #b2ccff;font-size:8.5px;font-weight:850;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.88}
.tx-chip{display:inline-block;margin:2px 3px 1px 0;padding:2px 5px;border-radius:999px;background:#eef3ff;color:#173d9e;border:1px solid #d5e0ff;font-size:10px;white-space:nowrap}
.tx-summary{margin-top:4px;line-height:1.65}
.tx-input-grid{display:grid;grid-template-columns:repeat(5,minmax(70px,1fr));gap:8px;margin:8px 0 10px}
.tx-input-grid .field{margin:0}.tx-input-grid input{text-align:center;font-weight:800;font-size:16px;padding:9px 5px}
.grade-context{margin-top:10px}
.legacy-score{margin:8px 0}
.modal-card.modal-wide{max-width:min(1180px,calc(100vw - 22px));width:min(1180px,calc(100vw - 22px))}
.gradebook-modal{overflow:hidden;display:flex;flex-direction:column;max-height:calc(100% - 10px)!important}
.gradebook-modal .grade-context,.gradebook-modal .gradebook-actions,.gradebook-modal .gradebook-tip{flex:0 0 auto}
.gradebook-actions{gap:7px;margin:2px 0 8px}
.gradebook-tip{padding:7px 9px;font-size:11.5px;margin-bottom:7px}
.gradebook-wrap{flex:1 1 auto;min-height:220px;max-height:64vh;overflow:auto}
.gradebook-table{min-width:760px;font-size:12px}
.gradebook-table th,.gradebook-table td{padding:5px 6px;text-align:center}
.gradebook-table th:nth-child(3),.gradebook-table td:nth-child(3){text-align:left}
.gradebook-table thead th{z-index:3}
.gradebook-table .gb-stt{width:42px}.gradebook-table .gb-code{width:100px}.gradebook-table .gb-name{min-width:190px}
.grade-score{width:58px;max-width:58px;text-align:center;border:1px solid #cdd5df;border-radius:7px;padding:6px 3px;font-weight:800;background:#fff}
.grade-score:focus{outline:2px solid #b2ccff;border-color:#528bff}
.tx-btn{border-color:#b2ccff!important;background:#f5f8ff!important;color:#1849a9!important;font-weight:800}
@media(max-width:700px){
 .tx-seat-badge{font-size:7px;max-width:36px;padding:1px 2px;left:1px;top:1px}
 .seatroom.fit-ultra .tx-seat-badge{display:none!important}
 .tx-input-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .tx-input-grid input{font-size:15px;padding:8px 3px}
 .modal-card.modal-wide{width:calc(100vw - 8px);max-width:calc(100vw - 8px);padding:8px!important}
 .gradebook-modal .modal-head h3{font-size:16px}
 .gradebook-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;width:100%}
 .gradebook-actions .btn{width:100%;font-size:11px;padding:7px 6px;text-align:center}
 .gradebook-actions .compact-note{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .gradebook-tip{font-size:10.5px}
 .gradebook-wrap{max-height:58vh}
 .gradebook-table{min-width:700px;font-size:11px}
 .gradebook-table th,.gradebook-table td{padding:4px}
 .grade-score{width:52px;max-width:52px;padding:6px 2px}
}
@media(max-width:390px){.tx-input-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gradebook-wrap{max-height:56vh}}
@media print{.tx-seat-badge{display:none!important}}

/* ===== v2.2.2: xếp thủ công, bố cục cân đối, bảng TX mobile, VNEDU mặc định ===== */
.btn.primary-soft{background:#eef3ff;border-color:#a6bdfb;color:#173d9e;font-weight:800}

/* Ghế trống trong sơ đồ thủ công có thể bấm để chọn HS chưa được xếp. */
.seat.manual-empty{cursor:pointer;background:#f7f9ff;border-color:#9eb7f4;border-style:dashed}
.seat.manual-empty:hover{background:#eef3ff;border-color:#5b83e8}
.seat-add-hint{display:grid;place-items:center;width:100%;height:100%;font-size:clamp(18px,2.2vw,30px);font-weight:400;color:#7c9be8;line-height:1;opacity:.7}
.student-picker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:min(58vh,520px);overflow:auto;padding:2px;overscroll-behavior:contain}
.student-picker-item{border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 10px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
.student-picker-item:hover{border-color:#8eabef;background:#f5f8ff}.student-picker-item small{color:var(--muted);white-space:nowrap}
.seat-picker-modal{max-width:700px}

/* Không kéo giãn ghế quá mức. Font tự tính theo kích thước thật của ghế. */
.seatroom .seat{padding:1px!important}
.seatroom .student-name,
.seatroom.fit-fill:not(.fit-compact):not(.fit-ultra) .student-name,
.seatroom.fit-fill.fit-compact .student-name,
.seatroom.fit-fill.fit-ultra .student-name,
.seatroom.fit-compact .student-name,
.seatroom.fit-ultra .student-name{font-size:var(--seat-font,12px)!important;line-height:.98!important;font-weight:850!important;letter-spacing:-.15px!important;margin:0!important;-webkit-line-clamp:2!important}
.seatroom .student{gap:3px!important;height:100%;min-height:0}
.seatroom.fit-fill .seat{align-items:center;justify-content:center}

/* Bảng điểm: bỏ Mã HS khỏi màn hình, ưu tiên tối đa TX1..TX5. */
.gradebook-table{min-width:520px!important;table-layout:fixed;font-size:12px}
.gradebook-table th,.gradebook-table td{padding:4px 3px!important;text-align:center!important}
.gradebook-table th:nth-child(2),.gradebook-table td:nth-child(2){text-align:left!important}
.gradebook-table th:nth-child(3),.gradebook-table td:nth-child(3){text-align:center!important}
.gradebook-table .gb-stt{width:32px!important}
.gradebook-table .gb-name{width:118px!important;min-width:0!important;max-width:118px!important;white-space:normal!important;overflow:hidden;line-height:1.05;font-size:11px}
.gradebook-table .gb-name b{display:block;max-height:2.2em;overflow:hidden}
.gradebook-table .gb-tx{width:55px!important}
.gradebook-table .gb-note{width:40px!important}
.grade-score{width:100%!important;max-width:none!important;min-width:0!important;padding:7px 2px!important;font-size:16px!important;line-height:1!important}
.gradebook-wrap{touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:auto!important;-webkit-overflow-scrolling:touch}

/* Form nhập TX: chữ >=16px để tránh trình duyệt tự zoom khi focus. */
.score-entry-modal{max-width:760px!important;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:auto!important}
.score-entry-modal .tx-input-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;margin:6px 0 8px!important}
.score-entry-modal .tx-input-grid .field{min-width:0!important}
.score-entry-modal .tx-input-grid label{text-align:center;font-size:11px}
.score-entry-modal .tx-score-input{font-size:18px!important;font-weight:850!important;text-align:center;padding:9px 1px!important;min-width:0!important}
.score-entry-modal select,.score-entry-modal textarea{font-size:16px!important}

@media(max-width:700px){
 .student-picker-list{grid-template-columns:1fr;max-height:62vh}.student-picker-item{padding:9px}
 .seat-add-hint{font-size:20px}
 .gradebook-modal{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;border-radius:8px!important;padding:6px!important;margin:0!important;overflow:hidden!important}
 .gradebook-modal .modal-head{margin-bottom:5px}.gradebook-modal .modal-head h3{font-size:15px!important;line-height:1.05}
 .gradebook-modal .compact-note{font-size:9.5px}
 .gradebook-modal .grade-context{grid-template-columns:1fr 1fr!important;gap:4px!important;margin-top:4px}.gradebook-modal .grade-context .field{margin-bottom:3px}
 .gradebook-modal .grade-context input,.gradebook-modal .grade-context select{font-size:16px!important;padding:6px!important}
 .gradebook-actions{grid-template-columns:1fr 1fr!important;gap:4px!important;margin:2px 0 4px!important}
 .gradebook-actions .btn{font-size:10px!important;padding:6px 4px!important}
 .gradebook-tip{font-size:9.5px!important;line-height:1.2;padding:5px 6px!important;margin-bottom:4px!important}
 .gradebook-wrap{flex:1 1 0!important;min-height:0!important;max-height:none!important;width:100%!important;overflow:auto!important}
 .gradebook-table{min-width:500px!important;font-size:10.5px!important}
 .gradebook-table .gb-stt{width:28px!important}.gradebook-table .gb-name{width:105px!important;max-width:105px!important;font-size:10px!important}.gradebook-table .gb-tx{width:53px!important}.gradebook-table .gb-note{width:36px!important}
 .grade-score{font-size:16px!important;padding:7px 1px!important}
 .score-entry-modal{width:100%!important;max-width:100%!important;max-height:100%!important;border-radius:8px!important;padding:8px!important;overflow:auto!important;margin:0!important}
 .score-entry-modal .modal-head{position:sticky;top:-8px;background:#fff;z-index:5;padding:4px 0;margin-bottom:5px}
 .score-entry-modal .okbox{font-size:10px;line-height:1.2;padding:6px;margin-bottom:4px}
 .score-entry-modal .grade-context{grid-template-columns:1fr 1fr!important;gap:4px!important;margin-top:4px}.score-entry-modal .grade-context .field{margin-bottom:3px}
 .score-entry-modal .grade-context select{font-size:16px!important;padding:6px!important}
 .score-entry-modal .tx-input-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important}
 .score-entry-modal .tx-input-grid label{font-size:10px!important}.score-entry-modal .tx-score-input{font-size:18px!important;padding:10px 0!important}
 .score-entry-modal textarea{min-height:72px;font-size:16px!important}
}
@media(max-width:390px){
 .score-entry-modal .tx-input-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 .score-entry-modal .tx-score-input{font-size:17px!important}
 .gradebook-table{min-width:485px!important}.gradebook-table .gb-name{width:98px!important;max-width:98px!important}.gradebook-table .gb-tx{width:52px!important}
}
@media print{.seat-add-hint{display:none!important}.seatroom .student-name{font-size:8.3pt!important;letter-spacing:0!important}}

/* ===== v2.2.3: giao diện siêu gọn + xuất điểm tối ưu ===== */
/* Nút bấm ôm sát chữ, giảm khoảng trống nhưng vẫn đủ dễ chạm. */
.btn{padding:4px 7px!important;border-radius:7px!important;line-height:1.12!important;min-height:0!important}
.btn.small{padding:3px 5px!important;font-size:11px!important;border-radius:6px!important}
.tab{padding:5px 8px!important;line-height:1.1!important}
.pill{padding:3px 6px!important}
.row{gap:4px!important}
.toolbar{gap:3px!important}
.modal-head{gap:4px!important;margin-bottom:7px!important}
.modal-card{padding:10px!important}
.field{gap:3px!important;margin-bottom:6px!important}
.field input,.field select,.field textarea{padding:6px 7px!important;border-radius:7px!important}
.okbox,.warnbox{padding:6px 8px!important}

/* Bảng điểm: chỉ giữ các nút tác vụ ngắn trên một dòng và cho vuốt ngang nếu màn hình rất hẹp. */
.gradebook-actions,.compact-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:3px!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;margin:1px 0 4px!important;padding:0 0 1px!important;-webkit-overflow-scrolling:touch}
.gradebook-actions::-webkit-scrollbar,.compact-actions::-webkit-scrollbar{display:none}
.gradebook-actions .btn,.compact-actions .btn{flex:0 0 auto!important;width:auto!important;white-space:nowrap!important;padding:4px 6px!important;font-size:10.5px!important}
.compact-modal-head h3{font-size:16px;line-height:1.05}
.gradebook-wrap{border-radius:7px!important}
.gradebook-table th,.gradebook-table td{padding:3px 2px!important}
.gradebook-table .gb-stt{width:27px!important}
.gradebook-table .gb-name{width:100px!important;max-width:100px!important;font-size:10.5px!important}
.gradebook-table .gb-tx{width:52px!important}
.gradebook-table .gb-note{width:34px!important}
.gradebook-table .gb-note .btn{padding:2px 4px!important;font-size:10px!important}

@media(max-width:700px){
 .btn{padding:3px 5px!important;font-size:11px!important}
 .btn.small{padding:2px 4px!important;font-size:10px!important}
 .tab{padding:4px 6px!important;font-size:11px!important}
 .topbar{gap:4px!important;padding:4px 6px!important}
 .layout{padding:5px!important}
 .card{padding:6px!important}
 .modal-card{padding:6px!important}
 .modal-head{margin-bottom:4px!important}
 .gradebook-actions .btn,.compact-actions .btn{padding:3px 5px!important;font-size:10px!important}
 .gradebook-table{min-width:472px!important}
 .gradebook-table .gb-name{width:92px!important;max-width:92px!important}
 .gradebook-table .gb-tx{width:50px!important}
 .gradebook-table .gb-note{width:32px!important}
}
@media(max-width:390px){
 .btn{padding:2px 4px!important;font-size:10px!important}
 .gradebook-table{min-width:455px!important}
 .gradebook-table .gb-name{width:86px!important;max-width:86px!important}
 .gradebook-table .gb-tx{width:49px!important}
}

/* ===== v2.2.4: compact controls + professional palette + gradebook UX ===== */
:root{
 --blue:#1d4ed8;--blue2:#173ea5;--bg:#f3f6fb;--card:#ffffff;--text:#162033;--muted:#5f6b7a;--line:#d6deea;
 --ok:#0f8a6b;--warn:#c17000;--danger:#c52b20;--shadow:0 6px 22px rgba(34,54,86,.09);
 --soft-blue:#eef4ff;--soft-teal:#ecfdf7;--soft-gold:#fff7e8
}
body{background:linear-gradient(180deg,#f5f8fd 0,#f2f5fa 100%)}
.topbar{background:linear-gradient(90deg,#ffffff 0%,#f7faff 100%);border-bottom-color:#cbd7ea;box-shadow:0 2px 9px rgba(35,62,108,.06)}
.card{border-color:#d7e0ed;box-shadow:0 5px 18px rgba(37,57,88,.07)}
.btn{padding:3px 6px!important;border-radius:6px!important;line-height:1.08!important;font-weight:700;border-color:#cbd6e5;box-shadow:0 1px 1px rgba(31,41,55,.03)}
.btn.small{padding:2px 4px!important;font-size:10.5px!important}
.btn.primary{background:linear-gradient(180deg,#2b63e6,#1d4ed8)!important;border-color:#1d4ed8!important}
.btn.primary:hover{background:linear-gradient(180deg,#2459d3,#173ea5)!important}
.btn.primary-soft{background:#edf3ff!important;border-color:#9eb8ef!important;color:#173ea5!important}
.btn.danger{background:#c52b20!important;border-color:#c52b20!important}
.tab.active{background:linear-gradient(180deg,#2b63e6,#1d4ed8)!important}
.field input,.field select,.field textarea{border-color:#cbd6e5;background:#fff;box-shadow:inset 0 1px 1px rgba(31,41,55,.02)}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid rgba(29,78,216,.16);border-color:#6f96eb}

/* Đăng nhập: rõ, dễ bấm trên điện thoại và máy tính */
.login{max-width:520px;margin:7vh auto;padding:28px 30px;border-radius:20px;border-color:#cfd9e8;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.login img{width:82px;height:82px}
.login h1{font-size:30px;line-height:1.08;margin:14px 0 7px;font-weight:850;letter-spacing:-.025em;color:#17315f}
.login>p{font-size:17px;line-height:1.35;margin:6px 0 20px;color:#506078}
.login .field label{font-size:15px;margin-bottom:3px;color:#334155}
.login .field input{font-size:17px;padding:12px 13px;border-radius:10px}
.login .btn{font-size:17px!important;padding:11px 14px!important;border-radius:10px!important;min-height:46px!important}
.login .compact-note{font-size:13px!important;line-height:1.35;margin-top:12px!important}
@media(max-width:600px){
 .login{margin:3vh 10px;padding:22px 18px;max-width:none}
 .login img{width:72px;height:72px}.login h1{font-size:27px}.login>p{font-size:16px}
 .login .btn{font-size:16px!important;padding:11px 12px!important}
}

/* Bảng điểm: thu hẹp STT/tên, ưu tiên 5 cột điểm */
.modal-card.gradebook-modal{max-width:min(780px,calc(100vw - 12px))!important;width:min(780px,calc(100vw - 12px))!important}
.gradebook-table{width:100%!important;min-width:620px!important;table-layout:fixed!important;font-size:12px!important}
.gradebook-table th,.gradebook-table td{padding:3px 2px!important;height:38px}
.gradebook-table .gb-stt,.gradebook-table th:nth-child(1){width:30px!important;max-width:30px!important;padding-left:1px!important;padding-right:1px!important}
.gradebook-table .gb-name,.gradebook-table th:nth-child(2){width:155px!important;max-width:155px!important;min-width:155px!important;font-size:11px!important;line-height:1.08!important}
.gradebook-table .gb-tx,.gradebook-table th:nth-child(n+3):nth-child(-n+7){width:auto!important}
.gradebook-table .gb-note,.gradebook-table th:nth-child(8){width:38px!important;max-width:38px!important}
.grade-score{width:100%!important;min-width:0!important;max-width:none!important;height:34px!important;padding:3px 1px!important;border-radius:5px!important;font-size:17px!important;font-weight:850!important;border-color:#cbd6e5;background:#fbfdff}
.grade-score:focus{background:#fff;outline:2px solid rgba(29,78,216,.22)!important;border-color:#4f7fe4!important;box-shadow:0 0 0 2px rgba(29,78,216,.06)}
.gradebook-table thead th{background:linear-gradient(180deg,#edf3ff,#e7eefb)!important;color:#1f3766;border-bottom:1px solid #bdcbe1!important;font-weight:850}
.gradebook-table tbody tr:nth-child(even){background:#fafcff}
.gradebook-table tbody tr:hover{background:#f1f6ff}
.gradebook-actions{gap:2px!important;margin:1px 0 4px!important}
.gradebook-actions .btn{padding:3px 5px!important;font-size:10px!important}
@media(max-width:700px){
 .modal-card.gradebook-modal{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;border-radius:5px!important}
 .gradebook-table{min-width:535px!important;font-size:10.5px!important}
 .gradebook-table .gb-stt,.gradebook-table th:nth-child(1){width:24px!important;max-width:24px!important}
 .gradebook-table .gb-name,.gradebook-table th:nth-child(2){width:112px!important;min-width:112px!important;max-width:112px!important;font-size:10px!important}
 .gradebook-table .gb-note,.gradebook-table th:nth-child(8){width:31px!important;max-width:31px!important}
 .grade-score{height:33px!important;font-size:16px!important;padding:2px 0!important}
}
@media(max-width:390px){
 .gradebook-table{min-width:505px!important}
 .gradebook-table .gb-name,.gradebook-table th:nth-child(2){width:100px!important;min-width:100px!important;max-width:100px!important}
}

/* ===== v2.2.5: màu sắc chuyên nghiệp + ảnh mobile + cài PWA + bảng điểm gọn ===== */
:root{
 --navy:#12356b;--brand:#1d4ed8;--brand-2:#2563eb;--cyan:#0f7490;--teal:#0f8a6b;
 --surface:#ffffff;--surface-soft:#f7faff;--surface-blue:#eef4ff;--border-blue:#c8d7ef;
}
body{background:linear-gradient(145deg,#eef4fb 0%,#f7f9fc 48%,#edf4fb 100%);color:#14213a}
.topbar{background:linear-gradient(90deg,#ffffff 0%,#f4f8ff 55%,#eef5ff 100%);border-bottom:1px solid #c6d5eb}
.brand b{color:var(--navy);font-weight:850}
.card{background:rgba(255,255,255,.97);border-color:#d2ddea}
.class-card{border-color:#d1dceb;background:linear-gradient(180deg,#fff,#fbfdff)}
.class-card.mine{border-color:#8fb1ef;background:linear-gradient(180deg,#f5f9ff,#edf4ff);box-shadow:inset 0 0 0 1px rgba(37,99,235,.05)}
.class-card:hover{border-color:#7fa5ea;box-shadow:0 4px 12px rgba(29,78,216,.08)}
.class-card strong{color:#17366b}
.board-label{background:linear-gradient(180deg,#1f365d,#132847);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.desk{border-color:#b9c8dd;background:linear-gradient(180deg,#ffffff,#f9fbff)}
.seat.occupied{background:linear-gradient(180deg,#ffffff,#f4f8ff);border-color:#aebfd7}
.seat.occupied:hover{border-color:#6e95dc;background:#eef5ff}
.seat.locked{background:linear-gradient(180deg,#fffaf0,#fff3d7);border-color:#d7ad43}
.seat.memo-pinned,.seat.attention{background:linear-gradient(180deg,#fffdf5,#fff8dd)!important;border-color:#e2b83d!important}
.random-btn{border-color:#8ecfc1!important;background:#edfbf7!important;color:#08745b!important}
.tx-btn{border-color:#9eb8ef!important;background:#eef4ff!important;color:#173ea5!important}
.badge{background:#e9f1ff;color:#17458f;border:1px solid #ccdcf5}

/* Bảng điểm: STT thật gọn, các ô điểm nhận nhiều không gian hơn. */
.gradebook-table{min-width:600px!important}
.gradebook-table .gb-stt,.gradebook-table th:nth-child(1){width:22px!important;max-width:22px!important;min-width:22px!important;font-size:10px!important;padding:1px!important}
.gradebook-table .gb-name,.gradebook-table th:nth-child(2){width:140px!important;min-width:140px!important;max-width:140px!important;padding-left:5px!important}
.gradebook-table .gb-note,.gradebook-table th:nth-child(8){width:31px!important;max-width:31px!important;min-width:31px!important}
.gradebook-table th:nth-child(n+3):nth-child(-n+7),.gradebook-table td.gb-tx{min-width:70px!important}
.grade-score{height:32px!important;font-size:17px!important;border-color:#b9c9df;background:#fff}
.grade-score:focus{background:#fdfefe!important;border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.10)!important}
.gradebook-table thead th{background:linear-gradient(180deg,#e9f2ff,#ddeafe)!important;color:#17366b!important}
.gradebook-table tbody tr:nth-child(even){background:#f8fbff}
.gradebook-table tbody tr:hover{background:#eef5ff}

/* Khi người dùng bật Ảnh, ảnh vẫn hiển thị ở chế độ compact/ultra trên điện thoại. */
.seatroom.fit-compact .student img:not(.screen-photo-hidden),
.seatroom.fit-compact .student .avatar:not(.screen-photo-hidden){display:block!important;width:17px!important;height:17px!important;margin:0 auto 1px!important;border-radius:50%!important;object-fit:cover!important}
.seatroom.fit-ultra .student img:not(.screen-photo-hidden),
.seatroom.fit-ultra .student .avatar:not(.screen-photo-hidden){display:block!important;width:14px!important;height:14px!important;margin:0 auto!important;border-radius:50%!important;object-fit:cover!important}
.seatroom.fit-compact .student:has(img:not(.screen-photo-hidden)),
.seatroom.fit-compact .student:has(.avatar:not(.screen-photo-hidden)),
.seatroom.fit-ultra .student:has(img:not(.screen-photo-hidden)),
.seatroom.fit-ultra .student:has(.avatar:not(.screen-photo-hidden)){display:flex!important;flex-direction:column!important;gap:0!important}

/* Màn hình đăng nhập + nút cài ứng dụng. */
.login-panel{border:1px solid #c5d4e8;background:linear-gradient(160deg,#ffffff 0%,#f9fbff 55%,#eef5ff 100%);box-shadow:0 18px 50px rgba(25,55,100,.14)}
.login-main-btn{width:100%;margin:4px 0 8px!important;background:linear-gradient(180deg,#2f6bea,#1d4ed8)!important}
.login-magic-btn{width:100%;background:#fff!important;color:#17366b!important;border-color:#b7c9e2!important}
.install-app-btn{width:100%;margin:0 0 10px!important;background:linear-gradient(180deg,#ecfdf8,#def8ef)!important;border-color:#8bd2bf!important;color:#08745b!important;font-weight:850!important}
.login-divider{display:flex;align-items:center;gap:9px;color:#8491a4;font-size:12px;margin:7px 0}.login-divider:before,.login-divider:after{content:"";height:1px;background:#d9e2ef;flex:1}.login-divider span{white-space:nowrap}
.login-email{margin-bottom:7px!important}

@media(max-width:700px){
 .gradebook-table{min-width:500px!important}
 .gradebook-table .gb-stt,.gradebook-table th:nth-child(1){width:20px!important;min-width:20px!important;max-width:20px!important;font-size:9px!important}
 .gradebook-table .gb-name,.gradebook-table th:nth-child(2){width:96px!important;min-width:96px!important;max-width:96px!important;font-size:9.8px!important;line-height:1.04!important}
 .gradebook-table th:nth-child(n+3):nth-child(-n+7),.gradebook-table td.gb-tx{min-width:68px!important}
 .gradebook-table .gb-note,.gradebook-table th:nth-child(8){width:28px!important;min-width:28px!important;max-width:28px!important}
 .grade-score{height:31px!important;font-size:16px!important}
 .login-panel{margin:2vh 8px!important;padding:20px 16px!important}
}
@media(max-width:390px){
 .gradebook-table{min-width:475px!important}
 .gradebook-table .gb-name,.gradebook-table th:nth-child(2){width:88px!important;min-width:88px!important;max-width:88px!important}
 .gradebook-table th:nth-child(n+3):nth-child(-n+7),.gradebook-table td.gb-tx{min-width:66px!important}
}

/* ===== AS2 Classroom v2.3.0: release toàn trường ===== */
:root{
 --as2-navy:#12356b;--as2-blue:#1d4ed8;--as2-blue-2:#2563eb;--as2-cyan:#0e7490;--as2-teal:#0f8a6b;
 --as2-bg:#edf3fa;--as2-surface:#ffffff;--as2-soft:#f5f8fd;--as2-line:#c8d5e8;--as2-text:#13213a
}
body{background:linear-gradient(145deg,#eaf1f9 0%,#f8faff 48%,#edf5fb 100%);color:var(--as2-text)}
.topbar{background:linear-gradient(90deg,#0f2f61 0%,#164b91 58%,#176a89 100%)!important;border-bottom:0!important;box-shadow:0 3px 14px rgba(18,53,107,.22)}
.topbar .brand b,.topbar .brand-school,.topbar .compact-note,.topbar .pill{color:#fff!important}
.topbar .brand{display:flex;align-items:center;gap:7px}.topbar .brand img{background:#fff;border-radius:7px;padding:2px}.brand-school{font-size:11px;opacity:.9;font-weight:650}
.topbar .pill{background:rgba(255,255,255,.14)!important;border-color:rgba(255,255,255,.28)!important}
.topbar .btn{background:#fff!important;color:#12356b!important;border-color:#dce8f7!important}
.card{border-color:#ccd9ea!important;background:rgba(255,255,255,.97)!important;box-shadow:0 5px 18px rgba(24,55,96,.07)!important}
.class-card{border-color:#cbd8e9!important;background:linear-gradient(180deg,#fff,#f7faff)!important}
.class-card.mine{border-color:#93b4e8!important;background:linear-gradient(180deg,#f7fbff,#edf5ff)!important}
.class-card:hover{border-color:#5686da!important;box-shadow:0 4px 13px rgba(29,78,216,.12)!important}
.tab{font-weight:800!important}.tab.active{background:linear-gradient(180deg,#2d67e6,#1d4ed8)!important;color:#fff!important}
.btn.primary{background:linear-gradient(180deg,#2e66e1,#1d4ed8)!important}.btn.primary-soft{background:#edf4ff!important;color:#164493!important}
.board-label{background:linear-gradient(180deg,#f8fbff,#edf4fb)!important;border-color:#7387a2!important;color:#142b50!important;font-weight:900!important}
.seat{border-color:#9ba9ba!important;background:#fff!important}.seat.occupied{background:linear-gradient(180deg,#fff,#f9fbfe)!important}.seat.attention{background:#fff9e9!important;border-color:#e2a83b!important}
.login-panel{border:1px solid #c7d6ea!important;box-shadow:0 18px 55px rgba(18,53,107,.18)!important;background:linear-gradient(180deg,#fff 0%,#f7faff 100%)!important}
.login-panel h1{color:#12356b!important;font-size:34px!important;margin-bottom:2px!important}.login-subtitle{font-size:17px;font-weight:750;color:#286093;margin:2px 0 8px;letter-spacing:.01em}
.product-footer{margin-top:16px;padding-top:11px;border-top:1px solid #dbe5f2;color:#6a7687;font-size:11px;text-align:center;line-height:1.35}
.install-app-btn{border-color:#89a7d4!important;background:#f4f8ff!important;color:#123f82!important;font-weight:800!important}
@media(max-width:600px){.login-panel h1{font-size:31px!important}.login-subtitle{font-size:16px}.product-footer{font-size:10.5px}.brand-school{display:none}}

/* In chỉ lấy nội dung sơ đồ: mọi popover/modal/toast đang mở phải biến mất hoàn toàn. */
@media print{
 #popover,.popover,#modal,.modal,.toast,.random-result-card,.random-result,.student-profile-card,.profile-card,.install-app-btn,.product-footer{display:none!important;visibility:hidden!important}
 body{background:#fff!important}.topbar,.tabs,.toolbar,.no-print{display:none!important}
 .card{box-shadow:none!important;border:0!important;background:#fff!important}
}

/* ===== v2.4.0: module Thời khóa biểu ===== */
.login-public-tkb{display:block;text-align:center;text-decoration:none;margin-top:8px;background:#f0f5ff;border-color:#bfd0ff;color:#163b8f;font-weight:800}
.tkb-shell{padding:16px}.tkb-head{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:10px}.tkb-head h1,.public-tkb-head h1{margin:1px 0 0;font-size:clamp(28px,3vw,40px);letter-spacing:-.035em;color:#12356b}.module-kicker{font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#4f6fae}.tkb-version-box{margin-left:auto;min-width:min(440px,100%);display:grid;gap:4px}.tkb-version-box label{font-size:11px;font-weight:800;color:#667085}.tkb-version-box select,.tkb-filter-row select,.tkb-filter-row input,.tkb-lookup select,.tkb-manager-grid input,.tkb-manager-grid select,.public-version select{border:1px solid #c8d4e8;border-radius:9px;background:#fff;padding:8px 10px;min-height:38px;color:#172033}.tkb-version-notice{padding:8px 10px;border-radius:9px;margin:7px 0;font-size:13px}.tkb-version-notice.past{background:#f2f4f7;color:#475467}.tkb-version-notice.future{background:#eff8ff;color:#175cd3}.tkb-version-notice.current{background:#ecfdf3;color:#067647}.tkb-version-notice.draft{background:#fff7ed;color:#b54708}.tkb-subtabs{display:flex;gap:5px;overflow:auto;padding:3px 0 10px}.tkb-subtabs button{white-space:nowrap;border:1px solid #ccd7e8;background:#fff;color:#344054;border-radius:999px;padding:7px 11px;font-weight:800}.tkb-subtabs button.active{background:#173d9e;color:#fff;border-color:#173d9e}.tkb-section-title{display:flex;align-items:center;gap:10px;margin:8px 0}.tkb-section-title h2{margin:0;color:#12356b}.tkb-filter-row{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:7px 0 10px;padding:9px;background:#f8fbff;border:1px solid #dde7f5;border-radius:11px}.tkb-filter-row label{display:grid;gap:3px;font-size:11px;font-weight:800;color:#475467}.tkb-filter-row .grow{flex:1;min-width:170px}.tkb-week{overflow:auto;border:1px solid #cfd9e8;border-radius:12px;background:#fff}.tkb-week table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:900px}.tkb-week th,.tkb-week td{border-right:1px solid #dfe6f0;border-bottom:1px solid #dfe6f0;padding:4px;vertical-align:top}.tkb-week thead th{position:sticky;top:0;background:#12356b;color:#fff;z-index:2;font-size:13px;padding:8px 4px}.tkb-week tbody th{width:56px;background:#f4f7fb;text-align:center;color:#344054;font-size:12px}.tkb-week tbody th span{display:block;font-size:13px;font-weight:900}.tkb-week tbody th small{display:block;font-size:9px;color:#667085}.tkb-entry{border-radius:7px;padding:5px 6px;min-height:42px;border:1px solid rgba(0,0,0,.08);display:flex;flex-direction:column;justify-content:center;line-height:1.05}.tkb-entry b{font-size:12px}.tkb-entry small{font-size:10px;margin-top:3px;color:#344054}.subj-math{background:#eaf2ff;border-color:#b9d2ff}.subj-literature{background:#fff0f4;border-color:#ffc8d7}.subj-english{background:#e8fbf7;border-color:#acebdc}.subj-physics{background:#eff0ff;border-color:#c7c9ff}.subj-chemistry{background:#fff4e6;border-color:#ffd29a}.subj-biology{background:#eefbea;border-color:#bfe6b6}.subj-history{background:#fff9e7;border-color:#f6df9a}.subj-geography{background:#e9f8ff;border-color:#b5e6fb}.subj-informatics{background:#e8f0ff;border-color:#b6caff}.subj-technology{background:#f3f8e9;border-color:#d0e1a8}.subj-pe{background:#f1f3f5;border-color:#d5d9de}.subj-defense{background:#edf2f4;border-color:#c8d1d6}.subj-civics{background:#f6edff;border-color:#dfc4ff}.subj-local{background:#f7f3ee;border-color:#ddd1c1}.subj-experience{background:#fff0e9;border-color:#ffc8ad}.subj-flag{background:#fff3f2;border-color:#ffb4ae}.subj-other{background:#f8fafc;border-color:#dce3ed}.mobile-tkb{display:none}.tkb-day-card{border:1px solid #dbe4f0;border-radius:11px;background:#fff;padding:8px;margin-bottom:7px}.tkb-day-card h3{margin:0 0 7px;color:#12356b}.tkb-mobile-row{display:grid;grid-template-columns:42px 1fr;gap:5px;align-items:stretch;margin:4px 0}.tkb-time{display:grid;place-items:center;background:#12356b;color:#fff;border-radius:7px;font-weight:900;font-size:11px}.tkb-time small{font-size:8px}.tkb-empty{padding:8px;color:#98a2b3;text-align:center;font-size:12px}.tkb-school-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}.tkb-school-card{border:1px solid #d7e0ec;border-radius:11px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(18,53,107,.05)}.tkb-school-title{background:#12356b;color:#fff;font-size:17px;font-weight:900;padding:7px 9px}.tkb-school-line{display:grid;grid-template-columns:28px 1fr auto;gap:5px;align-items:center;padding:5px 7px;border-top:1px solid rgba(0,0,0,.05)}.tkb-school-line span{font-size:10px;font-weight:900;color:#344054}.tkb-school-line b{font-size:11px}.tkb-school-line small{font-size:9px;color:#667085}.tkb-lookup{margin-top:10px;border:1px solid #dbe4f0;border-radius:10px;padding:9px}.tkb-lookup summary{font-weight:800;color:#173d9e;cursor:pointer}.tkb-lookup label{display:grid;gap:4px;font-size:11px;font-weight:800}.tkb-next-card{display:grid;gap:2px;border:1px solid #b9d2ff;background:linear-gradient(135deg,#edf4ff,#f9fbff);border-radius:12px;padding:11px 13px;margin:4px 0 10px;max-width:560px}.tkb-next-card span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;color:#4f6fae}.tkb-next-card b{font-size:19px;color:#12356b}.tkb-next-card small{color:#475467}.tkb-next-card.muted-next{border-color:#d7dee9;background:#f8fafc}.tkb-reminder-panel{border:1px solid #d8e3f1;background:#fbfdff;border-radius:12px;padding:12px;max-width:680px}.tkb-reminder-panel h3{margin:0 0 8px;color:#12356b}.tkb-setting{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:7px 0;font-size:13px}.tkb-setting input[type=time],.tkb-setting select{border:1px solid #cbd6e6;border-radius:7px;padding:5px 7px}.tkb-manager-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.tkb-bell-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:7px 0}.bell-row{display:grid;grid-template-columns:50px 1fr 1fr;gap:5px;align-items:center;margin:4px 0}.bell-row span{font-size:11px;font-weight:800}.public-tkb-shell{max-width:1480px;margin:auto;padding:12px}.public-tkb-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(135deg,#fff,#f4f8ff);border:1px solid #dce6f4;border-radius:15px;padding:14px 16px;margin-bottom:9px}.public-tkb-head p{margin:2px 0;color:#667085}.public-tkb-head .btn{margin-left:auto;text-decoration:none}.public-version{margin-bottom:7px}.public-version select{width:min(680px,100%)}
@media(max-width:700px){.tkb-shell{padding:7px!important}.tkb-head{align-items:stretch;gap:6px}.tkb-head h1,.public-tkb-head h1{font-size:27px}.tkb-version-box{margin-left:0;min-width:100%}.tkb-head>.btn{width:100%}.desktop-tkb{display:none}.mobile-tkb{display:block}.tkb-filter-row{padding:6px;gap:5px}.tkb-filter-row label{flex:1;min-width:105px}.tkb-filter-row .grow{min-width:100%}.tkb-school-grid{grid-template-columns:1fr 1fr;gap:5px}.tkb-school-title{font-size:15px;padding:5px 7px}.tkb-school-line{grid-template-columns:25px 1fr;padding:4px 5px}.tkb-school-line small{grid-column:2}.tkb-manager-grid{grid-template-columns:1fr}.tkb-bell-grid{grid-template-columns:1fr}.modal-card:has(.tkb-manager-grid){max-width:100%!important}.public-tkb-shell{padding:5px}.public-tkb-head{padding:9px}.public-tkb-head .btn{margin-left:0}.tkb-subtabs{gap:3px}.tkb-subtabs button{padding:6px 8px;font-size:11px}}
@media(max-width:390px){.tkb-school-grid{grid-template-columns:1fr}.tkb-mobile-row{grid-template-columns:38px 1fr}.tkb-entry{padding:5px;min-height:38px}.tkb-entry b{font-size:12px}}

/* ===== v2.4.1: đối chiếu GV và nhập phiên bản TKB ===== */
.source-note{margin:8px 0;padding:8px 10px;border:1px solid #cfe0f5;background:#f5f9ff;border-radius:9px;color:#36527a;font-size:12px;line-height:1.35}.tkb-version-form{margin:8px 0}.tkb-map-details{margin:9px 0;border:1px solid #d8e3f1;border-radius:10px;background:#fff;overflow:hidden}.tkb-map-details>summary{cursor:pointer;padding:8px 10px;background:#f6f9fd;color:#173d9e;font-weight:900}.tkb-map-wrap{max-height:330px;border-top:1px solid #e3e9f2}.tkb-map-table{font-size:11px}.tkb-map-table th{position:sticky;top:0;background:#eef4fb;z-index:2}.tkb-map-table td,.tkb-map-table th{padding:5px 6px}.tkb-map-table select{width:100%;min-width:180px;border:1px solid #cbd6e6;border-radius:7px;padding:5px 7px;background:#fff}.tkb-map-table .map-unresolved{background:#fff8ed}.map-ok{color:#067647;font-weight:800}.map-warn{color:#b54708;font-weight:800}
@media(max-width:700px){.tkb-map-wrap{max-height:55vh}.tkb-map-table{min-width:760px}.source-note{font-size:11px}.tkb-version-form{grid-template-columns:1fr 1fr!important}}
@media(max-width:420px){.tkb-version-form{grid-template-columns:1fr!important}}
