/* ═══════════════════════════════════════════════════════════
   WedLedger — premium responsive UI
   Mobile (< 1024px): native-app shell, bottom tab bar, sheets
   Desktop (≥ 1024px): website shell, sidebar, modals
   ═══════════════════════════════════════════════════════════ */

@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 400; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 500; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }

:root {
  --bg: #f7f2eb;
  --bg-2: #efe6da;
  --surface: #fffdf9;
  --surface-2: #faf5ee;
  --line: #eadfd2;
  --line-2: #e0d2c1;
  --ink: #2b1d22;
  --ink-2: #5e4d50;
  --muted: #8f7f78;
  --wine: #5b1f33;
  --wine-2: #7a2c45;
  --rose: #a5546b;
  --gold: #b8913a;
  --gold-2: #d9bc7a;
  --champagne: #f4e6c8;
  --ok: #2f8f6b;
  --ok-bg: #e6f3ec;
  --warn: #b7791f;
  --warn-bg: #fbf0dc;
  --danger: #b3261e;
  --danger-bg: #fbe7e5;
  --info: #3b6a96;
  --info-bg: #e7eff7;
  --shadow-sm: 0 1px 2px rgba(60, 30, 40, .06), 0 1px 1px rgba(60, 30, 40, .04);
  --shadow: 0 10px 30px -12px rgba(70, 25, 40, .22), 0 2px 6px rgba(70, 25, 40, .05);
  --shadow-lg: 0 30px 60px -20px rgba(60, 20, 35, .35);
  --hero: linear-gradient(135deg, #4a1528 0%, #6e2640 48%, #8e4058 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --display: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jakarta', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tab-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #150d11;
  --bg-2: #1c1217;
  --surface: #20161b;
  --surface-2: #281c22;
  --line: #36262d;
  --line-2: #433039;
  --ink: #f6ece6;
  --ink-2: #d4c2bd;
  --muted: #a08e8a;
  --wine: #e7a9bb;
  --wine-2: #f0bccb;
  --rose: #d98aa1;
  --gold: #e0bf74;
  --gold-2: #c9a65b;
  --champagne: #3b2e1d;
  --ok: #5cc79c; --ok-bg: #173327;
  --warn: #e6b45a; --warn-bg: #352812;
  --danger: #f2837a; --danger-bg: #3a1916;
  --info: #8ab6e0; --info-bg: #172634;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  --hero: linear-gradient(135deg, #3a0f20 0%, #5a1d33 50%, #763149 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--wine); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: .2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ─────────── App shell ─────────── */
.app { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.sidebar { display: none; }
.main { min-width: 0; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .title { flex: 1; min-width: 0; }
.topbar .title h1 { font-family: var(--display); font-weight: 600; font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; color: var(--ink-2);
  box-shadow: var(--shadow-sm); transition: transform .15s, background .2s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }

.view { padding: 8px 16px 24px; max-width: 1280px; margin: 0 auto; animation: viewIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Bottom tab bar (mobile) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tab-h) + var(--safe-b)); padding: 8px 8px calc(8px + var(--safe-b));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(20px); -webkit-backdrop-filter: saturate(1.5) blur(20px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2px; color: var(--muted);
  text-decoration: none; border: 0; background: none; transition: color .2s;
}
.tab svg.i { width: 23px; height: 23px; }
.tab.active { color: var(--wine); }
.tab.active svg.i { stroke-width: 2.2; }
.tab-fab {
  justify-self: center; width: 56px; height: 56px; margin-top: -26px; border-radius: 20px; border: 0;
  background: var(--hero); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(91, 31, 51, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .2s;
}
.tab-fab:active { transform: scale(.92) rotate(45deg); }
.tab-fab svg.i { width: 26px; height: 26px; stroke-width: 2.2; }

/* ─────────── Desktop: website layout ─────────── */
@media (min-width: 1024px) {
  .app { grid-template-columns: 272px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh;
    padding: 26px 18px; background: var(--surface); border-right: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--hero); display: grid; place-items: center; color: var(--gold-2); box-shadow: var(--shadow); }
  .brand-name { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1; }
  .brand-tag { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
  .nav-label { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
  .nav-link {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
    color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s;
  }
  .nav-link:hover { background: var(--surface-2); color: var(--ink); }
  .nav-link.active { background: var(--champagne); color: var(--wine); }
  [data-theme="dark"] .nav-link.active { color: var(--gold); }
  .side-foot { margin-top: auto; display: grid; gap: 10px; }
  .side-card { padding: 16px; border-radius: 16px; background: var(--hero); color: #fff; position: relative; overflow: hidden; }
  .side-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); }
  .side-card .big { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--gold-2); }
  .main { padding-bottom: 40px; }
  .topbar { padding: 18px 36px; }
  .topbar .title h1 { font-size: 32px; }
  .topbar .title .sub { font-size: 13px; }
  .view { padding: 10px 36px 40px; }
  .tabbar, .mobile-only { display: none !important; }
}
@media (max-width: 1023.98px) { .desktop-only { display: none !important; } }

/* ─────────── Building blocks ─────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.card-head .link { font-size: 13px; font-weight: 600; color: var(--wine); text-decoration: none; background: none; border: 0; padding: 0; }
.section-title { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 26px 0 12px; display: flex; align-items: center; justify-content: space-between; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .md-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg-split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .lg-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719.98px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hero */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 22px; color: #fff;
  background: var(--hero); box-shadow: var(--shadow-lg);
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 230, 190, .16); pointer-events: none; }
.hero::before { width: 300px; height: 300px; right: -90px; top: -120px; }
.hero::after { width: 200px; height: 200px; right: -20px; top: -40px; }
.hero .eyebrow { font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold-2); opacity: .95; }
.hero .names { font-family: var(--display); font-size: 34px; font-weight: 600; margin-top: 4px; line-height: 1.05; }
.hero .names em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.names-edit { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 4px; vertical-align: middle; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: var(--gold-2); position: relative; z-index: 1; }
.names-edit svg.i { width: 16px; height: 16px; }
.hero-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; position: relative; z-index: 1; }
.hero-stats { flex: 1; display: grid; gap: 12px; }
.hero-stat .k { font-size: 12px; opacity: .72; }
.hero-stat .v { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.hero-countdown { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 600; position: relative; z-index: 1; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .lbl b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.ring .lbl span { font-size: 11px; opacity: .75; }
@media (min-width: 1024px) { .hero { padding: 30px 32px; } .hero .names { font-size: 46px; } .ring { width: 168px; height: 168px; } .hero-stats { grid-template-columns: repeat(3, 1fr); } }

/* KPI tiles */
.kpi { position: relative; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin-top: 6px; }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@media (min-width: 1024px) { .kpi { padding: 20px; } .kpi .v { font-size: 26px; } }

/* Progress */
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--ok); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar.warn > i { background: var(--warn); }
.bar.over > i { background: var(--danger); }
.bar.paid { height: 6px; }
.bar > i.paid { background: color-mix(in srgb, currentColor 30%, transparent); }

/* Pills & badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-danger { background: var(--danger-bg); color: var(--danger); }
.b-info { background: var(--info-bg); color: var(--info); }
.b-muted { background: var(--bg-2); color: var(--ink-2); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip.active { background: var(--wine); border-color: var(--wine); color: #fff; }
[data-theme="dark"] .chip.active { color: #1a0f13; }

/* Lists */
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left;
}
.row:last-child { border-bottom: 0; }
button.row { cursor: pointer; border-radius: 0; }
button.row:hover { background: var(--surface-2); }
.row .ava { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; flex: none; background: var(--surface-2); }
.row .body { flex: 1; min-width: 0; }
.row .t { font-weight: 650; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { text-align: right; font-weight: 700; white-space: nowrap; }
.row .amt .s { font-weight: 500; }
.amt-out { color: var(--ink); }
.amt-in { color: var(--ok); }

/* Alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 500; }
.alert svg.i { width: 18px; height: 18px; margin-top: 1px; }
.alert.danger { background: var(--danger-bg); color: var(--danger); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }

/* Category cards */
.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; transition: transform .15s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-top { display: flex; align-items: center; gap: 12px; }
.cat-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; flex: none; }
.cat-nums { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.cat-nums b { color: var(--ink); font-weight: 700; }

/* Timeline (functions) */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold-2), var(--rose)); border-radius: 2px; opacity: .6; }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item::before { content: ''; position: absolute; left: -23px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--gold); }
.tl-item.past::before { background: var(--gold); }
.tl-item.honeymoon::before { border-color: #2a8c82; }
.ev-card { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); width: 100%; text-align: left; cursor: pointer; }
.ev-card:hover { box-shadow: var(--shadow); }
.ev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ev-name { font-family: var(--display); font-size: 22px; font-weight: 600; }
.ev-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.ev-type { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: var(--gold); }

