:root { color-scheme: dark; --bg:#0e1116; --card:#181d25; --line:#2a3240; --text:#e9edf2; --muted:#93a0b2; --acc:#3aa0ff; --ok:#38d27a; --bad:#ff5a5f; --warn:#ffb13b; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin:0; background:var(--bg); color:var(--text); font:17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.screen { max-width: 560px; margin: 0 auto; padding: 14px 14px calc(40px + env(safe-area-inset-bottom)); }
h1 { font-size: 1.4rem; margin: .3em 0; } h2 { font-size: 1.05rem; margin: 0 0 .5em; }
.bar { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align:center; } .mono { font-family: ui-monospace, Menlo, monospace; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin:14px 0; }
.field { display:block; margin:10px 0; color:var(--muted); font-size:.85rem; }
.field input { display:block; width:100%; margin-top:4px; min-height:48px; padding:10px 12px; font-size:1.05rem; color:var(--text); background:#0b0e13; border:1px solid var(--line); border-radius:10px; }
.field input:focus { outline: 2px solid var(--acc); }
.btn { min-height:48px; padding:10px 18px; margin:6px 6px 0 0; font-size:1rem; color:var(--text); background:#242c38; border:1px solid var(--line); border-radius:10px; touch-action:manipulation; }
.btn.primary { background:var(--acc); border-color:var(--acc); color:#04121f; font-weight:600; }
.btn.danger { background:#3a1b1e; border-color:#6a2b30; color:#ffb3b6; }
.btn.small { min-height:40px; padding:6px 14px; margin:0; }
.btn:active { filter: brightness(1.2); }
.pill { font-size:.75rem; padding:3px 10px; border-radius:99px; background:#2a3240; color:var(--muted); }
.pill.on { background:#16341f; color:var(--ok); }
.list { list-style:none; margin:0; padding:0; }
.list li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-top:1px solid var(--line); min-height:56px; }
.list li:first-child { border-top:0; }
.list .grow { flex:1; min-width:0; } .list .name { font-weight:600; overflow-wrap:anywhere; } .list .sub { color:var(--muted); font-size:.85rem; overflow-wrap:anywhere; }
.list li.stale { opacity:.55; }
.list li.talking .name::before { content:"\25CF "; color:var(--ok); }
.tag { font-size:.7rem; padding:2px 7px; border-radius:6px; background:#2a3240; color:var(--muted); margin-left:4px; vertical-align:middle; }
.tag.warn { background:#3a2c10; color:var(--warn); }
.switch { display:flex; align-items:center; gap:12px; margin:12px 0; min-height:48px; }
.switch input { position:absolute; opacity:0; width:0; height:0; }
.slider { flex:none; width:56px; height:32px; background:#2a3240; border-radius:99px; position:relative; transition:background .15s; }
.slider::after { content:""; position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:#fff; transition:transform .15s; }
.switch input:checked + .slider { background:var(--ok); } .switch input:checked + .slider::after { transform:translateX(24px); }
.switch input:focus-visible + .slider { outline:2px solid var(--acc); }
.talker { text-align:center; padding:12px; margin:10px 0; border-radius:12px; background:var(--card); border:1px solid var(--line); min-height:52px; }
.talker.live { background:#12301d; border-color:var(--ok); color:var(--ok); font-weight:600; }
.talker.me { background:#10283f; border-color:var(--acc); color:var(--acc); }
.ptt { display:block; width:min(66vw, 260px); height:min(66vw, 260px); margin:14px auto 6px; border-radius:50%; border:6px solid #2f6fb3; background:#1a4f86; color:#fff; font-size:1.3rem; font-weight:700; letter-spacing:.04em; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.ptt small { display:block; font-weight:400; font-size:.75rem; opacity:.7; letter-spacing:0; margin-top:4px; }
.ptt.req { background:#6b5a12; border-color:var(--warn); }
.ptt.live { background:#177a43; border-color:var(--ok); box-shadow:0 0 0 8px rgba(56,210,122,.2); }
.ptt.busy, .ptt.muted { background:#4a2124; border-color:var(--bad); }
.banner { position:sticky; top:0; z-index:20; padding:10px 14px; background:#3a2c10; color:var(--warn); border-bottom:1px solid #6a5420; font-size:.9rem; }
.toast { position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:30; max-width:92vw; background:#2b3340; border:1px solid var(--line); padding:12px 18px; border-radius:12px; }
.toast.err { border-color:var(--bad); color:#ffd0d2; }
#map { height:320px; border-radius:10px; margin-top:10px; background:#0b0e13; }
summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:600; }
.mrow { display:flex; gap:6px; flex:none; }
