:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --ink: #18181b;
  --ink-2: #5e5e66;
  --line: #e4e4e0;
  --brand: #18181b;
  --brand-ink: #ffffff;
  --brand-soft: #fdf0d9;
  --brand-text: #b45309;
  --accent: #e8a33d;
  --accent-ink: #18181b;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --good: #15803d;
  --good-soft: #dcfce7;
  --info: #2563eb;
  --info-soft: #dbeafe;
  --chart-1: #e8a33d;
  --chart-2: #18181b;
  --chart-3: #a1a1aa;
  --shadow: 0 1px 2px rgba(16,16,20,.04), 0 4px 16px rgba(16,16,20,.05);
  --radius: 16px; --tabs-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --surface: #161618;
    --surface-2: #1e1e21;
    --ink: #f4f4f5;
    --ink-2: #a1a1aa;
    --line: #2a2a2e;
    --brand: #f0ae4b;
    --brand-ink: #18181b;
    --brand-soft: #3a2a10;
    --brand-text: #f5b95a;
    --accent: #f0ae4b;
    --accent-ink: #18181b;
    --warn: #fbbf24;
    --warn-soft: #3a2c0b;
    --bad: #f87171;
    --bad-soft: #3b1414;
    --good: #4ade80;
    --good-soft: #10301b;
    --info: #60a5fa;
    --info-soft: #132544;
    --chart-1: #f0ae4b;
    --chart-2: #e4e4e7;
    --chart-3: #52525b;
    --shadow: none;
    color-scheme: dark;
  }
}
/* Needa Smoke driver app v0.22.0: big buttons, readable outside, one thing at a time */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.01em; margin: 0 0 8px; }
h2 { font-size: 22px; } h3 { font-size: 17px; }
a { color: var(--brand-text); }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.wordmark { font: 700 18px "Space Grotesk", sans-serif; } .wordmark b { color: var(--brand-text); }
.view { max-width: 640px; margin: 0 auto; padding: 16px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 9px; text-decoration: none; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.tabs a.on { color: var(--brand-text); } .ic { width: 24px; height: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.muted { color: var(--ink-2); } .small { font-size: 13px; } .error { color: var(--bad); font-size: 14px; min-height: 1em; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 11px 16px; font: 600 15px "Inter", sans-serif; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.good { background: var(--good); color: #fff; border-color: var(--good); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.big { width: 100%; padding: 16px; font-size: 17px; border-radius: 14px; }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-text); text-decoration: underline; cursor: pointer; }
.field { display: grid; gap: 5px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.field input, .field select, .field textarea { font: 16px "Inter", sans-serif; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 10px 0; } .check input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; z-index: 60; max-width: 92vw; }
.toast.show { opacity: 1; transform: translateX(-50%); } .toast.bad { background: var(--bad); color: #fff; }
.online-btn { width: 100%; border: 0; border-radius: 20px; padding: 22px; font: 700 21px "Space Grotesk", sans-serif; cursor: pointer; background: var(--good); color: #fff; }
.online-btn.off { background: var(--surface-2); color: var(--ink); border: 2px dashed var(--line); }
.pill-on, .pill-off { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-on { background: var(--good-soft); color: var(--good); } .pill-off { background: var(--surface-2); color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; } .stat b { display: block; font: 700 22px "Space Grotesk", sans-serif; } .stat span { font-size: 12px; color: var(--ink-2); }
.job { border-left: 5px solid var(--accent); } .job.mine { border-left-color: var(--good); }
.job .pay { font: 700 24px "Space Grotesk", sans-serif; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0; font-size: 15px; } .kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 600; }
.steps { display: flex; gap: 6px; margin: 4px 0 14px; } .steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .steps i.done { background: var(--good); } .steps i.now { background: var(--accent); }
.bigaddr { font: 700 20px/1.3 "Space Grotesk", sans-serif; margin: 4px 0 8px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.idresult { border-radius: 14px; padding: 14px; margin: 10px 0; } .idresult.ok { background: var(--good-soft); color: var(--good); } .idresult.bad { background: var(--bad-soft); color: var(--bad); }
.idresult b { display: block; font-size: 19px; margin-bottom: 4px; }
.sig { width: 100%; height: 180px; border: 2px dashed var(--line); border-radius: 14px; background: #fff; touch-action: none; display: block; }
.due { font: 700 34px "Space Grotesk", sans-serif; text-align: center; margin: 6px 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; } .seg button { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 15px "Inter", sans-serif; color: var(--ink); cursor: pointer; } .seg button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.wiz-bar { height: 5px; background: var(--line); border-radius: 3px; margin: 6px 0 16px; overflow: hidden; } .wiz-bar div { height: 100%; background: var(--accent); transition: width .4s; }
.photo-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 12px; cursor: pointer; } .photo-pick img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.empty { text-align: center; color: var(--ink-2); padding: 30px 10px; }
.gate { min-height: 70vh; display: grid; place-items: center; text-align: center; } .gate img { width: 84px; height: 84px; margin-bottom: 14px; }
.list-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; } .list-row:first-child { border-top: 0; }
@media (prefers-color-scheme: dark) { .sig { background: #f4f4f5; } }

.tabs[hidden], [hidden] { display: none !important; }
