/* Readability adjustments over the restored four-role interface. */
body{font-size:17px;line-height:1.5}
h1{font-size:32px}h2,.panel-head h2{font-size:22px}h3{font-size:19px}
small{font-size:14px}
.page-heading p,.page-heading select,.hero-card p,.service-card p,.empty,.module-card p,.passport-head p{font-size:17px}
.eyebrow,.nav-caption{font-size:13px;letter-spacing:1px}
.nav a{font-size:16px}.breadcrumb,.connection,.user,.notice,.role-switcher>span{font-size:14px}
.primary,.secondary,.role-tabs button{font-size:16px;min-height:46px}
input,textarea,select{font-size:17px;min-height:46px}
.panel-head{flex-wrap:wrap}.text-link{font-size:16px;min-height:40px;align-items:center}
.quick-links a{font-size:16px;min-height:48px}
.badge{font-size:14px;white-space:normal}.device-top{flex-wrap:wrap;gap:8px}
.device strong{font-size:18px;line-height:1.4;white-space:normal;overflow-wrap:break-word}
.device .state{font-size:16px;line-height:1.5}.device small{font-size:14px}
.metric-top{font-size:16px}.metric small{font-size:14px}.metric-value{font-size:32px}
.hero-bottom,.service-brand,.service-card small{font-size:14px}
.event-content b{font-size:17px}.event-content small,.event-row time{font-size:14px}
.camera-scene b{font-size:20px}.camera-scene span{font-size:16px}
.detail-row{font-size:17px}.detail-row span{font-size:14px}
.category b{font-size:17px}.category small{font-size:14px}
.data-table{font-size:16px}.data-table th,.data-table td{white-space:normal;overflow-wrap:break-word}
.table-wrap{max-width:100%;overflow-x:auto}
.footer{font-size:14px;gap:12px;flex-wrap:wrap}.footer>span:last-child{max-width:none}
dialog p,.request-dialog summary,.camera-progress{font-size:16px}
.camera-player{min-width:0;width:100%;min-height:0}.camera-player img{max-width:100%;min-width:0}
.demo-camera{position:relative;min-height:300px;overflow:hidden;background:linear-gradient(145deg,#151a2d,#312660 58%,#182b3d)}
.demo-camera:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 48%,#8c79ff22 50%,transparent 52%),linear-gradient(#ffffff09 1px,transparent 1px);background-size:100% 100%,100% 34px;animation:demo-scan 4s linear infinite}
.demo-camera .demo-room{position:relative;z-index:1;display:grid;place-items:center;gap:12px;color:#eef1ff}.demo-camera .demo-room .icon{width:54px;height:54px}.demo-camera .demo-room strong{font-size:24px}.demo-camera .demo-room span{font-size:16px}.demo-camera time{position:absolute;right:16px;top:14px;z-index:1;font-size:14px;color:#eef1ff}
@keyframes demo-scan{0%{background-position:0 0,0 0}100%{background-position:100% 0,0 34px}}
body[data-role=dispatcher] .dashboard{grid-template-columns:minmax(0,1fr)}
.admin-switcher-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.admin-switcher-head>div{display:grid;gap:3px}.admin-switcher-head b{font-size:18px}.admin-switcher-head span{font-size:15px;color:var(--muted)}.admin-switcher-head .secondary{display:inline-flex;align-items:center;gap:8px}
@media(max-width:700px){
 .page-heading h1{font-size:30px}.page-heading p,.page-heading select{font-size:17px}
 .hero-card h2{font-size:28px}.hero-copy{max-width:100%}.hero-card p{font-size:17px}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-height:130px}
 .device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.device{padding:15px}
 .role-tabs button{font-size:16px;padding:10px}.mobile-brand{font-size:18px}
 .camera-scene{height:auto;min-height:170px;padding:16px}
 .hero-bottom{align-items:flex-start}.event-content{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:600px){
 .sidebar{top:0;bottom:auto;height:94px;border-top:0;border-bottom:1px solid var(--line);padding:6px 4px}
 .workspace{padding:94px 14px 28px}
 .nav{display:flex;justify-content:flex-start;gap:2px;overflow-x:auto;scrollbar-width:thin;margin:0;height:82px}
 .nav a,.nav .extra-nav{display:flex;flex:1 0 70px;min-width:0;flex-direction:column;font-size:14px;line-height:1.2;white-space:normal;text-align:center;padding:8px 3px;gap:7px}
 .nav a .icon{width:24px;height:24px}.nav .service-nav{margin:0;border:0}
 .nav a>span{display:block;max-width:100%}
 .topbar{height:auto;min-height:66px;padding:12px 0}.breadcrumb{font-size:14px}
 .role-switcher>span{font-size:14px}.panel{padding:17px}
 .admin-switcher-head{align-items:stretch;flex-direction:column}.admin-switcher-head .secondary{justify-content:center;width:100%}
 .quick-links{grid-template-columns:1fr 1fr}
 .toast{bottom:20px;font-size:16px}.notice{font-size:15px}
 .footer{font-size:14px}.footer>span:last-child{text-align:left}
}
@media(max-width:360px){.device-grid{grid-template-columns:1fr}.metric-top{font-size:15px}}
