/* MGrace design system · Mix B (midnight navy + gold, Schibsted Grotesk display + Hanken Grotesk UI) */
[hidden] { display: none !important; }
:root {
  --navy: #0A1233; --navy-2: #0E1840; --navy-3: #13204F; --ink: #0A1233;
  --ivory: #F5EEDC; --paper: #FAF6EC; --card: #FFFFFF; --line: #E8DFCB; --line-2: #CDBE98;
  --gold: #E1BC5A; --gold-t: #E9C766; --gold-deep: #9A7614; --gold-text: #8A6A12;
  --muted: #B9BFD6; --sub: #4B4F60; --faint: #8A8F9E;
  --held: #B8862B; --released: #1F9C7A; --refunded: #2F5BD3; --disputed: #C2502E;
  --ring: conic-gradient(from 200deg, #F3D98B, #B8901F, #F7E6B0, #9A7614, #F3D98B);
  --serif: 'Schibsted Grotesk', 'Hanken Grotesk', system-ui, sans-serif; /* display face */ --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 30px 60px -28px rgba(10, 18, 51, .35);
  --elev: 0 0 0 1px rgba(205, 190, 152, .45), 0 1px 2px rgba(10, 18, 51, .04), 0 24px 48px -36px rgba(10, 18, 51, .28);
  /* Theme tokens: light values are the original colours. Dark values are below. */
  --bg: #FAF6EC; --bg-2: #F5EEDC; --surface: #FBF8F0; --surface-hover: #FBF6E9; --surface-2: #F3EEE2; --surface-3: #EDE6D3; --tint: #FCF7E8;
  --gold-bg: #F6EBCB; --gold-fg: #7A5C10; --ok-bg: #E1F3EC; --ok-fg: #0F6B50; --ok-ring: #BFE1D5; --bad-bg: #FBE7E0; --bad-fg: #9A3415;
  --info-bg: #E5ECFB; --info-fg: #1E46A8; --neutral-bg: #EEEBE3; --neutral-fg: #4B4F60; --warn-bg: #FBF0DC; --warn-fg: #6B4A0B;
  --danger: #B42318; --danger-ring: #F2B8B2; --accent: var(--navy); --accent-hover: var(--navy-3); --on-accent: #fff;
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1028; --bg-2: #0E1534; --card: #141C3C; --ink: #F2EDE0; --sub: #B3B9CE; --faint: #8C94B0; --line: #26305A; --line-2: #3A4573;
  --gold-text: #E5C063; --gold-deep: #E9C766;
  --surface: #1A2349; --surface-hover: #1F2A55; --surface-2: #222D5A; --surface-3: #2A3566; --tint: #272A45;
  --gold-bg: #3A3220; --gold-fg: #F2D78E; --ok-bg: #12392F; --ok-fg: #7FE0BC; --ok-ring: #1F5A4A; --bad-bg: #43201B; --bad-fg: #FFB4A3;
  --info-bg: #1B2B5C; --info-fg: #A9C0FF; --neutral-bg: #252E50; --neutral-fg: #C4CADF; --warn-bg: #3E321B; --warn-fg: #F4D590;
  --danger: #FF8E80; --danger-ring: #6B2E29; --accent: var(--gold); --accent-hover: #ECCB72; --on-accent: var(--navy);
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
  --elev: 0 0 0 1px rgba(90, 105, 165, .35), 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -36px rgba(0, 0, 0, .7);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 999px; z-index: 99; }
.skip:focus { left: 12px; }

/* Type */
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.03em; }
h1, h2, h3, .serif { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
.serif em, em.gold { font-style: normal; color: var(--gold-t); }
.on-light em.gold, .on-light .serif em { color: var(--gold-deep); }
.cap { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold-t); }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.on-light .eyebrow { color: var(--gold-text); }
.h-display { font-size: clamp(46px, 6.6vw, 105px); line-height: .9; margin: 0; }
.h1 { font-size: clamp(33px, 4.1vw, 59px); line-height: 1; margin: 0; }
.h2 { font-size: clamp(26px, 2.8vw, 39px); line-height: 1.02; margin: 0; }
.h3 { font-size: 25px; line-height: 1.05; margin: 0; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); margin: 0; }
.on-light .lead, .text-sub { color: var(--sub); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ECCB72; }
.btn-navy { background: var(--accent); color: var(--on-accent); }
.btn-navy:hover { background: var(--accent-hover); }
.btn-line { background: transparent; color: var(--gold-t); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .5); }
.btn-line:hover { background: rgba(233, 199, 102, .08); }
.btn-outline { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-outline:hover { background: var(--surface); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-ring); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-gold { color: var(--gold-text); font-weight: 600; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip--HELD, .chip--payment_secured, .chip--awaiting_approval { background: var(--gold-bg); color: var(--gold-fg); }
.chip--RELEASED, .chip--completed { background: var(--ok-bg); color: var(--ok-fg); }
.chip--REFUNDED, .chip--refunded, .chip--PARTIAL_REFUND { background: var(--info-bg); color: var(--info-fg); }
.chip--DISPUTED, .chip--disputed { background: var(--bad-bg); color: var(--bad-fg); }
.chip--PENDING, .chip--pending_payment, .chip--cancelled { background: var(--neutral-bg); color: var(--neutral-fg); }
.chip--accepted, .chip--on_the_way, .chip--in_progress { background: var(--ok-bg); color: var(--ok-fg); }
.chip--approved { background: var(--ok-bg); color: var(--ok-fg); } .chip--pending { background: var(--gold-bg); color: var(--gold-fg); }
.chip--rejected, .chip--suspended { background: var(--bad-bg); color: var(--bad-fg); }
.chip--dark { background: rgba(233, 199, 102, .14); color: var(--gold-t); }

/* Surfaces */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--elev); padding: 24px; }
.card-navy { background: var(--navy); color: var(--ivory); border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.card-navy .text-sub, .card-navy .muted { color: var(--muted); }
.panel-gold { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--gold-bg); color: var(--gold-fg); font-size: 14px; line-height: 1.55; }
.panel-gold b { color: var(--ink); }
.ring { border-radius: 50%; background: var(--ring); padding: 10px; }
.ring > * { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; object-fit: cover; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px rgba(184, 144, 31, .6); background: var(--ivory); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--navy); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy-3); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }
.hair { border: 0; height: 1px; background: var(--line); margin: 0; }

/* Layout */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 72px); }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; }
.row { display: flex; align-items: center; gap: 12px; } .row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.dark { background: var(--navy); color: var(--ivory); }
.dark .on-light { color: var(--ink); }
.section { padding: clamp(72px, 9vw, 140px) 0; }

