/* PlumberHub by ServiceLinked. Light, high-contrast, big targets: read on a phone in a truck.
   60-30-10 (ServiceFast brand doc): navy trust, white/charcoal structure, orange only for the action that matters. */
:root {
  --ink: #0b2545; --ink-2: #1d2939; --muted: #5b6576; --line: #dde3ec; --line-2: #c9d2df;
  --bg: #f3f6fa; --card: #ffffff; --wash: #f7f9fc;
  --blue: #1f6fb2; --blue-wash: #e8f1fb;
  --cta: #d9480f; --cta-press: #b83d0d; --cta-wash: #fff1e8;
  --gold: #c9a23a; --gold-ink: #7a5d10; --gold-wash: #fbf5e3;
  --good: #1a7f37; --good-wash: #e6f4ea; --bad: #b42318; --bad-wash: #fdecea; --warn-wash: #fff6dc;
  --star: #f2b01e; --star-off: #cfd6e1;
  --radius: 16px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bar: 64px; --tabs: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; flex-direction: column; font-weight: 800; font-size: 22px; letter-spacing: -.3px; color: #fff; line-height: 1; }
.wordmark .wm { display: block; white-space: nowrap; }
.wordmark .wm span { color: #ff8a3d; }
.wordmark small { font-size: 9.5px; letter-spacing: 2.6px; color: #e9c46a; margin-top: 4px; font-weight: 800; }
.wordmark.dark { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px;
  border: 2px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; font-size: 17px; }
.btn.primary:hover { background: var(--cta-press); border-color: var(--cta-press); }
.btn.navy { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); padding: 0 10px; }
.btn.danger { color: var(--bad); border-color: #f1c7c3; }
.btn.big { min-height: 56px; font-size: 18px; padding: 0 22px; width: 100%; }
.btn.sm { min-height: 40px; font-size: 14.5px; padding: 0 12px; border-radius: 10px; }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 12px; }

/* ---------- forms ---------- */
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.f .hint { font-size: 13.5px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 16px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .chip:focus-visible, .star:focus-visible { outline: 3px solid #9cc3ea; outline-offset: 1px; border-color: var(--blue); }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 6px; height: 38px; border: 0; background: var(--wash); border-radius: 8px; padding: 0 12px; font-weight: 700; color: var(--ink); cursor: pointer; }
.err { color: var(--bad); font-weight: 600; min-height: 1px; margin: 4px 0 10px; }
.ok-msg { color: var(--good); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 2px; }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-top { background: var(--ink); padding: 22px 20px 26px; }
.auth-card { width: min(460px, calc(100% - 32px)); margin: -14px auto 40px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 26px 22px; align-self: start; border: 1px solid var(--line); }
.auth-card h1 { margin-bottom: 6px; }
.auth-card .lede { color: var(--muted); margin-bottom: 18px; }
.magic { background: var(--bg); }
.magic-card { width: min(440px, calc(100% - 32px)); margin: 60px auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px 22px; text-align: center; border-top: 6px solid var(--ink); }
.magic-card .wordmark { color: var(--ink); align-items: center; margin-bottom: 18px; }
.magic-card h1 { margin-bottom: 8px; }

/* ---------- shell ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; height: calc(var(--bar) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; display: flex; align-items: center; gap: 12px; }
.bar .wordmark { font-size: 20px; }
.bar .spacer { flex: 1; }
.bar .acct { font-size: 13px; color: #c8d3e3; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 10px; border-radius: 99px; border: 0; cursor: pointer; font-weight: 800; font-size: 14px; white-space: nowrap; }
.switch i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.switch.on { background: #1f8a46; color: #fff; }
.switch.off { background: #f4b740; color: #3a2a00; }
.chip-bal { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.12); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.chip-bal small { font-weight: 600; opacity: .8; font-size: 12.5px; }
.wordmark small { white-space: nowrap; }
.bar .wordmark { flex: none; }
@media (max-width: 430px) {
  .bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .bar .wordmark { font-size: 19px; }
  .bar .wordmark small { font-size: 8.5px; letter-spacing: 2px; }
  .switch { padding: 0 10px 0 9px; font-size: 13.5px; gap: 6px; }
  .chip-bal { padding: 0 10px; }
  .chip-bal small { display: none; }
}
.viewing { background: var(--gold-wash); color: var(--gold-ink); border-bottom: 1px solid #ecdcae; padding: 8px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.viewing select { min-height: 38px; padding: 4px 8px; width: auto; max-width: 60vw; font-size: 14px; }
main.page { width: min(860px, 100%); margin: 0 auto; padding: 16px 14px calc(var(--tabs) + 28px + env(safe-area-inset-bottom)); }
.tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabs a { display: grid; place-items: center; align-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 12.5px; font-weight: 700; position: relative; }
.tabs a svg { width: 25px; height: 25px; }
.tabs a.on { color: var(--ink); }
.tabs a.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--cta); }
.tabs a b { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 19px; height: 19px; border-radius: 99px; background: var(--cta); color: #fff; font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; }
@media (min-width: 960px) {
  .tabs { top: calc(var(--bar) + env(safe-area-inset-top)); bottom: 0; right: auto; width: 220px; height: auto; grid-auto-flow: row; grid-auto-rows: 56px; align-content: start; padding: 14px 10px; border-top: 0; border-right: 1px solid var(--line); gap: 4px; }
  .tabs a { grid-template-columns: 28px 1fr; justify-items: start; align-content: center; padding: 0 14px; border-radius: 12px; font-size: 15.5px; gap: 12px; }
  .tabs a.on { background: var(--blue-wash); }
  .tabs a.on::before { display: none; }
  .tabs a b { position: static; margin-left: auto; grid-column: 3; }
  .tabs a { grid-template-columns: 28px 1fr auto; }
  main.page { padding: 26px 30px 60px; margin-left: 220px; width: min(980px, calc(100% - 220px)); }
  .viewing { margin-left: 220px; }
}

/* Inline icons: small unless a component sizes them (buttons, tabs, stars, the record button). */
main svg { width: 18px; height: 18px; flex: none; }
.lead .meta span { display: inline-flex; align-items: center; gap: 4px; }
.lead .meta svg { width: 15px; height: 15px; }
.facts > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.facts svg { width: 17px; height: 17px; color: var(--muted); }
.tl .ic svg, .remind .ic svg { width: 17px; height: 17px; }
a.chip { text-decoration: none; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card, .card + .sec, .sec + .card, .sec + .sec { margin-top: 14px; }
.card h2 { margin-bottom: 10px; }
.card.tight { padding: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 22px 2px 10px; }
.sec-head h2 { font-size: 19px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--wash); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.pill.good { background: var(--good-wash); color: var(--good); border-color: #bfe3cb; }
.pill.bad { background: var(--bad-wash); color: var(--bad); border-color: #f4c7c2; }
.pill.warn { background: var(--warn-wash); color: #7a5300; border-color: #f2dc9b; }
.pill.blue { background: var(--blue-wash); color: var(--blue); border-color: #c3dbf3; }
.pill.cta { background: var(--cta-wash); color: var(--cta); border-color: #f9cdb3; }
.banner { border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 600; margin-bottom: 14px; }
.banner.off { background: #fff4d6; border: 2px solid #f4b740; color: #4a3500; }
.banner.info { background: var(--blue-wash); border: 1px solid #c3dbf3; color: var(--ink); }
.banner .grow { flex: 1; min-width: 200px; }

/* ---------- home ---------- */
.hello { display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hello h1 { font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.stat .v { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat .l { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 2px solid var(--line-2); background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip b { background: var(--cta); color: #fff; border-radius: 99px; font-size: 12px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.chip.on b { background: #fff; color: var(--ink); }
.search { margin-bottom: 10px; }

/* lead list */
.leads { display: grid; gap: 10px; }
.lead { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 12px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.lead:active { background: var(--wash); }
.lead .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: transparent; }
.lead.unseen .dot { background: var(--cta); }
.lead .who { font-weight: 800; font-size: 17px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead .what { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead .meta { grid-column: 2 / -1; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); }
.lead .side { display: grid; justify-items: end; gap: 6px; }
.lead.missed { border-left: 5px solid var(--bad); padding-left: 8px; }
.stars-mini { color: var(--star); font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.stars-mini .off { color: var(--star-off); }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty h2 { margin-bottom: 8px; }
.more { margin-top: 12px; }

/* onboarding */
.onb { border: 2px solid var(--ink); }
.onb .video { position: relative; border-radius: 12px; overflow: hidden; background: #0b1730; margin: 4px 0 14px; aspect-ratio: 16 / 9; }
.onb video { width: 100%; height: 100%; display: block; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--wash); border: 2px solid var(--line-2); color: var(--ink); }
.steps .done .n { background: var(--good); border-color: var(--good); color: #fff; }
.steps .now .n { background: var(--cta); border-color: var(--cta); color: #fff; }
.steps b { color: var(--ink); }
.steps .act { margin-top: 8px; }

/* ---------- lead detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--blue); min-height: 44px; margin: -6px 0 4px; }
.lead-head h1 { font-size: 26px; margin: 4px 0 2px; }
.lead-head .issue { font-size: 18px; color: var(--ink-2); margin-bottom: 8px; }
.facts { display: grid; gap: 4px; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.facts a { color: var(--ink); font-weight: 600; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .btn { min-height: 54px; }
.callback { background: var(--bad-wash); border: 2px solid #f4c7c2; color: var(--bad); border-radius: 14px; padding: 12px 14px; font-weight: 700; margin-bottom: 12px; }
audio { width: 100%; margin: 4px 0 6px; }
.speeds { display: flex; gap: 6px; }
.speeds button { min-height: 36px; min-width: 52px; border-radius: 9px; border: 2px solid var(--line-2); background: #fff; font-weight: 800; cursor: pointer; }
.speeds button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.summary { background: var(--blue-wash); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.summary .k { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--blue); text-transform: uppercase; }
details.tx summary { cursor: pointer; font-weight: 700; color: var(--blue); min-height: 44px; display: flex; align-items: center; }
.tx-lines { display: grid; gap: 8px; margin-top: 6px; max-height: 420px; overflow: auto; padding-right: 4px; }
.tx-line { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 15px; }
.tx-line .who { font-weight: 800; color: var(--ink); font-size: 13px; padding-top: 2px; }
.tx-line.b .who { color: var(--blue); }

/* stars */
.rate { display: flex; gap: 8px; }
.star { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.star svg { width: 40px; height: 40px; color: var(--star-off); }
.star.lit svg { color: var(--star); }
.star.pick { border-color: var(--star); background: #fffaeb; color: var(--ink); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* status */
.statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.statuses .chip { min-height: 44px; }
.statuses .chip.on.won, .statuses .chip.on.booked { background: var(--good); border-color: var(--good); }
.statuses .chip.on.lost { background: #5b6576; border-color: #5b6576; }

/* recorder */
.rec { display: grid; gap: 10px; }
.rec-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 72px; border-radius: 18px; border: 0; background: var(--cta); color: #fff; font-size: 19px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(217,72,15,.28); }
.rec-btn svg { width: 30px; height: 30px; }
.rec-btn.live { background: var(--bad); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(180,35,24,.15); } }
.level { height: 8px; border-radius: 99px; background: #f1d3cc; overflow: hidden; }
.level i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .08s linear; }
.thinking { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--wash); border: 1px dashed var(--line-2); font-weight: 600; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--cta); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { border-radius: 14px; border: 2px solid var(--good); background: #fbfefc; padding: 14px; }
.result .said { font-style: italic; color: var(--ink-2); margin: 6px 0 10px; }
.remind { display: flex; gap: 10px; align-items: flex-start; background: var(--cta-wash); border: 1px solid #f9cdb3; border-radius: 12px; padding: 12px; margin-top: 8px; }
.remind .ic { font-size: 22px; line-height: 1; }
.remind b { color: var(--ink); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.typed { margin-top: 2px; }

/* timeline */
.timeline { display: grid; gap: 10px; }
.tl { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.tl .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--wash); border: 1px solid var(--line); font-size: 15px; }
.tl .when { font-size: 13px; color: var(--muted); }
.tl .body { font-size: 15px; }
.tl .q { font-style: italic; color: var(--ink-2); }

/* follow-ups */
.fu { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.fu .t { font-weight: 800; color: var(--ink); }
.fu .s { font-size: 14px; color: var(--muted); }
.group-h { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 2px 8px; }

/* money */
.balance .v { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.balance .v.low { color: var(--bad); }
.bar-meter { height: 14px; border-radius: 99px; background: #e8edf4; overflow: hidden; margin: 10px 0 6px; }
.bar-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #3d8bd0); border-radius: 99px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 15.5px; }
.kv b { text-align: right; color: var(--ink); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.amounts .chip { justify-content: center; min-height: 52px; font-size: 17px; }
.ledger { display: grid; }
.lg { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 2px; border-top: 1px solid var(--line); }
.lg:first-child { border-top: 0; }
.lg .d { font-weight: 600; color: var(--ink); }
.lg .w { font-size: 13px; color: var(--muted); }
.lg .a { font-weight: 800; text-align: right; }
.lg .a.plus { color: var(--good); }
.lg .bal { font-size: 13px; color: var(--muted); text-align: right; }
.paybox { border: 2px solid var(--cta); background: #fffaf6; }
.paybox .total { font-size: 34px; font-weight: 800; color: var(--ink); }

/* sheet (bottom drawer) */
.sheet-bg { position: fixed; inset: 0; background: rgba(11,37,69,.45); z-index: 60; display: grid; align-items: end; }
.sheet { background: #fff; border-radius: 22px 22px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); width: min(560px, 100%); margin: 0 auto; max-height: 92vh; overflow: auto; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet h2 { margin-bottom: 6px; }
.sheet .opts { display: grid; gap: 10px; margin: 14px 0; }
.sheet .opts .btn { justify-content: flex-start; text-align: left; min-height: 60px; }
.sheet .opts .btn small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }

/* ---------- admin ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 8px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl-wrap { overflow-x: auto; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.copy { display: flex; gap: 8px; }
.copy input { font-size: 13px; min-height: 42px; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
code.k { font-size: 13px; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
