:root{font:14px/1.45 system-ui,sans-serif;color:#132434;background:#eef2f4;--ink:#132434;--muted:#4a5f71;--line:#dce5ea;--accent:#006a60;--dark:#122a38;--white:#fff}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
button,select,input,textarea{border:1px solid #b9cbd3;border-radius:6px;background:white;padding:.55rem .75rem}
button{cursor:pointer;font-weight:650}
button:hover{border-color:var(--accent)}
button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #c36c0f;outline-offset:2px}
button.primary{color:#fff;background:var(--accent);border-color:var(--accent)}
h1,h2,h3,p{margin:0}
h2{font-size:1.1rem}
.brand{display:grid;line-height:1.1;gap:3px}
.brand b{font-size:1.45rem;letter-spacing:-.035em}
.brand span{font-size:.62rem;letter-spacing:.17em;color:#a9e3db;font-weight:750}
.toolbar{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--dark);color:#fff;padding:.7rem 1rem}
.toolbar-actions{display:flex;align-items:center;gap:.7rem}
.toolbar select,.toolbar button{color:var(--ink)}
.presenter{background:white}
.dashboard{height:100vh;height:100dvh;display:grid;gap:1px;background:var(--line);grid-template:"head head" auto "map side" minmax(0,1fr)/minmax(0,1fr) minmax(245px,27vw)}
.route-panel{grid-area:map;min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) clamp(88px,23vh,160px);background:white}
.map{min-height:0;background:#e5ece5}
.profile{border-top:1px solid var(--line);min-height:0;display:grid;align-items:stretch;background:#fff}
.profile svg{width:100%;height:100%;min-height:0}
.profile text{font:12px system-ui;fill:var(--muted)}
.profile .empty{margin:auto;color:var(--muted)}
.sidebar{grid-area:side;overflow:auto;overscroll-behavior:contain;padding:.85rem 1rem;background:#f4f7f8}
.positions{display:grid;gap:.45rem;margin-bottom:.9rem}
.position,.passages{background:white;border:1px solid var(--line);border-radius:7px;padding:.5rem .65rem}
.position b,.position span{display:block}
.position small,.muted,small{color:var(--muted)}
.point-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;text-align:left;gap:.15rem .5rem;margin-top:.45rem}
.point-row small{font-weight:400}
.point-row .count{font-variant-numeric:tabular-nums}
.point-row[aria-expanded=true]{border-color:var(--accent);background:#e9f5f0}
.passages{margin-top:.3rem}
.passages ul{list-style:none;padding:0;margin:.3rem 0 0}
.passages li{display:flex;justify-content:space-between;gap:.7rem;border-bottom:1px solid #eef2f4;padding:.25rem 0}
.box-online{color:#006a46}
.box-offline{color:#a02e22}
.map-pin{display:grid;place-items:center;background:#005f5a;color:white;border:2px solid white;border-radius:50%;font-weight:780;box-shadow:0 1px 4px #0006}
.map-pin.selected{background:#984410}
.map-pin.offline{background:#934335}.map-pin.selected{background:#984410}
#status{position:fixed;bottom:.5rem;left:.5rem;z-index:1100;background:#fff8dc;border:1px solid #bea35e;border-radius:6px;padding:.5rem .75rem}
.admin-shell{max-width:1120px;margin:auto;padding:1rem}
.admin-shell .toolbar{border-radius:8px;margin-bottom:1rem}
.panel,fieldset{background:white;border:1px solid var(--line);border-radius:8px;padding:.9rem;margin:0 0 .75rem;min-width:0}
fieldset legend{font-weight:700;padding:0 .35rem}
.controls,.field-grid{display:flex;flex-wrap:wrap;gap:.55rem;align-items:end}
.controls{margin:.5rem 0}
.field-grid label{min-width:8rem;flex:1}
.admin-shell label{display:grid;gap:.23rem;color:var(--muted);font-size:.9rem}
.admin-shell input,.admin-shell textarea{width:100%;color:var(--ink)}
.admin-shell textarea{min-height:4rem}
.admin-shell .map{height:340px}
.admin-shell .profile{height:130px}
.admin-shell details{margin:.5rem 0}
.admin-shell summary{cursor:pointer;color:var(--accent);font-weight:700}
.admin-shell .remove{margin-left:auto}
.admin-shell .stage-title{display:flex;align-items:end;gap:.5rem;flex-wrap:wrap;margin-bottom:.6rem}
.admin-shell .stage-title input{max-width:15rem}
.admin-feedback{margin-bottom:.7rem;color:#743912;font-weight:600}
@media(max-width:610px){.dashboard{grid-template:"head" auto "map" minmax(190px,1fr) "side" minmax(100px,37vh)/1fr}.toolbar{gap:.25rem;padding:.5rem}.toolbar-actions{gap:.35rem}.toolbar-actions label{font-size:0}.toolbar select,.toolbar button{font-size:.8rem;padding:.35rem}.sidebar{padding:.5rem}.positions{grid-template-columns:1fr 1fr}}
.point-row .box-contact{grid-column:1/-1}