/* Public header + footer */
.site-head { display: flex; align-items: center; gap: 36px; padding: 24px 0; position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: auto; }
.brand span { font-family: var(--serif); font-size: 23px; }
.site-nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--muted); }
.site-nav a:hover { color: var(--ivory); }
.site-head .actions { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); }
.menu-btn { display: none; }
.site-foot { border-top: 1px solid rgba(233, 199, 102, .18); padding: 48px 0 36px; color: var(--muted); font-size: 14px; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-foot b.cap { color: var(--gold-t); font-size: 10px; display: block; margin-bottom: 14px; }
.site-foot nav a { display: block; padding: 5px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 860px; }
.hero-glow { position: absolute; right: -160px; top: -180px; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(29, 63, 176, .45), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 60px; position: relative; }
.hero-ring { position: relative; aspect-ratio: 1; max-width: 640px; margin-left: auto; width: 100%; }
.hero-ring .outer { position: absolute; inset: -32px; border-radius: 50%; border: 1px solid rgba(233, 199, 102, .3); }
.hero-ring .ring { position: absolute; inset: 0; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .7); }
.float-card { position: absolute; background: var(--ivory); color: var(--navy); border-radius: 20px; padding: 16px 18px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.search-pill { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .35); max-width: 600px; }
.search-pill select, .search-pill input { flex: 1; min-width: 0; height: 52px; padding: 0 22px; border: 0; background: transparent; color: var(--ivory); outline: none; font-size: 16px; }
.search-pill select option { color: var(--ink); }
.stats-row { display: flex; border-top: 1px solid rgba(233, 199, 102, .25); padding-top: 22px; }
.stats-row > div { padding: 0 40px; border-left: 1px solid rgba(233, 199, 102, .25); }
.stats-row > div:first-child { padding-left: 0; border-left: 0; }
.stats-row .serif { font-size: 34px; line-height: 1; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 26px; box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .25); color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 18, 51, .9)); }
.tile .body { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.circle-btn { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .6); color: var(--gold-t); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.input { width: 100%; min-height: 52px; border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--card); padding: 12px 16px; font-size: 16px; }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 4px rgba(10, 18, 51, .08); }
textarea.input { min-height: 110px; resize: vertical; }
.hint { font-size: 13px; color: var(--sub); }
.error { font-size: 13px; color: var(--danger); font-weight: 600; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--tint); }
.choice input { accent-color: var(--navy); width: 18px; height: 18px; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-row .choice { justify-content: flex-start; align-items: flex-start; }
.choice-row .choice input { flex: none; margin-top: 2px; }
.choice-row .choice > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.choice-row .choice small { font-size: 13px; line-height: 1.45; color: var(--sub); }
@media (max-width: 640px) { .choice-row { grid-template-columns: minmax(0, 1fr); } }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; cursor: pointer; flex-direction: column; line-height: 1.2; }
.pill input:checked + span { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill input:disabled + span { opacity: .38; cursor: not-allowed; text-decoration: line-through; }

/* Flash */
.flash { padding: 14px 18px; border-radius: 16px; font-size: 14px; font-weight: 600; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.flash-ok { background: var(--ok-bg); color: var(--ok-fg); } .flash-err { background: var(--bad-bg); color: var(--bad-fg); } .flash-dev { background: var(--gold-bg); color: var(--gold-fg); }
.flash-verify { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }

/* Dashboard shell */
.dash { display: flex; min-height: 100vh; background: radial-gradient(900px 420px at 100% 0%, rgba(225, 188, 90, .09), transparent 60%), var(--bg); }
.side { width: 264px; flex: none; color: var(--ivory); padding: 26px 16px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate;
  background: radial-gradient(420px 320px at 0% 0%, rgba(29, 63, 176, .42), transparent 70%), linear-gradient(180deg, #0B1438 0%, var(--navy) 55%, #080F2B 100%);
  box-shadow: inset -1px 0 0 rgba(233, 199, 102, .18); }
.side > .brand { padding-bottom: 2px !important; }
.side .role { align-self: flex-start; margin: 8px 10px 26px; padding: 5px 10px; border-radius: 999px; color: var(--gold-t); font-size: 9px; background: rgba(233, 199, 102, .1); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .28); }
.side nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0 8px 12px; scrollbar-width: thin; scrollbar-color: rgba(245, 238, 220, .18) transparent; }
.side-group { display: block; margin: 18px 14px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(233, 199, 102, .62); }
.side-cta { margin: 0 0 12px; justify-content: center; background: linear-gradient(180deg, #EDCB6E, #D4AB3C); color: var(--navy) !important; box-shadow: 0 10px 24px -12px rgba(233, 199, 102, .7); }
.side nav a.side-cta:hover { background: linear-gradient(180deg, #F2D57F, #DDB448); }
.side nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: rgba(245, 238, 220, .66); transition: color .2s, background .2s; }
.side nav a svg { transition: color .2s; }
.side nav a:hover { color: var(--ivory); background: rgba(255, 255, 255, .05); }
.side nav a.active { color: var(--ivory); background: linear-gradient(90deg, rgba(233, 199, 102, .18), rgba(233, 199, 102, .04)); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .22); }
.side nav a.active::before { content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.side nav a.active svg { color: var(--gold-t); }
.side-user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(245, 238, 220, .08); min-width: 0; }
.side-user .avatar { box-shadow: 0 0 0 2px var(--navy), 0 0 0 3px rgba(233, 199, 102, .7); }
.side-user b { display: block; font-size: 13px; line-height: 1.3; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { display: block; font-size: 12px; color: rgba(245, 238, 220, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user > span:last-child { min-width: 0; }
.side .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.side-toggle { position: absolute; top: 30px; right: 14px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; cursor: pointer; background: rgba(255, 255, 255, .06); color: rgba(245, 238, 220, .7); transform: rotate(90deg); transition: background .2s, color .2s; }
.side-toggle:hover { background: rgba(255, 255, 255, .12); color: var(--ivory); }
.side-held { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--gold-t); background: rgba(233, 199, 102, .08); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .22); }
.side-held .lbl { display: flex; flex-direction: column; line-height: 1.25; }
.side-held small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(233, 199, 102, .75); }
.side-held b { font-size: 16px; color: var(--ivory); }
.side-help { display: flex; align-items: center; gap: 10px; padding: 4px 14px; font-size: 13px; font-weight: 600; color: rgba(245, 238, 220, .6); transition: color .2s; }
.side-help:hover { color: var(--ivory); }
.side-bell { position: relative; flex: none; margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: rgba(245, 238, 220, .75); transition: background .2s, color .2s; }
.side-bell:hover { background: rgba(255, 255, 255, .08); color: var(--ivory); }
.side-bell i { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 700 10px/17px var(--sans, inherit); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--navy); }
@media (min-width: 901px) {
  .side { transition: width .2s; }
  .side-mini .side { width: 84px; padding: 42px 12px 20px; }
  .side-mini .side .lbl, .side-mini .side .side-group, .side-mini .side .role, .side-mini .side > .brand span, .side-mini .side-user > span:not(.avatar), .side-mini .side .badge { display: none; }
  .side-mini .side-toggle { transform: rotate(-90deg); top: 10px; right: 29px; }
  .side-mini .side nav a, .side-mini .side-held, .side-mini .side-help, .side-mini .foot .btn { justify-content: center; padding-left: 0; padding-right: 0; }
  .side-mini .side nav a.active::before { left: -12px; }
  .side-mini .side-user { flex-direction: column; padding: 10px 0; gap: 8px; }
  .side-mini .side-bell { margin: 0; }
  .side-mini .side nav a { position: relative; }
  .side-mini .side nav a:has(.badge)::after { content: ""; position: absolute; top: 9px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
}
@media (max-width: 900px) { .side-toggle, .side-held, .side-help { display: none; } }
.side .foot { margin-top: 0; padding-top: 12px; border-top: 1px solid rgba(245, 238, 220, .08); display: flex; flex-direction: column; gap: 12px; }
.main { flex: 1; min-width: 0; overflow-x: clip; padding: 36px clamp(20px, 3.4vw, 48px) 64px; }
.appdate { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.topbar h1 { font-size: clamp(33px, 3vw, 44px); line-height: 1; margin: 0; letter-spacing: -.015em; }
.kpi { position: relative; overflow: hidden; border-radius: 24px; padding: 24px; background: var(--card); box-shadow: var(--elev); display: flex; flex-direction: column; gap: 10px; }
.kpi .serif { font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .cap { font-size: 9px; color: var(--faint); }
.kpi.navy { color: var(--ivory); background: radial-gradient(320px 200px at 100% 0%, rgba(29, 63, 176, .55), transparent 70%), var(--navy); box-shadow: 0 30px 60px -34px rgba(10, 18, 51, .75), inset 0 0 0 1px rgba(233, 199, 102, .22); }
.kpi.navy .cap { color: var(--gold-t); }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--elev); font-size: 14px; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: var(--surface); }
.table th { text-align: left; padding: 14px 18px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); background: var(--surface); font-weight: 700; }
.table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.sel td { background: var(--tint); }
.table-wrap { position: relative; overflow-x: auto; border-radius: 24px; box-shadow: var(--elev); }
.table-wrap .table { box-shadow: none; }

/* Account pages */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-wide { grid-column: 1 / -1; }
.addr-list { list-style: none; margin: 0; padding: 0; }
.addr-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.addr-list li:first-child { border-top: 0; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li + li { border-top: 1px solid var(--line); }
.note-list a { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; transition: background .15s; }
.note-list a:hover { background: var(--surface); }
.note-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--gold-bg); color: var(--gold-deep); }
.note-list .is-unread .note-ico { background: var(--navy); color: var(--gold-t); }
.note-list b { display: block; font-size: 15px; }
.note-list p { margin: 4px 0 0; font-size: 14px; color: var(--sub); line-height: 1.5; }
.note-list time { flex: none; margin-left: auto; font-size: 12px; color: var(--faint); white-space: nowrap; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; margin-top: 6px; }
.empty { padding: 48px 24px; text-align: center; color: var(--sub); }
.empty .serif { display: block; font-size: 25px; color: var(--ink); margin-bottom: 8px; }
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.threads { padding: 8px; }
.threads a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; transition: background .15s; }
.threads a:hover { background: var(--surface); }
.threads a.is-active { background: var(--gold-bg); }
.threads .t-copy { flex: 1; min-width: 0; }
.threads .t-copy b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.threads .t-svc { display: block; margin-top: 1px; font-size: 12px; color: var(--gold-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.threads .t-svc .mono { font-size: 11px; color: var(--faint); }
.threads .t-copy small { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.threads a.is-unread .t-copy small { color: var(--ink); font-weight: 600; }
.threads a.is-unread .t-meta time { color: var(--gold-text); font-weight: 700; }
.threads .t-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 11px; color: var(--faint); }
.threads .t-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Provider calendar + reviews */
.cal { table-layout: fixed; min-width: 900px; }
.cal th, .cal td { vertical-align: top; }
.cal thead th { text-align: center; }
.cal thead th:first-child, .cal .cal-slot { width: 96px; text-align: left; }
.cal .cal-slot { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: 0; text-transform: none; background: var(--surface); }
.cal-dow { font-size: 10px; }
.cal-num { display: block; margin-top: 4px; font-family: var(--serif); font-size: 21px; letter-spacing: 0; color: var(--ink); font-weight: 700; }
.cal td.cal-today, .cal th.cal-today { background: var(--tint); }
.cal th.cal-today .cal-num { color: var(--gold-deep); }
.cal td { height: 92px; padding: 8px; }
.cal-job { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: var(--navy); color: var(--ivory); font-size: 12px; line-height: 1.35; transition: transform .15s; }
.cal-job + .cal-job { margin-top: 6px; }
.cal-job:hover { transform: translateY(-1px); }
.cal-job b { font-size: 13px; }
.cal-job small { color: rgba(245, 238, 220, .72); font-size: 11px; }
.cal-job .cal-state { color: var(--gold-t); font-weight: 700; }
.cal-job--completed { background: var(--ok-bg); color: var(--ok-fg); }
.cal-job--completed small { color: #2E6B57; }
.cal-job--completed .cal-state { color: var(--ok-fg); }
.cal-job--payment_secured { background: var(--gold); color: var(--navy); }
.cal-job--payment_secured small, .cal-job--payment_secured .cal-state { color: var(--navy); }
.cal-job--disputed { background: var(--bad-bg); color: var(--bad-fg); }
.cal-job--disputed small, .cal-job--disputed .cal-state { color: var(--bad-fg); }
.rev-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.rev-layout > .kpi { position: sticky; top: 24px; }
.rate-bars { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(233, 199, 102, .2); display: grid; gap: 8px; }
.rate-bars li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-size: 12px; color: rgba(245, 238, 220, .8); }
.rate-bars li span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.rate-bars svg { fill: var(--gold-t); color: var(--gold-t); }
.rate-bars i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rate-bars b { display: block; height: 100%; border-radius: 6px; background: var(--gold); }
.rate-bars li span:last-child { text-align: right; }
.rev-stars-sm { display: inline-flex; gap: 2px; color: var(--gold-deep); }
.rev-stars-sm svg.on { fill: currentColor; }
.rev-stars-sm svg.off { color: var(--line-2); }

/* Admin: users, catalogue, reports */
.suspend { position: relative; display: inline-block; }
.suspend summary { list-style: none; cursor: pointer; }
.suspend summary::-webkit-details-marker { display: none; }
.suspend-form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 280px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--card); text-align: left; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(10, 18, 51, .35); }
.suspend-form .input { min-height: 44px; }
.cat-card { display: flex; flex-direction: column; gap: 18px; }
.cat-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.cat-head img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.cat-fields { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 12px; }
.cat-desc { grid-column: 1 / -1; }
.cat-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.svc-list { display: flex; flex-direction: column; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 150px auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.svc-row .input { min-height: 44px; }
.svc-head { border-top: 0; padding-top: 12px; padding-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); background: var(--surface); }
.svc-new { background: var(--surface); }
.svc-actions { display: flex; gap: 8px; justify-content: flex-end; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cat-rank { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 18px; }
.cat-rank li { display: grid; gap: 6px; }
.cat-rank i { display: block; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.cat-rank i b { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--navy), #1A2A63); }
.top-pros { list-style: none; margin: 16px 0 0; padding: 0; }
.top-pros li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.top-pros li:first-child { border-top: 0; }
.top-n { width: 24px; font-size: 21px; font-style: normal; color: var(--gold-deep); text-align: center; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.pager-info { margin: 0; font-size: 13px; color: var(--sub); }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pager-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); transition: background .15s; }
a.pager-btn:hover { background: var(--surface); }
.pager-btn.is-current { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.pager-btn[aria-disabled] { opacity: .4; }
.pager-gap { display: inline-flex; align-items: center; height: 40px; padding: 0 4px; color: var(--sub); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 2px var(--line-2); background: var(--card); }
.timeline .done .dot { background: var(--navy); color: var(--gold-t); box-shadow: none; }
.timeline .now .dot { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 6px var(--gold-bg); }
.timeline .bar { flex: 1; width: 2px; min-height: 18px; background: var(--line); margin: 0 auto; }
.timeline .done .bar { background: var(--navy); }
.timeline .txt { padding-bottom: 20px; }
.tracker { display: flex; }
.tracker > div { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 600; }
.tracker > div::after { content: ""; position: absolute; left: 50%; right: -50%; top: 13px; height: 2px; background: rgba(255, 255, 255, .15); }
.tracker > div:last-child::after { display: none; }
.tracker > div.done::after { background: var(--gold); }
.tracker .d { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(255, 255, 255, .12); }
.tracker .done .d { background: var(--gold); color: var(--navy); }
.tracker .now .d { background: var(--navy); box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px rgba(233, 199, 102, .2); }
.tracker .next { color: var(--muted); }

/* Chat */
.presence-avatar { position: relative; flex: none; display: inline-flex; }
.presence-dot { position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #B9BCC6; box-shadow: 0 0 0 2.5px var(--card); }
.presence-dot.is-on { background: #1F9C7A; }
.chat-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; container-type: inline-size; }
@container (max-width: 560px) {
  .chat-head { flex-wrap: wrap; }
  .chat-where { max-width: none; width: 100%; }
}
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chat-who b { font-size: 16px; }
.chat-role { font-size: 12px; color: var(--sub); }
.chat-presence { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--faint); }
.chat-presence.is-on { color: var(--ok-fg); font-weight: 600; }
.chat-presence.is-on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1F9C7A; box-shadow: 0 0 0 3px rgba(31, 156, 122, .18); }
.chat-where { display: flex; align-items: flex-start; gap: 10px; max-width: 280px; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--gold-text); }
.chat-where svg { flex: none; margin-top: 2px; }
.chat-where > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.chat-where small { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.chat-where b { font-size: 13px; color: var(--ink); }
.chat-where em { font-style: normal; font-size: 12px; color: var(--sub); }
.chat-where.is-live { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-ring); color: var(--ok-fg); }
.chat { display: flex; flex-direction: column; gap: 6px; height: 440px; overflow-y: auto; padding: 18px 22px; background: var(--surface); }
.chat-day { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.chat-day::before, .chat-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.chat-empty { margin: auto; font-size: 14px; color: var(--sub); }
.bubble { max-width: 72%; padding: 10px 14px 8px; border-radius: 18px 18px 18px 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--navy); color: var(--ivory); box-shadow: none; }
.bubble-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; color: var(--faint); }
.bubble.me .bubble-meta { color: rgba(245, 238, 220, .6); }
.tick { display: inline-flex; }
.tick svg { width: 13px; height: 13px; }
.tick svg + svg { margin-left: -8px; }
.tick.is-read { color: var(--gold-t); }
.chat-typing { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 22px; font-size: 12px; color: var(--sub); background: var(--surface); }
.chat-typing[hidden] { display: none; }
.chat-typing .dots { display: inline-flex; gap: 3px; }
.chat-typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); animation: typing 1.2s infinite ease-in-out; }
.chat-typing .dots i:nth-child(2) { animation-delay: .15s; } .chat-typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-typing .dots i { animation: none; opacity: .7; } }
.chat-compose { display: flex; gap: 10px; padding: 14px 22px 0; border-top: 1px solid var(--line); }
.chat-compose .input { border-radius: 999px; }
.chat-compose .btn { width: 52px; padding: 0; flex: none; }
.chat-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 22px 16px; font-size: 12px; color: var(--faint); }
.chat-note svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 640px) {
  .chat-head { flex-wrap: wrap; padding: 16px; }
  .chat-where { max-width: none; width: 100%; }
  .chat { height: 400px; padding: 14px 16px; }
  .bubble { max-width: 86%; }
  .chat-compose { padding: 12px 16px 0; }
  .chat-note { padding: 10px 16px 14px; }
}