/* Tasks */
.task { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); background: none; display: grid; place-items: center; flex: none; color: #fff; transition: all .2s; }
.check.on { background: var(--ok); border-color: var(--ok); }
.check svg.i { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.check.on svg.i { opacity: 1; }
.task.done .t { text-decoration: line-through; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; letter-spacing: .1px;
  background: var(--wine); color: #fff; transition: transform .12s, filter .2s, box-shadow .2s; text-decoration: none; white-space: nowrap;
}
[data-theme="dark"] .btn:not(.ghost):not(.soft):not(.danger) { color: #1a0f13; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--hero); box-shadow: 0 10px 22px -10px rgba(91, 31, 51, .65); color: #fff !important; }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn.soft { background: var(--champagne); color: var(--wine); }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Forms */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .2px; }
.field .hint { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--line-2);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px;
  appearance: none; -webkit-appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 18%, transparent); }
.money-input { position: relative; }
.money-input::before { content: attr(data-cur); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money-input .input { padding-left: 32px; font-weight: 700; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.switch input { width: 46px; height: 28px; appearance: none; -webkit-appearance: none; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--bg-2); gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--wine); box-shadow: var(--shadow-sm); }
.search { position: relative; }
.search svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search .input { padding-left: 42px; }

/* Sheet / modal */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(28, 10, 18, .45); opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(105%); transition: transform .34s cubic-bezier(.2, .9, .25, 1);
  padding-bottom: var(--safe-b);
}
.sheet.open { transform: none; }
.sheet .grab { width: 42px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 10px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 8px 20px 12px; flex: none; }
.sheet-head h2 { flex: 1; font-family: var(--display); font-size: 26px; font-weight: 600; }
.sheet-body { overflow-y: auto; padding: 4px 20px 20px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex: none; }
.sheet-foot .btn { flex: 1; }
@media (min-width: 1024px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); max-height: 86vh; border-radius: 24px; transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .25s, opacity .2s; pointer-events: none; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .sheet .grab { display: none; }
  .sheet-head { padding-top: 20px; }
  .sheet.wide { width: min(760px, 94vw); }
}

