/* MMC Rounds – styles */
:root {
  --bg: #f2f5f9;
  --surface: #ffffff;
  --surface-2: #e9eff6;
  --surface-3: #dde6f0;
  --ink: #0e1a2b;
  --ink-2: #4a5b72;
  --ink-3: #7c8ca3;
  --line: #d9e2ec;
  --brand: #0b2e4f;
  --brand-ink: #ffffff;
  --accent: #1467d8;
  --accent-soft: #e3eefc;
  --good: #0c8a5f;
  --good-soft: #dff4ea;
  --warn: #b86a00;
  --warn-soft: #fdf0d9;
  --bad: #c62828;
  --bad-soft: #fde5e3;
  --star: #e89d0c;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 4px 14px rgba(14, 26, 43, .06);
  --radius: 12px;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111c; --surface: #111b2a; --surface-2: #17243a; --surface-3: #1f2f48;
    --ink: #e7eef7; --ink-2: #a3b4ca; --ink-3: #74869f; --line: #23334b;
    --brand: #10304f; --accent: #5a9cf8; --accent-soft: #16294a;
    --good: #34c48b; --good-soft: #0f2e24; --warn: #f0a93b; --warn-soft: #33250d;
    --bad: #f26b6b; --bad-soft: #3a1717; --star: #f5b93a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111c; --surface: #111b2a; --surface-2: #17243a; --surface-3: #1f2f48;
  --ink: #e7eef7; --ink-2: #a3b4ca; --ink-3: #74869f; --line: #23334b;
  --brand: #10304f; --accent: #5a9cf8; --accent-soft: #16294a;
  --good: #34c48b; --good-soft: #0f2e24; --warn: #f0a93b; --warn-soft: #33250d;
  --bad: #f26b6b; --bad-soft: #3a1717; --star: #f5b93a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; font-weight: 600; }
h3 { font-size: .98rem; font-weight: 600; }
.num, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: .84rem; }
.label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Shell ── */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100%; }
.side { background: var(--brand); color: #c9d7e8; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.brandmark { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; }
.brandmark .logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #3d8bf2, #1f5fbf); display: grid; place-items: center; }
.brandmark .logo svg { width: 20px; height: 20px; stroke: #fff; }
.brandmark b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; display: block; line-height: 1.1; }
.brandmark span { font-size: .75rem; color: #8fa8c6; }
.nav-btn { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border: 0; background: none; color: inherit; border-radius: 9px; cursor: pointer; text-align: left; font-weight: 500; }
.nav-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-btn.on { background: rgba(255, 255, 255, .13); color: #fff; }
.nav-btn .count { margin-left: auto; background: #f5b93a; color: #231800; font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.side .spacer { flex: 1; }
.mode-pill { font-size: .75rem; padding: 8px 12px; border-radius: 9px; background: rgba(255, 255, 255, .06); color: #9fb4cd; }
.mode-pill b { color: #fff; }

.main { min-width: 0; padding: 22px 28px 60px; max-width: 1180px; width: 100%; }
.topbar { display: none; }
.tabs { display: none; }

.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .grow { flex: 1; min-width: 0; }
.page-head .sub { color: var(--ink-2); font-size: .9rem; margin-top: 2px; }

/* ── Controls ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none; min-height: 40px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger.solid { background: var(--bad); color: #fff; }
.btn.ghost { background: none; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: .82rem; border-radius: 8px; }
.btn.icon { padding: 0; width: 40px; }
.btn.sm.icon { width: 32px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--ink-3); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=url], input[type=password], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); min-height: 40px;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 5px 12px; border-radius: 99px; cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.svc { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 75%, var(--ink)); white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel > h2, .panel > .panel-head { margin-bottom: 12px; }
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-head h2 { flex: 1; }
.section { display: flex; flex-direction: column; gap: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* ── Schedule ── */
.week-strip { display: grid; grid-template-columns: 40px repeat(7, minmax(0, 1fr)) 40px; gap: 6px; margin-bottom: 14px; align-items: stretch; }
.week-strip .nav { border: 0; background: none; cursor: pointer; color: var(--ink-2); border-radius: 10px; }
.week-strip .nav:hover { background: var(--surface-2); }
.day { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 4px 7px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.day .dw { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.day .dn { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.day .dc { font-size: .72rem; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.day .wx { font-size: .7rem; display: flex; align-items: center; gap: 2px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.day .wx svg { width: 14px; height: 14px; }
.day .wx.wet { color: var(--accent); font-weight: 700; }
.day.today .dn { color: var(--accent); }
.day.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day.on .dw, .day.on .dc, .day.on .wx { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.day.on.today .dn { color: var(--bg); }

.rain-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); margin-bottom: 14px; flex-wrap: wrap; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.rain-banner svg { color: var(--accent); width: 22px; height: 22px; }
.rain-banner .grow { flex: 1; min-width: 180px; }

.day-summary { display: flex; gap: 22px; flex-wrap: wrap; padding: 2px 2px 12px; }
.day-summary div { display: flex; flex-direction: column; }
.day-summary b { font-family: var(--display); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.day-summary span { font-size: .75rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.jobs { display: flex; flex-direction: column; gap: 8px; }
.job { display: grid; grid-template-columns: 5px 1fr auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.job .stripe { background: var(--wc, var(--ink-3)); }
.job .body { padding: 11px 13px; min-width: 0; cursor: pointer; }
.job .top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.job .name { font-weight: 700; font-size: 1rem; }
.job .addr { color: var(--ink-2); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.job .side-acts { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding: 10px 10px 10px 0; gap: 8px; }
.job .price { font-family: var(--display); font-weight: 600; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.job.done { opacity: .72; box-shadow: none; }
.job.done .name { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.job.skipped { opacity: .55; box-shadow: none; }
.job .order { display: flex; flex-direction: column; }
.job .order button { border: 0; background: none; padding: 0 4px; cursor: pointer; color: var(--ink-3); height: 18px; }
.job .order button:hover { color: var(--ink); }
.job .order svg { width: 16px; height: 16px; }
.done-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--good); background: var(--surface); color: var(--good); display: grid; place-items: center; cursor: pointer; }
.done-btn:hover { background: var(--good-soft); }
.done-btn.is-done { background: var(--good); color: #fff; }
.done-btn svg { width: 22px; height: 22px; stroke-width: 2.6; }
.who { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--wc); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.group-title { display: flex; align-items: center; gap: 8px; margin: 14px 2px 6px; }
.group-title .label { color: var(--ink-2); }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty h3 { margin-bottom: 4px; color: var(--ink); }

/* ── Lists ── */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); cursor: pointer; min-width: 0; }
.li:first-child { border-top: 0; }
.li:hover { background: var(--surface-2); }
.li.static { cursor: default; }
.li.static:hover { background: none; }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .s { font-size: .84rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .r { text-align: right; flex: none; }
.initials { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Stat tiles ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .v { font-family: var(--display); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 4px; }
.stat .d { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.stat.hero { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat.hero .label { color: #9fb6d2; }
.stat.hero .d { color: #bcd0e6; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }

/* ── Planner grid ── */
.planner { display: grid; grid-template-columns: 136px repeat(7, minmax(120px, 1fr)); min-width: 960px; }
.planner .h { padding: 8px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.planner .h.today { color: var(--accent); }
.planner .w { padding: 10px 8px; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; align-items: flex-start; gap: 6px; }
.planner .c { padding: 6px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-height: 76px; }
.planner .c.wet { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.pj { font-size: .78rem; padding: 5px 7px; border-radius: 7px; background: color-mix(in srgb, var(--wc) 13%, var(--surface)); border-left: 3px solid var(--wc); cursor: pointer; line-height: 1.25; }
.pj b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj.done { opacity: .55; }
.pj.big { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--wc) 16%, var(--surface)) 0 6px, color-mix(in srgb, var(--wc) 8%, var(--surface)) 6px 12px); }
.planner .tot { font-size: .72rem; color: var(--ink-3); margin-top: auto; font-variant-numeric: tabular-nums; }

/* ── Sheet / dialog ── */
.scrim { position: fixed; inset: 0; background: rgba(6, 14, 26, .5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease; }
.sheet { background: var(--bg); width: 100%; max-width: 620px; max-height: calc(100vh - 40px); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop .18s ease; }
.sheet.wide { max-width: 880px; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sheet-head h2 { flex: 1; min-width: 0; }
.sheet-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }

.toast { position: fixed; left: 16px; right: 16px; margin-inline: auto; width: fit-content; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 80; box-shadow: var(--shadow); animation: pop .2s ease; }
.toast.bad { background: var(--bad); color: #fff; }

.msg-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .9rem; white-space: pre-wrap; }
.msg-preview.sms { background: var(--accent-soft); border-color: transparent; border-bottom-left-radius: 4px; max-width: 420px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { position: absolute; left: 5px; top: 5px; font-size: .65rem; font-weight: 800; text-transform: uppercase; background: rgba(0, 0, 0, .6); color: #fff; padding: 1px 6px; border-radius: 5px; }
.upload { border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .88rem; background: var(--surface); }
.upload:hover { border-color: var(--accent); color: var(--accent); }
.upload input { display: none; }
.seg { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 10px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--line); }
.notice { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: .87rem; }
.notice.info { background: var(--accent-soft); }
.demo-banner { background: var(--warn-soft); color: var(--ink); border-radius: 10px; padding: 9px 12px; font-size: .84rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.demo-banner .grow { flex: 1; min-width: 200px; }
.stars { color: var(--star); letter-spacing: 1px; }
.code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .8rem; background: var(--surface-2); padding: 10px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }

/* ── Login ── */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: var(--brand); }
.login form { background: var(--surface); padding: 26px; border-radius: 16px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }

/* ── Phone layout ── */
@media (max-width: 899px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; }
  .topbar b { font-family: var(--display); font-size: 1.05rem; font-weight: 600; flex: 1; }
  .topbar .btn { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
  .main { padding: 16px 16px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--ink-3); padding: 4px 0; cursor: pointer; }
  .tabs button svg { width: 22px; height: 22px; }
  .tabs button.on { color: var(--accent); }
  .page-head h1 { font-size: 1.3rem; }
  .page-head .hide-sm { display: none; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .week-strip { grid-template-columns: 28px repeat(7, minmax(0, 1fr)) 28px; gap: 4px; }
  .day { padding: 6px 1px; border-radius: 10px; }
  .day .dn { font-size: 1.1rem; }
  .scrim { padding: 0; align-items: flex-end; }
  .sheet, .sheet.wide { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .job .addr { white-space: normal; }
}
@media (max-width: 420px) {
  .day .wx span { display: none; }
  .day-summary { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Squeegee-parity additions ── */
.nav-sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #6f8bab; font-weight: 700; padding: 12px 12px 4px; }
.nav-sec:empty { padding: 6px 0 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 6px; }
.leg { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--ink-3); padding: 0 0 0 18px; margin: -3px 0; font-variant-numeric: tabular-nums; }
.seq { width: 22px; height: 22px; border-radius: 50%; background: var(--wc); color: #fff; font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; flex: none; align-self: center; }
.pill.visit { background: color-mix(in srgb, #0f766e 15%, transparent); color: #0f766e; }
:root[data-theme="dark"] .pill.visit { color: #5eead4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.visit { color: #5eead4; } }
.job.visit { border-style: dashed; }
.tabs-row { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs-row button { border: 0; background: none; padding: 10px 14px; font-weight: 700; font-size: .88rem; color: var(--ink-3); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs-row button.on { color: var(--ink); border-bottom-color: var(--accent); }
.ledger td.bal { color: var(--ink-2); }
.daynote { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); border-radius: 10px; padding: 9px 12px; font-size: .88rem; margin-bottom: 8px; }
.donut { width: 150px; height: 150px; flex: none; }
.inv-doc { background: #fff; color: #0e1a2b; border-radius: 12px; padding: 22px; border: 1px solid var(--line); }
.inv-doc table { width: 100%; border-collapse: collapse; }
.inv-doc td, .inv-doc th { padding: 8px 0; border-bottom: 1px solid #e2e8f0; text-align: left; }
.inv-doc .n { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Quote editor & PDF preview ── */
.qline { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.pdf-page { background: #fff; color: #0e1a2b; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; line-height: 1.45; overflow: hidden; box-shadow: var(--shadow); }
.pdf-band { background: #0b2e4f; color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.pdf-q { color: #f2a516; font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.pdf-cols { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px 6px; }
.pdf-lab { font-size: 9px; font-weight: 700; color: #64748b; letter-spacing: .06em; text-transform: uppercase; }
.pdf-title { color: #0b2e4f; font-size: 16px; margin: 8px 20px 6px; font-family: Helvetica, Arial, sans-serif; }
.pdf-p { margin: 6px 20px; white-space: pre-wrap; }
.pdf-item { margin: 0 20px; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.pdf-item:first-of-type { border-top: 2px solid #0b2e4f; }
.pdf-row { display: flex; justify-content: space-between; gap: 12px; }
.pdf-detail { color: #475569; white-space: pre-wrap; margin-top: 2px; }
.pdf-total { margin: 10px 20px 8px auto; width: 60%; background: #f1f5f9; padding: 8px 12px; border-radius: 4px; font-size: 13px; }
.pdf-total .small { font-size: 11px; color: #475569; }
.pdf-terms { margin: 8px 20px; font-size: 10px; color: #64748b; }
.pdf-foot { border-top: 1px solid #e2e8f0; margin: 12px 20px 0; padding: 8px 0 14px; font-size: 9.5px; color: #64748b; }

/* ── Signal / sync status ── */
.sync-pill { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 99px; padding: 6px 11px; font-size: .76rem; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.1); color: #d7e3f1; white-space: nowrap; }
.side .sync-pill { margin: 0 4px 8px; justify-content: flex-start; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c48b; flex: none; }
.sync-pill.busy .sync-dot { background: #f5b93a; animation: pulse 1s infinite alternate; }
.sync-pill.off { background: #f5b93a; color: #231800; }
.sync-pill.off .sync-dot { background: #231800; }
.sync-pill.bad { background: #c62828; color: #fff; }
.sync-pill.bad .sync-dot { background: #fff; }
@keyframes pulse { to { opacity: .35; } }
@media (max-width: 899px) { .topbar .sync-pill { font-size: .7rem; padding: 5px 9px; } }

/* ── Before/after camera ── */
.cam { position: fixed; inset: 0; z-index: 90; background: #000; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.cam.flash::after { content: ''; position: absolute; inset: 0; background: #fff; opacity: .6; pointer-events: none; }
.cam-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.cam-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cam-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.cam-frame { position: relative; width: 100%; max-height: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #111; touch-action: none; max-width: calc((100vh - 290px) * 1.34); }
.cam-frame video, .cam-frame canvas, .cam-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-ghost { pointer-events: none; }
.cam-grid { position: absolute; inset: 0; pointer-events: none; display: none; background-image: linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(255,255,255,.45) 33.3%, transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), rgba(255,255,255,.45) 66.6%, transparent calc(66.6% + 1px)), linear-gradient(transparent calc(33.3% - 1px), rgba(255,255,255,.45) 33.3%, transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), rgba(255,255,255,.45) 66.6%, transparent calc(66.6% + 1px)); }
.cam-frame.grid-on .cam-grid, .al-frame .cam-grid { display: block; }
.cam-level { position: absolute; left: 30%; right: 30%; top: 50%; height: 2px; background: #f5b93a; pointer-events: auto; transition: transform .1s; }
.cam-level.ok { background: #34c48b; }
.cam-split { position: absolute; inset: 0; cursor: ew-resize; }
.cam-split-bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.6); }
.cam-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: rgba(0,0,0,.75); }
.cam-controls { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.cam-row { display: flex; align-items: center; gap: 12px; justify-content: center; }
.cam-row input[type=range] { flex: 1; max-width: 320px; accent-color: #f5b93a; }
.cam-lab { font-size: .78rem; width: 84px; color: #cbd5e1; }
.cam-seg { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 10px; padding: 3px; }
.cam-seg button { border: 0; background: none; color: #cbd5e1; font-weight: 700; font-size: .8rem; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.cam-seg button.on { background: #fff; color: #0e1a2b; }
.cam-thumbs img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; opacity: .6; cursor: pointer; border: 2px solid transparent; }
.cam-thumbs img.on { opacity: 1; border-color: #f5b93a; }
.cam-main { justify-content: space-between; max-width: 360px; width: 100%; margin: 0 auto; }
.cam-shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.25); cursor: pointer; }
.cam-shutter:active { background: #fff; }
.cam-hint { text-align: center; font-size: .8rem; color: #cbd5e1; }
button.upload { width: 100%; text-align: left; }
button.upload[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Hold the done tick for more options ── */
[data-hold] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.done-btn { position: relative; }
.done-btn.holding::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--good); clip-path: inset(0 0 0 0); animation: holdring .45s linear forwards; opacity: .55; }
@keyframes holdring { from { transform: scale(.75); opacity: .2; } to { transform: scale(1); opacity: .7; } }
.qm { display: grid; gap: 6px; }
.qm-item { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.qm-item:hover { background: var(--surface-2); }
.qm-item svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.qm-item span { display: flex; flex-direction: column; gap: 2px; }
.qm-item small { color: var(--ink-3); font-size: 12.5px; }

/* toast with an Undo button */
.toast.has-act { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.toast.has-act button { background: none; border: 1.5px solid currentColor; border-radius: 8px; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 4px 6px; white-space: nowrap; }
.toast .toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .5; width: 100%; transform-origin: left; animation: toastbar linear forwards; }
@keyframes toastbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── Locking jobs in the day's order ── */
.job .order button.lk { color: var(--ink-3); opacity: .55; }
.job .order button.lk.on { color: var(--accent); opacity: 1; height: 24px; }
.job .order button.lk svg { width: 14px; height: 14px; }
.job .order button.lk.on svg { width: 16px; height: 16px; }

/* ── Address finder + map pin ── */
.addr-find { position: relative; }
.addr-search { position: relative; }
.addr-search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.addr-search input { width: 100%; padding-left: 36px; }
.addr-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; max-height: 320px; overflow-y: auto; }
.addr-opt { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; cursor: pointer; }
.addr-opt:last-child { border-bottom: 0; }
.addr-opt:hover, .addr-opt:focus { background: var(--surface-2); outline: none; }
.addr-opt svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.addr-opt span { display: flex; flex-direction: column; min-width: 0; }
.addr-opt small { color: var(--ink-3); font-size: 12.5px; }
.pin-map { position: relative; height: 230px; border-radius: 12px; overflow: hidden; background: #dfe6ea; touch-action: none; cursor: grab; border: 1px solid var(--line); }
.pin-map:active { cursor: grabbing; }
.pin-map .tiles { position: absolute; inset: 0; }
.pin-map .tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; }
.pin-centre { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -100%); pointer-events: none; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.pin-centre::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 4px; margin-left: -4px; border-radius: 50%; background: rgba(0,0,0,.35); }
.pin-centre svg { width: 100%; height: 100%; }
.map-zoom { position: absolute; right: 8px; top: 8px; z-index: 4; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.map-zoom button { width: 36px; height: 36px; border: 0; background: #fff; color: #0e1a2b; font-size: 20px; font-weight: 700; cursor: pointer; }
.map-zoom button + button { border-top: 1px solid #e2e8f0; }
.map-attr { position: absolute; right: 0; bottom: 0; z-index: 4; font-size: 10.5px; background: rgba(255,255,255,.8); color: #333; padding: 1px 6px; border-top-left-radius: 6px; }
.map-attr a { color: inherit; }
.pin-status { margin-top: 6px; align-items: center; }
.good-t { color: var(--good); display: inline-flex; align-items: center; gap: 4px; }
.good-t svg { width: 15px; height: 15px; }
.pin-map.no-tiles::before { content: 'Map pictures can’t load here (no signal, or the demo). The pin position is still saved.'; position: absolute; left: 12px; right: 56px; top: 12px; z-index: 4; font-size: 12px; color: #334155; background: rgba(255,255,255,.85); padding: 6px 8px; border-radius: 8px; }

/* ── Money period picker ── */
.period { display: flex; align-items: center; gap: 6px; }
.period-btn { min-width: 150px; justify-content: space-between; }
.period-btn svg { width: 16px; height: 16px; color: var(--ink-3); }
.qm-item.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 899px) { .period { width: 100%; } .period-btn { flex: 1; } }

/* ── Quote pack ── */
.pk-group { display: flex; flex-direction: column; gap: 4px; }
.pk-group > .label { margin: 6px 0 2px; }
.pk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.pk-row.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.pk-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pk-row .grow { display: flex; flex-direction: column; min-width: 0; }
.pk-row small { color: var(--ink-3); font-size: .78rem; }
.pk-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pk-photo { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; aspect-ratio: 4 / 3; background: var(--surface-2); }
.pk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; }
.pk-photo.on { border-color: var(--accent); }
.pk-photo.on img { opacity: 1; }
.pk-photo span { position: absolute; left: 0; right: 0; bottom: 0; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-viewer { display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); padding: 12px; border-radius: 12px; }
.pdf-viewer .pdf-pg { box-shadow: 0 2px 10px rgba(0,0,0,.18); background: #fff; border-radius: 2px; }
.pk-more summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--accent); padding: 4px 2px; }
.pk-more[open] summary { margin-bottom: 4px; }
.pk-more .pk-row + .pk-row { margin-top: 4px; }
/* customer's view of a quote (preview) */
.cv-phone { max-width: 520px; margin: 0 auto; background: #f2f5f9; border-radius: 18px; padding: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; color: #0e1a2b; }
.cv-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; }
.cv-bar img { max-height: 34px; max-width: 140px; }
.cv-sum, .cv-act { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(14,26,43,.06); }
.cv-sum h2 { margin: 2px 0; color: #0a1838; }
.cv-figs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.cv-figs > div { flex: 1; min-width: 110px; background: #f1f6fc; border-radius: 10px; padding: 8px 10px; }
.cv-figs span { display: block; font-size: .68rem; font-weight: 700; color: #475569; text-transform: uppercase; }
.cv-figs b { color: #0a1838; } .cv-figs .hero { background: #0a1838; } .cv-figs .hero span { color: #c5e6fb; } .cv-figs .hero b { color: #fff; font-size: 1.15rem; }
.cv-phone .pdf-viewer { background: none; padding: 0; }

/* ── Clock in / out ── */
.clockbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.clockbar .grow { display: flex; flex-direction: column; min-width: 0; }
.clockbar span { font-size: .84rem; color: var(--ink-2); }
.clockbar.on { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.clockbar.on b { color: var(--good); }
.te-total { margin-left: auto; text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.te-total span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.te-total b { font-family: var(--display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.te-total small { color: var(--ink-3); font-size: .75rem; }
.te-row + .te-row { margin-top: 2px; }
.te-row a { text-decoration: none; color: inherit; border-bottom: 1px dashed var(--line); }

/* ── Availability ── */
.avgrid { display: grid; gap: 4px; padding: 10px; min-width: 820px; align-items: stretch; }
.avh { text-align: center; font-size: .68rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; display: flex; flex-direction: column; padding-bottom: 2px; }
.avh b { font-family: var(--display); font-size: 1rem; color: var(--ink); text-transform: none; }
.avh.today b { color: var(--accent); } .avh.we { opacity: .75; }
.avw { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.av { position: relative; border: 0; border-radius: 8px; min-height: 40px; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; padding: 2px; }
.av.on { background: var(--good-soft); color: var(--good); }
.av.rest { background: var(--surface-2); color: var(--ink-3); }
.av.away { background: var(--warn-soft); color: var(--warn); }
.av.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.av.clash { box-shadow: inset 0 0 0 2px var(--bad); }
.av i { position: absolute; top: 2px; right: 4px; font-style: normal; color: var(--bad); font-weight: 900; }
.av[disabled] { cursor: default; }
.who.off { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; }
.planner .c.off { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 12px); }
.offtag { font-size: .68rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }

/* ── m² pricing on quote lines ── */
.m2row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.m2row .field { flex: 1; min-width: 90px; }
.m2x { font-weight: 800; color: var(--ink-3); padding-bottom: 10px; }
.adj { display: flex; flex-direction: column; gap: 6px; }
.adj-row { display: flex; gap: 6px; align-items: center; }
.adj-row input[type=text] { flex: 1; min-width: 0; }
.adj-row .check { white-space: nowrap; align-items: center; }
.measure { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.measure .pill a { color: inherit; text-decoration: none; font-weight: 800; margin-left: 2px; }

/* ── van QR codes & scanner ── */
.ic-badge { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.qr-box { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); line-height: 0; }
.qr-box svg { width: 220px; height: 220px; }
.qr-code { font: 700 20px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.scan .scan-frame { aspect-ratio: 1 / 1; max-width: min(92vw, calc(100vh - 260px)); }
.scan-target { position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.scan-type { display: flex; gap: 8px; width: 100%; max-width: 420px; margin: 0 auto; }
.scan-type input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .05em; }
.scan .cam-controls { gap: 10px; padding: 12px 16px 18px; }
.scan-msg { position: absolute; inset: auto 12px 12px; background: rgba(0,0,0,.75); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.te-meta { color: var(--faint, #64748b); font-size: 12px; }
.te-meta a { color: inherit; }
.scan-type input::placeholder { text-transform: none; letter-spacing: 0; }

/* ── Google contacts ── */
.gc-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; border: 1px solid var(--line, #e2e8f0); }
.gc-photo img { width: 100%; height: 100%; object-fit: cover; }
.gc-photo .i { width: 28px; height: 28px; }
.gc-progress .bar { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; margin-bottom: 8px; }
.gc-progress .bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* ── Settings: collapsible sections ── */
.settings-acc { gap: 10px; }
.panel.acc { padding: 0; gap: 0; }
.panel.acc > .acc-head { padding: 14px 16px; margin: 0; cursor: pointer; user-select: none; border-radius: inherit; gap: 12px; align-items: center; }
.panel.acc > .acc-head:hover { background: var(--surface-2); }
.panel.acc > .acc-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.acc-title h2 { margin: 0; }
.acc-sub { font-size: .8rem; color: var(--faint, #64748b); margin-top: 2px; }
.acc-chev { color: var(--faint, #64748b); display: grid; place-items: center; transition: transform .18s; flex: none; }
.panel.acc.open .acc-chev { transform: rotate(90deg); }
.panel.acc > .acc-body { display: none; padding: 0 16px 16px; }
.panel.acc.open > .acc-body { display: flex; }
.panel.acc.open > .acc-head { border-bottom: 1px solid var(--line); border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 14px; }
.set-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set-tools input { min-width: 0; width: 260px; max-width: 100%; }
@media (max-width: 640px) { .set-tools { width: 100%; } .set-tools input { flex: 1; width: auto; } }
.acc-head .acc-title { flex: 1 1 auto; min-width: 0; }
.acc-head .acc-title h2 { font-size: 1.05rem; }

/* ── team logins ── */
.login-box { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.login-box > .label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.login-box > .label .i { width: 16px; height: 16px; }
.login { min-height: 100vh; min-height: 100dvh; }

/* ── Live map (owner) ── */
.tm-map { height: min(62vh, 560px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); position: relative; }
.tm-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint, #64748b); font-size: .9rem; padding: 20px; text-align: center; }
.tm-job, .tm-me { background: none; border: 0; }
.tm-job span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--wc); color: #0e1a2b; font: 700 11px/1 system-ui, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.tm-me span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wc); color: #fff; font: 800 15px/1 system-ui, sans-serif; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tm-me span.stale { filter: grayscale(.8); opacity: .7; }

/* ── photo angles ── */
.angles { display: flex; flex-direction: column; gap: 10px; }
.angle { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface); }
.angle-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.angle .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 380px; }
.angle-after { aspect-ratio: 1; flex-direction: column; justify-content: center; text-align: center; border-color: var(--accent) !important; color: var(--accent) !important; }

/* ── materials calculator ── */
.mc-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.mc-order { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.mc-row { display: flex; gap: 10px; align-items: flex-start; border-top: 1px dashed var(--line); padding-top: 6px; }
.mc-mat { cursor: pointer; }
.mc-panel { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.mat-price { align-items: center; margin-bottom: 6px; }

/* ── vehicles ── */
.reg { display: inline-block; font: 700 .8rem/1 ui-monospace, Menlo, Consolas, monospace; background: #f7d117; color: #111; border: 1px solid #111; border-radius: 4px; padding: 3px 6px; letter-spacing: .05em; vertical-align: middle; }
.veh.off { border-color: var(--bad); }
.vc-items { display: flex; flex-direction: column; gap: 6px; }
.vc-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.vc-item.pass { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.vc-item.fail { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 6%, var(--surface)); }
.vc-seg button { padding: 6px 10px; font-size: .8rem; }
.vc-seg button .i { width: 14px; height: 14px; }
.defect { border-left: 3px solid var(--warn); padding: 4px 0 4px 10px; display: flex; flex-direction: column; gap: 2px; }
.tabs { grid-template-columns: repeat(6, 1fr) !important; }
.tabs button { position: relative; }
.tab-dot { position: absolute; top: 2px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }
.req { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 8px; }
.req:first-of-type { border-top: 0; padding-top: 0; }

/* ── van kit checklist ── */
.kit-gate { border-color: var(--accent); }
.kit-list { display: flex; flex-direction: column; gap: 6px; }
.kit-head { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint, #64748b); margin-top: 6px; }
.kit-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.kit-item input { width: 22px; height: 22px; flex: none; accent-color: var(--good); }
.kit-item.on { border-color: color-mix(in srgb, var(--good) 50%, var(--line)); background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
.kit-item.on b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--good) 60%, transparent); }
.kit-sum summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kit-sum { display: block; }
.kit-gate .btn { white-space: normal; text-align: center; }

/* ── Guides & What if…? ── */
.help-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; }
.help-search input { border: 0; background: transparent; flex: 1; padding: 11px 0; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.help-search .i { color: var(--ink-3); }
.help-list { display: flex; flex-direction: column; gap: 14px; }
.help-group { display: flex; flex-direction: column; gap: 8px; }
.help-topic { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 2px 2px 0; }
.help-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; }
.help-card:hover { border-color: var(--accent); }
.help-card .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.help-card.draft { border-style: dashed; }
.help-card > .i:last-child { color: var(--ink-3); flex: none; }
.help-call { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.help-call .btn { text-decoration: none; }
.help-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.help-steps li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.help-steps li.warn { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad-soft) 55%, var(--surface)); }
.help-steps .n, .help-edit-step .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.help-steps li.warn .n, .help-edit-step.warn .n { background: var(--bad); }
.help-steps .grow { min-width: 0; }
.help-text { font-size: 1.02rem; line-height: 1.5; }
.help-warn { display: flex; align-items: center; gap: 4px; color: var(--bad); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.help-photo { display: block; margin-top: 10px; }
.help-photo img { width: 100%; max-width: 560px; max-height: 70vh; object-fit: cover; border-radius: 10px; display: block; }
a.tel { color: var(--accent); font-weight: 700; white-space: nowrap; }
.help-edit-steps { display: flex; flex-direction: column; gap: 10px; }
.help-edit-step { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.help-edit-step.warn { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.help-edit-step textarea { min-width: 0; }
.hs-tools { display: flex; flex-direction: column; gap: 4px; }
.hs-thumb { display: inline-flex; align-items: center; gap: 6px; }
.hs-thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.help-job .btn { text-align: left; }
