@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500 800;font-display:swap;src:url(/pub/fonts/playfair.woff) format('woff')}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500 700;font-display:swap;src:url(/pub/fonts/playfair-italic.woff) format('woff')}
@font-face{font-family:'Jost';font-style:normal;font-weight:400 600;font-display:swap;src:url(/pub/fonts/jost.woff) format('woff')}
/* EXAA OS — layout: fixed left sidebar (desktop) / top bar + bottom tabs (phone); soft blush canvas, white working cards,
   pastel stat tiles keyed to meaning (money in green, debt red, commission gold, shipping violet). */
:root {
  /* real gold: a polished-metal gradient (deep bronze → bright highlight → old gold), not a flat yellow */
  --gold-metal: linear-gradient(118deg, #6e4c10 0%, #a57720 16%, #d9b45a 31%, #fbecb6 43%, #d4a744 55%, #8f6418 72%, #c79a3c 88%, #f1d98f 100%);
  --gold-ink-metal: linear-gradient(118deg, #5e400b 0%, #8d6418 30%, #b8862c 48%, #7a5512 66%, #a37a2a 100%);
  --gold-champagne: linear-gradient(135deg, #fbf4e3 0%, #f2e2bb 40%, #fdf8ec 58%, #eedcae 100%);
  --gold-edge: inset 0 1px 0 rgba(255, 248, 220, 0.85), inset 0 -1px 0 rgba(80, 52, 8, 0.35), 0 1px 2px rgba(80, 52, 8, 0.25);
  --bg: #fbf6f7;
  --surface: #ffffff;
  --surface-2: #f7f2f4;
  --line: #ebe2e6;
  --line-strong: #dccfd5;
  --fg: #1c2236;
  --muted: #565b70;
  --faint: #686c82;
  --navy: #24385e;
  --navy-fg: #ffffff;
  --accent: #4f46e5;
  --accent-soft: #eeedfd;
  --accent-solid: #4f46e5;
  --navy-ink: #24385e;
  --gold: #8a6420;
  --ok: #2a7442;
  --ok-soft: #e8f6ec;
  --warn: #8f5809;
  --warn-soft: #fdf3e2;
  --bad: #c0362c;
  --ok-solid: #2c8248;
  --bad-solid: #c0362c;
  --bad-soft: #fcebea;
  --info: #2a62a8;
  --info-soft: #eaf1fb;
  --violet: #7a3be0;
  --violet-soft: #f3edfd;
  --teal: #1a7a6b;
  --teal-soft: #e5f6f2;
  --pink-soft: #fcebf0;
  --pink: #b8325f;
  --bubble-in: #ffffff;
  --bubble-out: #e3f3e6;
  --bubble-bot: #eef0fb;
  --chat-bg: #f5f0ea;
  --shadow: 0 1px 2px rgba(40, 20, 40, 0.05), 0 2px 8px rgba(40, 20, 40, 0.04);
  --radius: 14px;
  --cat-1: #2a78d6; --cat-2: #eb6834; --cat-3: #1baf7a; --cat-4: #eda100; --cat-5: #e87ba4; --cat-6: #008300;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #12131a; --surface: #1a1c26; --surface-2: #222532; --line: #2b2f3e; --line-strong: #3a3f52; --fg: #e9eaf2; --muted: #a8acc2; --faint: #8a8fa8;
    --navy: #3b5487; --navy-fg: #ffffff; --navy-ink: #a9bde9; --accent-solid: #5b54d6; --accent: #8b85ff; --accent-soft: #26244a; --gold: #d9b45f; --ok: #5cc17b; --ok-soft: #17301f; --warn: #e3a64a;
    --warn-soft: #33270f; --bad: #f07067; --bad-soft: #3a1b1a; --info: #7fb0ef; --info-soft: #16263b; --violet: #b592ff; --violet-soft: #281d3d;
    --teal: #5ccdb9; --teal-soft: #112e2a; --pink-soft: #351b26; --pink: #f08cb0; --bubble-in: #232634; --bubble-out: #1d3a28; --bubble-bot: #23264a;
    --chat-bg: #171922; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); color-scheme: dark; --ok-solid: #2f7d4a; --bad-solid: #b8433a; --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-6: #008300;
  }
}
:root[data-theme='dark'] {
  --bg: #12131a; --surface: #1a1c26; --surface-2: #222532; --line: #2b2f3e; --line-strong: #3a3f52; --fg: #e9eaf2; --muted: #a8acc2; --faint: #8a8fa8;
  --navy: #3b5487; --navy-fg: #ffffff; --navy-ink: #a9bde9; --accent-solid: #5b54d6; --accent: #8b85ff; --accent-soft: #26244a; --gold: #d9b45f; --ok: #5cc17b; --ok-soft: #17301f; --warn: #e3a64a;
  --warn-soft: #33270f; --bad: #f07067; --bad-soft: #3a1b1a; --info: #7fb0ef; --info-soft: #16263b; --violet: #b592ff; --violet-soft: #281d3d;
  --teal: #5ccdb9; --teal-soft: #112e2a; --pink-soft: #351b26; --pink: #f08cb0; --bubble-in: #232634; --bubble-out: #1d3a28; --bubble-bot: #23264a;
  --chat-bg: #171922; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); color-scheme: dark; --ok-solid: #2f7d4a; --bad-solid: #b8433a; --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-6: #008300;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); } .vio { color: var(--violet); } .gold { color: var(--gold); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── shell ── */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); height: calc(100vh - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; padding-left: env(safe-area-inset-left, 0px); }
.side-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.side-head img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.side-head .role { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.brand { font-family: var(--font-brand); font-weight: 700; font-size: 20px; color: var(--gold); letter-spacing: 0.04em; line-height: 1.1; }
.side-search { margin: 12px 12px 4px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-2); cursor: pointer; border-width: 1px; text-align: left; }
.kbd { margin-left: auto; font-size: 11px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 6px; background: var(--surface); }
.nav { padding: 6px 10px 12px; overflow-y: auto; flex: 1; }
.nav-group { font-size: 12px; letter-spacing: 0.02em; color: var(--faint); font-weight: 700; padding: 14px 12px 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; border: 0; background: none; width: 100%; cursor: pointer; text-align: left; }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--fg); }
.nav-item.on { background: var(--navy); color: var(--navy-fg); font-weight: 600; }
.nav-item .count { margin-left: auto; background: var(--bad-solid); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 700; }
.nav-item.on .count { background: #ffffff; color: #24385e; }
.side-foot { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 6px; align-items: center; }
.main { min-width: 0; display: flex; flex-direction: column; }
.page { padding-block: 22px 40px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); max-width: 1320px; width: 100%; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -0.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.foot { text-align: right; color: var(--faint); font-size: 12px; letter-spacing: 0.04em; padding: 0 28px 18px; }
.demo-bar { background: var(--navy); color: var(--navy-fg); font-size: 12.5px; padding-block: 7px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-bar button { background: rgba(255, 255, 255, 0.14); color: inherit; border: 0; border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.topbar { display: none; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-105%); transition: transform 0.2s; height: 100%; padding-top: env(safe-area-inset-top, 0px); }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 10, 20, 0.35); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 8px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .topbar img { width: 32px; height: 32px; border-radius: 8px; }
  .page { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px 90px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .tabbar button { background: none; border: 0; padding: 8px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); cursor: pointer; position: relative; }
  .tabbar button.on { color: var(--navy-ink); font-weight: 700; }
  :root[data-theme='dark'] .tabbar button.on { color: var(--accent); }
  .tabbar svg { width: 20px; height: 20px; }
  .tabbar .dot { position: absolute; top: 4px; left: 56%; background: var(--bad-solid); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 5px; }
  .foot { padding: 0 16px 80px; text-align: center; }
  .demo-bar > span { display: none; }
  .demo-bar { padding-block: 5px; }
}

/* ── surfaces ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h2 svg, .card-head h3 svg { width: 18px; height: 18px; color: var(--muted); }
.section-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 24px 0 10px; letter-spacing: 0.02em; }
.section-title:first-child { margin-top: 0; }

/* stat tiles (System A style) */
.tile { border-radius: var(--radius); padding: 16px; border: 1px solid transparent; display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; font: inherit; color: inherit; }
button.tile { cursor: pointer; }
button.tile:hover { filter: brightness(0.98); border-color: var(--line-strong); }
.tile .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); }
.tile .ic svg { width: 20px; height: 20px; }
.tile .v { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.tile .l { font-size: 13px; font-weight: 600; }
.tile .s { font-size: 12px; opacity: 0.85; }
.t-blue { background: var(--info-soft); color: var(--info); }
.t-green { background: var(--ok-soft); color: var(--ok); }
.t-gold { background: var(--warn-soft); color: var(--warn); }
.t-pink { background: var(--pink-soft); color: var(--pink); }
.t-violet { background: var(--violet-soft); color: var(--violet); }
.t-red { background: var(--bad-soft); color: var(--bad); }
.t-teal { background: var(--teal-soft); color: var(--teal); }
.t-plain { background: var(--surface); border-color: var(--line); color: var(--fg); box-shadow: var(--shadow); }
.t-plain .ic { background: var(--surface-2); color: var(--muted); }

/* quick actions */
.qa { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; text-align: left; width: 100%; color: inherit; }
.qa:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.qa .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.qa .ic svg { width: 22px; height: 22px; }
.qa b { display: block; font-size: 15.5px; }
.qa span { color: var(--muted); font-size: 13px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; padding: 8px 14px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); cursor: pointer; white-space: nowrap; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: var(--navy-fg); }
.btn.ok { background: var(--ok-solid); border-color: var(--ok-solid); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.danger.solid { background: var(--bad-solid); border-color: var(--bad-solid); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { padding: 6px; }
.btn.grad { background: linear-gradient(90deg, #4f46e5, #7c3aed); border: 0; color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip.dark.on { background: var(--navy); border-color: var(--navy); color: var(--navy-fg); }
.chip .c { opacity: 0.7; margin-left: 4px; }
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; box-shadow: var(--shadow); }
.tab { flex: 1; display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab svg { width: 16px; height: 16px; }
.tab.on { background: var(--navy); color: var(--navy-fg); }
.tab.on.red { background: var(--bad-solid); }
.tab.on.orange { background: #d96a2b; }
.portal .tab { padding: 8px 6px; gap: 5px; font-size: 13px; }
@media (max-width: 420px) { .portal .tab svg { display: none; } }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 11px; background: var(--surface); min-height: 38px; }
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 11.5px; color: var(--faint); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search .input { padding-left: 36px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.vio { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.badge.gold { background: var(--warn-soft); color: var(--gold); border-color: transparent; }
.badge.dark { background: var(--navy); color: var(--navy-fg); border-color: transparent; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl > tbody:last-of-type > tr:last-child > td, .tbl > tbody:last-child > tr:last-child > td { border-bottom: 0; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--fg); }
.tbl th .sort-ic { margin-left: 5px; font-size: 9px; opacity: 0.35; }
.tbl th.sorted { color: var(--fg); }
.tbl th.sorted .sort-ic { opacity: 0.9; }
.tbl tr.total-row td { background: var(--surface-2); font-weight: 700; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl td.r, .tbl th.r { text-align: right; }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; border: 1px solid var(--line); }
.empty { padding: 36px 16px; text-align: center; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty svg { width: 34px; height: 34px; opacity: 0.6; }
.bar-track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }

/* list rows */
.lrow { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow.click { cursor: pointer; }
.lrow.click:hover { background: var(--surface-2); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; color: #fff; }

/* modal & drawer */
.overlay { position: fixed; inset: 0; background: rgba(15, 12, 25, 0.42); z-index: 80; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal { background: var(--surface); border-radius: 16px; width: min(640px, 100%); max-height: 100%; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.modal.wide { width: min(960px, 100%); }
.modal-head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); z-index: 1; gap: 10px; }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); }
.toast-wrap { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: var(--navy-fg); padding: 11px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.toast.err { background: var(--bad-solid); }
.toast-action { background: rgba(255, 255, 255, 0.2); color: inherit; border: 0; border-radius: 8px; padding: 3px 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.toast-action:hover { background: rgba(255, 255, 255, 0.32); }
.toast.ok { background: var(--ok); }
@media (max-width: 900px) { .toast-wrap { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* notice */
.note { border-radius: 12px; padding: 11px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--surface-2); }
.note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.note.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.note.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.note.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.note.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.note b { color: inherit; }

/* inbox */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; height: calc(100vh - 140px); min-height: 560px; overflow: hidden; }
.inbox > * { min-width: 0; min-height: 0; }
.convs { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.conv-list { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.conv:hover { background: var(--surface-2); }
.conv.on { background: var(--accent-soft); }
.conv .snip { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; background: var(--chat-bg); min-width: 0; }
.thread-head { padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.day { align-self: center; background: var(--surface); color: var(--muted); font-size: 11.5px; padding: 2px 10px; border-radius: 8px; box-shadow: var(--shadow); margin: 6px 0; }
.bubble-row { display: flex; flex-direction: column; max-width: min(78%, 520px); gap: 4px; }
.bubble-row.in { align-self: flex-start; }
.bubble-row.out { align-self: flex-end; align-items: flex-end; }
.bubble { background: var(--bubble-in); border-radius: 12px; padding: 7px 10px 6px; box-shadow: var(--shadow); position: relative; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble-row.out .bubble { background: var(--bubble-out); }
.bubble-row.bot .bubble { background: var(--bubble-bot); }
.bubble.sel { outline: 2px solid var(--accent); }
.bubble img { display: block; max-width: 240px; width: 100%; max-height: 260px; object-fit: cover; object-position: top; border-radius: 8px; margin-bottom: 4px; }
.bubble .meta { font-size: 11.5px; color: var(--faint); text-align: right; margin-top: 2px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.bubble .fwd { font-size: 11.5px; color: var(--muted); font-style: italic; margin-bottom: 3px; }
.quote { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 6px; padding: 4px 8px; font-size: 12px; color: var(--muted); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.autonote { font-size: 11.5px; border-radius: 8px; padding: 3px 8px; display: inline-flex; gap: 5px; align-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); max-width: 100%; }
.autonote svg { width: 13px; height: 13px; flex: none; }
.autonote.ok { color: var(--ok); } .autonote.bad { color: var(--bad); } .autonote.warn { color: var(--warn); }
.msg-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 40px; height: 40px; resize: none; }
.side-panel { border-left: 1px solid var(--line); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.bal-big { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .inbox { grid-template-columns: 280px minmax(0, 1fr); } .inbox .side-panel { display: none; } }
@media (max-width: 760px) {
  .inbox { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 170px); }
  .inbox.has-thread .convs { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
}

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 92px; padding: 6px; font-size: 12px; min-width: 0; }
.cal .dow { min-height: auto; font-weight: 700; color: var(--muted); text-align: center; background: var(--surface-2); }
.cal .today { background: var(--accent-soft); }
.cal .out { opacity: 0.45; }
.ev { border-radius: 6px; padding: 2px 6px; margin-top: 4px; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .cal > div { min-height: 64px; padding: 3px; } .ev { font-size: 10px; padding: 1px 3px; } }

/* portal & info */
.portal { max-width: 560px; margin: 0 auto; padding-block: 18px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; }
.hero-info { background: linear-gradient(160deg, #1b2440, #33274a); color: #fff; border-radius: 20px; padding: 34px 26px; display: grid; gap: 14px; }
.hero-info h1 { font-family: var(--font-brand); font-size: clamp(30px, 6vw, 46px); color: #e6c578; letter-spacing: 0.03em; }
.hero-info p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 60ch; font-size: 16px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--navy-fg); display: grid; place-items: center; font-weight: 700; flex: none; }
.pill-split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: var(--line); }
.chart .axis { stroke: var(--line-strong); }
.receipt-photo { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.drop { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; display: block; }
.drop:hover { border-color: var(--accent); color: var(--accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv > :nth-child(odd) { color: var(--muted); }
.kv > :nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.slot { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 10px; min-height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.slot.full { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.login { min-height: 100%; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-left, 0px)); }
.login .card { width: min(440px, 100%); }
.pin { letter-spacing: 0.5em; text-align: center; font-size: 20px; }
pre.copy { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: var(--font-mono); font-size: 12px; max-height: 320px; overflow: auto; margin: 0; }

/* links between records */
.lnk { color: var(--accent); text-decoration: none; cursor: pointer; font-weight: inherit; }
.lnk:hover { text-decoration: underline; }
b .lnk, .lnk b { font-weight: 700; }
.flash { animation: flash 2.4s ease-out 1; outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
tr.flash { outline-offset: -3px; }
@keyframes flash { 0%, 40% { background: var(--accent-soft); } 100% { background: transparent; } }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 600; }
.filter-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 4px; font-size: 15px; line-height: 1; }
.sel-bar { position: sticky; top: 8px; z-index: 5; }
.center { text-align: center; }
.store-client { border-top: 1px solid var(--line); }
.store-client-head { padding: 10px 18px 2px; }
.lrow.skipped { opacity: 0.5; }
.lrow.skipped b { text-decoration: line-through; }
.slot-free { background: transparent; color: var(--muted); cursor: pointer; align-items: center; text-align: center; font: inherit; }
.slot-free:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.slot-free svg { width: 18px; height: 18px; }
.manifest-line { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.sub-row td { background: var(--surface-2); }
.tbl.inner { background: transparent; }
.tbl.inner td { border-bottom: 1px solid var(--line); background: transparent; }
.todo-row { width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; gap: 12px; }
.todo-n { font-size: 18px; min-width: 32px; text-align: right; }
.portal-group > summary { list-style: none; cursor: pointer; }
.portal-group > summary::-webkit-details-marker { display: none; }
.portal-group[open] > summary { background: var(--surface-2); }
.store-head td { background: var(--surface-2); border-top: 2px solid var(--line-strong); }
.receipt-row { display: grid; grid-template-columns: 56px 1fr 1fr 1.4fr; gap: 10px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt-row .receipt-store { grid-column: 2 / -1; margin-bottom: -4px; }
.receipt-drop { grid-row: span 3; width: 56px; height: 72px; border: 2px dashed var(--line-strong); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; color: var(--muted); }
.receipt-drop img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .receipt-row { grid-template-columns: 56px 1fr 1fr; } }

/* charts */
.donut { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut svg { flex: none; }
.donut-v { fill: var(--fg) !important; font-weight: 800; }
.donut-l { fill: var(--muted); font-size: 10px !important; }
.donut-legend { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.donut-row { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; border: 0; background: none; font: inherit; color: inherit; text-align: left; font-size: 13px; width: 100%; }
button.donut-row { cursor: pointer; }
.donut-row.on, button.donut-row:hover { background: var(--surface-2); }
.donut-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; border: 2px solid; }
.col-g:hover path { filter: brightness(1.1); }

/* ── shared bits added in the Oct 29 round ── */
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.link-btn.strong { font-weight: 700; color: var(--fg); }
.link-btn.strong:hover { color: var(--accent); }
.link-btn.warn { color: var(--warn); font-weight: 600; }
.link-btn svg { width: 13px; height: 13px; vertical-align: -2px; }
.span2 { grid-column: span 2; }
.btn.lg { padding: 11px 22px; font-size: 15px; }
.sw-sq { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-strong); display: inline-block; }
.ev { display: block; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
.stars { color: #c9952b; letter-spacing: 1px; }
.stars-pick { display: flex; gap: 4px; }
.stars-pick button { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.stars-pick button.on { color: #c9952b; }

/* alerts */
.alert-row { padding: 8px 10px 8px 18px; gap: 6px; }
.alert-title { flex: 1; min-width: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; font-weight: 600; }
.alert-title:hover > span:first-child { color: var(--accent); text-decoration: underline; }
.alert-title .tiny { font-weight: 400; }

/* weight & scale */
.weight-in { display: flex; gap: 6px; align-items: center; }
.weight-in .input { width: 88px; }
.scale-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.weigh { display: flex; flex-direction: column; gap: 10px; }
.weigh-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.edit-photo { width: 104px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--muted); }
.edit-photo img, .edit-photo svg { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.edit-photo svg { padding: 34px; border-style: dashed; }
.prep-grid { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.prep-item { padding: 4px 0; border-bottom: 1px solid var(--line); }
.prep-item:last-child { border-bottom: 0; }

/* approvals */
.approval { overflow: hidden; }
.approval-kind { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; padding: 12px 18px; font-size: 17px; font-weight: 800; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.approval.k-info .approval-kind { background: var(--info-soft); color: var(--info); }
.approval.k-warn .approval-kind { background: var(--warn-soft); color: var(--warn); }
.approval.k-bad .approval-kind { background: var(--bad-soft); color: var(--bad); }
.approval.k-vio .approval-kind { background: var(--violet-soft); color: var(--violet); }
.approval-kind .small { font-weight: 500; }
.approval-who { font-size: 20px; font-weight: 800; }
.approval-money { text-align: right; display: flex; flex-direction: column; }
.approval-money span { font-size: 12px; color: var(--muted); }
.approval-money b { font-size: 26px; font-weight: 800; }
.approval-what { font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.approval-items { display: flex; flex-direction: column; gap: 8px; }
.approval-actions { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

/* profit and loss */
.pl-line { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pl-line.click { cursor: pointer; }
.pl-line.click:hover { background: var(--surface-2); }
.pl-line.strong { font-weight: 700; }
.pl-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.pl-total b { font-size: 24px; }

/* schedule */
.tbl.sched td, .tbl.sched th { vertical-align: top; min-width: 96px; }
.tbl.sched th.today, .tbl.sched td.today { background: var(--accent-soft); }
.shift { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--teal); background: var(--teal-soft); color: var(--fg); border-radius: 6px; padding: 4px 6px; margin-bottom: 4px; font: inherit; font-size: 12px; cursor: pointer; }
.shift.paid { border-left-color: var(--ok); }
.shift span { color: var(--muted); }
.shift-add { border: 1px dashed var(--line-strong); background: none; color: var(--muted); border-radius: 6px; width: 100%; padding: 2px; cursor: pointer; }
.shift-add:hover { color: var(--accent); border-color: var(--accent); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-edit { display: flex; flex-direction: column; gap: 6px; }
.photo-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* ── public page and the customer link: EXAA brand manual, Light Pink theme (day) and core Onyx + gold (night).
   Day: pale blush ground, blush/petal panels, berry text and buttons, peony for large headings, metallic gold details
   (bronze when gold is small text). Night: onyx ground, ivory text, champagne secondary, petal headings, gold buttons
   with onyx letters (onyx on gold foil). Cormorant Garamond for headlines and names; Jost for text, prices, buttons. ── */
.pub, .portal-page {
  --pub-display: 'Playfair Display', Georgia, 'Times New Roman', serif; /* titles (owner, Nov 13): bolder and easier to read than Cormorant Garamond */
  --pub-sans: 'Jost', 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --b-onyx: #0E0D0C; --b-ivory: #F6F1E7; --b-champagne: #E9DCC0; --b-bronze: #8A6420; --b-gold: #C9A14A;
  --b-paleblush: #FFF7F9; --b-blush: #F8DDE3; --b-petal: #F4C6D3; --b-peony: #C94F7C; --b-berry: #6E2E40;
  /* rose: peony deepened 3% so white letters on it pass AA (4.5:1) — the primary pink of buttons and bars (owner, Nov 11: lighter than berry) */
  --b-rose: #C44B78;
  --pub-paper: var(--b-paleblush); --pub-tissue: var(--b-blush); --pub-petal: var(--b-petal); --pub-ink: var(--b-berry); --pub-soft: #7A4A58;
  --pub-plum: var(--b-berry); --pub-head: var(--b-peony); --pub-peony: var(--b-peony); --pub-gold: var(--b-gold); --pub-green: #157046; --pub-chat: #efe7dd;
  --pub-white: #ffffff; --pub-on-plum: #ffffff; --pub-btn: var(--b-rose); --pub-btn-ink: #ffffff; --pub-gold-ink: var(--b-bronze); --pub-gold-soft: var(--b-champagne);
  --pub-line: color-mix(in srgb, var(--b-gold) 38%, transparent); --pub-shadow: rgba(110, 46, 64, 0.16);
  --pub-pattern: var(--pat-peony, none);
  /* pink and gold in day and night alike: these pages never take the dark theme (owner, Nov 11) */
  color-scheme: light;
  --gold-ink-metal: linear-gradient(118deg, #5e400b 0%, #8d6418 30%, #b8862c 48%, #7a5512 66%, #a37a2a 100%);
  --gold-champagne: linear-gradient(135deg, #fbf4e3 0%, #f2e2bb 40%, #fdf8ec 58%, #eedcae 100%);
  --ok: #2a7442; --ok-soft: #e8f6ec; --ok-solid: #2c8248; --warn: #8f5809; --warn-soft: #fdf3e2; --bad: #c0362c; --bad-soft: #fcebea; --bad-solid: #c0362c;
  --info: #2a62a8; --info-soft: #eaf1fb; --violet: #7a3be0; --violet-soft: #f3edfd; --teal: #1a7a6b; --teal-soft: #e5f6f2; --pink-soft: #fcebf0; --pink: #b8325f;
  --bubble-in: #ffffff; --bubble-out: #e3f3e6; --bubble-bot: #eef0fb; --chat-bg: #f5f0ea; --navy-ink: #24385e;
}
html:has(.pub), html:has(.portal-page), body:has(.pub), body:has(.portal-page) { background: #FFF7F9; color-scheme: light; }
.pub {
  background: var(--pub-paper); color: var(--pub-ink); min-height: 100%; font-family: var(--pub-sans); font-size: 16.5px; line-height: 1.6;
}
.pub h1, .pub h2, .pub h3 { font-family: var(--pub-display); color: var(--pub-head); font-weight: 500; letter-spacing: -0.005em; text-wrap: balance; }
.pub h1 { color: var(--b-rose); }
.pub h3 { color: var(--pub-plum); font-weight: 600; }
.pub h2 { font-size: clamp(32px, 5vw, 46px); line-height: 1.05; margin-bottom: 14px; }
.pub a { color: var(--pub-plum); }
.pub section, .pub-top, .pub-tags, .pub-foot { max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.pub section { padding-top: 56px; padding-bottom: 8px; }
.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.pub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--pub-display); font-weight: 800; font-size: 20px; color: var(--pub-ink) !important; }
.pub-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.pub-top nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pub-top nav a { text-decoration: none; color: var(--pub-ink); font-weight: 600; font-size: 15px; }
.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--pub-plum); color: var(--pub-on-plum) !important; font-weight: 700; text-decoration: none; border: 2px solid var(--pub-plum); }
.pub-btn.ghost { background: transparent; color: var(--pub-plum) !important; }
.pub-btn.small { padding: 7px 16px; font-size: 14px; }
.pub-btn:hover { filter: brightness(1.08); }
.pub-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 28px !important; }
.pub-hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 0.98; font-weight: 800; margin-bottom: 18px; }
.pub-hero p { color: var(--pub-soft); font-size: 18px; max-width: 54ch; margin: 0 0 24px; }
.pub-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.pub-phone { justify-self: center; width: min(330px, 100%); border-radius: 34px; background: #24121d; padding: 12px; box-shadow: 0 30px 60px -20px rgba(122, 23, 71, 0.45); transform: rotate(2deg); }
.pub-phone-bar { background: #075e54; color: #fff; border-radius: 24px 24px 0 0; padding: 14px 18px; font-weight: 700; font-size: 15px; }
.pub-chat { background: var(--pub-chat); border-radius: 0 0 24px 24px; padding: 14px 12px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.pub-msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 14px; line-height: 1.4; background: var(--pub-white); color: var(--pub-ink); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.pub-msg.out { align-self: flex-end; background: #d9fdd3; color: #1b2a1f; }
.pub-msg.totals { display: flex; flex-direction: column; gap: 2px; }
.pub-photo { height: 96px; border-radius: 8px; margin-bottom: 6px; display: grid; place-items: center; font-size: 54px; background: linear-gradient(135deg, #ffd0e1, #f6b5cc); }
.pub-msg { animation: pubIn 0.45s ease-out both; }
.pub-msg.d1 { animation-delay: 0.2s; } .pub-msg.d2 { animation-delay: 1.1s; } .pub-msg.d3 { animation-delay: 1.9s; } .pub-msg.d4 { animation-delay: 2.9s; }
@keyframes pubIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.pub-tags { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding-top: 44px; }
.pub-tag { position: relative; display: inline-block; padding: 9px 18px 9px 30px; background: var(--pub-gold); color: #2b1a05; font-weight: 800; font-family: var(--pub-display); font-size: 18px; border-radius: 6px 14px 14px 6px; transform: rotate(var(--r)); }
.pub-tag::before { content: ''; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--pub-paper); }
.pub-week { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 28px; align-items: start; }
.pub-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pub-day { background: var(--pub-tissue); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.pub-day span { display: inline-block; color: var(--pub-soft); font-size: 14px; }
.pub-day span::first-letter { text-transform: uppercase; }
.pub-day b { font-family: var(--pub-display); font-size: 21px; }
.pub-day small { color: var(--pub-soft); }
.pub-note { color: var(--pub-soft); font-size: 14px; margin-top: 10px; }
.pub-ticket { background: var(--pub-plum); color: var(--pub-on-plum); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.pub-ticket::after { content: ''; position: absolute; right: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--pub-paper); }
.pub-ticket b { font-family: var(--pub-display); font-size: 26px; line-height: 1.1; }
.pub-ticket small { opacity: 0.9; }
.pub-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pub-steps li { counter-increment: s; background: var(--pub-white); border: 2px solid var(--pub-tissue); border-radius: 16px; padding: 16px; font-size: 15px; color: var(--pub-soft); }
.pub-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pub-gold); color: #2b1a05; font-weight: 800; margin-bottom: 10px; font-family: var(--pub-display); }
.pub-steps li b { display: block; color: var(--pub-ink); margin-bottom: 4px; }
.pub-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pub-calc p { color: var(--pub-soft); max-width: 46ch; }
.pub-pricetag { display: flex; flex-direction: column; gap: 4px; background: var(--pub-gold); color: #2b1a05; border-radius: 10px 26px 26px 10px; padding: 16px 22px; max-width: 360px; margin: 16px 0; position: relative; }
.pub-pricetag span:first-child { font-weight: 700; font-size: 14px; }
.pub-price-in { display: flex; align-items: baseline; font-family: var(--pub-display); font-size: 44px; font-weight: 800; }
.pub-price-in input { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; outline: none; padding: 0 0 0 4px; }
.pub-price-in input:focus-visible { outline: 2px dashed rgba(43, 26, 5, 0.5); border-radius: 6px; }
.pub-calc-out { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 22px; max-width: 460px; }
.pub-calc-out div { display: flex; flex-direction: column; }
.pub-calc-out span { color: var(--pub-soft); font-size: 13px; }
.pub-calc-out b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pub-calc-out .sum b { color: var(--pub-plum); font-size: 26px; }
.pub-tiers { background: var(--pub-tissue); border-radius: 18px; padding: 22px; }
.pub-tiers h3 { font-size: 20px; margin-bottom: 10px; }
.pub-tiers table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pub-tiers td { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--pub-plum) 18%, transparent); }
.pub-tiers td:last-child { text-align: right; font-weight: 700; }
.pub-ship { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; }
.pub-ship ul { padding-left: 20px; color: var(--pub-soft); display: grid; gap: 6px; }
.pub-box { width: 200px; height: 170px; background: #c89b6d; border-radius: 8px; position: relative; box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.08); display: grid; place-items: center; }
.pub-box::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; margin-left: -13px; background: rgba(255, 255, 255, 0.35); }
.pub-box span { position: relative; background: var(--pub-white); color: var(--pub-ink); font-weight: 800; padding: 6px 12px; border-radius: 6px; font-family: var(--pub-display); font-size: 22px; transform: rotate(-4deg); }
.pub-tiktok { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center; }
.pub-tiktok p { color: var(--pub-soft); }
.pub-tt-fallback { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: #24121d; color: #fff6f9 !important; text-decoration: none; }
.pub-tt-logo { width: 46px; height: 46px; border-radius: 12px; background: #000; color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: -3px -3px 0 #25f4ee, 3px 3px 0 #fe2c55; flex: none; }
.pub-review-list { columns: 3 260px; column-gap: 16px; }
.pub-review { break-inside: avoid; margin: 0 0 16px; background: var(--pub-white); border-radius: 4px 18px 18px 18px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(43, 20, 36, 0.12); }
.pub-review blockquote { margin: 0 0 10px; font-size: 16px; }
.pub-review figcaption { font-size: 14px; color: var(--pub-soft); font-weight: 600; }
.pub-review em { font-weight: 400; }
.pub-stars { color: var(--pub-gold); letter-spacing: 1px; }
.pub-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pub-photo-grid figure { margin: 0; }
.pub-photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.pub-photo-grid figcaption { font-size: 13px; color: var(--pub-soft); margin-top: 4px; }
.pub-faq details { border-bottom: 1px solid color-mix(in srgb, var(--pub-plum) 20%, transparent); padding: 14px 0; max-width: 760px; }
.pub-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.pub-faq p { color: var(--pub-soft); margin: 8px 0 0; }
.pub-foot { display: flex; align-items: center; gap: 12px; padding-top: 48px; padding-bottom: 40px; color: var(--pub-soft); font-size: 14px; flex-wrap: wrap; }
.pub-foot img { width: 34px; height: 34px; border-radius: 50%; }
.pub-foot a { margin-left: auto; }
.pub-loading { min-height: 100vh; display: grid; place-items: center; background: #fff6f9; }
.pub-loading img { width: 72px; border-radius: 50%; }
@media (max-width: 900px) {
  .pub-hero, .pub-week, .pub-prices, .pub-tiktok { grid-template-columns: minmax(0, 1fr); }
  .pub-steps ol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pub-phone { transform: none; }
}
@media (max-width: 600px) {
  .pub-steps ol { grid-template-columns: minmax(0, 1fr); }
  .pub-ship { grid-template-columns: minmax(0, 1fr); }
  .pub-calc-out { grid-template-columns: repeat(2, auto); }
  .pub-top nav a:not(.pub-btn) { display: none; }
}
.pub-find-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin-top: 16px; }
.pub-find { margin: 0; background: var(--pub-white); padding: 8px 8px 12px; border-radius: 6px; box-shadow: 0 2px 6px rgba(43, 20, 36, 0.14); transform: rotate(var(--r)); }
.pub-find img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; display: block; }
.pub-find figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; font-size: 14px; }
.pub-find figcaption b { color: var(--pub-plum); font-family: var(--pub-display); font-size: 19px; }
.pub-find figcaption small { color: var(--pub-soft); }
@media (prefers-reduced-motion: reduce) { .pub-msg { animation: none; } }
.tbl tr.hl td { background: var(--accent-soft); }
.bulk-bar { position: sticky; top: 0; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); }

/* gold accents on the public page */
.pub h2::after { content: ''; display: block; width: 56px; height: 6px; border-radius: 3px; background: var(--pub-gold); margin-top: 10px; }
.pub-brand span { border-bottom: 3px solid var(--pub-gold); }
.pub-phone { box-shadow: 16px 16px 0 0 var(--pub-gold), 0 30px 60px -20px rgba(122, 23, 71, 0.45); }
.pub-btn.ghost { border-color: var(--pub-gold); }
.pub-day { border-top: 4px solid var(--pub-gold); }
.pub-ticket { outline: 2px dashed var(--pub-gold); outline-offset: -9px; }
.pub-tiers { background: var(--pub-gold-soft); }
.pub-tiers h3, .pub-tiers td:last-child { color: var(--pub-gold-ink); }
.pub-tiers td { border-bottom-color: color-mix(in srgb, var(--pub-gold) 35%, transparent); }
.pub-steps li { border-color: var(--pub-gold-soft); }
.pub-faq summary::marker { color: var(--pub-gold); }
.pub-faq details[open] summary { color: var(--pub-gold-ink); }
.pub-foot { border-top: 3px solid var(--pub-gold); margin-top: 40px; }
.pub-review blockquote::before { content: "\201C"; display: block; font-family: var(--pub-display); font-size: 44px; line-height: 0.6; color: var(--pub-gold); margin-bottom: 4px; }
.pub-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; max-width: 520px; }
.pub-compare > div { display: flex; flex-direction: column; gap: 3px; border-radius: 14px; padding: 14px 16px; }
.pub-compare span { font-size: 13px; color: var(--pub-soft); font-weight: 600; }
.pub-compare b { font-family: var(--pub-display); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pub-compare small { font-size: 13px; color: var(--pub-soft); }
.pub-compare-us { background: var(--pub-white); border: 2px solid var(--pub-gold); }
.pub-compare-us b { color: var(--pub-plum); }
.pub-compare-us select { margin-top: 6px; font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--pub-gold) 60%, transparent); background: var(--pub-paper); color: var(--pub-ink); max-width: 100%; }
.pub-compare-ec { background: var(--pub-tissue); }
.pub-compare-ec b { color: var(--pub-soft); text-decoration: line-through; text-decoration-color: var(--pub-plum); text-decoration-thickness: 2px; }
.pub-compare-ec small { color: var(--pub-green); font-weight: 700; font-size: 14px; }
@media (max-width: 600px) { .pub-compare { grid-template-columns: minmax(0, 1fr); } .pub-phone { box-shadow: 10px 10px 0 0 var(--pub-gold), 0 30px 60px -20px rgba(122, 23, 71, 0.45); } }
/* integrations */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.integ-row { align-items: center; }
.integ-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: 13px; }
.integ-n.ok { background: var(--ok-soft); color: var(--ok); }
.integ-n svg { width: 16px; height: 16px; }
.guide { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: 14px; line-height: 1.5; }
.guide li::marker { font-weight: 800; color: var(--accent); }
.guide code { font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.guide pre { margin: 6px 0; }
.integ-opt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.todo-group { padding: 10px 18px 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
/* approval choices with their money */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.opt-card { display: flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--surface); }
.opt-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt-lines { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: 13px; }
.opt-line { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.opt-line.strong { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-size: 14px; font-weight: 700; }
.opt-line .muted { color: var(--muted); }
.pub-rules ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; max-width: 980px; }
.pub-rules li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid color-mix(in srgb, var(--pub-gold) 30%, transparent); color: var(--pub-soft); }
.pub-rules li::before { content: '✓'; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--pub-gold-soft); color: var(--pub-gold-ink); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.pub-rules li b { color: var(--pub-ink); }
@media (max-width: 700px) { .pub-rules ul { grid-template-columns: minmax(0, 1fr); } }
/* customer link: code and balance up front */
.portal-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-code, .portal-bal { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.portal-code { background: var(--surface); border: 2px solid #c9952b; }
.portal-code span, .portal-bal span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.portal-code b { font-size: 32px; letter-spacing: 0.04em; line-height: 1.1; }
.portal-code small, .portal-bal small { font-size: 12.5px; color: var(--muted); }
.portal-bal b { font-size: 28px; line-height: 1.15; }
.portal-bal.favor { background: var(--ok-soft); }
.portal-bal.favor b, .portal-bal.favor span { color: var(--ok); }
.portal-bal.owe { background: var(--bad-soft); }
.portal-bal.owe b, .portal-bal.owe span { color: var(--bad); }
.portal-bal.zero { background: var(--surface-2); }
@media (max-width: 480px) { .portal-hero { grid-template-columns: minmax(0, 1fr); } }
.person-card { display: flex; flex-direction: column; gap: 10px; }
.person-card .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; flex: none; }
.person-card .tiny svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.bank-actions .btn { flex: 1 1 auto; justify-content: center; }

/* v11 · store closing: receipt against what was taken */
.close-store { border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.close-store .receipt-row { border-bottom: 0; grid-template-columns: 56px 1fr 1fr 1.4fr 0.9fr; }
.rc-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.rc-status.ok { background: var(--ok-soft); color: var(--ok); }
.rc-status.bad { background: var(--bad-soft); color: var(--bad); }
.rc-status svg { width: 15px; height: 15px; vertical-align: -3px; }
.rc-lines { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; }
.rc-cust-head { font-size: 12.5px; font-weight: 700; padding: 6px 0 2px; }
.rc-line { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 8px; font-size: 13.5px; }
.rc-line.on { background: var(--ok-soft); }
.rc-line .check { min-width: 0; }
.rc-code { width: 96px; min-height: 30px; padding: 2px 8px; }
.rc-line.extra .input { min-height: 32px; }
.rc-line.extra .input.grow { flex: 1; }
.modal-foot .grow { flex: 1; }
@media (max-width: 640px) {
  .close-store .receipt-row { grid-template-columns: 56px 1fr 1fr; }
  .close-store .receipt-row > .field:nth-last-child(-n + 2) { grid-column: 2 / -1; }
  .modal-foot .grow { flex-basis: 100%; }
  .rc-line { flex-wrap: wrap; }
  .rc-line .check { flex-basis: 100%; }
}

/* v11 · package data for the guide, transit history, carton plan */
.guide-data { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.guide-data dt { color: var(--muted); }
.guide-data dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.guide-data .missing { color: var(--warn); font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 10px 20px; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 17px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.timeline .when { color: var(--muted); font-size: 12px; }
.timeline .tl-guide { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); border-radius: 6px; padding: 0 6px; margin-left: 4px; }
.plan-card { border: 1px solid var(--line); border-left: 4px solid var(--warn); }
.plan-card.done { border-left-color: var(--ok); }
.plan-rows { display: flex; flex-direction: column; gap: 6px; }
.plan-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.keep-one { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--gold-soft, var(--surface-2)); border: 1px dashed var(--gold); }
.portal-history { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.portal-history summary { cursor: pointer; color: var(--accent); font-weight: 600; }
@media (max-width: 640px) {
  .tr-row { flex-wrap: wrap; }
  .tr-row > .grow { flex: 1 1 calc(100% - 40px); min-width: 0; }
  .tr-row > .row { margin-left: 28px; }
}

/* v12 · receipts read from the photo */
.rc-reading { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.rc-reading svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.rc-reading.ok { background: var(--info-soft); color: var(--info); }
.rc-reading.warn { background: var(--warn-soft); color: var(--warn); }
.rc-reading .block { display: block; }
.rc-printed { display: block; font-size: 12px; color: var(--muted); }
.rc-printed.miss { color: var(--bad); font-weight: 600; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin 0.8s linear infinite; flex: none; margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.rc-table td, .rc-table th { font-size: 13px; }
.rc-table .line-miss { color: var(--bad); }

/* back to the last page */
.back-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 0; margin: 0 0 4px; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.back-btn:hover { color: var(--navy-ink); }
:root[data-theme='dark'] .back-btn:hover { color: var(--accent); }
.back-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.back-btn svg { width: 16px; height: 16px; }
.back-btn.compact { margin: 0; padding: 8px; border-radius: 10px; color: var(--ink, inherit); }
.back-btn.compact svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .page-head .back-btn { display: none; } }

/* abono: who sent it → which account */
.parties { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.parties .arrow { color: var(--muted); }

/* swipe a chat message to reply */
.bubble { position: relative; touch-action: pan-y; transition: transform 0.15s ease-out; }
.bubble.dragging { transition: none; }
.swipe-hint { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .bubble { transition: none; } }

/* file drop target (statements) */
.drop-file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.drop-file:hover, .drop-file:focus-within { border-color: var(--navy); }
.drop-file svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.drop-file.busy { cursor: progress; }

/* segmented choice (where a receipt item goes) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg, #f3f4f7); border: 1px solid var(--line); }
.seg-btn { border: 0; background: none; padding: 8px 6px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-btn.on { background: var(--surface); color: var(--navy-ink); box-shadow: 0 1px 2px rgba(10, 20, 40, 0.12); }
:root[data-theme='dark'] .seg-btn.on { color: var(--accent); }
.seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 520px) { .seg { grid-template-columns: 1fr; } }
.pick-list { display: grid; gap: 2px; margin-top: 6px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.pick-list .lrow { text-align: left; background: none; border: 0; width: 100%; }

/* Artículos by month: weeks and shopping days */
.week-card { padding: 0; overflow: hidden; }
.week-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; background: var(--surface-2, var(--surface)); border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; color: inherit; flex-wrap: wrap; }
.week-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.day-block { padding: 10px 16px 12px; border-bottom: 1px solid var(--line); }
.day-block:last-child { border-bottom: 0; }
.day-head { display: flex; gap: 12px; align-items: flex-start; }
.month-row { padding: 5px 0; gap: 10px; }
.month-row.warn { background: color-mix(in srgb, var(--warn, #c98a00) 8%, transparent); border-radius: 8px; padding-inline: 6px; }
.chip.static { cursor: default; }
.note .block { display: block; }

/* receipt photos: tap to see them large */
.photo-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.photo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.photo-zoom { display: block; width: 100%; height: auto; border-radius: 8px; }

/* Inicio: balance por cliente */
.bal-grid { gap: 0 24px; padding: 4px 16px 12px; }
.bal-head { padding: 10px 0 6px; align-items: center; gap: 8px; flex-wrap: wrap; }
.bal-row { width: 100%; background: none; border: 0; padding: 6px 0; text-align: left; font: inherit; color: inherit; gap: 10px; }
.bal-row .block { display: block; }
.bal-chart { display: grid; gap: 4px; max-height: 460px; overflow: auto; padding-right: 4px; }
.bal-bar { display: grid; grid-template-columns: 130px 1fr 92px; align-items: center; gap: 10px; background: none; border: 0; padding: 3px 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.bal-bar:hover .bal-name { color: var(--navy-ink); }
.bal-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-track { display: grid; grid-template-columns: 1fr 1fr; height: 14px; }
.bal-half { display: flex; height: 100%; }
.bal-half.neg { justify-content: flex-end; border-right: 1px solid var(--line-strong, var(--line)); }
.bal-half i { display: block; height: 100%; border-radius: 3px; }
.bal-half.neg i { background: var(--bad); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bal-half.pos i { background: var(--ok); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bal-v { text-align: right; }
@media (max-width: 600px) { .bal-bar { grid-template-columns: 90px 1fr 76px; } }

/* a missing or damaged item inside its bag card */
.bag-problem { border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, transparent); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }

/* ---------- Inicio: launcher of every section ---------- */
.launcher { gap: 22px; }
.launch-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.launch-group-name { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.launch-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.launch-tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.launch-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.launch-tile.main { border-color: var(--navy); background: var(--navy); color: var(--navy-fg); }
.launch-tile.main .muted { color: rgba(255, 255, 255, 0.75); }
.launch-tile.main .launch-ic { background: rgba(255, 255, 255, 0.14); color: var(--navy-fg); }
.launch-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy-ink); }
:root[data-theme='dark'] .launch-ic { color: var(--accent); }
.launch-ic svg { width: 21px; height: 21px; }
.launch-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.launch-txt b { font-size: 15px; }
.launch-tile .count { position: absolute; top: 10px; right: 10px; background: var(--bad-solid); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 700; }
@media (max-width: 560px) { .launch-grid { grid-template-columns: 1fr 1fr; } .launch-tile { flex-direction: column; align-items: flex-start; } .launch-txt .muted { display: none; } }

/* ---------- legal documents ---------- */
.legal-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(20, 12, 18, 0.55); display: grid; justify-items: center; overflow-y: auto; padding: 24px 16px; }
.legal-doc { background: #fffdf9; color: #2a2024; max-width: 760px; width: 100%; border-radius: 16px; padding: 28px clamp(18px, 4vw, 44px) 36px; font-family: Georgia, 'Iowan Old Style', serif; font-size: 15.5px; line-height: 1.65; align-self: start; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5); }
.legal-doc header { display: flex; gap: 8px; align-items: flex-start; border-bottom: 2px solid transparent; border-image: var(--gold-metal) 1; padding-bottom: 12px; margin-bottom: 14px; position: sticky; top: -28px; background: #fffdf9; padding-top: 10px; }
.legal-doc h1 { font-size: 24px; line-height: 1.2; margin: 0 0 4px; font-family: var(--font); font-weight: 800; }
.legal-doc h2 { font-size: 16px; margin: 20px 0 6px; font-family: var(--font); font-weight: 750; }
.legal-doc p { margin: 0 0 8px; }
.legal-doc small { color: #7a6a70; font-family: var(--font); }
.legal-intro { font-size: 16px; }
.legal-btn { border: 1px solid #e7dcd0; background: #fff; border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: #2a2024; font-size: 20px; }
.legal-doc footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid #eadfd5; display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font); }
@media print { .legal-overlay { position: static; background: none; padding: 0; } .legal-btn { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.portal-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; padding: 18px 0 8px; }

/* ---------- real gold on every gold accent (app and public page) ---------- */
:root[data-theme='dark'] { --gold-ink-metal: var(--gold-metal); --gold-champagne: linear-gradient(135deg, #3a2c14, #5a4520 45%, #3a2c14 60%, #4d3a19); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --gold-ink-metal: var(--gold-metal); --gold-champagne: linear-gradient(135deg, #3a2c14, #5a4520 45%, #3a2c14 60%, #4d3a19); } }
.gold, .brand, .t-gold .v, .hero-info h1, .pub-stars, .pub-review blockquote::before, .pub-tiers h3, .pub-tiers td:last-child, .pub-sub {
  background: var(--gold-ink-metal); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.brand { background-image: var(--gold-metal); }
.t-gold { background: var(--gold-champagne); color: #6b4a10; border-color: rgba(176, 132, 44, 0.35); }
:root[data-theme='dark'] .t-gold { color: #f1d98f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .t-gold { color: #f1d98f; } }
.t-gold .ic { background: var(--gold-metal); color: #3a2706; box-shadow: var(--gold-edge); }
.badge.gold { background: var(--gold-metal); color: #3a2706; -webkit-text-fill-color: #3a2706; box-shadow: var(--gold-edge); }
.keep-one { border: 1px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--gold-metal) border-box; }
.portal-code { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gold-metal) border-box; }

/* public page: every gold surface is metal, with an edge highlight */
.pub-tag, .pub-steps li::before, .pub-pricetag, .pub h2::after, .pub-rules li::before, .pub-pick-item.on .pub-pick-ph {
  background: var(--gold-metal); background-size: 220% 100%; background-position: 0% 0; color: #2b1a05; box-shadow: var(--gold-edge);
}
.pub-pricetag { text-shadow: 0 1px 0 rgba(255, 245, 210, 0.55); }
.pub-tag { animation: goldSheen 1.6s ease-out calc(0.35s + var(--i, 0) * 0.08s) both; }
@keyframes goldSheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .pub-tag { animation: none; } }
.pub-brand span { border-bottom: 0; padding-bottom: 3px; background: var(--gold-metal) left bottom / 100% 3px no-repeat; }
.pub-btn.ghost { border: 2px solid transparent; background: linear-gradient(var(--pub-paper), var(--pub-paper)) padding-box, var(--gold-metal) border-box; }
.pub-day { border-top: 0; background: var(--gold-metal) left top / 100% 4px no-repeat, var(--pub-tissue); padding-top: 16px; }
.pub-ticket { outline: 0; box-shadow: inset 0 0 0 7px var(--pub-plum), inset 0 0 0 9px #d4a744; }
.pub-tiers { background: var(--gold-champagne); }
.pub-tiers td { border-bottom-color: rgba(176, 132, 44, 0.35); }
.pub-steps li { border-color: rgba(212, 167, 68, 0.35); }
.pub-faq summary::marker { color: #b8862c; }
.pub-faq details[open] summary { color: var(--pub-plum); }
.pub-foot { border-top: 0; background: var(--gold-metal) left top / 100% 3px no-repeat; }
.pub-compare-us { border: 2px solid transparent; background: linear-gradient(var(--pub-white), var(--pub-white)) padding-box, var(--gold-metal) border-box; }
.pub-rules li { border-bottom-color: rgba(176, 132, 44, 0.3); }
.pub-rules li::before { color: #2b1a05; }
.pub-phone { position: relative; isolation: isolate; box-shadow: 0 30px 60px -20px rgba(122, 23, 71, 0.45); }
.pub-phone::before { content: ''; position: absolute; inset: 0; transform: translate(16px, 16px); border-radius: 34px; background: var(--gold-metal); box-shadow: var(--gold-edge); z-index: -1; }
@media (max-width: 600px) { .pub-phone { box-shadow: 0 30px 60px -20px rgba(122, 23, 71, 0.45); } .pub-phone::before { transform: translate(10px, 10px); } }

/* public page: hook, welcome photos, groups, price picker, FAQ search, footer */
.pub-hero h1 { margin-bottom: 6px; }
.pub-sub { font-family: var(--pub-display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: 0.01em; margin: 0 0 18px !important; max-width: none !important; background-image: var(--gold-metal); }
.pub-hero-art { position: relative; display: grid; justify-items: center; }
.pub-hero.with-photos { grid-template-columns: 1fr 1fr; }
.pub-hero-photos { position: absolute; inset: 0; pointer-events: none; }
.pub-polaroid { position: absolute; margin: 0; width: 46%; max-width: 210px; background: #fffdf8; padding: 8px 8px 10px; border-radius: 4px; box-shadow: 0 10px 26px -10px rgba(43, 20, 36, 0.45); }
.pub-polaroid img, .pub-photo-slot { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; display: block; }
.pub-polaroid figcaption { font-size: 12.5px; color: #6d4a5e; padding-top: 6px; text-align: center; }
.pub-polaroid::before { content: ''; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: var(--gold-metal); opacity: 0.85; transform: rotate(-3deg); box-shadow: var(--gold-edge); }
.pub-polaroid.p0 { left: -6%; top: 6%; transform: rotate(-7deg); }
.pub-polaroid.p1 { right: -6%; bottom: 4%; transform: rotate(6deg); }
.pub-polaroid.p2 { right: 2%; top: -4%; transform: rotate(4deg); width: 36%; }
.pub-photo-slot { display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, #fff1f6 0 10px, #ffe6ef 10px 20px); color: #8a1c52; font-size: 13px; font-weight: 700; padding: 8px; }
.pub-photo-slot small { font-weight: 500; color: #6d4a5e; }
.pub-hero-art .pub-phone { z-index: 1; }
@media (max-width: 900px) { .pub-hero.with-photos { grid-template-columns: minmax(0, 1fr); } .pub-hero-photos { position: static; display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; } .pub-polaroid { position: relative; inset: auto !important; width: 40%; } .pub-polaroid.p2 { display: none; } }
.pub-groups { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: center; }
.pub-groups-text p { color: var(--pub-soft); max-width: 52ch; }
.pub-group-shot { justify-self: center; width: min(340px, 100%); }
.pub-group-shot > img { width: 100%; border-radius: 22px; box-shadow: 0 24px 50px -20px rgba(43, 20, 36, 0.45); border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-metal) border-box; }
.pub-group-mock { border-radius: 26px; overflow: hidden; background: #24121d; padding: 10px; box-shadow: 0 24px 50px -20px rgba(43, 20, 36, 0.45); }
.pub-group-mock .pub-phone-bar small { opacity: 0.7; font-weight: 500; margin-left: 6px; }
.pub-group-feed { background: var(--pub-chat); border-radius: 0 0 18px 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pub-group-post { background: var(--pub-white); border-radius: 10px; padding: 6px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.pub-group-post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.pub-group-post.empty { color: var(--pub-soft); font-style: italic; padding: 10px; }
@media (max-width: 900px) { .pub-groups { grid-template-columns: minmax(0, 1fr); } }
.pub-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.pub-pick-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--pub-plum) 22%, transparent); background: var(--pub-white); color: var(--pub-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pub-pick-item img, .pub-pick-ph { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.pub-pick-ph { display: grid; place-items: center; background: var(--pub-tissue); color: var(--pub-plum); font-weight: 800; }
.pub-pick-item.on { border-color: #b8862c; box-shadow: 0 0 0 3px rgba(212, 167, 68, 0.28); }
.pub-pick-item:focus-visible { outline: 2px solid var(--pub-plum); outline-offset: 2px; }
.pub-pricetag.static .pub-price-in { font-size: 40px; }
.pub-faq-search { display: block; max-width: 760px; margin: 4px 0 8px; }
.pub-faq-search input { width: 100%; font: inherit; font-size: 16px; padding: 13px 16px; border-radius: 14px; border: 2px solid transparent; background: linear-gradient(var(--pub-white), var(--pub-white)) padding-box, var(--gold-metal) border-box; color: var(--pub-ink); }
.pub-faq-search input:focus-visible { outline: 3px solid color-mix(in srgb, var(--pub-plum) 35%, transparent); outline-offset: 2px; }
.pub-foot-text { display: flex; flex-direction: column; gap: 4px; }
.pub-foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.pub-foot small { font-size: 12.5px; }
.pub-foot .pub-team { margin-left: auto; }
.pub-foot a { margin-left: 0; }
/* v16 polish */
.pub-hero .pub-sub { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; background-image: var(--gold-ink-metal); }
.pub-polaroid { width: 36%; }
.pub-polaroid.p0 { left: -8%; top: 4%; }
.pub-polaroid.p1 { right: -8%; bottom: 6%; }
.pub-group-post { flex-direction: row; align-items: center; max-width: 100%; }
.pub-group-post img { width: 84px; flex: none; aspect-ratio: 1; }
.pub-group-shot > img { max-height: 560px; object-fit: cover; object-position: top; }
.pub .legal-doc section { padding: 0; max-width: none; margin: 0; }
.pub .legal-doc h1, .pub .legal-doc h2 { color: #2a2024; font-family: var(--font); letter-spacing: 0; }
.pub .legal-doc h2 { font-size: 16px; margin: 20px 0 6px; }
.pub .legal-doc h2::after { display: none; }
/* v17 · Inicio: one grid, every box the same size as the Panel de control box */
.launcher .launch-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.launcher .launch-tile { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; min-height: 148px; padding: 16px; }
.launcher .launch-txt .muted { display: block; }
@media (max-width: 560px) { .launcher .launch-grid { grid-template-columns: 1fr 1fr; } .launcher .launch-tile { min-height: 132px; padding: 14px; } .launcher .launch-txt .muted { display: none; } }
/* v18 · reserve level with its amount */
.level-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.level-opt { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.level-opt .num { font-weight: 800; font-size: 15px; }
.level-opt small { font-weight: 500; color: var(--muted); font-size: 11px; }
.level-opt .tiny { color: var(--muted); }
.level-opt.on { border-color: var(--navy); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 480px) { .level-pick { grid-template-columns: 1fr; } }
/* v18 · no gold in Bolsas, Paquetes y envíos, Aprobaciones */
.keep-one { border: 1px dashed var(--line-strong); background: var(--surface-2); }

/* ---------- v18 · public page: realistic iPhone ---------- */
.iphone { position: relative; width: min(318px, 100%); aspect-ratio: 9 / 19.3; border-radius: 56px; padding: 11px; isolation: isolate;
  background: linear-gradient(145deg, #e3e0da 0%, #a9a59d 18%, #f2f0ec 34%, #8d8981 52%, #d6d3cc 70%, #7f7b74 86%, #cfcbc4 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55), inset 0 0 0 3px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.4), 0 40px 70px -28px rgba(43, 20, 36, 0.55), 0 12px 24px -12px rgba(0, 0, 0, 0.35); }
.iphone::before { content: none; }
.iphone-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #7b776f, #d9d6cf 60%, #8d8981); z-index: -1; }
.iphone-btn.action { left: -3px; top: 17%; height: 30px; }
.iphone-btn.vol-up { left: -3px; top: 25%; height: 56px; }
.iphone-btn.vol-down { left: -3px; top: 35%; height: 56px; }
.iphone-btn.power { right: -3px; left: auto; top: 28%; height: 86px; }
.iphone-screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: #efe7dd; display: flex; flex-direction: column; box-shadow: 0 0 0 4px #0b0b0d; }
.iphone-status { flex: none; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 30px; background: #f6f5f3; color: #111; font: 600 14px/1 -apple-system, 'SF Pro Text', var(--font); position: relative; }
.iphone-island { position: absolute; left: 50%; top: 10px; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #050505; }
.iphone-icons { font-size: 10px; letter-spacing: 1px; }
.wa-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px; background: #f6f5f3; border-bottom: 1px solid #e2ded8; color: #111; }
.wa-back { color: #007aff; font-size: 26px; line-height: 1; margin-right: -2px; }
.wa-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.wa-title { display: flex; flex-direction: column; min-width: 0; font-family: -apple-system, 'SF Pro Text', var(--font); }
.wa-title b { font-size: 14px; }
.wa-title small { font-size: 11.5px; color: #667; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iphone .pub-chat { flex: 1; min-height: 0; border-radius: 0; background: #efe7dd; }
.wa-input { flex: none; display: flex; align-items: center; justify-content: space-between; margin: 6px 10px 24px; padding: 8px 12px; border-radius: 18px; background: #fff; color: #999; font-size: 13px; }
.iphone-home { position: absolute; left: 50%; bottom: 8px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: #111; opacity: 0.85; }
.pub-time { display: block; text-align: right; font-size: 11.5px; color: inherit; opacity: 0.72; margin-top: 2px; }
.hero-phone { justify-self: center; transform: rotate(2deg); }
.pub-hero-art .hero-phone { z-index: 1; }
@media (max-width: 900px) { .hero-phone { transform: none; } }
.group-phone { justify-self: center; }
.wa-feed { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 6px; background: #efe7dd; scroll-behavior: smooth; overscroll-behavior: contain; }
.wa-feed:focus-visible { outline: 2px solid #25d366; outline-offset: -2px; }
.wa-day { align-self: center; font-size: 11px; background: #fff; color: #667; padding: 3px 10px; border-radius: 8px; margin-bottom: 4px; }
.wa-msg { max-width: 86%; background: #fff; color: #1b1b1b; border-radius: 10px; padding: 6px 9px; font-size: 13px; line-height: 1.38; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.wa-msg.photo { padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.wa-msg.photo .wa-from { padding: 2px 5px 0; }
.wa-msg.photo span { padding: 0 5px; }
.wa-msg.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f3f0ea; }
.wa-msg.small { font-size: 12.5px; }
.wa-from { display: block; font-size: 12px; color: #c2185b; margin-bottom: 2px; }
.wa-from.alt { color: #0b8f7a; }
.wa-scroll-hint { position: absolute; right: 16px; bottom: 74px; font-size: 11px; background: rgba(0, 0, 0, 0.55); color: #fff; padding: 3px 9px; border-radius: 10px; pointer-events: none; }
.pub-group-shot { width: min(330px, 100%); }
.pub-servi { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--pub-white); border: 1.5px solid #c9e7d3; margin: 6px 0 12px; }
.pub-servi-logo { flex: none; font-weight: 900; font-style: italic; color: #fff; background: #00843d; padding: 6px 10px; border-radius: 8px; font-size: 14px; letter-spacing: -0.01em; }
.pub-item-card { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.pub-item-card img { width: 110px; height: 110px; object-fit: contain; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(43, 20, 36, 0.35); flex: none; }
.pub-item-card .pub-pricetag { margin: 0; flex: 1; }
@media (max-width: 480px) { .pub-item-card { flex-direction: column; align-items: flex-start; } }

/* v18 · Recibos hub, shipping periods */
.upload-kinds { display: grid; gap: 8px; }
.upload-kind { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; }
.upload-kind:hover, .upload-kind:focus-visible { border-color: var(--line-strong); background: var(--surface-2); }
.upload-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); flex: none; }
.upload-ic svg { width: 18px; height: 18px; }
.ship-period { border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: var(--surface-2); }
.period-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.period-head:hover { background: var(--surface); }
.ship-period > .stack { padding: 4px 6px 8px; }
.period-sum { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; }
.period-sum .ok { color: var(--teal); vertical-align: -2px; }
.dropoff-row { background: var(--teal-soft); border-radius: 8px; margin: 6px 10px; }
.live-note { display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: livepulse 2s ease-in-out infinite; } }
@keyframes livepulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.cust-bags { border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px; background: var(--surface-2); }
.cust-bags-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; flex-wrap: wrap; }
.cust-bags > .card { margin-top: 8px; }
.manual-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.manual-line > .grow { min-width: 180px; flex: 1; }
.manual-photo { display: grid; place-items: center; width: 38px; height: 38px; border: 1px dashed var(--line-strong); border-radius: 8px; cursor: pointer; color: var(--muted); overflow: hidden; flex: none; }
.manual-photo img { width: 100%; height: 100%; object-fit: cover; }
.upload-kind > span:last-child { display: flex; flex-direction: column; gap: 2px; }

/* v19 · iOS status icons, photo picker, Servientrega band */
.iphone-icons { display: inline-flex; align-items: center; gap: 5px; color: #111; font-size: 0; letter-spacing: 0; }
.iphone-icons svg { fill: currentColor; display: block; }
.upload-kind { padding: 14px 16px; gap: 14px; }
.upload-kind > span:last-child { gap: 5px; }
.upload-kind b { display: block; font-size: 15px; line-height: 1.25; }
.upload-kind .small { line-height: 1.4; }

.pub-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pub-pick-item { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; border-radius: 16px; text-align: left; font-size: 13px; line-height: 1.25; }
.pub-pick-img { display: block; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: #fff; }
.pub-pick-item .pub-pick-img img, .pub-pick-item .pub-pick-img .pub-pick-ph { width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.pub-pick-item .pub-pick-img .pub-pick-ph { font-size: 34px; background: var(--pub-tissue); }
.pub-pick-item.on .pub-pick-img .pub-pick-ph { background: var(--gold-metal); background-size: 220% 100%; color: #2b1a05; } /* chosen card without its photo: gold, readable day and night */
.pub-pick-name { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pub-pick-price { font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--pub-ink) 70%, transparent); }

.pub-ship { display: block; }
.pub-ship-band { padding: 26px 24px; border-radius: 22px; background: linear-gradient(135deg, #fff 0%, #f1faf4 100%); border: 1.5px solid #bfe3cc; box-shadow: 0 18px 40px -28px rgba(0, 80, 40, 0.45); margin-bottom: 22px; }
.pub-ship-band { --pub-ink: #2b1424; --pub-soft: #4f3a46; --pub-plum: #8a1c52; color: var(--pub-ink); } /* the Servientrega card stays white at night: its text keeps the day colors */
.pub-ship-band p, .pub-ship-points span { color: var(--pub-soft); }
.pub-ship-band h2 { margin-top: 10px; }
.pub-ship-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pub-servi-logo-img { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.pub-servi-mark { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1.5px solid #bfe3cc; font-weight: 800; font-size: 18px; color: #14532d; }
.pub-ship-kicker { font-size: 14px; font-weight: 600; color: #166534; }
.pub-ship-lead { font-size: 17px; max-width: 62ch; }
.pub-ship .pub-ship-points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pub-ship-points li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #d7eedf; }
.pub-ship-points li::before { content: none !important; }
.pub-ship-points b { color: #14532d; }
.pub-ship-points span { font-size: 14px; }
.pub-ship-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.pub-ship-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 160px; }
.pub-ship-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 24px -14px rgba(43, 20, 36, 0.45); }
.pub-ship-photos .pub-box { position: absolute; right: -8px; bottom: -12px; transform: scale(0.55); transform-origin: bottom right; }
.pub-ship-price { font-size: 16px; }
@media (max-width: 720px) { .pub-ship-grid { grid-template-columns: 1fr; } .pub-ship-band { padding: 20px 16px; } }
.pub-pick { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }

/* v20 · approvals */
.opt-price { display: inline-flex; align-items: center; gap: 4px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--fg); border-radius: 8px; padding: 2px 8px; font: inherit; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.opt-price:hover, .opt-price:focus-visible { border-style: solid; border-color: var(--teal); }
.opt-price svg { width: 12px; height: 12px; color: var(--muted); }
.opt-edit { display: inline-flex; gap: 6px; align-items: center; }
.opt-edit .input { width: 96px; }
.last-ask { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.unpaid-actions { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; }

/* v22 · envíos */
.num-step { display: inline-flex; align-items: center; gap: 6px; }
.num-step .input { width: 64px; text-align: center; min-height: 32px; }
.prep-summary { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.pk-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }

/* the analyst's note under each message she sent */
.analysis { max-width: min(560px, 92%); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 2px 0 4px; }
.analysis-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 8px; background: none; border: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.analysis-head > svg { flex: none; color: var(--muted); }
.analysis-body { padding: 0 10px 8px; display: flex; flex-direction: column; gap: 4px; }
.analysis-acts { margin: 0; padding-left: 16px; }
.analysis-reply { background: var(--surface-2); border-radius: 8px; padding: 6px 8px; white-space: pre-wrap; }
.analysis.an-equipo { border-color: color-mix(in srgb, var(--bad, #c0392b) 40%, var(--line)); }
.analysis.an-aprobacion { border-color: color-mix(in srgb, var(--warn, #b7791f) 45%, var(--line)); }
.bubble-row.in .analysis { align-self: flex-start; }
/* files of her chats and the comprobantes archive */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.file-tile { display: flex; flex-direction: column; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; color: inherit; font: inherit; min-width: 0; }
.file-tile:hover { border-color: var(--line-strong); }
.file-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.file-icon { width: 100%; aspect-ratio: 1; display: grid; place-items: center; font-size: 28px; color: var(--muted); background: var(--surface-2); border-radius: 6px; }
.file-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgs.archive { max-height: 62vh; overflow: auto; }
.msgs.archive img { max-width: 240px; border-radius: 8px; display: block; }
.import-log { max-height: 220px; overflow: auto; background: var(--surface-2); padding: 8px; border-radius: 8px; white-space: pre-wrap; }
.proposal .quote { margin: 0; }

/* phones: every control big enough for a thumb (44 px tall), the client link's tabs fit without scrolling */
@media (max-width: 520px) {
  .stars-pick button { min-width: 44px; min-height: 44px; }
  .portal-legal .link-btn, .legal-doc footer .link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  .portal .tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; overflow: visible; }
  .portal .tabs > button { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 12px; min-height: 48px; justify-content: center; }
  .demo-bar select { max-width: 100%; min-height: 40px; }
  .demo-bar button { min-height: 40px; }
}

/* phones: thumbs need about 44 px; chips and the top bar were 26–30 px */
@media (max-width: 520px) {
  .chip { min-height: 38px; padding: 8px 14px; }
  .topbar .btn, .topbar button { min-width: 42px; min-height: 42px; }
  .toast-action { min-height: 38px; padding: 6px 12px; }
  .btn.sm { min-height: 38px; }
  .page-head .row { flex-wrap: wrap; }
  .page-head .chip { white-space: normal; text-align: left; max-width: 100%; }
}

/* the calendar: a month grid on wide screens, a list of days on phones */
.cal-list { display: none; }
@media (max-width: 520px) {
  .cal-grid { display: none; }
  .cal-list { display: grid; gap: 10px; padding: 10px; }
  .cal-day { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; }
  .cal-day.today { background: var(--accent-soft); }
  .cal-day b::first-letter { text-transform: uppercase; }
  .cal-list .ev { white-space: normal; font-size: 14px; padding: 10px 12px; min-height: 44px; margin: 0; }
}

/* phones: the controls the first pass missed (drawer footer, icon buttons, small link buttons, check boxes, bag codes) */
@media (max-width: 520px) {
  .side-foot .btn, .btn.icon { min-width: 40px; min-height: 40px; }
  .link-btn, button.lnk { min-height: 32px; display: inline-flex; align-items: center; }
  input[type='checkbox'], input[type='radio'] { width: 24px; height: 24px; flex: none; }
  .shift-add { min-width: 40px; min-height: 36px; }
}
input[type='file'] { max-width: 100%; }

/* a text block next to a button wraps the button below it on a phone instead of being squeezed into a thin column */
.row > .grow:not(:empty) { min-width: min(220px, 100%); }

/* ---------- v39 · public page: real material, a comparison that shows both sides, a phone layout that flows ---------- */
/* hero: the real chat in the middle, EXAA's store photos pinned to its sides (same composition on every width) */
.pub-hero-art { position: relative; display: grid; justify-items: center; padding: 18px 0 8px; }
.pub-hero-phone { margin: 0; display: grid; justify-items: center; gap: 10px; z-index: 1; }
.pub-hero-phone figcaption, .pub-group-fig figcaption { font-size: 13px; color: var(--pub-soft); text-align: center; max-width: 30ch; }
.pub-hero-art .iphone { width: min(300px, 74vw); }
.pub-polaroid { position: absolute; z-index: 2; width: clamp(104px, 30%, 190px); max-width: none; }
.pub-polaroid.p0 { left: 0; top: 8%; right: auto; bottom: auto; transform: rotate(-6deg); }
.pub-polaroid.p1 { right: 0; bottom: 16%; left: auto; top: auto; transform: rotate(5deg); }
.pub-polaroid img { aspect-ratio: 4 / 5; }
.pub-polaroid figcaption { font-weight: 700; color: #4f3a46; }
.pub-hero-art .pub-polaroid { position: absolute !important; }
.pub-hero-art .pub-polaroid.p0 { inset: 8% auto auto 0 !important; }
.pub-hero-art .pub-polaroid.p1 { inset: auto 0 16% auto !important; }
/* phones: her two store photos side by side, pinned over the top of a phone wide enough for the whole real chat */
@media (max-width: 600px) {
  .pub-hero-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: center; align-items: end; gap: 0 10px; padding-top: 6px; }
  .pub-hero-art .pub-polaroid { position: relative !important; inset: auto !important; width: min(150px, 100%); margin-bottom: -8px; padding: 6px 6px 8px; z-index: 2; }
  .pub-hero-art .pub-polaroid.p0 { transform: rotate(-5deg); justify-self: end; }
  .pub-hero-art .pub-polaroid.p1 { transform: rotate(4deg); justify-self: start; }
  .pub-hero-art .pub-polaroid img { aspect-ratio: 1; }
  .pub-polaroid figcaption { font-size: 12px; }
  .pub-hero-phone { grid-column: 1 / -1; }
  .pub-hero-art .iphone { width: min(300px, 82vw); }
  .pub-hero-phone figcaption { max-width: min(300px, 82vw); }
}
  .pub-polaroid figcaption { font-size: 11.5px; }
}
/* the real chat: her phone, her messages green */
.iphone .pub-chat { overflow: hidden; gap: 6px; padding: 10px 9px 6px; justify-content: flex-end; }
.pub-msg { font-size: 13px; padding: 6px 9px; animation: pubIn 0.45s ease-out var(--d, 0s) both; }
.pub-msg.with-photo { padding: 4px; max-width: 74%; }
.pub-msg.with-photo .pub-time, .pub-msg.with-photo .wa-fwd { padding: 0 5px; }
.pub-msg-photo { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 7px; margin-bottom: 4px; }
.wa-fwd { display: block; font-size: 11.5px; font-style: italic; color: #5c6b5f; margin: 0 0 3px; }
/* the week: the usual schedule reads as two short rows on a phone */
.pub-day.sched { gap: 4px; }
.pub-day.sched p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--pub-ink); }
.pub-day.sched span { font-weight: 700; color: var(--pub-plum); font-size: 15px; }
@media (max-width: 600px) {
  .pub-days { grid-template-columns: minmax(0, 1fr); }
  .pub-ticket b { font-size: 22px; }
  /* how it works: a numbered list, not five tall cards */
  .pub-steps ol { gap: 0; }
  .pub-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: start; background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--pub-gold) 30%, transparent); border-radius: 0; padding: 14px 0; }
  .pub-steps li::before { grid-row: span 2; margin: 0; }
  .pub-steps li b { margin: 2px 0 2px; }
  .pub section { padding-top: 44px; }
}
/* ¿Cuánto pagas? */
.pub-prices { align-items: start; }
.pub-pick { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin-bottom: 14px; }
.pub-pick-item .pub-pick-img img { object-fit: cover; }
.cmp { background: var(--pub-white); border-radius: 22px; padding: 18px; box-shadow: 0 18px 40px -26px rgba(43, 20, 36, 0.5); border: 1.5px solid color-mix(in srgb, var(--pub-gold) 45%, transparent); }
.cmp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.cmp-head h3 { font-size: 20px; line-height: 1.2; margin: 0; color: var(--pub-ink); }
.cmp-match { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.cmp-match.mismo { background: #dff5e6; color: #11552f; }
.cmp-match.similar { background: #fdf0d8; color: #6b4a08; }
.cmp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cmp-side { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cmp-who { font-size: 13px; font-weight: 800; color: var(--pub-plum); }
.cmp-side.ec .cmp-who { color: var(--pub-soft); }
.cmp-img { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid color-mix(in srgb, var(--pub-ink) 10%, transparent); }
.cmp-img img { width: 100%; height: 100%; display: block; }
.cmp-side.us .cmp-img img { object-fit: cover; }
.cmp-side.ec .cmp-img img { object-fit: contain; }
.cmp-side figcaption { font-size: 12.5px; color: var(--pub-soft); }
.cmp-price { font-family: var(--pub-display); font-size: clamp(26px, 7vw, 34px); line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 4px; }
.cmp-side.us .cmp-price { color: var(--pub-plum); }
.cmp-side.ec .cmp-price { color: var(--pub-ink); }
.cmp-side small { font-size: 12.5px; color: var(--pub-soft); }
.cmp-incl { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--pub-ink); }
.cmp-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; font-weight: 700; }
.cmp-links a, .cmp-links .link { color: var(--pub-plum); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.cmp-math { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px 14px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed color-mix(in srgb, var(--pub-gold) 55%, transparent); }
.cmp-math div { display: flex; flex-direction: column; }
.cmp-math dt { font-size: 12.5px; color: var(--pub-soft); }
.cmp-math dd { margin: 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--pub-ink); }
.cmp-math .sum dd { color: var(--pub-plum); font-size: 22px; font-family: var(--pub-display); }
.cmp .pub-note { margin-top: 10px; }
.pub-shot { position: fixed; inset: 0; z-index: 50; background: rgba(20, 10, 16, 0.72); display: grid; place-items: center; padding: 16px; }
.pub-shot figure { margin: 0; max-width: min(820px, 100%); background: #fff; border-radius: 16px; padding: 10px; display: grid; gap: 8px; justify-items: center; }
.pub-shot img { max-width: 100%; max-height: 70vh; border-radius: 8px; }
.pub-shot figcaption { font-size: 13px; color: #4f3a46; text-align: center; }
@media (max-width: 380px) { .cmp { padding: 14px 12px; } .cmp-cols { gap: 9px; } .cmp-math { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* what customers write: WhatsApp bubbles */
.pub-review.chat { border-radius: 4px 16px 16px 16px; background: #ffffff; color: #1b1b1b; padding: 12px 14px 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); position: relative; }
.pub-review.chat::before { content: ''; position: absolute; left: -7px; top: 0; border-width: 0 8px 9px 0; border-style: solid; border-color: transparent #ffffff transparent transparent; }
.pub-review.chat blockquote { font-size: 15.5px; line-height: 1.45; color: #1b1b1b; margin: 0 0 6px; }
.pub-review.chat blockquote::before { content: none; }
.pub-review.chat figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; color: #5f5560; }
.pub-reviews .pub-review-list { margin-top: 14px; columns: 3 250px; column-gap: 18px; padding-left: 8px; }
.pub-reviews { background: transparent; }
/* the group: real posts only */
.pub-group-fig { margin: 0; display: grid; justify-items: center; gap: 10px; }
.wa-msg.photo img { aspect-ratio: auto; max-height: 240px; }
/* shipping: the drawn box, and her own photos when she uploads them */
.pub-ship-art { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
.pub-servibox { width: min(340px, 88vw); height: auto; display: block; filter: drop-shadow(0 14px 18px rgba(43, 20, 36, 0.18)); }
.pub-ship-photo { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.pub-servi-logo-img { height: 34px; width: auto; }
.pub-servi-mark { font-weight: 900; color: #009A44; font-size: 20px; }
.pub-ship-grid { align-items: center; }
@media (min-width: 721px) { .pub-ship-grid:has(.pub-ship-photos) { grid-template-columns: 320px minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pub-msg { animation: none; } }
/* the phone screen is in light mode whatever the page: EXAA's bubbles stay white */
.iphone .pub-msg:not(.out) { background: #fff; color: #1b1b1b; }
@media (max-width: 400px) { .pub-msg-photo { height: 96px; } .iphone .pub-msg { font-size: 12.5px; line-height: 1.34; } .iphone .pub-chat { gap: 5px; } }
.pub-msg-photo { height: 110px; }
@media (min-width: 901px) { .pub-msg-photo { height: 128px; } .pub-hero-art .iphone { width: 340px; } }
@media (max-width: 340px) { .pub-msg-photo { height: 96px; } .iphone .pub-msg { font-size: 11.5px; padding: 4px 7px; } .iphone .pub-chat { gap: 4px; padding-top: 4px; } .iphone .pub-time { margin-top: 0; } }

.pub-more { margin-top: 6px; }
@media (min-width: 901px) { .pub-prices { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); } .pub-tiers { position: sticky; top: 16px; } }
/* phones: a row of 4+ tabs wraps into a grid instead of hiding the last ones off the edge */
@media (max-width: 520px) { .tabs:not(.portal .tabs) { flex-wrap: wrap; overflow-x: visible; } .tabs > .tab { flex: 1 1 auto; } }

/* phones: the comparison choices in even rows (4 → 2 × 2), never one left alone */
@media (max-width: 600px) { .pub-pick { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); } }

/* "Esta semana": a one-week calendar card (replaces the day cards and the ticket) */
.pub .pub-week { display: block; }
.pub-cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pub-cal-head h2 { margin-bottom: 0; }
.pub-cal-range { color: var(--pub-soft); font-size: 15px; }
.pub-cal { background: var(--pub-white); border: 1.5px solid color-mix(in srgb, var(--pub-gold) 40%, transparent); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px -26px rgba(43, 20, 36, 0.45); }
.pub-cal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pub-cal-day { position: relative; min-height: 88px; padding: 10px 8px 10px; border-right: 1px solid color-mix(in srgb, var(--pub-ink) 9%, transparent); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pub-cal-day:last-child { border-right: 0; }
.pub-cal-dow { font-size: 13px; color: var(--pub-soft); }
.pub-cal-dow::first-letter { text-transform: uppercase; }
.pub-cal-num { font-family: var(--pub-display); font-weight: 800; font-size: 20px; line-height: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; margin-left: -4px; color: var(--pub-ink); }
.pub-cal-day.today { background: color-mix(in srgb, var(--pub-tissue) 70%, transparent); }
.pub-cal-day.today .pub-cal-num { background: var(--pub-plum); color: var(--pub-on-plum); }
.pub-cal-day.past .pub-cal-num, .pub-cal-day.past .pub-cal-dow { opacity: 0.5; }
.pub-cal-ev { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1.2; padding: 4px 6px; border-radius: 8px; background: var(--pub-tissue); color: var(--pub-plum); min-width: 0; }
.pub-cal-ev { align-items: flex-start; }
.pub-cal-ev-t { overflow-wrap: anywhere; }
.pub-cal-ev.aviso { background: var(--pub-gold-soft); color: var(--pub-gold-ink); }
.pub-cal-ev.salida { background: color-mix(in srgb, var(--pub-green) 16%, transparent); color: var(--pub-green); }
.pub-cal-ev.cierre { background: color-mix(in srgb, var(--pub-plum) 12%, transparent); color: var(--pub-plum); }
.pub-cal-ev.empaque { background: color-mix(in srgb, var(--pub-ink) 7%, transparent); color: var(--pub-soft); }
.pub-cal-day.past .pub-cal-ev { opacity: 0.55; }
.pub-cal-list { display: none; }
.pub-cal-note { margin: 0; padding: 10px 16px; font-size: 14px; color: var(--pub-soft); border-top: 1px solid color-mix(in srgb, var(--pub-ink) 9%, transparent); }
.pub-cal-next { margin: 0; padding: 12px 16px; display: flex; gap: 10px; align-items: baseline; background: var(--pub-plum); color: var(--pub-on-plum); font-size: 15px; line-height: 1.45; }
.pub-cal-next b::first-letter { text-transform: uppercase; }
/* phones: days as a compact strip with marks; the events listed under it */
@media (max-width: 720px) {
  .pub-cal-day { min-height: 0; padding: 8px 2px 9px; align-items: center; gap: 3px; }
  .pub-cal-num { margin-left: 0; width: 30px; height: 30px; font-size: 17px; }
  .pub-cal-dow { font-size: 12px; }
  .pub-cal-ev { padding: 0; background: none !important; font-size: 14px; }
  .pub-cal-ev-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pub-cal-list { display: grid; list-style: none; margin: 0; padding: 4px 14px 8px; border-top: 1px solid color-mix(in srgb, var(--pub-ink) 9%, transparent); }
  .pub-cal-list li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; font-size: 15px; border-bottom: 1px dashed color-mix(in srgb, var(--pub-ink) 10%, transparent); }
  .pub-cal-list li:last-child { border-bottom: 0; }
  .pub-cal-list li.past { opacity: 0.6; }
  .pub-cal-list span { color: var(--pub-soft); min-width: 54px; white-space: nowrap; }
  .pub-cal-list b { color: var(--pub-ink); font-weight: 700; }
  .pub-cal-next { font-size: 14px; padding: 11px 14px; }
}

/* Envíos: Servientrega leads — its logo large, the taped box beside the copy (under it on phones) */
.pub .pub-ship-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 10px 28px; align-items: center; }
.pub-ship-copy { min-width: 0; }
.pub-ship-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.pub-ship-band .pub-servi-logo-img { height: 64px; max-width: 100%; }
.pub-ship-band .pub-servi-mark { font-size: 34px; }
.pub-ship-band h2 { margin-top: 14px; }
.pub-ship-band .pub-ship-art { justify-items: center; }
.pub-ship-band .pub-servibox { width: min(360px, 100%); }
.pub .pub-ship-grid { grid-template-columns: minmax(0, 1fr); }
.pub-ship-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) {
  .pub .pub-ship-band { grid-template-columns: minmax(0, 1fr); }
  .pub-ship-band .pub-servi-logo-img { height: 48px; }
  .pub-ship-band .pub-ship-art { order: 2; margin: 4px 0 2px; }
  .pub-ship-band .pub-servibox { width: min(300px, 86%); }
}

/* ══ EXAA brand manual, applied to the public page and the customer link (last, so it wins) ══ */
.b-logo, .b-mono { display: inline-block; flex: none; line-height: 0; }
.b-logo img, .b-mono img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
/* gold rule with the monogram (hairlines in metallic gold, fading at the ends) */
.b-divider { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; }
.b-divider > span:not(.b-mono) { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--b-gold) 35%, #e7c97e 70%, var(--b-gold)); }
.b-divider > span:not(.b-mono):last-child { background: linear-gradient(270deg, transparent, var(--b-gold) 35%, #e7c97e 70%, var(--b-gold)); }

/* type: Cormorant Garamond for headlines and names, Jost for everything you read, prices and buttons */
.pub { font-family: var(--pub-sans); font-weight: 400; }
.pub b, .pub strong { font-weight: 600; }
.pub-hero h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: 0.98; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 14px; }
.pub-hero p { font-size: 18px; }
.pub-sub, .pub-hero .pub-sub { background-image: none; -webkit-background-clip: border-box; background-clip: border-box; line-height: 1.4; font-family: var(--pub-sans); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.2em; background: none; color: var(--pub-gold-ink); -webkit-text-fill-color: currentColor; margin: 0 0 20px !important; display: flex; align-items: center; gap: 12px; }
.pub-sub::before { content: ''; width: 34px; height: 1px; background: var(--b-gold); flex: none; }
.pub h2::after { width: 64px; height: 1px; border-radius: 0; background: linear-gradient(90deg, var(--b-gold), #e7c97e, var(--b-gold)); margin-top: 14px; animation: none; }
.pub h3 { font-size: 24px; }
.pub-btn, .pub-top nav a, .pub-cal-num, .cmp-price, .cmp-math .sum dd, .pub-find figcaption b, .pub-steps li::before, .pub-price-in, .pub-ticket b, .pub-day b, .pub-box span, .pub-compare b { font-family: var(--pub-sans); }
.pub-btn { font-weight: 500; letter-spacing: 0.06em; background: var(--pub-btn); border-color: var(--pub-btn); color: var(--pub-btn-ink) !important; }
.pub-btn.ghost { color: var(--pub-plum) !important; border: 1.5px solid var(--pub-peony); background: transparent; }
.pub-btn:hover { filter: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-gold) 45%, transparent); }
.pub-btn:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 3px; }
.pub-top nav a:not(.pub-btn) { font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
.pub-top nav a:not(.pub-btn):hover { color: var(--pub-peony); }

/* header: the EXAA Moda master logo, gold, with its clear space */
.pub-brand { padding: 6px 0; }
.pub-brand .b-logo { max-width: 42vw; height: auto !important; aspect-ratio: 900 / 343; }
.pub-brand img { width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.pub-brand span { border: 0; padding: 0; background: none; }
.pub-top { border-bottom: 1px solid var(--pub-line); }

/* gold tags: the store names, onyx letters on gold foil (the manual's rule for gold grounds) */
.pub-tag { font-family: var(--pub-sans); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--b-onyx); -webkit-text-fill-color: var(--b-onyx); }
.pub-steps li::before { color: var(--b-onyx); -webkit-text-fill-color: var(--b-onyx); font-weight: 500; }
.pub-steps li { border: 1px solid var(--pub-line); background: var(--pub-white); }
.pub-rules li::before { color: var(--b-onyx); }

/* panels: blush by day, lifted onyx at night; gold hairlines instead of grey */
.pub-tiers { background: var(--pub-tissue); border: 1px solid var(--pub-line); }
.pub-tiers h3, .pub-tiers td:last-child { color: var(--pub-plum); }
.pub-tiers td { border-bottom-color: var(--pub-line); }
.pub-cal { border: 1px solid var(--pub-line); box-shadow: 0 14px 34px -26px var(--pub-shadow); }
.pub-cal-num { font-weight: 500; }
.pub-cal-day.today .pub-cal-num { background: var(--pub-btn); color: var(--pub-btn-ink); }
.pub-cal-dow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; }
.pub-cal-ev { font-weight: 500; }
.pub-cal-ev.cierre { background: color-mix(in srgb, var(--pub-peony) 14%, transparent); color: var(--pub-plum); }
.pub-cal-next { background: var(--pub-btn); color: var(--pub-btn-ink); }
.pub-cal-range { letter-spacing: 0.02em; }
.cmp { border: 1px solid var(--pub-line); box-shadow: 0 18px 40px -26px var(--pub-shadow); }
.cmp-head h3 { font-size: 26px; color: var(--b-rose); }
.cmp-who { font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--pub-gold-ink); }
.cmp-price { font-weight: 500; font-size: clamp(28px, 7vw, 36px); }
.cmp-math { border-top: 1px solid var(--pub-line); }
.cmp-math dd { font-weight: 600; }
.cmp-math .sum dd { font-weight: 600; color: var(--pub-plum); }
.cmp-save { background: var(--pub-tissue); color: var(--pub-plum); border: 1px solid color-mix(in srgb, var(--pub-peony) 30%, transparent); }
.cmp-match.mismo { background: var(--pub-tissue); color: var(--pub-plum); }
.cmp-match.similar { background: var(--pub-gold-soft); color: var(--pub-ink); }
.pub-cal-ev.aviso { background: var(--pub-gold-soft); color: var(--pub-ink); }
.pub-pick-item { border-color: var(--pub-line); }
.pub-pick-item.on { border-color: var(--b-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-gold) 30%, transparent); }
.pub-pick-name { font-family: var(--pub-display); font-size: 15.5px; font-weight: 600; line-height: 1.15; }
.pub-find figcaption b { font-weight: 600; font-size: 17px; }
.pub-review { box-shadow: 0 1px 2px var(--pub-shadow); }
.pub-review blockquote::before { font-family: var(--pub-display); font-size: 56px; color: var(--b-gold); }
.pub-faq summary { font-weight: 500; font-size: 17.5px; }
.pub-faq details { border-bottom-color: var(--pub-line); }
.pub-faq details[open] summary { color: var(--pub-plum); }
.pub-faq summary::marker { color: var(--b-gold); }
.pub-rules li { border-bottom-color: var(--pub-line); }
.pub-polaroid figcaption { font-family: var(--pub-display); font-style: italic; font-size: 15px; font-weight: 500; color: #6E2E40; }
.pub .legal-doc h1, .pub .legal-doc h2 { font-family: var(--pub-sans); }

/* the WhatsApp profile picture of EXAA: the monogram (the manual's use for profile pictures) */
.wa-avatar.brand { background: #FFF7F9; box-shadow: inset 0 0 0 1px rgba(201, 161, 74, 0.35); }

/* tissue-paper band (peony monogram pattern on blush), then the footer with the gold divider */
.pub-tissue-band { height: 84px; margin-top: 64px; background: var(--pub-pattern) center / 330px 330px repeat; border-block: 1px solid var(--pub-line); }
.pub-foot { flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-top: 0; padding-top: 34px; background: none; border-top: 0; }
.pub-foot .b-logo { width: 170px !important; height: auto !important; aspect-ratio: 900 / 343; }
.pub-foot img { width: 100%; height: 100%; border-radius: 0; }
.pub-foot-text { align-items: center; }
.pub-foot-links { justify-content: center; }
.pub-foot .pub-team { margin: 0; }
.pub-loading { min-height: 100vh; display: grid; place-items: center; background: var(--pub-paper); }
.pub-loading .b-mono img { width: 100%; border-radius: 0; }

/* the Servientrega card keeps its own white and green; only its text follows the brand */
.pub-ship-band { --pub-ink: #6E2E40; --pub-soft: #6b4a55; --pub-plum: #6E2E40; --pub-head: #C94F7C; }
.pub-ship-band h2 { color: #6E2E40; }

/* ── the customer link (EXAA Shop): same palette and type, in the app's components ── */
.portal-page {
  --bg: var(--b-paleblush); --surface: #ffffff; --surface-2: #FCEDF1; --line: #F2D5DD; --line-strong: #E6B9C7;
  --fg: var(--b-berry); --muted: #7A4A58; --faint: #7A4A58; --accent: var(--b-berry); --accent-soft: var(--b-blush); --accent-solid: var(--b-rose);
  --navy: var(--b-rose); --navy-fg: #ffffff; --gold: var(--b-bronze); --font: var(--pub-sans); --font-brand: var(--pub-display);
  --shadow: 0 1px 2px rgba(110, 46, 64, 0.08), 0 8px 24px -16px rgba(110, 46, 64, 0.25);
  min-height: 100%; background: var(--bg); color: var(--fg); font-family: var(--pub-sans); font-size: 15px;
}
.portal-page b, .portal-page strong { font-weight: 600; }
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 12px; border-bottom: 1px solid color-mix(in srgb, var(--b-gold) 40%, transparent); }
.portal-top-label { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); text-align: right; }
.portal-code { border: 1px solid var(--b-gold); background: var(--surface); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px color-mix(in srgb, var(--b-gold) 70%, transparent); padding: 16px 18px; }
.portal-code span, .portal-bal span { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; }
.portal-code b { font-family: var(--pub-sans); font-weight: 500; font-size: 32px; letter-spacing: 0.08em; color: var(--fg); }
.portal-bal b { font-family: var(--pub-sans); font-weight: 500; }
.portal-bal.zero { background: var(--surface-2); border: 1px solid var(--line); }
.portal .card-head h2, .portal .card-head h3, .portal-page .modal-head h2, .portal-h { font-family: var(--pub-display); font-size: 21px; font-weight: 600; letter-spacing: 0; }
.portal .card-head h2 svg, .portal .card-head h3 svg { color: var(--b-gold); }
.portal .tab { font-weight: 500; letter-spacing: 0.02em; }
.portal-page .btn { font-weight: 500; letter-spacing: 0.04em; }
.portal-page .stars-pick button.on { color: var(--b-gold); }
.portal-page .badge { font-weight: 500; }
.portal-history summary { color: var(--accent); }
.portal-loading { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 100vh; }
.portal .b-divider { margin-top: 6px; }
.pub-tiers td:last-child { background: none; -webkit-text-fill-color: currentColor; color: var(--pub-plum); font-weight: 600; }
.pub-tiers h3 { font-size: 26px; font-weight: 500; }
.pub-tt-fallback { background: var(--pub-white); color: var(--pub-ink) !important; border: 1px solid var(--pub-line); box-shadow: 0 14px 30px -22px var(--pub-shadow); }

/* header: stays at the top while scrolling; menu button in the top right corner; TikTok in real gold (like the logo) */
.pub-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--pub-paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pub-line); }
.pub-head .pub-top { position: relative; border-bottom: 0; padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
.pub-head .pub-top { gap: 10px; }
.pub-head .pub-top nav { flex-wrap: nowrap; gap: 16px; margin-left: auto; }
.pub section[id] { scroll-margin-top: 96px; }
@media (max-width: 900px) { .pub-top nav a:not(.pub-btn) { display: none; } .pub-head .pub-top nav { gap: 10px; } }
.pub-btn.gold { background: var(--gold-metal); background-size: 220% 100%; background-position: 0% 0; border: 0; padding: 9px 18px; color: #0E0D0C !important; -webkit-text-fill-color: #0E0D0C; box-shadow: var(--gold-edge); font-weight: 600; text-shadow: 0 1px 0 rgba(255, 245, 210, 0.45); animation: goldSheen 1.6s ease-out 0.3s both; transition: background-position 0.6s ease; }
.pub-btn.gold:hover { background-position: 60% 0; box-shadow: var(--gold-edge), 0 0 0 3px color-mix(in srgb, var(--b-gold) 35%, transparent); }
.pub-menu-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--b-gold); background: var(--pub-white); color: var(--pub-plum); cursor: pointer; padding: 0; }
.pub-menu-btn svg { width: 22px; height: 22px; }
.pub-menu-btn:hover, .pub-menu-btn[aria-expanded='true'] { background: var(--pub-tissue); }
.pub-menu-btn:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 3px; }
.pub-menu { position: absolute; top: calc(100% + 8px); right: max(18px, env(safe-area-inset-right, 0px)); width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; background: var(--pub-white); border: 1px solid var(--pub-line); border-radius: 18px; box-shadow: 0 24px 48px -20px var(--pub-shadow), 0 2px 6px var(--pub-shadow); padding: 10px 8px 14px; display: flex; flex-direction: column; gap: 10px; animation: pubMenuIn 0.18s ease-out; }
@keyframes pubMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pub-menu, .pub-btn.gold { animation: none; } }
.pub-menu-sections { list-style: none; margin: 0; padding: 0; }
.pub-menu-sections a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 12px; font-family: var(--pub-display); font-size: 22px; font-weight: 500; color: var(--pub-plum); text-decoration: none; }
.pub-menu-sections a:hover, .pub-menu-sections a:focus-visible { background: var(--pub-tissue); outline: none; }
.pub-menu-ctas { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 4px; border-top: 1px solid var(--pub-line); }
.pub-menu-ctas .pub-btn { flex: 1 1 auto; }
.pub-menu-docs { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 14px 0; font-size: 13.5px; }
.pub-menu-docs a { color: var(--pub-soft); min-height: 32px; display: inline-flex; align-items: center; }
/* phones: a slimmer bar (logo at 126 px keeps the 120 px minimum and its 1X clear space) */
@media (max-width: 600px) { .pub-head .pub-top { padding-top: 6px; padding-bottom: 6px; } .pub-head .pub-brand { padding: 4px 0; } .pub-head .pub-brand .b-logo { width: 126px !important; } .pub section[id] { scroll-margin-top: 80px; } }
/* the public page and the customer link start right at the top: no status-bar spacer (the browser or the viewer already keeps
   its own bar clear; inside the demo viewer the reported top inset made a tall empty band above the logo) */
body:has(.pub)::before, body:has(.portal-page)::before { display: none; }
/* pink rhythm: two full-width blush bands (how it works, what customers write) and a petal glow behind the hero phone */
.pub-steps, .pub-reviews { background: var(--pub-tissue); box-shadow: 0 0 0 100vmax var(--pub-tissue); clip-path: inset(0 -100vmax); margin-top: 48px !important; padding-bottom: 52px !important; }
.pub-steps + .pub-prices, .pub-reviews + .pub-groups { margin-top: 0; }
.pub-steps li { box-shadow: 0 10px 24px -20px var(--pub-shadow); }
.pub-hero { background: radial-gradient(52% 62% at 76% 48%, color-mix(in srgb, var(--b-petal) 62%, transparent), transparent 72%); }
/* the pink primary in the customer link: section titles in rose */
.portal .card-head h2, .portal .card-head h3, .portal-page .modal-head h2, .portal-h { color: var(--b-rose); }
.portal-code b { color: var(--b-rose); }
/* Cómo funciona: six cards, three by row on computers; the VIP appointment card in the double gold frame (manual: VIP pieces) */
.pub-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pub-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pub-steps ol { grid-template-columns: minmax(0, 1fr); } }
.pub-steps li.vip { border: 1px solid var(--b-gold); box-shadow: inset 0 0 0 4px var(--pub-white), inset 0 0 0 5px color-mix(in srgb, var(--b-gold) 70%, transparent), 0 10px 24px -20px var(--pub-shadow); background: linear-gradient(160deg, #fff 55%, var(--b-paleblush)); }
.pub-steps li.vip::before { content: 'VIP'; font-size: 11px; letter-spacing: 0.08em; font-weight: 600; }
.pub-steps li.vip b { color: #B34070; } /* rose, a touch deeper: small bold text keeps 4.5:1 on the blush-white card */
.pub-steps li a { color: var(--pub-plum); font-weight: 500; }
.nowrap { white-space: nowrap; }
@media (max-width: 600px) { .pub-steps li.vip { padding: 14px 14px 14px 12px; margin-top: 14px; border-radius: 16px; } }
/* customer link: her yearly 4x4 limit */
.portal-cupo { display: flex; flex-direction: column; gap: 8px; }
.portal-cupo-bar { height: 10px; border-radius: 99px; background: var(--b-blush); overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-gold) 35%, transparent); }
.portal-cupo-bar span { display: block; height: 100%; border-radius: 99px; background: var(--gold-metal); background-size: 200% 100%; }
.portal-cupo-bar span.high { background: linear-gradient(90deg, var(--b-gold), var(--b-rose)); }
.portal-cupo-bar span.full { background: var(--b-rose); }
#cl-cupo { max-width: 72ch; overflow-wrap: anywhere; }
/* comparison: a set (more pieces than the one item priced in Ecuador) */
.cmp-match.set { background: var(--gold-metal); background-size: 200% 100%; color: var(--b-onyx); -webkit-text-fill-color: var(--b-onyx); box-shadow: var(--gold-edge); }
.cmp-kit { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--b-paleblush); border: 1px solid var(--pub-line); color: var(--pub-ink); font-size: 15px; line-height: 1.5; }
.cmp-kit b { color: #B34070; }
/* hero: three clear deals around the phone (square photos) */
.pub-polaroid img, .pub-hero-art .pub-polaroid img { aspect-ratio: 1; }
.pub-hero-art .pub-polaroid { width: clamp(104px, 27%, 172px); }
.pub-hero-art .pub-polaroid.p0 { inset: 4% auto auto 0 !important; transform: rotate(-6deg); }
.pub-hero-art .pub-polaroid.p1 { inset: 34% 0 auto auto !important; transform: rotate(5deg); }
.pub-hero-art .pub-polaroid.p2 { inset: auto auto 12% 2% !important; transform: rotate(3deg); display: block; }
@media (max-width: 600px) {
  .pub-hero-art { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
  .pub-hero-art .pub-polaroid { position: relative !important; inset: auto !important; width: min(118px, 100%); padding: 5px 5px 7px; justify-self: center; }
  .pub-hero-art .pub-polaroid.p0 { transform: rotate(-5deg); }
  .pub-hero-art .pub-polaroid.p1 { transform: rotate(2deg) translateY(-6px); }
  .pub-hero-art .pub-polaroid.p2 { transform: rotate(5deg); }
  .pub-hero-art .pub-polaroid figcaption { font-size: 12px; line-height: 1.2; }
}

/* ══ Nov 12 redesign of the public page: bolder titles, store tags, calendar, how it works, happy chats, Servientrega ══ */
/* titles: Cormorant Garamond bold, deeper rose, so each section is easy to find */
.pub h1, .pub h2, .pub h3 { font-weight: 700; }
.pub h2 { font-size: clamp(34px, 5.4vw, 50px); color: #B34070; letter-spacing: -0.01em; line-height: 1.02; }
.pub h2::after { width: 72px; height: 3px; border-radius: 2px; margin-top: 12px; }
.pub h3 { color: #6E2E40; }
.pub-hero h1 { font-weight: 700; color: #B34070; }
.cmp-head h3 { color: #B34070; }

.pub-stores { padding-top: 40px !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; overflow: hidden; }
.pub-stores-title { text-align: center; margin: 0 0 14px; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--pub-gold-ink); padding: 0 18px; }


/* how it works: five short steps with drawings, and the VIP appointment */
.pub-how { background: var(--pub-tissue); box-shadow: 0 0 0 100vmax var(--pub-tissue); clip-path: inset(0 -100vmax); margin-top: 48px !important; padding-bottom: 52px !important; }
.how-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.how-steps::before { content: ''; position: absolute; left: 10%; right: 10%; top: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--b-gold) 12%, var(--b-gold) 88%, transparent); }
.how-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; }
.how-art { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--b-rose); box-shadow: inset 0 0 0 1px var(--b-gold), inset 0 0 0 5px #fff, inset 0 0 0 6px color-mix(in srgb, var(--b-gold) 55%, transparent), 0 12px 22px -16px var(--pub-shadow); margin-bottom: 6px; }
.how-n { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-metal); background-size: 200% 100%; color: var(--b-onyx); font-size: 14px; font-weight: 600; box-shadow: var(--gold-edge); }
.how-t { font-family: var(--pub-sans); font-size: 17.5px; font-weight: 600; line-height: 1.2; color: #6E2E40; }
.how-d { font-size: 15px; line-height: 1.4; color: var(--pub-soft); max-width: 22ch; }
.how-d a { color: var(--b-berry); font-weight: 500; }
.how-vip { margin-top: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--b-gold); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px color-mix(in srgb, var(--b-gold) 60%, transparent), 0 16px 34px -26px var(--pub-shadow); }
.how-vip-card { width: 190px; aspect-ratio: 1.6; border-radius: 10px; background: var(--b-paleblush); border: 1px solid var(--b-gold); box-shadow: inset 0 0 0 3px var(--b-paleblush), inset 0 0 0 4px color-mix(in srgb, var(--b-gold) 65%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transform: rotate(-3deg); }
.vip-k { font-size: 8.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.24em; color: var(--b-bronze); }
.vip-title { font-family: var(--pub-display); font-size: 30px; font-weight: 700; line-height: 1; background: var(--gold-ink-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-line { display: flex; gap: 8px; margin-top: 6px; }
.vip-line i { font-style: normal; font-size: 7.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--b-berry); border-top: 1px solid var(--b-gold); padding-top: 3px; width: 46px; text-align: center; }
.how-vip-copy h3 { font-size: 26px; margin: 0 0 6px; color: #B34070; }
.how-vip-copy p { margin: 0 0 12px; color: var(--pub-soft); max-width: 58ch; }
.how-vip-note { font-weight: 500; color: var(--b-berry); }
@media (max-width: 820px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-steps::before { left: 31px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--b-gold) 8%, var(--b-gold) 92%, transparent); }
  .how-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; padding: 10px 0; }
  .how-art { width: 64px; height: 64px; grid-row: span 2; margin: 0; }
  .how-art svg { width: 34px; height: 34px; }
  .how-n { width: 24px; height: 24px; font-size: 12.5px; }
  .how-t { align-self: end; font-size: 17.5px; }
  .how-d { align-self: start; max-width: none; }
  .how-vip { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 22px 18px; }
  .how-vip-copy p { margin-left: auto; margin-right: auto; }
}

/* happy customers: their real messages arriving in a WhatsApp chat */
.pub-love { background: var(--pub-tissue); box-shadow: 0 0 0 100vmax var(--pub-tissue); clip-path: inset(0 -100vmax); margin-top: 48px !important; padding-bottom: 56px !important; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; }
.love-copy p { color: var(--pub-soft); max-width: 44ch; }
.love-cities { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0; }
.love-cities span { font-size: 13.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--b-berry); box-shadow: inset 0 0 0 1px var(--pub-line); }
.love-count { font-size: 15px; }
.love-count b { font-family: var(--pub-display); font-size: 34px; font-weight: 700; color: #B34070; margin-right: 6px; vertical-align: -3px; }
.love-chat { position: relative; border-radius: 24px; overflow: hidden; background: #efe7dd; box-shadow: 0 26px 50px -30px var(--pub-shadow), 0 0 0 1px rgba(0, 0, 0, 0.06); max-width: 460px; width: 100%; justify-self: center; }
.love-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #075e54; color: #fff; }
.love-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff7f9; font-size: 17px; flex: none; }
.love-head b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.love-head small { display: block; font-size: 12px; color: #d5ece8; }
.love-feed { height: 430px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 8px; background-color: #efe7dd; background-image: radial-gradient(rgba(120, 100, 80, 0.07) 1px, transparent 1.2px); background-size: 14px 14px; scrollbar-width: thin; }
.love-feed:focus-visible { outline: 2px solid var(--b-gold); outline-offset: -2px; }
.love-msg { position: relative; align-self: flex-start; max-width: 86%; padding: 7px 10px 6px; border-radius: 0 10px 10px 10px; background: #fff; color: #111b21; font-size: 15px; line-height: 1.4; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); display: flex; flex-direction: column; animation: lovePop 0.28s ease-out; }
.love-msg::before { content: ''; position: absolute; left: -8px; top: 0; border-style: solid; border-width: 0 8px 10px 0; border-color: transparent #fff transparent transparent; }
.love-msg:nth-child(3n) { align-self: flex-start; margin-left: 6%; }
.love-from { font-size: 12.5px; font-weight: 600; color: #a8326a; line-height: 1.3; }
.love-msg:nth-child(3n+1) .love-from { color: #0a7a5a; } .love-msg:nth-child(3n+2) .love-from { color: #6a4bb5; }
.love-stars { color: #a87a17; font-size: 13px; letter-spacing: 1px; }
.love-time { align-self: flex-end; font-size: 11.5px; color: #667781; margin-top: 1px; }
.love-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 0 10px 10px 10px; background: #fff; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.love-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: loveDot 1s infinite ease-in-out; }
.love-typing i:nth-child(2) { animation-delay: 0.15s; } .love-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes loveDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes lovePop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.love-all { position: absolute; right: 12px; bottom: 12px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 0; background: rgba(17, 27, 33, 0.78); color: #fff; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.love-all:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 2px; }
@media (max-width: 820px) { .pub-love { grid-template-columns: minmax(0, 1fr); gap: 18px; } .love-feed { height: 380px; } }
@media (prefers-reduced-motion: reduce) { .love-msg, .love-typing i { animation: none; } }

/* Servientrega: one typeface (Jost), four points, and the box that packs itself */
.pub .pub-ship-band.ship2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); grid-template-areas: 'brand art' 'title art' 'info art'; gap: 6px 28px; align-items: start; font-family: var(--pub-sans); }
.ship2 .pub-ship-brand { grid-area: brand; }
.ship2 .ship2-title { grid-area: title; font-family: var(--pub-sans); font-weight: 600; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.01em; line-height: 1.12; color: #14532d; margin: 12px 0 0; }
.ship2 .ship2-title::after { display: none; }
.ship2 .ship2-art { grid-area: art; align-self: center; display: grid; justify-items: center; position: relative; z-index: 2; }
.ship2 .ship2-info { grid-area: info; min-width: 0; }
.ship2 .pub-servibox { width: min(360px, 100%); overflow: visible; }
.pub-ship .ship2 .pub-ship-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ship2 .pub-ship-points b { font-family: var(--pub-sans); font-weight: 600; }
@media (max-width: 720px) {
  .pub .pub-ship-band.ship2 { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'brand' 'title' 'art' 'info'; }
  .ship2 .pub-servibox { width: min(290px, 84%); }
  .ship2 .ship2-art { margin: 8px 0 4px; }
}
@media (max-width: 420px) { .pub-ship .ship2 .pub-ship-points { grid-template-columns: minmax(0, 1fr); } }
.how-vip-copy h3 { line-height: 1.12; }
.love-count { display: flex; align-items: center; gap: 10px; }
.love-count b { margin: 0; vertical-align: 0; line-height: 1; }

/* Nov 12: numbers in the display face sit on the line */
.pub h1, .pub h2, .pub h3, .love-count b, .portal-page h1, .portal-page h2 { font-variant-numeric: lining-nums; }

/* Nov 12: on phones the three photos also sit around the iPhone (not in a row above it) */
@media (max-width: 900px) {
  .pub-hero-art { display: grid; grid-template-columns: minmax(0, 1fr); padding: 26px 0 8px; }
  .pub-hero-art .iphone { width: min(250px, 66vw); }
  .pub-hero-phone figcaption { max-width: min(250px, 66vw); }
  .pub-hero-art .pub-polaroid { position: absolute !important; width: clamp(88px, 27vw, 112px); padding: 5px 5px 7px; margin: 0; }
  .pub-hero-art .pub-polaroid.p0 { inset: 0 auto auto 0 !important; transform: rotate(-6deg); }
  .pub-hero-art .pub-polaroid.p1 { inset: 36% 0 auto auto !important; transform: rotate(5deg); }
  .pub-hero-art .pub-polaroid.p2 { inset: auto auto 15% 0 !important; transform: rotate(4deg); }
  .pub-hero-art .pub-polaroid figcaption { font-size: 12px; line-height: 1.15; }
}

/* when something breaks on screen, and the public page when it cannot load */
.crash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: #FFF7F9; color: #6E2E40; font-family: var(--pub-sans, 'Jost', system-ui, sans-serif); }
.crash h1 { font-size: 26px; margin: 0; }
.crash p { max-width: 44ch; margin: 0; line-height: 1.5; }
.crash button { border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; background: #C44B78; color: #fff; cursor: pointer; min-height: 44px; }
.pub-loadfail { display: grid; justify-items: center; gap: 10px; margin-top: 18px; text-align: center; color: var(--pub-ink); }
.pub-loadfail p { margin: 0; }
#site-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: #6E2E40; color: #fff; padding: 10px 16px; border-radius: 999px; font: 500 14px/1.3 'Jost', system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 1000; max-width: 90vw; }
#site-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* the public page and the customer link use the brand's two typefaces everywhere (buttons, inputs, tables too) */
.pub, .portal-page { --font: var(--pub-sans); }
/* the plain copy of the page that the server sends (shown for a moment before the app starts, and without scripts) */
.pub-pre { max-width: 760px; margin: 0 auto; padding: 22px 18px 60px; background: #FFF7F9; color: #6E2E40; font-family: 'Jost', system-ui, sans-serif; line-height: 1.55; }
.pub-pre header { padding: 6px 0 18px; }
.pub-pre h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: #B34070; font-size: clamp(40px, 9vw, 64px); line-height: 1.02; margin: 12px 0 14px; }
.pub-pre h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: #B34070; font-size: 32px; margin: 34px 0 10px; }
.pub-pre h3 { font-size: 17px; margin: 18px 0 4px; }
.pub-pre p, .pub-pre li { margin: 0 0 10px; }
.pub-pre a { color: #B34070; font-weight: 600; }

/* keyboard users jump past the menu; the customer link's page title keeps its look as a real heading */
.pub-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--b-berry); padding: 10px 16px; border-radius: 999px; font-weight: 600; box-shadow: var(--pub-shadow); }
.pub-skip:focus { top: 10px; }
h1.portal-top-label { margin: 0; font-family: var(--pub-sans); line-height: 1.2; }
#contenido:focus { outline: none; }

/* ══ Nov 13: one title typeface (Playfair Display), bigger hook, bigger hero photos, stores carousel, week calendar,
   VIP card with the EXAA Personal Shopper logo, savings banner, group button, scroll-driven Servientrega scene ══ */
.pub, .portal-page { font-variant-numeric: lining-nums; }
.pub h1, .pub h2, .pub h3 { font-family: var(--pub-display); font-weight: 700; letter-spacing: -0.012em; }
.pub-hero h1 { font-size: clamp(44px, 6.3vw, 74px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.pub h2 { font-size: clamp(30px, 4.3vw, 44px); line-height: 1.12; }
.pub h3 { letter-spacing: -0.005em; }
.how-t, .pub-tiers h3, .cmp-head h3 { font-family: var(--pub-display); font-weight: 700; }
.how-t { font-size: 18px; letter-spacing: -0.005em; }
.pub-polaroid figcaption { font-size: 14.5px; font-weight: 600; }

/* hero: the three photos a little bigger */
.pub-hero-art .pub-polaroid { width: clamp(140px, 34%, 226px); }
.pub-hero-art .pub-polaroid.p0 { inset: 1% auto auto -5% !important; }
.pub-hero-art .pub-polaroid.p1 { inset: 31% -6% auto auto !important; }
.pub-hero-art .pub-polaroid.p2 { inset: auto auto 8% -3% !important; }
@media (max-width: 900px) {
  .pub-hero-art { padding: 34px 0 8px; }
  .pub-hero-art .pub-polaroid { width: clamp(112px, 34vw, 142px); }
  .pub-hero-art .pub-polaroid.p0 { inset: 0 auto auto -2px !important; }
  .pub-hero-art .pub-polaroid.p1 { inset: 37% -2px auto auto !important; }
  .pub-hero-art .pub-polaroid.p2 { inset: auto auto 13% -2px !important; }
}

/* stores and brands: one row that moves on its own and that she can swipe, scroll or step through with the arrows */
.sbrand-wrap { position: relative; }
.sbrand-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--b-petal) transparent; padding: 10px 0 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); cursor: grab; }
.sbrand-scroll:focus-visible { outline: 2px solid var(--b-gold); outline-offset: -2px; }
.sbrand-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
.sbrand { flex: none; width: 172px; height: 86px; margin-right: 14px; display: grid; place-items: center; padding: 10px 14px; border-radius: 18px; background: #fff; text-align: center; box-shadow: inset 0 0 0 1px var(--pub-line), 0 10px 20px -16px var(--pub-shadow); user-select: none; }
.sbrand-name { font-family: var(--pub-display); font-weight: 700; font-size: 19px; line-height: 1.12; color: var(--b-berry); text-wrap: balance; }
.sbrand img { max-width: 100%; max-height: 58px; object-fit: contain; pointer-events: none; }
.sbrand-nav { position: absolute; top: calc(50% - 3px); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--b-gold); background: #fff; color: var(--b-berry); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 8px 16px -10px var(--pub-shadow); }
.sbrand-nav.prev { left: max(10px, calc((100vw - 1120px) / 2)); } .sbrand-nav.next { right: max(10px, calc((100vw - 1120px) / 2)); }
.sbrand-nav:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 2px; }
@media (max-width: 600px) { .sbrand { width: 138px; height: 74px; margin-right: 10px; } .sbrand-name { font-size: 16.5px; } .sbrand img { max-height: 48px; } .sbrand-nav { display: none; } }

/* calendar: one week at a time (this week and the next), titles only */
.pcal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pcal-head h2 { margin-bottom: 0; }
.pcal-week { display: flex; align-items: center; gap: 10px; }
.pcal-week > span { display: grid; min-width: 148px; text-align: center; line-height: 1.2; }
.pcal-week b { font-weight: 600; color: var(--b-berry); font-size: 16.5px; }
.pcal-week small { color: var(--pub-soft); font-size: 13.5px; }
.pcal-nav { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--b-gold); background: #fff; color: var(--b-berry); font-size: 22px; line-height: 1; cursor: pointer; }
.pcal-nav:disabled { opacity: 0.35; cursor: default; }
.pcal-nav:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 2px; }
.pcal-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 3px 12px; scrollbar-width: thin; scrollbar-color: var(--b-petal) transparent; }
.pcal-strip:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 2px; }
.pcal-card { flex: 0 0 calc((100% - 48px) / 7); min-width: 0; min-height: 168px; display: flex; flex-direction: column; gap: 9px; padding: 11px 9px 12px; border-radius: 16px; background: #fff; border: 1.5px solid var(--pub-line); }
.pcal-card.wk { scroll-snap-align: start; }
.pcal-card header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pcal-dow { font-size: 12.5px; font-weight: 500; text-transform: capitalize; color: var(--pub-soft); }
.pcal-num { font-family: var(--pub-display); font-weight: 700; font-size: 25px; line-height: 1; color: var(--b-berry); }
.pcal-hoy { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--b-rose); color: #fff; align-self: center; }
.pcal-card.today { border-color: var(--b-rose); box-shadow: 0 0 0 3px rgba(196, 75, 120, 0.16); }
.pcal-card.past { opacity: 0.58; }
.pcal-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; min-width: 0; }
.pcal-ev > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.pcal-ev { display: flex; align-items: flex-start; gap: 5px; padding: 6px 7px; border-radius: 9px; font-size: 13.5px; font-weight: 500; line-height: 1.25; background: var(--b-blush); color: var(--b-berry); }
.pcal-ev.confirma { background: var(--b-champagne); color: #5c4310; }
.pcal-ev.empaca { background: #fdeeda; color: #6a4a12; }
.pcal-ev.envia { background: #dff3e7; color: #11552f; }
.pcal-ev.nota { background: #fff; box-shadow: inset 0 0 0 1px var(--pub-line); }
.pcal-sample { margin: 8px 0 0; font-size: 13.5px; color: var(--pub-soft); }
@media (max-width: 820px) {
  .pcal-card { flex-basis: 38%; min-width: 132px; scroll-snap-align: start; min-height: 150px; }
  .pcal-head { justify-content: flex-start; }
  .pcal-week { width: 100%; justify-content: space-between; }
}

/* steps: titles in the title face; the VIP card is the brand's own appointment card */
.how-vip-card { width: 272px; aspect-ratio: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 18px 20px 20px; border-radius: 8px; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--pub-line), 0 22px 34px -22px var(--pub-shadow); transform: rotate(-2.2deg); text-align: left; }
.vip-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.vip-k { font-size: 10px; font-weight: 500; letter-spacing: 0.32em; color: var(--b-bronze); text-transform: none; }
.vip-rule { width: 40px; height: 2px; margin: 12px 0 9px; background: var(--gold-metal); }
.vip-title { font-family: var(--pub-display); font-size: 21px; font-weight: 600; line-height: 1.1; color: var(--b-berry); background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.vip-lines { display: grid; gap: 8px; width: 100%; margin-top: 10px; }
.vip-lines i { display: flex; align-items: flex-end; gap: 10px; font-style: normal; font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--b-berry); }
.vip-lines i::after { content: ''; flex: 1; border-bottom: 1px solid var(--b-champagne); transform: translateY(-2px); }

/* how much she saves: the number first, big */
.cmp-save { margin: 16px 0 0; padding: 16px 18px; border-radius: 18px; display: flex; align-items: center; gap: 16px; color: var(--b-berry); background: linear-gradient(135deg, #fff 0%, var(--b-blush) 100%); border: 1.5px solid var(--b-gold); box-shadow: 0 16px 30px -22px var(--pub-shadow); }
.cmp-save p { margin: 0; display: grid; gap: 2px; line-height: 1.1; min-width: 0; }
.cmp-save-k { font-size: 15px; font-weight: 600; color: var(--b-bronze); }
.cmp-save .cmp-save-n { font-family: var(--pub-sans); font-weight: 600; font-size: clamp(46px, 9.5vw, 68px); line-height: 1; color: #B34070; letter-spacing: -0.03em; }
.cmp-save-vs { font-size: 15px; color: var(--pub-soft); line-height: 1.3; margin-top: 3px; }
.cmp-save-pct { flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-metal); background-size: 200% 100%; color: var(--b-onyx); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; transform: rotate(-10deg); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5), 0 10px 18px -10px rgba(138, 100, 32, 0.75); }
@media (max-width: 420px) { .cmp-save { gap: 12px; padding: 14px; } .cmp-save-pct { width: 70px; height: 70px; font-size: 19px; } }

/* the button into the WhatsApp group */
.grp-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; width: min(100%, 372px); padding: 12px 14px 12px 12px; border-radius: 22px; text-decoration: none; color: #fff !important; background: linear-gradient(135deg, #C44B78 0%, #B34070 52%, #983160 100%); box-shadow: 0 20px 32px -18px rgba(152, 49, 96, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.grp-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.26) 50%, transparent 64%); transform: translateX(-120%); animation: grpShine 5s ease-in-out infinite; pointer-events: none; }
@keyframes grpShine { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.grp-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 36px -18px rgba(152, 49, 96, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 0 0 3px rgba(201, 161, 74, 0.45); }
.grp-cta:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 3px; }
.grp-ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: #B34070; }
.grp-txt { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; line-height: 1.2; }
.grp-txt b { font-size: 18.5px; font-weight: 600; letter-spacing: 0.01em; }
.grp-txt small { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-go { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-metal); background-size: 200% 100%; color: var(--b-onyx); }
@media (prefers-reduced-motion: reduce) { .grp-cta::after { animation: none; } .grp-cta { transition: none; } }

/* "Ver todos" shows every message at once, without the arriving animation */
.love-chat.all .love-msg { animation: none; }

/* Servientrega: the box follows the scroll; its points appear one by one when she reaches them */
.ship2 .box-stage { position: relative; width: min(390px, 100%); }
.ship2 .box-stage .pub-servibox { width: 100%; display: block; }
.sb-pulse { animation: sbPulse 2.6s ease-in-out infinite; }
@keyframes sbPulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.box-sparks { position: absolute; width: 0; height: 0; pointer-events: none; }
.box-sparks i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4px; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, #ffd978 48%, transparent 72%); opacity: 0; animation: boxSpark 2.4s ease-out infinite; }
.box-sparks i:nth-child(1) { --dx: -46px; animation-delay: 0s; } .box-sparks i:nth-child(2) { --dx: 34px; animation-delay: 0.5s; } .box-sparks i:nth-child(3) { --dx: -12px; animation-delay: 1s; } .box-sparks i:nth-child(4) { --dx: 58px; animation-delay: 1.4s; } .box-sparks i:nth-child(5) { --dx: -66px; animation-delay: 1.9s; }
@keyframes boxSpark { 0% { transform: translate(calc(var(--dx) * 0.3), 0) scale(0.4); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(var(--dx), -110px) scale(1.15); opacity: 0; } }
.pub-ship-points.armed li { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1); }
.pub-ship-points.armed li.in { opacity: 1; transform: none; }
@media (max-width: 720px) { .ship2 .box-stage { width: min(310px, 90%); } }
@media (prefers-reduced-motion: reduce) { .sb-pulse, .box-sparks i { animation: none; } .pub-ship-points.armed li { opacity: 1; transform: none; transition: none; } }
/* the purchases lifted out of the phone on their way to the box (a layer over the page; never catches a tap) */
.fly-layer { position: fixed; inset: 0; z-index: 25; overflow: hidden; pointer-events: none; }
.fly-msg { position: absolute; left: 0; top: 0; opacity: 0; display: grid; gap: 3px; padding: 5px 5px 7px; border-radius: 4px 12px 12px 12px; background: #fff; color: #111b21; font: 500 12.5px/1.25 'Jost', system-ui, sans-serif; box-shadow: 0 0 0 1px rgba(201, 161, 74, 0.55), 0 0 26px 6px rgba(255, 214, 120, 0.7), 0 14px 24px -12px rgba(60, 20, 35, 0.5); will-change: transform, opacity; }
.fly-msg b { font-size: 11.5px; font-weight: 600; color: #a8326a; }
.fly-msg img { display: block; width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 8px; }
.fly-msg span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Página pública (staff): the stores of the carousel */
.store-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.store-edit > div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.store-edit .se-logo { flex: none; width: 54px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: #fff; border: 1px dashed var(--line); font-size: 11px; color: var(--muted); cursor: pointer; overflow: hidden; }
.store-edit .se-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.store-edit .se-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