/* Toast */
.toasts { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); top: calc(12px + var(--safe-t)); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.2); display: flex; gap: 10px; align-items: center; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }

/* Empty & loading */
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .em { font-size: 40px; }
.empty h4 { font-family: var(--display); font-size: 22px; color: var(--ink); margin: 6px 0 4px; }
.skel { border-radius: 18px; background: linear-gradient(90deg, var(--bg-2), var(--surface-2), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Ledger table (desktop) & cards (mobile) */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl .r { text-align: right; }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.ledger-day { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; padding: 14px 4px 4px; }

/* Charts */
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 320px; }
.chart-box.short { height: 220px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Auth */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
.auth-art { display: none; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 32px 22px calc(32px + var(--safe-b)); max-width: 460px; width: 100%; margin: 0 auto; }
.auth-top { position: relative; overflow: hidden; margin: -32px -22px 28px; padding: calc(56px + var(--safe-t)) 26px 40px; background: var(--hero); color: #fff; border-radius: 0 0 34px 34px; }
.auth-top::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 230, 190, .2); }
.auth-top h1 { font-family: var(--display); font-size: 42px; font-weight: 600; }
.auth-top p { opacity: .8; margin: 6px 0 0; }
.auth h2 { font-family: var(--display); font-size: 30px; font-weight: 600; margin-bottom: 4px; }
@media (min-width: 1024px) {
  .auth { grid-template-columns: 1.1fr 1fr; }
  .auth-art { display: flex; flex-direction: column; justify-content: space-between; padding: 56px; background: var(--hero); color: #fff; position: relative; overflow: hidden; }
  .auth-art::before, .auth-art::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 230, 190, .16); }
  .auth-art::before { width: 620px; height: 620px; right: -260px; bottom: -220px; }
  .auth-art::after { width: 420px; height: 420px; right: -160px; bottom: -120px; }
  .auth-art h1 { font-family: var(--display); font-size: 68px; font-weight: 600; line-height: 1; max-width: 560px; }
  .auth-art h1 em { color: var(--gold-2); font-weight: 500; }
  .auth-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 15px; opacity: .9; }
  .auth-art li::before { content: '✦'; color: var(--gold-2); margin-right: 10px; }
  .auth-top { display: none; }
  .auth-panel { padding: 56px; }
}

