/* RoadRelay brand system: shared with the company website. */
:root{--ink:#14171c;--muted:#777d86;--blue:#234dff;--blue-light:#edf0ff;--border:#dfe1e5;--canvas:#f5f6f7;--radius:3px;font-family:"Helvetica Neue",Arial,sans-serif;background:var(--canvas)}
.topbar{background:#08090b;color:white;border-color:#ffffff24;height:83px;padding-inline:4%}.brand{color:white;font-family:"Arial Black","Avenir Next",Arial,sans-serif;font-size:23px;font-weight:900;letter-spacing:-1.2px}.brandmark{background:transparent;width:30px;height:30px;border-radius:0}.brandmark svg{width:30px;fill:white;stroke:none}.brand-divider{background:#ffffff32}.console-label{color:#9299a8;font-size:12px}.local-tag{color:#a6abb6;font-size:11px}.topbar .button{color:#fff;border:1px solid #ffffff35;border-radius:30px;padding:10px 19px;font-size:12px}.topbar .button:hover{background:#ffffff12}.avatar{border:1px solid #ffffff2b;background:transparent;color:#b1b6bf;font-size:10px}.local-tag span{background:#8aadd4}
main{max-width:1700px;padding:0 4%}.page-heading{position:relative;background:#08090b;color:white;padding:34px 0 40px;margin:0;isolation:isolate;align-items:flex-end}.page-heading:before{content:'';position:absolute;inset:0 -7vw;background:#08090b;z-index:-2}.page-heading:after{content:'';position:absolute;z-index:-1;right:5%;top:0;width:46%;height:100%;background-image:radial-gradient(#6b88df42 1px,transparent 1px);background-size:9px 9px;mask-image:linear-gradient(90deg,transparent,black,transparent);transform:skewX(-18deg)}body{overflow-x:clip}.breadcrumb{font-size:10px;color:#979eac;margin-bottom:25px}.breadcrumb a{color:#c4cad5;text-decoration:none}.breadcrumb span{color:#505766}.page-heading h1{font-family:"Arial Black","Avenir Next",Arial,sans-serif;font-size:clamp(40px,4.3vw,70px);font-weight:900;letter-spacing:-.055em;line-height:.98;margin-bottom:20px}.subheading{color:#a8afbd;font-size:13px}.mode-switch{background:#ffffff0c;border-color:#ffffff28;border-radius:30px;padding:5px;margin-bottom:3px}.mode-switch button{font-size:12px;border-radius:30px;color:#a9b0bc;padding:10px 17px}.mode-switch button.active{background:white;color:#151922;box-shadow:none}.source-notice{border:0;border-bottom:1px solid #dcdfe5;border-radius:0;margin-top:0;padding:16px 0;background:transparent;color:#7a7364;font-size:12px}.source-notice.live{background:transparent;color:#576ca2;border-color:#dcdfe5}.source-notice button{font-size:12px}.metrics{padding:30px 0}.metrics>div{padding-inline:30px}.metric-label{font-size:11px;color:#777e88}.metrics strong{font-size:40px;font-weight:600;letter-spacing:-2px}.metrics>div>div{gap:16px}.metrics>div>div>span{font-size:10px;color:#979ca4}.metrics strong small{font-size:20px}.panel{border:1px solid #dfe2e6;border-radius:3px;box-shadow:none}.workbench{grid-template-columns:minmax(0,1.75fr) minmax(325px,1fr);gap:20px}.panel-heading{padding:22px 24px}.panel-heading h2{font-size:17px;letter-spacing:-.55px;font-weight:550}.panel-heading p{font-size:12px;color:#858b95}.outline-badge{border-radius:0;font-size:10px;border-color:#d9dce2}.queue-filter button.active{color:var(--blue);background:#eef1ff;border-radius:2px}.queue-filter button{font-size:12px}.queue-filter>span{font-size:10px}.queue-item{padding:23px 24px;border-color:#eceef1}.queue-item.selected{background:#f3f5ff}.queue-item:hover{background:#f3f5fa}.queue-item.selected:before{background:var(--blue);border-radius:0;top:0;bottom:0}.queue-item h3{font-size:20px;letter-spacing:-.65px;font-weight:550;margin-top:12px}.queue-item .road{font-size:12px;color:#9298a1}.queue-meta{font-size:11px}.impact-tag,.queue-item-top time{font-size:10px}.status-chip{font-size:10px;border-radius:1px;padding:5px 7px}.count-badge{background:#eef0f3;font-size:11px;border-radius:0}.queue-footnote{font-size:11px}.map-container{background:#e9ecef}.map-label{fill:#8b929d}.place-label{fill:#929c9b}#route-path{stroke:#234dff}.map-tools{box-shadow:none;border-radius:2px}.map-bottom{border-radius:2px;font-size:10px;padding:9px 11px}.map-disclaimer{font-size:10px}.map-footer,.map-footer button{font-size:11px}.route-line{border-color:var(--blue)}.map-footer button{color:var(--blue)}.button{border-radius:3px;font-size:12px;padding:10px 15px}.button.primary{background:var(--blue);border-color:var(--blue);color:white}.button.danger{border-color:#dfbcb6;background:#fff6f2;color:#b2473d}.prototype-controls{margin:0 0 23px;padding:22px 24px;gap:20px;border-left:3px solid var(--blue);background:#fff}.prototype-controls h2{font-size:16px;font-weight:550;letter-spacing:-.4px}.prototype-controls p{font-size:12px;max-width:365px;color:#858c96}.prototype-controls label{font-size:11px}.prototype-controls input,.prototype-controls select{font-size:13px;border-radius:2px;min-height:42px}.prototype-controls .button{min-height:43px;min-width:155px}.device-connection{display:inline-block;font-size:11px;color:#959ca8;margin-top:10px}.device-connection:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#9da4ae;margin-right:7px}.device-connection.connected{color:#3d725e}.device-connection.connected:before{background:#3d725e}.prototype-controls.is-recording{border-left-color:#36775d}#pass-status{padding-top:12px;border-top:1px solid #e9ebef;font-size:11px;color:#848a95}.signal-panel{margin-top:23px}.signal-reading strong{font-size:60px;font-weight:550;letter-spacing:-3px}.signal-reading strong small{font-size:20px;letter-spacing:0}.signal-reading p{font-size:11px}.signal-footer{font-size:11px}.small-badge{border-radius:2px;font-size:10px}.chart-actions .button{font-size:12px}.empty-state{padding:48px 25px}.empty-state h3{font-size:19px;letter-spacing:-.5px;font-weight:550}.empty-state p{font-size:13px;line-height:1.7;max-width:305px;margin:12px auto 0}.empty-state svg{stroke:#b5becd}.detail-dialog{border-left:1px solid #dce0e6;box-shadow:-20px 0 80px #111d3820}.drawer-head{padding-top:28px}.detail-title{font-family:"Arial Black","Avenir Next",Arial,sans-serif;font-size:32px;letter-spacing:-1.3px}.detail-stats strong{font-size:31px;letter-spacing:-1px}.detail-section h3{font-size:15px}.detail-provenance,.detail-wave,.brief-text,.info-box{border-radius:2px}.detail-provenance{font-size:11px}.modal{border-radius:5px}.modal h2{font-size:25px;letter-spacing:-.8px}.modal p{font-size:13px}.detail-section input,.detail-section select,.detail-section textarea{border-radius:2px}.detail-section .button{font-size:12px}.app-footer{font-size:10px;color:#9198a3;padding-block:25px}.app-footer button{font-size:10px}.line-key{border-color:var(--blue)}.brand:hover{filter:none}dialog::backdrop{background:#04071089;backdrop-filter:blur(3px)}
.page-heading:before{inset:0 -4vw}.page-heading:after{transform:none;right:0}
@media(max-width:1100px){.page-heading:before{inset:0 -25px}}
@media(max-width:800px){.page-heading:before{inset:0 -17px}.page-heading:after{max-width:60%;right:0!important}}
@media(min-width:1800px){.page-heading:before{inset:0 calc((1700px - 100vw)/2 - 70px)}}
@media(max-width:1100px){main{padding-inline:25px}.topbar{padding-inline:25px}.workbench{grid-template-columns:minmax(0,1.3fr) minmax(305px,1fr)}.panel-heading{padding:18px}.queue-item{padding:20px 18px}.queue-item h3{font-size:18px}.metrics>div{padding-inline:18px}.metrics>div>div>span{font-size:10px}.prototype-controls>div:first-child{width:100%;margin-right:0}.prototype-controls{gap:15px}.prototype-controls p{max-width:none}.prototype-controls .button{margin-left:auto}.page-heading{gap:20px}.mode-switch button{padding:9px 13px;font-size:11px}}
@media(max-width:800px){.topbar{height:72px;padding-inline:18px}.brand{font-size:20px;gap:6px}.brandmark{width:24px}.brandmark svg{width:24px}.topbar .button{padding:9px 13px;font-size:11px}.page-heading{padding-top:27px;padding-bottom:30px;gap:25px;align-items:stretch}.page-heading h1{font-size:48px}.page-heading:after{width:65%;right:-10%}.breadcrumb{margin-bottom:22px}.subheading{font-size:12px}.mode-switch{margin:0;width:100%;padding:4px}.mode-switch button{font-size:12px;padding:9px 12px}.source-notice{font-size:11px;padding:14px 0}.source-notice button{font-size:10px}main{padding-inline:17px}.metrics{padding:25px 0;gap:23px}.metrics strong{font-size:35px}.metric-label{font-size:11px}.metrics>div>div{gap:8px}.metrics>div>div>span{font-size:10px}.workbench{grid-template-columns:1fr}.prototype-controls{padding:18px 15px;gap:15px;margin-bottom:20px}.prototype-controls>div:first-child{width:100%}.prototype-controls label{flex:1;min-width:100px}.prototype-controls select{width:100%}.prototype-controls #device-id{width:100%}.prototype-controls .button{width:100%;margin:0}.prototype-controls label:first-of-type{flex:2}.prototype-controls p{font-size:12px}.panel-heading h2{font-size:16px}.outline-badge{font-size:9px}.queue-item h3{font-size:20px}.queue-meta{font-size:11px}.signal-reading strong{font-size:34px;letter-spacing:-1.5px}.signal-reading strong small{font-size:16px}.signal-footer{font-size:10px}.chart-actions .button{font-size:11px}.map-footer,.map-footer button{font-size:10px}.detail-title{font-size:28px}.detail-stats strong{font-size:26px}.top-actions .avatar{display:none}}
/* Mobile dashboard: comfortable targets, no focus zoom, contained drawers. */
@media(max-width:800px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  button,.button,.icon-button,.mode-switch button,.source-notice button,.queue-filter button,.map-tools button,.map-footer button,.app-footer button{min-height:44px}
  .icon-button,.map-tools button{min-width:44px}
  .mode-switch button{padding:11px 8px}
  .button,.topbar .button,.chart-actions .button,.source-notice button{font-size:13px}
  .topbar{height:auto;min-height:72px;gap:12px;padding-block:12px}
  .page-heading h1{font-size:clamp(32px,11.4vw,48px)}
  .top-actions .button{max-width:150px;white-space:normal}
  .source-notice{flex-wrap:wrap;font-size:13px;gap:8px}
  #source-text{flex:1;min-width:180px}
  .source-notice button{margin-left:auto}
  .queue-filter{flex-wrap:wrap;gap:8px}
  .queue-filter>span{margin-left:auto;font-size:11px}
  .queue-item .road,.queue-meta,.panel-heading p{font-size:13px}
  .map-footer{flex-wrap:wrap;gap:8px}.map-footer button{margin-left:auto}
  .signal-panel .panel-heading{flex-wrap:wrap;gap:16px}
  .chart-actions{flex-direction:row;flex-wrap:wrap;width:100%;gap:10px}
  .chart-actions .button{padding:10px 14px}
  .detail-dialog,.modal{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .drawer-head{position:sticky;top:0;z-index:2;background:#fff;padding:16px 20px 10px}
  #detail-content{padding:5px 20px calc(24px + env(safe-area-inset-bottom))}
  .detail-section input,.detail-section select,.detail-section textarea,.prototype-controls input,.prototype-controls select{font-size:16px;min-height:48px}
  .detail-section p,.modal p{font-size:14px}
  .detail-provenance{font-size:12px}
  .brief-buttons{display:grid;grid-template-columns:1fr}
  .detail-section .button{font-size:14px}
  .fine-print{font-size:12px!important}
  .modal{max-height:calc(100dvh - 24px);padding:20px}
  #fleet-list{overflow-x:auto}
  .app-footer{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  #toast{bottom:calc(16px + env(safe-area-inset-bottom))}
}
