/* Values ported from the shipped CommsTheme, CommsControlSurface and CommsTabBar. */
@font-face{font-family:Bangers;src:url('/assets/Bangers-Regular.ttf') format('truetype');font-display:swap}
:root{color-scheme:dark;--bg:#0a152a;--card:#13213d;--off:#354052;--blue:#245fe0;--red:#d52d37;--muted:#abb9d1;--green:#65d8ae;--nav-blue:#689aff;--cream:#fff3da;--orange:#ff9524;--ink:#fff;--line:rgba(255,255,255,.18)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}
main{max-width:540px;margin:0 auto;padding:0 18px calc(104px + env(safe-area-inset-bottom))}.preview-label{text-align:center;font-size:11px;color:var(--muted);padding:8px 12px 2px;letter-spacing:.1px}header{position:relative;min-height:60px;display:flex;align-items:center;justify-content:center}header:empty{display:none}h1{font-size:24px;font-weight:700;margin:14px 45px;text-align:center}h2{font-size:20px;margin:0 0 12px}h3{font-size:17px;margin:0;font-weight:600}p{margin:8px 0}.card{background:var(--card);border-radius:20px;padding:14px;margin:0 0 12px}.card p,.card li{font-size:14px;color:var(--muted)}small,.muted{color:var(--muted);font-size:13px}small{display:block;margin-top:3px}.online{color:var(--green)}.section-title{margin:8px 0 16px;font-weight:600}.section-label{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin-bottom:8px}.brand-label,.brand-person{font-family:Bangers,sans-serif;color:var(--cream);font-weight:400}.brand-label{font-size:18px}.brand-person{font-size:21px;line-height:1.1;max-width:40%;overflow-wrap:anywhere}.comms-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:20px 0 18px}.comms-header>small{font-size:11px;text-align:center}.route-summary{display:flex;align-items:center;gap:6px;text-align:right;color:var(--muted);font-size:11px}.route-summary .icon{width:15px;height:15px;opacity:.7}
button,.button,.mic-state{color:#fff;border:.6px solid rgba(255,255,255,.22);border-radius:16px;background:linear-gradient(150deg,#3c4758,var(--off));box-shadow:0 3px 6px rgba(0,0,0,.35);min-width:44px;min-height:44px;padding:10px 12px;text-align:center;cursor:pointer;text-decoration:none;line-height:1.3}button:active:not(:disabled),button.selected,button.holding{box-shadow:inset 0 4px 5px rgba(0,0,0,.65),inset 0 -1px 1px rgba(255,255,255,.10);border-color:rgba(255,255,255,.08)}button:active:not(:disabled){transform:scale(.98)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--blue)}button.on,button.holding{background:var(--red)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--nav-blue);outline-offset:3px}.compact{font-size:14px;padding:8px 12px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.talk{text-align:left;min-height:66px;padding:12px}.talk strong{font-size:16px;font-weight:600;display:block}.talk small{font-size:12px;margin-top:4px}.talk.on small{color:rgba(255,255,255,.8)}.mic-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:13px;min-height:50px;padding:8px}.icon{width:22px;height:22px;object-fit:contain;filter:brightness(0) invert(1);flex-shrink:0}.wide{width:100%;margin-top:10px}.hold{touch-action:none;user-select:none;-webkit-user-select:none;font-size:14px}.equal>*{flex:1}.row.equal{margin-top:12px}.team-summary .brand-label{margin:0}.bad-row{margin-top:10px}.person-title{flex:1;min-width:0}.person-title strong{display:block;font-weight:600;font-size:17px;overflow-wrap:anywhere}.person-title small{margin-top:2px}.avatar{width:40px;height:40px;background:var(--off);border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:20px}.avatar .icon{width:23px;height:23px}.member-card{padding:14px}.member-card>.row{flex-wrap:nowrap}.member-mic{flex-shrink:0}.member-mic button,.mic-state{min-width:80px;font-size:14px;display:inline-flex;align-items:center;justify-content:center}.mic-state{cursor:default}.private{outline:2px solid var(--red);background:linear-gradient(rgba(213,45,55,.08),rgba(213,45,55,.08)),var(--card)}.member-actions:empty{display:none}.member-actions p{font-size:13px;margin-top:10px}.profile-avatar{width:90px;height:90px;font-size:38px;margin:8px auto 20px}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:32px}.toggle-row>div{flex:1;min-width:0}.toggle-row strong{font-size:16px;font-weight:600}.toggle-row small{font-size:12px;margin-top:3px}.member-actions .toggle-row{margin-top:12px}.switch{width:58px;min-width:58px;height:28px;min-height:28px;border:0;border-radius:100px;padding:3px;background:#565e70;box-shadow:none;position:relative;flex:none}.switch:after{content:'';display:block;background:#fff;width:22px;height:22px;border-radius:50%;box-shadow:0 1px 2px #0004;transition:transform .12s ease-out}.switch[aria-checked=true]{background:var(--orange)}.switch[aria-checked=true]:after{transform:translateX(30px)}.switch:active:not(:disabled){transform:none;box-shadow:none}.settings-row{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;background:linear-gradient(160deg,#172641,var(--card));border-radius:20px;padding:14px;min-height:70px;margin:0 0 14px;gap:12px}.settings-row strong{font-size:16px;display:block;font-weight:600}.settings-row small{font-size:13px;margin-top:4px}.chevron{font-size:28px;color:var(--muted);font-weight:300;line-height:1}.back{position:absolute;left:0;width:44px;height:44px;border-radius:50%;font-size:34px;line-height:1;padding:0;background:linear-gradient(#354052,#17243d)}.back span{display:block;transform:translateY(-2px)}
#tabs{position:fixed;z-index:10;bottom:calc(8px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:300px;max-width:calc(100% - 40px);display:flex;gap:2px;padding:4px;border-radius:100px;background:linear-gradient(var(--off),var(--card));border:.6px solid rgba(255,255,255,.18);box-shadow:0 3px 9px #0003}#tabs .tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px;border:0;border-radius:100px;box-shadow:none;background:transparent;min-width:0;min-height:56px;font-size:12px;font-weight:600}#tabs .tab .icon{width:20px;height:20px;margin:3px}#tabs .tab.selected{color:var(--nav-blue);background:var(--bg);box-shadow:inset 0 2px 3px rgba(0,0,0,.35)}#tabs .tab.selected .icon{filter:brightness(0) saturate(100%) invert(64%) sepia(80%) saturate(1720%) hue-rotate(192deg) brightness(100%) contrast(102%)}
label{display:block;color:var(--muted);font-size:13px;margin:10px 0 5px}input,select,textarea,.field-value{display:block;width:100%;min-width:0;max-width:100%;padding:12px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:var(--bg);color:#fff;min-height:44px;font-size:15px}.field-value{margin:0}input[type=checkbox]{appearance:none;width:24px;min-width:24px;height:24px;min-height:24px;padding:0;border-radius:6px;border:1px solid var(--muted);position:relative;margin:0;cursor:pointer}input[type=checkbox]:checked{background:var(--blue);border-color:var(--blue)}input[type=checkbox]:checked:after{content:'✓';position:absolute;inset:0;text-align:center;font-size:19px;color:#fff}input[type=range]{appearance:none;min-height:24px;padding:0;border:0;background:transparent;accent-color:var(--blue)}input[type=range]::-webkit-slider-runnable-track{height:5px;background:var(--off);border-radius:10px}input[type=range]::-webkit-slider-thumb{appearance:none;background:white;border-radius:50%;width:20px;height:20px;margin-top:-7.5px}.inline{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;margin:4px 0}.person{padding:12px 0;border-bottom:1px solid var(--line)}.person:last-child{border:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid .card{margin:10px 0 0;background:var(--bg)}.grid input{background:var(--card)}.copyright{text-align:center;color:var(--muted);font-size:12px;margin:24px 0}.wordmark{position:relative;width:150px;margin:12px auto 18px}.wordmark img{width:100%;display:block}.wordmark span{position:absolute;left:78%;top:19%;transform:translate(-50%,-50%);color:var(--cream);font-size:9px;font-weight:bold}.cue{border:2px solid var(--red)}.cue.acked{border-color:var(--green)}.cue strong{font-family:Bangers,sans-serif;color:var(--cream);font-size:20px}.cue p{color:white}.cue button{width:100%;margin-top:8px}.cue.acked .online{font-size:13px}.meter{height:22px;background:var(--bg);margin:8px 0;overflow:hidden;mask:repeating-linear-gradient(to right,#000 0,#000 calc(100% / 30 - 2px),transparent calc(100% / 30 - 2px),transparent calc(100% / 30))}.meter span{display:block;background:var(--green);height:100%;width:0}.stats{display:flex;flex-wrap:wrap;gap:14px}.stats strong{font-size:24px}.stats small{font-size:11px}.stats div{flex:1}.small{font-size:13px}.danger,#status.error{color:#ffc3c7}#status:not(.error){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#status.error{font-size:14px;background:var(--card);border:1px solid var(--red);border-radius:16px;padding:12px;margin:12px 0}a{color:var(--nav-blue);overflow-wrap:anywhere}pre,code{font:12px/1.45 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}pre:empty{display:none}.hidden{display:none!important}ol{padding-left:22px}li{margin:8px 0}details{margin:12px 0}summary{cursor:pointer;color:var(--muted);font-size:13px;min-height:44px;display:flex;align-items:center}#invite-result{padding-top:8px}.audio .row>button{flex:1;font-size:14px}.audio .card+.card h3{margin-bottom:6px}
@media(max-width:380px){main{padding-left:14px;padding-right:14px}.route-summary{font-size:10px}.brand-person{font-size:19px}.member-mic button,.mic-state{min-width:66px}.talk{padding:10px}.talk strong{font-size:15px}.talk small{font-size:11px}.grid{grid-template-columns:1fr}}
@media(min-width:900px){#tabs.expanded{width:580px}#tabs.expanded .tab{min-width:64px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}button:active:not(:disabled){transform:none}}
[hidden]{display:none!important}#map-panel{margin:16px 18px 112px;min-width:0}#satellite-map{height:440px;border-radius:16px;overflow:hidden;background:var(--bg)}.map-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.map-heading h2{margin:0}.map-live,.map-note,.map-footnote{color:var(--muted);font-size:12px}.map-note{min-height:32px}.map-actions{margin:12px 0}.map-actions button{font-size:13px;flex:1}.map-person{display:flex;align-items:center;text-align:left;gap:12px;width:100%;margin-top:8px;font-size:14px;background:var(--bg);box-shadow:none}.map-person small{font-size:11px}.location-dot,.map-pin i{display:block;flex:none;width:12px;height:12px;border:2px solid white;border-radius:50%;background:var(--dot);box-shadow:0 0 0 5px color-mix(in srgb,var(--dot) 20%,transparent);animation:location-pulse 2s infinite}.location-dot.stale,.map-pin.stale i{animation:none}.map-pin{display:flex;align-items:center;gap:10px;white-space:nowrap;transform:translate(-6px,-6px)}.map-pin span{color:#fff;background:#0a152aeb;padding:5px 8px;border-radius:8px;font-size:12px;border:1px solid var(--dot);box-shadow:0 2px 5px #0007}.map-pin.stale span{color:var(--muted)}#location-sharing-banner{width:100%;margin-top:10px;font-size:12px;border:1px solid var(--green);background:var(--card)}.map-footnote{margin-top:14px!important}.map-person:active{transform:none!important}@keyframes location-pulse{50%{box-shadow:0 0 0 8px color-mix(in srgb,var(--dot) 10%,transparent)}}@media(min-width:1000px){.with-map #hub-layout{display:grid;grid-template-columns:minmax(360px,520px) minmax(400px,1fr);gap:22px;max-width:1320px;margin:auto;padding:0 22px}.with-map main{width:100%;max-width:none;padding-left:0;padding-right:0}.with-map #map-panel{position:sticky;top:20px;align-self:start;margin:20px 0 110px}#satellite-map{height:calc(100vh - 340px);min-height:360px;max-height:650px}}@media(max-width:999px){#map-panel{max-width:504px;margin:0 auto 110px}#map-panel #satellite-map{height:340px}}@media(prefers-reduced-motion:reduce){.location-dot,.map-pin i{animation:none}}
.access-row{display:flex;align-items:end;gap:12px;margin-top:12px}.access-row label{flex:1}.access-row select{margin-bottom:0}.access-row button{font-size:12px}#map-collapse{font-size:12px;min-height:36px;padding:6px 10px}@media(min-width:1000px){#map-collapse{display:none}}@media(max-width:999px){#map-panel{margin-left:18px;margin-right:18px}}
@media(min-width:1000px){.with-map #map-panel{max-height:calc(100vh - 130px);overflow:auto}#satellite-map{height:calc(100vh - 480px);min-height:280px;max-height:530px}}
/* Equal work areas. Layout switches never disconnect audio or change map permission. */
#view-controls{display:flex;align-items:center;justify-content:center;gap:12px;max-width:1440px;margin:10px auto 12px;padding:0 22px}.view-modes{display:flex;gap:3px;border-radius:100px;background:linear-gradient(var(--off),var(--card));padding:4px;border:.6px solid var(--line)}.view-modes button{min-width:112px;border:0;box-shadow:none;background:transparent;border-radius:100px;padding:8px 16px;font-size:13px}.view-modes button.selected{background:var(--bg);color:var(--nav-blue);box-shadow:inset 0 2px 4px #0008}#window-fullscreen{font-size:13px;min-height:44px}
@media(min-width:1000px){
 body.with-map{--pane-height:calc(100dvh - 174px);overflow:hidden}
 .with-map #hub-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;max-width:1440px;padding:0 22px;margin:0 auto;align-items:stretch}
 .with-map #control-panel,.with-map #map-panel{height:var(--pane-height);min-height:0;max-height:none;min-width:0;width:100%;margin:0;padding:14px;border-radius:20px;border:.6px solid var(--line);background:var(--bg);overflow:auto;position:relative;top:auto;scrollbar-gutter:stable}
 .with-map #map-panel{display:flex;flex-direction:column;overflow:hidden;scrollbar-gutter:auto}
 .with-map #control-panel .comms-header{padding-top:4px}
 .with-map #map-content{display:flex;flex-direction:column;min-height:0;flex:1}
 .with-map #satellite-map{height:auto;min-height:120px;max-height:none;flex:1}
 .with-map #map-note{min-height:0;flex:none}
 .with-map #map-members{max-height:136px;overflow:auto;flex:none}
 .with-map .map-actions,.with-map .map-footnote{flex:none}
 body[data-hub-view=panel] #hub-layout,body[data-hub-view=map] #hub-layout{grid-template-columns:minmax(0,1fr)}
 body[data-hub-view=panel] #map-panel,body[data-hub-view=map] #control-panel{display:none!important}
 body[data-hub-view=map] #map-panel{grid-column:1}
 body[data-hub-view=panel] #content{max-width:1100px;margin:0 auto}
 body[data-hub-view=panel] .comms-header{max-width:1100px;margin:auto}
}
