:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #f4f7fb;
  background: #080a0d;
  font-synthesis: none;
  --bg: #080a0d;
  --panel: #11151b;
  --panel2: #171c24;
  --line: #2a303a;
  --muted: #9ca7b6;
  --red: #ef2b2d;
  --red2: #b7181b;
  --green: #45d483;
  --amber: #f0b34a;
  --white: #f4f7fb;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; min-height: 100%; background: var(--bg); }
body { min-height: 100dvh; overscroll-behavior-y: none; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.app { min-height: 100dvh; padding: env(safe-area-inset-top) 0 calc(84px + env(safe-area-inset-bottom)); background:
  radial-gradient(circle at 15% 0%, rgba(239,43,45,.13), transparent 28%),
  linear-gradient(155deg, #080a0d 0%, #0a0d11 50%, #0d0f12 100%); }
.topbar { position: sticky; top: 0; z-index: 20; padding: 14px 16px 12px; backdrop-filter: blur(18px); background: rgba(8,10,13,.88); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand { display:flex; align-items:center; gap:10px; }
.logo { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; font-weight:900; letter-spacing:-1px; background:linear-gradient(145deg,#222834,#0d1015); border:1px solid #343b47; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.logo span { color:var(--red); }
.title { font-size:17px; line-height:1.05; font-weight:850; }
.subtitle { margin-top:3px; font-size:11px; color:var(--muted); }
.status-pill { display:flex; align-items:center; gap:6px; padding:7px 9px; border-radius:999px; border:1px solid var(--line); background:#10141a; font-size:11px; color:#d5dbe4; }
.dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 10px rgba(69,212,131,.7); }
.dot.off { background:var(--amber); box-shadow:none; }
.content { padding: 15px 14px 20px; max-width:760px; margin:0 auto; }
.hero { padding:18px; border-radius:22px; border:1px solid #303743; background:linear-gradient(145deg, rgba(31,36,45,.95), rgba(15,18,23,.97)); box-shadow:0 18px 45px rgba(0,0,0,.25); }
.eyebrow { color:#ff6768; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
h1 { font-size:25px; margin:7px 0 6px; letter-spacing:-.04em; }
.hero p { margin:0; color:#b6bfcb; font-size:14px; line-height:1.45; }
.progress-wrap { margin-top:16px; }
.progress-row { display:flex; justify-content:space-between; font-size:12px; color:#cbd2dc; margin-bottom:7px; }
.progress { height:9px; background:#080a0d; border-radius:999px; overflow:hidden; border:1px solid #272d35; }
.progress > div { height:100%; background:linear-gradient(90deg,var(--red2),var(--red)); border-radius:inherit; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }
.card-btn { min-height:112px; text-align:left; padding:14px; border-radius:18px; color:var(--white); background:linear-gradient(150deg,#151a21,#0e1116); border:1px solid #29313a; box-shadow:0 8px 24px rgba(0,0,0,.18); }
.card-btn:active { transform:scale(.985); }
.card-btn .icon { font-size:25px; display:block; margin-bottom:9px; }
.card-btn strong { display:block; font-size:14px; }
.card-btn small { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.3; }
.section { margin-top:18px; }
.section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:9px; }
.section-title { font-size:14px; font-weight:800; }
.link-btn { border:0; background:none; color:#ff6768; font-size:12px; padding:4px; }
.panel { border:1px solid var(--line); background:rgba(16,20,26,.96); border-radius:18px; overflow:hidden; }
.list-row { display:flex; gap:11px; align-items:flex-start; padding:13px 14px; border-bottom:1px solid #242a32; }
.list-row:last-child { border-bottom:0; }
.check { appearance:none; width:23px; height:23px; flex:0 0 23px; border:1.5px solid #46505e; background:#0b0e12; border-radius:8px; margin:1px 0 0; }
.check:checked { background:var(--red); border-color:var(--red); position:relative; }
.check:checked::after { content:'✓'; color:#fff; font-weight:900; font-size:14px; display:grid; place-items:center; height:100%; }
.row-main { flex:1; min-width:0; }
.row-title { font-size:13px; font-weight:750; }
.row-sub { margin-top:3px; font-size:11px; color:var(--muted); line-height:1.35; }
.chip { display:inline-flex; padding:3px 7px; border-radius:999px; border:1px solid #37404d; color:#b8c2cf; font-size:10px; margin-top:6px; }
.bottom-nav { position:fixed; z-index:30; bottom:0; left:0; right:0; padding:7px 10px calc(7px + env(safe-area-inset-bottom)); background:rgba(8,10,13,.92); backdrop-filter:blur(18px); border-top:1px solid rgba(255,255,255,.07); }
.nav-inner { max-width:760px; margin:0 auto; display:grid; grid-template-columns:repeat(5,1fr); gap:4px; }
.nav-btn { border:0; background:none; color:#8d97a5; padding:5px 2px; border-radius:10px; font-size:10px; }
.nav-btn span { display:block; font-size:20px; margin-bottom:2px; }
.nav-btn.active { color:#fff; background:#171b22; }
.view { display:none; }
.view.active { display:block; }
.back-row { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.back { border:1px solid var(--line); background:#11151b; color:white; border-radius:12px; padding:9px 12px; }
.page-title { font-size:22px; font-weight:850; letter-spacing:-.03em; }
.input, textarea { width:100%; color:#f5f7fa; background:#0b0e12; border:1px solid #313944; border-radius:14px; padding:12px 13px; outline:none; }
textarea { min-height:105px; resize:vertical; }
.input:focus, textarea:focus { border-color:#6f7680; }
.primary { border:0; width:100%; border-radius:14px; background:linear-gradient(145deg,#f13a3d,#b8171a); color:white; font-weight:850; padding:13px 15px; }
.secondary { border:1px solid #36404b; width:100%; border-radius:14px; background:#141920; color:#f5f7fa; font-weight:750; padding:12px 15px; }
.stack { display:grid; gap:9px; }
.answer { margin-top:12px; padding:14px; border-radius:16px; background:#11161c; border:1px solid #303844; color:#e8edf4; line-height:1.5; font-size:13px; white-space:pre-wrap; }
.answer .source { display:block; margin-top:8px; color:#9faaba; font-size:11px; }
.alert { border:1px solid #604128; background:#251a10; color:#ffdca9; border-radius:14px; padding:11px 12px; font-size:12px; line-height:1.4; }
.good { border-color:#26553a; background:#0f2118; color:#b9f1ce; }
.photo-preview { width:100%; max-height:360px; object-fit:contain; background:#050607; border-radius:16px; border:1px solid #2b333e; }
.photo-stage { position:relative; margin-top:10px; }
.marker { position:absolute; transform:translate(-50%,-50%); width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--red); color:#fff; font-size:12px; font-weight:900; border:2px solid white; box-shadow:0 3px 13px rgba(0,0,0,.55); }
.tabs { display:flex; gap:7px; overflow:auto; padding-bottom:6px; }
.tab { flex:0 0 auto; border:1px solid #313944; background:#11151b; color:#aeb7c4; padding:8px 10px; border-radius:999px; font-size:11px; }
.tab.active { color:white; border-color:#8e2527; background:#2b1113; }
.status-grid { display:grid; grid-template-columns:1fr; gap:8px; }
.status-item { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 13px; border:1px solid #2a323d; border-radius:14px; background:#10141a; font-size:12px; }
.status-item b { font-size:12px; }
.status-ok { color:var(--green); }
.status-warn { color:var(--amber); }
.hidden { display:none !important; }
.file-label { display:block; border:1px dashed #4a5563; border-radius:14px; padding:16px; text-align:center; color:#c6ced8; font-size:12px; background:#0d1116; }
.file-label input { display:none; }
.manual-item { padding:12px 13px; border-bottom:1px solid #242b34; }
.manual-item:last-child { border-bottom:0; }
.manual-title { font-size:13px; font-weight:750; }
.manual-meta { font-size:10px; color:var(--muted); margin-top:3px; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:10px; color:#bbc4cf; background:#080a0d; border:1px solid #2a3038; border-radius:6px; padding:2px 5px; }
@media (min-width:700px) { .grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .status-grid {grid-template-columns:1fr 1fr;} }
