:root { --blue:#0b5ed7; --bg:#f3f6fb; --card:#fff; --text:#17212f; --muted:#5b6778; --ok:#1a7f4b; --bad:#b3261e; --line:#d8e0ec; }
* { box-sizing:border-box; }
body { margin:0; font-family:"Segoe UI",Arial,sans-serif; background:var(--bg); color:var(--text); font-size:16px; }
.hidden { display:none !important; }
main { max-width:980px; margin:0 auto; padding:12px; }
.bar { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; background:var(--blue); color:#fff; border-radius:14px; padding:10px 14px; margin-bottom:12px; }
.bar h1 { font-size:18px; margin:0; }
.bar .who { font-size:14px; opacity:.9; }
.tabs { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin-bottom:10px; }
.row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.grow { flex:1 1 220px; min-width:0; }
h2 { margin:0 0 8px; font-size:20px; }
h3 { margin:0; font-size:17px; }
.muted { color:var(--muted); font-size:14px; }
button { font:inherit; border:1px solid var(--blue); background:var(--blue); color:#fff; border-radius:10px; padding:8px 14px; cursor:pointer; }
button.alt { background:#fff; color:var(--blue); }
button.danger { background:#fff; color:var(--bad); border-color:var(--bad); }
button:disabled { opacity:.5; cursor:default; }
button.tab.active { background:#0a3d91; }
input, select, textarea { font:inherit; width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:#fff; }
label { display:block; font-size:14px; margin:8px 0 4px; color:var(--muted); }
progress { width:100%; height:12px; }
.status { padding:2px 10px; border-radius:99px; font-size:13px; background:#e8eef9; }
.status.signed { background:#d9f2e4; color:var(--ok); }
.status.no_gas { background:#eee; color:#555; }
.err { color:var(--bad); font-size:14px; min-height:1.2em; }
.apt-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.apt-actions button { padding:5px 10px; font-size:14px; }
.toast { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); background:#17212f; color:#fff; padding:10px 18px; border-radius:12px; max-width:90vw; z-index:50; }
.dialog-back { position:fixed; inset:0; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; padding:12px; z-index:40; }
.dialog { background:#fff; border-radius:16px; padding:16px; width:min(560px,100%); max-height:92vh; overflow:auto; }
.dialog .actions { display:flex; gap:8px; justify-content:flex-start; margin-top:12px; flex-wrap:wrap; }
video, .preview { width:100%; max-height:50vh; border-radius:12px; background:#000; }
.aptpick { display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:6px; margin-top:6px; max-height:28vh; overflow:auto; }
.aptpick label { display:flex; align-items:center; gap:4px; margin:0; padding:4px 6px; border:1px solid var(--line); border-radius:8px; color:var(--text); }
.aptpick input { width:auto; }
.msg { border-top:1px solid var(--line); padding:8px 0; }
.msg:first-child { border-top:0; }
