/* Giao diện 32: bố cục dùng chung theo mẫu desktop và điện thoại. */
:root{--primary:#1747ff;--blue:#1747ff;--page:#f5f6f8;--surface:#fff;--surface-soft:#f2f5fa;--text:#101326;--muted:#65718a;--border:#e0e6ef;--notice-bg:#eef4ff;--error-bg:#fff0f1;--error-text:#c32632;--green:#079550;--amber:#d98200;--sidebar:240px;font-size:15px;line-height:1.45;background:var(--page);color:var(--text)}
:root[data-theme=dark]{--page:#121722;--surface:#1b2330;--surface-soft:#222e3f;--text:#eef2ff;--muted:#a2b0c6;--border:#354155;--notice-bg:#202f4b;--error-bg:#3d242b;--error-text:#ffb1b7;--green:#62d99a;--amber:#ffbf55}
body{background:var(--page);color:var(--text)}.brand-mobile{display:none}.app-shell{padding-left:var(--sidebar)}.app-shell main{max-width:none;width:100%;padding:22px 28px 12px;margin:0;min-height:calc(100dvh - 102px)}.app-shell #page-content{max-width:1880px;margin:auto}.app-shell footer{font-size:11px;padding:10px 24px;color:var(--muted)}.app-shell h1{font-size:29px;letter-spacing:-.7px;line-height:1.25;margin:0 0 16px;font-weight:780}.app-shell h2{font-size:18px;line-height:1.35;margin:0 0 12px;letter-spacing:-.25px}.app-shell h3{font-size:15px}.app-shell p{margin:10px 0}.app-shell small{color:var(--muted);font-size:12px;line-height:1.4}.app-shell .card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px;margin:14px 0;box-shadow:0 2px 10px #19364e03}.app-shell .card .card{box-shadow:none}.app-shell .grid{gap:16px}.app-shell .actions{gap:10px;align-items:center}.app-shell .button,.app-shell button{border-radius:8px;padding:9px 15px;font-size:14px;min-height:40px;transition:background .17s,border-color .17s,box-shadow .17s;line-height:1.3}.app-shell .button:hover,.app-shell button:hover{background:#1036cf;box-shadow:0 3px 10px #1747ff18}.app-shell .secondary{background:var(--surface);color:var(--primary);border-color:#cdd9f4}.app-shell .secondary:hover{background:var(--notice-bg);border-color:var(--primary);color:var(--primary)}.app-shell button:disabled{box-shadow:none}.app-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.app-shell select,.app-shell textarea{min-height:39px;border:1px solid #c9d3e3;background:var(--surface);color:var(--text);border-radius:8px;padding:8px 11px;margin-top:5px;font:inherit;font-size:14px}.app-shell textarea{min-height:65px}.app-shell label{font-size:13px;font-weight:600}.app-shell .check{font-weight:400}.app-shell .form-grid{gap:14px}.app-shell :focus-visible{outline:3px solid #7da0ff;outline-offset:3px}.app-shell .notice,.app-shell .error{padding:10px 14px;border-radius:8px;font-size:13px}.app-shell .notice{background:var(--notice-bg);color:var(--text);border-color:var(--border)}.app-shell .error{background:var(--error-bg);color:var(--error-text);border-color:#ffc5ca}
/* Sidebar and slim utility bar. */
.app-shell .sticky-menu,:root.has-menu-js[data-menu-fixed="1"] .app-shell .sticky-menu{position:fixed!important;inset:0 auto 0 0;width:var(--sidebar)!important;max-width:none;height:100dvh;background:#101114;border:0;box-shadow:none;color:#f7f7fb;z-index:140;display:flex;flex-direction:column}.app-shell .site-header{background:transparent;padding:20px 18px 16px;display:block;color:white}.app-shell .header-inner{width:auto;max-width:none;padding:0;display:block}.app-shell .brand{font-size:16px;gap:10px;display:flex;white-space:normal;color:white;line-height:1.35}.app-shell .brand-symbol{width:42px;height:42px;min-width:42px;border-radius:12px;background:linear-gradient(140deg,#09c7f9,#164aff);box-shadow:inset 0 0 0 1px #ffffff40}.app-shell .brand-symbol .icon{width:25px;height:25px}.app-shell .brand small{font-size:11px;font-weight:400;color:#bec6d2;margin-top:5px}.app-shell .menu-inner{padding:0 12px 14px;max-width:none;width:100%;flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto}.app-shell .site-nav{border:0;margin:0;padding:18px 0 0!important;display:block;border-top:1px solid #2b3039}.app-shell .nav-heading{display:none}.app-shell .nav-links{display:flex!important;flex-direction:column;justify-content:flex-start!important;gap:6px;padding:0;max-height:none;overflow:visible}.app-shell .nav-links>a{display:flex;align-items:center;gap:13px;width:100%;min-height:45px;font-weight:500;font-size:14px;color:#e6e8ef;background:transparent;border:0;border-radius:9px;padding:12px 14px}.app-shell .nav-links .icon{width:23px;height:23px;margin:0}.app-shell .nav-links>a:hover{background:#222631;color:white}.app-shell .nav-links>a[aria-current=page],.app-shell .nav-links>a.is-parent-active{background:#1747ff;color:#fff;box-shadow:none}.sidebar-bottom{margin-top:auto;border-top:1px solid #2b3039;padding:16px 12px 60px;display:grid;gap:16px}.sidebar-bottom>a,.sidebar-user{display:flex;align-items:center;color:#d9dfed;font-size:13px;text-decoration:none}.sidebar-user{font-size:14px}.sidebar-user>.icon{padding:6px;box-sizing:content-box;border-radius:50%;background:#444d5d}.app-shell .menu-spacer{display:none!important}.app-shell .header-tools{position:fixed;right:24px;top:10px;width:auto;gap:14px;z-index:145;display:flex}.app-shell .notification-link{color:var(--muted);background:transparent;border:0;width:36px;height:36px;padding:5px;border-radius:8px}.app-shell .notification-link>.icon{width:22px;height:22px;margin:0}.app-shell .notification-link .badge{top:-3px;right:-4px;min-width:17px;height:17px;font-size:10px;padding:0 4px;background:#f0444b;color:white}.app-shell .account-menu{position:fixed;bottom:18px;left:19px;top:auto;color:white;width:204px}.app-shell .account-menu>summary{color:white;min-height:35px;justify-content:flex-start;font-size:13px}.app-shell .account-avatar{width:31px;height:31px;background:#596171;border-color:#65718a;color:#fff}.app-shell .account-name{max-width:135px}.app-shell .account-panel{top:auto;bottom:45px;right:auto;left:0;min-width:218px;background:var(--surface);color:var(--text)}.app-shell .account-panel a{color:var(--text)}.workspace-topbar{height:58px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 76px 0 28px;position:relative;z-index:120}.breadcrumb{display:flex;align-items:center;gap:16px;font-size:13px;color:var(--muted)}.breadcrumb>.icon{color:#536583;margin:0}.breadcrumb>span{border-left:1px solid var(--border);padding-left:16px}.nav-search{display:flex;align-items:center;position:relative;width:285px;border:1px solid var(--border);border-radius:8px;padding:0 10px;margin:0}.nav-search>.icon{color:var(--muted);margin:0}.app-shell .nav-search input{border:0;min-height:34px;margin:0;background:transparent;outline-offset:0}.nav-search-results{position:absolute;top:42px;right:0;min-width:285px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 30px #10132620}.nav-search-results a{padding:11px;display:block;text-decoration:none;color:var(--text)}.nav-search-results a:hover{background:var(--notice-bg)}.mobile-bottom-nav{display:none}.app-shell .session-expired-banner{position:fixed;top:58px;left:var(--sidebar);right:0;z-index:160;width:auto;margin:0;border-radius:0;max-width:none}
/* Shared data, tabs and badges. */
.ui-tabs{display:flex;gap:7px;padding:0;margin:14px 0;border-bottom:1px solid var(--border);flex-wrap:nowrap;overflow:auto}.ui-tabs button,.ui-tabs a{background:transparent;color:var(--muted);border:0;border-radius:0;box-shadow:none;white-space:nowrap;min-height:43px;padding:11px 20px;border-bottom:3px solid transparent;text-decoration:none;display:flex;align-items:center;gap:6px}.ui-tabs [aria-selected=true],.ui-tabs [aria-current=page]{color:var(--primary);border-bottom-color:var(--primary);background:var(--surface);font-weight:650}.ui-tabs button:hover,.ui-tabs a:hover{background:var(--notice-bg);color:var(--primary);box-shadow:none}.ui-tabs .badge{background:var(--notice-bg);color:var(--primary);font-size:12px}.ui-switch{display:flex;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:9px;gap:4px}.ui-switch button{flex:1;background:transparent;color:var(--muted);border:0;min-height:34px;padding:6px 14px}.ui-switch [aria-pressed=true]{background:var(--primary);color:#fff}.ui-switch button:hover{box-shadow:none;background:var(--notice-bg);color:var(--primary)}.app-shell .table-wrap{background:var(--surface);border-color:var(--border);border-radius:10px}.app-shell table{font-size:13px;color:var(--text)}.app-shell th{background:var(--surface-soft);font-weight:600;font-size:12px}.app-shell th,.app-shell td{padding:10px 14px;border-bottom:1px solid var(--border);vertical-align:middle}.app-shell tbody tr:hover{background:var(--notice-bg)}.app-shell td p{margin:3px 0}.app-shell td small{font-size:12px;margin-top:3px}.app-shell .pagination{gap:6px;margin:12px 0;padding:0;border:0}.app-shell .pagination .page-number{min-height:32px;min-width:32px;padding:5px 9px;font-size:12px}.app-shell .status,.app-shell .usability{font-weight:550;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-size:11px;padding:4px 9px;border-radius:7px;line-height:1.3;max-width:100%}.app-shell .status-new,.app-shell .status-waiting_parts{background:#fff3de;color:#b66b00}.app-shell .status-accepted,.app-shell .status-repairing,.app-shell .status-resolved{background:#eaf1ff;color:#1747ff}.app-shell .status-closed,.app-shell .usability-none{background:#dcfbe8;color:#087c3c}.app-shell .usability-unusable,.app-shell .usability-unsafe{background:#ffe5e7;color:#ca1a28}.app-shell .usability-limited{background:#fff1d4;color:#aa6500}.app-shell .status-cancelled{background:var(--surface-soft);color:var(--muted)}.app-shell .filter-grid{display:flex;gap:12px;padding:14px 16px;align-items:end}.app-shell .filter-grid label{min-width:150px}.app-shell .filter-grid .actions{margin-left:auto}.app-shell .filter-grid input,.app-shell .filter-grid select{font-size:13px}.app-shell .filter-grid>.incident-filter-more{order:2;flex:0 0 100%;font-size:12px}.app-shell .filter-grid>.incident-filter-more summary{color:var(--primary)}.app-shell .filter-grid>.incident-filter-more .form-grid{margin-top:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.app-shell .filter-grid>label:nth-of-type(3){flex:1.8}.app-shell details>summary{font-size:14px;min-height:30px}.ui-page-description{color:var(--muted);margin-top:-8px!important;font-size:15px}.ui-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.ui-stat{border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:14px 18px;display:flex;align-items:center;gap:14px}.ui-stat .icon{width:27px;height:27px;margin:0;color:var(--primary)}.ui-stat strong{display:block;font-size:25px;line-height:1.15}.ui-stat small{margin:3px 0 0}.ui-stat:nth-child(2) .icon{color:var(--green)}.ui-stat:nth-child(3) .icon{color:var(--amber)}
/* Dashboard. */
.app-shell .dashboard-welcome{padding:0;background:none;border:0;box-shadow:none;margin:-6px 0 16px;min-height:0}.app-shell .dashboard-welcome .eyebrow,.app-shell .dashboard-welcome h2{display:none}.app-shell .dashboard-welcome p{margin:0;color:var(--muted)}.app-shell .dashboard-date{font-size:11px;display:flex}.app-shell .dashboard-date strong{font-size:12px}.app-shell .dashboard-actions{margin:0 0 16px;justify-content:flex-end}.app-shell .metric-grid{gap:14px;grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0}.app-shell .metric{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:18px 20px;text-decoration:none;box-shadow:none;min-height:115px}.app-shell .metric-top{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:12px;color:var(--text);min-height:0;font-size:14px}.app-shell .metric-icon{background:var(--notice-bg);border-radius:10px;min-width:40px;width:40px;height:40px;color:var(--primary)}.app-shell .metric-value{font-size:32px;line-height:1.2;margin:0 0 4px 52px;display:block}.app-shell .metric-note{font-size:11px;color:var(--muted);margin-left:52px;line-height:1.4}.app-shell .metric-red .metric-icon{color:#e12637;background:#ffecee}.app-shell .metric-amber .metric-icon{color:#d98200;background:#fff5e5}.app-shell .metric-red .metric-value{color:#dc2434}.app-shell .metric-amber .metric-value{color:#d98200}.app-shell .metric-green .metric-value{color:#079550}.app-shell .metric-purple .metric-value{color:var(--primary)}.app-shell .dashboard-panels{grid-template-columns:1.4fr 1fr;gap:16px;margin:14px 0}.app-shell .dashboard-panels .card{margin:0;padding:20px}.app-shell .distribution-body{grid-template-columns:190px 1fr;gap:20px;min-height:180px}.app-shell .chart-ring{max-width:200px}.app-shell .chart-legend li{padding:6px 0;font-size:12px}.app-shell .distribution>small,.app-shell .task-panel>small{font-size:10px}.app-shell .task-panel>.eyebrow,.app-shell .distribution .eyebrow{display:none}.app-shell .task-list{gap:8px}.app-shell .task-list>a{background:var(--surface-soft);border:0;border-radius:9px;padding:10px 13px;min-height:58px}.app-shell .task-list>a:first-child{background:var(--notice-bg)}.app-shell .task-list strong{font-size:13px}.app-shell .task-list small{font-size:11px}.app-shell .room-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.app-shell .room-summary-grid .card{padding:17px;margin:0}.app-shell .room-section-heading{margin:18px 0 10px}.app-shell .room-section-heading .eyebrow{display:none}.app-shell .room-summary .machine-type-summary,.app-shell .room-location{font-size:11px;margin:6px 0;color:var(--muted)}.app-shell .room-total{background:var(--notice-bg);color:var(--primary);font-size:11px}.app-shell .room-numbers{display:flex;gap:12px;margin:12px 0}.app-shell .room-numbers>span{flex:1;font-size:10px;line-height:1.35;min-width:0}.app-shell .room-numbers strong{font-size:23px}.app-shell .room-summary .button{width:100%;min-height:35px;padding:6px}.app-shell .room-summary .error{padding:7px 10px;font-size:11px}.room-status-bar{width:100%;height:10px;border-radius:8px;overflow:hidden;display:block;margin:12px 0}.room-status-bar rect{stroke:var(--surface);stroke-width:.3}.app-shell .access-summary{margin-top:16px;padding:10px 15px}.app-shell .access-summary summary{font-size:12px}
/* Machine maps. One shared spatial map retains the original form controls. */
.ui-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.ui-map-main,.ui-map-aside{min-width:0}.app-shell .ui-map-aside .card{margin-top:0;padding:18px}.app-shell .ui-map-aside #machine-info h2{font-size:21px}.ui-map-aside #machine-info p{font-size:12px}.ui-map-aside .button{width:100%;margin-top:8px}.ui-map-aside .machine-history,.ui-map-aside .machine-flag-panel{font-size:12px}.ui-map-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}.ui-map-controls .ui-switch{min-width:210px}.ui-map-controls label{flex:1;min-width:130px}.app-shell .ui-map-controls input{margin:0;min-height:40px}.ui-map-counts{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0 14px;color:var(--muted);font-size:13px}.ui-map-counts strong{font-size:19px;color:var(--primary)}.ui-map-counts .danger strong{color:#dc2434}.app-shell .room-map{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin:12px 0;box-shadow:none}.app-shell .room-map .machine-rows{width:100%;max-width:none;min-width:660px;margin:0}.app-shell .room-map .machine-row{grid-template-columns:34px repeat(4,minmax(0,1fr)) 12px repeat(4,minmax(0,1fr));gap:7px;margin:7px 0;align-items:stretch}.app-shell .room-map .machine-row>.machine-tile{min-height:86px;padding:6px 4px;gap:3px;justify-content:center;border-width:1px;border-radius:7px;box-shadow:none}.app-shell .machine-tile:hover{transform:none;border-color:var(--primary);box-shadow:0 2px 10px #1747ff14}.app-shell .machine-tile>.icon{width:19px;height:19px;margin:0}.app-shell .machine-tile strong{font-size:13px;color:var(--tile-fg)}.app-shell .machine-tile small{font-size:10px;min-height:0;line-height:1.3}.app-shell .machine-tile .usability{font-size:10px;padding:3px 6px;min-height:0;margin:0;align-self:center}.app-shell .machine-tile .machine-safety{font-size:9px;line-height:1.2;text-align:center;align-self:center;padding:2px 3px}.app-shell .map-unknown{--tile-bg:#fbfcff;--tile-line:#c7d3e3;--tile-fg:#26354c}.app-shell .map-good{--tile-bg:#e9faf0;--tile-line:#0c9950;--tile-fg:#087638}.app-shell .map-broken{--tile-bg:#fff0ee;--tile-line:#ff9f9d;--tile-fg:#b52229}.app-shell .map-limited{--tile-bg:#fff8e9;--tile-line:#eeb14c;--tile-fg:#9e6506}.app-shell .map-pending{--tile-bg:#ecf4ff;--tile-line:#6c9deb;--tile-fg:#2057aa}.app-shell .machine-row>.machine-empty{min-height:86px;border-color:var(--border)}.app-shell .row-number{font-size:10px;align-self:center}.app-shell .map-aisle{font-size:0;border-right:0}.app-shell .map-legend{font-size:10px;gap:7px 12px;margin:10px 0}.app-shell .map-dot{width:9px;height:9px}.app-shell .map-safety-note{font-size:10px;margin:8px 0;color:var(--muted)}.app-shell .map-caption{font-size:10px;margin:10px 0 0}.app-shell .teacher-station{margin:0 0 10px}.app-shell .teacher-station .teacher-machine{display:grid;grid-template-columns:25px minmax(0,1fr);column-gap:10px;row-gap:2px;padding:7px 14px;min-height:60px;max-width:250px;border-width:1px;box-shadow:none;width:max-content;background:var(--tile-bg)}.app-shell .teacher-machine>.icon{grid-column:1;grid-row:1/span 4;width:25px;height:25px;align-self:center}.app-shell .teacher-machine>strong,.app-shell .teacher-machine>small,.app-shell .teacher-machine>.usability,.app-shell .teacher-machine>.machine-safety{grid-column:2;text-align:center;justify-self:center}.app-shell .teacher-machine>strong{font-size:13px}.app-shell .teacher-warning{max-width:none;width:100%;font-size:10px;line-height:1.4;padding:5px 10px;margin:7px 0 9px}.tile-description{display:none}.ui-map-main>.room-map .machine-tile.is-selected{border-color:#1747ff;box-shadow:0 0 0 2px #1747ff30}.app-shell .machine-flag-badge{width:0;height:0;right:4px;top:4px;border-width:0 15px 15px 0;border-style:solid;border-color:transparent #ffc348 transparent transparent;clip-path:none;background:none;border-radius:0;pointer-events:none}.app-shell .machine-flag-badge .icon{display:none}.app-shell .machine-table{margin:14px 0}.ui-map-help{font-size:12px;color:var(--muted)}
/* Issue report side by side, two steps on mobile. */
.app-shell .report-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:18px;align-items:start}.app-shell .report-layout>.card{margin:0}.app-shell .report-machine-picker>summary{font-size:17px;min-height:35px;display:flex;align-items:start;justify-content:space-between;gap:10px;list-style:none}.app-shell .report-machine-picker>summary small{font-size:11px;max-width:150px;text-align:right}.app-shell .step-number{background:var(--primary);height:29px;width:29px;font-size:15px}.app-shell .report-machine-map .room-map{border:0;padding:0;margin-top:14px}.app-shell .report-machine-map .map-caption{display:none}.app-shell .report-machine-map .machine-rows{min-width:0}.app-shell .report-machine-map .machine-row{grid-template-columns:0 repeat(4,minmax(0,1fr)) 8px repeat(4,minmax(0,1fr));gap:6px}.app-shell .report-machine-map .row-number{font-size:0}.app-shell .report-machine-map .machine-row>.machine-tile{min-height:48px;padding:6px 3px;gap:2px}.app-shell .report-machine-map .machine-row>.machine-tile>small{display:none}.app-shell .report-machine-map .machine-tile strong{font-size:11px}.app-shell .report-machine-map .machine-tile .usability{font-size:8px;padding:1px 3px}.app-shell #report-details>h2{font-size:17px;margin-bottom:8px}.app-shell .report-selection-row{gap:10px}.app-shell .machine-selection{font-size:12px;background:var(--surface-soft);padding:8px 10px;margin:0}.app-shell .report-selection-row button{font-size:11px;min-height:30px}.app-shell .ai-panel{border:1px solid #d6c4ff;background:#faf7ff;padding:14px;border-radius:10px;color:var(--text);margin:12px 0}.app-shell .ai-panel h3{display:none}.app-shell .ai-panel button{background:#7c3cff;border-color:#7c3cff}.app-shell .ai-panel p.muted{font-size:10px;margin:6px 0}.app-shell .ai-panel label{font-size:13px}.app-shell .ai-panel textarea{min-height:60px;max-height:160px}.app-shell .ai-panel .actions{margin-top:8px}.app-shell .ai-panel [data-ai-status]:empty{display:none}.app-shell .device-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:13px 0}.app-shell .device-card{padding:8px;min-height:57px;font-size:12px;gap:3px;border-radius:8px;background:var(--surface-soft);border-color:var(--border);color:var(--muted)}.app-shell .device-card>.icon{width:21px;height:21px}.app-shell .device-card.selected{color:var(--primary);background:var(--notice-bg);border-color:var(--primary);box-shadow:none}.app-shell .simple-issues{padding:9px 11px;margin:12px 0}.app-shell .simple-issues legend{font-size:13px;font-weight:600}.app-shell .issue-options{gap:5px 12px;margin:3px 0}.app-shell .issue-option{font-size:12px;line-height:1.4;padding:4px 2px;gap:8px}.app-shell .issue-option input{margin-top:0;width:17px;height:17px}.app-shell .simple-issues>small{font-size:10px}.app-shell .report-tabs{gap:10px;margin:12px 0 17px}.app-shell .report-tabs .button{min-height:39px;font-size:13px}.app-shell #report-details .form-grid{gap:10px}.app-shell #report-details .form-grid small{font-size:10px}.app-shell #report-details>.actions{margin-top:12px}.ui-report-stepbar{display:none}
/* Reports: settings + preview, optional metadata and AI. */
.ui-report-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.ui-report-settings,.ui-report-preview{min-width:0}.app-shell #report-filters{grid-template-columns:1fr;margin:0}.app-shell #report-filters .wide{grid-column:1}.app-shell #report-filters .actions button{width:100%}.app-shell .report-stats{gap:12px;margin:0 0 14px}.app-shell .report-stats .card{padding:14px 16px;min-height:87px;margin:0}.app-shell .report-stats .card>small{font-size:12px;margin:0}.app-shell .report-stats strong{font-size:28px;margin:4px 0 0}.app-shell .report-stats .card:nth-child(2) strong{color:#e12637}.app-shell .report-preview{margin-top:12px}.app-shell .report-preview th,.app-shell .report-preview td{padding:9px 10px;font-size:12px}.app-shell .report-preview td{min-width:0}.app-shell .report-preview td:nth-child(3){min-width:150px}.app-shell .report-preview td:nth-child(5){min-width:160px}.app-shell .report-preview td small{font-size:10px}.app-shell #report-ai{margin-top:14px}.app-shell #report-ai h2{font-size:16px;color:#722cdb}.app-shell #ai-report-form{grid-template-columns:1fr 1fr;gap:9px}.app-shell #ai-report-form label{font-size:11px}.app-shell #ai-report-form textarea{min-height:40px}.ui-report-metadata{padding:14px!important}.ui-report-metadata>.form-grid{grid-template-columns:1fr;margin-top:14px}.ui-report-metadata h2{display:none}.ui-report-metadata summary{font-weight:650}.ui-report-metadata>.actions{margin-top:12px}.ui-report-metadata .actions>*{flex:1;font-size:12px}.ui-report-metadata p{font-size:11px}.ui-report-views{display:none}.ui-report-preview>details.card{margin-top:0}.ui-report-preview>p{font-size:11px;color:var(--muted)}
/* Students, session cards and seating. */
.app-shell .student-hero{margin:-7px 0 14px;padding:0;border:0;background:none;min-height:0}.app-shell .student-hero h2{font-size:15px;color:var(--muted);font-weight:400;margin:0}.app-shell .student-hero p,.app-shell .student-hero-icon,.app-shell .student-hero .dashboard-eyebrow{display:none}.app-shell .student-filters{grid-template-columns:1fr 1fr 1.2fr auto;margin:10px 0;padding:12px 15px}.app-shell .student-filters>.actions{grid-column:auto;flex-wrap:nowrap}.app-shell .student-filters .button,.app-shell .student-filters button{font-size:12px}.app-shell .student-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.app-shell .student-metrics .metric{min-height:80px;padding:14px 20px;position:relative;display:flex;flex-direction:column-reverse;gap:3px}.app-shell .student-metrics .metric-value{margin:0;font-size:28px}.app-shell .student-metrics .metric>span{font-size:12px;color:var(--muted)}.ui-student-list-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start}.ui-student-list-layout>aside{grid-column:2;grid-row:1}.ui-student-list-layout>.student-management{grid-column:1;grid-row:1;margin:0}.ui-student-list-layout .class-management{margin:0}.ui-student-list-layout .student-management>summary{list-style:none;font-weight:650;font-size:17px;padding:16px 18px;background:var(--surface);border:1px solid var(--border);border-bottom:0;border-radius:12px 12px 0 0}.ui-student-list-layout .student-management>.card{margin:0;border-top:0;border-radius:0 0 12px 12px;padding-top:8px}.app-shell .student-management .table-wrap{margin:12px 0}.app-shell .student-management .table-wrap .actions{gap:5px}.app-shell .student-management .table-wrap .button{font-size:11px;min-height:28px;padding:4px 7px}.app-shell .student-management table th,.app-shell .student-management table td{padding:8px 10px}.app-shell .student-setup{margin:12px 0}.app-shell .student-setup>summary{font-size:13px;color:var(--text);padding:12px 15px;background:var(--surface);border:1px solid var(--border);border-radius:9px}.app-shell .student-workspace{grid-template-columns:230px minmax(0,1fr);gap:14px;margin:14px 0;align-items:start}.app-shell .student-roster{padding:13px;margin:0}.app-shell .student-roster h2{font-size:15px;margin-bottom:10px}.app-shell .student-roster>label{font-size:0}.app-shell .student-roster>label input{font-size:12px}.app-shell .student-roster>p{font-size:10px;line-height:1.4}.app-shell .student-roster-list{max-height:480px;gap:6px;display:flex}.app-shell .roster-student{padding:9px 10px;min-height:40px;border-radius:8px;background:var(--surface-soft);color:var(--text);border-color:var(--border);gap:2px}.app-shell .roster-name{font-size:12px;font-weight:500;line-height:1.4}.app-shell .roster-meta{font-size:10px}.app-shell .student-map-column>h2{font-size:14px;margin:0 0 8px}.app-shell .auto-seat-controls{margin:0 0 8px;padding:10px 12px;border-radius:10px;background:var(--surface);border:1px solid var(--border);gap:10px}.app-shell .auto-seat-controls>small{display:none}.app-shell .auto-seat-controls .check{font-size:11px;order:2;flex:1;min-width:180px}.app-shell .auto-seat-controls>label:not(.check){display:flex;align-items:center;gap:5px;font-size:0}.app-shell .auto-seat-controls select{width:135px;font-size:11px;min-height:34px;margin:0}.app-shell .auto-seat-controls>button{font-size:12px;min-height:34px;padding:7px 11px}.app-shell .student-status{font-size:11px;padding:7px 10px;min-height:30px;margin:5px 0}.app-shell .student-map-column>.room-map{margin:7px 0;padding:10px 12px}.app-shell .student-room-map .machine-rows{min-width:680px}.app-shell .student-room-map .machine-row>.student-machine{min-height:100px;padding:5px 4px;gap:3px;justify-content:flex-start}.app-shell .student-machine-target{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px;min-height:28px;padding:0;width:100%;background:transparent!important;box-shadow:none!important;border:0;color:inherit}.app-shell .student-machine-target>.icon{width:15px;height:15px;margin:0}.app-shell .student-machine-target>strong{font-size:11px}.app-shell .student-machine-target>small{display:none}.app-shell .student-machine-target>.usability{font-size:8px;padding:2px 4px}.app-shell .student-machine-target>.machine-safety{font-size:8px}.app-shell .machine-students{min-height:36px;gap:3px;margin:2px 0;width:100%}.app-shell .seat-student{font-size:10px;line-height:1.25;min-height:23px;padding:4px 3px;background:var(--surface);color:var(--text);border:1px solid var(--border);font-weight:500;box-shadow:none}.app-shell .seat-student.is-long{font-size:9px}.app-shell .seat-capacity{font-size:8px;margin-top:auto}.app-shell .student-room-map .machine-empty{min-height:100px}.app-shell #student-seat-form{padding:14px;margin:0;border-top-left-radius:0;border-top-right-radius:0}.app-shell #student-seat-form h3{display:none}.app-shell #student-seat-form .check{font-size:12px}.app-shell #student-seat-form small{font-size:11px}.app-shell .seating-tools{margin:10px 0;padding:13px 15px}.app-shell .seating-tools>h2{font-size:15px;margin-bottom:8px}.app-shell .seating-tools>.actions{gap:8px}.app-shell .seating-tools>.actions>*{font-size:12px;min-height:34px;padding:7px 10px}.app-shell .seating-tools>details>summary{font-size:12px;margin-top:8px}.app-shell .seating-tools [data-seating-export-status]:empty{display:none}.app-shell .student-year-end{padding:14px}.app-shell .student-year-end h2{font-size:14px}.app-shell .student-year-end p{font-size:12px}.ui-manual-seat{margin:10px 0}.ui-manual-seat>summary{padding:13px 15px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-weight:600}.ui-exam-index{display:grid;grid-template-columns:390px minmax(0,1fr);gap:18px;align-items:start}.ui-exam-index>.student-setup{margin:0}.ui-exam-index>.student-setup>summary{font-size:18px;font-weight:650;border-bottom:0;border-radius:12px 12px 0 0;padding:18px}.ui-exam-index>.student-setup>.card{margin:0;border-top:0;border-radius:0 0 12px 12px}.ui-exam-index .form-grid{grid-template-columns:1fr}.ui-exam-index .form-grid .wide{grid-column:auto}.ui-session-cards{display:grid;gap:14px;margin-top:14px}.ui-session-card{padding:17px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.ui-session-card h3{font-size:17px;margin:0 0 8px;display:flex;align-items:center;gap:12px}.ui-session-card h3>.icon{color:var(--primary);width:29px;height:29px}.ui-session-card .actions{margin-top:15px;justify-content:space-between}.ui-session-card p{color:var(--muted);font-size:13px}.ui-session-card .button{font-size:13px;min-width:130px}.ui-session-list .notice{margin-top:17px}.ui-session-list label input{margin:0}.app-shell .exam-rounds{gap:9px;margin:12px 0}.app-shell .exam-rounds .button{min-width:105px}.ui-exam-topdetails{margin-top:12px}.ui-exam-topdetails>summary{font-size:12px;color:var(--muted)}
/* Empty queue with concise, actual acceptance flow. */
.ui-empty-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;margin-top:16px}.ui-empty-layout .card{margin:0}.ui-empty-state{text-align:center;min-height:340px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px!important}.ui-empty-symbol{width:105px;height:105px;display:grid;place-items:center;border-radius:50%;background:var(--notice-bg);color:var(--primary);margin-bottom:15px}.ui-empty-symbol .icon{width:55px;height:55px;margin:0}.ui-empty-state h2{font-size:24px;margin:0 0 10px}.ui-empty-state p{font-size:14px;color:var(--muted);max-width:490px}.ui-empty-state .button{margin-top:15px}.ui-process ol{list-style:none;counter-reset:process;padding:0}.ui-process li{counter-increment:process;position:relative;padding:8px 0 12px 42px;font-size:13px}.ui-process li:before{content:counter(process);position:absolute;left:0;top:8px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--notice-bg);color:var(--primary);font-weight:650}.ui-process li strong{display:block;margin-bottom:5px}.ui-process li span{color:var(--muted)}
:root[data-theme=dark] .app-shell .map-unknown{--tile-bg:#222c3c;--tile-line:#52647c;--tile-fg:#c6d2e4}:root[data-theme=dark] .app-shell .map-good{--tile-bg:#123c2c;--tile-line:#34c985;--tile-fg:#a6f1c7}:root[data-theme=dark] .app-shell .map-broken{--tile-bg:#44292e;--tile-line:#b56a70;--tile-fg:#ffbdc0}:root[data-theme=dark] .app-shell .map-limited{--tile-bg:#3d3522;--tile-line:#c79839;--tile-fg:#ffe0a1}:root[data-theme=dark] .app-shell .map-pending{--tile-bg:#223650;--tile-line:#6895c7;--tile-fg:#b4d8ff}:root[data-theme=dark] .app-shell .ai-panel{background:#2a2240;border-color:#7253a6}:root[data-theme=dark] .app-shell .secondary{border-color:#465775}:root[data-theme=dark] .app-shell input,:root[data-theme=dark] .app-shell select,:root[data-theme=dark] .app-shell textarea{border-color:#465775}:root[data-theme=dark] .app-shell .machine-students .seat-student{background:#ffffff0c;color:var(--text)}
@media(min-width:1500px){.app-shell .ui-map-layout .room-map .machine-row>.machine-tile{min-height:98px}.app-shell .student-room-map .machine-row>.student-machine{min-height:110px}.app-shell .student-room-map .machine-empty{min-height:110px}.app-shell .student-room-map .student-machine-target>strong{font-size:12px}.app-shell .seat-student{font-size:11px}.app-shell .seat-student.is-long{font-size:10px}}
@media(min-width:1101px){.app-shell .report-machine-picker:not([open])>.report-machine-map{display:block}.app-shell .report-machine-picker>summary{pointer-events:none}.page-index .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ui-map-aside{position:sticky;top:14px}.app-shell .report-layout>details:not([open])>*:not(summary){display:block}}
@media(max-width:1250px) and (min-width:901px){:root{--sidebar:205px}.app-shell main{padding:20px}.app-shell .brand{font-size:14px}.app-shell .brand-symbol{width:35px;min-width:35px;height:35px}.app-shell .account-menu{width:175px;left:15px}.ui-map-layout{grid-template-columns:minmax(0,1fr) 250px}.ui-student-list-layout{grid-template-columns:minmax(0,1fr) 230px}.app-shell .student-workspace{grid-template-columns:190px minmax(0,1fr)}.app-shell .student-room-map .machine-rows{min-width:620px}.app-shell .student-filters{grid-template-columns:1fr 1fr 1fr}.app-shell .student-filters>.actions{grid-column:1/-1}.ui-exam-index{grid-template-columns:330px minmax(0,1fr)}.app-shell .metric{padding:14px}.app-shell .metric-value,.app-shell .metric-note{margin-left:0}.app-shell .metric-top{flex-direction:row;justify-content:space-between}.app-shell .distribution-body{grid-template-columns:140px 1fr;gap:10px}.ui-report-layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1100px){.app-shell .report-layout{grid-template-columns:1fr}.ui-map-layout{grid-template-columns:1fr}.ui-map-aside{position:static}.ui-map-aside:not(:has(#machine-info)){display:none}.ui-student-list-layout{grid-template-columns:1fr}.ui-student-list-layout>aside{grid-column:1;grid-row:auto}.ui-student-list-layout>.student-management{grid-column:1;grid-row:1}.ui-exam-index{grid-template-columns:1fr}.app-shell .student-workspace{grid-template-columns:1fr}.app-shell .student-roster-list{max-height:220px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ui-report-layout{grid-template-columns:250px minmax(0,1fr)}.app-shell .dashboard-panels{grid-template-columns:1fr}.app-shell .room-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-empty-layout{grid-template-columns:1fr}}
@media(max-width:900px){
 :root{font-size:15px;--sidebar:0px}.app-shell{padding:0 0 calc(78px + env(safe-area-inset-bottom));overflow-x:clip}.app-shell main{padding:20px 16px 12px;width:100%;min-height:calc(100dvh - 150px)}.app-shell h1{font-size:25px;letter-spacing:-.5px;margin:0 0 17px}.app-shell h2{font-size:18px}.app-shell .card{padding:16px;border-radius:12px}.app-shell footer{font-size:10px;padding:12px}.app-shell .sticky-menu,:root.has-menu-js[data-menu-fixed="1"] .app-shell .sticky-menu{position:sticky!important;inset:auto;top:0!important;width:100%!important;height:66px;background:#101114;overflow:visible;display:block}.app-shell .site-header{padding:0 16px 0 60px;height:66px;display:flex;align-items:center}.app-shell .brand-desktop,.app-shell .brand small{display:none}.app-shell .brand-mobile{display:inline}.app-shell .brand{font-size:19px;gap:10px;line-height:1}.app-shell .brand-symbol{width:35px;height:35px;min-width:35px;border-radius:10px}.app-shell .brand-symbol>.icon{width:23px;height:23px}.app-shell .header-tools{position:absolute;right:15px;top:16px;gap:7px}.app-shell .notification-link{color:#fff}.app-shell .account-menu{display:none}.app-shell .menu-inner{padding:0;overflow:visible;display:block;height:0}.app-shell .site-nav{padding:0!important;border:0}.app-shell .nav-heading{display:block;position:absolute;left:12px;top:13px;margin:0}.app-shell .nav-toggle{display:flex;align-items:center;justify-content:center;font-size:0;padding:7px;width:40px;min-height:40px;background:none;color:#fff;border:0}.app-shell .nav-toggle>.icon{width:25px;height:25px;margin:0}.app-shell .nav-links{display:none!important;position:fixed;top:66px;bottom:calc(70px + env(safe-area-inset-bottom));left:0;width:min(310px,88vw);overflow-y:auto;background:#101114;padding:14px;gap:5px;box-shadow:15px 0 50px #0005}.app-shell .site-nav.is-open .nav-links{display:flex!important}.app-shell .nav-links>a{min-height:47px;font-size:15px}.app-shell .nav-links a.mobile-account-link{display:flex}.app-shell .sidebar-bottom,.workspace-topbar{display:none}.app-shell .mobile-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:calc(66px + env(safe-area-inset-bottom));padding:5px 6px calc(5px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);z-index:150;gap:2px;flex-wrap:nowrap;justify-content:space-around;align-items:stretch}.app-shell .mobile-bottom-nav>a,.app-shell .mobile-bottom-nav>button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;font-weight:450;color:var(--muted);padding:5px 2px;min-height:50px;border:0;background:transparent;border-radius:9px;max-width:110px;line-height:1.2;text-decoration:none;box-shadow:none;white-space:nowrap}.app-shell .mobile-bottom-nav .icon{width:23px;height:23px;margin:0}.app-shell .mobile-bottom-nav [aria-current=page],.app-shell .mobile-bottom-nav .is-parent-active{color:var(--primary);background:var(--notice-bg);font-weight:650}.app-shell .session-expired-banner{position:relative;top:auto;left:auto;right:auto;padding:12px;display:flex;flex-wrap:wrap}.app-shell button,.app-shell .button,.app-shell select,.app-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:44px}.app-shell .button+.button{margin:0}.app-shell .actions{gap:9px}.app-shell .actions>*{width:auto}.app-shell .form-grid{grid-template-columns:1fr;gap:14px}.app-shell .wide{grid-column:1/-1}.app-shell .toolbar{flex-direction:column;align-items:stretch;gap:12px}.app-shell .toolbar label{min-width:0}.app-shell .ui-tabs{gap:2px;margin:12px 0 16px}.app-shell .ui-tabs button,.app-shell .ui-tabs a{padding:12px 13px;font-size:13px;min-height:45px}.app-shell .ui-tabs .icon{width:17px;height:17px;margin-right:2px}.app-shell .ui-switch button{min-height:36px}.app-shell .filter-grid{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:12px}.app-shell .filter-grid label{min-width:0}.app-shell .filter-grid>label:nth-of-type(3){grid-column:1/-1;grid-row:1}.app-shell .filter-grid>.actions{grid-column:1/-1;justify-content:space-between;margin:0}.app-shell .filter-grid>.actions>*{flex:1;font-size:12px}.app-shell .filter-grid>.incident-filter-more{grid-column:1/-1;grid-row:auto;order:0}.app-shell .filter-grid>.incident-filter-more .form-grid{grid-template-columns:1fr}.app-shell .table-wrap.mobile-cards{border:0;background:transparent;border-radius:0;overflow:visible}.mobile-cards table,.mobile-cards tbody{display:block;width:100%}.mobile-cards thead{display:none}.app-shell .mobile-cards tr{display:grid;grid-template-columns:1fr;gap:8px;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:15px;margin:0 0 12px;position:relative}.app-shell .mobile-cards td{display:block;padding:0;border:0;font-size:14px;min-width:0!important;overflow-wrap:anywhere}.mobile-cards td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:3px}.app-shell .mobile-cards td small{font-size:12px}.app-shell .mobile-cards .status,.app-shell .mobile-cards .usability{font-size:11px;padding:5px 9px}.app-shell .pagination .page-number{min-height:39px;min-width:39px;font-size:12px}.app-shell .toast-region{bottom:82px;right:12px}.app-shell .report-confirmation{max-height:calc(100dvh - 24px);padding:20px;width:calc(100% - 24px)}
 /* Mobile dashboard. */
 .app-shell .dashboard-welcome{margin:0 0 16px}.app-shell .dashboard-welcome p{font-size:14px}.app-shell .dashboard-date{display:none}.app-shell .dashboard-actions{justify-content:stretch}.app-shell .dashboard-actions>.button{flex:1;font-size:13px}.app-shell .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-shell .metric{padding:14px 12px;min-height:120px}.app-shell .metric-top{flex-direction:row-reverse;justify-content:flex-end;gap:8px;font-size:12px;align-items:center}.app-shell .metric-icon{width:33px;height:33px;min-width:33px}.app-shell .metric-icon>.icon{width:21px;height:21px}.app-shell .metric-value{font-size:30px;margin:7px 0}.app-shell .metric-note{margin:0;font-size:10px}.app-shell .dashboard-panels{display:flex;flex-direction:column-reverse;gap:14px}.app-shell .dashboard-panels>.card{padding:16px}.app-shell .distribution-body{grid-template-columns:135px 1fr;gap:12px}.app-shell .chart-legend li{font-size:10px;padding:5px 0;gap:5px}.app-shell .task-list>a{padding:12px;min-height:60px}.app-shell .task-list strong{font-size:13px}.app-shell .room-summary-grid{grid-template-columns:1fr}.app-shell .room-numbers{margin:10px 0}.app-shell .room-numbers>span{font-size:11px}.app-shell .room-numbers strong{font-size:24px}.app-shell .room-summary-grid .card{padding:16px}.app-shell .room-summary .button{min-height:42px}.app-shell .room-section-heading h2{font-size:18px}
 /* Machine list and full-room tab. */
 .ui-map-controls{gap:10px}.ui-map-controls .ui-switch{flex:0 0 100%;order:-1}.ui-map-controls label{flex:1}.app-shell .ui-map-controls input{min-height:44px}.ui-map-counts{gap:13px;font-size:12px;margin:10px 0}.ui-map-counts strong{font-size:20px}.app-shell .room-map{padding:11px;margin:12px 0}.app-shell .room-map .machine-rows{min-width:680px}.app-shell .room-map .machine-row>.machine-tile{min-height:86px}.app-shell .map-legend{justify-content:flex-start;font-size:10px;gap:6px 10px}.app-shell .map-safety-note{font-size:10px}.app-shell .ui-map-aside #machine-info{scroll-margin-top:82px}.app-shell .ui-map-aside .card{padding:16px}.ui-map-help{font-size:11px}.app-shell .machine-flag-badge{top:8px;right:8px}
 /* Report form two mobile steps. */
 .app-shell .report-layout{display:block}.app-shell .report-layout>.card{margin:12px 0}.app-shell .report-machine-picker>summary{font-size:15px;pointer-events:auto}.app-shell .report-machine-picker>summary small{max-width:110px;font-size:10px}.app-shell .report-machine-map .machine-rows{min-width:650px}.app-shell .report-machine-map .machine-row{grid-template-columns:25px repeat(4,minmax(0,1fr)) 8px repeat(4,minmax(0,1fr));gap:6px}.app-shell .report-machine-map .row-number{font-size:9px}.app-shell .report-machine-map .machine-row>.machine-tile{min-height:75px}.app-shell .report-machine-map .machine-tile strong{font-size:11px}.app-shell .report-machine-map .machine-tile .usability{font-size:9px}.ui-report-stepbar{display:flex;gap:16px;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px;margin:10px 0 18px}.ui-report-stepbar span{display:flex;align-items:center;gap:6px}.ui-report-stepbar .active{color:var(--primary);font-weight:600}.ui-report-stepbar .step-line{height:2px;background:var(--border);flex:1}.app-shell .report-selection-row{display:flex;margin:8px 0}.app-shell .report-selection-row p{flex:1;font-size:12px}.app-shell .report-selection-row button{min-height:40px}.app-shell .device-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.app-shell .device-card{font-size:11px;min-height:63px}.app-shell .simple-issues{padding:13px}.app-shell .issue-options{grid-template-columns:1fr;gap:6px}.app-shell .issue-option{font-size:13px;min-height:36px}.app-shell .issue-option input{width:20px;height:20px}.app-shell .ai-panel{padding:13px}.app-shell .ai-panel p.muted{font-size:11px}.app-shell .ai-panel textarea{min-height:74px}.app-shell #report-details>.actions>button{flex:1;width:100%;font-size:13px}.app-shell .report-tabs{flex-wrap:nowrap;overflow:auto;gap:7px}.app-shell .report-tabs .button{flex:1;white-space:nowrap;min-height:43px;padding:9px 10px;font-size:12px}.app-shell .report-tabs .icon{width:17px;height:17px}.app-shell #report-details{scroll-margin-top:80px}.app-shell #report-details .form-grid{grid-template-columns:1fr}
 /* Report settings / preview toggles. */
 .ui-report-layout{display:block}.ui-report-views{display:flex;margin:12px 0 15px}.ui-report-views button{min-height:42px}.app-shell .report-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.app-shell .report-stats .card{display:flex;flex-direction:column;align-items:start;justify-content:space-between;gap:5px;padding:13px 10px;min-height:95px}.app-shell .report-stats .card>small{font-size:11px}.app-shell .report-stats .card>small:nth-child(2){display:none}.app-shell .report-stats strong{font-size:26px}.app-shell #ai-report-form{grid-template-columns:1fr 1fr}.app-shell #report-filters{padding:16px}.app-shell .report-preview{margin-top:12px}.app-shell .report-preview td{min-width:0}.app-shell .ui-report-metadata>.form-grid{grid-template-columns:1fr}.app-shell .ui-report-preview .card{margin:12px 0}
 /* Student roster and touch seating. */
 .app-shell .student-filters{grid-template-columns:1fr 1fr;padding:13px;gap:10px}.app-shell .student-filters>label:nth-of-type(2){grid-column:1/-1;grid-row:1}.app-shell .student-filters>.actions{grid-column:1/-1;justify-content:space-between}.app-shell .student-filters label{font-size:11px}.app-shell .student-filters select{font-size:13px}.app-shell .student-hero{margin:0 0 12px}.app-shell .student-hero h2{font-size:13px}.app-shell .student-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.app-shell .student-metrics .metric{min-height:80px;padding:12px;gap:3px}.app-shell .student-metrics .metric-value{font-size:28px;margin:0}.app-shell .student-metrics .metric>span{font-size:10px;line-height:1.35}.ui-student-list-layout{display:flex;flex-direction:column;gap:12px}.ui-student-list-layout>*{width:100%}.app-shell .student-management .table-wrap .actions{display:flex;flex-wrap:wrap}.app-shell .student-management .table-wrap .button{min-height:37px;font-size:12px;padding:7px 9px}.app-shell .student-management>summary{padding:14px;font-size:16px}.app-shell .student-management>.card{padding:12px}.app-shell .student-management .table-wrap td:nth-child(3){font-size:17px;font-weight:650;order:-1}.app-shell .student-management .table-wrap tr{gap:6px}.app-shell .student-management .table-wrap td:first-child{display:none}.app-shell .student-management .table-wrap td:nth-child(2),.app-shell .student-management .table-wrap td:nth-child(4){font-size:12px;color:var(--muted)}.app-shell .student-workspace{display:flex;flex-direction:column;gap:12px}.app-shell .student-workspace>.student-roster,.app-shell .student-workspace>.student-map-column{width:100%}.app-shell .student-roster-list{display:flex;max-height:360px;gap:8px}.app-shell .roster-student{min-height:59px;padding:12px;font-size:14px}.app-shell .roster-name{font-size:14px}.app-shell .roster-meta{font-size:11px}.app-shell .student-roster>p{font-size:12px}.app-shell .student-roster>label input{font-size:14px}.app-shell .auto-seat-controls{gap:10px}.app-shell .auto-seat-controls>button{min-height:44px;flex:1;font-size:13px}.app-shell .auto-seat-controls select{min-height:44px;font-size:12px}.app-shell .auto-seat-controls .check{font-size:12px;flex:0 0 100%}.app-shell .student-status{font-size:12px;min-height:36px;padding:10px}.app-shell .seating-tools>.actions{display:flex;flex-wrap:wrap}.app-shell .seating-tools>.actions>*{min-height:42px;flex:1;font-size:11px}.app-shell .seating-tools h2{font-size:15px}.ui-workspace-views{margin:9px 0;width:100%}.app-shell .student-workspace.ui-mobile-assigned>.student-roster{display:none}.app-shell .student-workspace.ui-mobile-waiting>.student-map-column{display:none}.app-shell #student-seat-form .actions>button{flex:1;font-size:13px}.app-shell .student-year-end{align-items:stretch;flex-direction:column}.app-shell .student-year-end>button{font-size:13px}.app-shell .ui-exam-index{display:flex;flex-direction:column}.ui-exam-index>*{width:100%}.ui-exam-index>.student-setup:first-child:not([open]){margin-bottom:3px}.app-shell .ui-exam-index>.student-setup:first-child>summary{font-size:15px;color:var(--primary);padding:15px;border-radius:10px;border:1px solid #c5d3ff}.app-shell .ui-exam-index .ui-session-list>summary{font-size:17px}.app-shell .ui-session-card{padding:16px}.app-shell .ui-session-card h3{font-size:16px;line-height:1.4;gap:10px}.app-shell .ui-session-card p{font-size:13px}.app-shell .ui-session-card .actions{align-items:stretch;gap:12px}.app-shell .ui-session-card .actions .button{width:100%;font-size:14px}.app-shell .exam-rounds{display:flex;flex-wrap:nowrap}.app-shell .exam-rounds>.button{width:50%;min-height:43px}.app-shell .ui-empty-state{min-height:330px;padding:26px 20px!important}.app-shell .ui-empty-state h2{font-size:22px}.app-shell .ui-empty-state p{font-size:14px}.app-shell .ui-process li{font-size:14px;padding-bottom:20px}.app-shell .ui-process .notice{font-size:12px}.ui-empty-layout{gap:12px}.app-shell .ui-stat{padding:12px;gap:8px}.app-shell .ui-stat .icon{width:21px;height:21px}.app-shell .ui-stat strong{font-size:23px}.app-shell .ui-stat small{font-size:10px}.app-shell .ui-stats{gap:8px}
}
@media(min-width:901px){.ui-workspace-views,.mobile-account-link{display:none!important}}
@media(prefers-reduced-motion:reduce){.app-shell *{scroll-behavior:auto!important;transition:none!important}}
.ui-practice-shortcut{float:right;margin:0 0 10px 12px}.page-hoc-sinh .student-metrics{clear:both}.ui-student-list-layout aside>.card{margin:0 0 12px}.ui-student-list-layout aside p{font-size:13px}.ui-student-list-layout aside .button,.ui-student-list-layout aside button{width:100%;font-size:12px;margin-top:7px}.app-shell .ui-student-list-layout aside .class-management>.actions{display:block}.ui-mobile-export{display:none!important}.ui-report-metadata input,.ui-report-metadata textarea{width:100%}.room-status-bar .ring-unknown{fill:#8eabc1}.room-status-bar .ring-good{fill:#0b9953}.room-status-bar .ring-limited{fill:#e5a218}.room-status-bar .ring-broken{fill:#ef3945}.room-status-bar .ring-pending{fill:#438aca}
@media(max-width:900px){.ui-practice-shortcut{float:none;width:100%;margin:0 0 10px}.ui-mobile-export{display:flex!important;margin:12px 0}.ui-mobile-export>button{flex:1}.app-shell .nav-links .mobile-account-link button{width:100%;color:#fff;background:transparent;border:1px solid #485266}.app-shell .nav-links .mobile-account-link button:hover{background:#222631}.app-shell .ui-student-list-layout aside>.card{margin:0 0 12px}.app-shell .ui-student-list-layout .class-management{font-size:13px}}
:root{--button-bg:#1747ff;--button-hover:#1036cf;--red:#dc2436;--purple:#1747ff;--input-border:#c9d3e3}
:root[data-theme=dark]{--button-bg:#1747ff;--button-hover:#315cff;--primary:#8badff;--blue:#8badff;--red:#ff9ba4;--purple:#8badff;--input-border:#465775}
:root:has(body.app-shell){--menu-height:0px;scroll-padding-top:16px}.app-shell .sidebar-user{display:none}.app-shell .machine-tile>.machine-flag{width:14px;height:14px;top:4px;right:4px}.app-shell .student-machine>.machine-flag{width:11px;height:11px}.app-shell .ui-roster-search{margin:4px 0 12px;gap:8px}.app-shell .ui-roster-search input{margin:0;flex:1}.app-shell .ui-roster-search button{font-size:12px;min-height:39px}.app-shell .ui-map-aside .machine-flag-panel{padding:14px}.app-shell .ui-map-aside .machine-flag-panel h2{font-size:14px}.app-shell .ui-map-aside .machine-flag-panel p{font-size:11px}.app-shell .ui-map-aside .machine-flag-panel input{font-size:12px}.app-shell .ui-map-aside .machine-flag-panel .actions button{min-height:34px;font-size:11px;padding:6px 9px;width:auto}.app-shell .ui-map-aside .table-wrap{overflow-x:auto}.app-shell .ui-map-aside .table-wrap table{min-width:500px}
@media(max-width:900px){:root:has(body.app-shell){--menu-height:66px;scroll-padding-top:80px}.app-shell .ui-switch button{min-height:44px}.app-shell .ui-roster-search{display:flex;flex-direction:row;align-items:center}.app-shell .ui-roster-search input{min-width:0}.app-shell .ui-roster-search button{min-height:44px}.app-shell .ui-map-aside .machine-flag-panel .actions button{min-height:44px}}
.ui-dashboard-heading,.ui-title-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.ui-dashboard-heading h1,.ui-title-actions h1{margin-bottom:6px}.app-shell .ui-dashboard-heading .dashboard-welcome{margin:0}.app-shell .ui-dashboard-heading .dashboard-actions{margin:0;flex-wrap:nowrap}.app-shell .ui-dashboard-heading .dashboard-actions .button{font-size:12px;white-space:nowrap}.app-shell .ui-dashboard-heading .dashboard-date{display:none}.ui-exam-heading{display:grid;grid-template-columns:minmax(240px,1fr) minmax(400px,1.4fr);gap:12px 20px;align-items:center;margin-bottom:14px}.app-shell .ui-exam-heading h1{font-size:23px;margin:0}.app-shell .ui-exam-heading .seating-tools{padding:0;margin:0;border:0;background:none}.app-shell .ui-exam-heading .seating-tools>h2{display:none}.app-shell .ui-exam-heading .seating-tools>.actions{margin:0;justify-content:flex-end}.app-shell .ui-exam-heading .student-metrics{margin:0}.app-shell .ui-exam-heading .student-metrics .metric{padding:10px 15px;min-height:68px}.app-shell .ui-exam-heading .student-metrics .metric-value{font-size:25px}.app-shell .ui-exam-heading .exam-rounds{margin:0}.app-shell .page-kiem-tra-thuc-hanh>.student-setup{font-size:12px}
@media(min-width:901px){.app-shell.page-kiem-tra-thuc-hanh .student-room-map .machine-row>.student-machine,.app-shell.page-kiem-tra-thuc-hanh .student-room-map .machine-empty{min-height:78px}.app-shell.page-kiem-tra-thuc-hanh .student-room-map .map-safety-note{margin:5px 0}.app-shell.page-kiem-tra-thuc-hanh .student-room-map .teacher-station{margin-bottom:5px}.app-shell.page-kiem-tra-thuc-hanh .student-room-map .teacher-machine{min-height:45px;padding:5px 12px}.app-shell.page-kiem-tra-thuc-hanh .student-map-column>h2{display:none}.app-shell.page-kiem-tra-thuc-hanh .ui-exam-heading+.muted{font-size:11px}}
@media(max-width:900px){.ui-dashboard-heading,.ui-title-actions{display:block;margin:0 0 15px}.app-shell .ui-dashboard-heading .dashboard-actions{margin-top:16px;flex-wrap:wrap}.app-shell .ui-dashboard-heading .dashboard-actions .button{min-height:44px;font-size:13px}.app-shell .ui-exam-heading{display:flex;flex-direction:column;align-items:stretch;gap:12px}.app-shell .ui-exam-heading h1{font-size:24px;line-height:1.3}.app-shell .ui-exam-heading .seating-tools{order:4}.app-shell .ui-exam-heading .seating-tools>.actions>*{flex:1}.app-shell .ui-exam-heading .student-metrics .metric{padding:12px;min-height:77px}.app-shell .ui-exam-heading .exam-rounds{order:2}.app-shell .ui-exam-heading .student-metrics{order:3}.app-shell .ui-title-actions>.button{margin-top:10px}.app-shell .ui-switch [aria-pressed=true]{background:#1747ff;color:#fff}}
.app-shell .room-map[data-map-view=map] .machine-tile[data-filtered-out="1"]{visibility:hidden;pointer-events:none}.app-shell .ui-map-controls .ui-machine-filter{flex:0 1 170px;min-width:140px}.app-shell .ui-map-controls .ui-machine-filter select{margin:0;min-height:40px;font-size:12px}.app-shell .room-map[data-map-view=map] .machine-tile>small{min-height:0}.app-shell .ui-switch [aria-pressed=true]{background:#1747ff;color:white}
:root[data-menu-fixed="0"] .app-shell .sticky-menu{position:absolute!important}
@media(max-width:900px){:root[data-menu-fixed="0"] .app-shell .sticky-menu{position:relative!important}.app-shell .ui-map-controls .ui-machine-filter{flex:0 1 145px;min-width:125px}.app-shell .ui-map-controls .ui-machine-filter select{min-height:44px;font-size:11px}.app-shell .mobile-bottom-nav button.is-parent-active{color:var(--primary);background:var(--notice-bg)}.app-shell .ui-exam-index .toolbar{flex-direction:row;align-items:center}.app-shell .ui-exam-index .toolbar input{min-width:0}}
.app-shell .report-room-controls{margin:14px 0 8px;gap:10px;align-items:end;display:flex;flex-direction:row}.app-shell .report-room-controls label{flex:1;min-width:0}.app-shell .report-room-controls button{font-size:12px;min-height:39px;padding:7px 12px}.app-shell .report-machine-picker>summary{pointer-events:auto}.app-shell .ui-report-metadata>.actions{display:flex;flex-wrap:wrap}
@media(max-width:900px){.app-shell .report-room-controls{gap:8px;flex-direction:column;align-items:stretch}.app-shell .report-room-controls button{min-height:44px}}
.app-shell .seat-student.is-selected,.app-shell .roster-student.is-selected{background:var(--notice-bg);border-color:var(--primary);color:var(--text);box-shadow:0 0 0 2px #1747ff22}.app-shell .ui-student-list-layout aside .student-year-end{display:block;margin:0;padding:13px}.app-shell .ui-student-list-layout aside .student-year-end button{font-size:11px}.app-shell .ui-student-list-layout aside .student-setup{margin:10px 0}.app-shell .ui-student-list-layout aside .student-setup .toolbar{display:block}.app-shell .ui-student-list-layout aside .student-setup .toolbar label{min-width:0;margin-bottom:10px}
@media(max-width:900px){.app-shell .ui-student-list-layout aside .student-year-end button{font-size:13px}}

/* Bước 33: một menu thống nhất, thanh công cụ cân đối, một chế độ sơ đồ. */
.app-shell { padding-left: 0; }
.app-shell .sticky-menu,
:root[data-menu-fixed="0"] .app-shell .sticky-menu,
:root.has-menu-js[data-menu-fixed="1"] .app-shell .sticky-menu {
  position: fixed !important; inset: 0 auto 0 0; width: 240px !important;
  height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(-100%); visibility: hidden; transition: transform .18s, visibility .18s;
}
/* The open state must override the account preference selectors above. */
.app-shell[data-sidebar-open="true"] #app-sidebar { transform: none; visibility: visible; }
.app-shell .sticky-menu .site-header { position: relative; padding: 20px 16px; flex: none; }
.app-shell .sticky-menu .brand { font-size: 15px; line-height: 1.3; gap: 10px; }
.app-shell .sticky-menu .brand small { font-size: 10px; }
.app-shell .sticky-menu .menu-inner { display: flex; flex: 1; min-height: 0; overflow: hidden; padding: 0 12px; }
.app-shell .sticky-menu .site-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0 !important; }
.app-shell .sticky-menu .nav-links { position: static; display: flex !important; width: 100%; max-height: none; padding: 0; box-shadow: none; }
.app-shell .sidebar-bottom { flex: none; margin-top: auto; padding: 12px 4px 16px; display: grid; gap: 12px; }
.app-shell .sidebar-bottom > a { padding: 8px; font-size: 13px; }
.app-shell .account-menu { position: relative; inset: auto; width: 100%; display: block; color: #fff; }
.app-shell .account-menu > summary { max-width: none; width: 100%; padding: 6px 8px; gap: 9px; }
.app-shell .account-name { max-width: 150px; font-size: 13px; }
.app-shell .account-panel { position: absolute; inset: auto 0 48px; min-width: 0; width: 100%; z-index: 3; }
.app-shell .sidebar-close { position: absolute; right: 7px; top: 5px; min-height: 30px; width: 30px; padding: 6px; border: 0; background: transparent; color: #fff; }
.app-shell .sidebar-close .icon { margin: 0; }
/* This full-screen close button must never inherit primary-button hover colors. */
.app-shell .sidebar-backdrop,
.app-shell .sidebar-backdrop:hover,
.app-shell .sidebar-backdrop:active,
.app-shell .sidebar-backdrop:focus-visible { position: fixed; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #08101b88; box-shadow: none; outline: none; transition: none; z-index: 139; cursor: default; }
.app-shell .workspace-topbar { display: flex; align-items: center; justify-content: space-between; position: relative; height: 60px; padding: 0 24px; gap: 18px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text); z-index: 120; }
.workspace-location, .workspace-tools { display: flex; align-items: center; gap: 16px; min-width: 0; }
.app-shell .sidebar-toggle { width: 38px; min-height: 38px; padding: 8px; flex: none; background: transparent; border-color: var(--border); color: var(--text); }
.app-shell .sidebar-toggle .icon { margin: 0; width: 21px; height: 21px; }
.app-shell .nav-search { display: flex; align-items: center; gap: 9px; height: 38px; width: 285px; padding: 0 11px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.app-shell .nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px #1747ff18; }
.app-shell .nav-search > .icon { margin: 0; width: 18px; height: 18px; }
.app-shell .nav-search input:not([type=hidden]) { border: 0; outline: 0; box-shadow: none; background: transparent; padding: 0; margin: 0; width: 100%; min-height: 0; height: 34px; font-size: 13px; }
.app-shell .workspace-tools .notification-link { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.app-shell .workspace-tools .notification-link > .icon { margin: 0; width: 22px; height: 22px; color: inherit; }
.app-shell .workspace-tools #notification-count { position: absolute; inset: -1px -3px auto auto; display: grid; place-items: center; width: 18px; min-width: 18px; height: 18px; margin: 0; padding: 0; border-radius: 50%; font-size: 10px; font-weight: 650; line-height: 1; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--surface); }
.app-shell .workspace-tools .has-unread #notification-count { background: #ed3949; color: #fff; }
.app-shell .mobile-brand { display: none; }
.app-shell details:not([open]) > :not(summary) { display: none !important; }
.app-shell .report-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.app-shell .report-layout > [data-draft-notice] { grid-column: 1 / -1; margin: 0; }
.app-shell [data-draft-notice] { margin: 12px 0; }
.app-shell [data-draft-notice] .actions { margin: 8px 0 0; }
.app-shell .report-layout > .report-machine-picker { grid-column: 1; }
.app-shell .report-layout > #report-details { grid-column: 2; }
.app-shell .report-machine-picker > summary { min-height: 32px; font-size: 16px; }
.app-shell .report-machine-picker > summary:after { display: none; }
.app-shell .report-machine-picker > summary small { font-size: 11px; }
.app-shell .report-machine-map .room-map { background: transparent; padding: 0; border: 0; }
.app-shell .report-machine-map .machine-row { grid-template-columns: 0 repeat(4,minmax(0,1fr)) 10px repeat(4,minmax(0,1fr)); gap: 5px; }
.app-shell .report-machine-map .machine-row > .machine-tile { min-height: 49px; padding: 5px 2px; }
.app-shell .report-machine-map .machine-tile strong { font-size: 11px; }
.app-shell .report-machine-map .machine-tile > .icon { width: 16px; height: 16px; }
.app-shell .report-machine-map .machine-tile .usability { font-size: 8px; padding: 2px 3px; }
.app-shell .ui-map-controls { flex-wrap: nowrap; gap: 9px; margin: 0 0 10px; }
.app-shell .ui-map-controls > label { flex: 1; min-width: 0; }
.app-shell .ui-map-controls .ui-machine-filter { flex: 0 0 150px; min-width: 0; }
.app-shell .ui-map-controls input, .app-shell .ui-map-controls select { min-height: 38px; font-size: 12px; margin: 0; }
.app-shell .room-map { background: var(--surface); }
.app-shell .room-map .machine-row { gap: 6px; margin: 6px 0; grid-template-columns: 30px repeat(4,minmax(0,1fr)) 14px repeat(4,minmax(0,1fr)); }
.app-shell .room-map .machine-row > .machine-tile { min-height: 82px; }
.app-shell .room-map .tile-description { display: none; }
.app-shell .map-toolbar { display: flex; align-items: end; gap: 12px; margin: 0 0 12px; }
.app-shell .map-toolbar > form { display: flex; align-items: end; gap: 8px; flex: 0 0 315px; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.app-shell .map-toolbar > form label { min-width: 0; flex: 1; font-size: 12px; }
.app-shell .map-toolbar > form select { min-height: 38px; margin-top: 4px; font-size: 13px; }
.app-shell .map-toolbar > form button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.app-shell .map-toolbar > .ui-map-controls { margin: 0; flex: 1; min-width: 0; }
.app-shell .ui-map-layout { grid-template-columns: minmax(0, 1fr) 282px; gap: 16px; }
.app-shell .ui-map-aside .machine-flag-panel { margin-bottom: 12px; }
.app-shell .ui-history-disclosure { margin: 14px 0; }
.app-shell .ui-history-disclosure > summary { padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; font-weight: 600; }
/* Practical exam matches the reference: compact header, waiting sidebar, full map. */
.app-shell .ui-exam-heading { grid-template-columns: minmax(0,1fr) minmax(420px,1.15fr); gap: 10px 18px; margin-bottom: 12px; }
.app-shell .ui-exam-heading h1 { font-size: 24px; line-height: 1.25; margin: 0; }
.app-shell .exam-title .ui-exam-back { min-height: 0; padding: 0; border: 0; background: none; font-size: 11px; margin: 0 0 7px; }
.app-shell .ui-exam-meta { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.app-shell .ui-exam-heading .exam-rounds { border: 0; padding: 0; }
.app-shell .ui-exam-heading .exam-rounds .button { min-height: 36px; padding: 8px 15px; font-size: 13px; }
.app-shell .ui-exam-heading .student-metrics .metric { min-height: 61px; padding: 10px 15px; }
.app-shell .ui-exam-heading .student-metrics .metric-value { font-size: 25px; }
.app-shell.page-kiem-tra-thuc-hanh .student-workspace { grid-template-columns: 220px minmax(0,1fr); gap: 14px; margin: 10px 0; }
.app-shell.page-kiem-tra-thuc-hanh .student-roster { padding: 13px; }
.app-shell.page-kiem-tra-thuc-hanh .student-roster-list { max-height: 420px; }
.app-shell.page-kiem-tra-thuc-hanh .roster-meta { font-size: 10px; }
.app-shell.page-kiem-tra-thuc-hanh .auto-seat-controls { min-height: 42px; padding: 7px 10px; margin: 0 0 6px; }
.app-shell.page-kiem-tra-thuc-hanh .auto-seat-controls select { min-width: 0; min-height: 31px; width: 140px; }
.app-shell.page-kiem-tra-thuc-hanh .student-status { min-height: 28px; padding: 6px 10px; margin: 6px 0; font-size: 11px; }
.app-shell.page-kiem-tra-thuc-hanh .student-map-column > .ui-map-controls { margin: 7px 0; }
.app-shell.page-kiem-tra-thuc-hanh .student-map-column > .room-map { padding: 10px; margin: 0; }
.app-shell.page-kiem-tra-thuc-hanh .student-room-map .machine-row > .student-machine { min-height: 66px; padding: 5px 4px; gap: 3px; }
.app-shell.page-kiem-tra-thuc-hanh .student-machine-target { min-height: 20px; padding: 0; gap: 4px; }
.app-shell.page-kiem-tra-thuc-hanh .student-machine-target > strong { font-size: 12px; }
.app-shell.page-kiem-tra-thuc-hanh .student-machine-target > .icon { width: 15px; height: 15px; }
.app-shell.page-kiem-tra-thuc-hanh .student-machine-target > .usability-none { display: none; }
.app-shell.page-kiem-tra-thuc-hanh .student-machine-target > .usability:not(.usability-none) { flex-basis: 100%; font-size: 10px; padding: 2px; background: transparent; }
.app-shell.page-kiem-tra-thuc-hanh .machine-students { min-height: 0; margin: 0; gap: 3px; }
.app-shell.page-kiem-tra-thuc-hanh .seat-student { min-height: 23px; font-size: 11px; font-weight: 500; line-height: 1.3; padding: 4px 3px; }
.app-shell.page-kiem-tra-thuc-hanh .seat-student.is-long { font-size: 10px; }
.app-shell.page-kiem-tra-thuc-hanh .seat-capacity { display: none; }
.app-shell.page-kiem-tra-thuc-hanh .machine-empty { min-height: 66px; }
.app-shell.page-kiem-tra-thuc-hanh .teacher-station .teacher-machine { min-height: 38px; padding: 5px 12px; }
.app-shell.page-kiem-tra-thuc-hanh .teacher-machine > small { display: none; }
.app-shell.page-kiem-tra-thuc-hanh .teacher-warning { margin: 5px 0; padding: 4px 8px; font-size: 10px; }
.app-shell.page-kiem-tra-thuc-hanh .student-room-map .map-safety-note { display: none; }
.app-shell.page-kiem-tra-thuc-hanh .map-legend { gap: 6px 10px; margin: 8px 0; }
.app-shell.page-kiem-tra-thuc-hanh .map-legend > span:last-child { display: none; }
.app-shell.page-kiem-tra-thuc-hanh .map-caption { font-size: 10px; margin-top: 8px; }
.app-shell.page-kiem-tra-thuc-hanh .student-log { margin: 0; }
.app-shell.page-kiem-tra-thuc-hanh .ui-manual-seat { margin: 8px 0 0; }
@media (min-width:901px) {
  :root[data-menu-fixed="1"] .app-shell { padding-left: 240px; }
  :root[data-menu-fixed="1"] .app-shell .sticky-menu { transform: none; visibility: visible; }
  :root[data-menu-fixed="1"] .app-shell .sidebar-toggle,
  :root[data-menu-fixed="1"] .app-shell .sidebar-close { display: none; }
  .app-shell .ui-exam-back { font-size: 12px; }
}
@media (max-width:1250px) and (min-width:901px) {
  .app-shell .map-toolbar { flex-wrap: wrap; }
  .app-shell .map-toolbar > .ui-map-controls { flex-basis: 100%; }
  .app-shell .ui-map-layout { grid-template-columns: minmax(0,1fr) 250px; }
  .app-shell .report-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:900px) {
  .app-shell { padding-left: 0; }
  .app-shell .workspace-topbar { display: flex; height: 62px; padding: 0 14px; gap: 10px; background: #101114; color: #fff; position: sticky; top: 0; }
  .workspace-location, .workspace-tools { gap: 10px; }
  .app-shell .workspace-topbar .breadcrumb, .app-shell .nav-search { display: none; }
  .app-shell .workspace-topbar .mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 17px; color: #fff; text-decoration: none; font-weight: 650; }
  .app-shell .mobile-brand .icon { width: 25px; height: 25px; margin: 0; color: #6bbaff; }
  .app-shell .sidebar-toggle { color: #fff; border: 0; min-height: 44px; width: 36px; padding: 6px; }
  .app-shell .workspace-tools .notification-link { color: #fff; }
  .app-shell #app-sidebar { width: 270px !important; height: 100dvh; z-index: 170; }
  .app-shell .sticky-menu .site-header { display: block; height: auto; padding: 22px 16px; }
  .app-shell .sticky-menu .brand { display: flex; font-size: 15px; }
  .app-shell .sticky-menu .brand small { display: block; }
  .app-shell .sticky-menu .menu-inner { height: auto; padding: 0 12px; }
  .app-shell .sticky-menu .sidebar-bottom { display: grid; }
  .app-shell .sticky-menu .account-menu { display: block; }
  .app-shell .sidebar-backdrop { z-index: 169; }
  .app-shell .report-layout { display: block; }
  .app-shell .report-layout > .card { margin: 12px 0; }
  .app-shell .report-machine-picker > summary:after { display: block; }
  .app-shell .ui-map-layout { display: block; }
  .app-shell .map-toolbar { display: block; }
  .app-shell .map-toolbar > form { margin-bottom: 12px; flex-direction: row; }
  .app-shell .map-toolbar > form button, .app-shell .map-toolbar > form select { min-height: 44px; }
  .app-shell .ui-map-controls { margin: 10px 0; gap: 8px; }
  .app-shell .ui-map-controls input, .app-shell .ui-map-controls select { min-height: 44px; }
  .app-shell .ui-map-controls .ui-machine-filter { flex-basis: 135px; }
  .app-shell .room-map .machine-rows { min-width: 720px; }
  .app-shell .report-machine-map .machine-rows { min-width: 660px; }
  .app-shell .ui-exam-heading { display: flex; flex-direction: column; gap: 12px; }
  .app-shell .ui-exam-heading h1 { font-size: 23px; }
  .app-shell .exam-title .ui-exam-back { font-size: 12px; min-height: 30px; }
  .app-shell .ui-exam-heading .student-metrics .metric { min-height: 75px; padding: 12px; }
  .app-shell.page-kiem-tra-thuc-hanh .student-workspace { display: flex; flex-direction: column; }
  .app-shell.page-kiem-tra-thuc-hanh .student-roster-list { max-height: 400px; }
  .app-shell.page-kiem-tra-thuc-hanh .roster-name { font-size: 14px; }
  .app-shell.page-kiem-tra-thuc-hanh .auto-seat-controls select { min-height: 44px; }
  .app-shell.page-kiem-tra-thuc-hanh .student-status { font-size: 12px; padding: 9px; min-height: 35px; }
  .app-shell.page-kiem-tra-thuc-hanh .student-room-map .machine-row > .student-machine { min-height: 83px; }
  .app-shell .ui-workspace-views { margin: 10px 0; }
  .app-shell .session-expired-banner { position: relative; inset: auto; }
}
/* The search field sits inside its single border; generic input rules must not add another. */
.app-shell #nav-search {
  border: 0; outline: 0; box-shadow: none; padding: 0; margin: 0;
  min-height: 0; height: 34px; width: 100%; background: transparent; font-size: 13px;
}
.app-shell #nav-search:focus-visible { outline: 0; }
@media(max-width:900px) {
  :root[data-menu-fixed="0"] .app-shell .sticky-menu,
  :root[data-menu-fixed="1"] .app-shell .sticky-menu { width: 270px !important; }
}

:root { --sidebar: 240px; }
@media(max-width:900px) { :root { --sidebar: 0px; } }
.app-shell .workspace-topbar { position: sticky; top: 0; }
:root:has(body.app-shell) { --menu-height: 60px; scroll-padding-top: 78px; }
@media(max-width:900px) { :root:has(body.app-shell) { --menu-height: 62px; scroll-padding-top: 80px; } }
.app-shell .sticky-menu .site-header { display: flex; align-items: center; gap: 8px; padding: 18px 16px; }
.app-shell .sticky-menu .brand { flex: 1; min-width: 0; font-size: 14px; gap: 8px; }
.app-shell .sticky-menu .brand > span:last-child { min-width: 0; }
.app-shell .sticky-menu .brand-symbol { min-width: 32px; width: 32px; height: 36px; }
.app-shell .sidebar-close { position: static; flex: none; width: 30px; min-height: 36px; }
@media(min-width:901px) {
  :root[data-menu-fixed="1"] .app-shell .sticky-menu .brand { font-size: 15px; gap: 10px; }
  :root[data-menu-fixed="1"] .app-shell .sticky-menu .brand-symbol { width: 42px; min-width: 42px; height: 42px; }
}
@media(max-width:900px) {
  .app-shell .sidebar-close { width: 44px; min-height: 44px; }
  .app-shell .sidebar-bottom { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* Bước 35: statistics beside the page title and legible machine numbers. */
.app-shell .ui-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 16px; }
.app-shell .ui-map-title { min-width: 0; }
.app-shell .ui-map-title h1 { margin: 0 0 6px; }
.app-shell .ui-map-title .ui-page-description { margin: 0 !important; font-size: 14px; }
.app-shell .ui-map-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; flex: 0 0 580px; color: var(--muted); }
.app-shell .ui-map-stat { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.app-shell .ui-map-stat > div { min-width: 0; }
.app-shell .ui-map-stat strong { display: block; color: var(--text); font-size: 24px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.app-shell .ui-map-stat > div > span { display: block; font-size: 12px; line-height: 1.3; margin-top: 3px; }
.app-shell .ui-map-stat-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: #e5f9ed; color: #078447; }
.app-shell .ui-map-stat-icon .icon { margin: 0; width: 25px; height: 25px; }
.app-shell .ui-map-stat.is-blocked .ui-map-stat-icon { background: #ffebed; color: #db2034; }
.app-shell .ui-map-stat.is-flagged .ui-map-stat-icon { background: #fff5e2; color: #d98100; }
:root[data-theme=dark] .app-shell .ui-map-stat-icon { background: #153c2c; color: #70e8a5; }
:root[data-theme=dark] .app-shell .ui-map-stat.is-blocked .ui-map-stat-icon { background: #4b242d; color: #ff9ca7; }
:root[data-theme=dark] .app-shell .ui-map-stat.is-flagged .ui-map-stat-icon { background: #45351d; color: #ffd16b; }
/* A dedicated class prevents number sizing from enlarging pupil names or badges. */
.app-shell .room-map .machine-tile .machine-number { font-size: 39px; font-weight: 800; line-height: 1; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.app-shell .report-machine-map .machine-tile .machine-number { font-size: 33px; }
.app-shell .student-room-map .student-machine-target > .machine-number { font-size: 36px; }
.app-shell .room-map .teacher-machine > .machine-number { font-size: 28px; letter-spacing: -.4px; white-space: nowrap; }
.app-shell .teacher-station .teacher-machine { max-width: 310px; }
.app-shell .student-machine-target:has(> .machine-number) { min-height: 40px; }
.app-shell .student-machine-target > .machine-number { flex: 0 0 auto; }
.app-shell.page-kiem-tra-thuc-hanh .student-machine-target:has(> .machine-number) { min-height: 40px; }
.app-shell .report-machine-map .machine-row > .machine-tile { min-height: 82px; }
.app-shell .ui-icon-control > .icon { flex: none; width: 18px; height: 18px; margin-right: 7px; vertical-align: -.2em; }
.app-shell .ui-tabs .ui-icon-control, .app-shell .ui-switch .ui-icon-control { display: inline-flex; align-items: center; justify-content: center; }
@media(max-width:1250px) {
  .app-shell .ui-map-heading { flex-wrap: wrap; gap: 12px; }
  .app-shell .ui-map-counts { flex: 1 0 100%; }
}
@media(max-width:900px) {
  .app-shell .ui-map-heading { display: block; margin-bottom: 14px; }
  .app-shell .ui-map-counts { gap: 6px; margin-top: 14px; }
  .app-shell .ui-map-stat { flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px; }
  .app-shell .ui-map-stat-icon { width: 32px; height: 32px; border-radius: 8px; }
  .app-shell .ui-map-stat-icon .icon { width: 21px; height: 21px; }
  .app-shell .ui-map-stat strong { font-size: 23px; }
  .app-shell .ui-map-stat > div > span { font-size: 11px; }
  .app-shell .ui-icon-control > .icon { width: 17px; height: 17px; margin-right: 5px; }
}
.app-shell .machine-tile-heading { display: flex; align-items: center; justify-content: center; gap: 6px; }
.app-shell .machine-tile-heading > .icon { width: 19px; height: 19px; margin: 0; }

/* Bước 36: consistent interaction states for pupils and tabs. */
:root[data-theme=light] .app-shell .seat-student:is(:hover,.is-selected,.is-pending),
:root[data-theme=light] .app-shell .roster-student:is(:hover,.is-selected,.is-pending),
:root[data-theme=light] .app-shell .seat-student:is(:hover,.is-selected,.is-pending) .seat-name,
:root[data-theme=light] .app-shell .roster-student:is(:hover,.is-selected,.is-pending) :is(.roster-name,.roster-meta) { background: #1747ff; color: #fff; border-color: #1747ff; }
.app-shell .student-drag-preview { background: #1747ff; color: #fff; border-color: #1747ff; }
.app-shell .seat-student.is-pending { opacity: 1; cursor: wait; outline: 1px dashed #92adff; outline-offset: 2px; }
.app-shell .ui-tabs > [role=tab] { appearance: none; margin: 0; padding: 11px 20px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); box-shadow: none; font-weight: 600; outline: none; transition: background .16s ease,color .16s ease,border-color .16s ease; }
.app-shell .ui-tabs > [role=tab]:hover { background: var(--notice-bg); color: var(--primary); box-shadow: none; }
.app-shell .ui-tabs > [role=tab][aria-selected=true] { background: var(--surface); color: var(--primary); border-bottom-color: var(--primary); }
.app-shell .ui-tabs > [role=tab]:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
.app-shell [role=tabpanel]:not([hidden]) { animation: tab-reveal .16s ease-out; }
@keyframes tab-reveal { from { opacity: .65; } to { opacity: 1; } }
.app-shell .breadcrumb-home { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-height: 40px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.app-shell .breadcrumb-home .icon { margin: 0; }
.app-shell .breadcrumb-home:hover { color: var(--primary); background: var(--notice-bg); }
.app-shell .school-settings { padding: 18px; }
.app-shell .school-settings .actions { margin-top: 12px; }
@media(max-width:900px) { .app-shell .ui-tabs > [role=tab] { padding: 12px 13px; } }
@media(prefers-reduced-motion:reduce) { .app-shell [role=tabpanel]:not([hidden]) { animation: none; } .app-shell .ui-tabs > [role=tab] { transition: none; } }

/* Bước 37: a clear current-page state shared by server and client pagers. */
.app-shell .pagination .page-number { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; margin: 0; background: var(--surface); color: var(--primary); border: 1px solid var(--border); font-weight: 600; text-decoration: none; }
.app-shell .pagination .page-number:hover { background: var(--notice-bg); color: var(--primary); border-color: var(--primary); box-shadow: none; }
.app-shell .pagination .page-number[aria-current=page],
.app-shell .pagination .page-number[aria-current=page]:hover { background: #1747ff; color: #fff; border-color: #1747ff; box-shadow: inset 0 0 0 1px #1747ff; font-weight: 800; }
.app-shell .pagination .page-number:focus-visible { outline: 2px solid #7da0ff; outline-offset: 3px; }
.app-shell .pagination-summary { padding: 5px 9px; border-radius: 6px; background: var(--notice-bg); color: var(--text); font-size: 12px; line-height: 1.4; }
.app-shell .pagination-summary strong { color: var(--primary); font-weight: 800; }
.app-shell .ui-list-page-position { display: table; margin: 10px 0; padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--notice-bg); color: var(--primary); font-size: 12px; font-weight: 650; line-height: 1.4; }
.app-shell .ui-student-heading .student-metrics { margin: 0; }
.app-shell .ui-student-title .student-hero { margin: 0; }
.app-shell .ui-student-title .student-hero h2 { margin: 0; }
.app-shell .ui-student-counts .metric-value { margin: 0; font-size: 24px; }
.app-shell .ui-map-stat.is-total .ui-map-stat-icon { background: #eaf1ff; color: #1747ff; }
:root[data-theme=dark] .app-shell .ui-map-stat.is-total .ui-map-stat-icon { background: #1a3152; color: #8bb5ff; }
.app-shell.page-hoc-sinh .ui-tabs { clear: both; }
@media(max-width:900px) {
  .app-shell .pagination .page-number { min-width: 44px; min-height: 44px; }
  .app-shell .ui-student-counts .metric-value { font-size: 23px; }
}

/* Bước 38: inverse drag feedback in dark mode, plus favicon settings. */
:root[data-theme=dark] .app-shell .seat-student:is(:hover,.is-selected,.is-pending),
:root[data-theme=dark] .app-shell .roster-student:is(:hover,.is-selected,.is-pending),
:root[data-theme=dark] .app-shell .seat-student:is(:hover,.is-selected,.is-pending) .seat-name,
:root[data-theme=dark] .app-shell .roster-student:is(:hover,.is-selected,.is-pending) :is(.roster-name,.roster-meta) { background: #fff; color: #1747ff; border-color: #fff; }
:root[data-theme=dark] .app-shell .student-drag-preview { background: #fff; color: #1747ff; border-color: #fff; }
.app-shell .favicon-settings-body { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 16px; align-items: start; }
.app-shell .favicon-preview { display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 12px; }
.app-shell .favicon-preview img { width: 48px; height: 48px; object-fit: contain; }
.app-shell .favicon-settings .actions { margin-top: 12px; }
.app-shell .favicon-reset-form { margin-top: 10px; }
@media(max-width:600px) { .app-shell .favicon-settings-body { grid-template-columns: 1fr; } }

/* Bước 39: header đăng nhập có chiều cao và khoảng đệm riêng. */
.guest-shell .guest-header { display: block; padding: 0; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); }
.guest-shell .guest-header-inner { display: flex; align-items: center; width: 100%; max-width: 1200px; min-height: 80px; margin-inline: auto; padding: 16px 24px; }
.guest-shell .guest-header .brand { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; color: var(--text); font-size: 20px; font-weight: 750; line-height: 1.3; text-decoration: none; }
.guest-shell .guest-header .brand-symbol { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg,#09c7f9,#164aff); color: #fff; }
.guest-shell .guest-header .brand-symbol .icon { width: 28px; height: 28px; margin: 0; }
.guest-shell .guest-header .brand-label { min-width: 0; overflow-wrap: anywhere; }
.guest-shell .guest-header .brand:focus-visible { outline: 3px solid #7da0ff; outline-offset: 5px; border-radius: 6px; }
.guest-shell.page-dang-nhap main { padding: 40px 24px 12px; }
.guest-shell .login-page h1 { margin-top: 0; }
@media(max-width:600px) {
  .guest-shell .guest-header-inner { min-height: 72px; padding: 14px 16px; }
  .guest-shell .guest-header .brand { gap: 10px; font-size: 18px; }
  .guest-shell .guest-header .brand-symbol { width: 40px; height: 40px; border-radius: 11px; }
  .guest-shell .guest-header .brand-symbol .icon { width: 25px; height: 25px; }
  .guest-shell.page-dang-nhap main { padding: 28px 16px 12px; }
}

/* Sơ đồ theo hình vẽ (Hình 1): lưới 9 cột, vị trí máy do PHP tính sẵn. */
.app-shell .room-map .machine-row.machine-figure{grid-template-columns:repeat(9,minmax(0,1fr));grid-auto-rows:minmax(0,auto);gap:8px;margin:4px 0;align-items:stretch}
.machine-figure>.fig-c1{grid-column-start:1}.machine-figure>.fig-c2{grid-column-start:2}.machine-figure>.fig-c3{grid-column-start:3}.machine-figure>.fig-c4{grid-column-start:4}.machine-figure>.fig-c5{grid-column-start:5}.machine-figure>.fig-c6{grid-column-start:6}.machine-figure>.fig-c7{grid-column-start:7}.machine-figure>.fig-c8{grid-column-start:8}.machine-figure>.fig-c9{grid-column-start:9}.machine-figure>.fig-r1{grid-row:1}.machine-figure>.fig-r2{grid-row:2}.machine-figure>.fig-r3{grid-row:3}.machine-figure>.fig-r4{grid-row:4}.machine-figure>.fig-r5{grid-row:5}.machine-figure>.fig-r6{grid-row:6}.machine-figure>.fig-r7{grid-row:7}.machine-figure>.fig-r8{grid-row:8}.machine-figure>.fig-r9{grid-row:9}.machine-figure>.fig-r10{grid-row:10}.machine-figure>.fig-r11{grid-row:11}.machine-figure>.fig-r12{grid-row:12}.machine-figure>.fig-r13{grid-row:13}.machine-figure>.fig-r14{grid-row:14}.machine-figure>.fig-r15{grid-row:15}.machine-figure>.fig-r16{grid-row:16}.machine-figure>.fig-r17{grid-row:17}.machine-figure>.fig-r18{grid-row:18}.machine-figure>.fig-r19{grid-row:19}.machine-figure>.fig-r20{grid-row:20}.machine-figure>.fig-r21{grid-row:21}.machine-figure>.fig-r22{grid-row:22}.machine-figure>.fig-r23{grid-row:23}.machine-figure>.fig-r24{grid-row:24}.machine-figure>.fig-span2{grid-column-end:span 2}
.machine-figure>.figure-floor{grid-column:3/8;grid-row:2/12;display:flex;align-items:center;justify-content:center;margin:4px 6px;border:1px dashed var(--border,#cbd8e2);border-radius:14px;color:var(--muted,#78909f);font-size:.8rem;letter-spacing:.04em}
.machine-figure>.teacher-station{flex-direction:column;align-items:center;justify-content:center;margin:6px 0 0;gap:6px}
.machine-figure>.teacher-station .teacher-warning{margin:0;max-width:100%}
.app-shell .room-map .machine-figure>.machine-tile{min-height:96px}
.app-shell .student-room-map .machine-figure>.student-machine{min-height:120px}
.app-shell .map-toolbar>.map-layout-form{flex-basis:300px}

/* Điện thoại: sơ đồ gọn vừa màn hình, xếp chỗ theo danh sách máy, thẻ phiếu 2 cột, tab có gợi ý cuộn. */
@media(max-width:600px){
  .app-shell .room-map{padding:10px 8px}
  .app-shell .room-map .machine-rows,.app-shell .report-machine-map .machine-rows,.app-shell .student-room-map .machine-rows{min-width:0}
  .app-shell .room-map .machine-row{grid-template-columns:22px repeat(4,minmax(0,1fr)) 4px repeat(4,minmax(0,1fr));gap:4px;margin:4px 0}
  .app-shell .room-map .row-number{font-size:9px;line-height:1.15;text-align:center}
  .app-shell .room-map .map-aisle{font-size:0;padding:0}
  .app-shell .room-map .machine-row>.machine-tile,.app-shell .student-room-map .machine-row>.student-machine,.app-shell .room-map .machine-row>.machine-empty,.app-shell .student-room-map .machine-row>.machine-empty{min-height:48px;padding:4px 1px;gap:1px;border-radius:7px;justify-content:center}
  .app-shell .room-map .machine-row>.machine-tile>:not(.machine-tile-heading,.machine-number,input,.tile-tick,.machine-flag,.student-machine-target,.seat-capacity),.app-shell .room-map .machine-tile-heading>.icon,.app-shell .room-map .student-machine-target>:not(.machine-number){display:none}
  .app-shell .room-map .machine-row>.machine-tile .machine-number,.app-shell .student-room-map .student-machine-target>.machine-number{font-size:17px;letter-spacing:0}
  .app-shell .student-room-map .student-machine-target{min-height:0;padding:0}
  .app-shell .student-room-map .machine-row>.student-machine>.seat-capacity{align-self:center;margin:0;padding:0;font-size:10px}
  .app-shell .room-map .machine-tile .tile-tick{right:0;top:0}.app-shell .room-map .machine-tile .tile-tick .icon{width:12px;height:12px}
  .app-shell .room-map .machine-row.machine-figure{grid-template-columns:repeat(9,minmax(0,1fr));gap:3px}
  .app-shell .room-map .machine-figure>.figure-floor{font-size:10px;margin:2px}
  .app-shell .room-map .machine-figure>.teacher-station .teacher-machine{display:flex;flex-direction:column;justify-content:center;width:100%;max-width:100%;min-height:48px;padding:4px 2px}
  .app-shell .room-map .machine-figure>.teacher-station .teacher-machine>:not(.machine-number,.machine-flag,input,.tile-tick){display:none}
  .app-shell .room-map .machine-figure>.teacher-station .teacher-machine>.machine-number{font-size:13px}
  .app-shell .room-map .teacher-station .teacher-machine{padding:6px 12px}
  .app-shell .room-map .teacher-machine>.machine-number{font-size:20px}
  .app-shell .room-map .map-legend{gap:4px 10px;margin:8px 0;font-size:11px}
  .app-shell .room-map .map-safety-note,.app-shell .room-map .map-caption{font-size:11px;margin:6px 0 0;line-height:1.4}
  .app-shell .mobile-cards tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:12px}
  .app-shell .mobile-cards td:is([colspan],:has(p,form,.actions,button,.button,textarea,select)){grid-column:1/-1}
}
@media(max-width:420px){.app-shell .filter-grid{grid-template-columns:1fr}.app-shell .filter-grid>*{grid-column:1/-1}}
/* Gợi ý còn tab bên phải/trái khi thanh tab cuộn ngang. */
@media(max-width:900px){
  .app-shell :is(.ui-tabs,.report-tabs).has-more-end{-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
  .app-shell :is(.ui-tabs,.report-tabs).has-more-start{-webkit-mask-image:linear-gradient(90deg,transparent,#000 18%);mask-image:linear-gradient(90deg,transparent,#000 18%)}
  .app-shell :is(.ui-tabs,.report-tabs).has-more-start.has-more-end{-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)}
  .app-shell .ui-seat-view{display:flex;margin:0 0 10px}
  .app-shell .ui-seat-view>button{flex:1;min-height:44px}
  .app-shell .student-room-map.is-list-view .machine-rows{min-width:0}
  .app-shell .student-room-map.is-list-view .map-scroll{overflow:visible;padding:0}
  .app-shell .student-room-map.is-list-view .machine-row,.app-shell .student-room-map.is-list-view .machine-row.machine-figure{display:flex;flex-direction:column;gap:6px;margin:0 0 6px}
  .app-shell .student-room-map.is-list-view :is(.row-number,.map-aisle,.machine-empty,.figure-floor,.teacher-station,.teacher-warning){display:none}
  .app-shell .student-room-map.is-list-view .machine-row>.student-machine{display:grid;grid-template-columns:64px minmax(0,1fr) 30px;align-items:center;min-height:54px;padding:6px 8px;gap:8px}
  .app-shell .student-room-map.is-list-view .student-machine-target{flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;padding:2px}
  .app-shell .student-room-map.is-list-view .student-machine-target>:is(.icon,small,.machine-safety){display:none}
  .app-shell .student-room-map.is-list-view .student-machine-target>.machine-number{display:block;font-size:22px}
  .app-shell .student-room-map.is-list-view .student-machine-target>.usability{display:inline-block;font-size:9px;padding:2px 5px;white-space:nowrap}
  .app-shell .student-room-map.is-list-view .student-machine>.machine-students{display:flex;flex-direction:column;gap:4px;min-height:0}
  .app-shell .student-room-map.is-list-view .student-machine>.machine-students:empty:before{content:'Trống · chạm số máy để xếp';font-size:12px;opacity:.7}
  .app-shell .student-room-map.is-list-view .seat-student{min-height:36px;font-size:14px;text-align:left;padding:6px 10px}
  .app-shell .student-room-map.is-list-view .seat-student.is-long{font-size:13px}
  .app-shell .student-room-map.is-list-view .seat-capacity{align-self:center;margin:0;padding:0;font-size:11px;text-align:right}
}
@media(min-width:901px){.app-shell .ui-seat-view{display:none}}