/* Bars (CSS charts) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); position: relative; }
.bars .b { flex: 1; position: relative; display: flex; justify-content: center; height: 100%; align-items: flex-end; }
.bars .b span { width: 100%; background: linear-gradient(180deg, #1A2A63, var(--navy)); border-radius: 8px 8px 2px 2px; min-height: 3px; transition: opacity .2s; }
.bars .b.hi span { background: linear-gradient(180deg, #F3D98B, var(--gold)); }
.bars .b em { position: absolute; bottom: -20px; font-style: normal; font-size: 11px; color: var(--faint); }
.bars .b:hover span { opacity: .85; }
.bars .b .tip { display: none; position: absolute; bottom: calc(100% + 6px); background: var(--navy); color: var(--ivory); font-size: 12px; padding: 6px 10px; border-radius: 10px; white-space: nowrap; z-index: 2; }
.bars .b:hover .tip, .bars .b:focus-within .tip { display: block; }
.stackbar { display: flex; gap: 2px; height: 16px; border-radius: 4px; overflow: hidden; }

/* Auth */
.auth { display: grid; grid-template-columns: minmax(420px, 44%) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; background: var(--bg); }
.auth-side { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px 48px; color: var(--ivory); background: var(--navy); overflow: hidden; isolation: isolate; }
.auth-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.06); }
.auth-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 51, .55) 0%, rgba(10, 18, 51, .15) 30%, rgba(10, 18, 51, .55) 60%, rgba(10, 18, 51, .96) 100%); }
.auth-shade::after { content: ""; position: absolute; inset: 0; background: #13204F; mix-blend-mode: color; opacity: .35; }
.auth-side .brand img { width: 46px; }
.auth-side-copy h2 { margin: 0; font-size: clamp(36px, 3.6vw, 56px); line-height: .98; letter-spacing: -.02em; }
.auth-side-copy h2 em { color: var(--gold-t); }
.auth-side-copy ul { list-style: none; margin: 28px 0 0; padding: 22px 0 0; display: grid; gap: 12px; border-top: 1px solid rgba(233, 199, 102, .25); }
.auth-side-copy li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(245, 238, 220, .86); }
.auth-side-copy svg { color: var(--gold-t); flex: none; }
.auth-main { display: flex; flex-direction: column; padding: 32px clamp(20px, 6vw, 96px) 48px; min-width: 0; }
.auth-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 48px; }
.auth-brand-sm { display: none; }
.auth-brand-sm span { font-size: 24px; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sub); transition: color .2s; }
.auth-back:hover { color: var(--ink); }
.auth-card { width: 100%; max-width: 520px; margin: auto 0; padding: 48px 0; }
.auth-eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.auth-title { margin: 0; font-size: clamp(36px, 3.8vw, 56px); line-height: .98; letter-spacing: -.02em; }
.auth-lead { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--sub); }
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { padding-right: 76px; width: 100%; }
.pass-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 700; color: var(--gold-text); cursor: pointer; }
.pass-btn:hover { background: var(--gold-bg); }
.otp { display: flex; gap: 10px; }
.otp input { width: 54px; height: 60px; text-align: center; font-size: 24px; font-weight: 700; }

