/* Anything with the hidden attribute stays hidden, whatever other styles say. */
[hidden] { display: none !important; }

/* Otayo Kiá-Kiá, Phase 0 styles. Navy #070329, amber #FFB020, warm white ground. */
:root {
  --navy: #070329; --navy-2: #1B1650; --navy-line: #2A2650;
  --amber: #FFB020; --ink: #0E0B2A; --ink-2: #3F3C5C; --muted: #4A4764;
  --line: #DEDCE6; --line-2: #EEEDF3; --ground: #F5F4F0; --white: #FFFFFF;
  --ok-bg: #E6F4EC; --ok: #14532D; --warn-bg: #FFF4DC; --warn: #5C3D00;
  --bad-bg: #FBE3E0; --bad: #8A1C12; --grey-bg: #ECEBF1;
  --radius: 14px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--navy); }
a:hover { color: #2A2370; }
h1, h2 { color: var(--navy); line-height: 1.2; }
h1 { font-size: 26px; margin: 0 0 6px; font-weight: 800; }
h2 { font-size: 18px; margin: 0 0 12px; }
code { background: #F0EFF6; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.error-text { color: var(--bad); }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--amber); color: var(--navy); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; }
.brand-text small { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--amber); }

/* plain pages */
body.plain { background: var(--navy); min-height: 100vh; }
.plain-wrap { max-width: 460px; margin: 0 auto; padding: 48px 20px; display: flex; flex-direction: column; gap: 24px; }
.plain-wrap.wide { max-width: 720px; }
body.plain .brand-text strong { color: var(--white); }

/* cards and forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 18px; }
.card.narrow { max-width: 460px; }
.card.flush { padding: 0; overflow-x: auto; }
.stack { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=number], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
  height: 48px; border: 1.5px solid #CFCDDA; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
input:disabled { background: #F0EFF6; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 14px; }
fieldset.choices { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; margin: 0; }
fieldset.choices legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
label.choice { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); min-height: 40px; }
label.choice input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; margin-top: 14px; }
form.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0; }
form.inline label { flex: 1 1 240px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid #CFCDDA; background: var(--white); color: var(--navy); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn.danger { color: var(--bad); border-color: #F0B7AF; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.wa { background: #1E7B4F; border-color: #1E7B4F; color: var(--white); margin-top: 10px; }
.link-button { background: none; border: 0; padding: 0; color: #D8D6EA; font: inherit; text-decoration: underline; cursor: pointer; }

/* banners and chips */
.banner { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid transparent; }
.banner.ok { background: var(--ok-bg); color: var(--ok); border-color: #9BD1B3; }
.banner.warn { background: var(--warn-bg); color: var(--warn); border-color: #F1D08A; }
.banner.error { background: var(--bad-bg); color: var(--bad); border-color: #F0B7AF; }
.banner.info { background: #EEF2FB; color: var(--navy); border-color: #C9D3EE; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: #FFF1D1; color: #6B4500; }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.grey { background: var(--grey-bg); color: var(--ink-2); }

/* checks list */
ul.checks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
ul.checks li { padding: 10px 12px 10px 40px; border-radius: 10px; position: relative; }
ul.checks li::before { position: absolute; left: 12px; top: 9px; font-weight: 800; }
ul.checks li.ok { background: var(--ok-bg); color: var(--ok); }
ul.checks li.ok::before { content: "✓"; }
ul.checks li.no { background: var(--bad-bg); color: var(--bad); }
ul.checks li.no::before { content: "✕"; }
ul.checks small { color: var(--ink-2); font-size: 13px; }
ol.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }

/* portal layout */
body.portal { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex-shrink: 0; background: var(--navy); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 8px 20px; }
.sidebar .brand-text strong { color: var(--white); font-size: 16px; }
.nav-link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 10px; color: #D8D6EA; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-link:hover { background: var(--navy-2); color: var(--white); }
.nav-link.active { background: var(--amber); color: var(--navy); font-weight: 700; }
.nav-link.soon { color: #8C89A8; cursor: default; }
.nav-link.soon:hover { background: none; color: #8C89A8; }
.nav-link small { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--navy-line); padding: 14px 8px 0; display: flex; flex-direction: column; gap: 4px; color: var(--white); }
.sidebar-foot small { color: #C9C7DB; }
.sidebar-foot a { color: #D8D6EA; font-size: 13px; }
.content { flex: 1; min-width: 0; padding: 28px 32px; }
.page-head { margin-bottom: 20px; }
.page-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--navy); color: var(--white); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tile span { color: #C9C7DB; font-size: 13px; }
.tile strong { font-size: 28px; font-weight: 800; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; background: #F0EFF6; color: var(--ink-2); font-size: 13px; padding: 12px 14px; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: top; }
.table .right { text-align: right; }

@media (max-width: 800px) {
  body.portal { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .sidebar .brand { width: 100%; padding-bottom: 8px; }
  .nav-link { min-height: 40px; }
  .nav-link.soon { display: none; }
  .sidebar-foot { width: 100%; margin-top: 8px; }
  .content { padding: 20px 16px; }
}
ul.checks li.later { background: var(--warn-bg); color: var(--warn); }
ul.checks li.later::before { content: "!"; }
ul.checks li.opt { background: var(--grey-bg); color: var(--ink-2); }
ul.checks li.opt::before { content: "–"; }

/* ---------- Phase 1 ---------- */
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .2px; }
.strong { font-weight: 700; }
.break { word-break: break-all; }
.center { text-align: center; }
.amber-text { color: #8A5A00; font-weight: 700; }
kbd { background: #F0EFF6; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 12px; }
.field-error { color: var(--bad); font-weight: 600; font-size: 12px; }
ul.tight { margin: 6px 0 0; padding-left: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.grid3 { gap: 12px; }
.span2 { grid-column: span 2; }
@media (max-width: 700px) { .span2 { grid-column: auto; } }
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input[type=number] { height: 48px; border: 1.5px solid #CFCDDA; border-radius: 12px; padding: 0 12px; font: inherit; width: 100%; }
input[type=search] { height: 48px; border: 1.5px solid #CFCDDA; border-radius: 12px; padding: 0 12px; font: inherit; width: 100%; }

.qe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .qe-layout { grid-template-columns: 1fr; } }
.group { border-top: 1px solid var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.group h2 { font-size: 15px; margin: 0; }
.group.drop { background: #FAFAF7; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.group.tint-amber { background: #FFF8E8; border: 1.5px solid #F1D08A; border-radius: 14px; padding: 14px; }
.group.tint-blue { background: #F1F5FD; border: 1.5px solid #B9C8E8; border-radius: 14px; padding: 14px; }
.drop-head { display: flex; justify-content: space-between; align-items: center; }
fieldset.plain { border: 0; padding: 0; }
fieldset.plain legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; flex-direction: row; font-weight: 600; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid #CFCDDA; background: var(--white); color: var(--navy); font-size: 14px; cursor: pointer; }
.chip-radio.tall span { min-height: 58px; }
.chip-radio span small { font-weight: 500; font-size: 12px; color: var(--muted); }
.chip-radio input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip-radio input:checked + span small { color: #D8D6EA; }
.chip-radio input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn.dashed { border-style: dashed; border-color: var(--navy); }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; align-self: flex-start; min-height: 36px; }
.link-btn.danger { color: var(--bad); }
.sk-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #FAFAF7; }
.note.amber { background: var(--warn-bg); border: 1px solid #F1D08A; color: var(--warn); border-radius: 10px; padding: 10px 12px; margin: 0; }
.sticky-actions { position: sticky; bottom: 0; background: var(--white); padding: 12px 0 4px; border-top: 1px solid var(--line-2); }
.qe-side { position: sticky; top: 20px; }
.totals-card { background: var(--navy); color: var(--white); border-radius: 18px; padding: 20px; }
.totals-card h2 { color: var(--white); }
.totals-card dl { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.totals-card dl div { display: flex; justify-content: space-between; gap: 10px; }
.totals-card dt { color: #C9C7DB; font-size: 13px; }
.totals-card dd { margin: 0; font-weight: 800; }
.totals-card dd.amber { color: var(--amber); }
.totals-card a { color: #D8D6EA; font-size: 13px; }
.suggest { position: absolute; z-index: 50; background: var(--white); border: 1px solid #CFCDDA; border-radius: 12px; box-shadow: 0 10px 24px rgba(7,3,41,.14); padding: 6px; display: flex; flex-direction: column; }
.suggest button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; display: flex; flex-direction: column; cursor: pointer; font: inherit; }
.suggest button:hover { background: #F0EFF6; }
.suggest strong { color: var(--navy); font-size: 14px; }
.suggest small { color: var(--muted); font-size: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label { flex: 1 1 180px; }
.chip.blue { background: #E8E7F2; color: var(--navy); }
.chip.big { font-size: 14px; padding: 6px 12px; }
tr.struck td { color: #8C89A8; text-decoration: line-through; }
.tile.amber strong { color: var(--amber); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }
dl.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; }
dl.kv.narrow { grid-template-columns: minmax(110px, 1fr) minmax(0, auto); }
dl.kv.narrow dd { text-align: right; }
ol.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
ol.timeline li { position: relative; }
ol.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
ol.timeline li:first-child::before { background: var(--amber); border: 2px solid var(--navy); }
.tight-stack { gap: 10px; }
ul.plain-list { list-style: none; padding: 0; }

/* public pages */
body.public { background: var(--ground); }
.pub-head { background: var(--navy); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.pub-head .brand-text strong { color: var(--white); }
.pub-link { color: var(--white); font-weight: 700; text-decoration: none; padding: 10px; }
.pub-main { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.pub-hero { background: var(--navy); color: var(--white); margin: 0 -16px 16px; padding: 20px 20px 26px; box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.pub-hero h1 { color: var(--white); font-size: 26px; word-break: break-all; }
.muted-light { color: #C9C7DB; }
.btn.big { min-height: 54px; font-size: 16px; }

/* ---------- Phase 2 ---------- */
.badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--white); color: var(--navy); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.nav-link.active .badge { background: var(--navy); color: var(--white); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 21px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab .count { background: var(--amber); color: var(--navy); border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 800; }
.card.attention { border: 2px solid var(--navy); }
.proof-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
@media (max-width: 700px) { .proof-row { grid-template-columns: 1fr; } }
.proof-thumb { display: flex; align-items: center; justify-content: center; min-height: 220px; border: 2px dashed #9B98B3; border-radius: 12px; background: #ECEAF3; overflow: hidden; text-align: center; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.proof-thumb img { max-width: 100%; max-height: 320px; object-fit: contain; }
details summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; gap: 6px; }
details.decline { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 8px; }
details.page-edit { border-top: 1px solid var(--line-2); padding: 8px 0; }
.banner.small { font-size: 13px; padding: 8px 12px; margin: 0; }
.btn.danger { background: var(--white); }

/* public site */
.pub-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pub-nav a { color: var(--white); font-weight: 700; text-decoration: none; padding: 10px 8px; font-size: 14px; }
.pub-nav a.quiet { color: #C9C7DB; font-weight: 600; }
.pub-hero.home h1 { font-size: 36px; line-height: 1.05; word-break: normal; }
.pub-hero.home p { color: #D8D6EA; }
.pub-hero.slim { padding-bottom: 20px; }
.hero-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn.wide { width: 100%; }
.track-box { background: var(--white); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.track-box label { color: var(--navy); font-size: 14px; font-weight: 700; }
.row-inline { display: flex; gap: 8px; }
.row-inline input { flex: 1; min-width: 0; }
.pub-section { margin: 24px 0; }
.pub-section h2 { font-size: 24px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.svc-card:hover { border-color: var(--navy); }
.svc-card strong { color: var(--navy); }
.svc-card span { font-size: 13px; color: var(--muted); }
.svc-card .svc-code { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #8A5A00; }
ol.how { list-style: none; counter-reset: how; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
ol.how li { counter-increment: how; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
ol.how li::before { content: counter(how); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; }
ol.how span { color: var(--muted); font-size: 14px; }
.sellers { background: var(--navy); color: var(--white); border-radius: 20px; padding: 22px; }
.sellers h2 { color: var(--white); }
.sellers p { color: #D8D6EA; }
.kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #8A5A00; margin-bottom: 6px; }
.sellers .kicker { color: var(--amber); }
.pub-foot { background: var(--ink); color: var(--white); margin-top: 32px; padding: 28px 16px 90px; }
.pub-foot-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pub-foot a { color: #C9C7DB; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 13px; }
.float-buttons { position: fixed; right: 16px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 30; }
.fb { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(7,3,41,.25); }
.fb.wa { background: #1E7B4F; }
.fb.tg { background: #1F6FB2; }
.prose p, .prose li { line-height: 1.6; }
details.faq { border-bottom: 1px solid var(--line-2); padding: 8px 0; }

/* request form */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 6px; }
.progress span { height: 6px; border-radius: 3px; background: var(--navy-line); }
.progress span.on { background: var(--amber); }
.step h2 { margin-top: 8px; }
.step h3 { font-size: 16px; color: var(--navy); margin: 0 0 10px; }
.step .card { display: flex; flex-direction: column; gap: 12px; }
.big-choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.big-choice { position: relative; flex-direction: row; }
.big-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.big-choice span { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 16px; border-radius: 16px; border: 1.5px solid #CFCDDA; background: var(--white); color: var(--navy); cursor: pointer; }
.big-choice span strong { font-size: 17px; }
.big-choice span small { color: var(--muted); font-weight: 500; font-size: 14px; }
.big-choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.big-choice input:checked + span small { color: #D8D6EA; }
.big-choice input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.step-nav { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; margin: 18px 0 8px; }
.drop-card { margin-bottom: 12px; }
.drop-card h3 { margin: 0; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--bad) !important; background: #FFF7F6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: 13px; }

/* tracking page */
.quote-card { border: 2px solid var(--amber); }
.quote-total { font-size: 36px; font-weight: 800; color: var(--navy); margin: 4px 0; }
.pay-card { border: 2px solid var(--navy); }
.big-num { font-size: 18px; }
.tint-amber-card { background: var(--warn-bg); border-color: #F1D08A; }

/* ---------- Phase 3 ---------- */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-toolbar { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.scroll-x { overflow-x: auto; }
tr.struck-soft td { color: #8C89A8; }
.qty-input { width: 90px; height: 42px; }
.grid2.align-start { align-items: start; }
.nowrap { white-space: nowrap; }
.inline-form { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stepper-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.stepper { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.stepper input { width: 64px; height: 44px; text-align: center; font-weight: 800; }
.stepper .btn.small { min-width: 44px; min-height: 44px; font-size: 18px; }
.price-box { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.price-box.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #9BD1B3; }
.price-box.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #F1D08A; }
.accept-inline { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; align-items: flex-start; }
.site-switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-switch.is-open { border: 2px solid #9BD1B3; background: var(--ok-bg); }
.site-switch.is-closed { border: 2px solid #F1D08A; background: var(--warn-bg); }
.site-switch h2 { margin-bottom: 4px; }

/* ---------- Phase 4 ---------- */
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile.slim { padding: 10px 14px; }
.tile.bad strong { color: #FFB3A8; }
.card-toolbar.left { justify-content: flex-start; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.small-input { height: 36px !important; width: 130px !important; font-size: 13px !important; }
details.job { padding: 0; margin-bottom: 10px; }
details.job > summary { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px; list-style: none; min-height: 0; }
details.job > summary::-webkit-details-marker { display: none; }
details.job[open] { border: 2px solid var(--navy); }
details.job.waiting { opacity: .8; }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-kind { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #8A5A00; }
.job-name { font-size: 17px; color: var(--navy); }
.job-addr { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.job-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.job-links { gap: 8px; }
.job-links .btn { min-height: 44px; }
.photo-btn { border: 1.5px dashed var(--navy); border-radius: 12px; padding: 12px; align-items: center; text-align: center; color: var(--navy); font-weight: 700; }
.photo-btn input { font-size: 13px; }
.collect-box { background: var(--warn-bg); border: 1.5px solid #F1D08A; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.collect-box strong { font-size: 18px; color: var(--navy); }
.btn.ok-btn { background: #1E7B4F; border-color: #1E7B4F; color: var(--white); }
.attempt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cashup-row { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr 1fr; gap: 16px; align-items: center; }
@media (max-width: 900px) { .cashup-row { grid-template-columns: 1fr 1fr; } }
.cashup-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.cashup-form label { flex: 1 1 140px; }
.pod-photo { max-width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Phase 5 ---------- */
ul.attention-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ul.attention-list a { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: #F0EFF6; text-decoration: none; color: var(--ink); }
ul.attention-list a:hover { background: #E4E2EE; }
ul.attention-list strong { min-width: 28px; color: var(--navy); font-size: 18px; }
dl.kv.two-cols { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
@media (max-width: 800px) { dl.kv.two-cols { grid-template-columns: minmax(0, 1fr) auto; } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding-top: 24px; overflow-x: auto; }
.bar-col { flex: 1 0 34px; max-width: 70px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar { width: 100%; background: var(--navy); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar-col:hover .bar { background: var(--amber); }
.bar-val { font-size: 10px; color: var(--muted); white-space: nowrap; }
.bar-label { font-size: 11px; color: var(--ink-2); white-space: nowrap; }

/* ---------- Phase 6: chat ---------- */
.pad { padding: 18px; margin: 0; }
.chat-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); min-height: 56px; }
.chat-row:first-child { border-top: 0; }
.chat-row:hover { background: #F7F6FA; }
.chat-row.unread { background: #FFF8E8; }
.chat-row.unread strong { color: var(--navy); }
.chat-preview { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.count { background: var(--amber); color: var(--navy); border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 800; }
@media (max-width: 700px) { .chat-row { grid-template-columns: 1fr auto; } .chat-preview { grid-column: 1 / -1; grid-row: 2; } }
.chat-thread { height: 55vh; min-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #FAFAF7; }
.msg { max-width: 75%; padding: 10px 14px; border-radius: 16px; }
.msg p { margin: 0 0 4px; white-space: pre-wrap; word-wrap: break-word; }
.msg small { font-size: 11px; opacity: .8; }
.msg.theirs { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.mine { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.chat-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.chat-reply textarea { min-height: 52px; }
.chat-reply .btn { min-height: 52px; }
.chat-reply #reply-error { grid-column: 1 / -1; margin: 0; }

/* visitor widget */
.kk-chat { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fb.chat { width: auto; padding: 0 18px; border-radius: 26px; background: var(--amber); border: 0; gap: 8px; color: var(--navy); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; position: relative; }
.kk-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--bad); color: var(--white); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.kk-panel { width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 140px)); background: var(--white); border-radius: 18px; box-shadow: 0 12px 40px rgba(7,3,41,.25); display: flex; flex-direction: column; overflow: hidden; }
.kk-head { background: var(--navy); color: var(--white); padding: 12px 8px 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kk-head small { display: block; color: #C9C7DB; font-size: 12px; }
.kk-head button { width: 44px; height: 44px; border: 0; background: none; color: var(--white); font-size: 18px; cursor: pointer; }
.kk-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--ground); }
.kk-greet { margin: 0; font-size: 14px; color: var(--ink-2); background: var(--white); border-radius: 12px; padding: 10px 12px; }
.kk-msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 14px; }
.kk-msg p { margin: 0 0 2px; white-space: pre-wrap; word-wrap: break-word; }
.kk-msg small { font-size: 11px; opacity: .75; }
.kk-msg.me { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.kk-msg.them { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.kk-error { margin: 0; padding: 8px 14px; background: var(--bad-bg); color: var(--bad); font-size: 13px; }
.kk-form { padding: 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-2); }
.kk-form input, .kk-form textarea { height: 44px; font-size: 15px; }
.kk-form textarea { height: auto; min-height: 44px; }
.kk-send { flex-direction: row; align-items: flex-end; }
.kk-send textarea { flex: 1; }
.kk-send .btn { min-width: 48px; min-height: 48px; }

/* ---------- Phase 7 ---------- */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.img-preview { height: 150px; border-radius: 10px; background: #ECEAF3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.faq-edit.faded { opacity: .7; }
.email-preview { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #FAFAF7; }
pre.log { background: #0E0B2A; color: #D8D6EA; padding: 12px; border-radius: 10px; font-size: 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.hero-img { width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: 18px; margin: 16px 0 0; display: block; }
.promo-img { width: 100%; height: auto; border-radius: 16px; margin-top: 14px; display: block; }
.svc-card img { width: 100%; height: 96px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.cta-img { width: 100%; height: 160px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }

/* =====================================================================
   Public website: navy & white only (no yellow). The staff portal keeps its own colours.
   ===================================================================== */
body.public {
  --ground: #FFFFFF; --soft: #F3F4FA; --tint: #E8EAF6; --tint-2: #C9CCE8; --mid: #8E93C9;
  --warn-bg: #EEF0FA; --warn: #1B1650;
  background: var(--ground);
}
body.public :focus-visible { outline: 3px solid #4A5BD4 !important; outline-offset: 2px; }
body.public .brand-mark { background: var(--white); color: var(--navy); }
body.public .brand-text small { color: #C9C7DB; }
body.public .btn.amber { background: var(--navy); border-color: var(--navy); color: var(--white); }
body.public .pub-hero .btn.amber, body.public .sellers .btn.amber, body.public .final-cta .btn.amber { background: var(--white); border-color: var(--white); color: var(--navy); }
body.public .btn.outline-light { background: transparent; border: 2px solid rgba(255,255,255,.7); color: var(--white); }
body.public .btn.outline-light:hover { background: rgba(255,255,255,.1); }
body.public .btn.light:hover { background: var(--tint); }
body.public .kicker { color: #3A3F9E; }
body.public .sellers .kicker { color: var(--tint-2); }
body.public .progress span.on { background: var(--navy); }
body.public .quote-card { border-color: var(--navy); }
body.public .tint-amber-card, body.public .note.amber, body.public .group.tint-amber { background: var(--soft); border-color: var(--tint-2); color: var(--navy); }
body.public .amber-text { color: #3A3F9E; }
body.public ol.timeline li:first-child::before { background: var(--white); border: 3px solid var(--navy); }
body.public .price-box.warn { background: var(--soft); color: var(--navy); border-color: var(--tint-2); }
body.public .card { border-color: var(--line); }
body.public .fb.chat { background: var(--navy); color: var(--white); border: 2px solid var(--white); box-shadow: 0 6px 18px rgba(7,3,41,.35); }
body.public .fb.chat svg { stroke: var(--white); }
body.public .fb.wa { border: 2px solid var(--white); }
body.public .kk-badge { background: #C62828; }
body.public .pub-foot { background: var(--navy); }

/* wide pages (home, coming soon) */
.pub-main.wide { max-width: 1120px; }
.pub-main.wide .pub-hero { padding: 36px 20px 40px; margin-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 420px; margin: 0 auto; width: 100%; } }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 800; color: var(--tint-2, #C9CCE8) !important; margin: 0 0 8px; }
.pub-main.wide .pub-hero.home h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; margin-bottom: 14px; }
.lead { font-size: 17px; line-height: 1.55; max-width: 34em; }
.hero-art { display: flex; justify-content: center; }
.hero-pic { width: 100%; max-width: 520px; }
.hero-pic.photo { aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; border: 4px solid rgba(255,255,255,.15); }
.art { width: 100%; height: auto; display: block; }
.hero-ctas.center { justify-content: center; max-width: 460px; margin-left: auto; margin-right: auto; }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.trust-item strong { display: block; color: var(--navy); font-size: 15px; }
.trust-item span { display: block; font-size: 13px; color: var(--muted); }
.trust-ico, .svc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft, #F3F4FA); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 18px 0; }
.promos .promo-img { margin: 0; aspect-ratio: 16 / 7; object-fit: cover; }

.pub-main.wide .pub-section { margin: 48px 0; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.section-head p { margin: 0; color: var(--muted); }
.pub-main.wide .svc-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pub-main.wide .svc-card { padding: 20px; gap: 8px; border-radius: 18px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pub-main.wide .svc-card:hover { box-shadow: 0 10px 26px rgba(7,3,41,.10); transform: translateY(-2px); }
.pub-main.wide .svc-card strong { font-size: 17px; margin-top: 6px; }
.pub-main.wide .svc-card span { font-size: 14px; }
.svc-card .svc-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; }
.svc-go { margin-top: auto; padding-top: 6px; color: var(--navy) !important; font-weight: 700; }

.how-band { background: var(--soft, #F3F4FA); border-radius: 24px; padding: 28px; }
ol.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { ol.how-steps { grid-template-columns: 1fr; } }
ol.how-steps li { background: var(--white); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
ol.how-steps strong { color: var(--navy); font-size: 17px; }
ol.how-steps span { color: var(--muted); font-size: 14px; }
.step-no { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white) !important; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px !important; margin-bottom: 4px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.pic.photo, .split-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; }
.split-copy h2 { font-size: clamp(24px, 3vw, 32px); }
ul.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 16px; }
ul.ticks li { display: flex; gap: 14px; align-items: flex-start; }
ul.ticks li > svg { flex-shrink: 0; color: var(--navy); background: var(--soft, #F3F4FA); border-radius: 10px; padding: 8px; width: 40px; height: 40px; }
ul.ticks strong { display: block; color: var(--navy); }
ul.ticks span { color: var(--muted); font-size: 14px; }
ul.ticks.light li > svg { background: rgba(255,255,255,.12); color: var(--white); }
ul.ticks.light strong { color: var(--white); }
ul.ticks.light span { color: #D8D6EA; }

ul.town-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.town-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 600; font-size: 14px; }

.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.review figcaption { color: var(--muted); font-size: 14px; }
.review figcaption strong { color: var(--navy); }
.stars { display: flex; gap: 2px; color: var(--tint-2, #C9CCE8); }
.stars .on { color: var(--navy); }
.stars .on svg { fill: currentColor; }

.pub-main.wide .sellers { padding: 36px; border-radius: 28px; }
.sellers-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .sellers-grid { grid-template-columns: 1fr; } .sellers-pic { order: -1; max-width: 420px; margin: 0 auto; width: 100%; } }
.sellers h2 { font-size: clamp(24px, 3vw, 32px); }
.sellers-pic .pic.photo { border: 4px solid rgba(255,255,255,.15); }

.faq-block details.faq summary { font-size: 16px; color: var(--navy); min-height: 48px; }
.more-link { font-weight: 700; }
.final-cta { background: var(--navy); color: var(--white); text-align: center; border-radius: 28px; padding: 44px 24px; margin: 48px 0 8px; }
.final-cta h2 { color: var(--white); font-size: clamp(26px, 3.5vw, 36px); }
.final-cta p { color: #D8D6EA; }
.pub-main.wide + .pub-foot { margin-top: 40px; }
.pub-foot-inner { max-width: 1120px; }
@media (min-width: 761px) { .foot-links { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; } }

/* ---------- Phone-friendly lists and no sideways overflow ---------- */
body.portal { overflow-x: clip; }
.content { overflow-wrap: anywhere; }
.card { min-width: 0; }
.card:not(.flush) > .table, .card > form > .table { display: block; overflow-x: auto; }
@media (min-width: 701px) { .card:not(.flush) > .table, .card > form > .table { display: table; } }
@media (max-width: 700px) {
  table.table.cards, table.table.cards tbody, table.table.cards tr, table.table.cards td { display: block; width: 100%; }
  table.table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.table.cards tbody tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 10px 0; background: var(--white); }
  .card.flush table.table.cards { padding: 2px 10px; }
  table.table.cards td { border: 0; padding: 6px 0; display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 10px; text-align: left !important; }
  table.table.cards td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; margin-right: 8px; }
  table.table.cards td[data-label=""] { display: block; }
  table.table.cards td[data-label=""]::before { content: none; }
  table.table.cards td:first-child { display: block; font-size: 16px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
  table.table.cards td:first-child::before { display: block; content: attr(data-label); margin-bottom: 2px; }
  table.table.cards td:empty { display: none; }
  table.table.cards td .inline-form, table.table.cards td.right.nowrap { justify-content: flex-start; white-space: normal; }
  table.table.cards td input[type=number], table.table.cards td .qty-input { width: 100%; }
  table.table.cards tr.row-note { border: 0; background: none; padding: 6px 0; }
  table.table.cards tr.row-note td { display: block; padding: 8px 0; }
  table.table.cards tr.row-note td::before { content: none; }
  .card-toolbar { flex-wrap: wrap; }
  .content { padding: 16px 12px; }
  .card { padding: 16px; }
}

/* ---------- Phone menu (hamburger) ---------- */
.mobile-bar, .menu-close, .nav-scrim { display: none; }
@media (max-width: 800px) {
  body.portal { display: block; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; background: var(--navy); padding: 10px 12px; }
  .mobile-bar .brand { margin-right: auto; display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .mobile-bar .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .mobile-bar .brand-text strong { color: var(--white); font-size: 15px; }
  .mobile-bar .brand-text small { font-size: 9px; }
  .entry-btn { min-height: 40px; background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); white-space: nowrap; }
  .menu-btn { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--white); color: var(--navy); font: inherit; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; position: relative; }
  .menu-btn .badge { position: absolute; top: -6px; right: -6px; background: #C62828; color: #fff; }
  .sidebar { position: fixed !important; top: 0; right: 0; bottom: 0; left: auto; width: min(320px, 86vw); height: 100vh !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 4px !important; padding: 56px 14px 20px !important; transform: translateX(105%); transition: transform .2s ease; z-index: 60; overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.3); }
  .sidebar.open { transform: translateX(0); }
  .sidebar .brand { display: none; }
  .sidebar .nav-link { min-height: 48px; width: 100%; }
  .sidebar-foot { width: 100%; }
  .menu-close { display: block; position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--white); font-size: 20px; cursor: pointer; }
  .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(7,3,41,.5); z-index: 55; }
  .nav-scrim[hidden] { display: none; }
  body.menu-open { overflow: hidden; }
  .content { padding-top: 16px; }
}
@media (max-width: 380px) { .entry-btn { padding: 0 10px; font-size: 13px; } .mobile-bar .brand-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ---------- Costs, shopping list, quote editing ---------- */
.cost-row { display: grid; grid-template-columns: 1.3fr 1fr .9fr 1fr 1.1fr auto; gap: 10px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.cost-row label[hidden] { display: none !important; }
@media (max-width: 900px) { .cost-row { grid-template-columns: 1fr 1fr; } .cost-row [data-remove-cost] { justify-self: start; } }
.item-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.item-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(64px, .8fr) minmax(0, 1.5fr) auto; gap: 8px; align-items: center; }
.item-rows.pub .item-row { grid-template-columns: minmax(0, 3fr) minmax(64px, .8fr) minmax(0, 1.6fr); }
.item-row.head { font-size: 12px; font-weight: 700; color: var(--muted); }
@media (max-width: 520px) { .item-row { grid-template-columns: 1fr 70px; } .item-row > :nth-child(3) { grid-column: 1; } .item-row.head { display: none; } .item-rows.pub .item-row { grid-template-columns: 1fr 70px; } }
.q-items, .q-costs { display: flex; flex-direction: column; gap: 8px; }
.q-item, .q-cost { display: grid; grid-template-columns: minmax(0, 2fr) 70px minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 8px; align-items: center; }
.q-cost { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; }
.q-item.new { grid-template-columns: minmax(0, 2fr) 70px minmax(0, 1fr); }
@media (max-width: 700px) { .q-item, .q-cost, .q-item.new { grid-template-columns: 1fr 1fr; } }
details.q-costs > summary, details.card > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.fees { border: 0; padding: 0; margin: 6px 0 0; }
.fees legend { font-weight: 700; margin-bottom: 6px; }
.fees-box { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.fee-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; }
@media (max-width: 600px) { .fee-row { grid-template-columns: 1fr; } }
.suggest button.on { background: #E4E2EE; }
.cost-type-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.order-input { width: 70px; }

/* =====================================================================
   Option D: app-style website (navy & white, Montserrat)
   ===================================================================== */
body.public.app { background: #F3F4F8; padding-bottom: 0; }
body.app .skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
body.app .skip:focus { left: 8px; }
body.app .wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; width: 100%; }

/* app bar */
.app-bar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); }
.app-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.app-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.app-mark { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.app-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.app-brand-text strong { font-size: 16px; }
.app-brand-text small { font-size: 10px; letter-spacing: 2px; color: #A9ADD6; font-weight: 600; }
.pill-nav { display: flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; }
.pill-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 0 15px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap; }
.pill-nav a:hover { background: rgba(255,255,255,.1); }
.pill-nav a[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 700; }
.app-bar-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #E2504A; display: inline-block; }
.dot.inline { position: static; margin-left: 6px; vertical-align: middle; }
.bar-link { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 0 10px; min-height: 44px; align-items: center; display: inline-flex; }
.bar-cta { background: #fff; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 14px; padding: 0 18px; min-height: 44px; border-radius: 999px; display: inline-flex; align-items: center; }
.bar-cta:hover { background: #E8EAF6; color: var(--navy); }
@media (max-width: 1080px) { .pill-nav a { padding: 0 11px; font-size: 13px; } }

/* inner pages keep a readable column; the home page is wide */
body.app .pub-main { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; box-sizing: border-box; }
body.app .pub-main.wide { max-width: none; padding: 0; }
body.app .card, .app-card { border-radius: 22px; background: #fff; border: 1px solid #E3E5EE; }
.app-card { padding: 18px; }
body.app .btn { border-radius: 14px; }
body.app .pub-hero { border-radius: 0 0 28px 28px; }

/* home hero band */
.d-hero { background: var(--navy); color: #fff; border-radius: 0 0 32px 32px; }
.d-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 104px; }
.d-greet { color: #A9ADD6; font-weight: 600; }
.d-hero-copy { display: flex; flex-direction: column; gap: 10px; }
.d-hero-copy h1 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }
.d-hero-copy p { margin: 0; color: #C9CCE8; font-size: 17px; max-width: 30em; }
.d-track { background: #fff; color: var(--ink); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.d-track label { font-weight: 800; font-size: 17px; color: var(--navy); }
.d-track small { color: #5A5D78; font-size: 13px; }
.d-track-row { display: flex; gap: 8px; }
.d-track-row input { flex: 1; min-width: 0; height: 54px; border: 1.5px solid #D5D8E8; border-radius: 16px; padding: 0 16px; font-size: 16px; background: #F7F8FB; }
.d-track-row .btn { height: 54px; padding: 0 20px; gap: 8px; flex-shrink: 0; }
.desk-only { display: inline-flex; }

/* quick actions */
.d-qa-wrap { margin-top: -64px; position: relative; }
.d-qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.d-tile { background: #fff; color: var(--navy); text-decoration: none; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 140px; box-sizing: border-box; box-shadow: 0 10px 28px rgba(7,3,41,.10); border: 1px solid #E3E5EE; transition: transform .15s, box-shadow .15s; }
.d-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(7,3,41,.14); color: var(--navy); }
.d-tile strong { display: block; font-size: 16px; }
.d-tile small { font-size: 13px; color: #5A5D78; }
.d-tile-ico { width: 48px; height: 48px; border-radius: 15px; background: #E8EAF6; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.d-tile.main .d-tile-ico { background: var(--navy); color: #fff; }

/* body */
.d-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-top: 40px; padding-bottom: 48px; }
.d-mainc { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.d-sec { display: flex; flex-direction: column; gap: 14px; }
.d-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.d-sec-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--navy); }
.d-sec-head small { color: #5A5D78; }
.d-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.d-svc-card { background: #fff; border: 1px solid #E3E5EE; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s; }
.d-svc-card:hover { box-shadow: 0 10px 26px rgba(7,3,41,.10); color: var(--ink); }
.d-svc-card img { width: 100%; height: 120px; object-fit: cover; }
.d-svc-ico { height: 96px; background: #E8EAF6; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.d-svc-text { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.d-svc-text strong { color: var(--navy); font-size: 15px; }
.d-svc-text small { color: #5A5D78; font-size: 13px; }
ol.d-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
ol.d-steps li { background: #fff; border: 1px solid #E3E5EE; border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
ol.d-steps strong { display: block; color: var(--navy); font-size: 15px; }
ol.d-steps small { color: #5A5D78; font-size: 13px; }
.d-num { width: 36px; height: 36px; border-radius: 12px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.d-promo { background: var(--navy); border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.d-promo:hover { color: #fff; }
.d-promo-copy { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.d-promo-copy small { font-size: 12px; letter-spacing: 2px; color: #A9ADD6; font-weight: 700; }
.d-promo-copy strong { font-size: 22px; line-height: 1.25; }
.d-promo-copy span { font-weight: 700; }
.d-promo-img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.d-promo-art { display: flex; align-items: center; justify-content: center; padding: 16px; }
.d-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.d-why > div { background: #fff; border: 1px solid #E3E5EE; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--navy); }
.d-why strong { font-size: 14px; }
.d-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.d-review { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.d-review blockquote { margin: 0; line-height: 1.6; }
.d-review figcaption { color: #5A5D78; font-size: 14px; }
.d-review figcaption strong { color: var(--navy); }
ul.d-towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.d-towns li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #E3E5EE; color: var(--navy); font-weight: 600; font-size: 14px; }

/* side column */
.d-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.d-side-card { display: flex; flex-direction: column; gap: 10px; }
.d-side-card h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--navy); }
ul.req-list, ul.upd-list { list-style: none; margin: 0; padding: 0; }
ul.req-list li + li, ul.upd-list li + li { border-top: 1px solid #EEF0F5; }
.req-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--ink); min-height: 44px; }
.req-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.req-text strong { font-size: 13px; color: var(--navy); }
.req-text small { font-size: 12px; color: #5A5D78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-chip { font-size: 12px; font-weight: 700; color: #1B2D7A; background: #E8EAF6; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.req-chip.act { background: var(--navy); color: #fff; }
ul.upd-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; min-height: 44px; align-items: center; }
ul.upd-list small { color: #5A5D78; font-weight: 500; white-space: nowrap; }
.d-help-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn.wa-btn { background: #1E7B4F; border-color: #1E7B4F; color: #fff; }
.btn.soft { background: #E8EAF6; border-color: #E8EAF6; color: var(--navy); }
.update-item { margin-bottom: 12px; }
.update-item h2 { margin: 4px 0 6px; font-size: 18px; color: var(--navy); }
.page-band { background: var(--navy); color: #fff; padding: 28px 0 32px; border-radius: 0 0 28px 28px; margin: -24px -16px 20px; }
.page-band h1 { color: #fff; margin: 0 0 4px; font-size: 26px; }
.page-band p { margin: 0; color: #C9CCE8; }
.narrow-page { padding: 0 !important; }

/* footer */
.app-foot { background: #fff; border-top: 1px solid #E3E5EE; font-size: 14px; color: #5A5D78; }
.app-foot-in { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; padding-bottom: 24px; }
.app-foot-brand { display: flex; flex-direction: column; gap: 2px; }
.app-foot-brand strong { color: var(--navy); }
.app-foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.app-foot-links a { color: #3B3E5C; }

/* phone tab bar + More sheet (phones only) */
.tabbar, .sheet, .sheet-scrim { display: none; }
@media (max-width: 980px) {
  .d-body { grid-template-columns: 1fr; }
  .d-side { position: static; }
  .d-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .pill-nav, .desk-only { display: none !important; }
  .d-hero-grid { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; padding-bottom: 72px; }
  .d-hero-copy p { display: none; }
  .d-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .d-qa-wrap { margin-top: -52px; }
  .d-tile { min-height: 124px; padding: 16px; }
  ol.d-steps { grid-template-columns: 1fr; }
  .d-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-promo { grid-template-columns: 1fr; }
  .d-promo-img { min-height: 160px; }
  body.app .wrap { padding-left: 16px; padding-right: 16px; }
  body.public.app { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid #E3E5EE; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; padding: 6px 4px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(7,3,41,.06); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; text-decoration: none; color: #7A7D96; font: inherit; font-size: 11px; font-weight: 700; background: none; border: 0; cursor: pointer; position: relative; }
  .tabbar [aria-current="page"] { color: var(--navy); font-weight: 800; }
  .tab-send { color: var(--navy) !important; font-weight: 800 !important; }
  .tab-send > span { width: 56px; height: 56px; border-radius: 18px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(7,3,41,.3); }
  .tab-badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: #C62828; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
  .sheet-scrim { display: block; position: fixed; inset: 0; background: rgba(7,3,41,.45); z-index: 60; }
  .sheet { display: flex; flex-direction: column; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-radius: 24px 24px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 80vh; overflow-y: auto; }
  .sheet[hidden], .sheet-scrim[hidden] { display: none; }
  .sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: #D5D8E8; margin: 0 auto 4px; }
  .sheet-links { display: flex; flex-direction: column; }
  .sheet-links a { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid #EEF0F5; color: var(--navy); font-weight: 700; text-decoration: none; }
  .sheet-small { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
  .sheet-small a { color: #5A5D78; }
  body.sheet-open { overflow: hidden; }
  body.public .float-buttons { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body.public .float-buttons .fb.chat { display: none !important; }
  body.public .float-buttons .fb { width: 48px; height: 48px; }
  .page-band { margin: -24px -16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .d-tile, .d-svc-card { transition: none; } }

/* ---------- Footer (clean app footer) ---------- */
.app-foot { background: #fff; border-top: 1px solid #E3E5EE; color: #5A5D78; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 28px; }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.foot-logo .app-mark { width: 36px; height: 36px; font-size: 18px; background: var(--navy); color: #fff; }
.foot-logo strong { font-size: 16px; }
.foot-brand p { margin: 10px 0 0; max-width: 32em; line-height: 1.55; }
.foot-meta { font-size: 14px; }
.foot-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.foot-btns .btn { min-height: 44px; font-size: 14px; }
.foot-col h2 { margin: 0; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); font-weight: 800; }
.foot-col ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.foot-col li a { display: inline-flex; align-items: center; min-height: 36px; color: #3B3E5C; text-decoration: none; font-weight: 500; }
.foot-col li a:hover { color: var(--navy); text-decoration: underline; }
.foot-legal > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; pointer-events: none; }
.foot-legal > summary::-webkit-details-marker { display: none; }
.foot-legal .chev { display: none; transition: transform .15s; }
.foot-bottom { border-top: 1px solid #E3E5EE; }
.foot-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; font-size: 13px; }
.foot-bottom-in a { color: var(--navy); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-bottom-in a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; gap: 0; padding-top: 24px; padding-bottom: 8px; }
  .foot-brand { padding-bottom: 18px; }
  .foot-btns .btn { flex: 1 1 140px; }
  .foot-col { border-top: 1px solid #E3E5EE; padding: 14px 0; }
  .foot-col ul { margin-top: 6px; }
  .foot-help-row { display: none; }
  .foot-legal > summary { cursor: pointer; pointer-events: auto; min-height: 44px; }
  .foot-legal .chev { display: block; }
  .foot-legal[open] .chev { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .foot-legal .chev { transition: none; } }

/* Inner pages: the title band sits flush under the app bar (no grey strip) */
body.app .pub-main:not(.wide) > .pub-hero:first-child,
body.app .pub-main:not(.wide) > section:first-child.pub-hero { margin-top: -24px; }
.foot-legal > summary h2 { display: inline-block; }
.foot-legal .chev { float: right; margin-top: 2px; }
.foot-legal > summary::after { content: ""; display: table; clear: both; }
.foot-meta:empty { display: none; }

/* Chat window: other ways to reach us */
.kk-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: #fff; border-bottom: 1px solid #E3E5EE; font-size: 13px; color: #5A5D78; }
.kk-alt a { min-height: 34px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; color: #fff; }
.kk-alt-wa { background: #1E7B4F; }
.kk-alt-tg { background: #1F6FB2; }
.btn.tg-btn { background: #1F6FB2; border-color: #1F6FB2; color: #fff; }

/* Hints under labels; "me" shortcuts; less repetition on phones */
label > small.hint { display: block; font-weight: 500; font-size: 13px; color: #5A5D78; margin-top: 2px; }
.me-toggle { background: #F3F4F8; border-radius: 14px; padding: 12px 14px; margin-bottom: 4px; }
label.me-toggle.card { background: #fff; }
.btn.foot-wa { flex-direction: column; line-height: 1.15; gap: 2px; }
.btn.foot-wa small { font-size: 11px; font-weight: 600; opacity: .9; }
@media (max-width: 860px) { .d-help-card { display: none; } }

/* Request form: step navigation, errand types, town pickers */
.step-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.step-back { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; min-height: 40px; padding: 0 14px; font: inherit; font-weight: 700; cursor: pointer; }
.step-back:hover { background: rgba(255,255,255,.2); }
.step-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.step-tabs button { background: transparent; color: #C9CCE8; border: 1.5px solid rgba(255,255,255,.25); border-radius: 999px; min-height: 36px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.step-tabs button.on { background: #fff; color: var(--navy); border-color: #fff; }
.step-tabs button:disabled:not(.on) { opacity: .55; cursor: default; }
.step-tabs button:not(:disabled):not(.on):hover { background: rgba(255,255,255,.12); }
.ek-choices .big-choice strong { font-size: 16px; }
.town-pick { display: flex; flex-direction: column; gap: 10px; }
.d-promo-sub { font-style: normal; color: #C9CCE8; font-size: 15px; }

/* Motor Park and quick-add rider */
.pkg-no { display: inline-block; background: #E8EAF6; color: var(--navy); border-radius: 10px; padding: 4px 10px; font-weight: 800; }
.mp-box { display: flex; flex-direction: column; gap: 6px; background: #F3F4F8; border-radius: 14px; padding: 12px; font-size: 14px; }
.mp-box .btn { align-self: flex-start; }
.rider-add { border: 1.5px dashed #9EA3C8; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #F7F8FB; grid-column: 1 / -1; }
.driver-card .btn { margin-top: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.stat-row .stat { background: #fff; border: 1px solid #E3E5EE; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat-row .stat span { font-size: 13px; color: #5A5D78; }
.stat-row .stat strong { font-size: 22px; color: var(--navy); }
.filter-presets a { white-space: nowrap; }
.inline-label { display: inline-flex; flex-direction: column; margin-right: 8px; }

/* ---------- Stock list (compact, searchable) ---------- */
.stock-summary { margin: 6px 0 10px; color: var(--muted); }
.stock-toolbar { margin-bottom: 10px; gap: 8px; flex-wrap: wrap; }
.sl-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 14px 6px; align-items: center; }
.sl-search { flex: 1 1 220px; margin: 0; }
.sl-search input { width: 100%; }
.sl-sort { margin: 0; }
.sl-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 14px 10px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; background: #fff; }
.chip-link span { background: #F0F1F6; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.chip-link.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-link.on span { background: rgba(255,255,255,.2); }
.sl-note { padding: 0 14px 8px; font-size: 14px; color: var(--muted); }
.sl-empty { padding: 14px; }
.sl-head { display: grid; grid-template-columns: minmax(0, 3fr) 1fr 1fr 1fr 1.4fr; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.sl-head span:not(:first-child) { text-align: right; }
.sl-head span:last-child { text-align: left; }
.sl-row { border-bottom: 1px solid var(--line); }
.sl-row > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 3fr) 1fr 1fr 1fr 1.4fr; gap: 10px; align-items: center; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.sl-row > summary::-webkit-details-marker { display: none; }
.sl-row > summary:hover { background: #F7F8FB; }
.sl-row[open] > summary { background: #F3F4F8; }
.sl-name { display: flex; flex-direction: column; min-width: 0; }
.sl-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-name small { color: var(--muted); font-size: 12px; }
.sl-num, .sl-avail { text-align: right; }
.sl-avail strong { font-size: 17px; }
.sl-status [class^="dot-"] { display: none; }
.sl-row.faded > summary { opacity: .6; }
.sl-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.sl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 0; }
.sl-stats div { background: #F7F8FB; border-radius: 10px; padding: 8px 10px; }
.sl-stats dt { font-size: 12px; color: var(--muted); }
.sl-stats dd { margin: 0; font-weight: 700; }
.sl-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sl-more > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--link, #1B2D7A); min-height: 32px; display: flex; align-items: center; }
.sl-more form { margin-top: 8px; }
.sl-more-row { padding: 14px; text-align: center; margin: 0; }
.m-only { display: none; }
@media (max-width: 700px) {
  .sl-head, .d-only { display: none; }
  .sl-row > summary { grid-template-columns: minmax(0, 1fr) auto auto; padding: 10px 12px; }
  .sl-status .chip { display: none; }
  .sl-status [class^="dot-"] { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
  .dot-ok { background: #2E7D32; } .dot-warn { background: #E8A317; } .dot-bad { background: #C62828; } .dot-grey { background: #9EA3B8; }
  .m-only { display: inline; color: var(--muted); font-size: 12px; }
  .sl-avail strong { font-size: 16px; }
}

/* ---------- Product search box and delivery basket ---------- */
.picker, .cart { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pk-wrap { display: block; }
.pk-wrap input { width: 100%; }
.pk-list { list-style: none; margin: 0; padding: 4px; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(7,3,41,.15); max-height: 320px; overflow-y: auto; }
.cart .pk-list { top: 74px; }
.pk-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.pk-item:hover, .pk-item.on { background: #F0F1F8; }
.pk-item.out { opacity: .5; cursor: not-allowed; }
.pk-item.hidden-item .pk-text strong { font-style: italic; }
.pk-text { display: flex; flex-direction: column; min-width: 0; }
.pk-text small { color: var(--muted); font-size: 12px; }
.pk-n { font-weight: 700; white-space: nowrap; font-size: 14px; }
.pk-empty { padding: 10px; color: var(--muted); }
.pk-chosen { background: #F3F4F8; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.pk-missing input[data-pk-input] { border-color: #C62828; }
.cart-quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; min-height: 36px; padding: 0 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chip-btn:hover { background: #F0F1F8; }
.chip-btn.out { opacity: .5; cursor: not-allowed; }
.cart-repeat select { width: 100%; }
.cart-title { margin: 8px 0 0; font-size: 16px; }
.cart-lines { display: flex; flex-direction: column; gap: 6px; }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cart-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line .stepper { display: flex; align-items: center; gap: 4px; }
.cart-line .stepper input { width: 58px; text-align: center; }
.btn.ghost { background: transparent; border-color: transparent; }
.choice-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0; }
.warn-text { color: #8A5A00; }

/* Import preview (short) */
.imp-sum { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; }
.imp-cols { background: #F7F8FB; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.imp-cols > summary { cursor: pointer; font-size: 14px; }
.imp-cols form { margin-top: 10px; }
.link-like { color: var(--link, #1B2D7A); font-weight: 700; text-decoration: underline; }
.imp-h { font-size: 16px; margin: 10px 0 6px; }
.imp-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.imp-line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.imp-line:last-child { border-bottom: 0; }
.imp-line.compact { grid-template-columns: 40px minmax(0, 1fr) 40px auto; padding: 6px 10px; }
.imp-row { color: var(--muted); font-size: 12px; }
.imp-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.imp-qty { text-align: right; font-weight: 700; }
.imp-msg { grid-column: 2 / -1; font-size: 13px; }
.imp-ok { margin: 10px 0; }
.imp-ok > summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
@media (max-width: 700px) { .imp-line.compact .chip { display: none; } .imp-line.compact { grid-template-columns: 34px minmax(0, 1fr) 34px; } }

/* Stock approvals */
.appr-list { display: flex; flex-direction: column; gap: 10px; }
.appr { padding: 14px 16px; }
.appr-out { border-left: 4px solid #1F6FB2; }
.appr-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.appr-sum { margin: 6px 0 2px; font-weight: 600; }
.appr-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.appr-reject > summary { list-style: none; cursor: pointer; }
.appr-reject > summary::-webkit-details-marker { display: none; }
.appr-reject[open] { flex-basis: 100%; }
.appr-reject form { margin-top: 8px; background: #F7F8FB; border-radius: 12px; padding: 12px; }

/* Partner list (compact) */
.add-partner { margin-bottom: 14px; }
.add-partner > summary { list-style: none; display: inline-flex; cursor: pointer; }
.add-partner > summary::-webkit-details-marker { display: none; }
.add-partner:not([open]) { background: transparent; border: 0; padding: 0; box-shadow: none; }
.add-partner[open] > summary { margin-bottom: 14px; }
.pl-head { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr) 0.8fr 0.9fr 1fr 1fr; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pl-head span:nth-child(n+3):nth-child(-n+5) { text-align: right; }
.pl-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr) 0.8fr 0.9fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 48px; }
.pl-row:hover { background: #F7F8FB; color: var(--ink); }
.pl-row.faded { opacity: .6; }
.pl-name, .pl-contact { display: flex; flex-direction: column; min-width: 0; }
.pl-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
.pl-name small, .pl-contact small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-num { text-align: right; }
.m-dot { display: none; }
@media (max-width: 700px) {
  .pl-head { display: none; }
  .pl-row { grid-template-columns: minmax(0, 1fr) auto auto; padding: 10px 12px; }
  .pl-status .chip { display: none; }
  .m-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
  .pl-open { grid-column: 1 / -1; color: #8A5A00; margin-top: -4px; }
  .pl-row .d-only, .sl-row .d-only { display: none; }
}
.give-login, .sign-in { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sign-in-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-left: 28px; }
.sign-in { flex-direction: row; flex-wrap: wrap; gap: 14px; align-items: center; }
.sign-in legend { font-weight: 600; margin-bottom: 4px; width: 100%; }
.dup-warn ul { margin: 6px 0 8px; padding-left: 18px; }
.dup-warn li { margin: 4px 0; }
.app-version { display: block; font-size: 11px; opacity: .6; margin-top: 8px; }
.order-date { max-width: 240px; margin: 0; }
.same-rider { grid-column: 1 / -1; }
.reg-date > summary { cursor: pointer; font-size: 14px; }
.reg-date form { margin-top: 10px; }

/* Job lists (Shipments, Daily register) */
.jl-head, .jl-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; }
.jl-reg .jl-head, .jl-reg .jl-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .9fr); }
.jl-head { border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.jl-row { border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 48px; }
.jl-row:hover { background: #F7F8FB; color: var(--ink); }
.jl-row.faded { opacity: .55; }
.jl-id, .jl-who, .jl-money { display: flex; flex-direction: column; min-width: 0; }
.jl-id strong { color: var(--navy); font-size: 14px; }
.jl-id small, .jl-who small, .jl-money small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl-money, .jl-num { text-align: right; }
.jl-notes { grid-column: 1 / -1; font-size: 12px; margin-top: -4px; }
@media (max-width: 700px) {
  .jl-head { display: none; }
  .jl-row, .jl-reg .jl-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id money" "who status"; gap: 2px 10px; padding: 10px 12px; }
  .jl-id { grid-area: id; } .jl-who { grid-area: who; font-size: 14px; } .jl-money { grid-area: money; } .jl-status { grid-area: status; justify-self: end; }
  .jl-status .chip { font-size: 11px; padding: 2px 8px; }
  .jl-row .d-only { display: none; }
  .jl-notes { grid-column: 1 / -1; margin-top: 2px; }
}
.export-all { position: relative; }
.export-all > summary { list-style: none; cursor: pointer; }
.export-all > summary::-webkit-details-marker { display: none; }
.export-menu { position: absolute; right: 0; top: 110%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 26px rgba(7,3,41,.12); min-width: 220px; }

/* Export menu: on phones it opens full width under the button instead of off the left edge */
@media (max-width: 700px) {
  .export-all { position: static; width: 100%; }
  .export-all > summary { display: inline-flex; }
  .export-menu { position: static; margin-top: 8px; min-width: 0; width: 100%; box-shadow: none; }
  .export-menu .btn { width: 100%; justify-content: center; }
}
.so-box h2 { margin-top: 0; }
.so-box .actions form { display: inline; }

/* Shipments: filters, quick dates, late-entry tag */
.sh-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.sh-filters .filter-actions { display: flex; gap: 8px; }
.quick-dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip-link { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip-link.on { background: var(--ink, #070329); color: #fff; border-color: transparent; }
.late-tag { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: #FFF1D6; color: #8A5300; font-weight: 700; font-size: .72rem; }

/* Pickup / recipient choices, Motor Park choice groups, package, default town */
.who-choice { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 0 10px; }
.who-choice .choice { margin: 0; }
.choice-group { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.choice-group > legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 8px; }
.divided { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.sub-h { font-size: .98rem; margin: 14px 0 6px; }
.town-with-default { display: flex; flex-direction: column; gap: 4px; }
.town-with-default .link-btn { align-self: flex-start; font-size: .82rem; }
.chip.info { background: #DCEBFF; color: #0B3D91; }
.note.blue { background: #EAF2FF; border: 1px solid #B9D3FF; color: #0B3D91; border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Errand: the customer's list as typed */
.typed-list { background: var(--soft, #F6F5F1); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.typed-list pre { white-space: pre-wrap; font-family: inherit; margin: 6px 0; }
.typed-list summary { cursor: pointer; font-weight: 600; }

/* Money in & out */
.money-tiles .tile small { display: block; font-size: .78rem; opacity: .8; margin-top: 2px; }
.money-table td, .money-table th { white-space: nowrap; }
.money-table td:first-child { white-space: normal; }
.money-table tfoot th { border-top: 2px solid var(--line); }
.card h2.pad { padding: 16px 18px 0; margin: 0 0 8px; }
.table-wrap { overflow-x: auto; }

/* Shipments: admin profit bar */
.profit-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.profit-bar > div span { display: block; font-size: .78rem; color: var(--muted, #6b6b7b); }
.profit-bar > div strong { font-size: 1.15rem; }
.profit-bar .pb-main strong { font-size: 1.35rem; }
.profit-bar .pb-main small { display: block; font-size: .75rem; color: var(--muted, #6b6b7b); }
.profit-bar p { grid-column: 1 / -1; margin: 4px 0 0; }
@media (max-width: 600px) { .profit-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ok-text { color: #1E7A46; }

/* Partner rate card: standard price */
.std-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--soft, #F6F5F1); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.card-lite { border: 1px dashed #CFCDDA; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.xp-card { border-left: 4px solid var(--amber, #F2A900); padding-left: 12px; margin-top: 12px; }
.order-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--navy); background: #FFF4D6; border-radius: 6px; padding: 2px 8px; margin: 2px 0; }
.staff-head { display: flex; gap: 14px; align-items: center; }
.staff-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid #E4E2EE; }
.reg-table td, .reg-table th { white-space: nowrap; }
.reg-table td:first-child { white-space: normal; min-width: 180px; }
.pre-wrap { white-space: pre-wrap; }
.perf-table td, .perf-table th { white-space: nowrap; }
.perf-table.days td, .perf-table.days th { padding-left: 6px; padding-right: 6px; font-size: 13px; }
.rider-stats { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.rider-stats span { background: #F0EFF6; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.rider-stats strong { color: var(--navy); }
/* uploaded logo */
.brand-logo { display: block; height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.brand-logo.on-dark-box { background: #fff; border-radius: 10px; padding: 4px 8px; height: 44px; }
.mobile-bar .brand-logo { height: 34px; max-width: 150px; }
.mobile-bar .brand-logo.on-dark-box { height: 38px; }
.brand-logo.foot { height: 36px; max-width: 160px; }
.logo-try { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.logo-try-bar { background: var(--navy); border-radius: 10px; padding: 8px 10px; display: inline-flex; }
.print-logo { display: block; max-height: 48px; max-width: 200px; margin-bottom: 4px; }
.logo-try { flex-wrap: wrap; }
.logo-try-white { background: #fff; border: 1px solid #E4E2EE; border-radius: 10px; padding: 8px 10px; display: inline-flex; }
.img-preview img[src^="/media/logo-dark"] { background: var(--navy); border-radius: 8px; padding: 6px; }

.tab .badge { background: #C62828; color: #fff; margin-left: 4px; height: 20px; min-width: 20px; }
.warn-text { color: #B26A00; }
.row-end { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.steps-list { margin: 0 0 8px; padding-left: 22px; }
.steps-list li { margin: 4px 0; }

/* =====================================================================
   2026.11 · Light & minimal theme (compact)
   Sits last so it takes priority. Keeps every class name the pages use.
   Brand colours still come from --navy / --amber (Business settings › Brand).
   ===================================================================== */
:root {
  --ground: #F6F7F9; --surface: #FFFFFF; --white: #FFFFFF;
  --ink: #15142A; --ink-2: #43425A; --muted: #6B6A80; --faint: #9A99AC;
  --line: #E6E6EC; --line-2: #EFEFF3; --hover: #F5F5F8;
  --tint: color-mix(in srgb, var(--navy) 7%, #fff);
  --tint-2: color-mix(in srgb, var(--navy) 14%, #fff);
  --amber-ink: color-mix(in srgb, var(--amber) 55%, #3a2500);
  --ok-bg: #ECFDF3; --ok: #067647; --ok-line: #ABEFC6;
  --warn-bg: #FFFAEB; --warn: #93370D; --warn-line: #FEDF89;
  --bad-bg: #FEF3F2; --bad: #B42318; --bad-line: #FECDCA;
  --info-bg: #EFF8FF; --info: #175CD3; --info-line: #B2DDFF;
  --grey-bg: #F2F4F7;
  --radius: 10px; --radius-sm: 8px; --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 16px 32px -8px rgba(16, 24, 40, .14);
  --ctl-h: 38px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
body { background: var(--ground); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: color-mix(in srgb, var(--navy) 75%, #fff); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
h2 { font-size: 15px; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
code, kbd { background: var(--grey-bg); border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
::selection { background: var(--tint-2); }
:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--navy) 55%, #fff); outline-offset: 2px;
}

/* ---------- Brand mark ---------- */
.brand-mark, .app-mark { background: var(--navy) !important; color: #fff !important; border-radius: 9px; width: 32px; height: 32px; font-size: 15px; font-weight: 700; }
.brand-text strong, .app-brand-text strong { color: var(--ink) !important; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand-text small, .app-brand-text small { color: var(--muted) !important; font-size: 9.5px; letter-spacing: 1.4px; font-weight: 600; }
.brand-logo { height: 32px; }
.brand-logo.on-dark-box { background: none; padding: 0; height: 32px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.card.flush { padding: 0; }
.card.attention { border: 1px solid var(--tint-2); box-shadow: 0 0 0 3px var(--tint); }
.card h2:first-child { margin-top: 0; }
.card h2.pad { padding: 16px 18px 0; }
.card-toolbar { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.stack { gap: 14px; }
.tight-stack { gap: 8px; }

/* ---------- Forms ---------- */
label { gap: 5px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
input[type=text], input[type=number], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  height: var(--ctl-h); border: 1px solid #D5D5DE; border-radius: var(--radius-sm); padding: 0 11px; font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s; width: 100%;
}
textarea { height: auto; padding: 9px 11px; min-height: 76px; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6A80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
select[multiple] { height: auto; background-image: none; padding: 6px; }
input:hover, select:hover, textarea:hover { border-color: #BDBDCA; }
input:focus, select:focus, textarea:focus { outline: none; border-color: color-mix(in srgb, var(--navy) 55%, #fff); box-shadow: 0 0 0 3px var(--tint); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: var(--grey-bg); color: var(--muted); box-shadow: none; }
input[type=file] { font-size: 13px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; border: 1px solid #D5D5DE; background: #fff; border-radius: 7px; padding: 6px 10px; margin-right: 10px; cursor: pointer; color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--navy); }
label.choice { font-weight: 500; font-size: 14px; color: var(--ink); min-height: 32px; gap: 9px; }
label.choice input { width: 16px; height: 16px; }
label > small.hint, label small.muted { font-weight: 400; font-size: 12px; color: var(--muted); }
fieldset.choices { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
fieldset.choices legend { font-weight: 650; color: var(--ink); font-size: 13px; }
.field-error { color: var(--bad); font-weight: 550; font-size: 12px; }
input.invalid, textarea.invalid, select.invalid { border-color: #F97066 !important; background: #fff; box-shadow: 0 0 0 3px var(--bad-bg) !important; }
.grid2, .grid3, .grid4 { gap: 12px; }
.small-input { height: 32px !important; }
.qty-input { height: 34px; }

/* ---------- Buttons ---------- */
.btn { min-height: 36px; padding: 0 14px; gap: 6px; border-radius: var(--radius-sm); border: 1px solid #D5D5DE; background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-xs); transition: background .12s, border-color .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { background: var(--hover); color: var(--ink); border-color: #C9C9D4; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.1), inset 0 1px 0 rgba(255,255,255,.08); }
.btn.primary:hover { background: color-mix(in srgb, var(--navy) 88%, #fff); color: #fff; }
.btn.danger { color: var(--bad); border-color: var(--bad-line); background: #fff; }
.btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.big { min-height: 44px; font-size: 15px; padding: 0 20px; }
.btn.dashed { border-style: dashed; border-color: #C3C3D0; color: var(--ink-2); box-shadow: none; background: transparent; }
.btn.dashed:hover { border-color: var(--navy); color: var(--navy); background: var(--tint); }
.btn.ghost { box-shadow: none; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #1d1300; }
.btn.light, .btn.soft { background: var(--tint); border-color: transparent; color: var(--navy); box-shadow: none; }
.btn.light:hover, .btn.soft:hover { background: var(--tint-2); color: var(--navy); }
.btn.wa, .btn.wa-btn, .btn.ok-btn { background: #12805C; border-color: #12805C; color: #fff; }
.btn.wa:hover, .btn.wa-btn:hover, .btn.ok-btn:hover { background: #0E6B4D; color: #fff; }
.btn.tg-btn { background: #1F6FB2; border-color: #1F6FB2; color: #fff; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.link-btn, .link-like { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 13.5px; }
.link-btn:hover, .link-like:hover { text-decoration: underline; }
.link-btn.danger { color: var(--bad); }
.actions { gap: 8px; }

/* ---------- Banners, notes, chips ---------- */
.banner { border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; border: 1px solid; display: block; }
.banner.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.banner.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.banner.error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.banner.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.banner a { color: inherit; font-weight: 600; }
.note.amber { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); border-radius: var(--radius-sm); }
.note.blue { background: var(--info-bg); border-color: var(--info-line); color: var(--info); border-radius: var(--radius-sm); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 18px; border: 1px solid transparent; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.chip.warn { background: var(--warn-bg); color: #B54708; border-color: var(--warn-line); }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.chip.grey { background: var(--grey-bg); color: #475467; border-color: #EAECF0; }
.chip.blue { background: var(--tint); color: var(--navy); border-color: var(--tint-2); }
.chip.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.chip.big { font-size: 12.5px; padding: 3px 10px; }
.late-tag { background: var(--warn-bg); color: #B54708; border: 1px solid var(--warn-line); font-weight: 600; }
.order-tag { background: var(--tint); color: var(--navy); }
.pkg-no { background: var(--tint); }
.badge { min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; font-size: 11px; font-weight: 700; background: var(--navy); color: #fff; }
.count, .tab .count { background: var(--amber); color: #1d1300; font-weight: 700; font-size: 11px; border-radius: 9px; padding: 0 6px; }
.tab .badge { background: #D92D20; }
.amber-text, .warn-text { color: #B54708; }
.ok-text { color: var(--ok); }
ul.checks li { border-radius: var(--radius-sm); padding: 8px 12px 8px 36px; font-size: 13.5px; }
ul.checks li.ok { background: var(--ok-bg); color: var(--ok); }
ul.checks li.no { background: var(--bad-bg); color: var(--bad); }
ul.checks li.later { background: var(--warn-bg); color: var(--warn); }
ul.checks li.opt { background: var(--grey-bg); color: var(--ink-2); }
ul.checks li::before { top: 8px; }

/* ---------- Tabs and quick filters ---------- */
.tabs { gap: 2px; padding: 3px; background: var(--grey-bg); border-radius: 10px; display: inline-flex; flex-wrap: wrap; margin-bottom: 16px; border: 1px solid var(--line-2); }
.tab { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.tab:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.1), 0 1px 2px rgba(16,24,40,.06); }
.chip-link { min-height: 30px; padding: 0 11px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 550; border-radius: 999px; display: inline-flex; align-items: center; }
.chip-link:hover { background: var(--hover); color: var(--ink); }
.chip-link.on { background: var(--tint); color: var(--navy); border-color: var(--tint-2); }
.chip-link.on span { background: #fff; }
.chip-btn { min-height: 30px; font-size: 13px; border-color: var(--line); }
.quick-dates { gap: 6px; }

/* ---------- Choice chips (service picker, payment mode) ---------- */
.chip-radio span { min-height: 36px; padding: 5px 12px; border-radius: var(--radius-sm); border: 1px solid #D5D5DE; color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-xs); transition: border-color .12s, background .12s; }
.chip-radio.tall span { min-height: 48px; }
.chip-radio span:hover { border-color: #BDBDCA; }
.chip-radio input:checked + span { background: var(--tint); border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.chip-radio input:checked + span small { color: color-mix(in srgb, var(--navy) 70%, #fff); }
.chip-radio input:focus-visible + span { outline: 2px solid color-mix(in srgb, var(--navy) 55%, #fff); }
.big-choice span { border-radius: var(--radius); border: 1px solid #D5D5DE; padding: 14px 16px; color: var(--ink); box-shadow: var(--shadow-xs); }
.big-choice span strong { font-size: 15px; }
.big-choice span small { font-size: 13px; }
.big-choice input:checked + span { background: var(--tint); border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.big-choice input:checked + span small { color: var(--ink-2); }

/* ---------- Tables and row lists ---------- */
.table { font-size: 13.5px; }
.table th { background: #FAFAFB; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 14px; border-top: 1px solid var(--line-2); }
.table tbody tr:hover td { background: #FBFBFC; }
.table tfoot th, .table tfoot td { background: #FAFAFB; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.card:not(.flush) > .table th:first-child, .card:not(.flush) > form > .table th:first-child { border-top-left-radius: 8px; }
.jl-head, .sl-head, .pl-head { background: #FAFAFB; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; border-color: var(--line); padding-top: 9px; padding-bottom: 9px; }
.jl-row, .sl-row, .pl-row { border-color: var(--line-2); min-height: 52px; }
.jl-row:hover, .pl-row:hover, .sl-row > summary:hover, .chat-row:hover { background: #FAFAFB; }
.jl-id strong { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; letter-spacing: .01em; }
.jl-who { font-size: 13.5px; }
.jl-money strong, .pl-num, .sl-num, .jl-num { font-variant-numeric: tabular-nums; }
.sl-row[open] > summary { background: var(--hover); }
.sl-stats div, .imp-cols, .appr-reject form, .mp-box, .me-toggle, .std-rate, .typed-list, .pk-chosen { background: #FAFAFB; border-color: var(--line); }
.mono { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .95em; }
tr.struck td { color: var(--faint); }

/* ---------- Stat tiles (white, quiet) ---------- */
.tiles { gap: 12px; margin-bottom: 16px; }
.tile { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-xs); gap: 6px; position: relative; }
.tile span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tile strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); }
.tile.amber strong { color: #B54708; }
.tile.bad strong { color: var(--bad); }
.tile.slim { padding: 10px 14px; }
.tile.slim strong { font-size: 18px; }
.tile::before { content: ""; position: absolute; left: 16px; top: 0; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--tint-2); }
.tile.amber::before { background: var(--amber); }
.tile.bad::before { background: #F97066; }
.stat-row .stat, .profit-bar { border-color: var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.stat-row .stat strong { color: var(--ink); font-size: 20px; }
.profit-bar > div strong { color: var(--ink); }

/* ---------- Page header ---------- */
.page-head { margin-bottom: 18px; }
.page-head h1 + p, .page-head p.muted { margin: 0; font-size: 13.5px; color: var(--muted); }
.page-head.row { align-items: center; }
.row-between h2 { margin: 0; }

/* ---------- Misc building blocks ---------- */
.group { border-top: 1px solid var(--line-2); padding-top: 16px; gap: 12px; }
.group h2 { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.group.drop { background: #FAFAFB; border: 1px solid var(--line); border-radius: var(--radius); }
.group.tint-amber { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); }
.group.tint-blue { background: var(--info-bg); border: 1px solid var(--info-line); border-radius: var(--radius); }
.sk-box, .fees-box, .cost-row, .card-lite { border-color: var(--line); border-radius: var(--radius); background: #FAFAFB; }
.rider-add { background: #FAFAFB; border-color: #C3C3D0; border-radius: var(--radius); }
.sticky-actions { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(6px); border-top: 1px solid var(--line); padding: 10px 0 2px; z-index: 5; }
.totals-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); padding: 18px; }
.totals-card h2 { color: var(--ink); }
.totals-card dt { color: var(--muted); }
.totals-card dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.totals-card dd.amber { color: #B54708; }
.totals-card a { color: var(--navy); }
dl.kv dt { color: var(--muted); font-size: 12.5px; }
dl.kv dd { font-size: 13.5px; }
ol.timeline { border-left: 1px solid var(--line); gap: 12px; }
ol.timeline li::before { width: 9px; height: 9px; left: -23px; top: 6px; background: #C3C3D0; box-shadow: 0 0 0 3px #fff; }
ol.timeline li:first-child::before { background: var(--navy); border: 0; box-shadow: 0 0 0 3px var(--tint-2); }
ul.attention-list a { background: #FAFAFB; border: 1px solid var(--line-2); min-height: 40px; border-radius: var(--radius-sm); font-size: 13.5px; }
ul.attention-list a:hover { background: var(--hover); border-color: var(--line); }
ul.attention-list strong { color: var(--navy); font-size: 15px; }
.bar { background: color-mix(in srgb, var(--navy) 80%, #fff); border-radius: 4px 4px 0 0; }
.bar-col:hover .bar { background: var(--navy); }
.suggest, .pk-list, .export-menu { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.suggest button:hover, .suggest button.on, .pk-item:hover, .pk-item.on { background: var(--hover); }
.suggest strong { color: var(--ink); font-weight: 600; }
.proof-thumb, .img-preview { background: #FAFAFB; border: 1px dashed #C3C3D0; color: var(--muted); border-radius: var(--radius); }
.photo-btn { border: 1px dashed #C3C3D0; border-radius: var(--radius); color: var(--ink-2); }
.collect-box { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); }
.price-box { border-radius: var(--radius-sm); font-weight: 550; }
.price-box.ok { border-color: var(--ok-line); }
.price-box.warn { border-color: var(--warn-line); }
.site-switch.is-open { border: 1px solid var(--ok-line); background: var(--ok-bg); }
.site-switch.is-closed { border: 1px solid var(--warn-line); background: var(--warn-bg); }
pre.log { background: #101828; color: #D0D5DD; border-radius: var(--radius); font-size: 12px; }
.rider-stats span, .sl-stats div { background: var(--grey-bg); }
.staff-photo { border: 1px solid var(--line); }
.email-preview { background: #FAFAFB; border-color: var(--line); }
details summary { font-weight: 600; font-size: 13.5px; }
details.card > summary { min-height: 32px; }
.add-partner:not([open]) { box-shadow: none; }
.appr-out { border-left: 3px solid var(--info); }
.xp-card { border-left-color: var(--amber); }

/* ---------- Chat ---------- */
.chat-row { border-color: var(--line-2); padding: 12px 18px; }
.chat-row.unread { background: var(--tint); }
.chat-thread { background: #FAFAFB; }
.msg { border-radius: 14px; font-size: 14px; }
.msg.mine, .kk-msg.me { background: var(--navy); }
.msg.theirs, .kk-msg.them { border-color: var(--line); }
.kk-panel { border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.kk-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.kk-head small { color: var(--muted); }
.kk-head button { color: var(--ink-2); }
.kk-list { background: #FAFAFB; }

/* =====================================================================
   Portal shell: white sidebar, grouped menu with icons, slim top bar
   ===================================================================== */
body.portal { background: var(--ground); }
.sidebar { width: 244px; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px 12px; gap: 1px; }
.sidebar .brand { padding: 4px 8px 16px; }
.sidebar .brand-text strong { color: var(--ink) !important; font-size: 14.5px; }
.nav-group { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 4px; }
.nav-link { min-height: 34px; padding: 0 10px; gap: 10px; justify-content: flex-start; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.nav-link .ni { width: 18px; height: 18px; flex-shrink: 0; color: var(--faint); stroke-width: 1.8; }
.nav-link > .nl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link:hover .ni { color: var(--ink-2); }
.nav-link.active { background: var(--tint); color: var(--navy); font-weight: 600; }
.nav-link.active .ni { color: var(--navy); }
.nav-link .badge { margin-left: auto; background: var(--navy); color: #fff; }
.nav-link.active .badge { background: var(--navy); color: #fff; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 12px 6px 0; margin-top: auto; color: var(--ink); gap: 2px; }
.me-row { display: flex; align-items: center; gap: 10px; padding: 2px 4px 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--tint-2); color: var(--navy); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-text strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text small { font-size: 11.5px; color: var(--muted) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-links-p { display: flex; flex-direction: column; }
.sidebar-foot a, .sidebar-foot .link-button { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 6px; border-radius: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; text-decoration: none; }
.sidebar-foot a:hover, .sidebar-foot .link-button:hover { background: var(--hover); color: var(--ink); }
.sidebar-foot .link-button { background: none; border: 0; font: inherit; font-size: 12.5px; cursor: pointer; width: 100%; text-align: left; }
.sidebar-foot svg { width: 15px; height: 15px; color: var(--faint); }
.app-version { color: var(--faint); opacity: 1; padding: 6px 6px 0; font-size: 11px; }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(246,247,249,.85); backdrop-filter: saturate(1.6) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-search { position: relative; flex: 0 1 380px; }
.topbar-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.topbar-search input { height: 34px; padding-left: 34px; background: #fff; font-size: 13.5px; }
.topbar-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); background: var(--grey-bg); padding: 0 5px; }
.topbar .spacer { flex: 1; }
.topbar .btn { min-height: 34px; }
.topbar-icon { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); position: relative; border: 1px solid transparent; }
.topbar-icon:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.topbar-icon svg { width: 18px; height: 18px; }
.topbar-icon .badge { position: absolute; top: -3px; right: -4px; background: #D92D20; }
.content { padding: 24px 28px 48px; max-width: 1480px; width: 100%; }

@media (max-width: 800px) {
  .topbar { display: none; }
  .mobile-bar { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .mobile-bar .brand-text strong { color: var(--ink) !important; }
  .entry-btn { background: var(--navy); border-color: var(--navy); color: #fff; min-height: 36px; }
  .menu-btn { background: var(--grey-bg); color: var(--ink); min-height: 36px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
  .menu-btn .badge { background: #D92D20; }
  .sidebar { box-shadow: var(--shadow-lg); border-right: 0; padding-top: 52px !important; }
  .menu-close { color: var(--ink-2); }
  .nav-scrim { background: rgba(16,24,40,.4); }
  .nav-link { min-height: 42px; }
  .content { padding: 16px 14px 40px; }
}

/* Phones: comfortable tap sizes */
@media (max-width: 700px) {
  :root { --ctl-h: 44px; }
  input[type=text], input[type=number], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=search], select { font-size: 16px; }
  .btn { min-height: 42px; }
  .btn.small { min-height: 34px; }
  .card { padding: 16px; border-radius: 12px; }
  h1 { font-size: 20px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile strong { font-size: 20px; }
  table.table.cards tbody tr { border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); }
}

/* =====================================================================
   Sign-in and plain pages
   ===================================================================== */
body.plain { background: var(--ground); background-image: radial-gradient(1200px 500px at 50% -10%, var(--tint) 0%, transparent 70%); }
.plain-wrap { padding: 64px 20px; gap: 20px; align-items: stretch; }
.plain-wrap > .brand { align-self: center; }
body.plain .brand-text strong { color: var(--ink) !important; }
body.plain .card { box-shadow: var(--shadow-md); padding: 28px; border-radius: 16px; }
body.plain .card.narrow { max-width: none; }
body.plain .card h1 { font-size: 20px; }
body.plain .btn.primary { min-height: 40px; }

/* =====================================================================
   Public website: light app bar, light hero, white cards
   ===================================================================== */
body.public, body.public.app { --ground: #FFFFFF; background: #fff; }
body.public :focus-visible { outline: 2px solid color-mix(in srgb, var(--navy) 55%, #fff) !important; }
.app-bar { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(10px); color: var(--ink); border-bottom: 1px solid var(--line); }
.app-bar-in { min-height: 64px; }
.app-brand { color: var(--ink); }
.pill-nav { background: transparent; gap: 2px; padding: 0; }
.pill-nav a { color: var(--ink-2); font-weight: 500; min-height: 36px; padding: 0 12px; border-radius: 8px; }
.pill-nav a:hover { background: var(--hover); color: var(--ink); }
.pill-nav a[aria-current="page"] { background: var(--tint); color: var(--navy); font-weight: 600; }
.icon-btn { background: transparent; color: var(--ink-2); border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 9px; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.bar-link { color: var(--ink-2); font-weight: 500; }
.bar-link:hover { color: var(--ink); }
.bar-cta { background: var(--navy); color: #fff; border-radius: 9px; min-height: 38px; font-weight: 600; padding: 0 16px; }
.bar-cta:hover { background: color-mix(in srgb, var(--navy) 88%, #fff); color: #fff; }

/* hero */
.d-hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--line-2); }
.d-hero-grid { padding-top: 56px; padding-bottom: 104px; }
.d-greet { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.d-hero-copy h1 { color: var(--ink); font-weight: 750; letter-spacing: -.03em; }
.d-hero-copy p { color: var(--ink-2); }
.d-track { border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 16px; }
.d-track label { color: var(--ink); font-size: 15px; font-weight: 650; }
.d-track small { color: var(--muted); }
.d-track-row input { height: 46px; border-radius: 10px; border: 1px solid #D5D5DE; background: #fff; font-size: 15px; }
.d-track-row .btn { height: 46px; }
.d-qa-wrap { margin-top: -60px; }
.d-tile { border-radius: 14px; box-shadow: var(--shadow-md); border-color: var(--line); color: var(--ink); }
.d-tile:hover { box-shadow: var(--shadow-lg); color: var(--ink); }
.d-tile small { color: var(--muted); }
.d-tile-ico { background: var(--tint); color: var(--navy); border-radius: 10px; width: 40px; height: 40px; }
.d-tile.main .d-tile-ico { background: var(--navy); }
.d-sec-head h2 { color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.d-svc-card, ol.d-steps li, .d-why > div, ul.d-towns li, body.app .card, .app-card { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); }
.d-svc-card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-2); }
.d-svc-ico { background: #FAFAFB; border-bottom: 1px solid var(--line-2); height: 84px; color: var(--navy); }
.d-svc-text strong, ol.d-steps strong, .d-why > div, .d-side-card h2 { color: var(--ink); }
.d-svc-text small, ol.d-steps small, .d-sec-head small { color: var(--muted); }
.d-num { background: var(--tint); color: var(--navy); border-radius: 9px; width: 32px; height: 32px; font-size: 14px; }
.d-promo { background: linear-gradient(120deg, var(--tint) 0%, #fff 70%); border: 1px solid var(--line); color: var(--ink); border-radius: 18px; }
.d-promo:hover { color: var(--ink); border-color: var(--tint-2); }
.d-promo-copy small { color: var(--muted); }
.d-promo-copy strong { color: var(--ink); }
.d-promo-copy span { color: var(--navy); }
.d-promo-sub { color: var(--ink-2); }
.d-why > div svg { color: var(--navy); }
ul.d-towns li { color: var(--ink-2); font-weight: 500; }
.req-chip { background: var(--tint); color: var(--navy); }
.req-chip.act { background: var(--navy); }
.req-text strong, ul.upd-list a { color: var(--ink); }

/* inner pages: title bands become light */
.page-band, body.app .pub-hero, .pub-hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%) !important; color: var(--ink) !important; box-shadow: none !important; clip-path: none !important; border-bottom: 1px solid var(--line-2); }
.page-band h1, .pub-hero h1, .pub-hero.home h1 { color: var(--ink) !important; }
.page-band p, .pub-hero p, .muted-light, .pub-hero .muted-light { color: var(--ink-2) !important; }
.pub-hero a:not(.btn) { color: var(--navy); }
.pub-hero .btn.outline-light, body.public .btn.outline-light { background: #fff; color: var(--navy); border: 1px solid #D5D5DE; }
body.public .pub-hero .btn.amber, body.public .sellers .btn.amber, body.public .final-cta .btn.amber, body.public .btn.amber { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-back { background: #fff; color: var(--ink); border: 1px solid #D5D5DE; }
.step-back:hover { background: var(--hover); }
.step-tabs button { color: var(--ink-2); border: 1px solid var(--line); background: #fff; }
.step-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.step-tabs button:not(:disabled):not(.on):hover { background: var(--hover); }
.progress span { background: var(--line); }
.progress span.on, body.public .progress span.on { background: var(--navy); }
.eyebrow { color: var(--muted) !important; }
.sellers, .final-cta { background: linear-gradient(120deg, var(--tint) 0%, #fff 75%); color: var(--ink); border: 1px solid var(--line); }
.sellers h2, .final-cta h2 { color: var(--ink); }
.sellers p, .final-cta p { color: var(--ink-2); }
ul.ticks.light li > svg { background: var(--tint); color: var(--navy); }
ul.ticks.light strong { color: var(--ink); }
ul.ticks.light span { color: var(--muted); }
.quote-card { border: 1px solid var(--navy) !important; box-shadow: 0 0 0 3px var(--tint); }
.pay-card { border: 1px solid var(--tint-2); }
.quote-total { color: var(--ink); font-weight: 750; letter-spacing: -.02em; }
body.public .tint-amber-card, body.public .note.amber, body.public .group.tint-amber { background: var(--tint); border-color: var(--tint-2); color: var(--ink); }

/* footer and phone tab bar */
.app-foot { border-top: 1px solid var(--line); background: #FAFAFB; }
.foot-logo .app-mark { background: var(--navy) !important; }
.foot-col h2 { color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.foot-col li a { color: var(--ink-2); min-height: 32px; font-size: 14px; }
.foot-bottom { border-color: var(--line); }
.foot-bottom-in a { color: var(--ink-2); font-weight: 600; }
.tabbar { border-top-color: var(--line); box-shadow: 0 -4px 16px rgba(16,24,40,.05); }
.tabbar a, .tabbar button { color: var(--faint); font-weight: 600; }
.tabbar [aria-current="page"] { color: var(--navy); }
.tab-send > span { border-radius: 14px; box-shadow: 0 6px 16px color-mix(in srgb, var(--navy) 35%, transparent); }
.sheet-links a { color: var(--ink); font-weight: 600; border-color: var(--line-2); }

/* floating chat buttons */
.fb { box-shadow: var(--shadow-md); }
body.public .fb.chat, .fb.chat { background: var(--navy); color: #fff; border: 0; font-weight: 600; font-size: 14px; }
body.public .fb.wa, body.public .fb.chat { border: 0; }
.fb.wa { background: #12805C; }

@media (max-width: 860px) {
  .d-hero-grid { padding-top: 22px; padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.btn .ni, .btn > svg { width: 16px; height: 16px; flex-shrink: 0; }
.topbar .btn.primary .ni { color: #fff; }
.tile::before { content: none; }
.topbar-me { display: inline-flex; margin-left: 4px; text-decoration: none; }
.topbar-me .avatar { width: 30px; height: 30px; font-size: 12px; }
label.choice small.muted { display: inline; }
/* Accent colour (Business settings › Brand): marks where you are and what's waiting */
.nav-link.active { box-shadow: inset 3px 0 0 var(--amber); }
.pill-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.tabbar [aria-current="page"]::after { content: ""; position: absolute; bottom: 0; width: 18px; height: 3px; border-radius: 2px; background: var(--amber); }
.d-greet::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: 1px; }
.tile.amber { border-top: 2px solid var(--amber); }
/* Website soft tints follow the brand colour too (an older rule fixed them to blue) */
body.public, body.public.app { --tint: color-mix(in srgb, var(--navy) 7%, #fff); --tint-2: color-mix(in srgb, var(--navy) 16%, #fff); --soft: color-mix(in srgb, var(--navy) 4%, #fff); --mid: color-mix(in srgb, var(--navy) 45%, #fff); }
/* Shipments filters on phones: just the search box until "More filters" */
.fold-btn { display: none; }
@media (max-width: 700px) {
  .fold-btn { display: inline-flex; }
  .sh-filters.fold:not(.open) > label:not(:first-child) { display: none; }
  .sh-filters .filter-actions .btn { flex: 1; }
}
/* Home: top banner photo (Website › Images › Home: top banner) and promotions */
.d-hero.has-pic .d-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.d-hero.has-pic .d-hero-copy { gap: 14px; }
.d-hero.has-pic .d-track { margin-top: 8px; max-width: 520px; box-shadow: var(--shadow-md); }
.d-hero-pic img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 20px; display: block; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.d-promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 28px; }
.d-promos.one { grid-template-columns: 1fr; }
.d-promo-banner { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); display: block; }
@media (max-width: 860px) {
  .d-hero.has-pic .d-hero-grid { grid-template-columns: 1fr; }
  .d-hero-pic { order: -1; }
  .d-hero-pic img { aspect-ratio: 2 / 1; border-radius: 14px; }
  .d-promos { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; }
}
/* Home: banner photo behind the headline */
.d-hero.has-bg { position: relative; overflow: hidden; background: #101018; color: #fff; border-bottom: 0; }
.d-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,22,.78) 0%, rgba(12,12,22,.45) 55%, rgba(12,12,22,.15) 100%); }
.d-hero.has-bg .d-hero-grid { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 120px; }
.d-hero.has-bg .d-hero-copy h1 { color: #fff; }
.d-hero.has-bg .d-hero-copy p { color: rgba(255,255,255,.88); }
.d-hero.has-bg .d-greet { color: rgba(255,255,255,.85); }
.d-hero.has-bg .d-track { box-shadow: 0 20px 44px rgba(0,0,0,.35); border: 0; }
@media (max-width: 860px) {
  .d-hero.has-bg::after { background: linear-gradient(180deg, rgba(12,12,22,.55) 0%, rgba(12,12,22,.75) 100%); }
  .d-hero.has-bg .d-hero-grid { padding-top: 40px; padding-bottom: 84px; }
}
/* Help buttons keep a normal size on every screen (they used to stretch to half the page) */
.d-help-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.d-help-btns .btn { flex: 0 1 auto; min-width: 128px; min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.foot-btns .btn { flex: 0 0 auto; }
@media (min-width: 600px) and (max-width: 980px) {
  .d-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 599px) { .foot-btns .btn { flex: 1 1 140px; } }
body.app .btn { border-radius: 10px; }
.app-bar .brand-logo { height: 40px; max-width: 230px; }
.sidebar .brand-logo { height: 36px; max-width: 200px; }
body.plain .brand-logo { height: 48px; max-width: 260px; }
.mobile-bar .brand-logo { height: 32px; }
@media (max-width: 860px) { .app-bar .brand-logo { height: 34px; max-width: 180px; } }
label.choice { flex-wrap: wrap; row-gap: 0; } label.choice > small { flex-basis: 100%; padding-left: 25px; margin-top: -4px; }
/* Rider: Call / WhatsApp / Map in one row instead of three full-width bars */
.job-links { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.job-links .btn { min-height: 42px; padding: 0 8px; }
details.job[open] { border: 1px solid var(--navy); box-shadow: 0 0 0 3px var(--tint); }
.job-kind { color: #B54708; font-weight: 700; }
.job-links .btn.wa { margin-top: 0; }
/* Tracking numbers: stop Chrome from shrinking monospaced text ("monospace, monospace" is the standard fix) */
.mono { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace, monospace; }
h1.mono { font-size: 22px; font-weight: 700; letter-spacing: 0; }
@media (max-width: 700px) { h1.mono { font-size: 18px; } }

/* ===== QA pass: button sizing, colour meaning ===== */
/* Buttons in stacked forms size to their label; full width only on small phones */
:is(.stack, .tight-stack, .group, .job-body, .collect-box, .sk-box, .fees-box, .d-side-card, .app-card, .cart, .picker) > :is(.btn, button.btn) { align-self: flex-start; }
.add-partner > summary.btn, details > summary.btn { display: inline-flex; width: fit-content; }
body.plain .stack > .btn, .kk-form .btn { align-self: stretch; }
@media (max-width: 480px) {
  :is(.stack, .tight-stack, .group, .job-body, .collect-box, .sk-box, .fees-box) > :is(.btn, button.btn) { align-self: stretch; }
  .actions > .btn, .actions > form > .btn { flex: 1 1 auto; }
}
/* Long button labels wrap neatly on very narrow phones instead of spilling out */
@media (max-width: 380px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; } }
/* Counters use the brand colour; red is kept for errors and money problems */
.topbar-icon .badge, .menu-btn .badge, .tab .badge, .tab-badge, .kk-badge, body.public .kk-badge { background: var(--navy) !important; color: #fff !important; }
.dot { background: var(--amber); }
/* Money meaning: green = good, amber = waiting / owed, red = loss or shortfall */
.tile.ok strong, .tile.good strong { color: var(--ok); }
.tile.good { border-top: 2px solid #32D583; }
.tile.bad { border-top: 2px solid #F97066; }
.error-text { color: var(--bad); }
/* Tables: never break names letter by letter; a narrow card scrolls sideways instead */
.content .table th, .content .table td { overflow-wrap: normal; word-break: normal; }
.content .table td { min-width: 0; }
.card.flush, .card:has(> .table) { overflow-x: auto; }
.grid2.align-start { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
/* Filter bars: quick-date chips on their own row, then the date fields and button on one line */
.filters > .chips { flex-basis: 100%; gap: 6px; }
.chips > .tab { min-height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; }
.chips > .tab.active { background: var(--tint); color: var(--navy); border-color: var(--tint-2); box-shadow: none; }
.filters > label { flex: 1 1 170px; max-width: 260px; }
.filters > .btn, .filters > .filter-actions { align-self: flex-end; }
.sh-filters > label { max-width: none; }
.filters > label:has(input[type=search]) { flex: 2 1 260px; max-width: 440px; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); } @media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Request form: Back / Continue sized to their labels on larger screens */
@media (min-width: 701px) {
  .step-nav { display: flex; justify-content: space-between; align-items: center; }
  .step-nav > .btn { min-width: 150px; }
}
/* Rider page is built for phones: keep it a phone-width column on big screens */
.content:has(> details.job), .content:has(details.job) { max-width: 680px; margin-left: auto; margin-right: auto; }
:root { --mid: color-mix(in srgb, var(--navy) 45%, #fff); --soft: color-mix(in srgb, var(--navy) 4%, #fff); }
/* Home: banner photo below the headline section */
.d-hero.has-below .d-hero-grid { padding-bottom: 28px; }
.d-hero-below { padding-bottom: 78px; }
.d-hero-below img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 18px; display: block; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
@media (max-width: 860px) {
  .d-hero.has-below .d-hero-grid { padding-bottom: 18px; }
  .d-hero-below { padding-bottom: 64px; }
  .d-hero-below img { aspect-ratio: 16 / 8; border-radius: 14px; }
}
@media (max-width: 860px) {
  .d-hero.has-pic .d-hero-grid { padding-bottom: 64px; }
  .d-hero.has-below .d-hero-grid { padding-bottom: 14px; }
  .d-hero-below { padding-bottom: 60px; }
}

/* ===== Partner section ===== */
/* At-a-glance strip on a partner's page */
.pt-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 16px; }
.pt-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); text-decoration: none; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.pt-stat:hover { border-color: var(--tint-2); box-shadow: var(--shadow-md); color: var(--ink); }
.pt-stat span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pt-stat strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pt-stat small { font-size: 12px; color: var(--muted); }
.pt-stat.warn { border-top: 2px solid var(--amber); } .pt-stat.warn strong { color: #B54708; }
.pt-stat.good strong { color: var(--ok); } .pt-stat.good { border-top: 2px solid #32D583; }
.pt-stat.bad strong { color: var(--bad); } .pt-stat.bad { border-top: 2px solid #F97066; }
@media (max-width: 700px) { .pt-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-stat strong { font-size: 18px; } }
/* counts on tabs */
.tab-n { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--line-2); color: var(--ink-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tab.active .tab-n { background: var(--tint); color: var(--navy); }
@media (max-width: 700px) { .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } .tab { flex: 0 0 auto; } }

/* Stock actions: one card, one form at a time */
.act-panel { padding: 0; }
.act-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.act-head h2 { margin: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--grey-bg); border: 1px solid var(--line-2); border-radius: 10px; flex-wrap: wrap; }
.seg-btn { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 30px; padding: 0 12px; border-radius: 7px; cursor: pointer; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.act-panel:not(.js) .seg { display: none; }
.act-body { padding: 16px 18px 18px; }
.act-panel:not(.js) .act + .act { border-top: 1px solid var(--line-2); margin-top: 18px; padding-top: 18px; }
.act { max-width: 760px; }
.act-lead { margin: 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 700px) {
  .act-head { padding: 12px 14px; } .act-body { padding: 14px; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .seg-btn { min-height: 36px; }
}
/* Folding card (e.g. New delivery): just a button until opened */
details.fold-card { padding: 0; background: transparent; border: 0; box-shadow: none; }
details.fold-card > summary { list-style: none; margin-bottom: 0; }
details.fold-card > summary::-webkit-details-marker { display: none; }
details.fold-card[open] { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); padding: 16px 18px 18px; }
details.fold-card[open] > summary { margin-bottom: 14px; background: #fff; color: var(--ink); border-color: #D5D5DE; }

.quick-dates .spacer { flex: 1; }
a.tile { text-decoration: none; transition: border-color .12s, box-shadow .12s; } a.tile:hover { border-color: var(--tint-2); box-shadow: var(--shadow-md); color: var(--ink); }
.watch-list { list-style: none; margin: 0; padding: 0; }
.watch-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line-2); }
.watch-list li:first-child { border-top: 0; }
.wl-name { display: flex; flex-direction: column; min-width: 0; }
.wl-name strong { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-name small { color: var(--muted); font-size: 11.5px; }
.card-toolbar.left strong { font-size: 14px; }
.sl-name strong { font-weight: 600; }
/* Seller "Request delivery": a comfortable form width, normal-size send button */
#preq { max-width: 880px; }
#preq > .btn { min-width: 200px; }
/* Stock places (staff only) */
.sl-places { color: var(--navy) !important; font-size: 11.5px !important; font-weight: 500; }
.places-table { margin: 4px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.places-table th, .places-table td { padding: 6px 10px; }

/* 2026.11.09 · partner section to standard */
.pl-name { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.pl-name strong { flex: 0 1 auto; min-width: 0; }
.pl-name small { flex: 1 0 100%; }
.pl-tag { font-size: 11px; padding: 1px 7px; }
.pt-tabs { position: relative; }
@media (max-width: 700px) {
  .pt-summary { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -14px 14px; padding: 0 14px 2px; }
  .pt-summary::-webkit-scrollbar { display: none; }
  .pt-stat { flex: 0 0 138px; scroll-snap-align: start; padding: 9px 11px; }
  .pt-stat strong { font-size: 17px; }
  .pt-stat span, .pt-stat small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pt-tabs.more-r { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .pt-tabs.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 82%, transparent); }
  .pt-tabs.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
  /* deliveries: compact rows instead of tall label cards */
  table.table.dl-compact tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; padding: 10px 12px; margin: 8px 0; }
  table.table.dl-compact td { display: block; padding: 0; }
  table.table.dl-compact td::before { content: none !important; }
  table.table.dl-compact td:first-child { grid-column: 1; grid-row: 1; font-size: 14px; border: 0; padding: 0; margin: 0; }
  table.table.dl-compact td:first-child small { font-size: 11.5px; }
  table.table.dl-compact td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right !important; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  table.table.dl-compact td:nth-child(2) { grid-column: 1; grid-row: 2; font-weight: 600; }
  table.table.dl-compact td:nth-child(2) br { display: none; }
  table.table.dl-compact td:nth-child(2) small { font-weight: 400; margin-left: 6px; }
  table.table.dl-compact td:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; text-align: right !important; font-weight: 600; }
  table.table.dl-compact td:nth-child(5) br { display: none; }
  table.table.dl-compact td:nth-child(5) small { display: block; font-weight: 400; }
  table.table.dl-compact td:nth-child(3) { grid-column: 1; grid-row: 3; color: var(--muted); }
  table.table.dl-compact td:nth-child(6) { grid-column: 1 / -1; grid-row: 4; font-size: 12.5px; }
  table.table.dl-compact td:nth-child(6):has(.muted) { display: none; }
  table.table.dl-compact td:nth-child(6)::after { content: " to collect"; color: var(--muted); }
  table.table.dl-compact td[colspan] { grid-column: 1 / -1; }
}
/* rate card in one card */
.rc-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.rc-head > div:first-child { flex: 1 1 340px; }
.rc-head h2 { margin-bottom: 4px; }
.rc-card .std-rate { flex: 0 1 300px; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ground); }
.rc-card .std-rate strong { font-size: 17px; }
.rc-card .std-rate .inline-form { display: flex; gap: 6px; }
.rc-card .std-rate input { max-width: 140px; }
.rc-add { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 14px 0 6px; padding: 12px; border: 1px dashed var(--tint-2); border-radius: var(--radius); background: var(--tint); }
.rc-add .banner, .rc-add .rc-note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 700px) { .rc-add { grid-template-columns: 1fr 1fr; } .rc-add label:first-of-type { grid-column: 1 / -1; } .rc-add .btn { grid-column: 1 / -1; } .rc-card .std-rate { flex: 1 1 100%; } }
/* details: status row + partner type */
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.status-row p { margin: 4px 0 0; }
.ptype { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ptype legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0; }
.ptype-opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.ptype-opt:has(input:checked) { border-color: var(--navy); background: var(--tint); box-shadow: 0 0 0 1px var(--navy) inset; }
.ptype-opt input { margin-top: 3px; accent-color: var(--navy); }
.ptype-opt span { display: flex; flex-direction: column; gap: 2px; }
.ptype-opt small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
/* partner money */
.owe-cell strong { display: block; }
.owe-word { display: block; font-size: 11.5px; }
.ledger-tiles { margin-bottom: 14px; }
.seg-radio { display: inline-flex; padding: 3px; gap: 2px; background: var(--grey-bg, #F2F2F5); border: 1px solid var(--line-2); border-radius: 10px; align-self: flex-start; }
.seg-radio label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 13.5px; margin: 0; }
.seg-radio input { accent-color: var(--navy); margin: 0; }
.seg-radio label:has(input:checked) { background: #fff; box-shadow: var(--shadow-xs); color: var(--navy); }
.carrier-box .split-kv dd { text-align: right; }
.seg-radio label, label.ptype-opt { flex-direction: row !important; }
.seg-radio label { white-space: nowrap; }
label.ptype-opt { align-items: flex-start; }
.rc-card .std-rate { text-align: left; align-items: flex-start; }
/* Website › Images: sections */
.img-jump { margin: 6px 0 4px; flex-wrap: wrap; }
h2.img-sec { font-size: 15px; margin: 20px 0 10px; scroll-margin-top: 70px; }
.img-card { scroll-margin-top: 70px; }
.img-card:target { box-shadow: 0 0 0 2px var(--navy); }
@media (max-width: 600px) { .image-grid { grid-template-columns: 1fr; } .img-card .img-preview { max-height: 150px; } .img-card .img-preview img { max-height: 140px; object-fit: contain; } }
/* "Has payment been made?" */
dialog.pay-ask { border: 0; border-radius: 14px; padding: 20px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(20,20,40,.25); }
dialog.pay-ask::backdrop { background: rgba(20, 20, 42, .45); }
dialog.pay-ask h2 { margin: 0; font-size: 17px; }
.pay-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-ask-btns .btn { align-self: auto; }
@media (max-width: 480px) { .pay-ask-btns .btn { flex: 1 1 100%; } }
.pay-scope { flex-wrap: wrap; }
.share-note { margin: -4px 0 6px; }
/* ===== Phone homepage: compact layout ===== */
.qa-short { display: none; }
@media (max-width: 640px) {
  /* banner photo after the headline and track box, and shorter */
  .d-hero.has-pic .d-hero-grid { gap: 14px; padding-bottom: 58px; }
  .d-hero-pic { order: 2; }
  .d-hero-pic img { aspect-ratio: 16 / 7; border-radius: 14px; box-shadow: var(--shadow-md); }
  .d-hero-copy h1 { font-size: clamp(24px, 7vw, 30px); }
  .d-track { padding: 16px; border-radius: 14px; }
  .d-track label { font-size: 14px; }
  .d-track small { font-size: 12px; }
  /* quick actions: four app-style shortcuts in one row */
  .d-qa-wrap { margin-top: -40px; }
  .d-qa { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .d-tile { min-height: 0; padding: 12px 4px 10px; gap: 7px; align-items: center; text-align: center; border-radius: 14px; }
  .d-tile-ico { width: 42px; height: 42px; border-radius: 12px; }
  .d-tile-ico svg { width: 22px; height: 22px; }
  .d-tile strong { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
  .d-tile small { display: none; }
  .qa-long { display: none; } .qa-short { display: inline; }
  /* services: a neat list, small photo left, text right */
  .d-body { padding-top: 26px; }
  .d-mainc { gap: 28px; }
  .d-sec-head h2 { font-size: 18px; }
  .d-svc { grid-template-columns: 1fr; gap: 8px; }
  .d-svc-card { flex-direction: row; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
  .d-svc-card img, .d-svc-ico { width: 64px; height: 64px; min-width: 64px; border-radius: 10px; border: 0; object-fit: cover; }
  .d-svc-ico svg { width: 26px; height: 26px; }
  .d-svc-text { padding: 0; flex: 1; min-width: 0; }
  .d-svc-text strong { font-size: 14.5px; }
  .d-svc-text small { font-size: 12.5px; }
  .d-svc-card::after { content: ""; width: 8px; height: 8px; margin-right: 8px; border-right: 2px solid var(--faint); border-top: 2px solid var(--faint); transform: rotate(45deg); flex-shrink: 0; }
  /* steps and "why" more compact */
  ol.d-steps li { padding: 12px 14px; border-radius: 12px; }
  .d-why > div { padding: 12px; }
  /* WhatsApp: small, clear of content and the tab bar */
  body.public .float-buttons { right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  body.public .float-buttons .fb { width: 44px; height: 44px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
  body.public .float-buttons .fb svg { width: 20px; height: 20px; }
  .d-body { padding-bottom: 72px; }
}
/* phones with large text settings: keep words whole */
@media (max-width: 380px) { .d-tile strong { font-size: 11.5px; } .d-tile-ico { width: 38px; height: 38px; } }
@media (max-width: 640px) {
  .d-hero.has-pic .d-hero-grid { padding-bottom: 18px; }
  .d-hero.has-pic + .d-qa-wrap { margin-top: 0; padding-top: 14px; }
  .d-hero.has-pic { border-bottom: 0; }
  /* the Chat tab already offers WhatsApp: no floating button covering the page */
  body.public .float-buttons .fb.wa { display: none; }
}
@media (min-width: 700px) { p.center > .btn.wide { width: auto; min-width: 260px; } }
/* late entry */
.late-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-left: 3px solid #F79009; }
.late-box > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.late-box input[type=date] { max-width: 180px; }
.late-box .btn { align-self: center; }
@media (max-width: 480px) { .late-box input[type=date] { max-width: none; flex: 1 1 100%; } .late-box .btn { flex: 1 1 100%; } }
.late-tag { color: var(--muted); font-weight: 400; font-size: 12px; }

/* 2026.11.10 · homepage sections below the hero (colours follow Brand settings) */
.hs-sec { padding: 56px 0; }
.hs-sec.hs-tight { padding: 44px 0; }
.hs-narrow { max-width: 1080px !important; }
.hs-head { max-width: 640px; margin: 0 0 26px; }
.hs-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.hs-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.hs-head h2, .hs-partner h2, .hs-cta h2, .hs-why-copy h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.hs-head p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.hs-center { text-align: center; margin-top: 30px; }
.hs-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.hs-myreq { margin-top: 28px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.hs-myreq-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.hs-myreq-head h2 { margin: 0; font-size: 16px; }
.hs-myreq-head small { color: var(--muted); }

/* ---- services: cards or list (Website › Images › Homepage layout) ---- */
.hs-svc { display: grid; gap: 14px; }
.hs-svc-card { position: relative; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hs-svc-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 20, 42, .08); border-color: var(--tint-2); }
.hs-svc-pic { display: grid; place-items: center; background: var(--tint); overflow: hidden; flex: none; }
.hs-svc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-svc-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(21, 20, 42, .06); }
.hs-svc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.hs-svc-body strong { font-size: 15px; }
.hs-svc-body small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.hs-go { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--navy); }
.hs-arrow { display: none; align-self: center; font-size: 24px; color: var(--faint); padding-right: 14px; }
.hs-svc-card.other { border-style: dashed; background: transparent; }
.hs-svc-card.other .hs-svc-pic { background: transparent; }
/* cards */
.hs-cards { }
@media (min-width: 701px) {
  .hs-svc.dk-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hs-svc.dk-cards .hs-svc-card { flex-direction: column; }
  .hs-svc.dk-cards .hs-svc-pic { height: 128px; }
  .hs-svc.dk-cards .hs-svc-body { padding: 12px 14px 14px; }
  .hs-svc.dk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hs-svc.dk-list .hs-svc-card { align-items: center; }
  .hs-svc.dk-list .hs-svc-pic { width: 72px; height: 72px; margin: 10px 0 10px 10px; border-radius: 12px; }
  .hs-svc.dk-list .hs-svc-ico { width: 44px; height: 44px; border-radius: 12px; }
  .hs-svc.dk-list .hs-svc-body { padding: 10px 14px; }
  .hs-svc.dk-list .hs-go { display: none; }
  .hs-svc.dk-list .hs-arrow { display: block; }
}
@media (min-width: 701px) and (max-width: 960px) { .hs-svc.dk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .hs-svc.ph-list { grid-template-columns: 1fr; gap: 10px; }
  .hs-svc.ph-list .hs-svc-card { align-items: center; }
  .hs-svc.ph-list .hs-svc-pic { width: 72px; height: 72px; margin: 10px 0 10px 10px; border-radius: 12px; }
  .hs-svc.ph-list .hs-svc-ico { width: 44px; height: 44px; border-radius: 12px; }
  .hs-svc.ph-list .hs-svc-body { padding: 10px 12px; }
  .hs-svc.ph-list .hs-go { display: none; }
  .hs-svc.ph-list .hs-arrow { display: block; }
  .hs-svc.ph-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hs-svc.ph-cards .hs-svc-card { flex-direction: column; }
  .hs-svc.ph-cards .hs-svc-pic { height: 96px; }
  .hs-svc.ph-cards .hs-svc-body { padding: 10px 12px 12px; }
  .hs-svc.ph-cards .hs-svc-body strong { font-size: 14px; }
  .hs-svc.ph-cards .hs-svc-body small { font-size: 12.5px; }
  .hs-svc.ph-cards .hs-go { font-size: 12.5px; }
}

/* ---- how it works: three cards joined by arrows, on a soft patterned band ---- */
.hs-how { background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--navy) 14%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--tint) 0%, #fff 100%);
  border-top: 1px solid var(--line-2); }
.hs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hs-steps li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(21, 20, 42, .06); }
.hs-steps li::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--navy), color-mix(in srgb, var(--navy) 35%, #fff)); }
.hs-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); width: 20px; text-align: center; font-size: 20px; font-weight: 700; color: color-mix(in srgb, var(--navy) 45%, #fff); }
.hs-step-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 60%, #000)); box-shadow: 0 8px 18px color-mix(in srgb, var(--navy) 35%, transparent); margin-bottom: 8px; }
.hs-step-n { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.hs-steps strong { font-size: 17px; }
.hs-steps small { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---- partners ---- */
.hs-partner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding: 36px 40px; border-radius: 20px; background: linear-gradient(135deg, #fff 0%, var(--tint) 100%); border: 1px solid var(--line); }
.hs-partner h2 { margin-top: 2px; }
.hs-ticks { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hs-ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.hs-ticks .ico { flex: none; color: var(--navy); background: #fff; border-radius: 8px; padding: 5px; width: 28px; height: 28px; box-shadow: 0 2px 6px rgba(21, 20, 42, .06); margin-top: -3px; }
.hs-partner-art { display: grid; place-items: center; }
.hs-partner-art img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; }
.hs-partner-art svg { width: 100%; max-width: 340px; height: auto; }

/* ---- why: brand-coloured band, headline on the left, four points on the right ---- */
.hs-why-band { position: relative; overflow: hidden; padding: 64px 0; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, color-mix(in srgb, var(--navy) 55%, #fff) 0%, transparent 70%),
              linear-gradient(135deg, color-mix(in srgb, var(--navy) 88%, #000) 0%, var(--navy) 100%); }
.hs-why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hs-why-copy .hs-eyebrow { color: color-mix(in srgb, var(--amber) 70%, #fff); }
.hs-why-copy h2 { color: #fff; }
.hs-why-copy p { margin: 12px 0 22px; color: color-mix(in srgb, #fff 82%, var(--navy)); font-size: 15.5px; line-height: 1.6; max-width: 420px; }
.hs-why-copy .btn.light, .hs-cta .btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.hs-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hs-why > div { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: color-mix(in srgb, #fff 9%, transparent); border: 1px solid color-mix(in srgb, #fff 16%, transparent); backdrop-filter: blur(4px); }
.hs-why-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--navy); margin-bottom: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.hs-why strong { font-size: 16px; color: #fff; }
.hs-why small { color: color-mix(in srgb, #fff 78%, var(--navy)); font-size: 13.5px; line-height: 1.5; }

/* ---- reviews ---- */
.hs-band { background: var(--tint); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.hs-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hs-review { margin: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.hs-review blockquote { margin: 0; color: var(--ink-2); line-height: 1.55; flex: 1; }
.hs-review figcaption { display: flex; align-items: center; gap: 10px; }
.hs-review figcaption small { display: block; color: var(--muted); }
.hs-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--navy); font-weight: 800; }

/* ---- towns + updates ---- */
.hs-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hs-two.one { grid-template-columns: minmax(0, 1fr); }
.hs-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.hs-card h2 { margin: 0 0 4px; font-size: 18px; }
.hs-towns { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hs-towns li { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line-2); font-size: 13.5px; }
.hs-towns .ico { color: var(--navy); }
.hs-more summary { cursor: pointer; margin-top: 10px; font-weight: 600; color: var(--navy); font-size: 13.5px; }

/* ---- closing call to action ---- */
.hs-cta { padding: 0 0 56px; }
.hs-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 34px; border-radius: 20px; background: var(--navy); color: #fff; }
.hs-cta h2 { color: #fff; }
.hs-cta p { margin: 8px 0 0; color: color-mix(in srgb, #fff 80%, var(--navy)); }
.hs-cta .wa-btn { display: inline-flex; align-items: center; gap: 6px; }
body.public .site-footer { margin-top: 0; }

/* website › images › layout card */
.layout-card .grid2 { align-items: start; }
.layout-card .ptype { grid-template-columns: 1fr; }

@media (max-width: 960px) {
  .hs-partner { grid-template-columns: 1fr; padding: 28px; }
  .hs-partner-art { order: -1; }
  .hs-partner-art svg, .hs-partner-art img { max-height: 200px; }
  .hs-why-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 700px) {
  .hs-sec { padding: 36px 0; }
  .hs-sec.hs-tight { padding: 28px 0; }
  .hs-head { margin-bottom: 18px; }
  .hs-steps { grid-template-columns: 1fr; gap: 22px; }
  .hs-steps li { display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; row-gap: 2px; padding: 18px 16px; }
  .hs-steps li .hs-step-ico { grid-row: span 3; margin: 0; }
  .hs-steps li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
  .hs-center .btn { width: 100%; }
  .hs-partner { padding: 22px 18px; border-radius: 16px; }
  .hs-partner-art svg, .hs-partner-art img { max-height: 150px; }
  .hs-partner .hs-btns .btn { flex: 1 1 auto; }
  .hs-why-band { padding: 40px 0; }
  .hs-why { gap: 10px; }
  .hs-why > div { padding: 14px; }
  .hs-why small { font-size: 12.5px; }
  .hs-two { grid-template-columns: 1fr; }
  .hs-cta { padding-bottom: 32px; }
  .hs-cta-in { padding: 24px 18px; border-radius: 16px; }
  .hs-cta .hs-btns { width: 100%; }
  .hs-cta .hs-btns .btn { flex: 1 1 100%; justify-content: center; }
}

/* POD breakdown under the Quick Entry total */
.pod-sum { margin: .25rem 0 .75rem; max-width: 34rem; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; background: var(--bg-soft, #fafafa); }
.pod-sum .table { margin: 0; }
.pod-sum .table td { padding: .35rem .6rem; }
.pod-sum tr.sum td { border-top: 1px solid var(--line, #e5e7eb); }

/* Price book */
.pb-split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pb-list { flex: 1 1 280px; max-width: 380px; }
.pb-detail { flex: 999 1 420px; min-width: 0; }
.pb-row { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.pb-row:hover { background: #FAFAFC; }
.pb-row.on { background: var(--warn-bg); }
.pb-row strong { color: var(--navy); }
.pad { padding: 18px; margin: 0; }
.no-mb { margin-bottom: 2px; margin-top: 0; }
.row-between.wrap { flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.pb-edit form { margin-top: 8px; }
.pb-add { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.pb-price { background: var(--navy); color: var(--white); border-radius: 16px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.pb-price .big { font-size: 36px; font-weight: 800; color: var(--amber); line-height: 1.1; }
.pb-price small, .pb-price .muted-on-dark { color: #C9C6E0; }
.pb-matrix td, .pb-matrix th { text-align: center; }
.pb-matrix th[scope=row] { text-align: left; }
.pb-matrix td.on { background: var(--warn-bg); font-weight: 800; }
.pb-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pb-zone { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-chips details { display: inline-block; }
.pb-chips summary { list-style: none; cursor: pointer; padding: 6px 12px; border-radius: 999px; background: var(--grey-bg); font-size: 13px; font-weight: 600; }
.pb-chips summary::-webkit-details-marker { display: none; }
.pb-chips details[open] { display: block; width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; }
/* Public food prices / delivery price */
.pf-list { list-style: none; margin: 0; padding: 0; }
.pf-item { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.pf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-text small { color: var(--ink-2); font-size: 13px; }
.pf-step { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid #CFCDDA; background: var(--white); color: var(--navy); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.pf-qty { width: 54px !important; height: 44px !important; text-align: center; padding: 0 4px !important; }
.pf-total .btn { width: 100%; margin-top: 0; }
.pd-result { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.pd-big { font-size: 38px; font-weight: 800; color: var(--navy); line-height: 1.1; }

/* price book: Upload Excel drop-down */
.pb-upload { position: relative; }
.pb-upload > summary { list-style: none; cursor: pointer; }
.pb-upload > summary::-webkit-details-marker { display: none; }
.pb-upload[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(380px, 86vw); box-shadow: 0 12px 32px rgba(16,24,40,.14); text-align: left; }
@media (max-width: 640px) {
  /* phones: the box opens on its own line under the buttons (no overlay), so "Upload Excel" stays visible to close it */
  .pb-upload[open] { flex-basis: 100%; order: 10; }
  .pb-upload[open] > form { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}

/* price book: type-and-pick area boxes */
.ap { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ap > label { font-weight: 600; font-size: 14px; flex: none !important; display: block; margin: 0; }
.ap-list .pk-item { justify-content: flex-start; gap: 10px; }
.ap-list .pk-item small { margin-left: auto; font-size: 12px; }
.pb-check { align-items: flex-end; }
.pb-check .ap { flex: 1 1 220px; max-width: 340px; }
/* price book: Zones setup sections, closed until opened */
.pb-intro { margin: 0 0 12px; }
.pb-sec { padding: 0; }
.pb-sec + .pb-sec { margin-top: 12px; }
.pb-sec > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.pb-sec > summary::-webkit-details-marker { display: none; }
.pb-sec > summary::after { content: '▾'; color: var(--muted); transition: transform .15s; }
.pb-sec[open] > summary::after { transform: rotate(180deg); }
.pb-sec-t { font-weight: 800; font-size: 16px; color: var(--navy); }
.pb-sec-s { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.pb-sec-b { padding: 0 20px 20px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.pb-ptable { max-width: 760px; }
.pb-ptable td, .pb-ptable th { padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
.pb-ptable input { width: 130px; min-height: 38px; padding: 6px 10px; }
.pb-special { padding: 8px 0; border-top: 1px solid var(--line-2); }
.pb-special-add .ap { flex: 1 1 200px; }
/* price book: add food behind a button */
.pb-addfood { margin-top: 14px; }
.pb-addfood > summary { list-style: none; display: inline-flex; }
.pb-addfood > summary::-webkit-details-marker { display: none; }
.pb-addfood[open] > summary { display: none; }
.pb-addfood .pb-add { margin-top: 0; }
/* public food prices: restaurant list */
.pf-vlist { list-style: none; margin: 0; padding: 0; }
.pf-vlist li + li { border-top: 1px solid var(--line-2); }
.pf-vlist a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; text-decoration: none; color: var(--ink); min-height: 56px; }
.pf-vlist a:hover { background: #FAFAFC; }
.pf-vtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-vtext strong { color: var(--navy); }
.pf-vtext small { color: var(--muted); font-size: 13px; }
.pf-vn { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pf-back { margin: 0 0 10px; font-weight: 600; }
