/* SST Driver: dark Safe Sprint look (navy, ember orange, teal), from the mockup's Driver board. Phone first. */
:root{
  --bg:#0a1626; --bar:#0c1d33; --card:#0f2140; --line:#1d3757; --line2:#2c4a6b; --chip:#132c4a;
  --ink:#ffffff; --ink2:#c9d5e2; --muted:#a9b8c9; --dim:#7f93a8;
  --ember:#f26522; --teal:#4cc9d4; --teal2:#17a2a3; --teal3:#0b7476; --green:#15803d; --done:#7ee2a0; --dark:#14181d;
  --cond:"Barlow Condensed","Arial Narrow",Arial,sans-serif; --head:"Exo 2","Arial Black",Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:Barlow,Arial,system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--teal)}
.app{position:relative;display:flex;flex-direction:column;height:100dvh;max-width:560px;margin:0 auto;overflow:hidden;background:var(--bg)}
.top{display:flex;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 16px 10px;background:var(--bar)}
.mark{width:34px;height:34px;border-radius:7px;background:#fff;object-fit:contain}
.brand{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.h{font-family:var(--head);font-style:italic;font-weight:800}
.brand .h{font-weight:900;font-size:18px}
.ember{color:var(--ember)}
.who{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.net{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--dim);text-align:right}
.net .dot{width:8px;height:8px;border-radius:99px;background:currentColor;flex:none}
.net.on{color:var(--teal)} .net.off{color:var(--ember)}
.stripe{height:5px;background:linear-gradient(90deg,#0f2b4c 0 60%,var(--ember) 60% 90%,var(--teal2) 90% 100%);flex:none}
.main{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;outline:none}
.lbl{font-family:var(--cond);font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:13px;color:var(--muted)}
h1.h{margin:0;font-size:26px;line-height:1.05}
.sub{font-size:14px;color:var(--ink2)}
.small{font-size:13px;color:var(--muted)}
.card{padding:12px;border-radius:8px;background:var(--card);border:1px solid var(--line)}
.rowflex{display:flex;align-items:center;gap:10px}
.spread{display:flex;justify-content:space-between;align-items:center;gap:10px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.btn{appearance:none;border:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border-radius:6px;cursor:pointer;
  font-family:var(--cond);font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:16px;text-decoration:none;text-align:center}
.btn:focus-visible,.row:focus-visible,.tab:focus-visible,.shot:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.btn.big{min-height:56px;font-size:20px;width:100%}
.btn.go{background:var(--ember);color:var(--dark)}
.btn.teal{background:var(--teal);color:var(--bg)}
.btn.ghost{background:var(--chip);color:var(--ink);border:1px solid var(--line2)}
.btn.ghost.t{color:var(--teal)}
.btn.line{background:transparent;color:var(--ink2);border:1px solid var(--line2);font-size:14px}
.btn.off,.btn:disabled{background:var(--line2);color:var(--muted);cursor:not-allowed}
.row{appearance:none;display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 12px;border-radius:8px;background:var(--card);border:1px solid var(--line);
  color:var(--ink);text-align:left;cursor:pointer}
.row.now{border:2px solid var(--teal)}
.row.static{cursor:default}
.row .grow{display:flex;flex-direction:column;flex:1;min-width:0}
.row .t1{font-size:16px;font-weight:700}
.row .t2{font-size:13px;color:var(--muted)}
.box{width:24px;height:24px;flex:none;border-radius:6px;display:grid;place-items:center;border:2px solid #56708c;color:var(--bg);font-weight:900}
.box.on{background:var(--teal);border-color:var(--teal)}
.pill{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-family:var(--cond);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:13px;white-space:nowrap}
.inp{height:48px;padding:0 12px;border-radius:6px;border:1px solid var(--line2);background:var(--bar);color:#fff;font-size:17px;width:100%}
textarea.inp{height:auto;min-height:72px;padding:10px 12px}
label.fld{display:flex;flex-direction:column;gap:6px}
.shot{appearance:none;cursor:pointer;height:64px;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;
  background:var(--card);border:1px dashed var(--line2);color:var(--ink2);padding:0;overflow:hidden;position:relative}
.shot.ok{background:#0b3b3c;border:1px solid var(--teal2);color:var(--teal)}
.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.shot span{position:relative}
.warn{padding:8px 10px;border-radius:6px;background:#3a1d0c;border:1px solid var(--ember);font-size:13px}
.info{padding:10px 12px;border-radius:8px;background:#10243d;border:1px solid #1f6fc4;font-size:14px}
.steps{display:grid;gap:4px}
.steps div{display:flex;flex-direction:column;gap:4px}
.steps i{display:block;height:6px;border-radius:3px;transform:skewX(-18deg);background:var(--line)}
.steps i.on{background:var(--teal)}
.steps span{font-size:11px;color:var(--dim)} .steps span.on{color:#fff}
.foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--bar);border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.hint{font-size:13px;color:var(--ember);text-align:center}
.nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:4px 6px calc(8px + env(safe-area-inset-bottom));background:var(--bar);border-top:1px solid var(--line)}
.tab{appearance:none;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;font-size:12px;font-weight:600;color:var(--ink2)}
.tab i{width:22px;height:4px;border-radius:2px;transform:skewX(-18deg);background:transparent}
.tab[aria-current="page"]{color:var(--teal)} .tab[aria-current="page"] i{background:var(--teal)}
.tab b{font-size:10px;color:var(--ember);height:12px;font-weight:700}
.alert{flex:1;display:flex;flex-direction:column;justify-content:center;gap:16px;padding:24px 20px;background:var(--card);overflow-y:auto}
.alert h1{text-align:center;font-size:32px}
.kv{display:flex;justify-content:space-between;gap:10px;font-size:16px}
.bubble{max-width:82%;padding:10px 12px;border-radius:12px;font-size:15px;display:flex;flex-direction:column;gap:3px;word-break:break-word}
.bubble.me{align-self:flex-end;background:var(--teal);color:var(--bg)}
.bubble.them{align-self:flex-start;background:var(--chip);color:#fff}
.bubble.sys{align-self:center;background:transparent;border:1px dashed var(--line2);color:var(--ink2);font-size:13px;max-width:92%}
.bubble small{font-size:11px;opacity:.75}
.bubble img{max-width:100%;border-radius:8px;margin-top:4px}
.tag{font-family:var(--cond);font-weight:700;letter-spacing:.08em;font-size:12px;opacity:.85}
.sendbar{display:flex;gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--bar);border-top:1px solid var(--line)}
.big72{font-family:var(--head);font-style:italic;font-weight:900;font-size:72px;line-height:1}
.meter{position:relative;height:14px;border-radius:7px;background:var(--chip);overflow:hidden}
.meter .fill{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,var(--teal2),var(--teal))}
.meter .mk{position:absolute;top:0;bottom:0;width:2px;background:var(--ember)}
.bar{height:10px;border-radius:5px;background:var(--teal2)}
.sheetwrap{position:absolute;inset:0;background:rgba(5,12,22,.72);display:flex;flex-direction:column;justify-content:flex-end;z-index:20}
.sheet{background:var(--card);border-top:3px solid var(--ember);border-radius:14px 14px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;max-height:92%;overflow-y:auto}
.sheet h2{margin:0;font-size:24px}
.x{appearance:none;background:none;border:0;cursor:pointer;width:44px;height:44px;display:grid;place-items:center;font-size:26px;color:var(--ink2)}
.sigpad{width:100%;height:220px;border-radius:8px;background:#f6f8fa;border:2px dashed var(--ember);touch-action:none;display:block}
.toast{position:absolute;left:16px;right:16px;bottom:96px;z-index:30;padding:12px 14px;border-radius:8px;background:#26150b;border:1px solid var(--ember);font-size:15px;box-shadow:0 8px 30px rgba(0,0,0,.4)}
.toast.good{background:#0b2f30;border-color:var(--teal2)}
.empty{padding:22px 10px;text-align:center;color:var(--muted)}
.thumbs{display:flex;gap:6px;flex-wrap:wrap}
.thumbs img{width:56px;height:56px;object-fit:cover;border-radius:6px;border:1px solid var(--line2)}
@media (prefers-reduced-motion:no-preference){.pulse{animation:pulse 1s ease-in-out infinite alternate}@keyframes pulse{from{transform:scale(1)}to{transform:scale(1.03)}}}