/* Responsive */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-ring { max-width: 460px; margin: 20px auto 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
}
@media (max-width: 900px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .tracker > div { min-width: 0; font-size: 10.5px; line-height: 1.25; }
  .span-2, .span-3 { grid-column: auto; }
  .dash { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; }
  .side .role, .side-user, .side-group { display: none; }
  .side nav { flex: none; overflow: visible; margin: 0; padding: 0; }
  .side { overflow: visible; }
  .side-cta { margin: 0; }
  .side .foot { border-top: 0; padding-top: 0; }
  .settings-grid, .inbox, .rev-layout { grid-template-columns: minmax(0, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .cat-head { grid-template-columns: 56px minmax(0, 1fr); }
  .cat-head img { width: 56px; height: 56px; }
  .cat-side { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .svc-row { grid-template-columns: 1fr 1fr; }
  .svc-row .svc-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .svc-head { display: none; }
  .rev-layout > .kpi { position: static; }
  .settings-wide { grid-column: auto; }
  .note-list a { flex-wrap: wrap; }
  .side .foot { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
  .side .foot > * { flex: 1 1 160px; margin: 0; }
  .side .foot > form:last-child { flex: 0 0 auto; }
  .side nav { display: flex; flex-direction: row; overflow-x: auto; gap: 4px; width: 100%; }
  .side nav a { white-space: nowrap; }
  .main { padding: 24px 16px 48px; }
  .topbar h1 { font-size: 30px; }
  .site-nav, .site-head .actions .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-top { justify-content: space-between; }
  .auth-brand-sm { display: flex; }
  .auth-card { padding: 32px 0; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .stats-row > div { padding: 0 14px; min-width: 0; }
  .search-pill select { padding: 0 14px; }
  .search-pill .btn { white-space: nowrap; }
  .stats-row .serif { font-size: 25px; }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .tile.big { grid-column: span 2; grid-row: span 1; }
  .float-card { position: static; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

input[type="range"] { accent-color: var(--gold); width: 100%; }

/* Maps (OpenStreetMap or Google, see public/js/maps.js) */
.mg-map { position: relative; z-index: 0; width: 100%; border-radius: 18px; overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.mg-map--osm .leaflet-tile-pane { filter: saturate(.55) sepia(.1) contrast(.97); }
.mg-map .leaflet-control-attribution { font-size: 10px; background: rgba(250, 246, 236, .85); }
.mg-map .leaflet-control-zoom a { color: var(--navy); }
.mg-map-fail { margin: 0; padding: 40px 20px; text-align: center; font-size: 14px; color: var(--sub); }
.mg-pin-wrap { background: none; border: 0; }
.mg-pin { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; }
.mg-pin--pro { position: relative; background: var(--navy); color: var(--gold-t); font-size: 13px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 8px 18px rgba(10, 18, 51, .35); }
.mg-pin--pro img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mg-pin--pro.is-live::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--gold); animation: mg-ping 1.8s ease-out infinite; }
.mg-pin--pro.is-stale { filter: grayscale(1); opacity: .75; }
.mg-pin--home { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(10, 18, 51, .3); }
.mg-pin--job { width: 18px; height: 18px; margin: 13px; background: #fff; box-shadow: 0 0 0 4px var(--navy), 0 4px 10px rgba(10, 18, 51, .3); }
.mg-pin--in_progress { background: var(--released); }
.mg-pin--area { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: auto; height: auto; padding: 5px 10px; border-radius: 999px; background: var(--navy); color: var(--ivory); font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgba(10, 18, 51, .3); }
@keyframes mg-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mg-pin--pro.is-live::after { animation: none; opacity: .5; } }

/* Fixed centre pin for choosing a spot: move the map, not the pin. */
.pin-picker { position: relative; }
.pin-picker .mg-map { height: 280px; }
.pin-picker-target { position: absolute; left: 50%; top: 50%; z-index: 500; width: 34px; height: 46px; transform: translate(-50%, -100%); pointer-events: none; filter: drop-shadow(0 6px 8px rgba(10, 18, 51, .35)); }
.pin-picker-target::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 4px; margin-left: -5px; border-radius: 50%; background: rgba(10, 18, 51, .35); }
.pin-picker-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--sub); }

/* Live tracking card */
.track { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.track .mg-map { height: 340px; border-radius: 0; box-shadow: none; }
.track-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.track-head b { font-size: 16px; }
.track-eta { margin-left: auto; text-align: right; line-height: 1.1; }
.track-eta .serif { display: block; font-size: 32px; }
.track-eta small { font-size: 12px; color: var(--sub); }
.track-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 22px 16px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--released); box-shadow: 0 0 0 4px rgba(31, 156, 122, .18); }
.live-dot.is-stale { background: var(--faint); box-shadow: none; }
.arrival-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ok-bg); color: var(--ok-fg); }
.arrival-badge.is-unverified { background: var(--warn-bg); color: var(--warn-fg); }
@media (max-width: 640px) { .track .mg-map { height: 280px; } .track-head { padding: 16px; flex-wrap: wrap; } .track-foot { padding: 12px 16px 14px; } }
.arrival-warn { margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(242, 163, 140, .14); box-shadow: inset 0 0 0 1px rgba(242, 163, 140, .45); color: var(--ivory); font-size: 14px; }

