/* Layout: one phone-width column, sticky header, fixed bottom nav, sheets slide up from the bottom. */
:root {
  --bg: #FFFFFF;
  --fg: #0A0A0A;
  --muted: #52525B;
  --line: #E4E7EC;
  --soft: #F1F5FB;
  --track: #F4F4F5;
  --accent: #002B5C;
  --accent-fg: #FFFFFF;
  --accent-soft: #E6F5FA;
  --navy: #002B5C;
  --wave: #0099C6;
  --wave-ink: #0077A0;
  --wave-soft: #E6F5FA;
  --ink: #0A0A0A;
  --ink-fg: #FFFFFF;
  --good: #15803D;
  --good-soft: #F0FDF4; --warn-soft: #FFF4E5; --bad-soft: #FDECEC;
  --warn: #B45309;
  --bad: #B91C1C;
  --blue: #1D4ED8; --blue-soft: #EFF4FF; --amber: #B45309; --amber-soft: #FFF7E6; --green: #15803D; --green-soft: #F0FDF4; --red: #B91C1C; --red-soft: #FEF2F2;
  --scrim: rgba(10, 10, 10, .45);
  --z-east: #0A0A0A;  --z-east-fg: #FFFFFF;
  --z-north: #1D4ED8; --z-north-fg: #FFFFFF;
  --z-central: #1E3A8A; --z-central-fg: #FFFFFF;
  --z-west: #60A5FA;  --z-west-fg: #0A0A0A;
  --z-south: #94A3B8; --z-south-fg: #0A0A0A;
  --z-flex: #7C3AED; --z-flex-fg: #FFFFFF;
  --z-teal: #0F766E; --z-teal-fg: #FFFFFF; --z-amber: #B45309; --z-amber-fg: #FFFFFF; --z-rose: #BE123C; --z-rose-fg: #FFFFFF; --z-lime: #4D7C0F; --z-lime-fg: #FFFFFF;
  --z-cyan: #0E7490; --z-cyan-fg: #FFFFFF; --z-pink: #BE185D; --z-pink-fg: #FFFFFF; --z-orange: #C2410C; --z-orange-fg: #FFFFFF; --z-emerald: #047857; --z-emerald-fg: #FFFFFF;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D12; --fg: #F4F5F7; --muted: #A1A7B3; --line: #262A33; --soft: #161A22; --track: #141820;
    --accent: #3DBEE6; --accent-fg: #001A38; --accent-soft: #0E2A3A; --navy: #3DBEE6; --wave: #3DBEE6; --wave-ink: #6FD0EE; --wave-soft: #0E2A3A; --ink: #F4F5F7; --ink-fg: #0B0D12;
    --good: #4ADE80; --good-soft: #10261A; --warn-soft: #2A1E0C; --bad-soft: #2C1414; --warn: #F5A524; --bad: #F87171; --scrim: rgba(0, 0, 0, .6);
    --blue: #7FA6FF; --blue-soft: #14203A; --amber: #F5A524; --amber-soft: #2A1E08; --green: #4ADE80; --green-soft: #10261A; --red: #F87171; --red-soft: #2C1414;
    --z-east: #E5E7EB; --z-east-fg: #0B0D12; --z-north: #6E95FF; --z-north-fg: #0B0D12;
    --z-central: #3B5BDB; --z-central-fg: #FFFFFF; --z-west: #93C5FD; --z-west-fg: #0B0D12;
    --z-south: #94A3B8; --z-south-fg: #0B0D12; --z-flex: #A78BFA; --z-flex-fg: #0B0D12; --z-teal: #2DD4BF; --z-teal-fg: #0B0D12; --z-amber: #FBBF24; --z-amber-fg: #0B0D12; --z-rose: #FB7185; --z-rose-fg: #0B0D12; --z-lime: #A3E635; --z-lime-fg: #0B0D12; --z-cyan: #22D3EE; --z-cyan-fg: #0B0D12; --z-pink: #F472B6; --z-pink-fg: #0B0D12; --z-orange: #FB923C; --z-orange-fg: #0B0D12; --z-emerald: #34D399; --z-emerald-fg: #0B0D12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D12; --fg: #F4F5F7; --muted: #A1A7B3; --line: #262A33; --soft: #161A22; --track: #141820;
  --accent: #3DBEE6; --accent-fg: #001A38; --accent-soft: #0E2A3A; --navy: #3DBEE6; --wave: #3DBEE6; --wave-ink: #6FD0EE; --wave-soft: #0E2A3A; --ink: #F4F5F7; --ink-fg: #0B0D12;
  --good: #4ADE80; --good-soft: #10261A; --warn-soft: #2A1E0C; --bad-soft: #2C1414; --warn: #F5A524; --bad: #F87171; --scrim: rgba(0, 0, 0, .6);
    --blue: #7FA6FF; --blue-soft: #14203A; --amber: #F5A524; --amber-soft: #2A1E08; --green: #4ADE80; --green-soft: #10261A; --red: #F87171; --red-soft: #2C1414;
  --z-east: #E5E7EB; --z-east-fg: #0B0D12; --z-north: #6E95FF; --z-north-fg: #0B0D12;
  --z-central: #3B5BDB; --z-central-fg: #FFFFFF; --z-west: #93C5FD; --z-west-fg: #0B0D12;
  --z-south: #94A3B8; --z-south-fg: #0B0D12; --z-flex: #A78BFA; --z-flex-fg: #0B0D12; --z-teal: #2DD4BF; --z-teal-fg: #0B0D12; --z-amber: #FBBF24; --z-amber-fg: #0B0D12; --z-rose: #FB7185; --z-rose-fg: #0B0D12; --z-lime: #A3E635; --z-lime-fg: #0B0D12; --z-cyan: #22D3EE; --z-cyan-fg: #0B0D12; --z-pink: #F472B6; --z-pink-fg: #0B0D12; --z-orange: #FB923C; --z-orange-fg: #0B0D12; --z-emerald: #34D399; --z-emerald-fg: #0B0D12;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Feel like an app on phones: no grey tap flash, no accidental text selection on controls, no pull-to-refresh bounce. */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
button, .tab, .chip, .fchip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topbar-in { max-width: 520px; margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.brand svg { color: var(--accent); }
.top-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 22px; display: grid; place-items: center; color: var(--fg); }
.icon-btn:hover { background: var(--soft); }
.avatar { width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 800; }

main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 120px; }
.col { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.view[hidden] { display: none !important; }

.dateline { font-size: 14px; color: var(--muted); font-weight: 600; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.sec { display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head h2 { font-size: 22px; font-weight: 800; }
.sub { font-size: 14px; color: var(--muted); }
.link { color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; background: none; border: 0; padding: 6px 0; text-align: left; align-self: flex-start; }

/* Quick actions */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qa { min-height: 86px; border: 0; border-radius: 16px; background: var(--soft); color: var(--fg); font-size: 13px; font-weight: 700; line-height: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; position: relative; text-align: center; }
.qa svg { color: var(--accent); }
.qa.primary { background: var(--accent); color: var(--accent-fg); }
.qa.primary svg { color: var(--accent-fg); }
.qa:hover { filter: brightness(.97); }
.badge { position: absolute; top: 7px; right: 7px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font-size: 11px; display: grid; place-items: center; }

/* Numbers */
.hero-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-num { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 800; }
.stat .v small { font-size: 14px; font-weight: 600; color: var(--muted); }
.stat .s { font-size: 12px; color: var(--muted); }
.row-btn { min-height: 54px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 14px; text-align: left; }
.row-btn:hover { background: var(--soft); }
.row-btn .l { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.row-btn .l svg { color: var(--muted); }

/* Schedule */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { flex: none; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.chip small { font-size: 10px; font-weight: 700; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); font-weight: 700; }
.chip[aria-pressed="true"] small { color: inherit; opacity: .75; }
.timeline { display: flex; flex-direction: column; gap: 6px; }
.hours { display: flex; margin-left: 66px; font-size: 11px; color: var(--muted); font-weight: 700; }
.hours span { flex: 1; }
.lane { display: flex; align-items: center; gap: 8px; }
.lane-name { width: 58px; flex: none; font-weight: 700; font-size: 14px; }
.lane-name.open { color: var(--accent); }
.lane-name .lz { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.role-opt[disabled] { opacity: .45; cursor: not-allowed; }
.city-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.zrow-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.sheet-h3 { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 0; }
.wlist { display: flex; flex-direction: column; }
.wrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wrow .m { display: flex; flex-direction: column; min-width: 0; }
.wrow .m span { font-size: 13px; color: var(--muted); }
.wrow .frow { flex: none; }
.res-hero { gap: 8px; }
.res-big { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.res-break { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 6px; }
.rrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.rrow .rl { flex: 1; min-width: 0; }
.rrow .rv { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rrow .rd { font-size: 12px; font-weight: 800; min-width: 54px; text-align: right; color: var(--muted); }
.rrow .rd.good { color: var(--good); } .rrow .rd.bad { color: var(--warn); }
.res-how summary { cursor: pointer; }
.res-how ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.res-how li b { color: var(--fg); }
.tpat { display: flex; flex-direction: column; gap: 6px; }
.tpat-h { display: flex; gap: 8px; align-items: baseline; }
.track { flex: 1; position: relative; height: 58px; border-radius: 10px; background: var(--track); }
.track.open { background: transparent; border: 1.5px dashed var(--accent); opacity: .9; }
.track .now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--bad); border-radius: 1px; pointer-events: none; }
.job { position: absolute; top: 4px; bottom: 4px; border: 0; border-radius: 8px; font-size: 11px; font-weight: 700; padding: 4px 6px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.25; display: flex; flex-direction: column; justify-content: center; }
.job span { overflow: hidden; text-overflow: ellipsis; }
.job .st { font-weight: 600; opacity: .85; }
.job.done { background: var(--line) !important; color: var(--muted) !important; }
.job.unassigned { background: var(--accent) !important; color: var(--accent-fg) !important; }
.day-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.day-foot b { color: var(--fg); }
.nudge { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.btn { height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-fg); font-weight: 700; flex: none; }
.btn.ghost { background: var(--soft); color: var(--fg); }
.btn.danger { background: transparent; color: var(--bad); border: 1.5px solid var(--line); }
.btn.danger.armed { background: var(--bad); color: #FFFFFF; border-color: var(--bad); }
.btn.block { width: 100%; height: 50px; font-size: 16px; }

/* Sales */
.pace-top { display: flex; justify-content: space-between; align-items: baseline; }
.pace-bar { position: relative; height: 18px; border-radius: 9px; background: var(--soft); }
.pace-fill { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: var(--accent); transition: width .3s; }
.pace-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--fg); }
.pace-line { font-size: 13px; font-weight: 600; }
.ahead-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ahead { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.ahead .k { font-size: 12px; color: var(--muted); }
.ahead .v { font-size: 18px; font-weight: 800; }
.inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.stepper, .money-in { display: flex; align-items: center; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--fg); background: var(--bg); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; color: var(--accent); }
.stepper output { flex: 1; text-align: center; font-size: 16px; font-weight: 700; }
.money-in { padding: 0 12px; gap: 4px; font-size: 16px; }
.money-in input { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 700; outline: none; }
.divider { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }

/* Fill view */
.back-row { display: flex; align-items: center; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.slot-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 5px; display: inline-block; flex: none; }
.sent { height: 44px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 700; display: grid; place-items: center; }
.empty { border: 1.5px dashed var(--line); border-radius: 16px; padding: 24px; text-align: center; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }

/* Numbers sub tab */
#paneNumbers[hidden], #paneOverview[hidden], #paneGrow[hidden] { display: none !important; }
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.counter { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.counter .k { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.counter .v { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.counter .s { font-size: 12px; color: var(--muted); }
.counter .s b.up { color: var(--good); }
.counter .s b.down { color: var(--warn); }
.counter.bump .v { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.15); color: var(--accent); } }
.tip-card { background: var(--soft); border-radius: 18px; padding: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tip-split { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; max-width: 220px; }
.tip-split div { display: flex; justify-content: space-between; font-size: 14px; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.bar-top .name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.bar { position: relative; height: 12px; border-radius: 6px; background: var(--track); overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 6px; transition: width .3s; }
.bar > span.done { background: var(--accent); }
.bar > span.sched { background: var(--accent); opacity: .35; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); display: block; }

/* Calendar */
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-nav .icon-btn:disabled { opacity: .35; cursor: default; }
.cal-title { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 17px; }
.week-list { display: flex; flex-direction: column; gap: 10px; }
.wday { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.wday-head { width: 100%; min-height: 54px; border: 0; background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; text-align: left; }
.wday-head .l { display: flex; align-items: center; gap: 8px; }
.wday-head .r { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.mini-slots { display: grid; grid-template-columns: repeat(6, 8px); gap: 3px; }
.mini-slots i { height: 14px; border-radius: 3px; display: block; border: 1.5px solid var(--line); }
.wjob { width: 100%; min-height: 50px; border: 0; border-top: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 6px 14px; text-align: left; }
.wjob:hover { background: var(--soft); }
.wjob .t { width: 70px; flex: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.wjob .m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wjob .m span { font-size: 13px; color: var(--muted); }
.pill { flex: none; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--soft); color: var(--muted); }
.pill.live { background: var(--ink); color: var(--ink-fg); }
.pill.assign { background: var(--accent); color: var(--accent-fg); }
.wday-empty { border-top: 1px solid var(--line); padding: 14px; font-size: 14px; color: var(--muted); }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.mcell { aspect-ratio: 1 / 1.15; max-width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); padding: 4px; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; font-size: 13px; text-align: left; min-width: 0; }
.mcell .n { font-weight: 700; }
.mcell .c { font-size: 10px; color: var(--muted); font-weight: 700; }
.mcell .zb { height: 4px; border-radius: 2px; display: block; }
.mcell.off { background: transparent; border-style: dashed; color: var(--muted); }
.mcell.past { opacity: .45; }
.mcell.today { border-color: var(--ink); border-width: 2px; }
.mcell:disabled { cursor: default; }
.mcell.blank { border: 0; background: transparent; }
.zone-key { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); }
.zone-key span { display: flex; align-items: center; gap: 6px; }

/* Customers */
.searchbox { display: flex; align-items: center; gap: 8px; height: 48px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 12px; background: var(--bg); }
.searchbox svg { color: var(--muted); flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; }
.cust-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cust-sum button { border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cust-sum button[aria-pressed="true"] { border-color: var(--ink); border-width: 2px; padding: 9.5px 11.5px; }
.cust-sum .v { font-size: 24px; font-weight: 800; }
.cust-sum .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.frow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.frow::-webkit-scrollbar { display: none; }
.fchip { flex: none; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.fchip .n { font-size: 12px; color: var(--muted); font-weight: 700; }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ink-fg); font-weight: 700; }
.fchip[aria-pressed="true"] .n { color: inherit; opacity: .75; }
.clist { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.crow { width: 100%; min-height: 66px; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 8px 14px; text-align: left; }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: var(--soft); }
.ava { width: 40px; height: 40px; border-radius: 20px; flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.crow .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.crow .m b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crow .m span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .m span.due { color: var(--warn); font-weight: 600; }
.crow .chev { color: var(--muted); flex: none; }
.searchrow { display: flex; gap: 8px; }
.searchrow .searchbox { flex: 1; min-width: 0; }
.filterbtn { height: 48px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); padding: 0 12px; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; flex: none; }
.fbadge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
#custChips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
#custChips::-webkit-scrollbar { display: none; }
#custChips > * { flex: none; }
.crow .m .zl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .m .tags { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.ctag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); border-radius: 6px; padding: 1px 6px; }
.custmeta .link { font-size: 13px; padding: 0; }
.view-chip { padding: 0; gap: 0; border-style: dashed; }
.view-chip button { border: 0; background: none; height: 100%; padding: 0 6px 0 14px; font: inherit; color: inherit; }
.view-chip button + button { padding: 0 12px 0 4px; color: var(--muted); }
.activechips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.activechips:empty { display: none; }
.achip { height: 34px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; padding: 0 12px; }
.custmeta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: -6px; }
.sortsel { display: flex; align-items: center; gap: 6px; }
.sortsel select { border: 0; background: transparent; color: var(--fg); font: inherit; font-weight: 700; min-height: 40px; }
.crow2 { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--bg); }
.crow2:last-child { border-bottom: 0; }
.crow2 .crow { border-bottom: 0; flex: 1; min-width: 0; }
.crow .m b .star { color: var(--warn); font-size: 13px; margin-left: 4px; }
.crow .m b .warnic { color: #fff !important; font-weight: 800; margin-left: 6px; display: inline-grid !important; vertical-align: 1px; }
.crow .warnic { width: 18px; height: 18px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 12px; display: grid; place-items: center; }
.crow .rt { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; font-size: 13px; }
.crow .rt span { color: var(--muted); }
.crow .rt b.due { color: var(--warn); } .crow .rt b.muted { color: var(--muted); font-weight: 600; }
.bookmini { border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--accent); font-weight: 800; font-size: 14px; padding: 0 14px; }
.fgrp { display: flex; flex-direction: column; gap: 4px; }
.fopt { display: flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; color: var(--fg); font: inherit; font-size: 15px; text-align: left; padding: 0; }
.fopt .l { flex: 1; } .fopt .n { color: var(--muted); font-size: 13px; }
.fopt .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; color: transparent; font-size: 13px; font-weight: 800; }
.fopt[aria-checked="false"] .box { visibility: visible; font-size: 0; }
.fopt[aria-checked="true"] .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.mbadge { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.wbadge { font-size: 11px; font-weight: 700; color: var(--warn); background: var(--soft); border-radius: 999px; padding: 2px 8px; }
.c-head { display: flex; align-items: center; gap: 12px; }
.c-head .ava { width: 52px; height: 52px; border-radius: 26px; font-size: 18px; }
.c-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c-stats div { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.c-stats .k { font-size: 12px; color: var(--muted); }
.c-stats .v { font-size: 18px; font-weight: 800; }
.htl { display: flex; flex-direction: column; }
.hmonth { font-size: 13px; font-weight: 800; color: var(--muted); margin: 14px 0 4px; }
.hrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hrow .hi { width: 32px; height: 32px; border-radius: 16px; flex: none; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.hrow .m { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 14px; }
.hrow .m span { color: var(--muted); font-size: 13px; }
.hrow time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.hi.done, .hi.paid { background: var(--good); color: #fff; } .hi.booked, .hi.plan { background: var(--accent-soft); color: var(--accent); }
.hi.resched { background: var(--soft); color: var(--fg); } .hi.cancel, .hi.noshow, .hi.pay { background: var(--soft); color: var(--warn); }
.relline { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.c-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-stats.four .v { font-size: 17px; }
.c-sect { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.vrow .btn { height: 40px; padding: 0 12px; font-size: 14px; }
.form textarea { font-family: inherit; min-height: 84px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); color: var(--fg); font-size: 16px; font-weight: 500; resize: vertical; }

/* Crew */
.live { display: flex; flex-direction: column; gap: 10px; }
.lcard { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); text-align: left; width: 100%; }
.lcard:hover { background: var(--soft); }
.lcard .top { display: flex; align-items: center; gap: 12px; }
.lcard .top .m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lcard .top .m span { font-size: 13px; color: var(--muted); }
.spill { flex: none; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: var(--soft); color: var(--muted); }
.spill.onsite { background: var(--ink); color: var(--ink-fg); }
.spill.driving { background: var(--accent-soft); color: var(--accent); }
.spill.free { background: var(--good-soft); color: var(--good); }
.spill.amber { background: var(--amber-soft); color: var(--amber); }
.prog { display: flex; gap: 4px; }
.prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); display: block; }
.prog i.d { background: var(--accent); }
.prog i.n { background: var(--ink); }
.lcard .nx { font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.lcard .nx span:last-child { color: var(--muted); }
.crew-ava { background: var(--ink); color: var(--ink-fg); }
.dpick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dpick button { height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 700; }
.dpick button[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--bg); width: 100%; text-align: left; }
.sw .knob { width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.sw .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #FFFFFF; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw[aria-checked="true"] .knob { background: var(--accent); }
.sw[aria-checked="true"] .knob::after { transform: translateX(18px); }
.inactive { opacity: .55; }

/* More / business setup */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.type { border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.type b { font-size: 15px; }
.type span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.type[aria-pressed="true"] { border: 2px solid var(--accent); padding: 11.5px; background: var(--accent-soft); }
.svc-list { display: flex; flex-direction: column; gap: 8px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 92px; gap: 8px; align-items: center; }
.svc-row input { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--bg); color: var(--fg); font-size: 15px; min-width: 0; width: 100%; }
.svc-row .hrs { font-size: 13px; color: var(--muted); text-align: center; }
.biz-line { color: var(--muted); }

.plan-list { display: flex; flex-direction: column; gap: 8px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 44px; gap: 8px; align-items: center; }
.plan-row input { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--bg); color: var(--fg); font-size: 15px; min-width: 0; width: 100%; }
.plan-row .meta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: -4px; }
.plan-row .meta.warn { color: var(--bad); font-weight: 600; }
.plan-row .x { width: 44px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); display: grid; place-items: center; }
.plan-row .x.armed { background: var(--bad); border-color: var(--bad); color: #FFFFFF; }
.plan-row .x:disabled { opacity: .35; cursor: default; }
.plan-sel { height: 44px; max-width: 170px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 8px; background: var(--bg); color: var(--fg); font-size: 14px; font-weight: 600; flex: none; }

/* Roles */
body.mgr [data-owner-only] { display: none !important; }
body:not(.mgr) [data-mgr-only] { display: none !important; }
.rolebar { background: var(--ink); color: var(--ink-fg); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rolebar-in { max-width: 520px; margin: 0 auto; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; }
.rolebar button { background: transparent; border: 1.5px solid currentColor; color: inherit; border-radius: 999px; height: 36px; padding: 0 12px; font-size: 13px; font-weight: 700; }
.role-opt { width: 100%; min-height: 60px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 8px 14px; text-align: left; }
.role-opt[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); }
.role-opt .m { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.role-opt .m span { font-size: 13px; color: var(--muted); }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.radio span { display: flex; flex-direction: column; gap: 2px; }
.radio small { font-size: 13px; color: var(--muted); }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio select { margin-top: 6px; height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--bg); color: var(--fg); font-size: 14px; }
.sw-list { display: flex; flex-direction: column; gap: 8px; }

/* Crew app */
body.crewmode .tabbar, body.crewmode #view-today, body.crewmode #view-fill, body.crewmode #view-calendar, body.crewmode #view-customers, body.crewmode #view-crew, body.crewmode #view-more, body.crewmode #view-grow, body.crewmode #view-widget, body.crewmode #view-fill, body.crewmode #view-payments, body.crewmode #view-results, body.crewmode #view-zones, body.crewmode #view-setup, body.crewmode #view-addcity { display: none !important; }
body:not(.crewmode) #view-crewapp, body:not(.crewmode) .crewbar { display: none !important; }
.ca-hello { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.clockcard { background: var(--ink); color: var(--ink-fg); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.clockcard .big { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.clockcard .muted { color: inherit; opacity: .7; font-size: 14px; }
.clockcard .btn { background: var(--ink-fg); color: var(--ink); height: 58px; font-size: 18px; }
.clockstrip { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px 10px 14px; }
.clockstrip .l { display: flex; flex-direction: column; min-width: 0; }
.clockstrip .l b { font-size: 15px; }
.clockstrip .l span { font-size: 13px; color: var(--muted); }
.clockstrip .r { display: flex; gap: 6px; flex: none; }
.clockstrip .btn { height: 42px; padding: 0 12px; font-size: 14px; }
.dot-live { width: 10px; height: 10px; border-radius: 5px; background: var(--good); display: inline-block; margin-right: 6px; }
.mystats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mystats div { background: var(--soft); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.mystats .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.mystats .v { font-size: 20px; font-weight: 800; }
.nextcard { border: 2px solid var(--ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.nextcard .tag { align-self: flex-start; }
.nextcard .who { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.nextcard .what { font-size: 16px; color: var(--muted); font-weight: 600; }
.nextcard .facts { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.fact { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.fact svg { flex: none; color: var(--muted); margin-top: 2px; }
.fact .copy { margin-left: auto; flex: none; border: 0; background: var(--soft); border-radius: 8px; height: 32px; padding: 0 10px; font-size: 13px; font-weight: 700; }
.bigbtn { height: 64px; border-radius: 16px; border: 0; background: var(--accent); color: var(--accent-fg); font-size: 19px; font-weight: 800; width: 100%; }
.bigbtn.finish { background: var(--good); color: var(--bg); }
.textbtn { background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 15px; min-height: 44px; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); display: block; }
.steps i.on { background: var(--accent); }
.check { display: flex; align-items: center; gap: 12px; min-height: 56px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; font-size: 16px; font-weight: 600; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo-slot { aspect-ratio: 4 / 3; max-width: 100%; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.photo-slot .ph-tag { margin-top: auto; align-self: stretch; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 0 0 12px 12px; }
.photo-slot.has[style] { padding: 0; overflow: hidden; justify-content: flex-end; }
.photo-slot.has { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tipchips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tipchips button { height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.tipchips button small { font-size: 11px; color: var(--muted); font-weight: 600; }
.tipchips button[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.tipchips button[aria-pressed="true"] small { color: inherit; opacity: .75; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.total b { font-size: 30px; font-weight: 800; }
.paid-ok { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.paid-ok .circle { width: 72px; height: 72px; border-radius: 36px; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }
.crewbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.crewbar-in { max-width: 520px; margin: 0 auto; display: flex; }
.crewbar .tab { flex: 1; font-size: 14px; }
.lockhint { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 0; }

/* AI setup + suggestions */
.tdo-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); padding: 8px 14px; text-align: left; margin-top: -14px; }
.tdo-row:hover { background: var(--soft); }
.tdo-row .m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tdo-row .m b { font-size: 15px; }
.tdo-row .m span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdo-row .chev { color: var(--muted); flex: none; }
.tdo-ic { width: 36px; height: 36px; border-radius: 18px; background: var(--soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.tdo-list { display: flex; flex-direction: column; }
.tdo-item { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tdo-item:last-child { border-bottom: 0; }
.tdo-item p { margin: 0; font-size: 15px; line-height: 1.4; }
.tdo-item .acts { display: flex; gap: 8px; }
.tdo-item .btn { height: 40px; font-size: 14px; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 10px; }
.ai-badge svg, .why svg { flex: none; }
.think { display: flex; flex-direction: column; gap: 14px; }
.tline { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; opacity: 0; animation: tl .35s ease-out forwards; }
.tdot { width: 10px; height: 10px; border-radius: 5px; background: var(--accent); flex: none; }
@keyframes tl { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rcard { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rcard h2 { font-size: 18px; font-weight: 800; }
.why { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--accent); font-weight: 600; line-height: 1.4; }
.why svg { margin-top: 2px; }
.zrow { display: grid; grid-template-columns: 12px minmax(0, 1fr) 38px minmax(0, 1.1fr); gap: 8px; align-items: center; }
.zrow input { height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--bg); color: var(--fg); font-size: 15px; min-width: 0; width: 100%; }
.zday { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.ai-cards { display: flex; flex-direction: column; gap: 8px; }
.ai-cards:empty { display: none; }
.ai-card { background: var(--accent-soft); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-card p { margin: 0; font-size: 15px; line-height: 1.4; }
.ai-card .acts { display: flex; gap: 8px; }
.ai-card .acts .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.ai-card .acts .btn.ghost { background: transparent; }
.setup-cta { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--accent); border-radius: 16px; padding: 14px; background: var(--bg); width: 100%; text-align: left; }
.setup-cta .m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.setup-cta .m span { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tline { animation: none; opacity: 1; } }

/* Welcome (first open, no link) */
body.welcomemode .tabbar, body.welcomemode .crewbar, body.welcomemode main > .view:not(#view-welcome), body.welcomemode #acctBtn { display: none !important; }
body:not(.welcomemode) #view-welcome { display: none !important; }
body.custmode .tabbar, body.custmode .crewbar, body.custmode main > .view:not(#view-portal) { display: none !important; }
body:not(.custmode) #view-portal { display: none !important; }
.pt-head { display: flex; gap: 12px; align-items: center; }
.pt-logo { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: var(--accent-fg, #fff); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.pt-live { gap: 12px; border-color: var(--accent); }
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.pt-steps li { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); }
.pt-steps li.past { color: var(--fg); border-top-color: var(--accent); }
.pt-steps li.now { color: var(--accent); border-top-color: var(--accent); }
.wl-hero { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
body.welcomemode .topbar { display: none; }
.wl-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wl-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.wl-mark { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
.wl-title { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
@media (max-width: 359px) { .wl-title { font-size: 26px; } }
.wl-sub { font-size: 17px; color: var(--muted); margin: 0; line-height: 1.4; }
.wl-points { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wl-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.wl-points svg { flex: none; color: var(--accent); margin-top: 1px; }
.wl-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.wl-or::before, .wl-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wl-alt { width: 100%; min-height: 64px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; }
.wl-alt .m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wl-alt .m span { font-size: 13px; color: var(--muted); }
.wl-alt .ic { width: 40px; height: 40px; border-radius: 20px; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--fg); }
.apple-btn { height: 52px; border-radius: 14px; border: 0; background: #000000; color: #FFFFFF; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.google-btn { height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }

/* Zones */
.zmap svg { width: 100%; height: auto; display: block; }
.zmap figcaption { margin-top: 6px; }
.zshape { stroke: var(--bg); stroke-width: 3; }
.pat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pcell { border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; min-width: 0; }
.pd { font-size: 12px; font-weight: 700; color: var(--muted); }
.pz { font-size: 10.5px; font-weight: 800; border-radius: 8px; padding: 4px 1px; width: 100%; text-align: center; overflow: hidden; text-overflow: clip; white-space: nowrap; letter-spacing: -0.2px; font-size: 10px; line-height: 1.15; }
.pz.closed { background: var(--soft); color: var(--muted); }
.row2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.zcard { gap: 10px; }
.zname { border: 0; background: transparent; font-size: 17px; font-weight: 800; color: var(--fg); padding: 4px 0; min-width: 0; width: 100%; min-height: 40px; }
.zips-l { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.zips-l input { height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--bg); color: var(--fg); font-size: 15px; }

/* Bottom nav */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.tabbar-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 360px) { .tabbar .tab { font-size: 10px; letter-spacing: -0.01em; padding-left: 0; padding-right: 0; min-width: 0; } }
.tab { height: 60px; border: 0; background: transparent; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding-block: 10px calc(20px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 20px; font-weight: 800; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form input, .form select { height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--bg); color: var(--fg); font-size: 16px; font-weight: 500; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 140px; }
.list { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; }
.list > div { min-height: 56px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); padding: 8px 0; }
.list > div:last-child { border-bottom: 0; }
.copy-box { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 12px; }
.copy-box code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14px; user-select: all; }

.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; background: var(--ink); color: var(--ink-fg); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .pace-fill { transition: none; } }
@media (max-width: 360px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-num { font-size: 44px; } }

/* ---- Zone Builder (setup tab) ---- */
.zb-root { container: zb / inline-size; --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-family: var(--font); font-size: 15px; line-height: 1.45; font-variant-numeric: normal; --card: var(--bg); --map-bg: #EEF2F7; --map-out: #DCE2EA; --map-line: rgba(255,255,255,.9); --map-edge: #0B1220; --z0: #2563EB; --z0-fg: var(--bg); --z1: #D97706; --z1-fg: var(--bg); --z2: #16A34A; --z2-fg: var(--bg); --z3: #E11D48; --z3-fg: var(--bg); --z4: #7C3AED; --z4-fg: var(--bg); --z5: #0D9488; --z5-fg: var(--bg); --z6: #EA580C; --z6-fg: var(--bg); --z7: #0891B2; --z7-fg: var(--bg); --z8: #DB2777; --z8-fg: var(--bg); --z9: #65A30D; --z9-fg: var(--bg); display: flex; flex-direction: column; gap: 18px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zb-root { --map-bg: #121925; --map-out: #1A2230; --map-line: rgba(11,15,23,.85); --map-edge: #E8ECF3; --z0: #60A5FA; --z1: #FBBF24; --z2: #4ADE80; --z3: #FB7185; --z4: #A78BFA; --z5: #2DD4BF; --z6: #FB923C; --z7: #22D3EE; --z8: #F472B6; --z9: #A3E635; } }
:root[data-theme="dark"] .zb-root { --map-bg: #121925; --map-out: #1A2230; --map-line: rgba(11,15,23,.85); --map-edge: #E8ECF3; --z0: #60A5FA; --z1: #FBBF24; --z2: #4ADE80; --z3: #FB7185; --z4: #A78BFA; --z5: #2DD4BF; --z6: #FB923C; --z7: #22D3EE; --z8: #F472B6; --z9: #A3E635; }
.zb-root .zb-wrap { max-width: 1240px; margin: 0 auto; padding-block: 20px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 20px; }
.zb-root header.zb-top { display: flex; align-items: center; gap: 10px; }
.zb-root header.zb-top .zb-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
.zb-root header.zb-top b { font-size: 17px; }
.zb-root header.zb-top .zb-tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 5px 10px; }
.zb-root h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.zb-root .zb-lede { color: var(--muted); margin: 6px 0 0; max-width: 62ch; }
.zb-root .zb-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@container zb (min-width: 99999px) {
.zb-root .zb-grid { grid-template-columns: 340px minmax(0, 1fr); }
.zb-root .zb-rail { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
}
.zb-root .zb-panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.zb-root .zb-rail .zb-panel { gap: 18px; }
.zb-root .zb-field { display: flex; flex-direction: column; gap: 6px; }
.zb-root .zb-field > span.zb-l, .zb-root label.zb-l { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.zb-root .zb-citychips { display: flex; flex-wrap: wrap; gap: 6px; }
.zb-root .zb-citychips button { border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.zb-root .zb-citychips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.zb-root .zb-field .zb-hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.zb-root input[type=text], .zb-root select { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); padding: 0 12px; font: inherit; font-size: 16px; width: 100%; min-width: 0; }
.zb-root input[type=text]:focus-visible, .zb-root select:focus-visible, .zb-root button:focus-visible, .zb-root canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.zb-root input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.zb-root .zb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.zb-root .zb-chip { height: 40px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.zb-root .zb-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.zb-root .zb-stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; height: 46px; overflow: hidden; }
.zb-root .zb-stepper button { height: 100%; border: 0; background: var(--soft); color: var(--fg); font-size: 20px; font-weight: 700; cursor: pointer; }
.zb-root .zb-stepper button:disabled { opacity: .35; cursor: default; }
.zb-root .zb-stepper output { text-align: center; font-weight: 800; font-size: 16px; }
.zb-root .zb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zb-root .zb-auto { font-size: 11px; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; }
.zb-root .zb-linkbtn { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; }
.zb-root .zb-btn { height: 48px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 800; font-size: 15px; padding: 0 18px; cursor: pointer; }
.zb-root .zb-btn.zb-ghost { background: var(--soft); color: var(--fg); }
.zb-root .zb-btn:disabled { opacity: .5; cursor: default; }
.zb-root .zb-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.zb-root .zb-mapcard { padding: 0; overflow: hidden; gap: 0; }
.zb-root .zb-maphead { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; padding: 14px 18px 10px; }
.zb-root .zb-maphead h2 { font-size: 18px; margin: 0; }
.zb-root .zb-maphead .zb-sub { color: var(--muted); font-size: 13px; }
.zb-root .zb-canvas-box { position: relative; background: var(--map-bg); aspect-ratio: 4 / 3; max-width: 100%; }
@container zb (min-width: 480px) {
.zb-root .zb-canvas-box { aspect-ratio: 16 / 10; }
}
.zb-root canvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: manipulation; }
.zb-root .zb-mapnote { font-size: 12.5px; color: var(--muted); padding: 10px 18px 14px; margin: 0; }
.zb-root .zb-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0 18px 4px; font-size: 13px; font-weight: 600; }
.zb-root .zb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zb-root .zb-dot { width: 11px; height: 11px; border-radius: 4px; flex: none; display: inline-block; }
.zb-root .zb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@container zb (max-width: 560px) {
.zb-root .zb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.zb-root .zb-stat { background: var(--soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zb-root .zb-stat .zb-k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.zb-root .zb-stat .zb-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.zb-root .zb-stat .zb-s { font-size: 12px; color: var(--muted); }
.zb-root .zb-stat.zb-good .zb-v { color: var(--good); }
.zb-root section h2 { font-size: 18px; margin: 0; }
.zb-root .zb-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.zb-root .zb-sec-head .zb-sub { color: var(--muted); font-size: 13px; }
.zb-root .zb-pattern-scroll { overflow-x: auto; }
.zb-root table.zb-pat { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 420px; }
.zb-root table.zb-pat th { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; padding: 2px; }
.zb-root table.zb-pat th.zb-team { text-align: left; white-space: nowrap; padding-right: 6px; color: var(--fg); }
.zb-root table.zb-pat td { text-align: center; }
.zb-root .zb-pz { display: block; border-radius: 8px; padding: 7px 4px; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; margin: 0 auto; }
.zb-root .zb-pz.zb-off { background: var(--soft); color: var(--muted); font-weight: 600; }
.zb-root .zb-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.zb-root .zb-zcard { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--card); min-width: 0; }
.zb-root .zb-zcard .zb-h { display: flex; align-items: center; gap: 8px; }
.zb-root .zb-zcard .zb-swatch { width: 14px; height: 14px; border-radius: 5px; flex: none; }
.zb-root .zb-zcard input.zb-zname { text-overflow: ellipsis; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 16px; color: var(--fg); padding: 2px 0; min-width: 0; flex: 1; height: auto; }
.zb-root .zb-zcard input.zb-zname:hover { text-decoration: underline dotted var(--muted); }
.zb-root .zb-zcard .zb-when { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.zb-root .zb-zips { display: flex; flex-wrap: wrap; gap: 5px; }
.zb-root .zb-zip { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 7px; padding: 3px 7px; background: var(--soft); border: 0; color: var(--fg); cursor: pointer; font-family: inherit; }
.zb-root .zb-zip.zb-pinned { box-shadow: inset 0 0 0 1.5px var(--accent); }
.zb-root .zb-zmeta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; color: var(--muted); }
.zb-root .zb-zmeta b { display: block; color: var(--fg); font-size: 15px; font-variant-numeric: tabular-nums; }
.zb-root .zb-bal { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.zb-root .zb-bal span { display: block; height: 100%; border-radius: 3px; }
.zb-root .zb-ask { display: flex; flex-direction: column; gap: 10px; }
.zb-root .zb-ask form { display: flex; gap: 8px; }
.zb-root .zb-ask form input { flex: 1; }
.zb-root .zb-tries { display: flex; flex-wrap: wrap; gap: 6px; }
.zb-root .zb-try { border: 1.5px dashed var(--line); background: transparent; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; color: var(--fg); cursor: pointer; }
.zb-root .zb-chat { display: flex; flex-direction: column; gap: 8px; }
.zb-root .zb-msg { border-radius: 14px; padding: 10px 12px; font-size: 14px; max-width: 92%; }
.zb-root .zb-msg.zb-me { align-self: flex-end; background: var(--accent); color: var(--accent-fg); }
.zb-root .zb-msg.zb-ai { align-self: flex-start; background: var(--soft); }
.zb-root .zb-msg.zb-ai b { font-weight: 800; }
.zb-root .zb-changes { display: flex; flex-wrap: wrap; gap: 6px; }
.zb-root .zb-changes span { font-size: 12.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 10px; }
.zb-root .zb-changes button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0 0 0 4px; }
.zb-root .zb-empty { border: 1.5px dashed var(--line); border-radius: 16px; padding: 28px 18px; text-align: center; color: var(--muted); }
.zb-root .zb-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zb-root .zb-foot p { margin: 0; color: var(--muted); font-size: 13px; flex: 1 1 260px; }
.zb-root .zb-pop { position: absolute; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 12px; width: 240px; display: flex; flex-direction: column; gap: 8px; }
.zb-root .zb-pop .zb-t { font-weight: 800; }
.zb-root .zb-pop .zb-s { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.zb-root .zb-pop .zb-opts { display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; }
.zb-root .zb-pop .zb-opts button { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: var(--soft); color: var(--fg); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.zb-root .zb-pop .zb-opts button[aria-current="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.zb-root .zb-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; max-width: min(92vw, 520px); z-index: 20; }
.zb-root .zb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
.zb-root .zb-msg, .zb-root .zb-toast { animation: zbrise .2s ease-out; }
@keyframes zbrise{ from { transform: translateY(6px); opacity: .4; } }
.zb-root .zb-toast { animation-name: zbrise2; }
@keyframes zbrise2{ from { transform: translate(-50%, 6px); opacity: .4; } }
}
.zb-root .zb-wrap { padding: 0; max-width: none; }
.zb-root .zb-grid { grid-template-columns: 1fr !important; }
.zb-root .zb-rail { position: static !important; }


/* Grow, booking widget, routes */
.route-cards { display: flex; flex-direction: column; gap: 8px; margin-top: -14px; }
.route-cards .tdo-row { margin-top: 0; }
.gbest { background: var(--accent-soft); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.gbest .k { font-size: 13px; font-weight: 700; color: var(--accent); }
.gbest b { font-size: 22px; letter-spacing: -.01em; }
.gbest > span:not(.k) { color: var(--muted); font-size: 14px; }
.gbest .btn { align-self: flex-start; margin-top: 8px; }
.gslots { display: flex; gap: 3px; flex: none; }
.gslots i { width: 10px; height: 16px; border-radius: 3px; border: 1.5px solid var(--line); display: block; }
.gslots i.on { border-color: transparent; }
.gtag { flex: none; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.gtag.good { background: var(--good-soft); color: var(--good); }
.gtag.warn { background: color-mix(in srgb, var(--warn) 14%, var(--bg)); color: var(--warn); }
.gtag.ok { background: var(--accent-soft); color: var(--accent); }
.gzrow .m span { white-space: nowrap; }
.gup { color: var(--good); }
.gch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gopt { border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 84px; }
.gopt svg { color: var(--accent); }
.gopt span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.gopt[aria-pressed="true"] { border: 2px solid var(--accent); padding: 9.5px 11.5px; background: var(--accent-soft); }
.goffer { background: var(--soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.goffer > span { color: var(--muted); font-size: 14px; }
.gqr { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--accent); font-weight: 600; }
.gqr svg { flex: none; border-radius: 6px; }
.gsave { background: var(--good-soft); color: var(--good); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gsave b { font-size: 17px; }
.gcmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gcmp > div { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gcmp .k { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.gmap { width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--track); border-radius: 10px; }
.glist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.glist li span { display: block; color: var(--muted); font-size: 12px; }
.wframe { border: 1.5px solid var(--line); border-radius: 22px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.wbrand { display: flex; align-items: center; gap: 10px; }
.wlogo { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 800; }
.wh { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.wzone { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.wzone .dot { margin-top: 5px; }
.wzone > span:last-child { display: flex; flex-direction: column; }
.wzone > span:last-child span { color: var(--muted); font-size: 13px; }
.wcode { flex-basis: 100%; display: block; font-size: 12px; background: var(--soft); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; color: var(--muted); }
.ghang { background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.ghang b { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.ghang > span:not(.acts) { font-size: 14px; color: var(--fg); }
.ghang .acts { display: flex; gap: 8px; margin-top: 6px; }
.ghang .btn { height: 44px; flex: 1; }

/* Help chat */
.help-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--good-soft); color: var(--good); border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin: -14px 0 0; }
.help-banner .link { color: var(--good); text-decoration: underline; flex: none; padding: 0; }
.hmsgs { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow-y: auto; }
.hmsg { align-self: flex-start; max-width: 85%; background: var(--soft); border-radius: 14px; padding: 8px 12px; font-size: 15px; }
.hmsg.me { align-self: flex-end; background: var(--accent); color: var(--accent-fg); }
.hmsg .by { display: block; font-size: 11px; font-weight: 700; opacity: .8; margin-bottom: 2px; }

/* Computers: the bottom tab bar becomes a left sidebar */
@media (min-width: 900px) {
  .tabbar, .crewbar { top: 0; bottom: 0; right: auto; width: 208px; border-top: 0; border-right: 1px solid var(--line); padding: 76px 10px 16px; padding-left: max(10px, env(safe-area-inset-left, 0px)); z-index: 4; }
  body:has(#roleBar:not([hidden])) .tabbar, body:has(#roleBar:not([hidden])) .crewbar { padding-top: 116px; }
  .tabbar-in, .crewbar-in { display: flex; flex-direction: column; gap: 2px; max-width: none; margin: 0; }
  .tab, .crewbar .tab { flex: none; height: 44px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; font-size: 15px; font-weight: 600; border-radius: 10px; }
  .tab:hover { background: var(--soft); color: var(--fg); }
  .tab[aria-current="page"] { background: var(--accent-soft); }
  .topbar, .rolebar { position: relative; z-index: 6; }
  .topbar { position: sticky; }
  body:not(.welcomemode):not(.custmode) main { padding-left: 232px; }
  body:not(.welcomemode):not(.custmode) .topbar-in, body:not(.welcomemode):not(.custmode) .rolebar-in { max-width: none; }
}

/* ---------- Plans: Solo / Full (brand navy + wave from the logo) ---------- */
.gtag.ok { background: var(--wave-soft); color: var(--wave-ink); }
.gtag svg { vertical-align: -3px; margin-right: 2px; width: 13px; height: 13px; }
.plancur { display: flex; flex-direction: column; gap: 10px; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; }
.plancur .row2, .plancard .row2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pname { font-size: 18px; color: var(--navy); }
.planpick { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.plancard { position: relative; display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; background: var(--bg); }
.plancard.pop { border: 2px solid var(--navy); box-shadow: 0 10px 28px -16px rgba(0, 43, 92, .5); margin-top: 8px; }
.planbadge { position: absolute; top: -12px; left: 14px; background: var(--wave); color: #001A38; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pprice { display: flex; align-items: baseline; gap: 4px; }
.pprice b { font-size: 34px; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.pprice span { color: var(--muted); font-size: 15px; }
.pline { font-weight: 700; font-size: 14px; color: var(--wave-ink); }
.pfeat { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.pfeat li { display: flex; gap: 8px; align-items: flex-start; }
.pfeat li svg { flex: none; margin-top: 2px; color: var(--wave-ink); }
.pfeat li.no { color: var(--muted); }
.pfeat li.no svg { color: var(--muted); }
.plan-btn, .bigbtn.plan-cta { background: var(--navy); color: var(--accent-fg); border-color: var(--navy); }
.plan-link { flex: none; font-size: 14px; font-weight: 800; color: var(--wave-ink); white-space: nowrap; }
.crewmeter { display: flex; align-items: center; gap: 10px; }
.crewmeter .bar { flex: 1; height: 8px; }
.crewmeter .bar > span.done { background: var(--wave); }
.tdo-row.locked { border-style: dashed; }
.tdo-row.locked .tdo-ic { color: var(--muted); }
.lockcard { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--bg); padding: 12px 14px; text-align: left; font: inherit; color: inherit; }
.lockcard .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lockcard .m span { font-size: 13px; color: var(--muted); }
.lockcard:hover { background: var(--soft); }
.aprow { cursor: default; flex-wrap: wrap; }
.aprow .m { min-width: 160px; }
.apacts { display: flex; gap: 8px; flex: none; margin-left: auto; }
.lockhint svg { flex: none; margin-top: 2px; }

.form label.wsslot { color: var(--fg); font-size: 15px; flex-direction: row; align-items: center; gap: 12px; text-align: left; min-height: 60px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.form label.wsslot:has(input:checked) { border-color: var(--navy); background: var(--wave-soft); }
.form label.wsslot input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--navy); }
.form label.wsslot .m { display: flex; flex-direction: column; gap: 2px; }
.form label.wsslot .m span { font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- Sign in ---------- */
.auth { display: flex; flex-direction: column; gap: 14px; }
.auth h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.auth .codein { letter-spacing: .3em; font-size: 24px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.auth .row-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.boot { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
.empty-hero { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px; border: 1.5px dashed var(--line); border-radius: 18px; }
.empty-hero b { font-size: 18px; }

/* ---------- Team messaging ---------- */
.chatbtn { position: relative; }
body.welcomemode .chatbtn, body.booting .chatbtn { display: none !important; }
.cbadge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.cbadge.in { position: static; box-shadow: none; }
.msgp { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; top: calc(61px + env(safe-area-inset-top, 0px)); background: var(--bg); display: flex; flex-direction: column; }
.msgp[hidden] { display: none !important; }
body.msgmode { overflow: hidden; }
.mhead { display: flex; align-items: center; gap: 6px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) 8px max(6px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); min-height: 56px; }
.mhead h2 { font-size: 18px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mscroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 12px; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.mscroll.one { max-width: 560px; width: 100%; margin: 0 auto; }
.mlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; min-height: 64px; }
.mrow:last-child { border-bottom: 0; }
.mrow.on { background: var(--soft); }
.mrow .t { flex: none; width: 64px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mrow .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mrow .m b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .m span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .rt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 12px; color: var(--muted); }
.mic { flex: none; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--soft); color: var(--fg); font-weight: 800; font-size: 13px; }
.mic.day { background: var(--accent-soft); color: var(--accent); }
.udot { width: 10px; height: 10px; border-radius: 5px; background: var(--red); flex: none; }
.stpill { flex: none; display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.stpill.blue { background: var(--blue-soft); color: var(--blue); } .stpill.amber { background: var(--amber-soft); color: var(--amber); }
.stpill.green { background: var(--green-soft); color: var(--green); } .stpill.red { background: var(--red-soft); color: var(--red); }
.msgnote { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.jpin { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.jpin-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 18px; }
.jaddr { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; padding: 10px 12px; border-radius: 12px; background: var(--soft); min-height: 44px; }
.jaddr span:not(.go) { flex: 1; min-width: 0; }
.jaddr .go { font-weight: 800; color: var(--accent); font-size: 14px; }
.jchips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip b { color: var(--fg); }
.pslots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pslot { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; overflow: hidden; }
.pslot.has { border-style: solid; }
.pslot img, .mphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslot .ph-tag, .mphoto .ph-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 3px 8px; }
img.gone { visibility: hidden; }
.dprog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dprog > div { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.dprog .k { font-size: 12px; color: var(--muted); font-weight: 700; } .dprog .v { font-size: 22px; font-weight: 800; }
.mthread { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.mmsg { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 82%; }
.mmsg.mine { align-self: flex-end; align-items: flex-end; }
.mwho { font-size: 12px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.mbub { background: var(--soft); border-radius: 18px 18px 18px 6px; padding: 9px 13px; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; }
.mmsg.mine .mbub { background: var(--accent); color: var(--accent-fg); border-radius: 18px 18px 6px 18px; }
.mmsg time { font-size: 11px; color: var(--muted); padding: 0 4px; }
.mphoto { position: relative; display: block; width: 220px; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--track); }
.mstatus { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.msys { text-align: center; font-size: 13px; color: var(--muted); padding: 8px; }
.stbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stbtn { height: 60px; border: 0; border-radius: 16px; font-size: 17px; font-weight: 800; color: #fff; }
.stbtn.blue { background: #1D4ED8; } .stbtn.amber { background: #B45309; } .stbtn.green { background: #15803D; } .stbtn.red { background: #B91C1C; }
.stbtn[aria-pressed="true"] { box-shadow: inset 0 0 0 3px rgba(255,255,255,.75), 0 0 0 2px var(--fg); }
.stbtn:disabled { opacity: .45; }
.mcomp { position: sticky; bottom: 0; display: flex; align-items: center; gap: 6px; background: var(--bg); padding-top: 6px; }
.mcomp input { flex: 1; min-width: 0; height: 48px; border-radius: 24px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 16px; font-size: 16px; }
.sendbtn { flex: none; width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mempty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); text-align: center; padding: 40px 16px; }
.mempty b { color: var(--fg); font-size: 17px; }
.daypin { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--fg); text-align: left; min-height: 64px; }
.daypin .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .daypin .m span { color: var(--muted); font-size: 14px; }
.daypin .mic { background: var(--accent); color: var(--accent-fg); }
.hph { display: block; width: 120px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-top: 6px; background: var(--track); }
.aisum { border: 1.5px solid var(--accent); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--accent-soft); }
.aisum-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.aisum-h .k { font-size: 13px; font-weight: 800; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.aisum .aihead { font-size: 17px; line-height: 1.35; }
.aisum ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.aiacts { display: flex; flex-wrap: wrap; gap: 8px; } .aiacts .btn { background: var(--bg); }
.link:disabled { opacity: .5; cursor: default; }
/* Desktop: inbox · conversation · today */
.msgp.wide { top: calc(61px + env(safe-area-inset-top, 0px)); }
.mcols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(300px, 380px); }
.mcol { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.mcol.side { border-right: 0; background: var(--soft); }
.mcol.side .mlist { background: var(--bg); }
.mcol .mscroll { padding: 14px 16px; }
.mcol.thread .mscroll { max-width: 760px; width: 100%; margin: 0 auto; }
.mcol.thread .pslots { grid-template-columns: repeat(2, minmax(0, 240px)); }
@media (max-width: 1099px) { .msgp.wide .mcols { display: block; } }
.jpin.pinned { position: sticky; top: -14px; z-index: 2; box-shadow: 0 6px 14px -10px rgba(0,0,0,.35); }
.mcol .jpin.pinned { position: static; box-shadow: none; }
.jpin.compact { gap: 8px; padding: 12px 14px; }
.jpin.compact .pslots, .jpin.compact .jnotes, .jpin.compact .jchips .chip:not(:first-child) { display: none; }
.jpin.compact .jaddr { min-height: 40px; padding: 8px 12px; }
.jpin-h .link { margin-left: auto; font-size: 14px; }
.jpin-h { justify-content: flex-start; } .jpin-h .stpill { margin-left: 4px; }
.mbub.ph { background: transparent !important; padding: 0; }
/* Messages is a primary tab: the panel sits between the header and the tab bar */
.msgp { bottom: calc(61px + env(safe-area-inset-bottom, 0px)); }
.tic { position: relative; display: inline-flex; }
.tbadge { position: absolute; top: -6px; left: calc(100% - 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.crewbar .tic .tbadge { top: -10px; left: calc(100% + 2px); }
.mhead.top { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
body.crewmode #chatBtn { display: none !important; } /* crew open Messages from their own tab */
.chatbtn[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); border-radius: 12px; }
@media (min-width: 900px) {
  .msgp { left: 208px; bottom: 0; top: calc(61px + env(safe-area-inset-top, 0px)); }
  .tabbar .tab, .crewbar .tab { position: relative; }
  .tic { position: static; }
  .tic .tbadge, .crewbar .tic .tbadge { top: 50%; left: auto; right: 10px; transform: translateY(-50%); box-shadow: none; }
}
/* Logo: the landing page's wordmark, with a light version for dark mode */
.lg { display: block; width: auto; }
.brand .lg { height: 32px; } .wl-brand .lg { height: 48px; }
.lg-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-l { display: none; } :root:not([data-theme="light"]) .lg-d { display: block; } }
:root[data-theme="dark"] .lg-l { display: none; } :root[data-theme="dark"] .lg-d { display: block; }
/* Assignment sync failed (owners and managers): stays until it goes through */
.jcwarn { position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 32px); border: 0; border-radius: 14px; padding: 12px 16px; background: var(--red); color: #fff; font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; }
.jcwarn[hidden] { display: none; }
@media (min-width: 900px) { .jcwarn { bottom: 24px; left: calc(50% + 104px); } }

/* Messages: Customers | Coworkers (0007) */
.msub { margin: 12px 14px 0; }
.msub button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.msub .cbadge.in { min-width: 18px; }
.msearch { display: block; margin: 10px 14px 4px; }
.msearch input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 0 14px; font: inherit; }
.mrow .m .mtag { font-size: 12px; font-weight: 700; color: var(--muted); opacity: .85; }
.msect { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msect .link { font-size: 13px; font-weight: 700; }
.mic.grp { background: var(--accent); color: var(--accent-fg); }
.mic.dm.owner, .mic.dm.manager { background: var(--fg); color: var(--bg); }
.custchat { display: flex; flex-direction: column; gap: 12px; }
.custchat .mthread { max-height: min(60vh, 560px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--bg); }
.custchat .mcomp { position: static; }

/* ---------- Crew + customer portals (0008) ---------- */
body:not(.custmode) .custbar { display: none !important; }
body.custmode .crewbar.custbar { display: block !important; }
body.custmode main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 899px) { .crewbar .tab { flex-direction: column; gap: 3px; font-size: 12px; min-width: 0; } }
.crewbar .tab svg { flex: none; }
@media (min-width: 900px) { body.custmode main { padding-left: 232px; } .stickybar { bottom: 0; } }
.crewbar .tic { position: relative; display: inline-flex; }
@media (max-width: 360px) { .crewbar .tab { font-size: 10.5px; } }
.warn { color: var(--warn); font-weight: 700; }
/* Day at a glance */
.glance { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.glance h2 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.01em; }
.glance dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.glance dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.glance dd { margin: 2px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nextacts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.nextacts .btn { height: auto; min-height: 52px; }
/* Stops in route order */
.stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stops .leg { font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 4px 0 4px 44px; position: relative; }
.stops .leg::before { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; border-left: 2px dashed var(--line); }
.stop { width: 100%; display: flex; gap: 12px; align-items: center; min-height: 64px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 10px 14px 10px 10px; text-align: left; }
.stop:hover { background: var(--soft); }
.stop .num { flex: none; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.stop .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stop .m b { font-size: 15.5px; }
.stop .m span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lowbtn { border: 1.5px dashed var(--line); border-radius: 16px; }
/* Light, quiet map */
.rmap { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.rmap .bg { fill: var(--soft); }
.rmap .grid line { stroke: var(--line); }
.rmap .line { stroke: var(--muted); opacity: .6; }
.zlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.zlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 6px; vertical-align: 0; }
/* Pay */
.paylist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.paylist li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.paylist li:first-child { border-top: 0; }
.paylist .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.paylist .m span { font-size: 13.5px; color: var(--muted); }
.paylist .r { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.paylist .r span { font-size: 12.5px; color: var(--good); font-weight: 700; }
/* Scoreboard */
.score { border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.score-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.score-top > div { display: flex; flex-direction: column; gap: 2px; }
.score .k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.score .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.score .up { color: var(--good); font-weight: 700; }
.score .down { color: var(--warn); font-weight: 700; }
.aitip { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--blue); background: var(--blue-soft); border-radius: 16px; padding: 12px 14px; }
.aitip .tdo-ic { color: var(--blue); }
.aitip .m { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.4; }
/* Running late, photos */
.latechips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.latechips .btn { height: 64px; flex-direction: column; display: flex; align-items: center; justify-content: center; gap: 2px; }
.latechips small { font-size: 12px; color: var(--muted); font-weight: 600; }
.photos.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-slot small { font-size: 11px; font-weight: 600; }
.minisw { display: inline-flex; align-items: center; gap: 6px; height: 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 0 10px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); flex: none; }
.minisw .knob { width: 28px; height: 18px; border-radius: 9px; background: var(--line); position: relative; }
.minisw .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 7px; background: var(--bg); transition: transform .15s; }
.minisw[aria-checked="true"] { color: var(--fg); }
.minisw[aria-checked="true"] .knob { background: var(--blue); }
.minisw[aria-checked="true"] .knob::after { transform: translateX(10px); }
.svc-row { flex-wrap: wrap; }
/* Customer portal */
.vcard { border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.vcard .k, .refcard .k { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: none; }
.vcard .big { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.vcard .btn-row { margin-top: 4px; }
.vcard .row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.otw { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 18px; background: var(--blue); color: #fff; padding: 14px 16px; text-align: left; min-height: 64px; }
.otw .m { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.otw .m b { font-size: 17px; }
.otw .m span { font-size: 14px; opacity: .9; }
.otw .dot-live { background: #fff; animation: ztpulse 1.6s ease-in-out infinite; }
@keyframes ztpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .otw .dot-live, .trkdot .pulse { animation: none; } }
.care { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.care .veh { font-size: 16px; }
.care .due { display: flex; align-items: center; gap: 12px; background: var(--blue-soft); border-radius: 14px; padding: 10px 12px; }
.care .due .m { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.care .due .m span { font-size: 13px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; gap: 12px; }
.timeline .when { flex: none; width: 52px; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.timeline .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline .m > * { max-width: 100%; }
.thumb { position: relative; border: 0; padding: 0; width: 68px; height: 51px; border-radius: 10px; overflow: hidden; background: var(--soft); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.75); padding: 1px 4px; }
.refcard { border: 1.5px solid var(--blue); background: var(--blue-soft); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.refcard .k { color: var(--blue); font-size: 16px; }
.refcode { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; background: var(--bg); border: 1.5px dashed var(--blue); border-radius: 14px; padding: 10px 14px; }
.refcode b { font-size: 22px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.refstats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.refstats dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.refstats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.refcard.preview { pointer-events: none; }
.rwd { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rwd legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.rwd .seg button[aria-checked="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.svccards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.svccards button { text-align: left; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 72px; }
.svccards button span { font-size: 13.5px; color: var(--muted); }
.svccards button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.stickybar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 3; padding: 10px 0 0; background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.stickybar .bigbtn { width: 100%; background: var(--blue); border-color: var(--blue); color: #fff; }
.backbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--blue); font-weight: 700; font-size: 15px; height: 44px; padding: 0 4px 0 0; }
/* Move your visit: full month */
.cal { border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head b { font-size: 17px; }
.cal-head .icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); font-size: 22px; line-height: 1; }
.cal-head .icon-btn:disabled { opacity: .35; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.cal-d { aspect-ratio: 1; min-height: 40px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--muted); position: relative; font-variant-numeric: tabular-nums; }
.cal-d small { font-size: 9.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.cal-d.past, .cal-d.closed { color: var(--muted); opacity: .45; }
.cal-d.full { color: var(--muted); background: var(--track); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-d.open { background: var(--blue-soft); color: var(--blue); cursor: pointer; }
.cal-d.open[aria-pressed="true"] { background: var(--blue); color: #fff; }
.cal-d.now { box-shadow: inset 0 0 0 2px var(--fg); opacity: 1; }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cal-key i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.cal-key i.open { background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.cal-key i.full { background: var(--track); }
.cal-key i.closed { background: var(--line); opacity: .6; }
.cal-key i.now { box-shadow: inset 0 0 0 2px var(--fg); }
/* Live tracker */
.trk { border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.trk .eta { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.trkmap.none { aspect-ratio: 4 / 3; border-radius: 18px; background: var(--soft); display: grid; place-items: center; text-align: center; padding: 20px; }
.trkdot { transition: transform 1.2s ease; }
.trkdot .pulse { fill: var(--blue); opacity: .18; animation: ztpulse 1.6s ease-in-out infinite; }
.frow.wrap { flex-wrap: wrap; overflow: visible; }

/* ---------- Inventory add-on ---------- */
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.low { background: var(--warn-soft); color: var(--warn); }
.pill.out { background: var(--bad-soft); color: var(--bad); }
.pill.ai { background: var(--blue-soft); color: var(--blue); }
.invrow { cursor: default; }
.invrow .qty, .minis .qty { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.minis { display: flex; align-items: center; gap: 6px; flex: none; }
.minis .qty { text-align: center; min-width: 30px; }
.minis button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-weight: 800; font-size: 20px; color: var(--fg); }
.invreq { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.invreq .row2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.invreq .m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.btn-row.three .btn { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.vancard { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 18px; background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); padding: 14px; text-align: left; color: var(--fg); }
.vancard .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.vancard .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vancard .m b { font-size: 16px; }
.vancard .m span { font-size: 13.5px; color: var(--muted); }
/* Count mode's big stepper only (the small .stepper in Sales and Zones keeps its own look) */
.stepper.big { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 10px; height: auto; border: 0; border-radius: 0; overflow: visible; background: none; }
.stepper.big button { width: auto; height: 64px; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); font-size: 28px; font-weight: 700; color: var(--fg); }
.stepper.big output { text-align: center; font-size: 52px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cntbar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; margin-top: 8px; }
.cntbar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.ok-line { margin: 0; color: var(--good); font-weight: 700; }
#tabInventory[hidden] { display: none !important; }
#subTabs { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
#subTabs button { min-width: 0; padding-inline: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 360px) { #subTabs button { font-size: 13px; padding-inline: 2px; } }
.invrow:hover { background: transparent; }

/* ---------- Grow: zone growth, campaigns, hangers ---------- */
.gpill { flex: none; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gpill.up { background: var(--good-soft); color: var(--good); }
.gpill.down { background: var(--bad-soft); color: var(--bad); }
.gpill.flat { background: var(--soft); color: var(--muted); }
.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.zgcard { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); min-width: 0; }
.zgcard header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zgcard header b { font-size: 16.5px; }
.zgcard header .gpill { margin-left: auto; }
.zgcard .btn { align-self: flex-start; height: 40px; }
.zgcard .link { text-align: left; height: auto; padding: 0; font-size: 13.5px; }
.zgdays { display: flex; flex-wrap: wrap; gap: 6px; }
.zgday { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.gsec { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.gsec > b { font-size: 15.5px; }
.amount { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.amount .m { display: flex; flex-direction: column; }
.amount .m span { font-size: 12.5px; color: var(--muted); }
.amount input { width: 64px; height: 40px; text-align: center; font-weight: 800; font-size: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); }
.fit { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.fitlist { margin: 0; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.fitlist b { font-variant-numeric: tabular-nums; }
.capmsg { border-radius: 12px; background: var(--warn-soft); color: var(--fg); padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.capmsg b { color: var(--warn); }
.gres { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.gres div { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.gres dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.gres dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gres dd small { font-size: 13px; color: var(--muted); font-weight: 700; }
.gload .m { display: flex; flex-direction: column; gap: 2px; }
.gload .m span { font-size: 13.5px; color: var(--muted); }
.droplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.droplist li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 4px; }
.okc { color: var(--good); }
.leave { border: 1.5px solid var(--warn); background: var(--warn-soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.leave .k { font-size: 13px; font-weight: 800; color: var(--warn); }
.leave .big { font-size: 20px; }
.leave.done { flex-direction: row; align-items: center; gap: 10px; border-color: var(--line); background: var(--soft); }
.leave.done .m { display: flex; flex-direction: column; gap: 2px; }
.leave.done .m span { font-size: 13.5px; color: var(--muted); }
.leave-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.leave-row > .btn { flex: 1 1 120px; }
.onlyhave { display: flex; gap: 6px; flex: 1 1 180px; }
.onlyhave input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; background: var(--bg); color: var(--fg); }
.onlyhave .btn { flex: none; }
.droptask { border: 1.5px dashed var(--warn); border-radius: 16px; padding: 10px 12px; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.droptask.done { flex-direction: row; align-items: center; gap: 10px; border-style: solid; border-color: var(--line); background: var(--soft); }
.droptask .dt-top { display: flex; gap: 10px; align-items: center; }
.droptask .m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.droptask .m span { font-size: 13px; color: var(--muted); }
.droptask .dt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.droptask .minis button:disabled { opacity: .35; }

/* Inventory → Locations: square tiles (2 across on phones, 4 on computers) and the detail sheet */
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ltile { position: relative; aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.ltile.red { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.lt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; border-radius: 18px; }
.lt-main:hover { background: var(--soft); }
.lic { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--soft); color: var(--fg); display: grid; place-items: center; margin-bottom: 4px; }
.lname { font-size: 15px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.lhealth { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.hdot { width: 8px; height: 8px; flex: none; border-radius: 4px; background: var(--muted); }
.hdot.green { background: var(--good); } .hdot.yellow { background: var(--warn); } .hdot.red { background: var(--bad); }
.lmeta { font-size: 12.5px; color: var(--muted); }
.lshort { font-size: 12.5px; font-weight: 600; color: var(--warn); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-ask { margin: 0 10px 10px; min-height: 36px; border: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 8px; }
.lt-asked { margin: 0 12px 12px; font-size: 12.5px; color: var(--muted); }
.ladd { align-items: center; justify-content: center; gap: 6px; flex-direction: row; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; }
.ladd span { font-size: 20px; line-height: 1; }
.ladd:hover { color: var(--fg); border-color: var(--muted); }
.ldue { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ldue select { height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; padding: 0 6px; }
.locsec .sec-head { align-items: center; flex-wrap: wrap; }
.locsheet { display: flex; flex-direction: column; gap: 14px; }
.lshead { display: flex; align-items: center; gap: 12px; }
.lshead .lic { margin: 0; }
.lshead .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lnote { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 600; }
.lbars { display: flex; flex-direction: column; gap: 12px; }
.lbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 5px; }
.lbar-top span { color: var(--muted); white-space: nowrap; } .lbar-top span b { color: var(--fg); }
.lbar { height: 7px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.lbar i { display: block; height: 100%; border-radius: 4px; background: var(--good); }
.lbar.low i { background: var(--warn); }
.lbar.out { background: var(--bad-soft); } .lbar.out i { background: var(--bad); }
@media (min-width: 900px) {
  .locsec { --lw: min(900px, calc(100vw - 300px)); width: var(--lw); max-width: none; margin-left: calc((100% - var(--lw)) / 2); }
  .lgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scrim:has(.locsheet) { justify-content: flex-end; align-items: stretch; }
  .scrim:has(.locsheet) .sheet { max-width: 440px; max-height: none; height: 100%; border-radius: 22px 0 0 22px; padding-top: max(10px, env(safe-area-inset-top, 0px)); animation: side .22s ease-out; }
  .scrim:has(.locsheet) .grabber { display: none; }
}
@keyframes side { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scrim:has(.locsheet) .sheet { animation: none; } }

/* Location sheet → Tap-to-count */
.pill.cnt { background: var(--accent-soft); color: var(--accent); }
.cnt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.locsheet.counting { gap: 10px; }
.ccard { border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-top b { font-size: 15px; min-width: 0; }
.cc-same { min-height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 700; padding: 4px 12px; }
.cc-same.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.cc-num { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 10px; }
.cc-num > button { height: 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); color: var(--fg); font-size: 26px; font-weight: 700; line-height: 1; }
.cc-num > button:disabled { opacity: .4; }
.cc-val { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; }
.cc-in { width: 100%; max-width: 120px; min-width: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--fg); font: inherit; font-size: 36px; font-weight: 800; text-align: right; padding: 0; font-variant-numeric: tabular-nums; border-radius: 0; }
.cc-in:focus { outline: none; border-bottom-color: var(--accent); }
.cc-unit { font-size: 15px; font-weight: 600; color: var(--muted); flex: none; }
.cc-save { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); z-index: 2; margin: 4px -16px calc(-20px - env(safe-area-inset-bottom, 0px)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cc-confirm { display: flex; flex-direction: column; gap: 8px; }
.cc-confirm b { font-size: 17px; }

/* Billing banner: trial over, payment failed, or checkout used another email (owners and managers) */
#billBanner { margin: 0 0 16px; }
.billbanner { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--warn) 9%, var(--bg)); border: 1.5px solid color-mix(in srgb, var(--warn) 45%, var(--bg)); font-size: 15px; }
.billbanner > b { font-size: 16px; color: var(--fg); }
.billbanner > span { color: var(--fg); line-height: 1.45; }
.billbanner .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.billbanner .btn { height: 40px; }