/* Misc */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.stack { display: grid; gap: 14px; align-content: start; }
.hstack { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 14px; }
.mt-lg { margin-top: 24px; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv b { font-weight: 700; }
.pay-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.verdict { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; }
.verdict .em { font-size: 30px; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
.verdict.over { background: var(--danger-bg); color: var(--danger); }
.verdict.near { background: var(--warn-bg); color: var(--warn); }
.verdict h4 { font-size: 17px; }
.plan-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); width: 100%; text-align: left; }
.fab-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fab-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; font-weight: 700; }
.fab-opt .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.fab-opt small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.more-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; box-shadow: var(--shadow-sm); }
.more-tile .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--champagne); color: var(--wine); }
.splash { min-height: 100dvh; display: grid; place-items: center; background: var(--hero); color: var(--gold-2); font-family: var(--display); font-size: 40px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ─────────── Invitations / guest list ─────────── */
.cbox { width: 20px; height: 20px; accent-color: var(--wine); flex: none; cursor: pointer; }
.guest { display: flex; gap: 12px; align-items: flex-start; padding: 14px 2px; border-bottom: 1px solid var(--line); transition: background .15s; }
.guest:last-child { border-bottom: 0; }
.guest.sel { background: color-mix(in srgb, var(--champagne) 55%, transparent); margin: 0 -14px; padding-left: 16px; padding-right: 16px; }
.guest .cbox { margin-top: 11px; }
.g-ava { width: 42px; height: 42px; border-radius: 14px; border: 0; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; color: #fff; background: #9a8f8a; }
.g-ava.groom { background: linear-gradient(135deg, #4a5b8c, #2f6f9f); }
.g-ava.bride { background: linear-gradient(135deg, #b04a7a, #d06a8a); }
.g-ava.common { background: linear-gradient(135deg, #b8913a, #d9bc7a); }
.g-body { flex: 1; min-width: 0; }
.g-name { background: none; border: 0; padding: 0; font-weight: 700; font-size: 15px; text-align: left; color: var(--ink); }
.g-meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.g-phone { display: flex; gap: 12px; align-items: center; margin-top: 4px; font-size: 13.5px; }
.g-phone a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-decoration: none; color: var(--wine); }
.g-phone a svg.i { width: 15px; height: 15px; }
.g-phone a.wa { color: var(--ok); font-size: 12.5px; }
.g-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.flag { padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; font-size: 12px; font-weight: 700; color: var(--muted); transition: all .15s; }
.flag.on { border-style: solid; border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.flag.warn.on { background: var(--warn-bg); color: var(--warn); }
.selbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); transform: translateY(140%); opacity: 0; transition: transform .28s cubic-bezier(.2, .9, .25, 1), opacity .2s; pointer-events: none; }
.selbar.open { transform: none; opacity: 1; pointer-events: auto; }
.selbar-in { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 10px 12px 12px; display: grid; gap: 8px; }
.selbar-actions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.selbar-actions .btn { flex: none; }
@media (min-width: 1024px) { .selbar { left: calc(272px + 36px); right: 36px; bottom: 22px; max-width: 900px; margin: 0 auto; } }
.drop { display: grid; place-items: center; gap: 4px; text-align: center; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: 18px; background: var(--surface-2); cursor: pointer; }
.drop:hover { border-color: var(--rose); }
.ev-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-pick label { position: relative; }
.ev-pick input { position: absolute; opacity: 0; }
.ev-pick span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.ev-pick input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.ev-pick input:focus-visible + span { outline: 2px solid var(--rose); }
.sheet-foot .btn.soft { flex: 1.2; }

/* ── Cost split */
.split-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.split-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; line-height: 1.2; }
.split-name small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.split-row .input { width: 104px; text-align: right; }
.split-unit { width: 22px; color: var(--muted); font-weight: 700; font-size: 13px; }
.split-total { margin-top: 6px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.split-total.ok { background: var(--ok-bg); color: var(--ok); }
.split-total.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.split-total.bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.who { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; margin: 2px 4px 2px 0; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.stacked { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.stacked i { display: block; height: 100%; }
.person { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--c); }
.person h4 { margin: 0; font-size: 17px; }
.person .big { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 2px; }
.mx { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
.mx th, .mx td { padding: 10px 8px; text-align: right; border-bottom: 1px dashed var(--line); }
.mx th:first-child, .mx td:first-child { text-align: left; }
.mx th { color: var(--muted); font-size: 12px; font-weight: 700; }
.mx tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--line); }
.tag-est { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.tag-act { background: var(--ok-bg); color: var(--ok); }

/* ── Wedding countdown */
.cd { position: relative; z-index: 1; margin-top: 16px; padding: 18px 16px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 230, 190, .28); text-align: center; }
.cd-label { font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.cd-days { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; font-family: var(--display); font-size: 84px; line-height: 1; font-weight: 600; margin: 6px 0 0; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.cd-days small { display: block; font-family: inherit; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-2); font-weight: 500; margin-top: 2px; }
.cd-clock { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.cd-clock div { min-width: 58px; padding: 8px 6px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.cd-clock b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.cd-clock span { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .72; }
.cd-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.cd-meta span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 600; }
.cd-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); margin-top: 14px; overflow: hidden; }
.cd-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), #fff); border-radius: 99px; }
@media (min-width: 1024px) { .cd-days { font-size: 120px; } .cd-clock b { font-size: 28px; } .cd-clock div { min-width: 76px; } }
.pill-cd { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--hero); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.hist { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.hist:last-child { border-bottom: 0; }
.hist .arrow { font-weight: 800; }
.rv { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rv .chip { padding: 6px 10px; font-size: 12px; }

/* ── Calculator & line items */
.calc { padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.calc-screen { font-size: 18px; font-weight: 700; text-align: right; }
.calc-res { text-align: right; font-weight: 800; font-size: 22px; color: var(--wine); margin: 6px 4px 10px; font-variant-numeric: tabular-nums; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc-keys button { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.calc-keys button.op { background: var(--bg-2); color: var(--wine); }
.calc-keys button:active { transform: scale(.96); }
.items { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 28px; gap: 6px; align-items: center; }
.item-row [data-f=name] { grid-column: 1 / -1; }
.item-row select.op { padding: 0 4px; text-align: center; text-align-last: center; font-weight: 800; font-size: 17px; background-image: none; }
.item-row .input { height: 42px; padding: 0 10px; }
.item-row .line { grid-column: 1 / -1; text-align: right; font-size: 12px; color: var(--muted); margin-top: -4px; }
@media (min-width: 560px) { .item-row { grid-template-columns: minmax(0, 1.5fr) 84px 54px 96px 104px 28px; } .item-row [data-f=name] { grid-column: auto; } .item-row .line { grid-column: auto; margin: 0; font-weight: 700; color: var(--ink); } }
.item-total { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 800; }

.close-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); border-left: 5px solid var(--ok); }
.close-card.over { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.close-card.ok { background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border-left-color: var(--gold); }
@media (max-width: 560px) { .close-card { flex-wrap: wrap; } .close-card .btn { width: 100%; } }

/* ── Calculator modal */
.money-input.has-calc .input { padding-right: 44px; }
.money-input input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.money-input input[type=number]::-webkit-inner-spin-button, .money-input input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--bg-2); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.calc-btn:hover { background: var(--surface-2); }
.money-input:has([data-calc]) .input { padding-right: 44px; }
.calc-modal { position: fixed; inset: 0; z-index: 400; background: rgba(20, 8, 14, .6); backdrop-filter: blur(4px); display: grid; place-items: end center; animation: fadeIn .2s; }
@media (min-width: 640px) { .calc-modal { place-items: center; } }
.calc-card { width: min(440px, 100%); max-height: 96dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); overflow: hidden; padding-bottom: var(--safe-b, 0); animation: slideUp .25s; }
@media (min-width: 640px) { .calc-card { border-radius: 26px; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.calc-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; font-size: 16px; }
.calc-tabs { display: flex; gap: 6px; padding: 6px 16px; }
.calc-tabs button { flex: 1; padding: 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.calc-tabs button.on { background: var(--wine); border-color: var(--wine); color: #fff; }
[data-theme="dark"] .calc-tabs button.on { color: #1a0f13; }
.calc-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; }
.calc-slides::-webkit-scrollbar { display: none; }
.calc-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 10px 16px 14px; overflow-y: auto; max-height: 56dvh; }
.calc-screen { font-size: 20px; font-weight: 700; text-align: right; height: 52px; }
.calc-res { text-align: right; font-weight: 800; font-size: 26px; color: var(--wine); margin: 6px 4px 10px; font-variant-numeric: tabular-nums; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.calc-keys button { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 19px; font-weight: 700; color: var(--ink); cursor: pointer; }
.calc-keys button.op { background: var(--bg-2); color: var(--wine); }
.calc-keys button:active { transform: scale(.95); }
.calc-add { display: flex; gap: 8px; margin-top: 12px; }
.calc-add .input { flex: 1; min-width: 0; }
.calc-add .btn { white-space: nowrap; }
.shake { animation: shake .35s; border-color: var(--danger) !important; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.calc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.calc-total { font-size: 24px; font-weight: 800; color: var(--wine); }
.calc-slide .item-row { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 28px; }
.calc-slide .item-row [data-f=name] { grid-column: 1 / -1; }
.calc-slide .item-row .line { grid-column: 1 / -1; order: 5; text-align: right; }
.split-new { margin: 4px 0 6px; }
.split-new .link { font-size: 13px; font-weight: 700; }

.row-wrap { display: flex; align-items: center; gap: 8px; }
.row-wrap .row { flex: 1; min-width: 0; }
.mark-paid { flex: none; padding: 7px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 12px; cursor: pointer; }
.mark-paid:hover { background: var(--ok); color: #fff; }

/* ── Invitation designer */
.inv-split { grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1100px) { .inv-split { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .phone-wrap { position: sticky; top: 84px; } }
.phone { width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 40px; border: 10px solid #17171a; background: #17171a; overflow: hidden; box-shadow: var(--shadow-lg); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 30px; background: #fff; display: block; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-pick label { position: relative; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick span { display: block; text-align: center; padding: 10px 6px 12px; border-radius: 16px; border: 2px solid var(--line); font-weight: 700; font-size: 13px; cursor: pointer; }
.theme-pick span i { display: block; height: 54px; border-radius: 10px; margin-bottom: 8px; background: linear-gradient(135deg, var(--a) 60%, var(--b) 60%); }
.theme-pick input:checked + span { border-color: var(--wine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine) 18%, transparent); }
.media-row { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.thumb.wide { width: 150px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; cursor: pointer; }
.thumb.add { display: grid; place-content: center; justify-items: center; gap: 2px; border-style: dashed; color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; text-align: center; }
.fn-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.fn-row:last-child { border-bottom: 0; }
.g-send { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.g-send button, .g-send a { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.g-send .wa-send { border-color: #25d36655; color: #128c4b; background: #25d36614; }
.rsvp-tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-left: 6px; }
.rsvp-yes { background: var(--ok-bg); color: var(--ok); } .rsvp-no { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); } .rsvp-maybe { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.g3-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .g3-filters { grid-template-columns: 1fr 1fr; } .g3-filters select:last-child { grid-column: 1 / -1; } }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 4px 8px; margin-top: 6px; border-bottom: 2px solid var(--line); font-size: 14px; position: sticky; top: 64px; background: var(--surface); z-index: 1; }
.g-head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.contact-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
@media (min-width: 640px) { .contact-row { grid-template-columns: 1fr 1.2fr 1fr; border-bottom: 0; padding-bottom: 0; } }
.theme-pick { grid-template-columns: repeat(3, 1fr); }
.theme-pick span i { display: grid; place-items: center; height: 70px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--a) 70%, #fff), var(--a) 55%, color-mix(in srgb, var(--a) 60%, #000)); }
.theme-pick span i em { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--b); }
.loc-box { padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 10px; }

/* ── Invitations list */
.inv-card { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; text-align: left; }
.inv-top { display: grid; place-items: center; height: 170px; overflow: hidden; text-decoration: none; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--a) 70%, #fff), var(--a) 55%, color-mix(in srgb, var(--a) 55%, #000)); }
.inv-top img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.inv-top em { font-family: var(--display); font-style: italic; font-size: 44px; color: var(--b); }
.inv-body { padding: 14px 16px 16px; }
.inv-card.add { align-items: center; justify-content: center; gap: 6px; min-height: 260px; border-style: dashed; color: var(--muted); cursor: pointer; background: transparent; }
.slug { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.slug span { padding: 0 4px 0 12px; font-size: 12.5px; color: var(--muted); white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
.slug .input { border: 0; border-radius: 0; padding-left: 4px; font-weight: 700; box-shadow: none !important; min-width: 0; }
.send-prev { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.send-prev img { width: 76px; border-radius: 8px; flex: none; border: 1px solid var(--line); }
.send-list { max-height: 170px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.send-list div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.send-list div:last-child { border-bottom: 0; }
.send-list span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* ── UX pass: quick actions, getting started, folded form sections, compact phone hero */
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.quick > * { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: 11.5px; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; transition: transform .15s, border-color .15s; }
.quick > *:hover { transform: translateY(-2px); border-color: var(--rose); }
.quick .i { width: 22px; height: 22px; color: var(--wine); }
@media (max-width: 719.98px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 4px; border: 0; border-bottom: 1px dashed var(--line); background: none; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.step:last-of-type { border-bottom: 0; }
.step .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2, var(--line)); display: grid; place-items: center; }
.step .tick .i { width: 13px; height: 13px; }
.step.done { color: var(--muted); text-decoration: line-through; cursor: default; }
.step.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.step > .i:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
details.more { border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
details.more summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary span { font-weight: 500; font-size: 12.5px; color: var(--muted); }
details.more summary::after { content: '+'; margin-left: auto; font-size: 20px; line-height: 1; color: var(--muted); }
details.more[open] summary::after { content: '−'; }
.more-in { display: grid; gap: 14px; padding: 2px 16px 16px; }
@media (max-width: 719.98px) {
  .cd { padding: 14px 12px; margin-top: 12px; }
  .cd-days { font-size: 64px; }
  .cd-clock { margin-top: 10px; gap: 8px; }
  .cd-clock div { min-width: 50px; padding: 6px 4px; }
  .cd-clock b { font-size: 18px; }
  .cd-meta { margin-top: 10px; }
  .cd-meta span { font-size: 11.5px; padding: 5px 10px; }
  .hero .names { font-size: 28px; }
  .hero-row { margin-top: 14px; gap: 14px; }
  .hero-row .ring { width: 104px; height: 104px; }
  .hero-stats { grid-template-columns: 1fr; gap: 6px; }
  .hero-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .hero-stat .v { font-size: 17px; }
}
/* keyboard focus is always visible */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.setup [data-hide-setup] { border: 0; background: none; padding: 6px 0 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; }
[hidden] { display: none !important; }

/* ── Contributor logins */
.access { display: block; width: 100%; margin-top: 10px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line-2, var(--line)); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access.on { border-style: solid; border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); color: var(--ok); }

/* ── Own invitation file + email preview */
.file-tile { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.file-tile img { width: 84px; height: 108px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.file-ico { width: 84px; height: 108px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #b3261e; color: #fff; font-weight: 800; letter-spacing: 1px; }
#mail-prev-frame { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
code { padding: 1px 6px; border-radius: 6px; background: var(--bg-2); font-size: 12px; }

/* ── Show / hide password */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: var(--bg-2); }
.pw-eye .i { width: 20px; height: 20px; }

/* ── Sub-categories shown on budget and function cards */
.sub-list { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); display: grid; gap: 4px; text-align: left; }
.sub-list > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.sub-list small { color: var(--muted); }
.sub-list .more-line { color: var(--muted); font-weight: 600; }

/* ── Common / Private switch */
.scope-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); gap: 2px; }
.scope-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.scope-seg button.on { background: var(--wine); color: #fff; }
[data-theme="dark"] .scope-seg button.on { color: #1a0f13; }
@media (max-width: 719.98px) { .scope-seg button { padding: 6px 9px; font-size: 11.5px; } .topbar .title .sub { display: none; } }
.switch.priv { border-color: color-mix(in srgb, var(--info) 40%, transparent); background: color-mix(in srgb, var(--info) 7%, transparent); }
.alert .link { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }
/* on a phone the switch gets its own row under the title, so nothing is squeezed */
@media (max-width: 719.98px) {
  .topbar { flex-wrap: wrap; }
  .scope-seg { order: 9; width: 100%; margin-top: 8px; }
  .scope-seg button { flex: 1; padding: 7px 6px; font-size: 12.5px; }
}

/* demo plan bar (shown while a new customer's payment is checked) */
.demo-bar { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: 10px; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--wine, #5b1f33); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 13px; }
.demo-bar .btn { flex: none; }
@media (max-width: 600px) { .demo-bar { top: auto; bottom: 84px; border-radius: 16px; } }

/* admin */
.admin-chips { padding: 0 16px; }
.admin-chips .chip, .admin a.kpi { text-decoration: none; }
.ld-fields .input { min-width: 0; width: 100%; }
@media (max-width: 600px) { .ld-fields { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .admin-phone { display: none !important; } }
.lead-board { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.lead-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 8px; min-height: 160px; }
.lead-col.drop { outline: 2px dashed var(--gold); }
.lead-col-head { font-weight: 700; font-size: 13px; padding: 4px 6px 8px; }
.lead-col .row { background: var(--surface); border-radius: 12px; margin-bottom: 6px; border: 1px solid var(--line); cursor: pointer; }
.lead-col .row[draggable=true] { cursor: grab; }
.pm-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* read-only banner (plan ended) */
.ro-banner { position: sticky; top: 0; z-index: 30; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--warn-soft, #fbf0d9); color: var(--ink, #2b1d22); border: 1px solid var(--line); font-size: 13.5px; }
@media (max-width: 600px) { .ro-banner { position: static; } }

/* grid and stack children may shrink below their content, so nothing pushes the page wider than a phone */
.grid > *, .stack > *, .lg-split > * { min-width: 0; }
.cat-card, .chart-box { max-width: 100%; }

/* ── Demo copy only (body.demo-on): hub, floating dock, guided story, inbox ── */
.dm-hub { min-height: 100vh; background: var(--bg); padding: calc(16px + var(--safe-t)) 16px 120px; max-width: 1180px; margin: 0 auto; }
.dm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dm-brand { display: flex; align-items: center; gap: 10px; }
.dm-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--hero); color: var(--gold-2); display: grid; place-items: center; }
.dm-name { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1; }
.dm-hero { background: var(--hero); color: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.dm-hero h1 { font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1.05; margin: 0 0 10px; }
.dm-hero h1 em { color: var(--gold-2); }
.dm-hero p { margin: 0 0 18px; opacity: .88; max-width: 620px; line-height: 1.5; }
.dm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dm-hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.dm-hero .btn.primary { background: #e3c88b; color: #3a0f20 !important; box-shadow: none; }
.dm-hero .btn.soft { background: rgba(255, 255, 255, .14); color: #fff; }
.dm-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0 0; }
.dm-money > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 2px; }
.dm-money b { font-family: var(--display); font-size: 26px; color: var(--wine); }
.dm-money span { font-size: 13px; color: var(--ink-2); }
.dm-h2 { font-family: var(--display); font-size: 26px; font-weight: 600; margin: 26px 0 12px; }
.dm-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dm-role { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; color: var(--ink); }
.dm-role:hover, .dm-role:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-2); }
.dm-role:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dm-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--champagne); color: var(--wine); display: grid; place-items: center; }
.dm-rt { font-weight: 800; font-size: 17px; }
.dm-who { font-size: 13px; color: var(--muted); }
.dm-role ul { margin: 4px 0 6px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.dm-go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--wine); font-size: 14px; }
.dm-go .i { width: 16px; height: 16px; }
.dm-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; }
.dm-foot a, .dm-foot .link-btn { color: var(--ink-2); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.dm-busy { opacity: .6; pointer-events: none; }
@media (min-width: 1024px) { .dm-hub { padding: 36px 36px 120px; } .dm-hero { padding: 40px 44px; } .dm-hero h1 { font-size: 54px; } }

.dm-dock { position: fixed; z-index: 60; right: 14px; bottom: calc(14px + var(--safe-b)); display: flex; gap: 8px; align-items: center; }
@media (max-width: 1023px) { body:has(.tabbar) .dm-dock { bottom: calc(var(--tab-h) + var(--safe-b) + 10px); } }
.dm-pill, .dm-round { border: 0; cursor: pointer; height: 44px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font: 700 13.5px var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; }
.dm-pill { padding: 0 16px; max-width: 56vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-round { width: 44px; }
.dm-round .i { width: 20px; height: 20px; }
.dm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-2) 35%, transparent); flex: none; }
.dm-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; }

.dm-switch { display: grid; gap: 8px; margin: 10px 0 16px; }
.dm-sw { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.dm-sw.on { border-color: var(--gold); background: var(--champagne); }
.dm-sw span { display: grid; }
.dm-sw small { color: var(--muted); font-size: 12.5px; }
.dm-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.dm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dm-steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dm-steps li:last-child { border-bottom: 0; }
.dm-steps p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.dm-n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--champagne); color: var(--wine); }
.dm-steps li.done .dm-n { background: var(--ok-bg); color: var(--ok); }
.dm-n .i { width: 16px; height: 16px; }

.dm-mails { display: grid; gap: 8px; }
.dm-mail { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.dm-mail:hover { border-color: var(--gold-2); }
.dm-mail small, .dm-mailhead small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.dm-mailhead { display: grid; gap: 2px; margin: 12px 0 10px; }
.dm-frame { width: 100%; min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }

/* the pay page in the demo: no real money */
body.demo-on #pay-qr { position: relative; }
body.demo-on #pay-qr::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .72); border-radius: 14px; }
body.demo-on #pay-qr::after { content: 'DEMO · do not pay'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); padding: 6px 10px; border: 3px solid var(--danger); border-radius: 8px; background: #fff; color: var(--danger); font: 800 14px var(--sans); white-space: nowrap; }
body.demo-on #pay-app { display: none !important; }
body.demo-on #pay-utr::before { content: 'Demo: type any 12 digits as the UTR, e.g. 123456789012'; display: block; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; }