/* Booking extras: problem uploads, favourites, unavailable choices */
.upload-drop { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); border: 0; color: var(--ink); }
.upload-drop:hover { box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.upload-drop svg { flex: none; color: var(--gold-text); }
.upload-drop:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-thumb { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--ivory); box-shadow: 0 0 0 1px var(--line); }
.fav-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--bad-fg); background: var(--bad-bg); vertical-align: 2px; }
.fav-tag svg { fill: currentColor; }
.choice.is-off { opacity: .55; cursor: not-allowed; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; }
.fav-btn.is-on svg { fill: #C2414F; color: #C2414F; }
.problem-media { display: flex; flex-wrap: wrap; gap: 8px; }
.problem-media a, .problem-media video { display: block; width: 120px; height: 90px; border-radius: 12px; overflow: hidden; background: var(--ivory); }
.problem-media img, .problem-media video { width: 100%; height: 100%; object-fit: cover; }
.chip--urgent { background: var(--bad-bg); color: var(--bad-fg); }

/* Chat: photos, voice notes, payment-safety warnings */
.chat-compose { flex-direction: column; align-items: stretch; }
.chat-row { display: flex; gap: 8px; align-items: center; }
.chat-row[hidden] { display: none; }
.chat-tool { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: transparent; color: var(--sub); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: color .15s, box-shadow .15s; }
.chat-tool:hover, .chat-tool:focus-within { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.chat-compose.is-sending #send-btn { opacity: .5; pointer-events: none; }
.chat-attach, .chat-recording { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.chat-attach[hidden], .chat-recording[hidden] { display: none; }
.chat-attach img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.chat-attach span, .chat-recording > span:nth-child(2) { flex: 1; min-width: 0; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--disputed); animation: rec 1s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .3; } }
.bubble.has-media { padding: 6px 6px 8px; }
.bubble-photo { display: block; margin-bottom: 4px; }
.bubble-photo img { display: block; width: 100%; max-width: 260px; max-height: 300px; border-radius: 14px; object-fit: cover; }
.voice { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.voice-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: var(--navy); color: var(--gold-t); }
.bubble.me .voice-play { background: var(--gold); color: var(--navy); }
.voice-play .i-play { fill: currentColor; }
.voice-play .i-pause { display: none; stroke-width: 3; }
.voice.is-playing .i-play { display: none; }
.voice.is-playing .i-pause { display: block; }
.voice-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(10, 18, 51, .15); overflow: hidden; }
.bubble.me .voice-bar { background: rgba(245, 238, 220, .25); }
.voice-bar i { display: block; width: 0; height: 100%; background: var(--gold-deep); }
.bubble.me .voice-bar i { background: var(--gold-t); }
.voice-time { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .75; }
.scam-note { display: flex; gap: 8px; align-items: flex-start; max-width: 80%; margin: 2px 0 6px; padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45; background: var(--bad-bg); color: var(--bad-fg); }
.scam-note svg { flex: none; margin-top: 2px; }
.scam-note.is-mine { align-self: flex-end; background: var(--surface-2); color: var(--sub); }
.scam-warn { margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bad-bg); color: var(--bad-fg); font-size: 13px; line-height: 1.5; }
.scam-warn[hidden] { display: none; }
.scam-warn p { margin: 0 0 10px; }

/* Share my visit */
.share-link { display: flex; flex-direction: column; gap: 10px; }
.share-link[hidden] { display: none; }
.share-link .input { font-size: 13px; }
.btn-linkish { padding: 0; border: 0; background: none; color: var(--disputed); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Pro availability */
.cal td.cal-off { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 6px, var(--surface-3) 6px, var(--surface-3) 12px); }
.hours-grid th, .hours-grid td { padding: 8px 6px; text-align: center; font-size: 12px; }
.hours-grid thead th { font-weight: 600; color: var(--sub); white-space: nowrap; }
.hours-grid tbody th { text-align: left; }
.hours-cell { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .15s; }
.hours-cell:has(input:checked) { background: var(--navy); box-shadow: none; }
.hours-cell:has(input:checked)::after { content: ''; width: 10px; height: 6px; margin-top: -3px; border-left: 2px solid var(--gold-t); border-bottom: 2px solid var(--gold-t); transform: rotate(-45deg); }
.hours-cell:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.hours-cell input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Pro levels */
.level { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; vertical-align: 2px; }
.level svg { fill: currentColor; }
.level--new { background: var(--neutral-bg); color: var(--neutral-fg); }
.level--bronze { background: #F3E3D3; color: #7A4A1E; }
.level--silver { background: #E6E9EF; color: #39414F; }
.level--gold { background: linear-gradient(100deg, #F7E6B0, #E9C766); color: #5C440A; }
.level-checks { display: flex; flex-direction: column; gap: 0; }
.level-checks div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.level-checks .ok { color: var(--ok-fg); font-weight: 700; }

/* Arrival code: entered by the pro, shown to the customer */
.code-entry { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.code-entry label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.code-entry p { margin: 0; }
.code-input { width: 100%; min-height: 64px; padding: 0 18px; border: 0; border-radius: var(--r-md); background: rgba(245, 238, 220, .08); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .35); color: var(--ivory); font: 700 34px/1 var(--serif); letter-spacing: .6em; text-align: center; text-indent: .6em; }
.code-input::placeholder { color: rgba(245, 238, 220, .3); }
.code-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold-t); }
.code-input.is-wrong { box-shadow: inset 0 0 0 2px #F2A38C; }
.arrival-code { display: flex; flex-direction: column; gap: 14px; }
.arrival-code-digits { display: flex; gap: 10px; }
.arrival-code-digits span { flex: 1; max-width: 64px; display: grid; place-items: center; height: 72px; border-radius: var(--r-md); background: rgba(245, 238, 220, .08); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .4); color: var(--gold-t); font: 800 38px/1 var(--serif); }
.arrival-code .btn-line { align-self: flex-start; }

/* Before and after photos */
.wp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wp-slot { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.wp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wp-thumbs .photo { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.wp-add { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-2); color: var(--gold-text); font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; padding: 6px; transition: background .2s; }
.wp-add:hover, .wp-add:focus-within { background: var(--surface); }
.wp-add:focus-within { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.wp-add.is-busy { opacity: .6; pointer-events: none; }
.ba-list { display: flex; flex-direction: column; gap: 14px; }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; min-width: 0; }
.ba > a, .ba > span { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--navy-3); }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba i { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 18, 51, .78); color: var(--ivory); font: 700 10px/1.4 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.ba > span.is-empty { display: grid; place-items: center; background: var(--surface-2); color: var(--faint); font-size: 12px; }
.ba figcaption { grid-column: 1 / -1; font-size: 13px; color: var(--sub); }
@media (max-width: 640px) { .wp-slots { grid-template-columns: 1fr; } }

/* Share a pro profile */
.share-pro { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-pro .btn { flex: 1 1 auto; justify-content: center; }
.share-wa { background: #1F7A4C; color: #fff; }
.share-wa:hover { background: #18663F; }
.share-copy { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.share-pro.is-dark .share-copy { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .4); }
.svc-row .svc-parts { grid-column: 1 / -1; order: 1; min-height: 40px; font-size: 13px; }

/* Notifications on this device */
.push-card--prompt { box-shadow: inset 0 0 0 1.5px var(--gold), var(--elev); background: var(--surface); }
.push-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold-t); }
.push-status { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ok-fg); font-weight: 600; }
[data-push] [hidden] { display: none !important; }

/* Escrow explainer: a small "?" that opens one plain line */
.esc-tip { position: relative; display: inline-block; vertical-align: middle; font-weight: 500; letter-spacing: 0; text-transform: none; }
.esc-tip summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; color: var(--gold-text); background: var(--gold-bg); }
.esc-tip summary::-webkit-details-marker { display: none; }
.esc-tip summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.esc-tip-body { position: fixed; z-index: 90; width: min(260px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ivory); background: var(--navy); box-shadow: 0 18px 40px -16px rgba(10, 18, 51, .55); white-space: normal; }
.card-navy .esc-tip summary, .kpi.navy .esc-tip summary { color: var(--navy); background: var(--gold-t); }
.card-navy .esc-tip-body, .kpi.navy .esc-tip-body { color: var(--ink); background: var(--card); }

/* Ask Grace */
.grace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.grace-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.grace-log { display: flex; flex-direction: column; gap: 14px; height: clamp(360px, 56vh, 560px); overflow-y: auto; padding: 22px; background: var(--surface); }
.g-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 84%; }
.g-msg--me { align-self: flex-end; }
.g-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold-t); font-family: var(--serif); font-weight: 700; font-size: 14px; }
.g-bubble { padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.g-msg--me .g-bubble { border-radius: 18px 18px 6px 18px; background: var(--navy); color: var(--ivory); box-shadow: none; }
.g-bubble .dots { display: inline-flex; gap: 3px; padding: 4px 0; }
.g-bubble .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); animation: typing 1.2s infinite ease-in-out; }
.g-bubble .dots i:nth-child(2) { animation-delay: .15s; } .g-bubble .dots i:nth-child(3) { animation-delay: .3s; }
.g-safety { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 9px 11px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: 13px; font-weight: 600; }
.g-safety.is-emergency { background: var(--bad-bg); color: var(--bad-fg); }
.g-safety svg { flex: none; margin-top: 2px; }
.g-error { color: var(--disputed); font-weight: 600; }
.g-book { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px; background: var(--navy); color: var(--ivory); }
.g-book[hidden] { display: none; }
.g-book span { display: flex; flex-direction: column; line-height: 1.3; }
.g-book small { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-t); }
.g-book b { font-size: 17px; }
.g-book em { font-style: normal; font-size: 13px; color: var(--muted); }
.g-compose { display: flex; gap: 10px; align-items: flex-end; padding: 14px 22px 0; border-top: 1px solid var(--line); }
.g-compose textarea { resize: none; min-height: 48px; border-radius: 22px; padding-top: 12px; line-height: 1.4; }
.g-compose .btn { flex: none; width: 52px; padding: 0; }
.g-foot { margin: 0; padding: 10px 22px 16px; font-size: 12px; color: var(--faint); }
.g-hist { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; }
.g-hist span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-hist small { flex: none; color: var(--faint); }
.g-hist:hover, .g-hist.is-active { background: var(--surface); }
@media (max-width: 1000px) { .grace-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grace-log { padding: 16px; } .g-msg { max-width: 92%; } .g-compose, .g-book { padding-left: 16px; padding-right: 16px; } .g-foot { padding: 10px 16px 14px; } }

/* Chat translation */
.tr-link { padding: 0; margin-top: 4px; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; color: var(--gold-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bubble.me .tr-link { color: var(--gold-t); }
.tr-text { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-2); font-size: 13px; }
.tr-text small { display: block; font-size: 10.5px; color: var(--faint); }

/* City picker */
.city-pick { position: relative; display: inline-block; }
.city-pick summary { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; list-style: none; cursor: pointer; font-size: 14px; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.city-pick summary::-webkit-details-marker { display: none; }
.city-pick summary svg { flex: none; color: var(--gold-deep); }
.city-pick summary b { font-weight: 700; }
.city-pick-label { color: var(--sub); }
.city-pick-chev { transition: transform .2s; }
.city-pick[open] .city-pick-chev { transform: rotate(180deg); }
.city-pick summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.city-pick--dark summary { color: var(--ivory); background: rgba(245, 238, 220, .06); box-shadow: inset 0 0 0 1px rgba(233, 199, 102, .35); }
.city-pick--dark summary svg { color: var(--gold-t); }
.city-pick--dark .city-pick-label { color: rgba(245, 238, 220, .7); }
.city-menu { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: 264px; max-height: min(560px, 80vh); overflow-y: auto; padding: 8px; border-radius: 18px; background: var(--card); box-shadow: 0 30px 60px -24px rgba(10, 18, 51, .45), inset 0 0 0 1px var(--line); }
.city-menu-head { margin: 6px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.city-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.city-menu a small { display: block; font-size: 12px; font-weight: 500; color: var(--sub); }
.city-menu a:hover, .city-menu a:focus-visible { background: var(--surface-hover); outline: none; }
.city-menu a.is-on { background: var(--tint); }
.city-menu a svg { color: var(--gold-deep); flex: none; }
.city-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--sub); }
.city-note b { color: var(--ink); }
@media (max-width: 640px) { .city-menu { width: min(264px, calc(100vw - 32px)); } }
.mb-24 { margin-bottom: 24px; }
.city-table .mono { font-size: 14px; }
.adj-input { display: inline-flex; align-items: center; gap: 8px; }
.adj-input .input { width: 96px; min-height: 42px; padding: 8px 12px; }

/* Background checks (admin) */
.bg-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--faint); }
.bg-status.is-ok { color: var(--ok-fg); }
.bg-status.is-due { color: #8A5A00; }
.bg-status.is-bad { color: var(--disputed); }
.bg-form { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.bg-form summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--gold-text); }
.bg-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.bg-fields .bg-note { grid-column: 1 / -1; }
@media (max-width: 760px) { .bg-fields { grid-template-columns: minmax(0, 1fr); } }

/* Provider approvals: three columns on desktop; on phones the actions drop below the details. */
.prov-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
@media (max-width: 760px) {
  .prov-card { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; }
  .prov-actions { grid-column: 1 / -1; justify-content: flex-start !important; }
  .prov-actions .input { max-width: none !important; flex: 1 1 100%; }
}

/* Announcement banners */
.banner { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 44px 10px 16px; position: relative; font-size: 14px; line-height: 1.4; text-align: center; background: var(--navy, #14213D); color: #fff; }
.banner p { margin: 0; } .banner span { opacity: .85; margin-left: 6px; } .banner a { color: inherit; font-weight: 700; text-decoration: underline; margin-left: 10px; white-space: nowrap; }
.banner--promo { background: #E9C766; color: #14213D; }
.banner--warning { background: var(--bad-bg); color: var(--bad-fg); }
.banner-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; }
.banner-x:hover, .banner-x:focus-visible { background: rgba(127, 127, 127, .25); }
.main > .banner { margin: -4px 0 18px; border-radius: 12px; }

/* Admin search (Ctrl K) */
.admin-search-btn { float: right; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; margin: -6px 0 0 12px; border: 1px solid var(--line, #E5E1D6); border-radius: 999px; background: var(--card); color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.admin-search-btn:hover, .admin-search-btn:focus-visible { border-color: var(--gold-text, #9B7B1A); }
.admin-search-btn kbd { font: 600 11px/1 ui-monospace, monospace; padding: 3px 6px; border-radius: 6px; background: rgba(127, 127, 127, .15); }
.asearch { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(10, 16, 32, .55); }
.asearch.open { display: flex; }
.asearch-box { width: min(620px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.asearch-box input { border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; font: inherit; font-size: 17px; outline: none; background: transparent; color: inherit; }
.asearch-list { overflow-y: auto; padding: 6px; }
.asearch-group { padding: 10px 14px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; font-weight: 700; }
.asearch-item { display: block; padding: 10px 14px; border-radius: 10px; color: inherit; text-decoration: none; }
.asearch-item small { display: block; opacity: .65; }
.asearch-item.sel, .asearch-item:hover { background: var(--surface-2); }
.asearch-empty { padding: 22px; text-align: center; opacity: .65; font-size: 14px; }
@media (max-width: 760px) { .admin-search-btn:hover, .admin-search-btn:focus-visible { border-color: var(--gold-text, #9B7B1A); }
.admin-search-btn kbd { display: none; } }

/* Pages and posts built in the page builder */
.pg { padding-block: 40px 80px; max-width: 860px; }
.pg > * + * { margin-top: 22px; }
.pg-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 36px; border-radius: 22px; background: #14213D; color: #fff; }
.pg-hero h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.pg-hero p { margin: 0 0 18px; opacity: .85; }
.pg-hero img { width: 100%; border-radius: 16px; max-height: 320px; object-fit: cover; }
@media (min-width: 800px) { .pg-hero:has(img) { grid-template-columns: 1.1fr .9fr; } }
.pg-h { margin-bottom: 0; }
.pg-text p, .pg-text ul { margin: 0 0 14px; line-height: 1.7; font-size: 17px; } .pg-text ul { padding-left: 22px; } .pg-text a { text-decoration: underline; }
.pg-img img { width: 100%; border-radius: 16px; display: block; } .pg-img figcaption { margin-top: 8px; font-size: 14px; opacity: .7; }
.pg-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pg-cards article { padding: 22px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line, #E5E1D6); }
.pg-cards h3 { margin: 0 0 8px; font-size: 22px; } .pg-cards p { margin: 0; opacity: .85; line-height: 1.6; }
.pg-hr { border: 0; border-top: 1px solid var(--line, #E5E1D6); }
.pg-space { height: 28px; }
.pg-btn { margin: 0; }

/* Booking page header */
.bk-head { align-items: flex-start; margin-bottom: 26px; }
.bk-units { font-size: .55em; font-weight: 600; color: var(--sub); letter-spacing: 0; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 15px; color: var(--sub); }
.bk-meta li { display: inline-flex; align-items: center; gap: 8px; }
.bk-meta svg { color: var(--gold-text); flex: none; }
.bk-head .chip { margin-top: 6px; }
/* Pro card: "works from" fills the card instead of floating at a narrower width */
.chat-head { flex-wrap: wrap; }
.chat-where { flex: 1 1 100%; max-width: none; }

/* Dark theme details */
html[data-theme="dark"] .btn-outline:hover { background: var(--surface); }
html[data-theme="dark"] .btn-gold:hover { background: #ECCB72; }
html[data-theme="dark"] .input::placeholder, html[data-theme="dark"] textarea::placeholder { color: var(--faint); }
html[data-theme="dark"] .mg-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); }
html[data-theme="dark"] .banner--promo { background: #3A3220; color: #F2D78E; }
html[data-theme="dark"] .level--bronze { background: #4A3524; color: #F2C79C; }
html[data-theme="dark"] .level--silver { background: #2E3548; color: #D5DAE8; }
html[data-theme="dark"] .cal td.cal-off { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 6px, var(--surface-2) 6px, var(--surface-2) 12px); }
html[data-theme="dark"] .contact-form select.input { background-color: var(--card); }
html[data-theme="dark"] .pg-hero { background: #0E1534; }

/* Theme switch button */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: transparent; color: inherit; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .35); transition: background .2s; }
.theme-toggle:hover, .theme-toggle:focus-visible { background: rgba(127, 127, 127, .18); }
.theme-toggle .i-sun { display: none; } .theme-toggle .i-moon { display: block; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; } html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle--float { position: fixed; top: 14px; right: 14px; z-index: 70; background: var(--card); color: var(--ink); }
.theme-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 14px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: rgba(245, 238, 220, .6); transition: color .2s; }
.theme-row:hover, .theme-row:focus-visible { color: var(--ivory); }
.side-mini .theme-row { justify-content: center; padding-left: 0; padding-right: 0; }
.theme-row .i-sun { display: none; } .theme-row .i-moon { display: block; }
html[data-theme="dark"] .theme-row .i-sun { display: block; } html[data-theme="dark"] .theme-row .i-moon { display: none; }
.theme-row svg { flex: none; }
.theme-row .i-sun, .theme-row .i-moon { margin-right: 0; }
.sh-theme { color: var(--ivory); }

/* Booking progress strip */
.progress { display: flex; list-style: none; margin: 22px 0 4px; padding: 0; }
.progress li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--faint); }
.progress li::after { content: ""; position: absolute; top: 13px; left: 50%; right: -50%; height: 2px; background: var(--line); }
.progress li:last-child::after { display: none; }
.progress li.done::after { background: var(--navy); }
.progress .pdot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.progress .done { color: var(--ink); }
.progress .done .pdot { background: var(--navy); color: var(--gold-t); box-shadow: none; }
.progress .now { color: var(--ink); }
.progress .now .pdot { background: var(--gold); box-shadow: 0 0 0 6px var(--gold-bg); }
@media (max-width: 560px) { .progress li { font-size: 10.5px; } }
html[data-theme="dark"] .progress li.done::after { background: var(--gold); }
html[data-theme="dark"] .progress .done .pdot { background: var(--gold); color: var(--navy); }

/* Messenger workspace (inbox) */
.messenger { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 118px); min-height: 560px; margin-top: 8px; border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: 0 30px 70px -40px rgba(10, 18, 51, .45), 0 0 0 1px var(--line); }
.m-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--surface); }
.m-side-head { padding: 24px 22px 14px; }
.m-side-head h1 { margin: 0; font-size: 28px; letter-spacing: -.01em; }
.m-search { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 14px; height: 42px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--faint); }
.m-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.m-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.messenger .threads { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 14px; background: transparent; box-shadow: none; border-radius: 0; border: 0; }
.messenger .threads a { padding: 13px 12px; border-radius: 16px; align-items: flex-start; position: relative; }
.messenger .threads a[hidden] { display: none; }
.messenger .threads a.is-active { background: var(--card); box-shadow: 0 8px 24px -14px rgba(10, 18, 51, .35), inset 0 0 0 1px var(--line); }
.messenger .threads a.is-active::before { content: ""; position: absolute; left: -10px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.t-top b { flex: 1; min-width: 0; }
.t-top time { flex: none; font-size: 11.5px; color: var(--faint); }
.threads a.is-unread .t-top time { color: var(--gold-text); font-weight: 700; }
.t-last { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.t-last small { flex: 1; min-width: 0; margin: 0 !important; }
.m-none { margin: 20px 12px; text-align: center; font-size: 14px; color: var(--sub); }
.m-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.m-main-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--card); }
.m-main-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.m-main-title b { font-size: 16px; }
.m-main-title span { font-size: 13px; color: var(--sub); }
.m-main-title .mono { font-size: 12px; color: var(--faint); }
.messenger .chat-card { flex: 1; min-height: 0; border-radius: 0; border: 0; box-shadow: none; background: var(--card); }
.messenger .chat { flex: 1; height: auto; min-height: 0; padding: 20px 28px; }
.messenger .chat-head { padding: 14px 24px; }
.messenger .chat-compose { padding: 14px 24px 0; background: var(--card); }
.messenger .chat-note { padding: 10px 24px 16px; }
@media (max-width: 900px) {
  .messenger { grid-template-columns: minmax(0, 1fr); height: auto; border-radius: 22px; }
  .m-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 320px; }
  .m-main { min-height: 640px; }
  .m-main-head { flex-wrap: wrap; padding: 14px 16px; }
  .messenger .chat { padding: 14px 16px; }
}

/* Messenger polish */
.messenger .chat-card { position: relative; }
.messenger .chat-head { flex-wrap: wrap; gap: 12px 14px; padding: 16px 24px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.messenger .chat-who b { font-size: 17px; }
.chat-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.messenger .chat-where { flex: 1 1 100%; max-width: none; align-items: center; padding: 8px 14px; border-radius: 12px; }
.messenger .chat-where > span { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.messenger .chat { gap: 3px; background: radial-gradient(700px 300px at 100% 0%, rgba(233, 199, 102, .10), transparent 70%), var(--surface); }
.messenger .bubble { max-width: 68%; padding: 10px 14px 7px; font-size: 14.5px; line-height: 1.5; box-shadow: 0 1px 2px rgba(10, 18, 51, .06), inset 0 0 0 1px var(--line); }
.messenger .bubble.me { background: linear-gradient(160deg, #14224F, var(--navy)); box-shadow: 0 6px 16px -10px rgba(10, 18, 51, .6); }
.messenger .bubble + .bubble { margin-top: 0; }
.messenger .chat-day { margin: 18px 0 10px; }
.messenger .chat-day span { padding: 4px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.messenger .chat-day::before, .messenger .chat-day::after { background: transparent; }
.messenger .chat-compose { position: relative; padding: 12px 24px 0; border-top: 1px solid var(--line); box-shadow: 0 -14px 30px -24px rgba(10, 18, 51, .35); }
.messenger .chat-row { padding: 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.messenger .chat-row:focus-within { box-shadow: inset 0 0 0 1.5px var(--gold-deep), 0 0 0 4px rgba(233, 199, 102, .18); }
.messenger .chat-row .input { border: 0; box-shadow: none; background: transparent; }
.messenger .chat-row .input:focus { outline: 0; box-shadow: none; }
.messenger #send-btn { background: var(--gold); color: var(--navy); width: 46px; height: 46px; }
.quick { display: flex; gap: 8px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
.quick button:hover { background: var(--gold-bg); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.jump { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); padding: 8px 16px; border: 0; border-radius: 999px; background: var(--navy); color: var(--ivory); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(10, 18, 51, .6); z-index: 3; }
.jump[hidden] { display: none; }
@media (max-width: 900px) { .chat-actions { margin-left: 0; width: 100%; justify-content: space-between; } .messenger .bubble { max-width: 86%; } .jump { bottom: 190px; } }

/* Messenger on phones: the list and the chat are separate screens */
.m-back { display: none; }
@media (max-width: 900px) {
  .messenger { margin-top: 0; }
  .messenger .m-side { max-height: none; }
  .messenger:not(.has-open) .m-main { display: none; }
  .messenger.has-open .m-side { display: none; }
  .messenger.has-open { height: auto; }
  .m-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 14px 16px 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
  .m-back svg { transform: rotate(180deg); }
  .messenger .chat { min-height: 360px; max-height: 60vh; }
  .m-main { min-height: 0; }
}

/* Support conversations */
.tk-msg { padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); max-width: 92%; }
.tk-msg--customer { align-self: flex-start; }
.tk-msg--team { align-self: flex-end; background: var(--gold-bg); box-shadow: none; }
.tk-msg--note { background: var(--tint); box-shadow: inset 0 0 0 1px var(--line-2); border-style: dashed; max-width: 100%; }
.tk-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.tk-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 15px; }
.stack > .tk-msg { align-self: stretch; }

/* Phone header: logo on the left, three round icon buttons on the right, menu as one scrolling row */
@media (max-width: 900px) {
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 8px; padding: 12px 16px 6px; }
  .side > .brand { order: 1; margin-right: auto; padding: 0 !important; }
  .side > .brand img { width: 36px !important; }
  .side > .brand span { font-size: 22px !important; }
  .side .foot { display: contents; }
  .side .side-user { display: flex; order: 2; width: auto; padding: 0; background: none; box-shadow: none; }
  .side .side-user > :not(.side-bell) { display: none; }
  .side .side-bell, .side .theme-row, .side .foot > form:not([action*="availability"]) .btn { width: 40px; height: 40px; min-height: 40px; padding: 0; margin: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); box-shadow: none; color: var(--ivory); border: 0; }
  .side .theme-row { order: 2; flex: none; }
  .side .theme-row .lbl, .side .foot > form:not([action*="availability"]) .btn .lbl { display: none; }
  .side .foot > form:not([action*="availability"]) { order: 2; flex: none; width: auto; }
  .side .foot > form[action*="availability"] { order: 4; flex: 1 1 100%; }
  .side nav { order: 3; flex: 1 1 100%; display: flex; flex-direction: row; gap: 6px; margin: 4px -16px 0; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; background: rgba(255, 255, 255, .05); }
  .side nav a.active { background: rgba(233, 199, 102, .2); }
  .side nav a.active::before { display: none; }
  .side nav .side-cta { margin: 0; background: linear-gradient(180deg, #EDCB6E, #D4AB3C); }
}
@media (max-width: 900px) {
  .side .foot > * { flex: none; }
  .side .foot > form[action*="availability"] { flex: 1 1 100%; }
  .side .side-user { flex: none; }
}
