*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
:root{
  --cream:#FFFFFF;--ink:#3A352F;--gold:#C4A882;--gold-deep:#8B7355;--parchment:#E8E0D5;
  --muted:#9A9389;--surface:#F3EFE9;--border:#E0D8CF;--connector:#E7DECF;--red:#C0392B;--red-deep:#8B0000;
  --green:#4A7C59;--sep-ink:#9A4F95;--gt-couple:#9A7B2E;--gt-fam:#5B7BA0;--gt-house:#8A6BA8;--sidebar-w:188px;--sidebar-collapsed:56px;
  --shadow:0 2px 20px rgba(26,26,24,.07);--radius:12px;
  /* Pin native widgets (checkboxes, radios, date pickers, scrollbars) to the app's OWN
     active theme, not the OS/browser preference — the page's <meta color-scheme> meta tag
     otherwise lets a system dark-mode phone render them dark even while the app itself is
     in light mode (and vice versa), which is why an unstyled checkbox like .diet-cb could
     show up as a solid dark square on an all-light screen. */
  color-scheme:light;
}
/* The app's native widgets follow the app's theme even when landing.css (loaded later) flips the whole
   page to dark for a dark-mode phone — it did that whenever <html> had no data-theme="light", which left
   checkboxes solid dark on light screens. Set on <body> so it wins over anything set on <html>. */
body{color-scheme:light}
body.dark{color-scheme:dark}
/* …except the landing / sign-in screen, which deliberately follows the phone's dark mode. */
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) #welcome-overlay{color-scheme:dark}}
/* ── DARK MODE ── */
body.dark{
  color-scheme:dark;
  --cream:#191A1E;
  --ink:#D2CEC6;
  --gold:#B0A085;
  --gold-deep:#C3B69E;
  --appt-virtual-ink:#7FD9BD;
  --parchment:#212229;
  --muted:#7C7A80;
  --surface:#1B1B1F;
  --border:#2E2D33;
  --connector:#6B6657;
  --red:#C27070;
  --red-deep:#E08080;
  --sep-ink:#D8A9D3;
  --gt-couple:#C3B69E;
  --gt-fam:#8AA6C8;
  --gt-house:#B79AD0;
  --green:#5C8F72;
  --shadow:0 2px 28px rgba(0,0,0,.55);
}
/* Structural backgrounds */
body.dark,body.dark .app{background:#191A1E}
body.dark .sidebar{background:#1B1B1F;border-right-color:rgba(40,43,54,.5)}
body.dark .cal-cell{background:#1B1B1F;border-color:#26252B}
body.dark .cal-out{background:#161619}
body.dark .cal-ev-task{background:rgba(92,143,114,.18);color:#9fc97a}
body.dark .cal-ev-appt{background:rgba(196,168,130,.16);color:#C3B69E}
body.dark .cal-ev-bud{background:rgba(176,160,133,.16);color:#d8c3a0}
body.dark .cal-ev-wed{background:rgba(214,128,179,.16);color:#e7a6cd}
body.dark .cal-ev-evt{background:rgba(214,128,179,.16);color:#e7a6cd}
body.dark .cal-todaytag{color:#1B1B1F}
body.dark .topbar{background:#1B1B1F;border-bottom-color:rgba(40,43,54,.5)}
body.dark .sidebar-footer{border-top-color:#26252B}
body.dark .sidebar-header{border-bottom-color:#26252B}
/* Nav items */
body.dark .nav-item button{color:#B3B1B8}
body.dark .nav-item button .nav-icon{color:#A9A7AF}
body.dark .nav-item button:hover{color:#D2CEC6;background:#212229}
body.dark .nav-item button.active{color:#C3B69E;background:linear-gradient(90deg,rgba(168,152,128,.12),transparent)}
body.dark .nav-item button.active svg{stroke:#B0A085}
body.dark .sidebar-brand{color:#D2CEC6}

.eternal-logo{height:28px;width:auto;display:inline-block;vertical-align:middle;margin-right:8px;object-fit:contain;transition:filter .3s}
body.dark .eternal-logo{filter:invert(1) brightness(1.1)}
.sidebar-brand .eternal-logo{height:22px}
.topbar-eternal-logo{height:24px;vertical-align:middle;margin-right:7px}
.logo-swap{align-items:center}
.logo-img-dark{display:none}
body.dark .logo-img-light{display:none}
body.dark .logo-img-dark{display:block}
body.dark .topbar-eternal-logo{filter:invert(1) brightness(1.1)}

body.dark .topbar-title{color:#D2CEC6}
body.dark .topbar-sub{color:#6A6A72}
body.dark .topbar-toggle{color:#6A6A72}
body.dark .topbar-toggle:hover{color:#D2CEC6;background:#212229}
body.dark .sidebar-collapse-btn{color:#6A6A72}
body.dark .sidebar-collapse-btn:hover{color:#D2CEC6}
body.dark .sidebar-expand-btn{color:#6A6A72}
body.dark .sidebar-expand-btn:hover{color:#D2CEC6}
/* Cards */
body.dark .card{background:#202127;border-color:#2E2D33}
body.dark .stat-card{background:#202127;border-color:#2E2D33}
body.dark .budget-item{background:var(--cream);border-color:#45433C}
body.dark .guest-card{background:#212229;border-color:#2E2D33}
body.dark .couple-bracket{background:#202127;border-color:#B0A085;border-opacity:.4}
body.dark .couple-bracket{border-color:rgba(168,152,128,.35)}
body.dark .couple-bracket-header{background:linear-gradient(90deg,rgba(168,152,128,.08),#202127)}
body.dark .solo-bracket{background:#202127;border-color:#312F35}
body.dark .solo-bracket .guest-card{background:#1C1C20;border-color:#2E2D33}
body.dark .family-bracket{background:#202127;border-color:#4a5f7d}
body.dark .family-bracket-header{background:linear-gradient(90deg,rgba(74,99,138,.25),#202127);color:#9db8da;border-bottom-color:#3a4a60}
body.dark .family-inner .guest-card{background:#1C1C20;border-color:#2E2D33}
.fam-couple{border:1px solid var(--gold)}
.fam-couple-header{background:linear-gradient(90deg,#fdf4e7,var(--cream));color:var(--gold-deep);border-bottom:1px solid var(--parchment)}
body.dark .fam-couple{border-color:rgba(168,152,128,.35)}
body.dark .fam-couple-header{background:linear-gradient(90deg,rgba(168,152,128,.10),#202127);color:#b59b77;border-bottom-color:rgba(168,152,128,.18)}
body.dark .couple-inner .guest-card{background:#1C1C20;border-color:#2E2D33}
body.dark .table-card{background:#202127;border-color:#2E2D33}
body.dark .inspo-card{background:#202127;border-color:#2E2D33}
body.dark .palette-section{background:#202127;border-color:#2E2D33}
/* Forms */
body.dark .form-input{background-color:#24242B;color:#D2CEC6;border-color:#3A3940;color-scheme:dark}
body.dark .form-input:focus{border-color:#B0A085}
body.dark .form-input::placeholder{color:#5C5A60}
body.dark .form-input[type="date"]{color-scheme:dark}
body.dark .form-input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(72%) sepia(10%) saturate(420%) hue-rotate(8deg) brightness(92%);opacity:.95;cursor:pointer}
body.dark .rsvp-select{border-color:#3A3940 !important}
body.dark .rsvp-select.rsvp-attending{background-color:rgba(92,143,114,.12) !important;color:#9FC4AE !important}
body.dark .rsvp-select.rsvp-declined{background-color:rgba(180,60,60,.10) !important;color:#D49A9A !important}
body.dark .rsvp-select.rsvp-awaiting{background-color:#24242B !important;color:#D2CEC6 !important}
body.dark .rsvp-select option{background:#24242B;color:#D2CEC6}
body.dark .rsvp-set option{background:#24242B;color:#D2CEC6}
body.dark .form-label{color:#6A6A72}
body.dark select.form-input{background-color:#191A1E;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5B64' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 12px}
/* Total Budget input: brighter (white) with gold border in light mode; dark mode keeps default form-input styling */
.budget-total-input{background:#FFFFFF;border:1px solid var(--gold);text-align:right;height:30px;box-sizing:border-box;line-height:1;padding:0 14px 0 24px;width:128px;flex:0 0 128px}
.budget-total-input:focus{border-color:var(--gold-deep)}
body.dark .budget-total-input{background:#24242B;border:1px solid #3A3940;text-align:right;padding:0 14px 0 24px}
body.dark .budget-total-input:focus{border-color:#B0A085}
/* Budget summary layout switcher */
.budget-layout-btn{width:18px;height:18px;border-radius:5px;background:#FBF8F3;border:0.5px solid #E3D7C4;color:#CBBBA0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;padding:0}.budget-layout-btn:hover{color:#A89066;border-color:#D8C9B2;background:#F5EFE6}
/* Budget total lock toggle */
.budget-lock-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;margin-left:5px;flex-shrink:0;transition:all .15s}
.budget-lock-btn:hover{color:var(--gold-deep);border-color:var(--gold)}
.budget-lock-btn.open{color:var(--gold-deep);border-color:var(--gold)}
.budget-total-input.locked{color:var(--muted)}
.budget-total-input:not(.locked){border-color:var(--gold);box-shadow:0 0 0 2px rgba(196,168,130,.18)}
/* Mobile: narrow the total field and keep the search on the SAME row, to the right of
   the padlock — the row stops wrapping and the search shrinks to share the space. */
@media (max-width:600px){
  .budget-total-input{width:86px;flex:0 0 86px}
  .summary-head{flex-wrap:nowrap!important;margin-bottom:5px!important}
  .summary-head #budget-search-wrap{flex:1 1 90px!important;min-width:90px!important}
}
body.dark .budget-layout-btn{background:#24242A;border-color:#B0A085;color:#CBBBA0}
body.dark .budget-layout-btn:hover{color:#EAE6E0;border-color:#CBBBA0;background:#2C2C32}
.budget-glance-btn{width:30px;height:30px;border-radius:8px;background:#FBF8F3;border:0.5px solid #E3D7C4;color:#C9B89C;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;padding:0}.budget-glance-btn:hover{color:#A89066;border-color:#D8C9B2;background:#F5EFE6}
/* Budget top-bar buttons at the icon-only stage: fixed 40px wide to match the
   app-wide icon-button width (height stays 30px from .topbar-actions .btn). */
#bg-reports-btn.bg-icon-only,#bg-inv-btn.bg-icon-only,#bg-add-btn.bg-icon-only{width:40px!important;padding-left:0!important;padding-right:0!important;justify-content:center}
body.dark .budget-glance-btn{background:#24242A;border-color:#B0A085;color:#CBBBA0}
body.dark .budget-glance-btn:hover{color:#EAE6E0;border-color:#CBBBA0;background:#2C2C32}
/* Installment plan preset chips — follow the layout-switcher button convention */
.pay-preset-chip{font-size:11.5px;padding:7px 12px;border-radius:9px;cursor:pointer;background:#FBF8F3;border:.5px solid #E3D7C4;color:#8B7355;display:inline-flex;align-items:center;gap:5px;font-family:'Inter';transition:all .15s}
.pay-preset-chip:hover{background:#F5EFE6;border-color:#D8C9B2}
body.dark .pay-preset-chip{background:#24242A;border-color:#B0A085;color:#CBBBA0}
body.dark .pay-preset-chip:hover{background:#2C2C32;border-color:#CBBBA0;color:#EAE6E0}
.pay-radio-dot{position:absolute;inset:3px;border-radius:50%;background:var(--gold)}
/* Inline "view & download summary" button shown beside Total Budget when the summary is hidden.
   Icon-only by default; reveals its label on wide screens. Matches layout-button styling. */
.budget-report-inline-btn{height:26px;border-radius:6px;background:#FBF8F3;border:0.5px solid #E3D7C4;color:#C9B89C;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:all .15s;padding:0 7px;white-space:nowrap}
.budget-report-inline-btn:hover{color:#A89066;border-color:#D8C9B2;background:#F5EFE6}
.budget-report-inline-btn .brib-label{display:none;font-size:11.5px;font-weight:600}
@media (min-width:880px){.budget-report-inline-btn .brib-label{display:inline}}
body.dark .budget-report-inline-btn{background:#24242A;border-color:#B0A085;color:#CBBBA0}
body.dark .budget-report-inline-btn:hover{color:#EAE6E0;border-color:#CBBBA0;background:#2C2C32}
.budget-reports-menu{position:absolute;top:calc(100% + 6px);right:0;left:auto;z-index:70;width:248px;max-width:calc(100vw - 24px);background:var(--cream);border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 34px rgba(26,26,24,.16);padding:5px}
@media (max-width:600px){.budget-reports-menu{width:210px}}
body.dark .budget-reports-menu{box-shadow:0 10px 34px rgba(0,0,0,.5)}
.budget-reports-menu.hidden{display:none}
.brm-item{display:flex;align-items:flex-start;gap:6px;width:100%;padding:9px 7px;border:none;background:none;border-radius:8px;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink);cursor:pointer;text-align:left}
.brm-item:hover{background:var(--surface)}
.brm-item svg{color:var(--gold-deep);flex-shrink:0;margin-top:1px}
.brm-text{display:flex;flex-direction:column;line-height:1.3}
.brm-sub{font-size:11px;color:var(--muted);margin-top:1px}
/* Clickable budget-link info chip in checklist rows — subtle hover tint. */
.cl-link-chip{transition:background .15s}
.cl-link-chip:hover{background:#F3ECDF}
body.dark .cl-link-chip:hover{background:#2C2C32}
.inv-seg{display:inline-flex;border:1px solid var(--border);border-radius:7px;overflow:hidden;font-size:11px;font-family:'Inter',sans-serif}
.inv-seg button{padding:4px 11px;background:var(--cream);color:#A2957A;border:none;cursor:pointer;font-size:11px;font-family:inherit;transition:all .15s}
.inv-seg button+button{border-left:1px solid var(--border)}
.inv-seg button.active{background:#C4A882;color:#fff}
body.dark .inv-seg button{background:#24242A;color:#A2957A}
body.dark .inv-seg button+button{border-left-color:#3A3530}
body.dark .inv-seg button.active{background:#A2957A;color:#1B1A1E}
.age-badge-child{background:rgba(90,123,160,.14);color:var(--gt-fam)}
body.dark .age-badge-child{background:rgba(138,166,200,.18);color:#8AA6C8}
.age-badge-infant{background:rgba(154,79,149,.13);color:var(--sep-ink)}
body.dark .age-badge-infant{background:rgba(216,169,211,.16);color:#D8A9D3}
.age-badge-plusone{background:rgba(184,150,62,.15);color:var(--gold-deep)}
body.dark .age-badge-plusone{background:rgba(201,168,76,.18);color:#D9BC6E}
.rsvp-ageseg{display:inline-flex;border:.5px solid #E3D7C4;border-radius:6px;overflow:hidden;vertical-align:middle}
body.dark .rsvp-ageseg{border-color:#6E6450}
.rsvp-ageseg-btn{padding:3px 7px;background:#FBF8F3;color:#A2957A;border:none;cursor:pointer;font-size:10.5px;font-weight:600;font-family:'Inter',sans-serif;line-height:1;transition:all .15s}
.rsvp-ageseg-btn+.rsvp-ageseg-btn{border-left:.5px solid #E3D7C4}
body.dark .rsvp-ageseg-btn{background:#24242A;color:#A2957A}
body.dark .rsvp-ageseg-btn+.rsvp-ageseg-btn{border-left-color:#6E6450}
.rsvp-ageseg-btn.on{background:#C4A882;color:#fff}
body.dark .rsvp-ageseg-btn.on{background:#A2957A;color:#1B1A1E}
.budget-style-menu{position:absolute;top:24px;right:0;background:var(--cream);border:0.5px solid var(--border);border-radius:10px;padding:4px;min-width:116px;box-shadow:0 6px 24px rgba(0,0,0,.14);z-index:45}
.budget-style-item{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:7px;font-size:12.5px;color:var(--ink);cursor:pointer}
.budget-style-item:hover{background:var(--surface)}
.budget-style-item.active{color:var(--gold-deep);font-weight:500}
.bsm-check{margin-left:auto;opacity:0}
.budget-style-item.active .bsm-check{opacity:1}
/* Per-head segment toggle inside the Budget options popup */
.bphd-seg{font-family:'Inter',sans-serif;font-size:11.5px;padding:6px 14px;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
/* Budget Text-size segment: equal-width cells + tighter padding/font so all
   options fit the cog menu (desktop has four: Small/Standard/Large/X Large). */
#budget-textsize-seg .bphd-seg{flex:1 1 0;min-width:0;justify-content:center;gap:0;padding:6px 4px;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Tap/hover info-icon + popover (global copy so it works outside the label modal,
   e.g. in the Budget cog menu). */
.lbl-tip{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;padding:0;border:none;background:none;color:var(--muted);cursor:pointer;flex-shrink:0;border-radius:50%}
.lbl-tip:hover{color:var(--gold-deep)}
.lbl-tip.on{color:var(--gold-deep)}
.lbl-tip-pop{position:fixed;z-index:1300;max-width:230px;background:var(--cream);color:var(--ink);border:1px solid var(--border);border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.16);padding:8px 11px;font-size:11.5px;line-height:1.4;font-family:'Inter',sans-serif}
.bphd-seg+.bphd-seg{border-left:1px solid var(--border)}
.bphd-seg.on{background:var(--gold-deep);color:#fff}
.bphd-seg.off{background:transparent;color:var(--muted)}
body.dark .bphd-seg.on{background:var(--gold);color:#1C1D22}
body.dark .bphd-seg+.bphd-seg{border-color:#3A3B42}
.si-seg{font-family:'Inter',sans-serif;font-size:11.5px;padding:6px 14px;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.si-seg-wrap{align-self:flex-start;max-width:max-content}
.appt-type-chip,.appt-loc-chip{font-family:'Inter',sans-serif;font-size:11.5px;padding:5px 12px;border-radius:16px;cursor:pointer;transition:all .15s;border:1px solid var(--border);display:inline-flex;align-items:center;gap:4px}
.appt-type-chip.on,.appt-loc-chip.on{background:var(--gold-deep);color:#fff;border-color:var(--gold-deep)}
.appt-type-chip.off,.appt-loc-chip.off{background:transparent;color:var(--muted)}
body.dark .appt-type-chip.on,body.dark .appt-loc-chip.on{background:var(--gold);color:#1C1D22;border-color:var(--gold)}
.appt-end-seg-btn{font-family:'Inter',sans-serif;font-size:11px;padding:4px 12px;border-radius:6px;cursor:pointer;border:none;background:none;color:var(--muted);transition:all .15s}
.appt-end-seg-btn.on{background:var(--gold-deep);color:#fff;font-weight:600}
body.dark .appt-end-seg-btn.on{background:var(--gold);color:#1C1D22}
.appt-dur-chip{font-family:'Inter',sans-serif;font-size:11.5px;padding:6px 12px;border-radius:16px;cursor:pointer;transition:all .15s;border:1px solid var(--border);background:transparent;color:var(--muted)}
.appt-dur-chip.on{background:var(--gold-deep);color:#fff;border-color:var(--gold-deep);font-weight:600}
body.dark .appt-dur-chip.on{background:var(--gold);color:#1C1D22;border-color:var(--gold)}
.appt-dur-chip.dashed{border-style:dashed;color:var(--gold-deep)}
.appt-dur-chip.dashed.on{color:#fff}
body.dark .appt-dur-chip.dashed.on{color:#1C1D22}
.tp{position:relative}
.tp-field{width:100%}
.tp-panel{margin-top:6px;border:1px solid var(--border);border-radius:9px;background:var(--cream);overflow:hidden}
.tp-cols{display:flex;height:96px}
.tp-col{flex:1;overflow-y:auto;border-right:.5px solid var(--border);padding:3px 0;scrollbar-width:thin}
.tp-col-ap{flex:.8;border-right:none}
.tp-col::-webkit-scrollbar{width:5px}
.tp-col::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}
.tp-opt{text-align:center;font-size:12px;color:var(--muted);padding:4px 3px;cursor:pointer;transition:background .12s,color .12s}
.tp-opt:hover{background:var(--surface);color:var(--ink)}
.tp-opt.on{background:var(--gold);color:#fff;font-weight:500}
body.dark .tp-opt.on{background:var(--gold);color:#1C1D22}
.si-seg+.si-seg{border-left:1px solid var(--border)}
.si-seg.on{background:var(--gold-deep);color:#fff}
.si-seg.off{background:transparent;color:var(--muted)}
body.dark .si-seg.on{background:var(--gold);color:#1C1D22}
body.dark .si-seg+.si-seg{border-color:#3A3B42}
/* Sub-item extras chip strip (Per item / Per head / Discount) */
.si-chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:5px 7px;background:var(--surface);border:.5px solid var(--border);border-radius:7px}
.si-chip{display:inline-flex;align-items:center;padding:2px 7px;border:.5px solid var(--border);border-radius:4px;background:var(--cream);font-size:10.5px;color:var(--muted);cursor:pointer;font-family:'Inter',sans-serif;line-height:1.5}
.si-chip:hover{color:var(--ink)}
.si-chip.on{background:#F3EFE9;color:#7A6230}
body.dark .si-chip{background:var(--surface);color:var(--muted)}
body.dark .si-chip.on{background:rgba(196,168,130,.15);color:#C3B69E}
.si-chip-sep{width:.5px;height:12px;background:var(--border);flex-shrink:0;margin:0 1px}
/* Invoice/doc badge: hide the word on narrow screens, keep the count */
.attach-badge-word{white-space:nowrap}
@media(max-width:600px){.attach-badge-word{display:none}}
/* Documents view header buttons: full labels on desktop, compact on mobile */
.doc-act-short{display:none;align-items:center}
@media(max-width:600px){
  .doc-act-long{display:none}
  .doc-act-short{display:inline-flex}
}
/* Display options popup (combined summary layout + header style) */
.dop-sec{font-family:'Inter',sans-serif;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:9px}
.dop-grid{display:grid;gap:8px}
.dop-grid-4{grid-template-columns:repeat(4,1fr)}
.dop-opt{display:flex;flex-direction:column;gap:5px;align-items:center;background:var(--parchment);border:1px solid var(--border);border-radius:10px;padding:7px;cursor:pointer;transition:border-color .15s,background .15s}
.dop-opt:hover{background:var(--surface)}
.dop-opt.sel{border-width:2px;padding:6px;border-color:var(--gold-deep);background:#FFF}
.dop-tn{width:100%;height:40px;border-radius:6px;border:1px solid var(--border);background:#FFF;position:relative;overflow:hidden;display:block}
.dop-tn i{position:absolute;display:block;background:var(--gold);border-radius:1px}
.dop-tn i.dop-red{background:var(--red)!important}
.dop-tn i.dop-grn{background:var(--green)!important}
.dop-tn i.dop-mut{background:var(--border)!important}
.dop-tn i.dop-ring{background:none!important;border:2px solid var(--red);border-radius:50%}
.dop-name{font-family:'Inter',sans-serif;font-size:9.5px;font-weight:600;color:var(--muted);text-align:center;line-height:1.1}
.dop-opt.sel .dop-name{font-weight:700;color:var(--gold-deep)}
@media(max-width:520px){.dop-grid-4{grid-template-columns:repeat(2,1fr)}}
body.dark .dop-sec{color:var(--gold)}
body.dark .dop-opt{background:#1C1D22;border-color:#34353C}
body.dark .dop-opt:hover{background:#26272D}
body.dark .dop-opt.sel{border-color:var(--gold);background:#222329}
body.dark .dop-tn{background:#15161A;border-color:#34353C}
body.dark .dop-tn i{background:var(--gold-deep)}
body.dark .dop-tn i.dop-mut{background:#3A3B42!important}
body.dark .dop-name{color:#9A968E}
body.dark .dop-opt.sel .dop-name{color:var(--gold)}
/* Currency Format option cards */
.curr-fmt-opt .curr-fmt-name{color:var(--ink)}
.curr-fmt-opt.sel .curr-fmt-name{color:var(--gold-deep)}
body.dark .curr-fmt-opt .curr-fmt-name{color:var(--ink)}
body.dark .curr-fmt-opt.sel{background:#222329!important;border-color:var(--gold)!important}
.backup-pill{display:inline-block;font-size:10.5px;line-height:1.5;border-radius:10px;padding:2px 9px;white-space:nowrap}
.backup-pill-ok{background:#EAF3DE;color:#3B6D11}
.backup-pill-stale{background:#FAEEDA;color:#854F0B}
.backup-pill-never{background:#FCEBEB;color:#A32D2D}
/* A guest-given value is EVIDENCE, and reads green — distinct from the gold of a value
   Mandy typed, which is a guess. Class-based with a dark override; never a hardcoded
   light rgba inside a JS template. */
.gt-chip-guest{background:#EAF3DE!important;color:#3B6D11!important;border-color:transparent!important}
.gt-src-guest{color:#3B6D11}
body.dark .gt-chip-guest{background:rgba(92,143,114,.20)!important;color:#9fc97a!important}
body.dark .gt-src-guest{color:#9fc97a}
/* A control that cannot work yet must LOOK like it cannot work yet. */
.needs-host{opacity:.5;pointer-events:none}
.needs-host-note{font-size:11px;color:var(--muted);background:var(--surface);border:1px dashed var(--border);border-radius:8px;padding:8px 11px;margin-top:8px;line-height:1.55}
body.dark .backup-pill-ok{background:rgba(92,143,114,.18);color:#9fc97a}
body.dark .backup-pill-stale{background:rgba(176,160,133,.18);color:#d8c3a0}
body.dark .backup-pill-never{background:rgba(194,112,112,.18);color:#E08080}
body.dark .curr-fmt-opt:not(.sel){border-color:#4A4852!important}
body.dark .curr-fmt-opt.sel .curr-fmt-name{color:var(--gold)}
body.dark .s-opt-btn:not(.sel){border-color:#45434B!important}
/* Badge picker icon cells */
.badge-pick-cell{transition:background .15s,color .15s}
.badge-cell-bal{background:rgba(192,57,43,.16);color:var(--red)}
.badge-cell-dep{background:rgba(196,168,156,.30);color:var(--gold-deep)}
body.dark .badge-cell-bal{background:rgba(194,112,112,.22);color:var(--red)}
body.dark .badge-cell-dep{background:rgba(176,160,133,.22);color:var(--gold)}
/* Hero layout switcher (deep-beige, no label, no checks) */
.hero-style-switch{position:absolute;top:16px;right:16px;z-index:30;pointer-events:auto}
.hero-style-btn{width:18px;height:18px;border-radius:5px;background:#FBF8F3;border:.5px solid #E3D7C4;color:#CBBBA0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;padding:0}
.hero-style-btn:hover{color:#A89066;border-color:#D8C9B2;background:#F5EFE6}
body.dark .hero-style-btn{background:#24242A;border-color:#6E6450;color:#A2957A}
body.dark .hero-style-btn:hover{color:#CBBBA0;border-color:#A2957A;background:#2C2C32}
.hero-style-menu{position:absolute;top:24px;right:0;background:var(--cream);border:.5px solid var(--border);border-radius:10px;padding:4px;min-width:116px;box-shadow:0 6px 24px rgba(0,0,0,.14);z-index:45}
.hero-style-item{display:flex;align-items:center;padding:7px 9px;border-radius:7px;font-size:12.5px;color:var(--ink);cursor:pointer}
.hero-style-item:hover{background:var(--surface)}
.hero-style-item.active{color:var(--gold-deep);font-weight:500}
/* KPI stat-card layout switcher */
.kpi-style-switch{position:absolute;top:16px;right:16px;z-index:30;pointer-events:auto;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.kpi-style-btn{width:18px;height:18px;border-radius:5px;background:#FBF8F3;border:.5px solid #E3D7C4;color:#CBBBA0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;padding:0}
.kpi-style-btn:hover{color:#A89066;border-color:#D8C9B2;background:#F5EFE6}
body.dark .kpi-style-btn{background:#24242A;border-color:#6E6450;color:#A2957A}
body.dark .kpi-style-btn:hover{color:#CBBBA0;border-color:#A2957A;background:#2C2C32}
.settings-card.layout-cards{max-width:820px!important;gap:18px!important}
.settings-card.layout-cards>.settings-sect{background:#FFFFFF;border:.5px solid #EAE0D0;border-radius:14px;padding:18px 20px;margin:0}
body.dark .settings-card.layout-cards>.settings-sect{background:rgba(255,255,255,0.055);border-color:#34333A}
.settings-seg{font-family:'Inter',sans-serif;font-size:11.5px;font-weight:500;border:none;background:transparent;color:var(--muted);border-radius:6px;padding:5px 9px;cursor:pointer;transition:all .12s;white-space:nowrap}
.settings-seg.on{background:#FBF8F3;border:.5px solid #E3D7C4;color:var(--gold-deep);font-weight:600}
body.dark .settings-seg.on{background:var(--parchment);border-color:#3A3942}
.settings-page-hdr{font-family:'Cormorant Garamond',serif;font-size:20px;font-weight:500;margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.settings-page-hdr .spg-eyebrow{display:block;font-family:'Inter',sans-serif;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:3px}
.guest-collapsed-bar{background:#FAFAF8}
.gcb-w-short{display:none}
body.dark .guest-collapsed-bar{background:#202127}
.import-file-btn{background:#FBF8F3;border:.5px solid #E3D7C4;border-radius:8px;color:#5F5A52;font-family:inherit;font-size:12.5px;font-weight:500;cursor:pointer;transition:all .15s}
.import-file-btn svg{color:#C9B89C;flex-shrink:0}
.import-file-btn:hover{border-color:#D8C9B2;background:#F5EFE6}
.import-file-btn:hover svg{color:#A89066}
body.dark .import-file-btn{background:#1B1B1F;border-color:#2E2D33;color:#D2CEC6}
body.dark .import-file-btn svg{color:#B0A085}
body.dark .import-file-btn:hover{border-color:#A2957A;background:#24242A}
/* KPI stat grid: 4 across on wide screens, 2x2 below ~600px, boxes fluid */
.kpi-stat-grid{grid-template-columns:repeat(4,1fr) !important}
@media(max-width:600px){.kpi-stat-grid{grid-template-columns:repeat(2,1fr) !important}}
.kpi-plaque{box-shadow:inset 0 0 0 3px var(--cream), inset 0 0 0 3.5px #EADFCB;transition:box-shadow .15s,transform .15s}
.kpi-plaque:hover{transform:translateY(-1px);box-shadow:inset 0 0 0 3px var(--cream), inset 0 0 0 4px #D8C9B2}
body.dark .kpi-plaque{box-shadow:inset 0 0 0 3px var(--cream), inset 0 0 0 3.5px #3A3528}
body.dark .kpi-plaque:hover{box-shadow:inset 0 0 0 3px var(--cream), inset 0 0 0 4px #4A442F}
.kpi-style-menu{position:absolute;top:26px;right:0;background:var(--cream);border:.5px solid var(--border);border-radius:10px;padding:4px;min-width:116px;box-shadow:0 6px 24px rgba(0,0,0,.14);z-index:45}
.kpi-style-item{display:flex;align-items:center;padding:7px 9px;border-radius:7px;font-size:12.5px;color:var(--ink);cursor:pointer}
.kpi-style-item:hover{background:var(--surface)}
.kpi-style-item.active{color:var(--gold-deep);font-weight:500}
/* RSVP Response Summary layout switcher (shares unified Option B button style) */
.rsvp-style-switch{position:absolute;top:16px;right:16px;z-index:30}
.rsvp-style-btn{width:18px;height:18px;border-radius:5px;background:#FBF8F3;border:.5px solid #E3D7C4;color:#CBBBA0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;padding:0}
.rsvp-style-btn:hover{color:#A89066;border-color:#D8C9B2;background:#F5EFE6}
body.dark .rsvp-style-btn{background:#24242A;border-color:#6E6450;color:#A2957A}
body.dark .rsvp-style-btn:hover{color:#CBBBA0;border-color:#A2957A;background:#2C2C32}
.rsvp-style-menu{position:absolute;top:24px;right:0;background:var(--cream);border:.5px solid var(--border);border-radius:10px;padding:4px;min-width:116px;box-shadow:0 6px 24px rgba(0,0,0,.14);z-index:45}
.rsvp-style-item{display:flex;align-items:center;padding:7px 9px;border-radius:7px;font-size:12.5px;color:var(--ink);cursor:pointer}
.rsvp-style-item:hover{background:var(--surface)}
.rsvp-style-item.active{color:var(--gold-deep);font-weight:500}
/* Vision board layout dropdown */
.vb-layout-select{position:relative;display:inline-block}
.vb-layout-trigger{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--ink);font-size:12.5px;font-weight:500;cursor:pointer;font-family:'Inter',sans-serif;transition:all .15s}
.vb-layout-trigger:hover{border-color:var(--gold)}
.vb-layout-chev{transition:transform .18s}
.vb-layout-select.open .vb-layout-chev{transform:rotate(180deg)}
.vb-layout-menu{position:absolute;top:calc(100% + 6px);right:0;left:auto;background:var(--cream);border:1px solid var(--border);border-radius:11px;padding:5px;min-width:196px;box-shadow:0 8px 28px rgba(0,0,0,.16);z-index:50}
.vb-layout-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;font-size:13px;color:var(--ink);cursor:pointer}
.vb-layout-item:hover{background:var(--surface)}
.vb-layout-item.active{background:var(--parchment);color:var(--gold-deep);font-weight:500}
.vb-li-ic{width:18px;display:inline-flex;justify-content:center;flex-shrink:0;color:var(--muted)}
.vb-layout-item.active .vb-li-ic{color:var(--gold-deep)}
.vb-li-text{display:flex;flex-direction:column;line-height:1.25}
.vb-li-sub{font-size:10.5px;color:var(--muted);margin-top:1px;font-weight:400}
.vb-li-tick{margin-left:auto;color:var(--gold-deep);opacity:0;flex-shrink:0}
.vb-layout-item.active .vb-li-tick{opacity:1}
body.dark .vb-layout-trigger{border-color:#2E2D33;color:#D2CEC6}
body.dark .vb-layout-trigger:hover{border-color:#B0A085}
body.dark .vb-layout-item.active{background:#2C2C32}
@media(max-width:560px){.vb-tb-label{display:none!important}.vb-layout-trigger{gap:4px;padding:6px 8px}.vb-toolbar{gap:5px!important}}
.inspo-btn-short{display:none}
@media(max-width:600px){.inspo-btn-long{display:none}.inspo-btn-short{display:inline}.inspo-vb-btn,.inspo-add-btn{padding-left:10px!important;padding-right:10px!important}}
/* Custom colour picker */
body.dark .hex-input-wrap{background:#24242B;border-color:#3A3940}
body.dark .hex-text-input{background:#24242B;color:#D2CEC6}
body.dark .hex-prefix{background:#1B1B1F;color:#6A6A72;border-right-color:#2E2D33}
/* Buttons */
body.dark .btn-primary{background:#B0A085;color:#191A1E}
body.dark .btn-primary:hover{background:#C3B69E}
body.dark .btn-outline{border-color:#2E2D33;color:#D2CEC6}
body.dark .btn-outline:hover{border-color:#B0A085;color:#C3B69E}
body.dark .btn-ghost{color:#6A6A72}
body.dark .btn-ghost:hover{color:#D2CEC6;background:#212229}
body.dark .btn-danger{background:rgba(194,112,112,.12);color:#C27070}
body.dark .btn-danger:hover{background:rgba(194,112,112,.2)}
/* Dropdowns */
body.dark .dots-dropdown{background:#212229;border-color:#2E2D33;box-shadow:0 8px 32px rgba(0,0,0,.6)}
body.dark .dots-dropdown button{color:#D2CEC6}
body.dark .dots-dropdown button:hover{background:#2E2D33}
body.dark .dots-dropdown button.danger{color:#C27070}
body.dark .dots-dropdown button.danger:hover{background:rgba(194,112,112,.12)}
/* Modal */
body.dark .modal{background:#202127;border:1px solid #2E2D33}
body.dark .modal-overlay{background:rgba(0,0,0,.72)}
body.dark .modal-title{color:#D2CEC6}
body.dark .modal-close{color:#6A6A72}
body.dark .modal-close:hover{color:#D2CEC6}
/* Text & labels */
body.dark .section-eyebrow{color:#B0A085}
body.dark .section-title{color:#D2CEC6}
body.dark .stat-value{color:#D2CEC6}
body.dark .stat-label{color:#6A6A72}
body.dark .budget-amount{color:#D2CEC6}
body.dark .guest-name{color:#D2CEC6}
body.dark .guest-sub{color:#6A6A72}
body.dark .check-label{color:#D2CEC6}
body.dark .check-label.done{color:#D2CEC6}
body.dark .check-meta{color:#6A6A72}
body.dark .table-title{color:#D2CEC6}
body.dark .inspo-body{color:#D2CEC6}
body.dark .couple-bracket-header{color:#B0A085}
/* Badges */
body.dark .badge-muted{background:#212229;color:#6A6A72}
body.dark .badge-green{background:rgba(92,143,114,.12);color:#7AAF90}
body.dark .badge-red{background:rgba(194,112,112,.1);color:#C27070}
body.dark .badge-gold{background:rgba(168,152,128,.1);color:#C3B69E}
body.dark .paid-full-badge{background:#6FA784;color:#10140F}
/* ── Vendor payment timeline ── */
.vpt-wrap{display:flex;flex-direction:column}
.vpt-seg{display:inline-flex;align-self:flex-start;border:.5px solid var(--border);border-radius:9px;overflow:hidden;background:var(--surface);margin-bottom:13px}
.vpt-seg button{font-size:11.5px;font-weight:600;padding:7px 14px;border:none;background:transparent;color:var(--gold-deep);cursor:pointer;font-family:'Inter',sans-serif}
.vpt-seg button.on{background:var(--gold-deep);color:#fff}
body.dark .vpt-seg button.on{background:var(--gold);color:#1C1D22}
.vpt-sum{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:14px;padding-bottom:13px;border-bottom:1px solid var(--border)}
.vpt-sum>div{display:flex;flex-direction:column}
.vpt-sum span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.vpt-sum b{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--ink);margin-top:2px;font-variant-numeric:tabular-nums}
.vpt-sum .over b{color:var(--red)}
.vpt-sum .soon b{color:var(--gold-deep)}
.vpt-sum .paid b{color:var(--green)}
.vpt-mhdr{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep);padding:11px 2px 6px}
.vpt-row{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .12s}
.vpt-row:hover{background:var(--surface)}
.vpt-date{flex:0 0 40px;text-align:center}
.vpt-d{font-family:'Cormorant Garamond',serif;font-size:19px;font-weight:600;line-height:1;color:var(--ink)}
.vpt-mo{font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-top:1px}
.vpt-paid .vpt-d{color:var(--green)}
.vpt-over .vpt-d{color:var(--red)}
.vpt-body{flex:1;min-width:0}
.vpt-what{font-size:13px;color:var(--ink);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vpt-kind{font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;border-radius:5px;margin-left:6px;vertical-align:middle;background:rgba(196,168,130,.2);color:var(--gold-deep)}
.vpt-kind-bal{background:rgba(153,53,86,.12);color:#993556}
body.dark .vpt-kind-bal{background:rgba(214,128,179,.16);color:#e7a6cd}
.vpt-who{font-size:10.5px;color:var(--gold-deep);font-weight:600;display:inline-flex;align-items:center;gap:4px;margin-top:2px}
.vpt-who-none{color:var(--muted);font-weight:400;font-style:italic}
.vpt-amt{flex:0 0 auto;text-align:right;display:flex;flex-direction:column;align-items:flex-end}
.vpt-n{font-size:14px;font-weight:600;color:var(--gold-deep);font-variant-numeric:tabular-nums}
.vpt-n-paid{color:var(--green)}
.vpt-stat{font-size:9px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;margin-top:1px}
.vpt-stat.over{color:var(--red)}.vpt-stat.soon{color:var(--gold-deep)}.vpt-stat.up{color:var(--muted)}.vpt-stat.paid{color:var(--green)}
.vpt-check{width:18px;height:18px;border-radius:5px;background:var(--green);display:inline-flex;align-items:center;justify-content:center;margin-top:3px}
.vpt-empty{font-size:13px;color:var(--muted);text-align:center;padding:34px 16px}
/* Vendor-page "owed" pill on rows */
.vpt-owed-pill{font-size:11px;font-weight:700;color:var(--gold-deep);text-align:right;white-space:nowrap;cursor:pointer;background:none;border:none;font-family:'Inter',sans-serif;padding:0;display:inline-flex;flex-direction:column;align-items:flex-end}
.vpt-owed-pill .vpt-owed-next{font-size:9px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;margin-top:1px}
.vpt-owed-pill.over{color:var(--red)}
/* PAID IN FULL + link icon ordering in the category header.
   Three modes set by the fitter (_fitBudgetPaidLink) on .bpl-row:
     bpl-a — all on line 1:  name · PAID · link
     bpl-b — name+link fit:  line1 name · link  /  line2 PAID
     bpl-c — only name fits: line1 name  /  line2 PAID · link
   The .bpl-break is a flex-basis:100% spacer that forces line 2 when active. */
.bpl-row .bi-name{order:1}
.bpl-row.bpl-a .bpl-badge{order:2}
.bpl-row.bpl-a .bpl-break{display:none}
.bpl-row.bpl-a .bpl-link{order:3}
.bpl-row.bpl-b .bpl-link{order:2}
.bpl-row.bpl-b .bpl-break{display:block;order:3}
.bpl-row.bpl-b .bpl-badge{order:4}
.bpl-row.bpl-c .bpl-break{display:block;order:2}
.bpl-row.bpl-c .bpl-badge{order:3}
.bpl-row.bpl-c .bpl-link{order:4}
.bpl-link{display:inline-flex;align-items:center;flex-shrink:0}
.bpl-row .bi-icon{order:0}
.bpl-row > button{order:6}
/* Tags */
body.dark .tag{background:#212229;color:#B0A085}
body.dark .tag.diet-tag-al,body.dark .tag.gt-chip-guest.diet-tag-al{background:rgba(194,112,112,.16)!important;color:#E08080!important}
body.dark .diet-ico-al,body.dark .diet-txt-al{color:#E08080!important}
body.dark .al-chip{background:var(--surface);color:var(--muted)}
body.dark .al-chip.on{background:rgba(196,168,130,.15);color:#C3B69E;box-shadow:inset 0 0 0 .5px #B0A085}
/* Seat chips */
body.dark .seat-chip{background:#212229;border-color:#2E2D33;color:#D2CEC6}
/* Check items */
body.dark .check-item{border-bottom-color:#26252B}
body.dark .check-label.done{text-decoration-color:#56545C}
body.dark .check-item:has(.check-label.done){opacity:.5}
body.dark.cl-no-fade .check-label.done{text-decoration-color:currentColor}
body.dark.cl-no-fade .check-item:has(.check-label.done){opacity:1}
body.dark .custom-checkbox{border-color:#5A5760}
body.dark .custom-checkbox.checked{background:#807361;border-color:#807361}
/* Progress bars */
body.dark .progress-bar{background:#212229}
body.dark .progress-fill{background:#807361}
body.dark .gold-prog{background:#807361 !important}
body.dark .gold-prog-stroke{stroke:#807361 !important}
body.dark .green-prog{background:#507D64 !important}
body.dark .green-prog-stroke{stroke:#507D64 !important}
body.dark .green-prog-text{color:#507D64 !important}
/* Dashboard pins */
body.dark .dashboard-task-pin{background:#212229;border-left-color:#B0A085;color:#D2CEC6}
/* Sub items */
body.dark .sub-item{border-bottom-color:#26252B;color:#D2CEC6}
/* Dietary key */
body.dark .dietary-key{background:#1B1B1F}
body.dark .dietary-key-item{color:#6A6A72}
/* Filter bar */
body.dark .filter-bar .btn-outline{border-color:#2E2D33;color:#6A6A72}
/* Toggle section */
body.dark .toggle-section-btn{color:#D2CEC6;border-bottom-color:#26252B}
body.dark .toggle-section-btn .arrow{color:#6A6A72}
/* Dividers */
body.dark .divider{background:#26252B}
/* Brush-stroke palette swatches */
body.dark .brush-x{background:#212229;border-color:#2E2D33;color:#9E948C}
body.dark .brush-name{color:#9E948C}
/* Vision board */
body.dark .vb-container{background:#101013}
/* Welcome card */
body.dark .welcome-card{background:#202127;border-color:#2E2D33}
body.dark .welcome-title{color:#D2CEC6}
body.dark .welcome-sub{color:#6A6A72}
body.dark .welcome-bg svg{opacity:.04}
/* Title option buttons */
body.dark .title-opt-btn{background:#212229;border-color:#2E2D33;color:#6A6A72}
body.dark .title-opt-btn:hover{border-color:#B0A085;color:#C3B69E}
body.dark .title-opt-btn.active{border-color:#B0A085;background:rgba(168,152,128,.1);color:#C3B69E}
/* Scrollbar */
body.dark ::-webkit-scrollbar-thumb{background:#2E2D33}
body.dark ::-webkit-scrollbar-thumb:hover{background:#B0A085}
/* Empty states */
body.dark .empty-state-text{color:#3E3D43}
/* Table arrange mode */
body.dark .table-card.table-arrange-mode{border-color:rgba(168,152,128,.4);background:#212229}
/* Dark toggle switch */
.dark-toggle-row{display:flex;align-items:center;justify-content:space-between;padding:4px 0}
.dark-toggle-row>div:first-child{min-width:0;flex:1}
.tl-pub-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;background:var(--surface);border-radius:8px;cursor:pointer}
.tl-pub-title{display:block;font-size:12.5px;color:var(--ink)}
.tl-pub-sub{display:block;font-size:11px;color:var(--muted);margin-top:1px}
/* ── Website builder ── */
/* Single column by default (phone, tablet, small laptop). The live pane only exists at
   >=1100px, where there is genuinely room for the site at its true 390px phone width
   without squeezing the list into uselessness. Below that the Preview button is the
   only route, and the list is untouched. */
.wb-shell{max-width:780px;margin:0 auto}
.wb-pane{display:none}
@media(min-width:1100px){
  /* The LIST is now the fixed column (340px) and the PANE is fluid — it takes whatever
     is left. The site inside genuinely REFLOWS to that width: narrow window → narrow
     site, wide window → desktop layout. Not a scaled screenshot; a real responsive
     reflow, because the guest site is responsive.
     The whole thing is capped at 1520px so the site never renders wider than a real
     browser would show it. */
  .wb-shell{max-width:1400px;display:grid;grid-template-columns:300px minmax(0,1fr) 360px;gap:20px;align-items:start;position:relative}
  .wb-pane{display:block}
  /* At 340px the source chip has nowhere to go — not inline (no room) and not on its own
     line (it would push the row too tall for a list this dense). The SUBLINE is the live
     information and it survives; the chip was a standing reminder and it goes. */
  .wb-list .wb-src{display:none}
  .wb-list .wb-row{gap:9px;padding:11px 12px}
  .wb-list .wb-theme-row{gap:9px;padding:11px 12px}
  .wb-list .wb-name{font-size:12.5px}
  .wb-list .wb-sub{font-size:10.5px}
}
.wb-pane-inner{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px;display:flex;flex-direction:column;align-items:center}
/* width:100% + max-width — NOT a fixed px width, and NOT a JS-set width. The frame must
   be sized by CSS alone so it re-lays-out on window resize with no JS involved. */
.wb-pane-frame{width:100%;max-width:1100px;height:640px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}
.wb-pane-frame iframe{width:100%;height:100%;border:0;display:block}
.wb-pane-cap{font-size:11px;color:var(--muted);margin-top:9px;text-align:center}
/* ── Editing WITH the preview visible (v144) ──────────────────────────────────────────
   The editor used to open as a CENTRED modal with a dimming overlay — over the top of the
   live pane. So the preview was half-covered and greyed: not gone, which would at least be
   honest, but ALMOST usable, which is worse.
   While you edit FAQ, the 340px section list is dead weight. So the editor takes ITS
   column and the pane keeps every pixel. No overlay, nothing dimmed. Desktop only — below
   1100px there is no pane to protect. */
.wb-editor-col{display:none}
@media(min-width:1100px){
  .wb-editor-col{grid-column:3;display:flex;flex-direction:column;align-self:start;position:sticky;top:0;max-height:clamp(395px,calc(100vh - 45px),735px);background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden;overflow-anchor:none}
  .wb-editor-col.wb-ec-empty{align-items:center;justify-content:center;min-height:200px;gap:8px;color:var(--muted);font-size:12px;text-align:center;padding:24px}
  /* All three columns stick to the viewport top as content scrolls */
  .wb-list{position:sticky;top:0;max-height:100vh;overflow-y:auto;overflow-x:hidden}
  .wb-pane{position:sticky;top:0}
  .wb-pane-frame{height:clamp(300px,calc(100vh - 140px),640px)}
}
.wb-ec-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);flex-shrink:0}
.wb-ec-title{font-size:14px;font-weight:600;color:var(--ink)}
.wb-ec-close{border:1px solid var(--border);background:var(--cream);border-radius:8px;width:26px;height:26px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;color:var(--muted);line-height:1;flex-shrink:0;font-family:inherit}
.wb-ec-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px;display:flex;flex-direction:column;gap:16px}
.wb-ec-body input[type=range],#modal-body input[type=range]{touch-action:none}
.wb-ec-footer{flex-shrink:0;padding:12px 16px;border-top:1px solid var(--border);display:flex;gap:8px;justify-content:flex-end}
.wb-row.wb-selected,.wb-theme-row.wb-selected{background:rgba(160,132,92,.08)!important}
/* ── The phone strip (v144) ──────────────────────────────────────────────────────────
   No room to put the preview BESIDE anything, so it goes ABOVE — short, and foldable. */
.wb-strip-bar{display:none}
@media(max-width:1099px){
  .wb-pane{display:block;margin-bottom:16px}
  .wb-strip-bar{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:9px 12px;font-family:'Inter',sans-serif;font-size:12px;color:var(--ink);cursor:pointer}
  .wb-strip-chev{transition:transform .18s;color:var(--muted)}
  .wb-pane-inner{margin-top:8px;padding:8px}
  .wb-pane-frame{height:min(400px,50vh)}
  .wb-view-toggle{display:none}
  .wb-pane-cap{display:none}
  .wb-strip-shut .wb-pane-inner{display:none}
  .wb-strip-shut .wb-strip-chev{transform:rotate(-90deg)}
}
.wb-row{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s}
.wb-row:last-child{border-bottom:none}
.wb-row:hover{background:var(--surface)}
.wb-row.wb-locked{cursor:default;opacity:.6}
.wb-row.wb-locked:hover{background:transparent}
.wb-grip{color:var(--sw-idle,#CBBBA0);flex-shrink:0;cursor:grab;touch-action:none}
.wb-row.wb-dragging{opacity:.45}
.wb-row.wb-over{box-shadow:inset 0 2px 0 var(--gold)}
.wb-name{font-size:13.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-sub{font-size:11.5px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-src{font-size:10.5px;padding:2px 8px;border-radius:4px;background:var(--surface);color:var(--gold-deep);white-space:nowrap;flex-shrink:0}
/* Below 1100px there is one chip, inline. At >=1100px the list is 340px and it is hidden
   (see .wb-list .wb-src). The v116 "stacked chip" is gone. */
.wb-src-stack{display:none}
/* NOT a source chip — a state badge. It must survive the narrow list, so it deliberately
   does not carry .wb-src, which is hidden at >=1100px. */
.wb-lockbadge{font-size:10.5px;padding:2px 8px;border-radius:4px;background:var(--surface);color:var(--muted);white-space:nowrap;flex-shrink:0}
body.dark .wb-src{background:rgba(196,168,130,.15);color:#C3B69E}
.wb-theme-row{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border);cursor:pointer;background:var(--surface)}
.wb-theme-row:hover{border-color:var(--gold)}
.wb-sw{width:14px;height:14px;border-radius:3px;border:.5px solid var(--border);flex-shrink:0}
.wb-role{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.wb-role:last-child{border-bottom:none}
.wb-role-name{font-size:12px;color:var(--ink);width:64px;flex-shrink:0}
.wb-pal-sw{width:30px;height:30px;border-radius:7px;border:2px solid transparent;cursor:pointer;padding:0;flex-shrink:0}
.wb-pal-sw.on{border-color:var(--ink)}
/* ── Section image slots ── */
.wb-slot{border:1px solid var(--border);border-radius:9px;padding:11px;margin-bottom:10px}
/* ── Hero focal-point picker (v127) ── */
.wb-hero-frame{position:relative;border-radius:10px;overflow:hidden;margin-bottom:12px;
  border:1px solid var(--border);cursor:crosshair;background:var(--surface);
  touch-action:none;user-select:none;-webkit-user-select:none}
.wb-hero-frame img{pointer-events:none}
.wb-hero-pin{position:absolute;width:20px;height:20px;border-radius:50%;
  border:2px solid #fff;background:rgba(255,255,255,.22);
  box-shadow:0 0 0 1px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.3);
  transform:translate(-50%,-50%);pointer-events:none;z-index:4}
/* Mirrors the guest site's .hero-scrim — the Darken slider previews here too, not just
   on the live pane and the published site. */
.wb-hero-scrim-prev{position:absolute;inset:0;pointer-events:none;z-index:2}
/* ── The Section Composer block list (v126) ── */
.wb-blocks{margin-top:4px}
.wb-blk{border:1px solid var(--border);border-radius:9px;background:var(--cream);margin-bottom:7px;transition:opacity .15s,border-color .15s}
.wb-blk.pin{background:var(--surface);border-style:dashed}
.wb-blk.off{opacity:.55}
.wb-blk.wb-blk-drag{opacity:.4}
.wb-blk.wb-blk-over{border-color:var(--gold)}
.wb-blk-head{display:flex;align-items:center;gap:8px;padding:8px 10px}
.wb-blk-grip{display:flex;color:var(--muted);cursor:grab;flex-shrink:0}
.wb-blk.pin .wb-blk-grip{opacity:.3;cursor:default}
.wb-blk-ico{display:flex;color:var(--muted);flex-shrink:0}
.wb-blk-name{flex:1;font-size:12.5px;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wb-blk.off .wb-blk-name{text-decoration:line-through;text-decoration-color:var(--muted);color:var(--muted)}
.wb-blk-pin{font-size:10px;color:var(--muted);background:var(--surface);border-radius:4px;padding:1px 6px;flex-shrink:0}
.wb-blk-src{font-size:10px;color:var(--muted);background:var(--surface);border-radius:4px;padding:1px 6px;flex-shrink:0}
.wb-blk-eye,.wb-blk-x{background:none;border:none;padding:2px;cursor:pointer;color:var(--muted);display:flex;align-items:center;flex-shrink:0;line-height:1}
.wb-blk-eye:hover,.wb-blk-x:hover{color:var(--ink)}
.wb-blk-eye.on{color:var(--gold-deep)}
body.dark .wb-blk-eye.on{color:var(--gold)}
.wb-blk-x{font-size:13px}
.wb-blk-body{padding:0 10px 10px;display:flex;flex-direction:column;gap:8px}
.wb-blk-ctl{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wb-blk-hint{font-size:11px;color:var(--muted);line-height:1.5}
.wb-lk-row{display:flex;gap:6px;align-items:center}
.wb-lk-row .form-input{flex:1;min-width:0;font-size:12px;height:32px;padding:0 8px}
.wb-lk-row .wb-blk-x{flex-shrink:0}
.wb-blk-add{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:9px}
.wb-blk-addbtn{display:inline-flex;align-items:center;gap:5px;font-family:'Inter',sans-serif;font-size:11.5px;color:var(--muted);background:var(--sw-bg);border:.5px solid var(--sw-border);border-radius:7px;padding:5px 10px;cursor:pointer;transition:all .15s}
.wb-blk-addbtn:hover{color:var(--gold-deep);border-color:var(--gold)}
body.dark .wb-blk-addbtn:hover{color:var(--gold)}
.wb-add-wrap{position:relative;display:inline-block}
.wb-add-trig{display:inline-flex;align-items:center;font-family:'Inter',sans-serif;font-size:11px;font-weight:500;color:var(--gold-deep);background:var(--sw-bg);border:1px solid var(--gold);border-radius:6px;padding:4px 9px;cursor:pointer;transition:all .15s}
body.dark .wb-add-trig{color:var(--gold)}
.wb-add-trig:hover{background:var(--gold);color:#fff}
body.dark .wb-add-trig:hover{color:#1B1A1E}
.wb-add-menu{position:fixed;z-index:9999;min-width:180px;background:var(--cream);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.14);overflow:hidden}
body.dark .wb-add-menu{box-shadow:0 8px 24px rgba(0,0,0,.5)}
.wb-add-menu[hidden]{display:none}
.wb-add-item{display:flex;align-items:center;gap:9px;width:100%;text-align:left;font-family:'Inter',sans-serif;font-size:12.5px;color:var(--ink);background:transparent;border:none;border-bottom:1px solid var(--border);padding:9px 12px;cursor:pointer;transition:background .12s}
.wb-add-item:last-child{border-bottom:none}
.wb-add-item svg{color:var(--muted);flex-shrink:0;transition:color .12s}
.wb-add-item:hover{background:var(--surface)}
.wb-add-item:hover svg{color:var(--gold-deep)}
body.dark .wb-add-item:hover svg{color:var(--gold)}
/* Font picker — a native <select> can't render each <option> in its own font on mobile,
   so this is a button + anchored dropdown instead, styled like .form-input/.wb-add-menu. */
.wb-font-wrap{position:relative}
.wb-font-trig{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;text-align:left}
.wb-font-trig svg{flex-shrink:0;color:var(--muted);transition:transform .15s}
.wb-font-trig[aria-expanded="true"] svg{transform:rotate(180deg)}
.wb-font-menu{position:fixed;z-index:9999;max-height:260px;overflow-y:auto;background:var(--cream);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.14)}
body.dark .wb-font-menu{box-shadow:0 8px 24px rgba(0,0,0,.5)}
.wb-font-menu[hidden]{display:none}
.wb-font-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;font-size:16px;color:var(--ink);background:transparent;border:none;border-bottom:1px solid var(--border);padding:11px 14px;cursor:pointer;transition:background .12s}
.wb-font-item:last-child{border-bottom:none}
.wb-font-item:hover{background:var(--surface)}
.wb-font-item svg{flex-shrink:0;color:var(--gold-deep);visibility:hidden}
body.dark .wb-font-item svg{color:var(--gold)}
.wb-font-item.sel svg{visibility:visible}
/* Inspiration's "Jump to" row — was a wrapping multi-row block of pills; now a single
   horizontally-scrolling strip that stays stuck to the top of the page while scrolling,
   so a section is always one tap away. Opaque background on the OUTER wrapper (matching
   the page, not the pill-row's own --surface) so scrolled content doesn't show through
   around its rounded corners once it's stuck. */
.insp-jump-sticky{position:sticky;top:0;z-index:5;background:var(--cream);margin-bottom:14px;padding-bottom:4px}
.insp-jump-scroll{display:flex;align-items:center;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:12px 14px;background:var(--surface);border-radius:12px;border:1px solid var(--border)}
.insp-jump-scroll::-webkit-scrollbar{display:none}
/* On a phone, .card/.palette-section's generous 24-28px top padding reads as a big dead
   gap before a heading that's already visually distinct on its own (serif, larger size).
   Only the top is tightened — left/right/bottom stay as they are everywhere else. */
@media(max-width:600px){
  #main-content[data-page="inspo"] .card{padding-top:14px}
  #main-content[data-page="inspo"] .palette-section{padding-top:14px}
}
.wb-font-divider{font-family:'Inter',sans-serif;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);background:var(--surface);padding:7px 14px;border-bottom:1px solid var(--border)}
/* Preview pin — the Theme panel's Preview card can stick to the top of the scrollable
   panel so it stays visible while adjusting settings further down. Default background
   matches the mobile modal (.modal is --cream); the desktop inline column is --surface. */
.wb-spec-pin-wrap{margin-bottom:14px;background:var(--cream)}
.wb-editor-col .wb-spec-pin-wrap{background:var(--surface)}
.wb-spec-pin-wrap.pinned{position:sticky;top:-1px;z-index:5;padding-bottom:10px;margin-bottom:4px}
.wb-spec-pin-btn{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:none;background:transparent;color:var(--muted);cursor:pointer;transition:all .15s;flex-shrink:0}
.wb-spec-pin-btn:hover{background:var(--sw-bg);color:var(--gold-deep)}
body.dark .wb-spec-pin-btn:hover{color:var(--gold)}
.wb-spec-pin-btn.on{background:var(--gold);color:#fff;transform:rotate(-35deg)}
.wb-spec-pin-btn.on:hover{background:var(--gold-deep);color:#fff}
.wb-slot-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.wb-slot-lbl{font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.wb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:5px}
.wb-tile{position:relative;aspect-ratio:1;border-radius:6px;overflow:hidden;background:var(--surface);cursor:grab;touch-action:none}
.wb-tile img{width:100%;height:100%;object-fit:cover;display:block}
.wb-tile.wb-tile-drag{opacity:.4}
.wb-tile.wb-tile-over{outline:2px solid var(--gold);outline-offset:-2px}
.wb-tile-x{position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:rgba(26,26,24,.66);color:#fff;border:none;display:flex;align-items:center;justify-content:center;font-size:10px;cursor:pointer;padding:0;line-height:1}
body.dark .wb-tile-x{background:rgba(0,0,0,.7);color:#D2CEC6}
.wb-tile-gone{display:flex;align-items:center;justify-content:center;text-align:center;font-size:9px;color:var(--red);padding:4px;line-height:1.3}
.wb-tile-add{aspect-ratio:1;border-radius:6px;border:1px dashed var(--sw-border,#E3D7C4);background:transparent;color:var(--sw-idle,#CBBBA0);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.wb-tile-add:hover{color:var(--gold-deep);border-color:var(--gold)}
/* Layout block. Looks like a .wb-slot but is NOT one — .wb-slot means "an image slot",
   and borrowing it for appearance made the layout card count as one. Same lesson as
   .wb-lockbadge in v118: appearance is not identity. */
.wb-lay{border:1px solid var(--border);border-radius:9px;padding:11px;margin-bottom:10px}
/* ── Custom sections ── */
.wb-custom-badge{display:inline-block;font-size:9px;font-weight:600;letter-spacing:.04em;padding:1px 5px;border-radius:3px;background:var(--surface);color:var(--gold-deep);margin-left:5px;vertical-align:1px}
body.dark .wb-custom-badge{background:rgba(196,168,130,.15);color:#C3B69E}
.wb-addsec{display:inline-flex;align-items:center;gap:5px;font-family:'Inter',sans-serif;font-size:11.5px;padding:5px 12px;border:1px dashed var(--sw-border,#E3D7C4);border-radius:7px;background:transparent;color:var(--gold-deep);cursor:pointer;transition:all .15s}
.wb-addsec:hover{border-color:var(--gold);background:var(--surface)}
.wb-cpreset{text-align:left;padding:10px 11px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer;transition:all .15s;font-family:'Inter',sans-serif}
.wb-cpreset:hover{border-color:var(--gold)}
.wb-cpreset-n{display:block;font-size:12.5px;color:var(--ink)}
.wb-cblank{width:100%;display:flex;align-items:center;gap:9px;text-align:left;padding:11px 12px;border:1px dashed var(--sw-border,#E3D7C4);border-radius:8px;background:transparent;color:var(--gold-deep);cursor:pointer;font-family:'Inter',sans-serif;font-size:12.5px;transition:all .15s}
.wb-cblank:hover{border-color:var(--gold);background:var(--surface)}
.toggle-switch{position:relative;display:inline-flex;width:48px;height:26px;flex-shrink:0}
.toggle-switch input{opacity:0;width:0;height:0;position:absolute;-webkit-appearance:none;appearance:none}
.toggle-track{position:absolute;inset:0;background:var(--border);border-radius:26px;cursor:pointer;transition:background .25s}
.toggle-track::after{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .25s;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.toggle-switch input:checked+.toggle-track{background:var(--gold)}
.toggle-switch input:checked+.toggle-track::after{transform:translateX(22px)}
body.dark .toggle-track{background:#48464F;box-shadow:inset 0 0 0 .5px #5A5862}
body.dark .toggle-switch input:checked+.toggle-track{background:var(--gold);box-shadow:none}
html,body{height:100%;overflow:hidden;background:var(--cream);color:var(--ink);font-family:'Inter',sans-serif;font-size:14px;line-height:1.5}
.app{display:flex;height:100vh;height:100dvh;overflow:hidden}

/* SIDEBAR */
.sidebar{width:var(--sidebar-w);background:#fff;border-right:1px solid rgba(224,216,207,.45);display:flex;flex-direction:column;transition:width .3s cubic-bezier(.4,0,.2,1);overflow:hidden;flex-shrink:0;z-index:100}
.sidebar.collapsed{width:var(--sidebar-collapsed)}
/* Mobile overlay backdrop */
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(26,26,24,.35);z-index:99;backdrop-filter:blur(2px)}
.sidebar-overlay.visible{display:block}
/* ICON SIDEBAR MODE — full sidebar by default, collapses to icon-only strip when .collapsed */
body.icon-sidebar .sidebar{width:var(--sidebar-w)}
body.icon-sidebar .sidebar.collapsed{width:var(--sidebar-collapsed)}
body.icon-sidebar .topbar-toggle{display:none}
/* When collapsed: hide labels, brand, names */
body.icon-sidebar .sidebar.collapsed .sidebar-brand{opacity:1;pointer-events:auto}
body.icon-sidebar .sidebar.collapsed .sidebar-brand .brand-text{opacity:0;pointer-events:none;width:0;overflow:hidden}
body.icon-sidebar .sidebar.collapsed .nav-label{opacity:0;pointer-events:none}
body.icon-sidebar .sidebar.collapsed .couple-names{opacity:0}
/* When NOT collapsed: show everything normally */
body.icon-sidebar .sidebar:not(.collapsed) .sidebar-brand{opacity:1;pointer-events:auto}
body.icon-sidebar .sidebar:not(.collapsed) .nav-label{opacity:1;pointer-events:auto}
body.icon-sidebar .sidebar:not(.collapsed) .couple-names{opacity:1}
body.icon-sidebar .sidebar-overlay{display:none!important}
/* Sidebar collapse arrow button — shown in icon-sidebar mode when expanded */
.sidebar-collapse-btn{display:none;background:none;border:none;cursor:pointer;color:var(--muted);padding:4px;border-radius:6px;transition:color .15s;margin-left:auto;margin-right:16px;flex-shrink:0}
body.icon-sidebar .sidebar:not(.collapsed) .sidebar-collapse-btn{display:flex;align-items:center;justify-content:center}
body.icon-sidebar .sidebar-collapse-btn:hover{color:var(--ink)}
/* Sidebar expand button — shown only in icon-sidebar when collapsed (icon-only strip) */
.sidebar-expand-btn{display:none;background:none;border:none;cursor:pointer;color:var(--muted);padding:8px;border-radius:8px;transition:color .15s;width:100%;justify-content:center;align-items:center}
body.icon-sidebar .sidebar.collapsed .sidebar-expand-btn{display:flex}
body.icon-sidebar .sidebar.collapsed .sidebar-expand-btn:hover{color:var(--ink);background:var(--surface)}
.sidebar-header{padding:0 14px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border);height:60px;flex-shrink:0}
.sidebar-brand{font-family:'Cinzel',serif;font-weight:400;color:var(--ink);white-space:nowrap;opacity:1;transition:opacity .2s;display:flex;flex-direction:row;align-items:center;gap:6px}
.sidebar-brand .brand-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05;transition:opacity .2s,width .2s;overflow:hidden}
.sidebar-brand .brand-main{font-size:16px;letter-spacing:.1em}
.sidebar-brand .brand-sub{font-size:11px;letter-spacing:.18em;color:var(--gold-deep)}
.sidebar-brand .eternal-logo{height:22px}
.sidebar.collapsed .sidebar-brand{opacity:1;pointer-events:auto}
.sidebar.collapsed .sidebar-brand .brand-text{opacity:0;pointer-events:none;width:0;overflow:hidden}
.sidebar-toggle{margin-left:auto;flex-shrink:0;background:none;border:none;cursor:pointer;color:var(--muted);padding:4px;border-radius:6px;display:flex;transition:color .2s}
.sidebar-toggle:hover{color:var(--ink)}
.nav-list{list-style:none;padding:12px 0;flex:1;overflow-y:auto}
.nav-item button{width:100%;background:none;border:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:10px 14px;color:var(--muted);font-family:'Inter',sans-serif;font-size:13.5px;font-weight:400;text-align:left;transition:all .15s;white-space:nowrap}
.nav-item button:hover{color:var(--ink);background:var(--surface)}
.nav-item button.active{color:var(--gold-deep);background:linear-gradient(90deg,var(--parchment),transparent);font-weight:500}
.nav-item button.active .nav-icon{color:var(--gold)}
.nav-icon{width:20px;height:20px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:16px}
.nav-label{transition:opacity .2s;white-space:nowrap}
.sidebar.collapsed .nav-label{opacity:0;pointer-events:none}
.nav-budget-badge svg{display:block}
.nav-seat-count{font-size:11px;font-weight:500;background:var(--gold);color:#fff;border-radius:8px;padding:0 5px;line-height:15px;min-width:15px;text-align:center}
body.dark .nav-seat-count{background:var(--gold);color:#1B1A1E}
.sidebar.collapsed .nav-budget-badge{display:none!important}
.sidebar-footer{padding:14px;border-top:1px solid var(--border);transition:opacity .2s;flex-shrink:0}
.sidebar.collapsed .sidebar-footer{padding:10px 0;display:flex;justify-content:center}
.sidebar.collapsed .couple-display{justify-content:center;padding:6px;margin:0;width:40px}
.sidebar.collapsed .couple-names{display:none}
.sidebar.collapsed #sidebar-signout-pop{left:0;right:auto;min-width:210px}
.couple-display{display:flex;align-items:center;gap:10px}.couple-display:hover{background:var(--parchment)}
.couple-avatar{width:36px;height:36px;border-radius:50%;background:var(--parchment);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.couple-names{font-size:12.5px;color:var(--muted);white-space:nowrap;opacity:1;transition:opacity .2s;overflow:hidden}
.sidebar.collapsed .couple-names{opacity:0}

/* MAIN */
.main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.topbar{height:60px;background:#fff;border-bottom:1px solid rgba(224,216,207,.45);display:flex;align-items:center;padding:0 28px;gap:12px;flex-shrink:0}
.topbar-title{font-family:'Cormorant Garamond',serif;font-size:23px;font-weight:500;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.topbar-eyebrow{font-family:'Inter',sans-serif;font-size:9px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-deep);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-bar{width:3px;height:34px;background:var(--gold-deep);border-radius:2px;flex-shrink:0}
.topbar-sub{font-size:12px;color:var(--muted);margin-left:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-actions{margin-left:auto;display:flex;gap:5px;flex-shrink:1;flex-wrap:nowrap;align-items:center;justify-content:flex-end;min-width:0}
/* App-wide header button height: every action button in the topbar is pinned to a
   constant 30px so heights are uniform across pages (Budget, Vendors, Guests,
   Seating, etc.). The cog/.btn-icon is already a fixed 30x30 and is unaffected.
   box-sizing:border-box ensures bordered (outline) and borderless (primary) buttons
   land at the same outer height. Horizontal padding and labels are untouched. */
.topbar-actions .btn{height:30px;padding-top:0;padding-bottom:0;box-sizing:border-box}
/* Guest toolbar: collapse button labels to icon-only when the group is narrow */
.gbtn-group.icons-only .gbtn-label{display:none}
/* Kills .btn's transition while the JS fitter (_fitGuestBtnsImpl) is measuring a pass,
   so a just-toggled class's min-width/padding/gap resolves to its final value instantly
   instead of being read mid-animation — a stale mid-transition measurement is what was
   causing the view-toggle button to flicker between its icon and short label. */
.gbtn-group.fit-measuring .gbtn,.gfilter-group.fit-measuring .gfilter-chip{transition:none!important}
/* View-toggle buttons (List view / Card view) share a fixed footprint so the toolbar
   doesn't shift when toggling between the two ("Card" is naturally wider than "List").
   89px matches the slimmer List-view button. Tighter side padding lets the wider
   "Card view" label sit inside the same width. Suppressed in icons-only (the button
   should shrink to the icon then). */
.gbtn-viewtoggle{min-width:91px;padding-left:9px!important;padding-right:9px!important}
.gbtn-group.icons-only .gbtn-viewtoggle{min-width:0}
/* View-toggle buttons: full "List view"/"Card view" on essentially every phone,
   short "List"/"Card" only on very tiny/zoomed widths (≤320px), icon-only when
   genuinely crushed (.icons-only). */
.gbtn-label-short{display:none}
@media (max-width:320px){
  .gbtn-label-long{display:none}
  .gbtn-label-short{display:inline}
}
/* Fitter-driven intermediate stage: when the toolbar is tight but not crushed, the
   fitter adds .short-labels to swap long→short (e.g. "Card view"→"Card") before
   falling all the way to icon-only. Works regardless of viewport width. */
.gbtn-group.short-labels .gbtn-label-long{display:none}
.gbtn-group.short-labels .gbtn-label-short{display:inline}
/* Cog "Add" section: hidden on desktop (the toolbar button row covers it), shown on mobile in bulk. */
.guest-cog-add{display:none}
.gbtn-group.icons-only .gbtn-label.gbtn-label-keep{display:inline}
.gbtn-group.icons-only .gbtn:has(.gbtn-label-keep){gap:5px!important;padding:6px 12px!important}
.gfilter-group.icons-only .gfilter-label{display:none}
.gfilter-group.icons-only .gfilter-chip{padding:4px 6px}
/* Wide windows: Filters + Tags share one line (handled by .gft-row flex-wrap) and the
   chips get a little larger now there's room. Scoped to .gft-row so other chips are unaffected.
   !important beats the inline font-size/padding on the filter chips. */
@media (min-width:1180px){
  .gft-row .gfilter-chip{font-size:12px!important;padding:5px 10px!important}
  .gft-row .gfilter-bar-label,.gft-row .gtags-group>span:first-child{font-size:12.5px}
  .gft-row .tag{font-size:12.5px;padding:4px 12px}
}
.gbtn-group.icons-only .gbtn:not(:has(.gbtn-label-keep)){gap:0!important;padding:0!important;width:40px;justify-content:center}
/* Reorder hint: keep it a fixed, non-shrinking 2-line block so its text can never be
   crushed by flex-shrink and slide under the (shrink:0) Done button on narrow screens.
   The fixed footprint also lets _fitGuestBtns measure it correctly. */
.gt-reorder-hint{flex:0 0 auto!important;min-width:0!important}
.gt-reorder-hint-txt{min-width:0!important;width:max-content;max-width:96px;white-space:normal;display:inline-block;overflow:hidden}
/* On mobile, nudge the reorder hint 5px right (toward Done) — desktop unchanged.
   5px is the safe max; the hint↔Done gap is ~7px so this leaves ~2px clearance. */
@media (max-width:560px){.gt-reorder-hint{transform:translateX(5px)}}
/* Intermediate state: when the row is tight but not impossibly so, collapse only
   the low-priority (Reorder) label to an icon, keeping the primary buttons' text. */
.gbtn-group.reorder-collapsed .gbtn-label-low{display:none}
.gbtn-group.reorder-collapsed .gbtn-reorder{gap:0!important;padding-left:7px!important;padding-right:7px!important;justify-content:center}
.content{flex:1;overflow-y:auto;padding:32px 28px}
/* RSVP page: reduce top gap on desktop — tracker sits close under the topbar. */
#main-content[data-page="rsvp-mgr"]{padding-top:12px}
/* Wide-screen centring: add extra side padding so content doesn't stretch
   to full ultrawide width. Calendar and seating are full-bleed by design. */
@media(min-width:1500px){
  #main-content:not([data-page="calendar"]):not([data-page="seating"]){
    padding-left: calc(28px + (100% - 1320px) / 2);
    padding-right: calc(28px + (100% - 1320px) / 2);
  }
  /* Guest LIST view gets a wider centred band than the default 1320px so the table's
     columns (address/email) get room. The band stays centred; the table is still
     width:max-content, so it only grows as wide as its content needs — no empty
     stretching. Card/invite views keep the default 1320px band. We widen by lifting the
     band target to 1800px (a generous cap that still leaves an edge margin on ultrawide);
     the inner 28px page margin is preserved. Because % inside .content resolves to the
     (constant) band width, the breakout MUST be done here on the padding, not via a
     negative margin on a descendant. */
  #main-content[data-page="guests"][data-gview="list"]{
    padding-left: max(28px, calc(28px + (100% - 1800px) / 2));
    padding-right: max(28px, calc(28px + (100% - 1800px) / 2));
  }
}
/* Event Details: staggered image/content rows, alternating sides, image falls back to a
   plain full-width card if its file 404s (onerror adds .det-img-missing) or the user has
   turned images off in the page's own options menu (then .det-row-plain is used instead). */
.det-row-wrap{margin-bottom:28px}
.det-row{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.det-row>div{min-width:0}
.det-img-box{border-radius:14px;overflow:hidden;background:var(--surface);min-height:220px;position:relative}
.det-img-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.det-row-wrap.det-img-missing .det-row{grid-template-columns:1fr}
.det-row-wrap.det-img-missing .det-img-box{display:none}
.det-row-plain{margin-bottom:28px}
@media(max-width:959px){
  .det-row{grid-template-columns:1fr !important}
  .det-img-box{aspect-ratio:21/9;min-height:0;order:-1}
}
/* RSVP cards per row: forced counts (3/4) collapse to auto-fit on narrow screens */
.rsvp-card-grid{align-items:stretch}
.rsvp-card-grid > .card{height:100%;margin:0}
/* Docked widgets sit beside the tracker: tracker spans 2 card-columns, the companion column
   1 — a 2:1 grid. The companion column STACKS its docked widgets vertically (Short 1 / Medium
   2 / Full unlimited, capped in JS). The tracker's inner list scrolls sideways in its card. */
/* Layout: tracker pane (left, 2/3) drives the row height; companion column (right, 1/3)
   stretches to match it. Cards inside the companion use flex:1 1 auto so each card starts
   from its natural content height — taller cards (e.g. Summary donut) claim proportionally
   more space rather than an equal share, eliminating internal scroll in most configs.
   overflow:hidden on the companion clips flush at the tracker bottom; border-radius on
   the last card is preserved via the card's own border-radius (not the companion's). */
.rsvp-tracker-row{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-top:18px;align-items:start}
.rsvp-tracker-row > .rsvp-tracker-pane{min-width:0;display:flex;flex-direction:column}
.rsvp-tracker-row > .rsvp-tracker-companion{min-width:0;display:flex;flex-direction:column;gap:10px;align-self:stretch;overflow:hidden;box-sizing:border-box}
/* Fluid companion: flex:1 1 auto — natural-height basis, equal surplus/deficit sharing.
   min-height:0 allows shrinking; overflow-y:auto scrolls only when content truly overflows. */
.rsvp-tracker-row > .rsvp-tracker-companion > .card{margin:0;flex:1 1 auto;min-height:0;overflow-y:auto}
/* Large dock widgets (Invitation, Send to guests, RSVP Link) take only their natural
   height — they don't grow to fill surplus space, preventing them from squeezing
   smaller companion cards into scroll. */
.rsvp-tracker-row > .rsvp-tracker-companion > .card.rsvp-dock-large-card{flex:0 0 auto;overflow-y:auto}
.rsvp-tracker-row > .rsvp-tracker-companion > .card:last-child{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}
.rsvp-tracker-pane > .card{margin:0!important;flex:1}
.rsvp-tracker-pane #rsvp-list-scroll{overflow-x:auto}
@media(max-width:900px){
  /* Mobile view: stack the docked pair vertically, tracker on top, each full width.
     Reset fluid-companion stretch so cards return to natural height when stacked. */
  .rsvp-tracker-row{grid-template-columns:1fr;gap:18px;align-items:start}
  .rsvp-tracker-row > .rsvp-tracker-pane{display:block}
  .rsvp-tracker-row > .rsvp-tracker-companion{overflow:visible;align-self:auto}
  .rsvp-tracker-row > .rsvp-tracker-companion > .card{flex:none;min-height:auto;overflow-y:visible}
}
@media(max-width:900px){
  .rsvp-card-grid[data-cols="2"],.rsvp-card-grid[data-cols="3"],.rsvp-card-grid[data-cols="4"]{
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important
  }
  /* In mobile view the layout is single-column drawer chrome and explicit card counts have
     no real effect (they collapse to auto-fit above), so hide the dead Cards-per-row control
     in the Arrange-sections popup entirely. Matches the sidebar drawer breakpoint (900px). */
  .rsvp-cards-per-row-block{display:none !important}
}
/* RSVP tracker: desktop (fine-pointer) click-drag side-scroll + visible gold scrollbar. */
@media (pointer:fine){
  #rsvp-scroll{scrollbar-width:auto;scrollbar-color:var(--gold) rgba(0,0,0,.07)}
  #rsvp-scroll::-webkit-scrollbar{height:12px}
  #rsvp-scroll::-webkit-scrollbar-track{background:rgba(0,0,0,.06);border-radius:6px;margin:0 4px}
  #rsvp-scroll::-webkit-scrollbar-thumb{background:var(--gold);border-radius:6px;border:2px solid transparent;background-clip:padding-box}
  #rsvp-scroll::-webkit-scrollbar-thumb:hover{background:var(--gold-deep);background-clip:padding-box;border:2px solid transparent}
  #rsvp-scroll.rsvp-grabbable{cursor:grab}
  #rsvp-scroll.rsvp-grabbing{cursor:grabbing;user-select:none}
}
/* Mobile: hide horizontal scrollbars on the tracker — touch-swipe still works,
   but the scrollbar itself is invisible (native behaviour on touch devices). */
@media (max-width:600px){
  #rsvp-scroll{scrollbar-width:none}
  #rsvp-scroll::-webkit-scrollbar{display:none}
  #rsvp-list-scroll{scrollbar-width:none}
  #rsvp-list-scroll::-webkit-scrollbar{display:none}
}
/* Frozen search sub-bar — pins directly under the title bar while the list scrolls */
.page-search-sticky{position:sticky;top:-32px;z-index:45;margin:-32px -28px 0;padding:14px 28px;background:var(--cream);border-bottom:1px solid var(--border);box-shadow:0 2px 8px rgba(0,0,0,.04)}
.page-search-sticky > div{margin-bottom:0!important}
.page-search-sticky div{margin-bottom:0!important}
body.dark .page-search-sticky{background:#1B1B1F;border-bottom-color:rgba(40,43,54,.6)}
/* Inline budget search — sits left, on the same line as Hide/Reorder, capped width */
.budget-search-inline{flex:0 1 280px;min-width:120px;margin-right:auto;margin-left:14px}
.budget-search-inline > div{margin-bottom:0!important}
.budget-search-inline input{height:30px;font-size:12px}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:8px;font-family:'Inter',sans-serif;font-size:13px;font-weight:500;cursor:pointer;border:none;transition:all .15s}
.btn-primary{background:var(--gold);color:#fff}
.btn-primary:hover{background:var(--gold-deep)}
.btn-outline{background:transparent;border:1px solid var(--border);color:var(--ink)}
.btn-outline:hover{border-color:var(--gold);color:var(--gold-deep)}
.vendor-lookup-btn:hover{border-color:#D6C6AB;color:var(--gold-deep)}
.vendor-lookup-btn:hover .vendor-lookup-arrow{stroke:#B7A176}
body.dark .vendor-lookup-btn{background:var(--surface)!important;border-color:var(--border)!important;color:var(--gold)!important}
body.dark .vendor-lookup-btn:hover{border-color:var(--gold)!important;color:var(--gold)!important}
body.dark .vendor-lookup-btn .vendor-lookup-arrow{stroke:var(--gold)}
body.dark .vendor-lookup-banner{background:var(--surface)!important;border-color:var(--border)!important}
/* ── Vendor Brief Links section ──────────────────────────────── */
.vbl-section{border:.5px solid #E3D7C4;background:#FBF8F3;border-radius:12px;padding:14px 15px;margin:10px 0 4px}
body.dark .vbl-section{background:var(--surface)!important;border-color:var(--border)!important}
.vbl-header{display:flex;align-items:center;gap:10px;margin-bottom:0}
.vbl-header-icon{width:34px;height:34px;border-radius:9px;background:rgba(196,168,130,.2);color:var(--gold-deep);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.vbl-header-text{flex:1;min-width:0}
.vbl-title{font-size:13px;font-weight:500;color:var(--ink)}
.vbl-sub{font-size:11.5px;color:var(--muted)}
.vbl-gen-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;font-family:'Inter',sans-serif;font-size:12.5px;font-weight:500;cursor:pointer;white-space:nowrap;background:#FBF8F3;border:.5px solid #E3D7C4;color:#8B7355;transition:all .15s}
body.dark .vbl-gen-btn{background:var(--surface)!important;border-color:var(--border)!important;color:var(--gold)!important}
.vbl-gen-btn:hover{border-color:var(--gold);color:var(--gold-deep)}
.vbl-links-list{margin-top:11px;border-top:.5px solid rgba(196,168,130,.25);padding-top:10px;display:flex;flex-direction:column;gap:7px}
.vbl-link-row{display:flex;align-items:center;gap:8px;font-size:12px;min-width:0;flex-wrap:wrap}
.vbl-link-name{font-weight:500;color:var(--ink);flex-shrink:0;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vbl-link-url{color:var(--gold-deep);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.vbl-badge{font-size:10px;font-weight:600;border-radius:5px;padding:2px 7px;text-transform:uppercase;letter-spacing:.04em;flex-shrink:0}
.vbl-badge-active{background:rgba(29,158,117,.12);color:#1D9E75}
.vbl-badge-expired{background:rgba(180,90,60,.1);color:#B45A3C}
.vbl-action-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:7px;font-size:11px;font-weight:500;cursor:pointer;white-space:nowrap;border:.5px solid var(--border);background:transparent;color:var(--muted);transition:all .15s;flex-shrink:0}
.vbl-action-btn:hover{border-color:var(--gold);color:var(--gold-deep)}
.vbl-action-btn.danger:hover{border-color:#D9534F;color:#D9534F}
/* ── Vendor Brief button on cards ─────────────────────────────── */
.vbtn-brief{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;font-size:11px;font-weight:500;border-radius:7px;border:.5px solid var(--gold);background:rgba(196,168,130,.1);color:var(--gold-deep);cursor:pointer;white-space:nowrap;transition:all .15s}
.vbtn-brief:hover{background:rgba(196,168,130,.2);border-color:var(--gold-deep)}
/* ── Vendor Brief modal ──────────────────────────────────────── */
.vbm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.vbm-panel{background:var(--cream);border-radius:16px;padding:24px;max-width:460px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.2);position:relative}
body.dark .vbm-panel{background:var(--surface-raised,#1e1d20)}
.vbm-title{font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:600;color:var(--ink);margin:0 0 4px}
.vbm-sub{font-size:12.5px;color:var(--muted);margin-bottom:18px}
.vbm-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.vbm-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.vbm-chip{padding:5px 12px;border-radius:20px;font-size:12px;font-weight:500;border:.5px solid var(--border);background:var(--cream);color:var(--muted);cursor:pointer;transition:all .15s;user-select:none}
body.dark .vbm-chip{background:var(--surface)}
.vbm-chip.sel{background:rgba(196,168,130,.18);border-color:var(--gold);color:var(--gold-deep);font-weight:600}
/* .sel is also the setup wizard's <select> class (width:100%, arrow image): undo it on brief chips */
.vbm-chips .vbm-chip.sel{width:auto;padding:5px 12px;font-size:12px;font-family:inherit;border:.5px solid var(--gold);border-radius:20px;background:rgba(196,168,130,.18);color:var(--gold-deep);appearance:auto}
.vbm-expiry-row{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.vbm-expiry-row label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;cursor:pointer}
.vbm-expiry-row input[type=date]{border:.5px solid var(--border);border-radius:7px;padding:5px 9px;font-size:12px;color:var(--ink);background:var(--cream);font-family:'Inter',sans-serif}
body.dark .vbm-expiry-row input[type=date]{background:var(--surface);color:var(--ink)}
.vbm-footer{display:flex;gap:9px;justify-content:flex-end;margin-top:6px}
.vbm-success{background:rgba(29,158,117,.08);border:.5px solid rgba(29,158,117,.35);border-radius:11px;padding:14px 16px;margin-top:4px}
.vbm-link-display{font-size:12px;color:var(--gold-deep);word-break:break-all;margin:8px 0 12px;line-height:1.5}
/* ── Public run sheet page (share overlay) ── */
.prs-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1200;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:20px 0 40px}
.prs-panel{background:var(--cream);border-radius:16px;width:100%;max-width:600px;margin:auto;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.prs-head{padding:22px 22px 14px;border-bottom:1px solid var(--border)}
.prs-names{font-family:'Cormorant Garamond',serif;font-size:24px;font-weight:600;color:var(--ink);line-height:1.2}
.prs-sub{font-size:13px;color:var(--muted);margin-top:4px}
.prs-close{float:right;background:none;border:none;font-size:22px;cursor:pointer;color:var(--muted);line-height:1;padding:0;margin:-2px -2px 0 0}
.prs-body{padding:16px 22px 24px}
.prs-sect{margin-bottom:4px}
.prs-sect-hd{display:flex;align-items:center;gap:8px;padding:10px 0 8px}
.prs-sect-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.prs-sect-name{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.prs-row{display:grid;grid-template-columns:58px 1fr;gap:10px;align-items:start;padding:8px 0;border-top:1px solid var(--border)}
.prs-row:first-of-type{border-top:none}
.prs-time{font-size:13px;font-weight:700;color:var(--gold-deep);text-align:right;padding-top:2px;font-variant-numeric:tabular-nums;white-space:nowrap}
.prs-event{font-family:'Cormorant Garamond',serif;font-size:17px;font-weight:500;color:var(--ink);line-height:1.3}
.prs-meta{font-size:12px;color:var(--muted);margin-top:3px;display:flex;gap:8px;flex-wrap:wrap}
.prs-meta-item{display:inline-flex;align-items:center;gap:3px}
.prs-notes{font-size:12.5px;color:var(--muted);margin-top:5px;line-height:1.45;white-space:pre-wrap}
.prs-gap{font-size:10.5px;color:var(--border);text-align:center;padding:4px 0;font-style:italic}
.prs-empty{text-align:center;padding:40px 0;color:var(--muted);font-size:14px}
.prs-footer{padding:14px 22px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.prs-brand{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px}
.prs-copy-btn{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;font-size:12px;font-weight:600;border-radius:8px;border:.5px solid var(--gold);background:rgba(196,168,130,.1);color:var(--gold-deep);cursor:pointer;transition:all .15s;white-space:nowrap}
.prs-copy-btn:hover{background:rgba(196,168,130,.22)}
/* Public run sheet standalone page (no overlay) */
.prs-page{min-height:100vh;background:var(--cream);display:flex;justify-content:center;padding:32px 16px 60px}
.prs-page-inner{width:100%;max-width:600px}
.prs-page-head{margin-bottom:22px;border-bottom:1px solid var(--border);padding-bottom:18px}
.prs-page-names{font-family:'Cormorant Garamond',serif;font-size:28px;font-weight:600;color:var(--ink)}
.prs-page-sub{font-size:14px;color:var(--muted);margin-top:5px}
.prs-page-brand{margin-top:40px;padding-top:16px;border-top:1px solid var(--border);font-size:11.5px;color:var(--muted);text-align:center}
body.dark .prs-panel,.prs-page{background:var(--cream)!important}

/* ── Public Wedding Tips Library (free-account gate) ─────────────────── */
/* This page's background never actually switches to dark (no sign-in boot sequence
   runs here to apply body.dark), so every crest below stays on the dark-ink/light-bg
   logo variant regardless of the visitor's device theme. */
.pub-tips-brand{margin-top:44px;padding-top:18px;border-top:1px solid var(--border);font-size:12px;color:var(--muted);text-align:center}
.pub-tips-brand a{color:inherit;text-decoration:none}

/* Gate hero */
.pub-hero{position:relative;min-height:480px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#000}
.pub-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%;opacity:.85}
.pub-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,16,12,.35) 0%,rgba(20,16,12,.55) 55%,rgba(20,16,12,.9) 100%)}
.pub-hero-inner{position:relative;z-index:2;text-align:center;color:#fff;padding:44px 20px;max-width:640px;margin:0 auto}
.pub-hero-crest{height:42px;width:auto;display:block;margin:0 auto 18px}
.pub-hero-eyebrow{font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#E8D9BE;margin-bottom:12px}
.pub-hero-title{font-family:'Cormorant Garamond',serif;font-size:40px;font-weight:600;line-height:1.1;margin-bottom:14px;text-shadow:0 2px 24px rgba(0,0,0,.25)}
.pub-hero-sub{font-size:14.5px;color:rgba(255,255,255,.88);max-width:460px;margin:0 auto 22px;line-height:1.6;font-weight:300}
.pub-hero-cta{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#D8BD8C,#B8976A);color:#2b2318;border:none;border-radius:999px;padding:14px 28px;font-size:14px;font-weight:700;text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.3)}

/* Gate body */
.pub-gate-wrap{max-width:460px;margin:0 auto;padding:40px 24px 0}
.pub-gate-preview{display:flex;gap:10px;margin-bottom:12px;justify-content:center}
.pub-gate-chip{position:relative;width:70px;height:70px;border-radius:12px;overflow:hidden;filter:blur(1.5px)}
.pub-gate-chip img{width:100%;height:100%;object-fit:cover;opacity:.55}
.pub-gate-lock{position:absolute;inset:0;background:rgba(20,16,12,.38);display:flex;align-items:center;justify-content:center;color:#fff}
.pub-gate-preview-note{text-align:center;font-size:11.5px;color:var(--muted);margin-bottom:30px;font-weight:500}
.pub-founder-note{max-width:460px;margin:0 auto 32px;text-align:center}
.pub-founder-eyebrow{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:10px;display:flex;align-items:center;justify-content:center;gap:8px}
.pub-founder-line{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:17px;line-height:1.5;color:var(--ink)}
.pub-gate-form-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:26px 24px;max-width:460px;margin:0 auto}

/* Unlocked: mini header (no repeated hero) */
.pub-lib-minihead{display:flex;flex-direction:column;align-items:center;gap:8px;padding:30px 20px 24px;text-align:center}
.pub-lib-mini-crest{height:36px;width:auto;display:block}
.pub-lib-mini-wordmark{font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}

.pub-welcome-banner{max-width:1120px;margin:0 auto 16px;padding:0 24px}
.pub-welcome-pill{background:linear-gradient(135deg,#F4E8D4,var(--parchment));border:1px solid var(--border);border-radius:14px;padding:13px 20px;font-size:13.5px;font-weight:600;color:var(--ink);text-align:center}

.pub-wizard-cta{max-width:1120px;margin:0 auto 16px;padding:0 24px}
.pub-wizard-cta-inner{display:flex;align-items:center;gap:22px;background:linear-gradient(135deg,#2B2520,#3E342A);border-radius:22px;padding:30px 32px;color:#fff;flex-wrap:wrap}
.pub-wizard-cta-txt{flex:1;min-width:240px}
.pub-wizard-cta-eyebrow{font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#D8BD8C;margin-bottom:8px}
.pub-wizard-cta-title{font-family:'Cormorant Garamond',serif;font-size:23px;font-weight:600;margin-bottom:6px}
.pub-wizard-cta-sub{font-size:13px;color:rgba(255,255,255,.72);max-width:440px}
.pub-wizard-cta-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.pub-wizard-cta-btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#D8BD8C,#B8976A);color:#2b2318;border:none;border-radius:999px;padding:13px 26px;font-size:13.5px;font-weight:700;text-decoration:none;white-space:nowrap}
.pub-lib-trust-strip{display:flex;justify-content:center;gap:48px;flex-wrap:wrap;padding:24px 20px;background:var(--surface);margin:0 auto 16px;max-width:1120px;border-radius:14px}
.pub-lib-trust-item{text-align:center}
.pub-lib-trust-num{font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:600;color:var(--gold-deep)}
.pub-lib-trust-lbl{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin-top:2px}

.pub-lib-section-head{text-align:center;max-width:600px;margin:36px auto 0;padding:0 24px}
.pub-lib-section-eyebrow{font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:10px}
.pub-lib-section-title{font-family:'Cormorant Garamond',serif;font-size:30px;font-weight:600;margin-bottom:10px}
.pub-lib-section-sub{font-size:14px;color:var(--muted)}

.pub-lib-body{max-width:1120px;margin:0 auto;padding:24px 24px 40px}
.pub-lib-body .tip-search-wrap{margin-left:auto;margin-right:auto}

/* Desktop/tablet photo-card grid */
.pub-lib-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.pub-lib-card{border-radius:18px;overflow:hidden;background:#fff;border:1px solid var(--border);box-shadow:0 4px 18px rgba(74,63,53,.06);transition:transform .2s,box-shadow .2s;cursor:pointer;text-align:left;font-family:inherit;display:block;padding:0}
.pub-lib-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(74,63,53,.14)}
.pub-lib-card-img-wrap{position:relative;aspect-ratio:4/3;overflow:hidden;display:block;border-radius:18px 18px 0 0;background:linear-gradient(135deg,var(--parchment),var(--cream))}
.pub-lib-card-img-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.pub-lib-card-icon-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--gold-deep);opacity:.45}
.pub-lib-card-count{position:absolute;top:12px;right:12px;background:rgba(0,0,0,.55);color:#fff;font-size:10.5px;font-weight:600;padding:4px 10px;border-radius:999px}
.pub-lib-card-body{padding:18px 20px 20px;display:block}
.pub-lib-card-title{display:block;font-family:'Cormorant Garamond',serif;font-size:19px;font-weight:600;margin-bottom:6px;color:var(--ink)}
.pub-lib-card-sub{display:block;font-size:12.5px;color:var(--muted);line-height:1.5;margin-bottom:12px;min-height:38px}
.pub-lib-card-link{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--gold-deep)}

/* Mobile: the same .pub-lib-card markup re-flows into bigger alternating left/right
   rows instead of the desktop card grid — see the max-width:640px rules below. */
@media(max-width:860px){
  .pub-lib-grid{grid-template-columns:repeat(2,1fr)}
  .pub-hero-title{font-size:32px}
  .pub-hero{min-height:420px}
}
@media(max-width:640px){
  .pub-lib-grid{display:flex;flex-direction:column}
  .pub-lib-card{display:flex;align-items:center;gap:16px;border:none;border-radius:0;box-shadow:none;border-bottom:1px solid var(--border);padding:20px 0}
  .pub-lib-card:first-child{padding-top:4px}
  .pub-lib-card:nth-of-type(even){flex-direction:row-reverse}
  .pub-lib-card:hover{transform:none;box-shadow:none}
  .pub-lib-card-img-wrap{width:132px;height:132px;flex-shrink:0;border-radius:16px;aspect-ratio:auto;box-shadow:0 4px 14px rgba(74,63,53,.12)}
  .pub-lib-card-body{flex:1;min-width:0;padding:0}
  .pub-lib-card-sub{min-height:0}
  .pub-wizard-cta-inner{flex-direction:column;align-items:flex-start}
  .pub-wizard-cta-actions{align-items:flex-start;width:100%}
  .pub-wizard-cta-btn{width:100%;justify-content:center;text-align:center}
  .pub-lib-trust-strip{gap:26px;border-radius:0}
}
@media(max-width:380px){
  .pub-lib-card-img-wrap{width:96px;height:96px}
  .pub-lib-card-title{font-size:16.5px}
}
.edit-layout-btn{color:#A8A29A;border-color:#EBE4DA}
.edit-layout-btn:hover{color:var(--gold-deep);border-color:var(--gold)}
body.dark .edit-layout-btn{color:#74727A;border-color:#2A2A30}
body.dark .edit-layout-btn:hover{color:#C3B69E;border-color:#B0A085}
.btn-ghost{background:transparent;color:var(--muted);border:none}
.btn-ghost:hover{color:var(--ink);background:var(--surface)}
.btn-sm{padding:6px 12px;font-size:12px}
/* Unified icon-only button (cog / options). 30×30, white/outline, hover gold. */
.btn-icon{width:30px;height:30px;padding:0;border-radius:8px;border:1px solid var(--border);background:var(--cream);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;flex-shrink:0}
.btn-icon:hover{border-color:var(--gold);color:var(--gold-deep)}
/* In-menu action rows (cog menus): borderless list-row, hover fill — matches the ⋯ menus. */
.bg-menu-action:hover{background:var(--surface)!important}
/* Hero-bar dense tier (Guests, RSVP): .gbtn and .rsvp-invites-btn both resolve
   to a shared 6×9 padding so dense bars match each other; roomy bars (Dashboard,
   Timeline, Checklist) use plain .btn-sm (6×12). */
.btn-danger{background:#fee2e2;color:var(--red);border:none}
.btn-danger:hover{background:#fecaca}
.btn-danger-ghost{background:none;border:none;color:var(--red);font-family:'Inter',sans-serif;font-size:12.5px;font-weight:600;cursor:pointer;padding:8px 10px;border-radius:8px;transition:background .12s}
.btn-danger-ghost:hover{background:rgba(192,57,43,.09)}
body.dark .btn-danger-ghost{color:#C27070}
body.dark .btn-danger-ghost:hover{background:rgba(194,112,112,.14)}

/* CARDS */
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.section-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.section-title{font-family:'Cormorant Garamond',serif;font-size:30px;font-weight:500;color:var(--ink)}
.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.vendor-card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;min-width:0;overflow:hidden}
/* Vendor Card/List view switcher (shares the .inv-seg look) */
.vview-seg{display:inline-flex;border:.5px solid #E3D7C4;border-radius:7px;overflow:hidden;flex-shrink:0}
.vview-seg button{padding:5px 9px;background:#FBF8F3;color:#CBBBA0;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-family:'Inter',sans-serif;transition:all .15s}
.vview-seg button+button{border-left:.5px solid #E3D7C4}
.vview-seg button.active{background:#C4A882;color:#fff}
body.dark .vview-seg{border-color:#6E6450}
body.dark .vview-seg button{background:#24242A;color:#A2957A}
body.dark .vview-seg button+button{border-left-color:#6E6450}
body.dark .vview-seg button.active{background:#A2957A;color:#1B1A1E}
/* Vendor list-view rows */
.vendor-list-rows{display:flex;flex-direction:column;gap:7px;min-width:0;overflow:hidden}
.vrow{display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--border);border-radius:10px;background:var(--panel)}
.vrow-main{flex:1;min-width:0;cursor:pointer}
.vrow-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vrow-name{font-size:13.5px;font-weight:600;color:var(--ink);word-break:break-word}
.vrow-cat{font-size:10px;color:var(--gold-deep);text-transform:uppercase;letter-spacing:.05em}
.vrow-sub{font-size:11.5px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vrow-right{display:flex;align-items:center;gap:6px;flex-shrink:0}
.vrow-hub{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;border:1px solid var(--border);background:transparent;color:var(--gold-deep);cursor:pointer;transition:all .15s}
.vrow-hub:hover{background:var(--surface);border-color:var(--gold)}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}

/* FORM */
.form-group{display:flex;flex-direction:column;gap:6px}
.form-label{font-size:12px;font-weight:500;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.form-input{padding:10px 14px;border:1px solid var(--border);border-radius:8px;font-family:'Inter',sans-serif;font-size:13.5px;color:var(--ink);background-color:var(--cream);transition:border-color .15s,background-color .15s;width:100%;color-scheme:light}
.form-input:hover{border-color:var(--gold);background-color:var(--cream)}
.form-input:focus{outline:none;border-color:var(--gold)}
.form-input::placeholder{color:#bbb}
.gf-more-btn{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;background:none;border:none;color:var(--gold-deep);font-family:'Inter',sans-serif;font-size:12.5px;font-weight:600;cursor:pointer;padding:2px 0;transition:opacity .12s}
.gf-more-btn:hover{opacity:.75}
.gf-more-btn .gf-more-caret{transition:transform .15s}
.gf-more-wrap{display:flex;flex-direction:column;gap:12px}

/* ── Redesigned guest form: section eyebrow, collapsible rows, inline controls ── */
.eg-eyebrow{font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--gold-deep);margin:2px 0 2px}
.eg-inline-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.eg-inline-row .form-label{margin:0}
.eg-sec{border-top:1px solid var(--border)}
.eg-sec:last-of-type{border-bottom:1px solid var(--border)}
.eg-sec-head{width:100%;display:flex;align-items:center;gap:8px;background:none;border:none;cursor:pointer;padding:11px 2px;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink);text-align:left}
.eg-sec-head:hover{color:var(--gold-deep)}
.eg-sec-caret{flex-shrink:0;color:var(--gold-deep);transition:transform .18s}
.eg-sec.open .eg-sec-caret{transform:rotate(90deg)}
.eg-sec-title{flex-shrink:0}
.eg-sec-summary{flex:1;min-width:0;font-weight:400;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eg-sec.open .eg-sec-summary{display:none}
.eg-sec-body{display:none;padding:2px 2px 14px}
.eg-sec.open .eg-sec-body{display:block}

select.form-input{appearance:none;-webkit-appearance:none;background-color:var(--cream);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B69' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 12px;padding-right:32px}
body.dark select.form-input{background-color:#191A1E}
/* Reusable helper: same chevron as a standalone class for selects that override background-color inline */
.sel-chevron{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B69' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:right 12px center !important;background-size:12px 12px !important;padding-right:32px !important}
body.dark .sel-chevron{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5B64' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important}
.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}

/* MODAL */
.modal-overlay{position:fixed;inset:0;background:rgba(26,26,24,.45);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}
/* Budget preview only: category cards are borderless with tighter 8px side padding.
   The same markup is reused in the downloaded file, which has no preview-overlay
   wrapper, so the download keeps its border. Covers both the Budget-page summary
   preview (.budget-summary-overlay) and the Print/Export "Budget — preview"
   Full-summary view (.print-hub-overlay). */
.modal-overlay.budget-summary-overlay .bsum-cat-card,
.modal-overlay.print-hub-overlay .bsum-cat-card{border:none!important;padding-left:8px!important;padding-right:8px!important}
.modal{background:var(--cream);border-radius:16px;width:100%;max-width:560px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.18);position:relative}
.modal.modal-fit{width:max-content;max-width:min(92vw,560px)}
.modal.modal-wide{max-width:min(96vw,1100px)}
/* The website preview. Wider than a default modal (560px) because a 1024px desktop site
   scaled into 560px lands at ~0.5x — half the scale the phone preview renders at, which
   is why the two looked so out of proportion. At 780px it renders around 0.75x.
   96vw still wins on a narrow screen: the modal can never be wider than the device. */
.modal.wb-pv-modal{max-width:min(96vw,780px)}
.modal.modal-fit .modal-title{font-size:20px}
.modal.modal-fit .modal-header{padding:16px 20px 0}
.modal.modal-fit .modal-body{padding:14px 28px 8px 20px}
/* Card fields popup: narrower on mobile — tighter side padding and a capped width
   so the short field labels don't sit in a wide, half-empty dialog. */
@media (max-width:560px){
  .modal.modal-fit:has(.card-fields-body){max-width:min(78vw,250px)}
  .modal.modal-fit:has(.card-fields-body) .modal-body{padding:12px 16px 8px 16px}
  .modal.modal-fit:has(.card-fields-body) .modal-header{padding:14px 16px 0}
  .card-fields-body{min-width:0!important;width:auto!important}
}
/* Cal event detail popup on mobile: collapse the empty header, tighten body padding,
   let the modal fill the available width naturally. */
@media (max-width:600px){
  .modal.modal-fit:has(.cal-popup-body) .modal-header{padding:8px 14px 0}
  .modal.modal-fit:has(.cal-popup-body) .modal-body{padding:10px 16px 16px}
  .modal.modal-fit:has(.cal-popup-body){max-width:92vw}
}
.modal-header{padding:24px 28px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.modal-title{font-family:'Cormorant Garamond',serif;font-size:20px;font-weight:700}
.modal-close{background:none;border:none;cursor:pointer;color:var(--muted);font-size:22px;line-height:1;padding:2px;margin-top:2px}
.modal-body{padding:12px 28px 28px;display:flex;flex-direction:column;gap:16px}
.modal-footer{padding:0 28px 24px;display:flex;gap:10px;justify-content:flex-end}
.modal-footer:empty{padding:0}
/* Website builder section-editor panels, on mobile (openModal is also their modal, unlike
   the desktop inline column where the footer already sits outside the scrolling body as
   its own flex sibling — see .wb-ec-footer). Without this, Save/Close scroll away with the
   rest of the panel's fields on a long section, the same gap the Preview pin just fixed
   for the Theme panel's specimen. Stays within the footer's own normal (padded) width —
   no edge-to-edge bleed — so nothing here can push wider than the modal itself. */
.modal.wb-panel-modal .modal-footer:not(:empty){position:sticky;bottom:0;z-index:2;background:var(--cream);padding-top:12px;padding-bottom:20px;border-top:1px solid var(--border)}
.bi-stack-paid{white-space:nowrap}
@media (max-width:560px){.bi-stack-paid{white-space:normal;max-width:120px;line-height:1.3}}
.modal.seat-mgr-compact .modal-header{padding:14px 22px 0}
.modal.seat-mgr-compact .modal-title{font-size:18px}
.modal.seat-mgr-compact .modal-body{padding:8px 22px 14px;gap:8px}
.modal.seat-mgr-compact .modal-footer{padding:0 22px 14px}
/* Confirm-tick animation: preview checkbox ticks + row pulses before the popup closes */
.cbm{position:relative;transition:background .25s ease,border-color .25s ease}
.cbm .cbm-line{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .32s ease .10s}
.cbm.cbm-on{background:var(--gold)!important;border-color:var(--gold)!important;border-style:solid!important}
.cbm.cbm-on .cbm-line{stroke-dashoffset:0}
/* Un-tick: checkmark draws out, box empties to outline */
.cbm.cbm-off{background:transparent!important;border-color:var(--gold)!important;border-style:solid!important}
.cbm.cbm-off .cbm-line{stroke-dashoffset:24;transition:stroke-dashoffset .30s ease}
.cbm.cbm-pop{animation:cbmPop .42s ease}
@keyframes cbmPop{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}
.cbm-flash{animation:cbmFlash .7s ease}
.ven-card-flash{animation:venCardFlash 1.6s ease}
@keyframes venCardFlash{0%{box-shadow:0 0 0 0 rgba(196,168,130,0)}20%{box-shadow:0 0 0 3px rgba(196,168,130,.5);background:rgba(196,168,130,.16)}100%{box-shadow:0 0 0 0 rgba(196,168,130,0)}}
@keyframes cbmFlash{0%{box-shadow:0 0 0 0 rgba(196,168,130,0)}30%{box-shadow:0 0 0 2px rgba(196,168,130,.38);background:rgba(196,168,130,.20)}100%{box-shadow:0 0 0 0 rgba(196,168,130,0)}}
.cbm-flash-neutral{animation:cbmFlashNeutral .7s ease}
@keyframes cbmFlashNeutral{0%{box-shadow:0 0 0 0 rgba(150,140,125,0)}30%{box-shadow:0 0 0 2px rgba(150,140,125,.30);background:rgba(150,140,125,.15)}100%{box-shadow:0 0 0 0 rgba(150,140,125,0)}}
#modal-box.modal-confirming{transition:opacity .3s ease,transform .3s ease}
#modal-box.modal-confirming.modal-closing{opacity:0;transform:scale(.97)}
/* Vision-board idea "lift-off" zoom: the enlarged idea scales up from the clicked
   card's position and settles toward centre, so it appears to rise off the page.
   Origin offset/scale are set as inline custom props (--lo-x/--lo-y/--lo-s) by JS. */
#modal-box.idea-liftoff{animation:ideaLiftOff .5s cubic-bezier(.22,1.1,.36,1) both;transform-origin:center center;will-change:transform,opacity}
@keyframes ideaLiftOff{
  from{transform:translate(var(--lo-x,0),var(--lo-y,0)) scale(var(--lo-s,.2));opacity:.35}
  to{transform:translate(0,0) scale(1);opacity:1}
}
.hidden{display:none!important}

/* DROPDOWN DOTS */
.dots-menu{position:relative;display:inline-block}
.dots-btn{background:none;border:none;cursor:pointer;color:var(--muted);padding:4px 8px;border-radius:6px;font-size:18px;line-height:1;display:flex;align-items:center}
.dots-btn:hover{background:var(--surface);color:var(--ink)}
.dots-dropdown{position:fixed;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:9999;min-width:160px;overflow:hidden}
.dots-dropdown button{width:100%;background:none;border:none;cursor:pointer;padding:10px 16px;text-align:left;font-size:13px;font-family:'Inter',sans-serif;color:var(--ink);display:flex;align-items:center;gap:8px}
.dots-dropdown button:hover{background:var(--surface)}
.dots-dropdown button.danger{color:var(--red)}
.dots-dropdown button.danger:hover{background:#fee2e2}
/* Two-line "move to Table X" items in the seating-alerts banner's Actions menu. */
.dots-dropdown button.seat-alert-item{flex-direction:column;align-items:flex-start;gap:1px;padding:8px 12px}
.dots-dropdown button.seat-alert-item b{font-size:12.5px;font-weight:600;color:var(--ink)}
.dots-dropdown button.seat-alert-item span{font-size:10.5px;color:var(--muted)}
.dots-dropdown button.seat-alert-item:disabled{cursor:not-allowed;opacity:.5}
.dots-dropdown button.seat-alert-item:disabled:hover{background:none}
.dots-dropdown button.seat-alert-item:disabled span{color:var(--red)}

/* PROGRESS */
.progress-bar{height:5px;background:var(--parchment);border-radius:3px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,#7E9A86,var(--gold),var(--gold-deep));border-radius:3px;transition:width .4s}

/* BADGE */
.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:20px;font-size:11.5px;font-weight:500}
.badge-gold{background:#fdf4e7;color:var(--gold-deep)}
.badge-green{background:#e8f5e9;color:var(--green)}
.badge-red{background:#fee2e2;color:var(--red)}
.badge-muted{background:var(--surface);color:var(--muted)}
.paid-full-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.07em;color:#fff;background:#5C8F72;padding:4px 11px;border-radius:11px;line-height:1}

/* TOGGLE SECTION */
.toggle-section-btn{width:100%;background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:12px 0;font-family:'Cormorant Garamond',serif;font-size:18px;color:var(--ink);border-bottom:1px solid var(--border)}
.toggle-section-btn .arrow{transition:transform .2s;font-size:14px;color:var(--muted)}
.toggle-section-btn.open .arrow{transform:rotate(180deg)}
.cat-add-btn{transition:background .15s,color .15s}
.cat-add-btn:hover{background:var(--parchment);color:var(--gold-deep)}
.db-drag-wrap img{-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;user-drag:none;pointer-events:none}
body.dark .cat-add-btn:hover{background:#2A2A31}

/* CHECKLIST */
.check-item{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}
.check-item:last-child{border-bottom:none}
.custom-checkbox{width:20px;height:20px;border:2px solid var(--border);border-radius:5px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;transition:all .15s}
.custom-checkbox.checked{background:var(--gold);border-color:var(--gold)}
.custom-checkbox.checked::after{content:'✓';color:#fff;font-size:12px;font-weight:600}
.check-label{font-family:'Cormorant Garamond',serif;font-size:18px;font-weight:600;line-height:1.2;flex:1}
.check-label.done{text-decoration:line-through;text-decoration-color:var(--check-strike,#C9C2B6);text-decoration-thickness:1px;color:var(--muted)}
.check-item:has(.check-label.done){opacity:.55}
body.cl-no-fade .check-label.done{text-decoration-color:currentColor;text-decoration-thickness:auto}
body.cl-no-fade .check-item:has(.check-label.done){opacity:1}
.check-meta{font-size:11.5px;color:var(--muted)}
.date-red{color:var(--red)!important;font-weight:500}
.date-overdue{color:var(--red-deep)!important;font-weight:600}
body.dark .date-red{color:#E08080!important}
body.dark .date-overdue{color:#C27070!important}
.budget-alert.alert-overdue{color:var(--red-deep);background:rgba(139,0,0,.07);border:1px solid rgba(139,0,0,.2)}
.budget-alert.alert-soon{color:var(--red);background:rgba(192,57,43,.045);border:1px solid rgba(192,57,43,.13)}
body.dark .budget-alert.alert-overdue{color:#E2674F;background:rgba(192,57,43,.10);border-color:rgba(192,57,43,.22)}
body.dark .budget-alert.alert-soon{color:#F0876B;background:rgba(240,135,107,.06);border-color:rgba(240,135,107,.2)}
.dep-amt-lt{color:#BBA982}
body.dark .dep-amt-lt{color:#9E8E62}
body.dark .bi-name{color:#B0A085 !important}
/* Payment name: wrap up to 2 lines then ellipsis, so long names aren't
   clipped to nothing on narrow screens. min-width:0 lets it shrink in flex. */
.bi-name{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;overflow-wrap:anywhere}
/* On narrow screens the Total block can starve the name of width. Let the header
   wrap and push the Total onto its own line, giving the name the full width. */
/* Sub-item row reflow: when the row is too narrow for the name + the
   date/amount group to share one line, drop the whole right group onto its own
   right-aligned line 2 so the name input keeps full width on line 1.
   Driven by JS width-watcher (.bsub-narrow on the budget card) so it fires based
   on the actual content-area width, not the viewport — the sidebar makes the
   content area much narrower than the window. */
.bsub-head.bsub-narrow{flex-wrap:wrap}
.bsub-head.bsub-narrow > .bsub-rightgrp{order:99;flex-basis:100%;justify-content:flex-end;margin-top:3px;margin-left:0;padding-right:2px}
.bi-head.bsub-narrow{flex-wrap:wrap}
.bi-head.bsub-narrow > .bi-total-block{order:3;flex-basis:100%;margin-top:1px}

/* ── Budget jump-to-category bar (Settings → Budget) ── */
/* Lives inside the sticky summary banner so it sticks with it automatically. */
#budget-jumpbar{border-top:1px solid var(--border);margin:0 -24px;padding:8px 24px;display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
#budget-jumpbar::-webkit-scrollbar{height:5px}
#budget-jumpbar::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}
.bjump-chip{flex:0 0 auto;display:inline-flex;flex-direction:column;gap:1px;align-items:flex-start;padding:5px 12px;border-radius:16px;background:var(--sw-bg,#FBF8F3);border:.5px solid var(--sw-border,#E3D7C4);cursor:pointer;font-family:'Inter',sans-serif;transition:background .15s,border-color .15s;text-align:left}
.bjump-chip:hover{border-color:#D8C9B2}
body.dark .bjump-chip:hover{border-color:#A2957A}
.bjump-name{font-size:12px;font-weight:600;letter-spacing:.03em;color:var(--gold-deep);white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.bjump-cnt{font-size:10px;font-weight:500;color:var(--muted)}
.bjump-sub{font-size:9.5px;font-weight:500;color:var(--muted);white-space:nowrap}
.bjump-chip.act{background:var(--sw-active,#C4A882);border-color:var(--sw-active,#C4A882)}
.bjump-chip.act .bjump-name{color:var(--sw-active-txt,#fff)}
.bjump-chip.act .bjump-cnt,.bjump-chip.act .bjump-sub{color:var(--sw-active-txt,#fff);opacity:.82}
/* Style A hides the spend sub-line; Style B shows it — but on mobile B collapses to A. */
#budget-jumpbar.bjump-a .bjump-sub{display:none}
@media (max-width:700px){ #budget-jumpbar.bjump-b .bjump-sub{display:none} }

/* ── Gentle density (Settings → Budget) ── */
/* Applied as .bg-gentle on the .budget-item card. Softer header, tighter rows,
   dimmed paid rows. Class-driven so dark mode is handled by body.dark overrides. */
.budget-item.bg-gentle > .bi-head{background:var(--surface)}
body.dark .budget-item.bg-gentle > .bi-head{background:#1E1E23}
.budget-item.bg-gentle .bi-name{color:var(--gold-deep)}
.budget-item.bg-gentle .bi-cat-body{padding:6px 14px 10px}
.budget-item.bg-gentle .bi-cat-body .paymentrow-gentleable{padding-top:6px;padding-bottom:6px}
/* Dim a fully-paid sub/deposit row so unpaid items stand out. */
.budget-item.bg-gentle .bi-row-paid{opacity:.62}
.budget-item.bg-gentle .bi-row-paid:hover{opacity:1}
@media (max-width:560px){
  /* In BULK mode on mobile, Add lives in the cog (cog only renders in bulk); hide the
     toolbar button row. In normal mode the button row stays (no cog there). */
  .guest-cog-add{display:block}
  .guest-bulk #guest-action-group{display:none!important}
  /* Badge picker rows stack: label/description above, swatches full-width below */
  .badge-picker-row{flex-direction:column;align-items:stretch;gap:10px}
  .badge-picker-cells{justify-content:flex-start;flex-wrap:wrap}
  /* Settings rows whose control should drop below the label on mobile */
  .settings-stack-row{flex-direction:column;align-items:stretch;gap:10px}
  /* Archived button collapses to icon-only on narrow viewports */
  .archived-btn .archived-label{display:none}
  /* Timeline toolbar buttons collapse to icon-only on narrow viewports */
  .tl-tb-btn .tl-tb-label{display:none}
  /* "Add N guests" event-picker footer button collapses to icon-only on narrow viewports,
     so it stops overflowing the modal footer alongside Cancel. */
  .evp-go-btn .evp-go-label{display:none}
  /* Online RSVPs list view: the "# of # attending" summary drops to its own line under
     the household name instead of competing with it, and the contact/member/history rows
     below lose their indent (which existed to align under the avatar) so they can use the
     full card width on a narrow screen. */
  .orsvp-lv-dash{display:none!important}
  .orsvp-lv-summary{display:block!important;margin-top:1px}
  .orsvp-lv-contact{padding-left:14px!important;gap:4px 0!important} /* no column gap: the "⋅" separator carries its own even spacing */
  .orsvp-lv-member,.orsvp-lv-hist{padding-left:14px!important}
  /* Show / hide items popup: single column on mobile */
  .vhb-cols{flex-direction:column!important;gap:14px!important}
  .vhb-wrap{width:100%!important}
  .vhb-cols .vhb-col2{border-left:none!important;padding-left:0!important;border-top:1px solid var(--border);padding-top:12px!important}
  /* Vendor badges keep the full name on narrow viewports; the name wraps to a
     second line inside the badge's max-width rather than clipping with ellipsis. */
  .ven-badge .ven-badge-label{display:inline;white-space:normal}
  .ven-badge{max-width:170px!important;align-items:flex-start!important}
  /* Budget Summary popup: reclaim side space on mobile (Option C) */
  .modal-overlay.budget-summary-overlay{padding:6px}
  .modal-overlay.budget-summary-overlay .modal-body{padding-left:16px;padding-right:16px}
  .modal-overlay.budget-summary-overlay .modal-header{padding-left:16px;padding-right:16px}
  .modal-overlay.budget-summary-overlay .modal-footer{padding-left:16px;padding-right:16px}
  /* Print / Export Hub popups: reclaim wasted side margins on mobile so the
     preview sheet uses nearly the full screen width. */
  .modal-overlay.print-hub-overlay{padding:5px}
  /* Fixed height on mobile: all three previews (Guests / Timeline / Budget) open at a
     consistent ~81% of screen height to match the Seating preview, instead of sizing to
     content (which left short docs like Timeline floating small). The box becomes a flex
     column: header + footer hold their size, the body fills the remaining space and
     scrolls internally, so the footer (Back / Download / Print) is always pinned at the
     bottom and reachable. Height accounts for the 5px overlay padding top+bottom. */
  .modal-overlay.print-hub-overlay .modal{
    height:calc(81vh);
    max-height:calc(100vh - 10px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .modal-overlay.print-hub-overlay .modal-header{flex:0 0 auto}
  .modal-overlay.print-hub-overlay .modal-body{flex:1 1 auto;overflow-y:auto;min-height:0}
  .modal-overlay.print-hub-overlay .modal-footer{flex:0 0 auto}
  .modal-overlay.print-hub-overlay .modal-body{padding-left:7px;padding-right:7px}
  .modal-overlay.print-hub-overlay .modal-header{padding-left:7px;padding-right:7px}
  .modal-overlay.print-hub-overlay .modal-footer{padding-left:7px;padding-right:7px}
  /* Preview shell tidy-up: title aligns with the sheet's left edge; the close (×)
     sits in the top-right corner with 10px insets; tightened vertical rhythm
     (8px top, 6px title→sheet, 6px sheet→footer, 8px bottom). */
  .modal-overlay.print-hub-overlay .modal-box,
  .modal-overlay.print-hub-overlay .modal{position:relative}
  .modal-overlay.print-hub-overlay .modal-header{padding-top:8px;padding-left:30px;align-items:center}
  .modal-overlay.print-hub-overlay .modal-title{padding-left:0;padding-right:36px}
  .modal-overlay.print-hub-overlay .modal-close{position:absolute;top:10px;right:10px;margin:0;padding:2px;z-index:5}
  /* Guest preview options cog: sit just left of the × and vertically aligned with it. */
  .modal-overlay.print-hub-overlay #export-guest-cog-wrap{top:7px!important;right:40px!important}
  .modal-overlay.print-hub-overlay .modal-body{padding-top:6px;padding-bottom:6px}
  .modal-overlay.print-hub-overlay .modal-footer{padding-bottom:8px}
  /* Override the 96vw cap so the modal box fills the overlay exactly (5px each side). */
  .modal-overlay.print-hub-overlay .modal{max-width:100%}
  /* Guest List / Day-of Timeline / Budget preview sheet: 10px inner padding on mobile. */
  .modal-overlay.print-hub-overlay #export-prev-scope .sheet{padding:10px!important}
  /* Guest List only: many columns → let the sheet scroll horizontally and the table
     grow to content. Timeline & Budget are narrow, so they wrap instead (no side-scroll). */
  .modal-overlay.print-hub-overlay.export-prev-guests #export-prev-scope .sheet{overflow-x:auto!important}
  .modal-overlay.print-hub-overlay.export-prev-guests #export-prev-scope table{width:max-content;min-width:100%}
  /* Timeline & Budget: table stays within the sheet and wraps long text. */
  .modal-overlay.print-hub-overlay.export-prev-timeline #export-prev-scope .sheet,
  .modal-overlay.print-hub-overlay.export-prev-budget #export-prev-scope .sheet{overflow-x:hidden!important}
  .modal-overlay.print-hub-overlay.export-prev-timeline #export-prev-scope table,
  .modal-overlay.print-hub-overlay.export-prev-budget #export-prev-scope table{width:100%!important;table-layout:fixed}
  .modal-overlay.print-hub-overlay.export-prev-timeline #export-prev-scope td,
  .modal-overlay.print-hub-overlay.export-prev-budget #export-prev-scope td{overflow-wrap:anywhere;word-break:break-word}
  .modal-overlay.print-hub-overlay.export-prev-timeline #export-prev-scope .x-time{width:64px}
  /* Email column: wrap at @ with a generous min-width so text doesn't break mid-char. */
  .modal-overlay.print-hub-overlay #export-prev-scope td.x-email-col{word-break:break-word;min-width:110px}
  /* Collapse the parchment outer wrap so the sheet sits flush inside the body. */
  .modal-overlay.print-hub-overlay #export-preview-body>div{padding:5px!important}
  /* Seating Plan Preview popup: maximise width on mobile so the floorplan box
     uses nearly the full screen. Tighter than the others (overlay 3px, body 7px). */
  .modal-overlay.seating-preview-overlay{padding:3px}
  .modal-overlay.seating-preview-overlay .modal-body{padding-left:7px;padding-right:7px}
  .modal-overlay.seating-preview-overlay .modal-header{padding-left:7px;padding-right:7px}
  .modal-overlay.seating-preview-overlay .modal-footer{padding-left:7px;padding-right:7px}
  .modal-overlay.seating-preview-overlay .sp-doc{padding-left:10px!important;padding-right:10px!important}
  /* Seating preview footer on mobile: print choices on top (shrunk, may wrap to 2
     short lines), then Close / Download / Print on their own full-width row. */
  .modal-overlay.seating-preview-overlay .modal-footer{flex-wrap:wrap;gap:8px}
  .modal-overlay.seating-preview-overlay .sp-foot-choices .inv-seg button{padding:3px 6px;font-size:10px}
  .modal-overlay.seating-preview-overlay .sp-foot-choices{flex:1 1 100%;justify-content:center;margin-right:0!important;gap:6px;column-gap:5px}
  .modal-overlay.seating-preview-overlay .sp-foot-actions{flex:1 1 100%;display:flex!important;gap:8px;justify-content:stretch}
  .modal-overlay.seating-preview-overlay .sp-foot-actions .btn{flex:1 1 0;padding:9px 8px;justify-content:center;white-space:nowrap}
  /* Tighten vertical rhythm: 8px top, 6px title→body, 6px body→footer, 8px bottom. */
  .modal-overlay.seating-preview-overlay .modal-header{padding-top:8px}
  .modal-overlay.seating-preview-overlay .modal-body{padding-top:6px;padding-bottom:6px}
  .modal-overlay.seating-preview-overlay .modal-footer{padding-bottom:8px}
  /* RSVP & Invites: reclaim 5px each side so every card/box is ~5px wider on mobile. */
  #main-content[data-page="rsvp-mgr"]{margin-left:-5px;margin-right:-5px}
  /* Guest Response Tracker grid: sit flush inside the 3px card side padding. */
  #main-content[data-page="rsvp-mgr"] #rsvp-list{margin-left:-2px;margin-right:-2px}
  /* Hide redundant breakdown icons in the Cards (style 1) summary on mobile (everywhere) */
  .bsum-card-btn{display:none}
  /* Cards (style 1): wider cards (tighter gap), shorter height (less padding) */
  .bsum-cards-grid{gap:6px}
  .bsum-card{padding:5px 9px}
  .bsum-card-lbl{margin-bottom:1px}
  /* Rows (style 3): compact the block, trimming space above Committed & below Remaining */
  .bsum-rows{margin-top:-3px;margin-bottom:-3px}
  /* Ring (style 4): keep the tight single-line gap on mobile. */
  .bsum-ring{gap:7px}
  .bi-head{flex-wrap:wrap}
  .bi-head > .bi-total-block{order:3;flex-basis:100%;min-width:0;max-width:100%;margin-top:1px;justify-content:flex-end;gap:5px}
  /* Trim the category header's vertical padding on mobile — the default 7px top/bottom
     plus the wrap margin left a visible empty band above the Paid/Owing/Total block. */
  .bi-head{padding-top:5px!important;padding-bottom:5px!important}
  /* Right rail (Option C): don't strand the Allocated figure on its own line. Hide the
     side total-block and show the Allocated figure atop the stat rail instead, so it
     nestles into the previously-empty space above Committed/Left/Paid/Owing. */
  .bi-head.cathdr-rail{flex-wrap:nowrap!important}
  .bi-head.cathdr-rail > .bi-total-block{display:none!important}
  .bi-head.cathdr-rail .bi-rail-allocfig{display:flex!important}
  .bi-head.cathdr-rail .bi-railstats{margin-top:4px!important}
  .bi-head.cathdr-rail .dots-menu{justify-content:flex-start!important}
  /* Minimal line: keep the amount + meta inline beside the name (don't wrap to its own
     line), so the header is only as tall as its content. */
  .bi-head.cathdr-minimal{flex-wrap:nowrap!important}
  .bi-head.cathdr-minimal > .bi-total-block{order:0!important;flex:0 0 auto!important;flex-basis:auto!important;min-width:0;margin-top:0!important}
  /* Spend split bar & Compact stack: the TOTAL gets its own slot inline beside the name
     (vertically centred), instead of wrapping to a full-width line that inflates the
     header height. Header only grows as tall as its content needs. */
  .bi-head.cathdr-splitbar,.bi-head.cathdr-stack{flex-wrap:nowrap!important}
  .bi-head.cathdr-splitbar > .bi-total-block,.bi-head.cathdr-stack > .bi-total-block{order:0!important;flex:0 0 auto!important;flex-basis:auto!important;min-width:0;max-width:none!important;margin-top:0!important;align-self:flex-start!important}
  /* Category header: show single combined meta line, hide the 2-line stack */
  .bi-meta-2line{display:none!important}
  .bi-meta-1line{display:block!important}
  /* Let the combined meta line wrap instead of overflowing the viewport (which pushed the amount off-screen) */
  .bi-meta-1line{font-size:9px;white-space:normal!important;text-align:right;line-height:1.35}
  /* Widen sub-item boxes to maximise space on mobile */
  .budget-subitem-box{padding-left:4px;padding-right:4px}
  /* Per-category amount column: shrink the fixed 62px number column down to only as wide as
     the widest amount in THIS category (set as --bsub-amt-w on each box). This removes the
     wasted gap between "$" and small amounts and keeps every $ aligned vertically within a
     category. Mobile only; desktop keeps the steady 62px column. */
  .bsub-amt-num{width:var(--bsub-amt-w,62px)!important;margin-left:1px!important}
  /* Sub-item DEPOSIT figure: same treatment — shrink the fixed 62px box to its content so
     the "$" sits right next to the deposit figure (no wasted gap). Mobile only. */
  .bsub-depamt-num{width:auto!important;margin-left:-3px!important}
  /* If the deposit row wraps (date + $amount drop to a 2nd line), keep only 5px between
     the lines (the column gap between items on a line stays 8px). */
  .bsub-dep-row{row-gap:5px!important;align-content:flex-start!important}
  /* Sub-item rows stay on ONE line when the name + amount fit (the common case);
     the JS width-watcher adds .bsub-narrow to wrap to a second line only when a row
     genuinely can't fit. On line 2 the badges (left) and the date+amount (right) SHARE
     the line; a third line spills only if the badges themselves don't fit. */
  .budget-subitem-box{padding-top:2px!important;padding-bottom:2px!important;margin-bottom:5px}
  .bsub-head{min-height:26px}
  /* When the watcher DOES wrap (.bsub-narrow): keep ··· + chevron on the TOP line pinned
     hard-right; badges drop to line 2 (left); date+amount join the SAME line 2 (right).
     Pack the wrapped lines to the top (align-content/items flex-start) so the gap between
     line 1 and line 2 is driven only by the 5px margin-top below, not by centering space,
     and drop the min-height so a wrapped row isn't padded out. */
  .bsub-head.bsub-narrow{align-content:flex-start!important;align-items:flex-start!important;min-height:0!important;row-gap:0!important}
  .bsub-head.bsub-narrow > .dots-menu{order:40;margin-left:auto}
  .bsub-head.bsub-narrow > .bsub-chevron{order:41}
  .bsub-head.bsub-narrow::after{content:"";order:50;flex-basis:100%;height:0;font-size:0;line-height:0;margin:0;padding:0}
  .bsub-head.bsub-narrow > .bsub-2ndline-badge{order:60;margin-top:5px}
  .bsub-head.bsub-narrow > .bsub-2ndline-badge ~ .bsub-2ndline-badge{margin-left:5px}
  /* date+amount share line 2, pushed hard-right; only spills to line 3 if no room. */
  .bsub-head.bsub-narrow > .bsub-rightgrp{order:70;flex:0 0 auto;margin-left:auto;margin-top:5px;padding-right:0}
  /* Deposit row (its right group is a bare span, not .bsub-rightgrp) — pin to line 2 right. */
  .bsub-head.bsub-narrow > span:last-child:not(.bsub-chevron){order:70;margin-left:auto;margin-top:5px}
  /* URL line aligns under the checkbox (drop the name indent on mobile). */
  .bsub-url-line{margin-left:0!important}
  /* ··· sits close to the chevron; chevron pushed to the far right of the row. */
  .bsub-head{gap:6px}
  .bsub-head > .dots-menu{margin-left:0}
  .bsub-head > .dots-menu .dots-btn{padding-left:6px!important;padding-right:0!important}
  .bsub-head > .bsub-chevron{margin-left:-3px;padding-left:0!important;padding-right:0!important}

  /* ── Budget mobile: reclaim wasted vertical/horizontal space (red-marked areas) ── */
  /* Wider category cards: pull the card edges outward to gain horizontal room. */
  .budget-item{margin-left:-6px!important;margin-right:-6px!important}
  /* Category body: trim the generous 12/16 padding so rows are wider + tighter. */
  .bi-cat-body{padding:7px 4px!important}
  /* "Hide sub-items" divider: tight padding; the 5px gap below comes from the wrapper. */
  .bi-subs-toggle{padding:4px 2px 2px!important;margin-top:4px!important}
  /* The sub-items wrapper adds its own margin/border/padding above the first row — set it
     to exactly 5px on mobile (the requested gap below "Hide sub-items"). */
  .bi-subs-wrap{margin-top:5px!important;padding-top:0!important;border-top:none!important}
  /* Vendor badge: always on its own dedicated second row (full width, aligned with
     the checkbox), never sharing line 2 with the date/amount. The separate
     .bsub-vendor-line is shown; the inline line-2 copy stays hidden on mobile. */
  .bsub-vendor-line{display:block!important;margin-top:5px!important}
  .bsub-vendor-inline{display:none!important}
  /* Plan progress block: 5px above the bar and above the "installments paid" line. */
  .bsub-planprog{margin-top:5px!important;padding-left:0!important}
  .bsub-planprog-next{margin-top:5px!important}
  /* Deposit connector row: shrink the left indent + elbow so the box gains width. */
  .bi-dep-connect{margin-left:0!important}
  .bi-dep-elbow{width:9px!important}
  /* Tighten the gap above the budget panel (sticky banner top margin). */
  .budget-total-card{margin-bottom:8px!important}

  /* ── Guest List: reclaim width on mobile ───────────────────────────────── */
  /* Tighter card padding + smaller avatar = more room for name/details. */
  /* ── Guest List: condensed cards on mobile ─────────────────────────────── */
  /* Grid: [avatar] [name / meta] [RSVP]. Avatar + RSVP span both text rows so
     the RSVP sits beside the name instead of dropping to its own full row. */
  .guest-card{padding:8px 11px 8px 3px!important;gap:0!important;display:grid!important;grid-template-columns:35px 1fr auto;column-gap:11px;row-gap:3px;align-items:center;flex-wrap:nowrap}
  .guest-card .guest-avatar{width:27px;height:27px;font-size:12px;grid-column:1;grid-row:1 / span 2;align-self:start;margin-top:8px}
  .guest-card .guest-info{grid-column:2;grid-row:1 / span 2;min-width:0;display:flex;flex-direction:column;gap:1px}
  /* Role + tags + extra lines tuck tight under the name. */
  .guest-card .guest-info .guest-sub{font-size:11.5px;line-height:1.3}
  .guest-card .guest-info > div[style*="margin-top:4px"]{margin-top:2px!important}
  /* ··· menu top-right on the name row; RSVP sits just below it, right-aligned. */
  .guest-card > .dots-menu{grid-column:3;grid-row:1;align-self:start;justify-self:end;margin:0}
  .guest-card .guest-rsvp-wrap{grid-column:3;grid-row:2;align-self:end;justify-self:end;flex:0 0 auto;margin:0}
  .guest-card .guest-rsvp-wrap .rsvp-select{width:auto!important;min-width:0;font-size:11px;padding:0 23px 0 9px!important;line-height:1!important;height:23px!important}
  /* Tighten the space between members inside a couple/family bracket. */
  .couple-inner{gap:4px!important;padding:7px 7px 7px 4px!important}
  .family-inner{gap:4px!important}
  /* Bracket member cards: kill the left inset so the avatar hugs the bracket edge. */
  .couple-inner .guest-card,.family-inner .guest-card{padding:6px 8px 6px 2px!important}
  /* Drop the "RSVP" eyebrow from the count summary and the "Filters:" label —
     the figures and chips are self-explanatory, and this reclaims width. */
  .gcount-rsvp-eyebrow{display:none!important}
  .gfilter-bar-label{display:none!important}
  /* Collapsed search bar: tighten the gap + font and abbreviate the status words
     so the four counts fit on one line instead of wrapping. */
  .guest-collapsed-bar{gap:6px!important;padding-left:9px!important;padding-right:9px!important}
  .guest-collapsed-bar .gcb-count{font-size:11px!important}
  .guest-collapsed-bar .gcb-w-full{display:none}
  .guest-collapsed-bar .gcb-w-short{display:inline}

  /* ── Checklist: compact rows on mobile ─────────────────────────────────── */
  /* Shave vertical padding so more tasks fit on screen; tighten the gap and
     pull the pin + ··· controls together to give the title more width. */
  .check-item{padding:9px 0!important;gap:10px!important}
  .checklist-compact .check-item{padding:6px 0!important}
  .check-item > button[title*="dashboard"]{padding:4px 2px}
  .check-item > .dots-menu{margin-left:0}
  /* Let the notes, appointment chips and budget-link reclaim the strip of width
     under the pin/··· controls so they only wrap near the card's right edge. */
  .check-item .cl-detail-wide{margin-right:-44px}
  /* ── Vision Board: card size, fixed columns per row on mobile ─────────── */
  /* X-Small = 4 / Small = 3 / Medium = 2 / Large = 1 per row. Gaps scale. */
  .vb-size-xsmall.vb-grid,.vb-size-xsmall.vb-editorial-grid{grid-template-columns:repeat(4,1fr)!important;gap:6px!important}
  .vb-size-small.vb-grid,.vb-size-small.vb-editorial-grid{grid-template-columns:repeat(3,1fr)!important;gap:7px!important}
  .vb-size-medium.vb-grid,.vb-size-medium.vb-editorial-grid{grid-template-columns:repeat(2,1fr)!important;gap:9px!important}
  .vb-size-large.vb-grid,.vb-size-large.vb-editorial-grid{grid-template-columns:1fr!important;gap:12px!important}
  .vb-size-xsmall.vb-scrapbook:not(.vb-dash),.vb-size-xsmall.vb-mood{columns:4!important;column-gap:6px!important}
  .vb-size-small.vb-scrapbook:not(.vb-dash),.vb-size-small.vb-mood{columns:3!important;column-gap:8px!important}
  .vb-size-medium.vb-scrapbook:not(.vb-dash),.vb-size-medium.vb-mood{columns:2!important;column-gap:10px!important}
  .vb-size-large.vb-scrapbook:not(.vb-dash),.vb-size-large.vb-mood{columns:1!important;column-gap:12px!important}
  .vb-size-xsmall.vb-dash{grid-template-columns:repeat(4,1fr)!important;gap:6px!important}
  .vb-size-small.vb-dash{grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
  .vb-size-medium.vb-dash{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}
  .vb-size-large.vb-dash{grid-template-columns:1fr!important;gap:12px!important}
  .vb-scrapbook > div{margin-bottom:9px!important}
  .vb-mood > div{margin-bottom:8px!important}
  /* Trim heavy side padding on phones so all cards fit comfortably */
  .vb-board.vb-scrapbook.vb-dash{padding-left:8px!important;padding-right:8px!important}
  .vb-page-board{padding-left:8px!important;padding-right:8px!important}
  .vb-scrapbook-wrap{padding-left:12px!important;padding-right:12px!important}
}
/* ── Desktop print-preview sizing (≥561px) ──
   Day-of Timeline and Budget previews are text-only documents, so on desktop we
   fix the pop-up to fit the sheet (only as wide as the longest line) instead of the
   wide 1100px box. The Guest List preview is left wide because its table can carry
   many columns. */
@media (min-width:561px){
  .modal-overlay.print-hub-overlay.export-prev-timeline .modal.modal-wide,
  .modal-overlay.print-hub-overlay.export-prev-budget .modal.modal-wide{
    width:min(92vw,672px);      /* fixed pop-up size */
    max-width:min(92vw,672px);
  }
  /* Cap the inner sheet so content reads at the document width, not stretched. */
  .modal-overlay.print-hub-overlay.export-prev-timeline #export-prev-scope .sheet,
  .modal-overlay.print-hub-overlay.export-prev-budget #export-prev-scope .sheet{max-width:620px!important}
  .modal-overlay.print-hub-overlay.export-prev-timeline #export-prev-scope table{width:100%!important}
}
@media (max-width:400px){
  /* Ring (style 4): keep the single-line layout; just trim the gap a touch more. */
  .bsum-ring{gap:6px!important}
}
.bsum-b{display:block}.bsum-a{display:none}
@media (max-width:560px){.bsum-a{display:block}.bsum-b{display:none}}
body.dark .bi-icon{stroke:#B0A085 !important}
.bi-head:has(.dots-menu-cols){align-items:stretch}
.dots-menu-cols{align-self:stretch;justify-content:flex-start}
.bi-autocalc-dim{color:#B6A98E}
body.dark .bi-autocalc-dim{color:#8A8270}
body.dark .bip-icon{stroke:#B0A085 !important}
body.dark .bip-label{color:#B0A085 !important}
body.dark .bi-total-amt{color:#B0A085 !important}
/* CHECKLIST COMPACT (Option 2) */
.checklist-compact .card{padding:14px}
.checklist-compact .toggle-section-btn{padding:4px 0}
.checklist-compact .check-item{padding:7px 0}

/* GUEST */
.guest-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:14px 16px;display:flex;align-items:center;gap:12px;transition:box-shadow .15s}
.guest-card:hover{box-shadow:var(--shadow)}
.guest-avatar{width:38px;height:38px;border-radius:50%;background:var(--parchment);display:flex;align-items:center;justify-content:center;font-family:'Cormorant Garamond',serif;font-size:16px;font-weight:600;color:var(--gold-deep);flex-shrink:0}
.guest-info{flex:1;min-width:0}
.guest-name{font-size:13.5px;font-weight:500;color:var(--ink)}
.guest-sub{font-size:12px;color:var(--muted)}
.couple-bracket{display:flex;flex-direction:column;background:#fff;border:1.5px solid var(--gold);border-radius:12px;overflow:hidden;margin-bottom:12px}
.solo-bracket{display:flex;flex-direction:column;background:#fff;border:1.5px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:10px}
.solo-bracket .guest-card{border:none;box-shadow:none;background:var(--cream)}
.family-bracket{display:flex;flex-direction:column;background:#fff;border:1.5px solid #5B7BA0;border-radius:12px;overflow:hidden;margin-bottom:12px}
.family-bracket-header{background:linear-gradient(90deg,#eef2f7,#fff);padding:8px 14px;font-size:12px;font-weight:500;color:#3f5f85;display:flex;align-items:center;gap:6px;border-bottom:1px solid #d7e0ec}
.family-inner .guest-card{border:none;box-shadow:none;padding:8px 10px;background:var(--cream)}
.family-bracket.household-bracket{border-color:#8A6BA8}
.household-bracket .family-bracket-header{background:linear-gradient(90deg,#f2edf6,#fff);color:#6e4f8c;border-bottom-color:#e3d8ee}
body.dark .family-bracket.household-bracket{border-color:#7a5f96}
body.dark .household-bracket .family-bracket-header{background:linear-gradient(90deg,rgba(122,95,150,.25),#202127);color:#c4a9da;border-bottom-color:#4a3a60}
.couple-bracket-header{background:linear-gradient(90deg,#fdf4e7,#fff);padding:8px 14px;font-size:12px;font-weight:500;color:var(--gold-deep);display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--parchment)}
.couple-inner{padding:8px;display:flex;flex-direction:column;gap:6px}
.couple-inner .guest-card{border:none;box-shadow:none;padding:8px 10px;background:var(--cream)}

/* BUDGET */
/* Budget page text size: a user-set zoom (cog menu → Text size) scales the whole
   page proportionally. Default 1 (Standard). Applied via --budget-zoom on the
   page container; zoom keeps sticky positioning and layout intact. */
#main-content[data-page="budget"]{zoom:var(--budget-zoom,1)}
.budget-item{background:#fff;border:1px solid var(--border);border-radius:10px;padding:16px;margin-bottom:10px}
.budget-subitem-box{background:#FCFBF9;border:none}
#bulk-bar-wrap .btn{font-size:10.5px;padding:3px 8px}
#bulk-bar-wrap .btn svg{width:11px;height:11px}
body.dark .budget-subitem-box{background:#26262C;border:none}
.budget-amount{font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:600;color:var(--ink)}

/* SEATING */
.table-card{background:#fff;border:2px solid var(--border);border-radius:16px;padding:18px;min-height:120px}
.table-card.drag-over{border-color:var(--gold);background:var(--parchment)}
.table-card.table-arrange-mode{cursor:grab;border-style:dashed;border-color:var(--gold);background:var(--parchment)}
.table-card.table-arrange-mode:active{cursor:grabbing}
.table-title{font-family:'Cormorant Garamond',serif;font-size:17px;font-weight:500;color:var(--ink);margin-bottom:10px;display:flex;align-items:center;justify-content:space-between}
.seat-chip{display:inline-flex;align-items:center;gap:5px;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:4px 10px;font-size:12px;margin:3px;cursor:grab;user-select:none;touch-action:none}
.seat-chip:active{cursor:grabbing;opacity:.7}
.seat-chip-grip{color:var(--muted);font-size:11px;letter-spacing:-1px;margin-right:1px;cursor:grab}
.seat-chip-drag.drag-over{border-color:var(--gold-deep);box-shadow:0 0 0 1px var(--gold-deep)}
/* ── Unassigned-guests pool: one continuous list, not wrapped pills. Couples/
   families use the same bracket-and-icon connector as the Guest List/RSVP
   tracker (see _gtConnectorHtml) instead of a separate boxed card. ────── */
#seating-pool{display:flex;flex-direction:column;align-items:stretch}
#seating-pool .seat-chip{display:flex;width:100%;margin:0;padding:7px 6px;border:none;border-radius:0;background:transparent}
#seating-pool .seat-chip.pool-row-div{border-bottom:.5px solid var(--border)}
#seating-pool .seat-chip:active{opacity:.6}
.pool-group{position:relative;padding-left:20px;cursor:grab;user-select:none;touch-action:none;border-radius:6px}
.pool-group:active{cursor:grabbing;opacity:.75}
.pool-group.pg-drag-over{box-shadow:inset 0 0 0 1.5px var(--gold-deep)}
/* Six-dot handle for a linked couple/family block. Purely additive: absolutely positioned inside the block's own
   box, so it takes no space and moves nothing. It sits OUTSIDE the name chips, so a drag that starts on it is a
   drag of the block's own draggable/pointer handler (whole group), while a drag that starts on a name moves just
   that guest. The hit area is larger than the dots so it is easy to grab with a finger. */
.pool-grip{position:absolute;right:0;top:50%;width:34px;height:44px;margin-top:-22px;cursor:grab;touch-action:none;z-index:2;opacity:.7;transition:opacity .15s}
.pool-grip::before{content:"";position:absolute;left:50%;top:50%;width:11px;height:17px;margin:-8.5px 0 0 -5.5px;
  background:radial-gradient(circle,currentColor 1.5px,transparent 1.8px) 0 0/5.5px 5.667px;color:var(--muted)}
.pool-group:hover .pool-grip,.pool-grip:hover,.pool-group:active .pool-grip{opacity:1}
.pool-grip:hover::before,.pool-group:active .pool-grip::before{color:var(--gold-deep)}
.pool-group-rows{display:flex;flex-direction:column;pointer-events:auto}
/* ── Seating Floorplan ─────────────────────────────────────────────── */
.floor-canvas{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden;overflow-anchor:none;transform-origin:0 0}
.floor-canvas.zooming{will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.floor-canvas.grid-on{background-image:radial-gradient(rgba(154,123,46,.18) 1.4px,transparent 1.4px);background-size:32px 32px;background-position:-1px -1px}
body.dark .floor-canvas.grid-on{background-image:radial-gradient(rgba(201,161,74,.22) 1.4px,transparent 1.4px)}
.floor-name-tag{font-family:'Inter',sans-serif;font-size:8.5px;font-weight:600;line-height:1.1;color:var(--ink);white-space:nowrap;background:var(--cream);border:.5px solid var(--border);border-radius:5px;padding:1px 5px;box-shadow:0 1px 4px rgba(0,0,0,.12);pointer-events:none;z-index:40}
body.dark .floor-name-tag{box-shadow:0 1px 5px rgba(0,0,0,.45)}
.floor-name-tag.fnt-awaiting{color:#7A6230;background:#FBF6EC;border-color:#D9C9A8}
.floor-name-tag.fnt-declined{color:#8B0000;background:#FBF0F0;border-color:rgba(180,60,60,.35)}
body.dark .floor-name-tag.fnt-awaiting{color:#D8C3A0;background:#2A2820;border-color:#6E6450}
body.dark .floor-name-tag.fnt-declined{color:#E08080;background:#2A1E1E;border-color:rgba(224,128,128,.35)}
.fnt-badge{font-size:7px;font-weight:700;letter-spacing:.03em;padding:0 3px;border-radius:2px;margin-left:3px}
.fnt-awaiting .fnt-badge{background:rgba(160,130,70,.22)}
.fnt-declined .fnt-badge{background:rgba(180,60,60,.18)}
body.dark .fnt-awaiting .fnt-badge{background:rgba(176,160,133,.25)}
body.dark .fnt-declined .fnt-badge{background:rgba(224,128,128,.2)}
.floor-table,.floor-decor{backface-visibility:hidden;-webkit-backface-visibility:hidden}
#floor-viewport{overflow-anchor:none}
.floor-zoom-ctrl{position:absolute;right:10px;bottom:10px;z-index:30;display:flex;flex-direction:column;align-items:stretch;gap:2px;background:var(--cream);border:.5px solid var(--border);border-radius:9px;padding:3px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
body.dark .floor-zoom-ctrl{box-shadow:0 2px 12px rgba(0,0,0,.5)}
.floor-zoom-ctrl button{width:26px;height:24px;border:none;background:var(--surface);border-radius:6px;color:var(--gold-deep);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .12s}
.floor-zoom-ctrl button:hover{background:var(--parchment)}
.floor-zoom-ctrl .floor-zoom-pct{font-size:9px;font-weight:600;color:var(--muted);text-align:center;line-height:1;padding:1px 0;font-family:'Inter',sans-serif;letter-spacing:-.02em}
.floor-table{position:absolute;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
/* Layout locked: tables & areas can't be dragged/resized/rotated — hide their handles
   and drop the grab cursor so the plan reads as fixed. */
.floor-canvas.floor-locked .floor-table,.floor-canvas.floor-locked .floor-decor{cursor:default}
.floor-canvas.floor-locked .floor-resize,.floor-canvas.floor-locked .floor-rotate{display:none!important}
.floor-canvas.floor-locked .floor-table:hover .floor-resize,.floor-canvas.floor-locked .floor-decor:hover .floor-resize{opacity:0}
/* Without this, a touch-drag on a chair can race the browser's own pinch/pan
   gesture recognition — if the browser wins, it can take the touch over without
   ever sending the pointerup/pointercancel the drag cleanup relies on, leaving
   its ghost stuck on screen (most visible right after a zoom). */
.floor-seat{touch-action:none}
/* Fully locked: guests can't be dragged either (tap still opens the table manager). */
.floor-canvas.floor-locked-all .floor-seat{cursor:default}
.floor-canvas.floor-locked .floor-decor .decor-x{display:none!important}
.floor-table:active{cursor:grabbing}
/* Multi-select: a persistent ring (not the pulsing seat/chip "found" animation —
   this is a held state, not a momentary flash). */
.floor-table.floor-selected,.floor-decor.floor-selected{outline:2px solid var(--gold-deep);outline-offset:3px;border-radius:6px}
/* Grouping: a persistent shared outline (unlike the transient .floor-selected ring
   above), drawn under the tables/areas themselves so it never blocks a drag. */
.floor-group-outline{position:absolute;border:1.5px dashed var(--gt-fam);border-radius:14px;background:rgba(91,123,160,.08);pointer-events:none;z-index:1}
.floor-ungroup-chip{position:absolute;top:-11px;left:50%;transform:translateX(-50%);background:var(--gt-fam);color:#fff;font-size:10.5px;font-weight:600;font-family:'Inter',sans-serif;border:none;border-radius:99px;padding:3px 10px;cursor:pointer;pointer-events:auto;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.floor-link-badge{position:absolute;top:-7px;right:-7px;width:16px;height:16px;border-radius:50%;background:var(--gt-fam);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.25);pointer-events:none;z-index:5}
@keyframes seatFindPulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--green) 60%,transparent)}70%{box-shadow:0 0 0 13px transparent}100%{box-shadow:0 0 0 0 transparent}}
.floor-seat.seat-found{background:var(--green)!important;animation:seatFindPulse 1.3s ease-out infinite;z-index:6;outline:2px solid color-mix(in srgb,var(--green) 75%,black);outline-offset:1px}
/* Free placement (v139): empty chairs are drop targets. They are invisible until a
   drag starts, then they wake — so the floorplan stays calm when you are not moving
   anyone. `.seat-drop-hot` is the one under the cursor. */
.floor-canvas.seat-dragging .floor-seat-empty{border-color:var(--gold)!important;border-style:dashed!important;border-width:2px!important}
.floor-canvas.seat-dragging .floor-seat-empty.seat-drop-hot{background:var(--parchment)!important;border-style:solid!important;border-color:var(--gold-deep)!important;transform:scale(1.18);z-index:7}
.floor-canvas.seat-dragging .floor-seat[data-gid].seat-drop-hot{outline:2px solid var(--gold-deep);outline-offset:2px;z-index:7}
.floor-table.table-found .ftbl-scale > div[style*="border"]{border-color:color-mix(in srgb,var(--green) 75%,black)!important}
@keyframes chipFindPulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--green) 55%,transparent)}70%{box-shadow:0 0 0 11px transparent}100%{box-shadow:0 0 0 0 transparent}}
.seat-chip.chip-found{background:var(--green)!important;border-color:color-mix(in srgb,var(--green) 75%,black)!important;color:#fff!important;font-weight:600;animation:chipFindPulse 1.3s ease-out infinite}
.seat-match-pill{transition:background .15s}
.modal-warn-ico{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:rgba(192,57,43,.14);color:var(--red,#C0392B)}
body.dark .modal-warn-ico{background:rgba(224,128,128,.16);color:#E08080}
.floor-decor{position:absolute;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.floor-decor .decor-x{opacity:0;transition:opacity .15s}
.floor-decor:hover .decor-x{opacity:1}
.decor-zone{position:absolute;inset:0;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;padding:2px 4px;overflow:hidden;border:2px dashed var(--gold-deep);color:var(--gold-deep);background:repeating-linear-gradient(45deg,rgba(201,161,74,.10),rgba(201,161,74,.10) 6px,transparent 6px,transparent 12px)}
body.dark .decor-zone{border-color:#B0A085;color:#D8C9A8;background:repeating-linear-gradient(45deg,rgba(176,160,133,.15),rgba(176,160,133,.15) 6px,transparent 6px,transparent 12px)}
.decor-zone .decor-lbl{font-size:9px;letter-spacing:.13em;text-transform:uppercase;font-weight:600;line-height:1.15}
/* ── Floorplan text labels (v170) ──
   A text label is NOT a zone: no dashed border, no hatch fill, no padding box. It is just
   words on the plan, so it deliberately does not reuse .decor-zone. Font size scales with
   the item's height so dragging the resize grip makes the text bigger, which is the only
   sizing control that makes sense for a label. */
.ftxt-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;overflow:visible}
.ftxt{white-space:pre-wrap;line-height:1.15;color:var(--ink)}
.ftxt-caps{font-family:'Inter',sans-serif;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-deep)}
.ftxt-heading{font-family:'Cormorant Garamond',serif;font-weight:600;color:var(--ink)}
.ftxt-note{font-family:'Cormorant Garamond',serif;font-style:italic;color:var(--muted)}
.ftxt-boxed{font-family:'Inter',sans-serif;background:var(--cream);border:1px solid var(--border);border-radius:6px;padding:4px 9px;color:var(--ink)}
body.dark .ftxt-caps{color:var(--gold)}
/* Doorways draw as line work, not as a filled area — they mark a point on a wall. */
.fdoor{position:absolute;inset:0;overflow:visible}
.fdoor svg{width:100%;height:100%;display:block;overflow:visible}
/* ── Black & white floorplan PNG (v171) ──
   These live in the real stylesheet, NOT in the _SEATING_PRINT_CSS string, and that is
   deliberate. That string is only injected into the DOM while the print-preview modal is
   open, so its `.sp-doc.bw` rules simply are not present when the PNG is exported from the
   floorplan toolbar — the export would have silently ignored the B&W setting. The PNG
   pipeline collects every <style> in the document, so rules it depends on have to be real.

   Line art, not a desaturated screenshot: white ground, no dot grid, chairs as outlines.
   The grid and the tinted canvas are editing aids, not part of the venue, and solid filled
   chairs print muddy on a home printer for no extra information. */
.pngbw{--gold:#8a8a8a;--gold-deep:#6f6f6f;--green:#6f6f6f;--red:#6f6f6f;--muted:#767676;
       --border:#9a9a9a;--surface:#fff;--cream:#fff;--ink:#222;--parchment:#f4f4f4;--connector:#bbb}
.pngbw #floor-canvas,.pngbw .floor-canvas{background:#fff!important;background-image:none!important;border-color:#bbb!important}
.pngbw [data-pipon="1"]{background:transparent!important;border:1.5px solid #6f6f6f!important}
.pngbw .sp-pip-init{color:#4a4a4a!important}
.pngbw .decor-zone,.pngbw .floor-name-tag{filter:grayscale(1)}
.floor-resize{position:absolute;right:-6px;bottom:-6px;width:15px;height:15px;border-radius:4px;background:var(--panel,var(--cream));border:1px solid var(--border);color:var(--muted);cursor:nwse-resize;opacity:.6;transition:opacity .15s;display:flex;align-items:center;justify-content:center;touch-action:none;z-index:3}
.floor-rotate,.floor-rotate+span{transition:opacity .15s}
/* Mouse/stylus: hover-reveal, as before. Touch has no :hover to reveal them with, so
   they stay at a faint-but-tappable opacity (set above/inline) at all times instead —
   same idle/on-contact split already used for the guest-list edit pencil. */
@media (hover:hover),(pointer:fine){
  .floor-resize{opacity:0}
  .floor-table:hover .floor-resize,.floor-decor:hover .floor-resize{opacity:1}
  .floor-rotate,.floor-rotate+span{opacity:0}
  .floor-table:hover .floor-rotate,.floor-table:hover .floor-rotate+span,.floor-decor:hover .floor-rotate,.floor-decor:hover .floor-rotate+span{opacity:1}
}
.floor-panel-resize{position:absolute;top:0;bottom:0;right:-15px;width:15px;display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none;z-index:5}
.floor-panel-resize-grip{width:4px;height:36px;border-radius:3px;background:var(--border);transition:background .15s,height .15s}
.floor-panel-resize:hover .floor-panel-resize-grip,.floor-panel-resize.dragging .floor-panel-resize-grip{background:var(--gold-deep);height:52px}
/* Website builder's section-list resize handle — same grip visual as .floor-panel-resize,
   but positioned with `left` (not `right`) since it sits on .wb-shell itself (a grid
   container whose first column's width is user-adjustable) rather than on the column it
   resizes, which has overflow:hidden and would clip a right:-15px child. */
.wb-panel-resize{position:absolute;top:0;bottom:0;width:20px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none;z-index:5}
.wb-panel-resize:hover .floor-panel-resize-grip,.wb-panel-resize.dragging .floor-panel-resize-grip{background:var(--gold-deep);height:52px}
.seat-seg{display:inline-flex;border:.5px solid #E3D7C4;border-radius:9px;overflow:hidden;background:#FBF8F3}
body.dark .seat-seg{border-color:#6E6450;background:#24242A}
.seat-seg button{border:none;background:none;cursor:pointer;font-family:'Inter',sans-serif;font-size:11px;font-weight:500;color:var(--muted);padding:6px 9px;display:inline-flex;align-items:center;gap:4px;transition:all .15s}
.seat-seg button.on{color:var(--ink);background:#fff;font-weight:600}
body.dark .seat-seg button.on{background:#2C2C32;color:#EAE6E0}
.seat-seg button:not(.on):hover{color:var(--ink)}
/* Layout (list/floorplan) switcher in the sticky bar: match the 30px search height. */
.seat-layout-seg{height:30px}
.seat-layout-seg button{height:30px;padding-top:0;padding-bottom:0}
@media (max-width:768px){.seat-layout-seg button .seat-seg-label{display:none}.seat-layout-seg button{padding:6px 10px;gap:0}}
@media (max-width:600px){.rsvp-invites-btn .rsvp-invites-label{display:none}.rsvp-invites-btn{padding:6px 9px!important;gap:0!important}}
/* ── RSVP tracker header layout ── */
/* DOM order: title, tools (search + Columns), cog. */
.rsvp-thead{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.rsvp-thead-title{display:flex;align-items:center;gap:10px;min-width:0}
.rsvp-thead-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rsvp-thead-search{max-width:180px}
/* Desktop (≥601px): unchanged from the original — title on the left; the
   search + Columns + cog group sits together on the right (8px gap, cog last). */
@media (min-width:601px){
  .rsvp-thead-title{flex:0 0 auto}
  .rsvp-thead-tools{margin-left:auto}       /* push the right-hand group over */
  .rsvp-thead-cog{margin-left:-4px}         /* net 8px gap after Columns (12px thead gap - 4) */
}
/* Mobile (≤600px): heading + cog share row 1 (cog skewed right); search +
   Columns drop to a full-width second row. */
@media (max-width:600px){
  /* Header (eyebrow + search + cog) and filter pills get 14px horizontal inset on mobile,
     while the card sides stay at 3px so the table uses full width. */
  .rsvp-tracker-card .rsvp-thead{padding-left:14px!important;padding-right:14px!important}
  .rsvp-tracker-card #rsvp-filter-pills{padding-left:14px!important;padding-right:14px!important}
  /* Tracker card: 14px top/bottom, 3px sides, 10px margin-top.
     !important on margin-top beats the inline style="margin-top:18px" on the div.
     Targets .rsvp-tracker-card (on the card div in JS) so it works with or without a dock wrapper. */
  /* Reduce gap from bottom of topbar to top of tracker card to 8px total.
     Content padding-top 0 on rsvp-mgr + card margin-top 8px = 8px. */
  #main-content[data-page="rsvp-mgr"]{padding-top:0!important}
  .rsvp-tracker-card{padding:14px 3px!important;margin-top:8px!important}
  /* Tighter gap between docked tracker row and all RSVP grid cards. */
  .rsvp-tracker-row{gap:5px!important}
  .rsvp-card-grid{gap:5px!important;margin-top:5px!important}
  #main-content[data-page="rsvp-mgr"] .rsvp-card-grid .card{margin-top:5px!important}
  /* All widget cards (non-tracker) get the same 14px padding as the tracker card on mobile.
     The invitation card overrides with inline padding:24px so needs !important. */
  #main-content[data-page="rsvp-mgr"] .rsvp-card-grid .card{padding:14px!important}
  /* Filter pills: each pill stretches equally across full card width, text centred.
     The !important chain must beat both the CSS class rules AND the inline style on each chip button
     (font-size:11.5px;padding:5px 12px;border-radius:14px hardcoded in JS template). */
  #rsvp-filter-pills{display:flex!important;gap:4px!important;flex-wrap:nowrap!important;overflow-x:visible!important;margin:0 0 8px!important;padding:0!important}
  #rsvp-filter-pills .rsvp-chip{flex:1!important;min-width:0!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;font-size:10px!important;padding:4px 2px!important;border-radius:6px!important;border-width:1px!important}
  .rsvp-thead{gap:0;margin-bottom:8px}
  .rsvp-thead-title{order:1;flex:1 1 auto;min-width:0;align-self:flex-start;padding-top:6px}
  .rsvp-thead-cog{order:2;flex:0 0 auto;margin:4px 0 4px}
  .rsvp-thead-tools{order:3;flex:1 1 100%;width:100%;flex-wrap:nowrap}
  .rsvp-thead-search{flex:1;min-width:0;max-width:none}
  /* Tracker table mobile padding:
     - edit pencil col (.gt-edit-cell): padding:0 — exempted from the horizontal override
       so the 8px!important doesn't clip the 24px button inside the 28px cell.
     - th/td (non-edit): 6px horizontal. Vertical: 6px header (non-compact), 8px data (non-compact).
     - Compact overrides sit below. */
  #rsvp-list-scroll #rsvp-scroll th, #rsvp-list-scroll #rsvp-scroll td,
  #rsvp-scroll th, #rsvp-scroll td{padding-left:6px!important;padding-right:6px!important}
  /* Pencil column: zero out ALL padding — must come after the general th/td rule and match its
     specificity so source order wins. The btn has margin-left:2px of its own. */
  #rsvp-list-scroll #rsvp-scroll td.gt-edit-cell,
  #rsvp-scroll td.gt-edit-cell{padding:0!important;padding-left:0!important;padding-right:0!important}
  /* Header row: 6px vertical (non-compact). */
  #rsvp-list-scroll #rsvp-scroll thead th,
  #rsvp-scroll thead th{padding-top:6px!important;padding-bottom:6px!important}
  /* Compact header: 4px vertical. */
  #rsvp-list-scroll #rsvp-scroll.rsvp-compact thead th,
  #rsvp-scroll.rsvp-compact thead th{padding-top:4px!important;padding-bottom:4px!important}
  #rsvp-list-scroll #rsvp-scroll .rsvp-set,
  #rsvp-scroll .rsvp-set{min-width:92px!important;padding:5px 24px 5px 9px!important;font-size:11px!important;background-position:right 8px center!important}
  /* Mobile tracker scroll heights — override the JS inline max-height per height mode. */
  #rsvp-list-scroll[data-tracker-height="short"]{max-height:280px!important}
  #rsvp-list-scroll[data-tracker-height="medium"]{max-height:450px!important}
  /* Add Couple: platform radio options shrink to icon-only so both fit in one row
     inside the narrow two-column couple grid. */
  .gf-more-couple [data-plat] .fpr-dot{display:none}
  .gf-more-couple [data-plat] .fpr-text{display:none}
  .gf-more-couple [data-plat]{flex:0 0 auto;min-width:0;padding:7px 11px;justify-content:center}
  .gf-more-couple [data-plat] .fpr-icon svg{width:16px;height:16px}
}
.mgr-rot-reset{color:var(--muted)}
.mgr-rot-reset:hover{color:var(--gold-deep);border-color:var(--gold-deep)}
body.dark .mgr-rot-reset:hover{color:var(--gold);border-color:var(--gold)}
.snap-toggle{display:inline-flex;align-items:center;gap:5px;border:.5px solid #E3D7C4;border-radius:9px;background:#FBF8F3;color:var(--ink);font-family:'Inter',sans-serif;font-size:11px;font-weight:500;padding:6px 11px;cursor:pointer;transition:all .15s}
.snap-toggle svg{color:#C9B89C;transition:color .15s}
.snap-toggle:hover{border-color:#D8C4A0}
.snap-toggle.on{background:rgba(201,161,74,.12);border-color:var(--gold-deep);color:var(--gold-deep);font-weight:600}
.snap-toggle.on svg{color:var(--gold-deep)}
body.dark .snap-toggle{background:#24242A;border-color:#6E6450;color:var(--muted)}
body.dark .snap-toggle svg{color:#8A7E66}
body.dark .snap-toggle.on{background:rgba(201,161,74,.16);border-color:var(--gold);color:var(--gold)}
body.dark .snap-toggle.on svg{color:var(--gold)}
/* Floorplan 3-state lock: the toggle reuses .snap-toggle; .floor-lock-full is the
   deeper "everything frozen" fill; the corner badge shows WHAT is locked
   (grid glyph = layout only, person glyph = everyone). */
.snap-toggle.floor-lock-full{background:rgba(139,115,85,.18);border-color:var(--gold-deep);color:var(--gold-deep);font-weight:600}
.snap-toggle.floor-lock-full svg{color:var(--gold-deep)}
body.dark .snap-toggle.floor-lock-full{background:rgba(176,160,133,.22);border-color:var(--gold);color:var(--gold)}
body.dark .snap-toggle.floor-lock-full svg{color:var(--gold)}
.floor-lock-btn{position:relative;width:82px;justify-content:center}
@media (max-width:768px){
  /* Mobile: condense the lock button to the narrowest footprint (matches "Lock"); the
     wider "Layout"/"Locked" labels use tighter side padding + gap to fit the same box. */
  .floor-lock-btn{width:70px;padding-left:6px;padding-right:6px;gap:4px}
}
/* Floorplan hint: full instructions on desktop, just "Drag tables to arrange" on mobile
   (the Ctrl gestures don't apply to touch). */
.floor-hint-short{display:none}
@media (max-width:768px){
  .floor-hint-full{display:none}
  .floor-hint-short{display:inline}
}
.floor-lock-badge{position:absolute;right:-5px;bottom:-5px;width:14px;height:14px;border-radius:50%;background:var(--gold-deep);color:#fff;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--cream)}
.floor-lock-badge svg{color:#fff!important;width:8px;height:8px}
body.dark .floor-lock-badge{background:var(--gold);color:#191A1E;border-color:#24242A}
body.dark .floor-lock-badge svg{color:#191A1E!important}
.seat-stickybar{position:sticky;top:-32px;z-index:45;margin:-32px -28px 16px;padding:14px 28px 14px;background:var(--cream);border-bottom:1px solid var(--border);box-shadow:0 2px 8px rgba(0,0,0,.04)}
body.dark .seat-stickybar{background:#1B1B1F;border-bottom-color:rgba(40,43,54,.6);box-shadow:0 2px 12px rgba(0,0,0,.4)}
@media (max-width:768px){.seat-stickybar{top:-20px;margin:-20px -16px 14px;padding:18px 16px 8px}}
.seat-stickybar-key{display:flex;align-items:center;gap:9px;flex-wrap:wrap;line-height:1;margin-top:8px}
@media (max-width:768px){.seat-stickybar-key{gap:7px 9px;margin-top:5px}}
.seat-stickybar-key .dk{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);white-space:nowrap}
.seat-cog-action[disabled]{opacity:.42;cursor:not-allowed;pointer-events:none}
.seat-stickybar-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.seat-tools-chevron{width:24px;height:24px;border-radius:6px;border:.5px solid #E3D7C4;background:#fff;color:#9A8B72;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;padding:0;flex-shrink:0}
.seat-tools-chevron:hover{color:#A89066;border-color:#D8C9B2;background:#F5EFE6}
body.dark .seat-tools-chevron{background:#24242A;border-color:#6E6450;color:#A2957A}
body.dark .seat-tools-chevron:hover{color:#CBBBA0;border-color:#A2957A;background:#2C2C32}
.dietary-key{display:flex;flex-wrap:wrap;gap:12px;padding:12px 16px;background:var(--surface);border-radius:8px;margin-bottom:14px;font-size:12px}
.dietary-key-item{display:flex;align-items:center;gap:5px;color:var(--muted)}

/* INSPO */
.inspo-card{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:visible}
.inspo-img-wrap{width:100%;height:180px;object-fit:cover;background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;overflow:hidden;border-radius:11px 11px 0 0}
.inspo-img-wrap img{width:100%;height:100%;object-fit:cover}
.inspo-body{padding:14px}

/* COLOUR PALETTE */
.palette-section{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px;margin-bottom:20px}
.palette-group-label{font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:5px;margin-top:11px}
.palette-group-label:first-child{margin-top:0}
.palette-swatches{display:flex;flex-wrap:wrap;gap:8px}
.pal-swatch{position:relative;width:52px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:5px;outline:none}
.pal-swatch-circle{width:44px;height:44px;border-radius:50%;transition:transform .18s,box-shadow .18s;box-shadow:0 1px 4px rgba(0,0,0,.1);border:2.5px solid transparent;flex-shrink:0}
.pal-swatch:hover .pal-swatch-circle{transform:scale(1.1);box-shadow:0 3px 12px rgba(0,0,0,.15)}
.pal-swatch.selected .pal-swatch-circle{border-color:var(--gold-deep);box-shadow:0 0 0 3px rgba(196,168,130,.35),0 3px 12px rgba(0,0,0,.12)}
.pal-swatch-tick{position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:var(--gold-deep);display:none;align-items:center;justify-content:center}
.pal-swatch.selected .pal-swatch-tick{display:flex}
.pal-swatch-name{font-size:9.5px;color:var(--muted);text-align:center;line-height:1.2;max-width:52px;word-break:normal;overflow-wrap:break-word}
.selected-strip{margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}
.your-palette-label{display:block;font-size:12px;color:var(--muted);margin-bottom:14px}
.brush-strokes{display:flex;flex-wrap:wrap;gap:18px 14px;align-items:flex-start}
.brush-swatch{position:relative;cursor:default}
.brush-swatch svg{display:block}
/* Soft shadow so strokes (especially near-white ones) read on the card without
   altering the card background. Slightly stronger in dark mode for contrast. */
.brush-stroke-svg{filter:drop-shadow(0 1px 2.5px rgba(0,0,0,.22))}
body.dark .brush-stroke-svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.brush-name{text-align:center;font-size:10.5px;color:var(--muted);margin-top:2px;line-height:1.2;max-width:118px}
.brush-x{position:absolute;top:-5px;right:6px;width:18px;height:18px;border-radius:50%;background:var(--cream);border:1px solid var(--border);cursor:pointer;font-size:12px;line-height:1;color:var(--muted);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s;box-shadow:0 1px 3px rgba(0,0,0,.12);z-index:2}
.brush-swatch:hover .brush-x{opacity:1}
.brush-x:hover{color:var(--red);border-color:var(--red)}
/* Custom colour picker */
.custom-colour-row{display:flex;gap:10px;align-items:center;margin-top:18px;padding-top:18px;border-top:1px solid var(--border);flex-wrap:wrap}
.colour-spectrum{-webkit-appearance:none;appearance:none;width:44px;height:44px;border-radius:50%;border:2.5px solid var(--border);cursor:pointer;padding:0;background:none;flex-shrink:0}
.colour-spectrum::-webkit-color-swatch-wrapper{padding:0;border-radius:50%}
.colour-spectrum::-webkit-color-swatch{border-radius:50%;border:none}
.colour-spectrum::-moz-color-swatch{border-radius:50%;border:none}
.hex-input-wrap{display:flex;align-items:center;gap:0;flex:1;min-width:140px;max-width:220px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}
.hex-prefix{padding:0 10px;font-size:13px;color:var(--muted);background:var(--surface);border-right:1px solid var(--border);height:42px;display:flex;align-items:center;font-family:monospace}
.hex-text-input{border:none;outline:none;font-family:monospace;font-size:13px;padding:0 10px;height:42px;width:100%;color:var(--ink);background:#fff}
.hex-text-input::placeholder{color:#ccc}
.add-custom-btn{padding:10px 16px;font-size:13px;white-space:nowrap}

/* Dashboard hero */
.db-hero{background:#F7F2EC;border:1px solid var(--border)}
.vendor-card{border-color:#D8C9B2}
body.dark .vendor-card{border-color:#45434E}
body.dark .db-hero{background:#202127;border-color:#2E2D33}
/* Mobile (<=600px): shrink ONLY the KPI stats widget; make the hero taller */
@media(max-width:600px){
  /* Guest list (card/list/edit): tighten the stacked vertical gaps to a uniform 8px —
     topbar→actions, actions→counts, counts→table. Inline styles need !important. */
  #guest-sticky-panel{padding-bottom:8px!important}
  #guest-action-group{margin-bottom:6px!important}
  #guest-list-container{margin-top:6px!important}
  .vendor-card-grid{grid-template-columns:1fr!important}
  #db-w-kpis.db-widget{padding:0!important}
  .kpi-plaque[style]{padding:7px 8px!important;gap:1px!important}
  .kpi-plaque [style*="font-size:42px"]{font-size:24px!important;margin:0!important}
  .kpi-plaque [style*="font-size:14px"]{font-size:11px!important}
  .kpi-plaque [style*="font-size:11px"]{font-size:9px!important}
  .kpi-plaque [style*="font-size:22px"]{font-size:14px!important}
  #db-w-kpis .kpi-stat-grid[style]{gap:8px!important}
  /* ── Condense dashboard vertical space on mobile (per Mandy's marks) ────── */
  /* Below the hero card: trim the 24px bottom margin. */
  .db-hero[style*="margin-bottom:24px"]{margin-bottom:13px!important}
  /* Crest hero (Style 2) inner gaps: tighten crest→eyebrow, names, date, divider. */
  .db-hero-s2 [style*="margin:0 auto 12px"]{margin:0 auto 8px!important}
  .db-hero-s2 [style*="margin-top:12px"]{margin-top:7px!important}
  .db-hero-s2 [style*="margin-top:10px"]{margin-top:7px!important}
  .db-hero-s2 [style*="margin:13px auto"]{margin:6px auto!important}
  /* Bar-style KPIs (Style 3): trim card padding, pull number up under label,
     tighten the sub-label gap. Card padding is the main looseness culprit. */
  #db-w-kpis [style*="padding:15px 16px 14px"]{padding:10px 14px 11px!important}
  #db-w-kpis [style*="margin-bottom:10px"]{margin-bottom:3px!important}
  #db-w-kpis [style*="margin:4px 0 12px"]{margin:2px 0 8px!important}
  /* Pull every dashboard widget up: uniform 13px bottom gap on mobile
     (solo 24→13, paired rows 20→13, edit-mode 16→13). */
  #dash-widgets > [style*="margin-bottom:24px"]{margin-bottom:13px!important}
  #dash-widgets > [style*="margin-bottom:20px"]{margin-bottom:13px!important}
  #dash-widgets > [style*="margin-bottom:16px"]{margin-bottom:13px!important}
  /* Paired widget rows collapse to one column on mobile — their internal 20px
     grid gap becomes vertical space between the two stacked widgets, so match
     it to the 13px wrapper gap for uniform spacing throughout. */
  #dash-widgets > [style*="gap:20px"]{gap:13px!important}
  /* Reduce the gap above the $amount in the Budget + Budget-at-a-glance widgets. */
  #db-w-budget [style*="font-size:20px"][style*="margin-bottom:12px"]{margin-bottom:8px!important}
  #db-w-budgetGlance [style*="margin:16px 0 12px"]{margin:8px 0 12px!important}
  /* Hero (names/date/countdown) — taller than desktop, trimmed 15px top/bottom on mobile */
  /* Style 1 compact (option A): tighter padding, no decoration, slimmer countdown pill */
  .db-hero[style*="padding:44px 48px"]{padding:18px 20px!important}
  .db-hero-s1 .db-hero-deco{display:none}
  .db-hero-s1 [style*="font-size:clamp(26px,4vw,44px)"]{font-size:30px!important;margin-bottom:0!important}
  .db-hero-s1 [style*="font-size:13px"]{font-size:12px!important}
  .db-hero-s1 [style*="margin-top:24px"]{margin-top:12px!important;padding:6px 14px!important;gap:7px!important}
  .db-hero-s1 [style*="font-size:36px"]{font-size:22px!important}
  .db-hero-s1 [style*="font-size:12px"][style*="text-transform:uppercase"]{font-size:10px!important}
  .db-hero-s1 [style*="margin-left:6px"]{margin-left:0!important}
  /* Style 3 compact: smaller ring beside the names, tight padding */
  .db-hero[style*="padding:40px 46px"]{padding:16px 18px!important;gap:16px!important;flex-wrap:nowrap!important;align-items:center!important}
  .db-s3-ring{width:84px!important;height:84px!important}
  .db-s3-ring svg{width:84px;height:84px}
  .db-s3-ring [style*="font-size:38px"]{font-size:26px!important}
  .db-s3-ring [style*="font-size:9px"]{font-size:7.5px!important;margin-top:1px!important}
  .db-hero-s3 [style*="font-size:clamp(26px,4vw,44px)"]{font-size:28px!important}
  .db-hero-s3 [style*="margin-top:12px"]{margin-top:6px!important}
  .db-hero-s3 [style*="font-size:13px"]{font-size:12px!important}
  .db-hero[style*="padding:30px 46px"]{padding:16px 46px 18px!important}
  /* Tighten inner vertical spacing so date/location/countdown fit comfortably */
  .db-hero [style*="margin-bottom:14px"]{margin-bottom:8px!important}
  .db-hero [style*="margin-top:10px"]{margin-top:7px!important}
  .db-hero [style*="margin-top:24px"]{margin-top:14px!important}
}
.vb-container{background:#1A1A18;border-radius:16px;padding:24px;min-height:400px}
.vb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.vb-item{border-radius:10px;overflow:hidden;position:relative;background:#2a2a28}
.vb-item img{width:100%;height:160px;object-fit:cover;display:block}
.vb-item-label{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.7));padding:20px 10px 8px;color:#fff;font-size:11.5px}

/* STAT CARDS */
.stat-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:22px}
.stat-value{font-family:'Cormorant Garamond',serif;font-size:38px;font-weight:600;color:var(--ink);line-height:1}
.stat-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-top:6px}

/* TAGS */
.tag{display:inline-flex;align-items:center;padding:2px 9px;background:var(--parchment);border-radius:12px;font-size:11.5px;color:var(--gold-deep);font-weight:500;gap:4px}
/* Allergy (v177): the app's warning red, so an allergy never reads as a preference. Class + body.dark override, never inline rgba. */
.tag.diet-tag-al,.tag.gt-chip-guest.diet-tag-al{background:rgba(192,57,43,.10)!important;color:#A8322A!important;max-width:240px;white-space:normal!important;line-height:1.35}
.diet-ico-al{color:#A8322A!important}
.diet-txt-al{color:#A8322A;font-weight:500}
.al-wrap{margin-top:12px;padding:10px 12px;border-radius:9px;background:var(--surface);border:.5px solid var(--border)}
.al-wrap .al-lbl{font-size:11px;font-weight:600;color:var(--muted);margin-bottom:7px;display:block}
.al-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}
.al-chip{display:inline-flex;align-items:center;padding:4px 10px;border:none;border-radius:5px;background:var(--cream);font-family:'Inter',sans-serif;font-size:11.5px;color:var(--muted);cursor:pointer;box-shadow:inset 0 0 0 .5px var(--border);line-height:1.4}
.al-chip:hover{color:var(--ink)}
.al-chip.on{background:#F3EFE9;color:#7A6230;box-shadow:inset 0 0 0 .5px var(--gold)}
.al-hint{font-size:11px;color:var(--muted);margin-top:5px}
@media (pointer:coarse){.al-chip{padding:6px 11px;font-size:12.5px}}

/* DRAG */
.drag-handle{cursor:grab;color:var(--muted);padding:0 4px;font-size:16px;opacity:0;transition:opacity .15s;line-height:1}
.guest-card:hover .drag-handle{opacity:1}

/* Shared draggable reorder-menu rows (column choosers, method list, arrange list).
   Whole row shows the grab hand; grip icon fades in and a faint highlight appears
   on hover; the row switches to grabbing while actively dragged. */
.dragrow{cursor:grab}
.dragrow:hover{background:var(--surface)}
.dragrow:active{cursor:grabbing}
.dragrow .dragrow-grip{opacity:.35;transition:opacity .15s}
.dragrow:hover .dragrow-grip{opacity:1}
@media (hover:none){.dragrow .dragrow-grip{opacity:1}}

/* FILTER BAR */
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;align-items:center}

/* DASHBOARD PINS */
.dashboard-task-pin{background:var(--parchment);border-left:3px solid var(--gold);padding:10px 14px;border-radius:0 8px 8px 0;margin-bottom:8px;font-size:13px}

/* SCROLLBAR */
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--parchment);border-radius:10px}
::-webkit-scrollbar-thumb:hover{background:var(--gold)}

/* Remove spinner arrows from number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield;appearance:textfield}

/* Guest-list row edit pencil (left column). Hover-reveal on desktop; faint-idle
   always shown on touch. Opens the full edit form; name text still renames inline. */
.gt-edit-cell{padding:0;width:28px;text-align:center;vertical-align:middle}
.gt-edit-btn{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:6px;color:var(--connector);background:transparent;border:.5px solid transparent;cursor:pointer;padding:0;transition:color .15s,background .15s,border-color .15s;opacity:1}
.gt-edit-btn svg{width:13px;height:13px}
/* Fine pointer (mouse or stylus pen) or hover-capable device: faint idle, brightens
   on contact/hover. (pointer:fine) covers stylus pens on tablets that report
   hover:none but still fire :hover on contact — this ensures the active state shows. */
@media (hover:hover),(pointer:fine){
  .gt-edit-btn{opacity:.55}
  .gt-edit-cell:hover .gt-edit-btn,.gt-edit-btn:hover{opacity:1}
  .gt-edit-btn:hover{color:var(--gold-deep);background:#FBF8F3;border-color:#E3D7C4}
  body.dark .gt-edit-btn:hover{color:var(--gold);background:#24242A;border-color:#6E6450}
}
/* Coarse touch only (finger): keep the pencil in its faint idle look — present but understated. */
@media (hover:none) and (pointer:coarse){
  .gt-edit-btn{opacity:.55;color:var(--connector)}
}

/* Guest-list edit member picker (couples/families) — list of tappable member rows. */
.gt-mp-list{display:flex;flex-direction:column;gap:2px}
.gt-mp-row{display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;background:transparent;border:none;border-radius:8px;cursor:pointer;text-align:left;transition:background .12s}
.gt-mp-row:hover{background:var(--surface)}
.gt-mp-av{flex-shrink:0;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;font-family:'Inter',sans-serif;background:rgba(196,168,130,.20);color:var(--gold-deep)}
body.dark .gt-mp-av{background:rgba(196,168,130,.16);color:var(--gold)}
.gt-mp-txt{flex:1;min-width:0}
.gt-mp-name{display:block;font-size:13.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gt-mp-role{display:block;font-size:11.5px;color:var(--muted)}
.gt-mp-chev{flex-shrink:0;color:var(--muted)}

/* RESPONSIVE */
@media(max-width:900px){
  .sidebar{position:fixed;height:100vh;height:100dvh;box-shadow:4px 0 20px rgba(0,0,0,.12);width:180px}
  .sidebar.collapsed{width:0!important;border-right:none}
  .content{padding:10px 16px 20px;overflow-x:hidden}
  /* Bulk guest table: visible horizontal scrollbar + grab-to-pan, desktop (fine pointer) only. */
  @media (pointer:fine){
    .gt-scroll{scrollbar-width:auto;scrollbar-color:var(--gold) rgba(0,0,0,.07)}
    .gt-scroll::-webkit-scrollbar{height:12px}
    .gt-scroll::-webkit-scrollbar-track{background:rgba(0,0,0,.06);border-radius:6px;margin:0 4px}
    .gt-scroll::-webkit-scrollbar-thumb{background:var(--gold);border-radius:6px;border:2px solid transparent;background-clip:padding-box}
    .gt-scroll::-webkit-scrollbar-thumb:hover{background:var(--gold-deep);background-clip:padding-box;border:2px solid transparent}
    .gt-scroll.gt-pannable{cursor:grab}
    .gt-scroll.gt-grabbing{cursor:grabbing;user-select:none}
  }
  /* Sticky page search: realign negative offsets to the mobile content padding.
     Standardised sticky-bar spacing — mobile: 8px visible top/bottom. */
  .page-search-sticky{top:-10px!important;margin:-10px -16px 0!important;padding:8px 16px!important}
  #guest-sticky-panel{top:-10px!important;margin-top:-10px!important;padding-top:8px!important;padding-bottom:8px!important}
  @media(max-width:600px){ #guest-sticky-panel{padding-top:8px!important} }
  .budget-total-card{top:-10px!important;margin-top:-8px!important;padding-top:6px!important}
  /* Settings (mobile): widen the frames by trimming side padding so cards reach closer to the screen edges */
  .content:has(.settings-card.layout-cards){padding-left:8px!important;padding-right:8px!important}
  .settings-card.layout-cards>.settings-sect{padding-left:13px!important;padding-right:13px!important}
  /* Full-bleed banners: match the 16px mobile content padding so they don't overhang the viewport */
  .fullbleed-banner{margin-left:-16px!important;margin-right:-16px!important;padding-left:16px!important;padding-right:16px!important}
  #budget-jumpbar{margin:0 -16px;padding:8px 16px}
  .topbar{padding:0 16px}
  .topbar-sub{display:none}
  /* Icon-sidebar mode: keep the icon-only strip visible at narrow widths instead of hiding it */
  body.icon-sidebar .sidebar{position:static;height:auto;box-shadow:none;width:var(--sidebar-w)}
  body.icon-sidebar .sidebar.collapsed{width:var(--sidebar-collapsed)!important;border-right:1px solid var(--border)}
}
/* Topbar hamburger toggle - always visible */
.topbar-toggle{background:none;border:none;cursor:pointer;color:var(--muted);padding:6px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:color .15s}
.topbar-toggle:hover{color:var(--ink);background:var(--surface)}
@media(max-width:600px){
  .stat-value{font-size:28px}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .modal{max-width:100%;border-radius:12px}
  /* Budget hero buttons: larger icons on mobile. */
  #bg-reports-btn .bg-btn-ico,#bg-inv-btn .bg-btn-ico{width:19px!important;height:19px!important}
  #bg-add-btn .bg-add-plus svg{width:20px!important;height:20px!important}
  /* They were being squeezed (down to ~19px wide on a 360px phone) because the top bar let them shrink,
     and at 30px tall they were hard to hit. Keep them a fixed, comfortable size. */
  #topbar-actions{flex-shrink:0}
  /* The title block reserves 150px, which pushed the cog off a 360px screen once the buttons stopped shrinking; the Budget title only needs ~80px. */
  .topbar:has(#bg-add-btn) > div[style*="min-width:150px"]{min-width:80px!important}
  /* Same fix, same cause: "Inspiration" + its two actions (Board, Add) don't fit the
     150px-reserved title block on a 360px phone, so Add gets pushed off-screen. */
  .topbar:has(#inspo-add-btn) > div[style*="min-width:150px"]{min-width:80px!important}
  #bg-reports-btn,#bg-inv-btn,#bg-add-btn{flex-shrink:0;height:38px;min-width:40px}
  #bg-reports-btn.bg-icon-only,#bg-inv-btn.bg-icon-only,#bg-add-btn.bg-icon-only{width:40px!important;min-width:40px}
}

/* MISC */
.divider{height:1px;background:var(--border);margin:20px 0}
.empty-state{text-align:center;padding:48px 20px}
.empty-state-icon{font-size:36px;margin-bottom:12px;opacity:.4}
.empty-state-text{font-size:14px;color:var(--muted)}
.sub-item{margin-left:20px;padding:8px 0;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;font-size:13px}
.sub-item:last-child{border-bottom:none}

/* WELCOME / INTRO PAGE */
.welcome-overlay{position:fixed;inset:0;z-index:2000;display:block;padding:0;background:var(--cream)}
.welcome-overlay.hidden{display:none}
/* Suppress overlay flash: if session detected before first paint, keep overlay hidden */
html[data-uv-auth] #welcome-overlay{display:none!important}
.welcome-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.welcome-bg svg{position:absolute;opacity:.04}
.welcome-card{position:relative;background:#fff;border-radius:24px;padding:48px 44px;max-width:540px;width:100%;box-shadow:0 24px 80px rgba(26,26,24,.12);border:1px solid var(--border);max-height:95vh;overflow-y:auto}
.welcome-logo{display:flex;align-items:center;gap:7px;margin-bottom:28px}
.welcome-title{font-family:'Cormorant Garamond',serif;font-size:38px;font-weight:300;color:var(--ink);line-height:1.15;margin-bottom:8px}
.welcome-sub{font-size:13.5px;color:var(--muted);margin-bottom:28px;line-height:1.6}
@media(max-width:600px){
  .welcome-card{padding:28px 22px}
  .welcome-title{font-size:30px}
  /* Compact colour palette swatches on mobile */
  .palette-swatches{gap:6px}
  .pal-swatch{width:44px;gap:3px}
  .pal-swatch-circle{width:32px;height:32px;border-width:2px}
  .pal-swatch-name{font-size:7.5px;line-height:1.15;max-width:44px;word-break:normal;overflow-wrap:break-word}
}
.title-opt-btn{padding:7px 14px;border-radius:20px;border:1.5px solid var(--border);background:#fff;font-size:12.5px;color:var(--muted);cursor:pointer;font-family:'Inter',sans-serif;transition:all .15s}
.title-opt-btn:hover{border-color:var(--gold);color:var(--gold-deep)}
.title-opt-btn.active{border-color:var(--gold);background:var(--parchment);color:var(--gold-deep);font-weight:500}
/* ── Calendar page ── */
.cal-page{width:100%}
.cal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.cal-navgroup{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.cal-navbtn,.cal-cogbtn{width:32px;height:32px;border-radius:9px;border:.5px solid var(--border);background:var(--surface);color:var(--gold-deep);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:all .15s}
.cal-navbtn:hover,.cal-cogbtn:hover{border-color:var(--gold);color:var(--gold-deep)}
.seat-cogbtn{width:31px;height:31px;border-radius:9px;border:.5px solid var(--border);background:var(--surface);color:var(--gold-deep);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:all .15s}
.seat-cogbtn:hover{border-color:var(--gold);color:var(--gold-deep)}
#seating-pool.pool-drop-active{border:1.5px dashed var(--gold);background:rgba(201,161,74,.08);border-radius:9px;transition:background .12s}
.sep-row:hover{background:rgba(154,79,149,.13)!important;border-color:rgba(154,79,149,.34)!important}
.sep-pulse{animation:sepPulse 1.8s ease-out;z-index:5}
@keyframes sepPulse{0%,100%{box-shadow:0 0 0 0 rgba(154,79,149,0)}15%{box-shadow:0 0 0 5px rgba(154,79,149,.55)}55%{box-shadow:0 0 0 9px rgba(154,79,149,.18)}}
/* Fixed width so the right arrow (and Today / view switcher after it) never shift
   when the month name changes length (e.g. May vs September). Centred text. */
.cal-monthlabel{font-size:15px;font-weight:600;color:var(--ink);width:118px;padding:0 4px;text-align:center;font-family:'Inter',sans-serif;white-space:nowrap;overflow:hidden;flex-shrink:0}
.cal-todaybtn{font-size:12px;padding:7px 14px;border-radius:9px;border:.5px solid var(--border);background:var(--surface);color:var(--gold-deep);cursor:pointer;font-family:'Inter',sans-serif;transition:all .15s}
.cal-todaybtn-narrow{padding:6px 10px;font-size:11.5px}
.cal-navgroup .cal-view-seg{margin-left:6px}
.cal-todaybtn:hover{border-color:var(--gold)}
.cal-legend{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:12px;padding:2px 2px}
.cal-legend-chip{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted)}
.cal-legend-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.cal-legend-empty{font-size:12px;color:var(--muted);font-style:italic}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-bottom:5px}
.cal-dow span{font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);text-align:center;padding:2px 0}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.cal-cell{min-height:88px;border:.5px solid var(--border);border-radius:9px;padding:5px 6px;background:var(--panel);overflow:hidden;display:flex;flex-direction:column}
.cal-out{background:var(--surface);opacity:.5}
.cal-today{border:1.5px solid var(--gold)}
.cal-daynum{font-size:11px;color:var(--muted);font-weight:600;margin-bottom:4px}
.cal-todaytag{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--gold);color:#fff;font-weight:700}
.cal-ev{font-size:9.5px;line-height:1.3;border-radius:5px;padding:2px 6px;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px;cursor:pointer}
.cal-ev-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0}
.cal-ev-txt{overflow:hidden;text-overflow:ellipsis}
.cal-ev-task{background:rgba(74,124,89,.13);color:#3B6D11}
.cal-ev-appt{background:rgba(196,168,130,.16);color:#9A7B2E}
.cal-ev-bud{background:rgba(139,115,85,.14);color:#7a5e3e}
.cal-ev-wed{background:rgba(176,86,138,.13);color:#8a3f6a}
.cal-ev-evt{background:rgba(176,86,138,.13);color:#8a3f6a}
.cal-ev-more{font-size:9px;color:var(--muted);padding:1px 4px;cursor:pointer}
.cal-ev-more:hover{color:var(--gold-deep);text-decoration:underline}
@media(max-width:720px){
  .cal-cell{min-height:66px;padding:4px 4px}
  .cal-ev-txt{display:none}
  .cal-ev{padding:2px;justify-content:center}
  /* Keep the whole nav row on one line; fixed label width keeps the right arrow put. */
  .cal-navgroup{flex-wrap:nowrap!important;gap:3px}
  .cal-monthlabel{width:96px;font-size:12.5px;padding:0}
  .cal-navbtn,.cal-cogbtn{width:28px;height:28px}
  .cal-todaybtn-narrow{padding:5px 9px;font-size:11px}
  .cal-navgroup .cal-view-seg{margin-left:4px}
  .cal-navgroup .cal-view-btn{padding:5px 8px;font-size:11px}
}
/* ── Calendar: clickable cells, view toggle, add menu, week view ── */
.cal-cell{cursor:pointer;transition:border-color .12s,background .12s}
.cal-cell:hover{border-color:var(--gold)}
.cal-toolbar-right{display:flex;align-items:center;gap:8px}
.cal-view-seg{display:inline-flex;border:.5px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}
.cal-view-btn{font-family:'Inter';font-size:12px;font-weight:600;padding:6px 13px;border:none;background:transparent;color:var(--gold-deep);cursor:pointer}
.cal-view-btn.on{background:var(--gold-deep);color:#fff}
.cal-addbtn{display:inline-flex;align-items:center;gap:5px;font-family:'Inter';font-size:12px;font-weight:600;border:.5px solid var(--border);border-radius:8px;background:var(--surface);color:var(--gold-deep);padding:0 11px;height:31px;cursor:pointer}
.cal-addbtn:hover{border-color:var(--gold)}
.cal-add-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:60;width:200px;background:var(--cream);border:1px solid var(--border);border-radius:11px;box-shadow:0 4px 24px rgba(26,26,24,.12);padding:5px}
body.dark .cal-add-menu{box-shadow:0 4px 24px rgba(0,0,0,.5)}
.cal-add-item{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:7px;font-size:13px;color:var(--ink);cursor:pointer}
.cal-add-item:hover{background:var(--surface)}
.cal-add-item svg{color:var(--gold-deep);flex-shrink:0}
.cal-week-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.cal-week-col{min-height:150px;border:.5px solid var(--border);border-radius:9px;background:var(--panel);padding:0;overflow:hidden;cursor:pointer;display:flex;flex-direction:column;transition:border-color .12s}
.cal-week-col:hover{border-color:var(--gold)}
.cal-week-today{border:1.5px solid var(--gold)}
.cal-week-head{text-align:center;padding:7px 4px 5px;border-bottom:.5px solid var(--border)}
.cal-week-dow{display:block;font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cal-week-num{display:block;font-family:'Cormorant Garamond',serif;font-size:18px;font-weight:600;color:var(--ink);line-height:1.1}
.cal-week-today .cal-week-num{color:var(--gold-deep)}
.cal-week-body{padding:5px 5px 7px;flex:1;display:flex;flex-direction:column;gap:0}
.cal-week-empty{font-size:11px;color:var(--muted);opacity:.4;text-align:center;margin-top:8px}
/* ── Calendar list (agenda) view ── */
.cal-list{display:flex;flex-direction:column;gap:16px}
.cal-list-day{display:flex;flex-direction:column;gap:6px}
.cal-list-day+.cal-list-day{border-top:1px solid var(--border);padding-top:16px;margin-top:0}
.cal-list-empty-day{font-size:13px;color:var(--muted);opacity:.3;font-style:italic;padding:4px 12px 2px;cursor:pointer;border-radius:8px;transition:background .12s,opacity .12s}
.cal-list-empty-day:hover{opacity:.6;background:var(--surface)}
.cal-list-dayhdr{display:flex;align-items:center;gap:8px}
.cal-list-dow{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep)}
.cal-list-dow.is-today{color:#fff;background:var(--gold-deep);border-radius:20px;padding:3px 10px}
.cal-list-row{display:flex;align-items:flex-start;gap:11px;padding:10px 12px;border:.5px solid var(--border);border-radius:10px;background:var(--cream);cursor:pointer;transition:border-color .12s,background .12s}
.cal-list-row:hover{border-color:var(--gold);background:var(--surface)}
.cal-list-time{flex:0 0 58px;font-size:11.5px;font-weight:600;color:var(--gold-deep);padding-top:1px;text-align:left}
.cal-list-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px}
.cal-list-body{min-width:0;flex:1}
.cal-list-title{font-size:13.5px;color:var(--ink);line-height:1.35}
.cal-list-sub{font-size:11.5px;color:var(--muted);margin-top:1px}
.cal-list-empty{font-size:13px;color:var(--muted);text-align:center;padding:34px 16px;border:.5px solid var(--border);border-radius:12px;background:var(--surface)}
@media(max-width:720px){
  .cal-addbtn-label{display:none}
  .cal-addbtn{padding:0 9px}
  .cal-view-btn{padding:6px 10px}
  .cal-week-col{min-height:110px}
  .cal-week-body .cal-ev-txt{display:inline}
  .cal-list-time{flex-basis:50px}
}
@media(max-width:600px){ .dash-export-label{display:none} .dash-edit-label{display:none} }
/* ── v179 linked items: toast tick, sheet rows, add-to-budget chip, mode cards ── */
.undo-toast .ut-ico.ok{background:rgba(74,124,89,.14);color:var(--green)}
body.dark .undo-toast .ut-ico.ok{background:rgba(92,143,114,.2);color:var(--green)}
.undo-toast.lk-toast .ut-msg{white-space:normal;overflow:visible;text-overflow:clip;max-width:min(58vw,300px);line-height:1.35}
.lk-sheet{display:flex;flex-direction:column}
.lk-intro{font-size:12.5px;color:var(--muted);margin:0 0 6px}
.lk-lbl{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.lk-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--border);cursor:pointer}
.lk-sheet>.lk-opt:first-child,.lk-intro+.lk-opt,.lk-lbl+.lk-opt,.lk-sep+.lk-opt{border-top:none}
.lk-opt input[type=checkbox],.lk-opt input[type=radio]{width:16px;height:16px;accent-color:var(--gold-deep);margin-top:2px;flex-shrink:0}
.lk-ot{font-size:13px;font-weight:500;color:var(--ink)}
.lk-os{font-size:11.5px;color:var(--muted)}
.lk-date{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:11.5px;color:var(--muted)}
.lk-date input{font:inherit;font-size:12px;padding:4px 8px;border:1px solid var(--border);border-radius:7px;background:var(--cream);color:var(--ink)}
.lk-sep{height:1px;background:var(--border);margin:6px 0}
.lk-chip{display:inline-flex;align-items:center;gap:4px;margin-top:5px;padding:2px 10px;border-radius:12px;font-family:'Inter',sans-serif;font-size:11px;font-weight:500;border:1px dashed var(--gold);background:transparent;color:var(--gold-deep);cursor:pointer}
.lk-chip:hover{background:var(--surface)}
.lk-mode-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.lk-mode-opt{display:flex;flex-direction:column;justify-content:flex-start;padding:12px 14px;border-radius:10px;border:2px solid var(--border);background:transparent;cursor:pointer;text-align:left;font-family:'Inter',sans-serif;color:var(--ink)}
.lk-mode-opt .lk-mn{font-size:10px;font-weight:700;letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.lk-mode-opt .lk-mt{font-size:13px;font-weight:600;margin:2px 0 4px;color:var(--ink)}
.lk-mode-opt .lk-md{font-size:11.5px;color:var(--muted);line-height:1.45}
.lk-mode-opt.sel{border-color:var(--gold);background:#E8E0D5}
.lk-mode-opt.sel .lk-mt{color:var(--gold-deep)}
body.dark .lk-mode-opt{border-color:#45434B}
body.dark .lk-mode-opt.sel{background:#222329;border-color:var(--gold)}
body.dark .lk-mode-opt.sel .lk-mt{color:var(--gold)}
@media (max-width:560px){.lk-mode-opts{grid-template-columns:1fr}}

/* ── Undo-delete toast ── */
#undo-toast-wrap{position:fixed;right:18px;bottom:18px;z-index:4000;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none}
.undo-toast{pointer-events:auto;display:inline-flex;align-items:center;gap:9px;border-radius:11px;padding:7px 10px 7px 9px;background:var(--cream);border:1px solid var(--border);box-shadow:0 5px 22px rgba(0,0,0,.15);max-width:min(86vw,440px);opacity:0;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease}
.undo-toast.in{opacity:1;transform:translateY(0)}
body.dark .undo-toast{background:#222228;box-shadow:0 6px 26px rgba(0,0,0,.5)}
.undo-toast .ut-ico{width:19px;height:19px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:rgba(192,101,62,.12);color:var(--red,#C0653E)}
body.dark .undo-toast .ut-ico{background:rgba(194,112,112,.16);color:var(--red,#C27070)}
.undo-toast .ut-ico svg{width:12px;height:12px}
.undo-toast .ut-msg{font-size:11.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.undo-toast .ut-msg b{font-weight:600}
.undo-toast .ut-div{width:1px;height:15px;background:var(--border);flex-shrink:0}
.undo-toast .ut-undo{font-family:'Inter',sans-serif;font-size:11px;font-weight:600;border:none;background:none;cursor:pointer;padding:3px 4px;display:inline-flex;align-items:center;gap:4px;color:var(--gold-deep);flex-shrink:0;border-radius:6px}
.undo-toast .ut-undo:hover{background:var(--surface)}
.undo-toast .ut-undo svg{width:13px;height:13px}
.undo-toast .ut-x{border:none;background:none;color:var(--muted);cursor:pointer;display:flex;font-size:12px;padding:2px;flex-shrink:0;border-radius:6px}
.undo-toast .ut-x:hover{color:var(--ink)}
.undo-toast .ut-x svg{width:13px;height:13px}

/* ══ Day-of Timeline: song tagging + music view ══ */
/* View switcher (shared switcher palette; matches .inv-seg / layout-btn spec) */
.tl-view-seg{display:inline-flex;border:.5px solid #E3D7C4;border-radius:7px;overflow:hidden;font-size:12px;font-family:'Inter',sans-serif}
.tl-view-seg button{padding:6px 15px;background:#FBF8F3;color:#CBBBA0;border:none;cursor:pointer;font-family:inherit;font-size:12px;display:inline-flex;align-items:center;gap:6px;transition:all .15s}
.tl-view-seg button+button{border-left:.5px solid #E3D7C4}
.tl-view-seg button.active{background:#C4A882;color:#fff}
.tl-view-seg svg{width:13px;height:13px;flex-shrink:0}
body.dark .tl-view-seg{border-color:#6E6450}
body.dark .tl-view-seg button{background:#24242A;color:#A2957A}
body.dark .tl-view-seg button+button{border-left-color:#6E6450}
body.dark .tl-view-seg button.active{background:#A2957A;color:#1B1A1E}

/* Song chip(s) on run-sheet rows — one per tagged song, stacked. A chip with a link is an
   <a> (the whole chip, not just .sc-play) and gets a hover/focus cue; one without is a plain div. */
.song-chip{display:flex;align-items:center;gap:6px;margin-top:9px;padding:6px 10px;background:var(--surface);border:.5px solid var(--border);border-radius:9px;font-size:12px;max-width:100%;text-decoration:none;color:inherit}
.song-chip .sc-note{width:15px;height:15px;flex-shrink:0;color:var(--gold-deep)}
.song-chip .sc-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.song-chip .sc-title{font-weight:600;color:var(--ink)}
.song-chip .sc-artist{color:var(--muted)}
.song-chip .sc-start{flex-shrink:0;font-size:10.5px;font-weight:600;color:var(--gold-deep);background:rgba(139,115,85,.12);padding:1px 6px;border-radius:20px}
body.dark .song-chip .sc-start{background:rgba(196,168,130,.18)}
.song-chip .sc-play{flex-shrink:0;color:var(--gold-deep);display:inline-flex}
a.song-chip.sc-link{cursor:pointer}
a.song-chip.sc-link:hover,a.song-chip.sc-link:focus-visible{border-color:var(--gold);background:rgba(139,115,85,.07)}

/* Music view cards */
.music-intro{color:var(--muted);font-size:13.5px;margin-bottom:20px;max-width:620px}
.music-card{background:var(--cream);border:1px solid var(--border);border-radius:12px;padding:15px 17px;margin-bottom:12px;display:grid;grid-template-columns:78px 1fr;gap:16px;max-width:620px}
.music-card .mc-when{text-align:right}
.music-card .mc-time{font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap}
.music-card .mc-moment{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.3}
.music-card .mc-cue{font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:4px}
.music-card .mc-song{font-family:'Cormorant Garamond',serif;font-size:19px;font-weight:600;color:var(--ink);line-height:1.15}
.music-card .mc-artist{font-size:13px;color:var(--muted);margin-top:1px}
.music-card .mc-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}
.music-card .mc-link{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;color:var(--gold-deep);text-decoration:none;border:.5px solid #E3D7C4;background:#FBF8F3;padding:4px 10px;border-radius:7px}
body.dark .music-card .mc-link{border-color:#6E6450;background:#24242A;color:var(--gold)}
.music-card .mc-start{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--gold-deep);background:rgba(139,115,85,.12);padding:4px 9px;border-radius:7px}
body.dark .music-card .mc-start{background:rgba(196,168,130,.18);color:var(--gold)}
.music-card .mc-notes{margin-top:9px;font-size:12.5px;color:var(--muted);line-height:1.45;padding:8px 11px;background:var(--surface);border-radius:8px;border-left:2px solid var(--gold)}
.music-count{font-size:12.5px;color:var(--muted);text-align:center;margin-top:18px;padding-top:14px;border-top:1px solid var(--border);max-width:620px}

/* Song rows in the moment form — compact summaries; full fields live in a secondary
   (confirm2) modal opened via _tlEditSongBlock/tlAddSongBlock, not inline here, so adding
   several songs doesn't grow the Edit Moment form tall. */
.song-row{display:flex;align-items:center;gap:4px;border:1px solid var(--border);border-radius:9px;padding:2px 2px 2px 4px;margin-top:8px;background:var(--surface)}
.song-row-main{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:none;border:none;cursor:pointer;padding:9px 6px;text-align:left;font-family:inherit}
.song-row-ico{flex-shrink:0;color:var(--gold-deep)}
.song-row-txt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--ink)}
.song-row-title{font-weight:600}
.song-row-artist{color:var(--muted);font-weight:400}
.song-row-cue{margin-left:8px;font-size:11px;color:var(--muted);font-style:italic}
.song-rm{border:none;background:none;color:var(--muted);cursor:pointer;font-size:15px;line-height:1;padding:6px 8px;border-radius:5px;flex-shrink:0}
.song-rm:hover{color:var(--red)}
.add-song-btn{margin-top:4px;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--gold-deep);background:#FBF8F3;border:.5px solid #E3D7C4;border-radius:8px;padding:8px 14px;cursor:pointer}
body.dark .add-song-btn{background:#24242A;border-color:#6E6450;color:var(--gold)}
.add-song-btn svg{width:13px;height:13px}

@media(max-width:600px){
  /* Music card: stack the time column above the song on narrow screens */
  .music-card{grid-template-columns:1fr;gap:6px}
  .music-card .mc-when{text-align:left;display:flex;align-items:baseline;gap:8px;padding-bottom:2px;border-bottom:1px solid var(--border);margin-bottom:4px}
  .music-card .mc-moment{margin-top:0}
  .fr2{grid-template-columns:1fr!important}
  .song-row-cue{display:block;margin-left:0;margin-top:1px}
}

/* ══ Invite / reminder method tracking ══ */
.inv-pill-row{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}
.inv-pill{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;color:var(--gold-deep);background:rgba(196,168,130,.16);border-radius:20px;padding:2px 8px}
.inv-pill svg{width:10px;height:10px}
.inv-pill.inv-pill-rem{color:var(--green);background:rgba(92,143,114,.15)}
.inv-pill.inv-pill-none{color:var(--muted);background:rgba(154,147,137,.15)}
body.dark .inv-pill.inv-pill-none{background:rgba(124,122,128,.2)}
.inv-field-label{font-size:9.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.inv-chips{display:flex;flex-wrap:wrap;gap:5px}
.inv-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border:.5px solid #E3D7C4;background:#FBF8F3;color:#CBBBA0;border-radius:20px;font-size:11px;cursor:pointer;font-family:'Inter',sans-serif;transition:all .12s}
.inv-chip svg{width:12px;height:12px}
.inv-chip:hover{color:#A89066;border-color:#D8C9B2}
.inv-chip.on{background:var(--gold);color:#fff;border-color:var(--gold)}
body.dark .inv-chip.on{color:#1B1A1E}
.inv-chip.on.green{background:var(--green);border-color:var(--green);color:#fff}
body.dark .inv-chip.on.green{color:#1B1A1E}
body.dark .inv-chip{background:#24242A;border-color:#6E6450;color:#A2957A}
body.dark .inv-chip:hover{color:#CBBBA0;border-color:#A2957A}
.inv-date-line{font-size:10.5px;color:var(--muted);margin-top:7px;display:inline-flex;align-items:center;gap:5px}
/* Tracker clickable method pill */
.tmethod-pill{display:inline-flex;align-items:center;gap:3px;font-size:9px;font-weight:600;color:var(--gold-deep);background:rgba(196,168,130,.16);border:none;border-radius:20px;padding:2px 8px;white-space:nowrap;cursor:pointer;font-family:'Inter',sans-serif;transition:filter .12s}
.tmethod-pill:hover{filter:brightness(.95)}
.tmethod-pill svg{width:9px;height:9px}
.tmethod-pill.rem{color:var(--green);background:rgba(92,143,114,.15)}
.tmethod-pill.none{color:var(--muted);background:rgba(154,147,137,.18)}
body.dark .tmethod-pill.none{background:rgba(124,122,128,.22)}
/* Stage 2 transforming send control: idle plane / ready plane / sent tick */
.tsend-ctl{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;padding:0;box-sizing:border-box}
.tsend-ctl.idle{border:.5px solid var(--border);background:transparent;color:var(--muted);opacity:.55;cursor:pointer;transition:opacity .12s,border-color .12s,color .12s}
.tsend-ctl.idle:hover{opacity:.9;border-color:var(--gold-deep);color:var(--gold-deep)}
.tsend-ctl.ready{border:.5px solid #C4A882;background:var(--sw-bg,#FBF8F3);color:var(--gold-deep);cursor:pointer;transition:filter .12s,border-color .12s}
.tsend-ctl.ready:hover{filter:brightness(.97);border-color:#A89066}
body.dark .tsend-ctl.ready{background:#24242A;border-color:#6E6450;color:var(--gold)}
.tsend-ctl.sent{border:.5px solid rgba(92,143,114,.5);background:rgba(92,143,114,.14);color:var(--green);cursor:pointer;transition:filter .12s}
.tsend-ctl.sent:hover{filter:brightness(.96)}
body.dark .tsend-ctl.sent{background:rgba(92,143,114,.2);border-color:rgba(92,143,114,.5);color:#7BbF93}
/* Tracker channel popup menu (portaled to body) */
.date-pop{position:absolute;z-index:1300;background:var(--cream);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.16);padding:8px;font-family:'Inter',sans-serif}
.date-pop-input{border:1px solid var(--border);border-radius:7px;padding:6px 9px;font-size:12.5px;font-family:'Inter',sans-serif;color:var(--ink);background:var(--cream);outline:none}
.date-pop-input:focus{border-color:var(--gold-deep)}
.rsvp-date-cell{cursor:pointer;border-bottom:1px dashed transparent;transition:border-color .12s}
.rsvp-date-cell:hover{border-bottom-color:var(--gold-deep)}
.rsvp-date-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0;margin:0;background:transparent}
.rsvp-date-input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.sort-th{transition:color .12s}
.sort-th:hover{color:var(--gold-deep)}
.sort-th:hover .sort-ind{opacity:.7}
.tchan-menu{position:absolute;z-index:1200;background:var(--cream);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.16);padding:5px;min-width:158px;font-family:'Inter',sans-serif}
.tchan-menu .tchan-head{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:5px 9px 4px}
.tchan-item{display:flex;align-items:center;gap:8px;width:100%;background:none;border:none;cursor:pointer;padding:7px 9px;border-radius:7px;font-size:12px;color:var(--ink);font-family:'Inter',sans-serif;text-align:left}
.tchan-item:hover{background:var(--surface)}
.tchan-item svg{width:13px;height:13px;color:var(--gold-deep);flex-shrink:0}
.tchan-item .tchan-label{flex:1;white-space:nowrap}
.tchan-item.on{background:rgba(196,168,130,.16)}
.tchan-item .tchan-tick{margin-left:auto;color:var(--gold-deep);display:none;align-items:center}
.tchan-item .tchan-tick svg{width:12px;height:12px;color:var(--gold-deep)}
.tchan-item.on .tchan-tick{display:inline-flex}
.tchan-sep{height:1px;background:var(--border);margin:4px 6px}
.tchan-clear{color:var(--muted)}
.tchan-clear svg{color:var(--muted)}
.tchan-item.unavail{cursor:not-allowed;pointer-events:none}
.tchan-item.unavail svg{opacity:.28}
.tchan-item.unavail .tchan-label{color:var(--muted);opacity:.45}
.tchan-unavail-tag{font-size:9px;font-style:italic;color:var(--muted);opacity:.55;margin-left:auto;white-space:nowrap}
.inv-chip.unavail{opacity:.38;cursor:not-allowed;pointer-events:none}
/* ══ VENDOR LOOK UP ══════════════════════════════════════════════
   All classes vlu- prefixed. Uses the app's existing theme tokens
   (--ink, --muted, --border, --surface, --gold, --gold-deep, --cream)
   so no new tokens are introduced and the lightVars string is untouched.
   ═══════════════════════════════════════════════════════════════ */
.vlu-wrap{padding-bottom:20px}
.vlu-top{margin-bottom:14px}
.vlu-back{background:none;border:none;font-family:'Inter',sans-serif;font-size:12.5px;color:var(--muted);cursor:pointer;padding:0 0 8px;display:inline-flex;align-items:center;gap:5px}
.vlu-back:hover{color:var(--gold-deep)}
.vlu-title{font-family:'Cormorant Garamond',serif;font-size:24px;font-weight:600;color:var(--ink);line-height:1.1}
.vlu-sub{font-size:12px;color:var(--muted);margin-top:2px}

.vlu-searchbar{margin-bottom:11px}
.vlu-input{width:100%;background:var(--cream);border:.5px solid var(--border);border-radius:10px;padding:10px 13px;color:var(--ink);font-family:'Inter',sans-serif;font-size:13px}
.vlu-input::placeholder{color:var(--muted)}
.vlu-input:focus{outline:none;border-color:var(--gold)}

.vlu-datehint{font-size:11.5px;color:var(--muted);background:var(--surface);border:.5px solid var(--border);border-radius:9px;padding:9px 12px;margin-bottom:11px;line-height:1.5}
.vlu-datehint strong{color:var(--ink);font-weight:600}

.vlu-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.vlu-chip{font-family:'Inter',sans-serif;font-size:11.5px;font-weight:500;padding:6px 12px;border-radius:20px;border:.5px solid var(--border);background:var(--cream);color:var(--muted);cursor:pointer;white-space:nowrap;transition:all .12s}
.vlu-chip:hover{border-color:var(--gold)}
.vlu-chip.on{background:var(--gold-deep);border-color:var(--gold-deep);color:#fff}
body.dark .vlu-chip.on{background:var(--gold);border-color:var(--gold);color:#191A1E}

.vlu-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;flex-wrap:wrap;gap:9px}
.vlu-count{font-size:12px;color:var(--muted)}
.vlu-count strong{color:var(--ink);font-weight:600}
.vlu-tbright{display:flex;align-items:center;gap:8px}
.vlu-sel{background:var(--cream);border:.5px solid var(--border);border-radius:8px;padding:7px 10px;color:var(--ink);font-family:'Inter',sans-serif;font-size:11.5px;cursor:pointer;height:32px}
.vlu-sel:focus{outline:none;border-color:var(--gold)}

/* view toggle — matches the app's layout-switcher standard */
.vlu-viewtog{display:inline-flex;border:.5px solid #E3D7C4;border-radius:8px;overflow:hidden;background:#FBF8F3;height:32px}
body.dark .vlu-viewtog{border-color:var(--border);background:var(--surface)}
.vlu-vtbtn{width:34px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;color:#C9B89C;padding:0;transition:all .12s}
.vlu-vtbtn:hover{color:#A89066}
body.dark .vlu-vtbtn{color:var(--muted)}
.vlu-vtbtn.on{background:var(--gold-deep);color:#fff}
body.dark .vlu-vtbtn.on{background:var(--gold);color:#191A1E}

/* card grid */
.vlu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(206px,1fr));gap:13px}
.vlu-card{background:var(--cream);border:.5px solid var(--border);border-radius:13px;overflow:hidden;cursor:pointer;transition:transform .14s,box-shadow .14s,border-color .14s}
.vlu-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:var(--gold)}
.vlu-hero{height:116px;display:flex;align-items:center;justify-content:center;position:relative;background:var(--surface)}
.vlu-hero.alt{background:rgba(196,168,130,.13)}
.vlu-mono{font-family:'Cormorant Garamond',serif;font-weight:500;letter-spacing:.04em;color:var(--gold-deep);font-size:36px}
body.dark .vlu-mono{color:var(--gold)}
.vlu-heart{position:absolute;top:9px;right:9px;width:29px;height:29px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--red);border:none;cursor:pointer;transition:transform .12s;line-height:1;padding:0}
body.dark .vlu-heart{background:rgba(20,20,24,.75)}
.vlu-heart:hover{transform:scale(1.12)}
.vlu-avail{position:absolute;bottom:8px;left:8px;font-size:9.5px;font-weight:600;padding:3px 9px;border-radius:12px;background:rgba(74,124,89,.94);color:#fff;letter-spacing:.02em}
.vlu-inplanner{position:absolute;bottom:8px;right:8px;font-size:9px;font-weight:600;padding:3px 8px;border-radius:11px;background:rgba(196,168,130,.92);color:#3A2E0E;letter-spacing:.02em}
.vlu-cbody{padding:10px 12px 13px}
.vlu-name{font-family:'Cormorant Garamond',serif;font-size:17px;font-weight:600;margin:0;line-height:1.15;color:var(--ink)}
.vlu-cat{font-size:10px;color:var(--gold-deep);font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin:2px 0 7px}
body.dark .vlu-cat{color:var(--gold)}
.vlu-meta{display:flex;align-items:center;justify-content:space-between;font-size:11.5px}
.vlu-stars{color:var(--gold-deep);font-weight:600}
body.dark .vlu-stars{color:var(--gold)}
.vlu-rc{color:var(--muted);font-weight:400}
.vlu-price{color:var(--ink);font-weight:600}
.vlu-price small{color:var(--muted);font-weight:400;font-size:9.5px}
.vlu-loc{font-size:10.5px;color:var(--muted);margin-top:5px}

/* list rows */
.vlu-rows{display:flex;flex-direction:column;gap:8px}
.vlu-row{display:flex;gap:12px;background:var(--cream);border:.5px solid var(--border);border-radius:12px;padding:10px;align-items:center;cursor:pointer;transition:border-color .14s,box-shadow .14s}
.vlu-row:hover{border-color:var(--gold);box-shadow:var(--shadow)}
.vlu-thumb{width:62px;height:62px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--surface)}
.vlu-thumb.alt{background:rgba(196,168,130,.13)}
.vlu-thumb .vlu-mono{font-size:25px}
.vlu-rmain{flex:1;min-width:0}
.vlu-rtop{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.vlu-rcat{font-size:9px;color:var(--gold-deep);font-weight:600;letter-spacing:.05em;text-transform:uppercase}
body.dark .vlu-rcat{color:var(--gold)}
.vlu-rsub{font-size:11px;color:var(--muted);margin:4px 0 0;display:flex;gap:12px;flex-wrap:wrap}
.vlu-rright{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.vlu-ravail{font-size:9.5px;font-weight:600;padding:3px 9px;border-radius:11px;background:rgba(74,124,89,.14);color:var(--green);white-space:nowrap}
.vlu-save{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;gap:4px;padding:4px 11px;border-radius:14px;border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.92);color:var(--gold-deep);font:600 12px 'Inter',sans-serif;cursor:pointer;transition:transform .12s}
.vlu-save:hover{transform:scale(1.05)}
.vlu-save.saved{background:var(--gold);border-color:var(--gold);color:#fff}
body.dark .vlu-tag{background:rgba(20,20,24,.8)!important}
body.dark .vlu-save{background:rgba(20,20,24,.8);border-color:rgba(255,255,255,.12)}
body.dark .vlu-save.saved{background:var(--gold);color:#fff}
.vlu-heart-sm{font-size:15px;color:var(--red);cursor:pointer;background:none;border:none;padding:0;line-height:1}

.vlu-empty{text-align:center;padding:46px 20px;color:var(--muted);border:.5px solid var(--border);border-radius:12px}
.vlu-empty p{font-size:13px;margin:9px 0 0;line-height:1.6}

/* profile */
.vlu-phead{padding:10px 0 13px;display:flex;gap:15px;align-items:flex-start}
.vlu-pmono{width:76px;height:76px;border-radius:14px;background:var(--surface);color:var(--gold-deep);display:flex;align-items:center;justify-content:center;font-family:'Cormorant Garamond',serif;font-size:32px;font-weight:500;flex-shrink:0}
body.dark .vlu-pmono{color:var(--gold)}
.vlu-phinfo{flex:1;min-width:0}
.vlu-pname{font-family:'Cormorant Garamond',serif;font-size:25px;font-weight:600;margin:0;line-height:1.08;color:var(--ink);display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.vlu-verif{font-size:9px;font-weight:600;color:var(--green);border:.5px solid var(--green);border-radius:11px;padding:2px 9px;letter-spacing:.04em}
.vlu-pcat{font-size:11px;color:var(--gold-deep);font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin:5px 0 0}
body.dark .vlu-pcat{color:var(--gold)}
.vlu-pmeta{font-size:11.5px;color:var(--muted);margin:7px 0 0}
.vlu-pacts{display:flex;gap:8px;padding:0 0 14px;flex-wrap:wrap}

.vlu-jtabs{display:flex;gap:3px;border-bottom:.5px solid var(--border);overflow-x:auto;-webkit-overflow-scrolling:touch;position:sticky;top:0;background:var(--bg,var(--cream));z-index:3}
.vlu-jtab{font-family:'Inter',sans-serif;font-size:12px;font-weight:500;color:var(--muted);padding:10px 12px;border:none;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap;background:none}
.vlu-jtab.on{color:var(--ink);border-bottom-color:var(--gold-deep);font-weight:600}
body.dark .vlu-jtab.on{border-bottom-color:var(--gold)}
.vlu-psect{padding:18px 0 4px;scroll-margin-top:52px}
.vlu-psect h3{font-family:'Cormorant Garamond',serif;font-size:18px;font-weight:600;margin:0 0 10px;color:var(--ink)}

.vlu-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:8px}
.vlu-gcell{aspect-ratio:1;border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:'Cormorant Garamond',serif;font-size:16px;color:var(--gold);background:var(--surface);transition:transform .12s}
.vlu-gcell.alt{background:rgba(196,168,130,.13)}
.vlu-gcell:hover{transform:scale(1.03)}
.vlu-gcell.gmore{background:var(--gold-deep);color:#fff;font-family:'Inter',sans-serif;font-weight:600;font-size:13px}
body.dark .vlu-gcell.gmore{background:var(--gold);color:#191A1E}

.vlu-about{font-size:13px;line-height:1.65;color:var(--ink);margin:0}
.vlu-tagrow{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.vlu-tg{font-size:10.5px;font-weight:500;padding:5px 11px;border-radius:14px;background:var(--surface);border:.5px solid var(--border);color:var(--muted)}
.vlu-deflist{margin:11px 0 0;font-size:12.5px}
.vlu-deflist div{display:flex;gap:10px;padding:6px 0;border-bottom:.5px solid var(--border)}
.vlu-deflist div:last-child{border-bottom:none}
.vlu-deflist dt{color:var(--muted);width:115px;flex-shrink:0}
.vlu-deflist dd{margin:0;color:var(--ink)}

.vlu-pkg{border:.5px solid var(--border);border-radius:11px;padding:12px 13px;margin-bottom:8px;background:var(--cream)}
.vlu-pkgh{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.vlu-pkgn{font-family:'Cormorant Garamond',serif;font-size:17px;font-weight:600;color:var(--ink)}
.vlu-pkgp{font-weight:700;font-size:15px;color:var(--ink);white-space:nowrap}
.vlu-pkgd{font-size:11.5px;color:var(--muted);margin:5px 0 0;line-height:1.5}

.vlu-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;max-width:350px}
.vlu-cd{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:8px;background:var(--surface);color:var(--muted)}
.vlu-cd.hdr{font-size:9px;font-weight:600;background:none}
.vlu-cd.open{background:rgba(74,124,89,.13);color:var(--green);font-weight:600}
.vlu-cd.book{background:var(--surface);color:var(--border);text-decoration:line-through}
.vlu-cd.your{background:var(--gold-deep);color:#fff;font-weight:700}
body.dark .vlu-cd.your{background:var(--gold);color:#191A1E}
.vlu-callleg{display:flex;gap:15px;font-size:10.5px;color:var(--muted);margin-top:10px;flex-wrap:wrap}
.vlu-lgdot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}

.vlu-rsum{display:flex;align-items:center;gap:16px;background:var(--surface);border-radius:12px;padding:13px 15px;margin-bottom:13px;flex-wrap:wrap}
.vlu-rbig{font-family:'Cormorant Garamond',serif;font-size:36px;font-weight:600;line-height:1;color:var(--ink)}
.vlu-rbig small{display:block;font-family:'Inter',sans-serif;font-size:10px;color:var(--muted);font-weight:400;margin-top:3px}
.vlu-rbars{flex:1;min-width:140px}
.vlu-rbar{display:flex;align-items:center;gap:8px;font-size:9.5px;color:var(--muted);margin:3px 0}
.vlu-rtrack{flex:1;height:6px;border-radius:3px;background:var(--border)}
.vlu-rfill{height:100%;border-radius:3px;background:var(--gold-deep)}
body.dark .vlu-rfill{background:var(--gold)}
.vlu-rvw{border-top:.5px solid var(--border);padding:12px 0}
.vlu-rvw:first-of-type{border-top:none}
.vlu-rvwh{display:flex;justify-content:space-between;align-items:baseline;gap:9px}
.vlu-rvwn{font-weight:600;font-size:12.5px;color:var(--ink)}
.vlu-rvwd{font-size:10px;color:var(--muted)}
.vlu-rvws{color:var(--gold-deep);font-size:11px;margin:3px 0 5px}
body.dark .vlu-rvws{color:var(--gold)}
.vlu-rvwt{font-size:12px;line-height:1.55;color:var(--ink);margin:0}
.vlu-refitem{font-size:12.5px;padding:7px 0;border-bottom:.5px solid var(--border);color:var(--ink)}
.vlu-refitem:last-child{border-bottom:none}
.vlu-refitem span{color:var(--muted)}

/* ── dashboard: vendor category coverage widget ── */
.vlu-dw-link{display:inline-flex;align-items:center;gap:4px;font-family:'Inter',sans-serif;font-size:11px;font-weight:600;color:var(--gold-deep);background:none;border:none;cursor:pointer;padding:0;white-space:nowrap}
body.dark .vlu-dw-link{color:var(--gold)}
.vlu-dw-link:hover{opacity:.75}
.vlu-dw-sum{font-size:11.5px;color:var(--muted);padding-bottom:10px;margin-bottom:11px;border-bottom:.5px solid var(--border)}
.vlu-dw-sum strong{color:var(--ink);font-weight:600}
.vlu-dw-list{display:flex;flex-direction:column;gap:7px}
.vlu-dw-row{display:flex;align-items:center;gap:9px}
.vlu-dw-ic{width:26px;height:26px;border-radius:7px;background:var(--surface);color:var(--gold-deep);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
body.dark .vlu-dw-ic{color:var(--gold)}
.vlu-dw-ic.open{color:var(--muted);opacity:.7}
.vlu-dw-name{font-size:12px;color:var(--ink);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vlu-dw-name.open{color:var(--muted)}
.vlu-dw-tag{font-family:'Inter',sans-serif;font-size:10px;font-weight:600;padding:3px 9px;border-radius:10px;white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;border:none}
.vlu-dw-tag.have{background:rgba(74,124,89,.13);color:var(--green)}
.vlu-dw-tag.have.booked{background:rgba(74,124,89,.22)}
.vlu-dw-tag.need{background:rgba(196,168,130,.2);color:var(--gold-deep);cursor:pointer;transition:background .12s}
body.dark .vlu-dw-tag.need{color:var(--gold)}
.vlu-dw-tag.need:hover{background:rgba(196,168,130,.36)}
.vlu-dw-tag.short{background:transparent;color:var(--muted);border:1px solid var(--border-strong,rgba(0,0,0,.16));cursor:pointer;max-width:170px}
.vlu-dw-tag.short:hover{color:var(--ink)}
.vlu-dw-edit{font-family:inherit;font-size:11px;font-weight:600;padding:4px 10px;border-radius:12px;border:1px solid rgba(196,168,130,.55);background:none;color:var(--gold-deep);cursor:pointer;min-height:28px}
body.dark .vlu-dw-edit{color:var(--gold)}
.vlu-dw-edit.on{background:var(--gold);border-color:var(--gold);color:#fff}
body.dark .vlu-dw-edit.on{color:#1f1a14}
.vlu-dw-rm{width:28px;height:28px;border-radius:50%;border:1px solid var(--border);background:none;color:var(--red,#A8322A);font-size:17px;line-height:1;cursor:pointer;flex-shrink:0}
.vlu-dw-add{margin-top:10px;padding-top:11px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:8px}
.vlu-dw-add-lbl{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.vlu-dw-add-chips{display:flex;flex-wrap:wrap;gap:6px}
.vlu-dw-addchip{font-family:inherit;font-size:11.5px;padding:5px 11px;border-radius:13px;border:1px dashed rgba(196,168,130,.7);background:none;color:var(--gold-deep);cursor:pointer}
body.dark .vlu-dw-addchip{color:var(--gold)}
.vlu-dw-add-note,.vlu-dw-add-none{font-size:11px;color:var(--muted)}

/* F3 — at ≤760px the nine wrapping chips (~140px tall at 360px) are replaced by a
   single row: category select + sort select + view toggle. The separate count/sort
   toolbar folds into it too. Desktop is untouched — both blocks exist in the DOM and
   the media query picks one. */
.vlu-mfilters{display:none}
.vlu-mcount{display:none}
@media(max-width:760px){
  .vlu-chips{display:none}
  .vlu-toolbar{display:none}
  .vlu-mfilters{display:flex;gap:6px;align-items:center;margin:11px 0 8px}
  .vlu-mfilters .vlu-sel{flex:1;min-width:0;height:34px}
  .vlu-mfilters .vlu-mcat{border-color:var(--gold)}
  .vlu-mfilters .vlu-viewtog{flex-shrink:0}
  .vlu-mcount{display:block;font-size:12px;color:var(--muted);margin-bottom:11px}
  .vlu-mcount strong{color:var(--ink);font-weight:600}
}

/* ── Storage meter (Settings → Data) ── */
.stor-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;gap:10px}
.stor-top b{font-size:13px;font-weight:600;color:var(--ink)}
.stor-top span{font-size:11.5px;color:var(--muted);font-family:ui-monospace,Menlo,monospace;white-space:nowrap}
.stor-bar{height:9px;border-radius:5px;background:var(--cream);border:.5px solid var(--border);overflow:hidden}
.stor-bar>div{height:100%;background:var(--green);transition:width .3s}
.stor-bar.mid>div{background:var(--gold)}
.stor-bar.hi>div{background:var(--red)}
.stor-note{font-size:11.5px;color:var(--muted);margin-top:7px;line-height:1.55}
.stor-cap{font-size:11px;color:var(--muted);margin-top:9px;padding-top:9px;border-top:.5px solid var(--border);line-height:1.6}

.vlu-msg{border:.5px solid var(--border);border-radius:12px;overflow:hidden;background:var(--cream)}
.vlu-msgtop{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 13px;border-bottom:.5px solid var(--border);background:var(--surface)}
.vlu-msgtop b{font-family:'Cormorant Garamond',serif;font-size:16px;font-weight:600;color:var(--ink)}
.vlu-msgsoon{background:var(--chip);color:var(--gold-deep);font-size:10px;padding:2px 9px;border-radius:10px;white-space:nowrap}
body.dark .vlu-msgsoon{color:var(--gold)}
/* Two-pane, and it STAYS two-pane on mobile. The rail holds only a name and a
   category, so it fits in 132px at 360px; Email / Call live in the panel for the
   selected vendor instead of being repeated in every rail row. Nothing selected =
   the generic empty state, which is what makes the rail a selector rather than
   decoration. */
/* S1 — the body is a FIXED height, so the shell is the same size with 2 vendors or
   20. The rail scrolls inside it; the panel never moves. (A max-height on the rail
   alone wasn't enough — a short list still shrank the shell.) */
.vlu-msgbody{display:flex;height:380px}
.vlu-msgrail{width:200px;flex-shrink:0;border-right:.5px solid var(--border);background:var(--surface);padding:11px 9px;overflow-y:auto}
.vlu-msgrail::-webkit-scrollbar{width:5px}
.vlu-msgrail::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}
.vlu-msgrail .rl{font-size:8.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px;padding-left:2px}
.vlu-msgnone{font-size:11.5px;color:var(--muted);line-height:1.6;padding:8px 2px}
.vlu-msgv{background:var(--cream);border:.5px solid var(--border);border-radius:7px;padding:7px 9px;margin-bottom:4px;text-align:left;width:100%;cursor:pointer;font-family:'Inter',sans-serif;transition:border-color .12s,box-shadow .12s}
.vlu-msgv:hover{border-color:var(--gold)}
.vlu-msgv.on{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.vlu-msgvn{font-size:11.5px;color:var(--ink);font-weight:500;line-height:1.3}
.vlu-msgvc{font-size:9px;color:var(--muted);margin-top:1px}
.vlu-msgmain{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px 20px;overflow-y:auto}
.vlu-msgmain h4{font-family:'Cormorant Garamond',serif;font-size:19px;font-weight:600;color:var(--ink);margin:8px 0 0}
.vlu-msgmain p{font-size:12.5px;color:var(--muted);line-height:1.65;margin:5px 0 0;max-width:330px}
.vlu-msgvname{font-family:'Cormorant Garamond',serif;font-size:17px;font-weight:600;color:var(--ink);margin-top:7px}
.vlu-msgvcat{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-top:1px}
.vlu-msgnolink{font-size:11px;color:var(--muted);background:var(--surface);border:.5px solid var(--border);border-radius:8px;padding:7px 11px;margin-top:11px;line-height:1.55;max-width:260px}
.vlu-msgacts{display:flex;gap:7px;margin-top:13px;flex-wrap:wrap;justify-content:center}
.vlu-msgcomp{display:flex;align-items:center;gap:7px;padding:9px 12px;border-top:.5px solid var(--border);background:var(--surface);opacity:.55}
.vlu-msgcomp .fake{flex:1;background:var(--cream);border:.5px solid var(--border);border-radius:7px;padding:8px 10px;font-size:12px;color:var(--muted)}
.vlu-msgcomp .snd{background:var(--border);color:var(--cream);font-size:11.5px;padding:8px 14px;border-radius:7px}
body.dark .vlu-msgcomp .snd{color:var(--ink)}
@media(max-width:760px){
  /* stays a row — only the rail narrows */
  .vlu-msgbody{height:320px}
  .vlu-msgrail{width:132px;padding:9px 7px}
  .vlu-msgrail .rl{font-size:8.5px}
  .vlu-msgv{padding:7px 8px}
  .vlu-msgvn{font-size:11px}
  .vlu-msgvc{font-size:9px}
  .vlu-msgmain{padding:18px 12px}
  .vlu-msgmain h4{font-size:17px}
  .vlu-msgmain p{font-size:11.5px}
  .vlu-msgvname{font-size:16px}
}
@media(max-width:640px){
  .vlu-grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}
  .vlu-hero{height:96px}
  .vlu-mono{font-size:30px}
  .vlu-pmono{width:60px;height:60px;font-size:26px}
  .vlu-pname{font-size:21px}
  .vlu-deflist dt{width:92px}
  .vlu-pacts .btn{min-width:0!important;flex:1 1 100%!important}
}


/* ── Setup Modal ── */
.setup-modal-card{background:var(--surface);border-radius:20px;padding:38px 42px 34px;max-width:520px;width:100%;box-shadow:0 32px 80px rgba(0,0,0,0.18),0 0 0 1px var(--border);max-height:90vh;overflow-y:auto;position:relative;outline:1px solid rgba(184,150,90,0.22);outline-offset:-1px}
@media(max-width:540px){.setup-modal-card{padding:26px 20px 22px;border-radius:16px}}
.setup-modal-eyebrow{font-size:10px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin-bottom:10px}
.setup-modal-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:34px;font-weight:300;color:var(--ink);line-height:1.15;margin-bottom:6px}
.setup-modal-title em{font-style:italic;color:var(--gold-deep)}
.setup-modal-sub{font-size:13.5px;color:var(--muted);margin-bottom:26px;line-height:1.6}

/* ── RSVP live-update banner (badge + banner for an incoming RSVP) ── */
#rsvp-live-banner{transform:translateY(-100%);opacity:0;transition:transform .32s cubic-bezier(.22,.8,.3,1),opacity .32s ease}
#rsvp-live-banner.in{transform:translateY(0);opacity:1}

/* ── RSVP live-update: large centred Response Summary modal ── */
.rsvp-summary-modal-overlay{position:fixed;inset:0;z-index:9999;background:rgba(26,22,18,.5);display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;transition:opacity .22s ease}
.rsvp-summary-modal-overlay.in{opacity:1}
.rsvp-summary-modal-card{background:var(--cream);border-radius:20px;padding:40px 44px 34px;max-width:480px;width:100%;box-shadow:0 30px 70px rgba(0,0,0,.28),0 0 0 1px var(--border);position:relative;transform:scale(.94) translateY(8px);transition:transform .28s cubic-bezier(.22,.8,.3,1)}
.rsvp-summary-modal-overlay.in .rsvp-summary-modal-card{transform:scale(1) translateY(0)}
.rsvp-summary-modal-close{position:absolute;top:16px;right:16px;background:none;border:none;color:var(--muted);cursor:pointer;padding:6px;border-radius:8px;display:flex}
.rsvp-summary-modal-close:hover{background:var(--surface);color:var(--ink)}

/* ── SUBSCRIPTION: Upgrade Modal ── */
.uv-upgrade-overlay{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:20px;animation:uvFadeIn .2s ease}
@keyframes uvFadeIn{from{opacity:0}to{opacity:1}}
.uv-upgrade-card{background:var(--cream);border-radius:20px;padding:36px 32px 28px;max-width:440px;width:100%;box-shadow:0 24px 60px rgba(0,0,0,.2),0 0 0 1px var(--border);text-align:center;position:relative}
.uv-upgrade-close{position:absolute;top:12px;right:14px;background:none;border:none;font-size:22px;color:var(--muted);cursor:pointer;padding:4px 8px}
.uv-upgrade-icon{margin-bottom:12px}
.uv-upgrade-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:26px;font-weight:400;color:var(--ink);margin-bottom:6px}
.uv-upgrade-sub{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:18px}
.uv-upgrade-feats{text-align:left;margin:0 auto 22px;max-width:340px}
.uv-upgrade-feat{font-size:13px;color:var(--ink);padding:4px 0;line-height:1.5}
.uv-upgrade-cta{display:block;width:100%;padding:13px;background:var(--gold);color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;margin-bottom:10px;transition:background .15s}
.uv-upgrade-cta:hover{background:var(--gold-deep)}
.uv-upgrade-dismiss{display:block;width:100%;padding:8px;background:none;border:none;color:var(--muted);font-size:12.5px;cursor:pointer}
.uv-upgrade-dismiss:hover{color:var(--ink)}

/* ── SUBSCRIPTION: Nav lock icons ── */
.nav-item button.nav-locked{opacity:.6}
.nav-item button.nav-locked::after{content:'';display:inline-block;width:12px;height:12px;margin-left:6px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9389' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E") center/contain no-repeat;vertical-align:middle;flex-shrink:0}
body.dark .nav-item button.nav-locked::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C7A80' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E")}
.icon-sidebar .nav-item button.nav-locked::after{display:none}

/* ── SUBSCRIPTION: Trial banner ── */
.uv-trial-banner{background:linear-gradient(135deg,var(--gold) 0%,var(--gold-deep) 100%);color:#fff;padding:10px 18px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:16px}
.uv-trial-banner strong{font-weight:600}
.uv-trial-banner button{background:rgba(255,255,255,.22);color:#fff;border:none;padding:6px 14px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.uv-trial-banner button:hover{background:rgba(255,255,255,.35)}
.uv-upgrade-card-dash{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:22px 20px;text-align:center}
.uv-upgrade-card-dash .uv-dash-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:20px;color:var(--ink);margin-bottom:4px}
.uv-upgrade-card-dash .uv-dash-sub{font-size:12.5px;color:var(--muted);margin-bottom:14px}
.uv-upgrade-card-dash button{background:var(--gold);color:#fff;border:none;padding:10px 24px;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer}

/* ── Setup Wizard: resume-progress banner ── */
.uv-wrb{position:relative;display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--gold);border-radius:12px;padding:14px 46px 14px 16px;margin-bottom:16px}
.uv-wrb-icon{flex-shrink:0;width:34px;height:34px;border-radius:50%;background:rgba(184,150,62,.14);color:var(--gold-deep);display:flex;align-items:center;justify-content:center}
.uv-wrb-text{flex:1;min-width:0}
.uv-wrb-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:16px;color:var(--ink);line-height:1.25}
.uv-wrb-sub{font-size:12px;color:var(--muted);margin-top:2px}
.uv-wrb-track{width:70px;height:5px;border-radius:3px;background:var(--border);overflow:hidden;flex-shrink:0}
.uv-wrb-fill{height:100%;background:var(--gold);border-radius:3px}
.uv-wrb-btn{background:var(--gold);color:#fff;border:none;padding:9px 18px;border-radius:9px;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;flex-shrink:0}
.uv-wrb-btn:hover{background:var(--gold-deep)}
.uv-wrb-x{position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;border:none;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.uv-wrb-x:hover{background:var(--parchment);color:var(--ink)}
body.dark .uv-wrb-icon{background:rgba(184,150,62,.22)}
@media (max-width:460px){
  .uv-wrb{flex-wrap:wrap;padding:14px 38px 14px 14px}
  .uv-wrb-track{display:none}
  .uv-wrb-btn{margin-left:48px}
}

/* ── SUBSCRIPTION: Price pills (landing) ── */
.price-duration-pills{display:flex;gap:6px;justify-content:center;margin:12px 0 4px;flex-wrap:wrap}
.price-pill{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:5px 12px;font-size:11.5px;color:var(--muted);cursor:pointer;transition:all .15s;white-space:nowrap}
.price-pill:hover{border-color:var(--gold);color:var(--ink)}
.price-pill.active{background:var(--gold);border-color:var(--gold);color:#fff}
.price-pill small{font-size:10px;opacity:.8}
.price-trial-note{font-size:11.5px;color:var(--muted);margin-top:8px;text-align:center}

/* ── SUBSCRIPTION: Feature lock hint in-app ── */
.uv-lock-hint{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--muted);cursor:pointer;padding:2px 8px;border-radius:6px;border:1px dashed var(--border)}
.uv-lock-hint:hover{border-color:var(--gold);color:var(--gold)}

/* ── Wishing well column toggle (desktop only) ── */
@media(min-width:768px){.ww-col-toggle{display:inline-flex!important}}

/* ── Communications page: dropdown nav on narrow widths instead of the full list ── */
.comms-mobile-nav{display:none}
@media (max-width:760px){
  .comms-mobile-nav{display:block}
  .comms-nav-card{display:none}
}
.comms-mobile-nav{position:relative}
.comms-mnav-btn{display:flex;align-items:center;gap:10px;width:100%;padding:9px 11px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--ink);font-family:inherit;text-align:left;cursor:pointer}
.comms-mnav-btn.open{border-color:var(--gold-deep)}
.comms-mnav-cur{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.comms-mnav-ctx{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.comms-mnav-title{font-size:14px;font-weight:500;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.comms-mnav-chev{flex-shrink:0;color:var(--muted);transition:transform .15s}
.comms-mnav-btn.open .comms-mnav-chev{transform:rotate(180deg)}
.comms-mnav-panel{position:absolute;left:0;right:0;top:calc(100% - 4px);z-index:40;max-height:min(70vh,560px);overflow-y:auto;padding:10px 8px;background:var(--cream);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.14)}
body.dark .comms-mnav-panel{background:#1F1F24;box-shadow:0 12px 32px rgba(0,0,0,.45)}
.comms-mnav-sec-h{font-family:'Cormorant Garamond',serif;font-size:18px;font-weight:600;color:var(--ink);padding:0 6px 4px;line-height:1.1}
.comms-mnav-grp{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:6px 6px 4px}


/* ── Online RSVPs pop-up + "new RSVPs" banner (RSVP & Invites) ── */
.orsvp-stat{flex:1;min-width:90px;padding:10px 14px;border-radius:9px;text-align:center;font-family:inherit;cursor:pointer;border:1px solid var(--orsvp-bd,var(--border));transition:box-shadow .15s,border-color .15s}
.orsvp-stat:hover{border-color:var(--orsvp-on)}
.orsvp-stat.on{border-color:var(--orsvp-on);box-shadow:0 0 0 1px var(--orsvp-on)}
.orsvp-stat:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* Response list runs closer to the pop-up edges (~60% less side space than the 28px body padding) */
.orsvp-list{margin-inline:-17px}
/* Card/List switcher: in the toolbar on desktop, in the header (left of ×) on phones */
.orsvp-views-hdr{display:none}
@media (max-width:600px){ .orsvp-views-body{display:none!important} .orsvp-views-hdr{display:flex;gap:4px;margin-left:auto;align-self:center} }
/* List view guest row — three layouts chosen by _orsvpFitListRows() */
.orsvp-lvm{display:grid;column-gap:8px;row-gap:5px;align-items:center}
.orsvp-lvm>span{white-space:nowrap}
.orsvp-lvm .lvm-n{min-width:0;overflow:hidden;text-overflow:ellipsis}
.orsvp-lvm .lvm-d{display:inline-flex;flex-wrap:wrap;gap:4px}
.orsvp-lvm .lvm-n{grid-area:n}.orsvp-lvm .lvm-d{grid-area:d}.orsvp-lvm .lvm-m{grid-area:m}.orsvp-lvm .lvm-b{grid-area:b;justify-self:end}
.orsvp-lvm.st-a{grid-template-columns:auto auto 1fr auto auto;grid-template-areas:"n d . m b"}
.orsvp-lvm.st-b{grid-template-columns:auto 1fr auto auto;grid-template-areas:"n . m b" "d d d d"}
.orsvp-lvm.st-c{grid-template-columns:auto auto 1fr auto;grid-template-areas:"n n . b" "m d d d"}
.orsvp-lvm.st-b .lvm-d,.orsvp-lvm.st-c .lvm-d{white-space:normal}
.orsvp-lvm .lvm-m,.orsvp-lvm .lvm-d{justify-self:start}
/* Card view contact block: email + phone share a line where they fit; address always on the next */
.orsvp-cv-contact .orsvp-ci-body{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:3px 0;align-items:center}
.orsvp-cv-contact .orsvp-ci-addr{flex-basis:100%}
/* …and on phones the block is centred, with the "Contact" label on its own line */
@media (max-width:600px){
  .orsvp-cv-contact{flex-direction:column;align-items:center!important;text-align:center}
  .orsvp-cv-contact .orsvp-ci-body{justify-content:center;width:100%}
  .orsvp-cv-contact .orsvp-ci-label{flex-basis:100%;margin-right:0}
}
.orsvp-stat-n{font-size:22px;font-weight:700}
.orsvp-stat-l{font-size:11px;color:var(--muted);margin-top:2px}
@media (max-width:600px){
  /* ~2/3 size on phones */
  #orsvp-stats{gap:8px!important}
  .orsvp-stat{min-width:60px;padding:6px 9px;border-radius:7px}
  .orsvp-stat-n{font-size:15px}
  .orsvp-stat-l{font-size:9.5px;margin-top:1px}
}
.orsvp-banner{display:flex;align-items:center;gap:11px;width:100%;margin:0 0 14px;padding:11px 14px;border-radius:11px;border:1px solid var(--gold);background:var(--gold-bg,rgba(201,168,76,.12));color:var(--ink);font-family:inherit;font-size:13.5px;text-align:left;cursor:pointer}
.orsvp-banner:hover{border-color:var(--gold-deep)}
.orsvp-banner-ico{display:inline-flex;color:var(--gold-deep);flex-shrink:0}
.orsvp-banner-txt{flex:1;min-width:0}
.orsvp-banner-cta{font-size:12px;font-weight:600;color:var(--gold-deep);flex-shrink:0}

/* Event guest picker: filter button is icon-only on phones so it can't overflow the modal */
@media (max-width:600px){ .evp-filter-lbl{display:none} #evp-filter-btn{padding:7px 9px!important} }

/* Phone menu drawer: share the available height between the menu rows so they always fit
   without a scrollbar (rows shrink a little on shorter screens, down to a comfortable
   36px tap height; only then does the list scroll). Icon-sidebar mode is unaffected. */
@media (max-width:900px){
  body:not(.icon-sidebar) .sidebar .nav-list{display:flex;flex-direction:column;padding:2px 0;overflow-y:auto}
  body:not(.icon-sidebar) .sidebar .nav-item{display:flex;flex:1 1 0;min-height:30px;max-height:42px}
  body:not(.icon-sidebar) .sidebar .nav-item button{padding-top:0;padding-bottom:0;font-size:13px;gap:11px}
  body:not(.icon-sidebar) .sidebar .sidebar-header{height:52px}
  body:not(.icon-sidebar) .sidebar .sidebar-footer{padding:8px 14px}
}

/* Online RSVPs: green NEW badge on responses received since the pop-up was last opened */
.orsvp-new{display:inline-block;padding:1px 7px;border-radius:20px;background:var(--green);color:#fff;font-size:9.5px;font-weight:700;letter-spacing:.08em;line-height:1.6}

/* Contact details: "   ⋅   " between items that share a line (added by _orsvpFitContactSeps) */
.orsvp-ci-wrap .orsvp-ci-item.sep::before{content:"\22C5";padding:0 .85em;color:var(--muted)}

/* Online RSVPs household initials: gold-tinted in dark mode so the circle stands off the card
   (same treatment as the guest-list member picker avatars) */
body.dark .orsvp-av{background:rgba(196,168,130,.16)!important;color:var(--gold)!important}

/* Online RSVPs card view: small icon before each contact detail */
.orsvp-ci-ico{display:inline-block;vertical-align:-1px;margin-right:5px;color:var(--muted);flex-shrink:0}

/* ── Communications: rich text editor (_rteHtml in comms.js) ── */
.rte{display:flex;flex-direction:column;gap:8px;position:relative}
.rte-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;position:relative}
.rte-tb{height:32px;min-width:32px;padding:0 8px;border:1px solid var(--border);background:var(--surface);color:var(--ink);border-radius:8px;font-family:inherit;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px}
.rte-algn{display:inline-flex}
.rte-algn .rte-tb{min-width:30px;padding:0 6px;border-radius:0;margin-left:-1px}
.rte-algn .rte-tb:first-child{border-radius:8px 0 0 8px;margin-left:0}
.rte-algn .rte-tb:last-child{border-radius:0 8px 8px 0}
.rte-tb.on{border-color:var(--gold-deep);color:var(--gold-deep);background:var(--parchment)}
.rte-tb:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.rte-ins{margin-left:auto}
.rte-sep{width:1px;height:20px;background:var(--border);margin:0 2px}
.rte-menu{position:absolute;right:0;top:38px;z-index:20;min-width:220px;max-width:calc(100vw - 48px);background:var(--cream);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.14);padding:6px;display:flex;flex-direction:column}
body.dark .rte-menu{background:#1F1F24;box-shadow:0 12px 28px rgba(0,0,0,.45)}
.rte-menu button{border:none;background:none;text-align:left;font-family:inherit;font-size:13px;color:var(--ink);padding:8px 10px;border-radius:8px;cursor:pointer;display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.rte-menu button:hover{background:var(--parchment)}
.rte-menu small{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55%}
.rte-menu-sep{height:1px;background:var(--border);margin:4px 6px}
.rte-ed{font-size:14px;line-height:1.6;padding:12px 14px;outline:none;overflow-wrap:anywhere;cursor:text;white-space:normal}
.rte-ed:focus{border-color:var(--gold)}
.rte-ed p{margin:0 0 9px}
.rte-ed p:last-child{margin-bottom:0}
.rte-ed .rte-intro{font-size:16px;font-style:italic;font-weight:500}
.rte-ed .rte-center{text-align:center}
.rte-ed .rte-right{text-align:right}
.rte-ed .rte-large{font-size:20px;line-height:1.35}
.rte-ed .rte-small{font-size:12px;color:var(--muted)}
.rte-szwrap{position:relative;display:inline-block}
.rte-sizemenu{left:0;right:auto;top:36px;min-width:150px}
.rte-sizemenu .rte-sz-small{font-size:12px;color:var(--muted)}
.rte-sizemenu .rte-sz-large{font-size:18px}
.rte-sizemenu .rte-sz-intro{font-style:italic;font-weight:500}
.rte-ed.is-empty{position:relative}
.rte-ed.is-empty::before{content:attr(data-ph);position:absolute;left:14px;right:14px;top:12px;color:var(--muted);opacity:.7;pointer-events:none}
.rte-tok{display:inline-block;background:var(--parchment);color:var(--gold-deep);border:1px solid var(--gold-med,var(--border));border-radius:6px;padding:0 6px;font-size:.88em;line-height:1.5;white-space:nowrap;user-select:all;vertical-align:baseline}
body.dark .rte-tok{background:rgba(196,168,130,.16);border-color:rgba(196,168,130,.3);color:var(--gold)}
.rte-btnrow{text-align:center;margin:10px 0!important}
.rte-btn{display:inline-flex;align-items:center;gap:6px;border:1.5px dashed var(--gold);color:var(--gold-deep);background:var(--parchment);border-radius:8px;padding:5px 8px 5px 14px;font-size:13px;font-weight:600;user-select:none}
body.dark .rte-btn{background:rgba(196,168,130,.12);color:var(--gold)}
.rte-btn-x{border:none;background:none;color:var(--muted);font-size:16px;line-height:1;padding:0 4px;cursor:pointer}
/* Edit window shell */
.comms-ed{display:flex;flex-direction:column;gap:12px}
.comms-ed-seg{display:flex;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:3px}
.comms-ed-seg button{flex:1;border:none;background:none;font-family:inherit;font-size:13px;font-weight:600;color:var(--muted);padding:7px 0;border-radius:7px;cursor:pointer}
.comms-ed-seg button[aria-pressed="true"]{background:var(--gold-deep);color:#fff}
body.dark .comms-ed-seg button[aria-pressed="true"]{background:var(--gold);color:#1C1C21}
.comms-ed-pane{display:flex;flex-direction:column;gap:12px}
.comms-ed-pane[hidden]{display:none}
.comms-ed-tips{font-size:12px;color:var(--muted);line-height:1.55}
.comms-ed-tips summary{cursor:pointer;color:var(--gold-deep);font-weight:600;list-style:none;display:inline-block}
.comms-ed-tips summary::-webkit-details-marker{display:none}
.comms-ed-tips[open] summary{margin-bottom:6px}
.comms-ed-fonts{display:flex;flex-direction:column;gap:10px}
.comms-ed-lbl{font-size:12px;font-weight:600;color:var(--ink);margin-bottom:6px}
.comms-ed-reset{margin-right:auto;border:none;background:none;font-family:inherit;font-size:12.5px;color:var(--muted);text-decoration:underline;cursor:pointer;padding:0}
/* Font pickers (edit window + Email Design window) */
.email-fonts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.email-fontopt{min-width:0;text-align:left;border:1px solid var(--border);background:var(--surface);color:var(--ink);border-radius:10px;padding:5px 10px 6px;font-family:inherit;font-size:11.5px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;line-height:1.3}
.email-fontopt .aa{font-size:18px;line-height:1.25}
.email-fontopt[aria-pressed="true"]{border-color:var(--gold-deep);box-shadow:0 0 0 1px var(--gold-deep)}
.email-fontopt:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* ── Communications tabs + Sent emails (js/sent-log.js) ── */
.comms-tabs{display:flex;gap:4px;background:var(--cream);border:1px solid var(--border);border-radius:10px;padding:3px;margin-bottom:14px;max-width:360px}
.comms-tabs button{flex:1;border:none;background:transparent;padding:7px 0;border-radius:7px;font:inherit;font-size:12.5px;color:var(--muted);cursor:pointer}
.comms-tabs button.on{background:var(--gold);color:#fff;font-weight:600}
body.dark .comms-tabs button.on{color:#191A1E}
.comms-tabs button:focus-visible,.sl-chip:focus-visible,.sl-row:focus-visible,.sl-gbox-row:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.sl-root{--sl-ok:#4F7A45;--sl-ok-bg:#E7F0E3;--sl-bad:#B2442F;--sl-bad-bg:#F8E4DF;--sl-wait:#8B7355;--sl-wait-bg:#F4EDE1;--sl-auto:#5A6378;--sl-auto-bg:#EEF0F4;max-width:760px;display:flex;flex-direction:column;gap:10px}
body.dark .sl-root,body.dark .sl-detail,body.dark .sl-gbox{--sl-ok:#8FBF7F;--sl-ok-bg:#1F2A1D;--sl-bad:#E38A76;--sl-bad-bg:#32201C;--sl-wait:#C9B48C;--sl-wait-bg:#2A251C;--sl-auto:#A3ADC2;--sl-auto-bg:#20232B}
.sl-detail,.sl-gbox{--sl-ok:#4F7A45;--sl-ok-bg:#E7F0E3;--sl-bad:#B2442F;--sl-bad-bg:#F8E4DF;--sl-wait:#8B7355;--sl-wait-bg:#F4EDE1;--sl-auto:#5A6378;--sl-auto-bg:#EEF0F4}
.sl-tools{display:flex;flex-direction:column;gap:8px}
.sl-search{position:relative}
.sl-search svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.sl-search .form-input{padding-left:30px}
.sl-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.sl-chips::-webkit-scrollbar{display:none}
.sl-chip{flex-shrink:0;border:1px solid var(--border);background:var(--cream);border-radius:999px;padding:4px 11px;font:inherit;font-size:11.5px;color:var(--muted);cursor:pointer;white-space:nowrap}
.sl-chip.on{border-color:var(--gold-deep);color:var(--gold-deep);font-weight:600}
.sl-guestpill{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink);background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:6px 10px}
.sl-guestpill button{margin-left:auto;border:none;background:none;color:var(--muted);font-size:16px;line-height:1;cursor:pointer}
.sl-day{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:6px 2px 0}
.sl-list{background:var(--cream);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.sl-row{display:grid;grid-template-columns:1fr auto;gap:2px 10px;width:100%;text-align:left;padding:10px 12px;border:none;border-top:1px solid var(--border);background:transparent;font:inherit;color:var(--ink);cursor:pointer}
.sl-row:first-child{border-top:none}
.sl-row:hover{background:var(--surface)}
.sl-who{font-weight:600;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sl-time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.sl-what{display:flex;align-items:center;gap:6px;min-width:0;font-size:11.5px;color:var(--muted)}
.sl-what em{font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.sl-kind{flex-shrink:0;font-size:10px;font-weight:600;padding:1px 7px;border-radius:5px;background:var(--surface);color:var(--gold-deep);border:1px solid var(--border);white-space:nowrap}
.sl-kind-auto{background:var(--sl-auto-bg);color:var(--sl-auto);border-color:transparent}
.sl-st{justify-self:end;display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;padding:1px 7px;border-radius:999px;white-space:nowrap}
.sl-st i{width:6px;height:6px;border-radius:50%;background:currentColor;display:block}
.sl-st-ok{background:var(--sl-ok-bg);color:var(--sl-ok)}.sl-st-bad{background:var(--sl-bad-bg);color:var(--sl-bad)}.sl-st-wait{background:var(--sl-wait-bg);color:var(--sl-wait)}
.sl-more{align-self:center;border:none;background:none;color:var(--gold-deep);font:inherit;font-size:12px;cursor:pointer;padding:6px}
.sl-empty{display:flex;flex-direction:column;gap:4px;background:var(--cream);border:1px dashed var(--border);border-radius:12px;padding:18px 16px;font-size:12.5px;color:var(--muted);line-height:1.5}
.sl-empty b{color:var(--ink);font-weight:600}
.sl-err{font-size:12px;color:var(--sl-bad);background:var(--sl-bad-bg);border-radius:9px;padding:8px 10px}
.sl-err button{border:none;background:none;color:inherit;font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.sl-foot{font-size:11px;color:var(--muted);line-height:1.5}
.sl-detail{display:flex;flex-direction:column;gap:12px}
.sl-kv{display:grid;grid-template-columns:62px 1fr;gap:6px 10px;font-size:12.5px;margin:0}
.sl-kv dt{color:var(--muted)}.sl-kv dd{margin:0;min-width:0;overflow-wrap:anywhere;color:var(--ink)}
.sl-track{display:flex;flex-direction:column;border-left:2px solid var(--border);margin-left:5px;padding-left:14px}
.sl-track div{position:relative;font-size:12.5px;padding:3px 0;color:var(--ink)}
.sl-track div::before{content:"";position:absolute;left:-20px;top:8px;width:10px;height:10px;border-radius:50%;background:var(--cream);border:2px solid var(--gold)}
.sl-track div.ok::before{background:var(--sl-ok);border-color:var(--sl-ok)}
.sl-track div.bad{color:var(--sl-bad)}.sl-track div.bad::before{background:var(--sl-bad);border-color:var(--sl-bad)}
.sl-track div.wait{color:var(--muted)}
.sl-track small{color:var(--muted);font-variant-numeric:tabular-nums;margin-left:6px}
.sl-warn{background:var(--sl-bad-bg);color:var(--sl-bad);border-radius:9px;padding:9px 11px;font-size:12px;line-height:1.5}
.sl-gbox{border-top:1px solid var(--border);padding-top:11px;margin-top:2px}
.sl-gbox-h{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:6px}
.sl-gbox-row{display:flex;align-items:center;gap:8px;width:100%;border:none;border-top:1px solid var(--border);background:transparent;padding:7px 0;font:inherit;cursor:pointer;text-align:left}
.sl-gbox-row:first-child{border-top:none}
.sl-gbox-row .sl-st{justify-self:auto}
.sl-gbox-d{margin-left:auto;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.sl-gbox-none{font-size:12px;color:var(--muted)}
.sl-gbox-all{border:none;background:none;color:var(--gold-deep);font:inherit;font-size:11.5px;cursor:pointer;padding:6px 0 0;display:block;margin-left:auto}
/* Send window: the email message shown styled, read-only */
.ss-msg-styled{border:.5px solid var(--border);border-radius:11px;padding:10px 12px;font-size:13px;line-height:1.55;color:var(--ink);background:var(--surface);overflow-wrap:anywhere;max-height:220px;overflow:auto}
.ss-msg-styled p{margin:0 0 8px}.ss-msg-styled p:last-child{margin-bottom:0}
.ss-msg-styled .rte-intro{font-size:15px;font-style:italic;font-weight:500}
.ss-msg-styled .rte-center{text-align:center}
.ss-msg-styled .rte-right{text-align:right}
.ss-msg-styled .rte-large{font-size:18px}
.ss-msg-styled .rte-small{font-size:11.5px;color:var(--muted)}
/* Wishing Well → Cash gifts: search beside Sort */
.ww-search{position:relative;flex:1 1 0;width:0;min-width:110px}
.ww-sort-wrap{flex:0 0 118px}
.ww-sort-sel{display:block;width:100%;box-sizing:border-box;height:30px;font:inherit;font-size:12px;padding:0 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--ink);cursor:pointer;outline:none}
.ww-search svg{position:absolute;left:9px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.ww-search input{width:100%;box-sizing:border-box;height:30px;font:inherit;font-size:12px;padding:0 8px 0 28px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--ink);outline:none}
.ww-search input:focus{border-color:var(--gold)}

/* Communications: on phones the email preview gets nearly the full card width */
@media(max-width:600px){
  #comms-detail{padding:16px 12px!important;min-width:0!important}
  #comms-preview-box{margin-left:-6px;margin-right:-6px}
}

/* Email text editor toolbar: stay on one line on phones (labels shrink to icons) */
@media(max-width:600px){
  .rte-bar{flex-wrap:nowrap;gap:3px}
  .rte-bar .rte-tb{height:30px;min-width:28px;padding:0 5px;font-size:12.5px;flex-shrink:0}
  .rte-bar .rte-algn .rte-tb{min-width:27px;padding:0 4px}
  .rte-bar .rte-lbl{display:none}
  .rte-bar .rte-sep{margin:0 1px}
}

/* Wishing Well due / written / sent tiles: a visible edge in both themes */
.ww-stat{background:var(--surface);border:1px solid var(--border);border-radius:10px}
body.dark .ww-stat{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14)}

/* Dashboard "Choose ideas" picker: thumbnails keep their height; bigger on phones so they can be seen */
.vbdp-img{height:90px}
@media(max-width:600px){.vbdp-img{height:140px}}

/* Wishing Well thank-you steps: solid green circle = done, dashed grey circle = not yet */
.ww-step{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;flex-shrink:0;background:none;border:1.5px dashed var(--muted);color:var(--muted);opacity:.8;transition:background .15s,color .15s,opacity .15s}
.ww-step:hover{opacity:1;border-color:var(--gold-deep);color:var(--gold-deep)}
.ww-step.on{background:var(--green,#5C8A4E);border:1.5px solid var(--green,#5C8A4E);color:#fff;opacity:1}
.ww-step.on:hover{filter:brightness(1.08);color:#fff}

/* Vendors shortcut cards: on phones the action button drops to its own full-width row under the text
   (side by side it squeezed the text into a tall, narrow column). */
@media(max-width:600px){
  .vendor-lookup-banner{flex-wrap:wrap}
  .vendor-lookup-banner .vendor-lookup-btn{flex:1 1 100%;justify-content:center;margin-top:2px}
  .vbl-header{flex-wrap:wrap}
  .vbl-header .vbl-gen-btn{flex:1 1 100%;justify-content:center;margin-top:2px}
}
/* Vendor Look Up is not live yet: greyed out, with a diagonal "Coming soon" watermark. */
.vendor-lookup-soon{position:relative;overflow:hidden}
.vendor-lookup-soon > :not(.vls-mark){filter:grayscale(1);opacity:.45}
.vendor-lookup-soon .vendor-lookup-btn{cursor:not-allowed;pointer-events:none}
.vendor-lookup-soon .vls-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-7deg);z-index:2;pointer-events:none;
  font-family:'Cormorant Garamond',serif;font-size:26px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;white-space:nowrap;
  color:rgba(139,115,85,.55);border:2px solid rgba(139,115,85,.45);border-radius:8px;padding:2px 14px;background:rgba(251,248,243,.6)}
body.dark .vendor-lookup-soon .vls-mark{color:rgba(195,182,158,.7);border-color:rgba(195,182,158,.5);background:rgba(27,27,31,.55)}
/* Dashboard Vendors widget: Vendor Look Up isn't live yet, so its entry points are greyed out and inert. */
.vlu-dw-soon,.vlu-dw-soon:hover{opacity:.5;filter:grayscale(1);cursor:not-allowed;pointer-events:none;text-decoration:none}

/* Budget summary (ring style): each amount sits right under its own label, with clear space between the
   pairs, and the ring is big enough to read. */
.bsum-ring .bsum-fig{gap:0}
.bsum-ring .bsum-fig > span:first-child{min-height:12px!important;line-height:1.1}
.bsum-ring-svg{width:72px;height:72px}
@media(min-width:561px){.bsum-ring-svg{width:60px;height:60px}}
/* Budget ring summary: more room between the ring and the figures beside it. */
@media(max-width:560px){.bsum-ring{gap:18px!important}}

/* Ring summary, round two: desktop ring bigger; phones inset the whole ring row so it isn't hard against the left edge. */
.bsum-ring-svg{margin-left:0!important}
@media(min-width:561px){.bsum-ring-svg{width:92px;height:92px}}
@media(max-width:560px){.bsum-a .bsum-ring{padding-left:12px;padding-right:6px}}
/* Desktop ring layout: every label row is the same height (some carry a little list button), so the amounts line up. */
.bsum-ring-b .bsum-fig > span:first-child{min-height:20px!important;align-items:center}
.bsum-ring-b .bsum-fig{justify-content:flex-start}
.bsum-ring-b > div > div > div:last-child{align-items:start}

/* Desktop ring summary: the figures are sized to sit comfortably beside the bigger ring. */
@media(min-width:561px){
  .bsum-ring-b .bsum-fig > span:first-child{font-size:12px!important;letter-spacing:.07em;min-height:24px!important}
  .bsum-ring-b .bsum-fig > span:last-child{font-size:30px!important;line-height:1.1!important}
}

/* Timeline cards: the card column may shrink below its content, so a long song row or location wraps/ellipsises
   inside the card instead of pushing the card off the right edge of a phone. */
.tl-row > div{min-width:0}

/* Timeline (mobile): times hug the left edge and shrink to give the cards more width */
@media(max-width:640px){
  .tl-row{grid-template-columns:40px minmax(0,1fr) !important;gap:3px !important}
  .tl-row > .tl-time{text-align:left !important;padding-top:5px !important;margin-left:-6px}
  .tl-row > .tl-time > div{font-size:9.5px !important;letter-spacing:-.2px}
  .tl-row > div:nth-child(2){padding-left:19px !important}
  /* Song link: taller two-line card — start time on top, song name below, bigger play target */
  .tl-row .song-chip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"note start play" "note txt play";align-items:center;column-gap:9px;row-gap:3px;padding:11px 12px;min-height:58px;width:100%;box-sizing:border-box}
  .tl-row .song-chip .sc-note{grid-area:note}
  .tl-row .song-chip .sc-start{grid-area:start;justify-self:start}
  .tl-row .song-chip .sc-txt{grid-area:txt;font-size:13px;white-space:normal;overflow:visible;line-height:1.3}
  .tl-row .song-chip:not(:has(.sc-start)){grid-template-areas:"note txt play";min-height:0;padding:7px 10px}
  .tl-row .song-chip:not(:has(.sc-start)) .sc-play{width:28px;height:28px}
  .tl-row .song-chip:not(:has(.sc-start)) .sc-play svg{width:13px;height:13px}
  .tl-row .song-chip .sc-play{grid-area:play;width:36px;height:36px;align-items:center;justify-content:center;border-radius:50%;background:rgba(139,115,85,.12)}
  body.dark .tl-row .song-chip .sc-play{background:rgba(196,168,130,.18)}
  .tl-row .song-chip .sc-play svg{width:16px;height:16px}
}

/* ── Venues: Same/Different toggle + Rooms & spaces (Event Details + setup wizard) ── */
.uv-seg{display:inline-flex;gap:6px;flex-wrap:wrap}
.uv-seg button{padding:7px 14px;border-radius:100px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font-size:12.5px;font-family:inherit;cursor:pointer;transition:all .14s}
.uv-seg button:hover{border-color:var(--gold)}
.uv-seg button.on{background:var(--gold);border-color:var(--gold);color:#fff;font-weight:600}
.uv-sp{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}
.uv-sp-head{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;background:none;border:none;cursor:pointer;text-align:left;font-family:inherit;color:var(--ink)}
.uv-sp-head>svg{flex-shrink:0;color:var(--gold-deep)}
.uv-sp-title{flex:1;min-width:0;font-size:13px}
.uv-sp-title b{font-weight:600}
.uv-sp-title i{font-style:normal;font-size:11.5px;color:var(--muted)}
.uv-sp-title small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uv-sp-chev{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;color:var(--gold-deep);flex-shrink:0}
.uv-sp-body{border-top:1px solid var(--border);padding:4px 14px 12px}
.uv-sp-row{display:grid;grid-template-columns:118px minmax(0,1fr) 24px;gap:10px;align-items:center;padding:8px 0}
.uv-sp-row+.uv-sp-row{border-top:1px solid var(--border)}
.uv-sp-lbl{font-size:12.5px;font-weight:600;color:var(--ink);min-width:0}
.uv-sp-lbl small{display:block;font-weight:400;font-size:11px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uv-sp-row input{font-size:13px}
.uv-sp-del{background:none;border:none;color:var(--muted);font-size:17px;line-height:1;cursor:pointer;padding:0}
.uv-sp-del:hover{color:var(--red)}
.uv-sp-add{background:none;border:none;padding:0;margin-top:8px;font-size:12px;font-weight:600;color:var(--gold-deep);cursor:pointer;font-family:inherit}
.uv-sp-hint{font-size:11.5px;color:var(--muted);margin-top:8px;line-height:1.45}
@media (max-width:460px){
  .uv-sp-row{grid-template-columns:minmax(0,1fr) 24px;gap:6px 8px}
  .uv-sp-row .uv-sp-lbl{grid-column:1/-1}
}
/* Inspiration → Our style */
.inspo-style-pills{display:flex;flex-wrap:wrap;gap:6px}
.inspo-style-pill{padding:5px 12px;border-radius:20px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font-size:12px;font-family:inherit;cursor:pointer;transition:all .14s}
.inspo-style-pill:hover{border-color:var(--gold)}
.inspo-style-pill.on{background:var(--gold);border-color:var(--gold);color:#fff;font-weight:600}
.inspo-style-two{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
@media (max-width:640px){.inspo-style-two{grid-template-columns:1fr}}
/* Event Details: date/time and guests/formality pairs — date & time pickers can't shrink, so stack on phones */
.det-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.det-pair .form-input{min-width:0;width:100%}
/* Guest count info icon + tooltip, switch row */
.det-info{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:5px;border-radius:50%;border:1px solid var(--muted);background:none;color:var(--muted);font:italic 600 9px Georgia,serif;line-height:1;padding:0;cursor:pointer;vertical-align:middle}
.det-tip{display:none;margin-top:6px;font-size:11.5px;line-height:1.45;color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:7px 10px}
.det-seg-row{display:flex;align-items:center}
/* Phones: compact Event Details — pairs stay side by side, tighter spacing, heading/back hidden (top bar already says it) */
@media (max-width:520px){
  .det-back-row,.det-head-hide,.det-hint-desktop{display:none!important}
  .det-main-card{padding:12px!important}
  .det-main-stack{gap:10px!important}
  .det-main-card .form-label{font-size:9.5px!important;margin-bottom:3px!important;letter-spacing:.1em!important}
  .det-main-card .form-input{padding:7px 10px!important;font-size:14px!important;height:36px!important;border-radius:8px!important}
  .det-main-card .form-group{margin:0!important}
  .det-main-card .det-pair{gap:10px!important}
  .det-main-card .det-rsvp-count{min-height:36px;padding:0;align-items:center}
  .det-main-card .det-rsvp-count b{font-size:20px}
}
/* Event Details → Guest count (Estimated / RSVP count) */
.det-guests-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.uv-seg-sm button{padding:3px 10px;font-size:11px}
.det-rsvp-count{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;min-height:38px;padding:4px 0}
.det-rsvp-count b{font-family:'Inter',sans-serif;font-size:24px;font-weight:600;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.det-rsvp-count span{font-size:13px;color:var(--ink)}
.det-rsvp-count small{color:var(--muted);font-size:11.5px}
.det-rsvp-count em{font-style:normal;font-size:11.5px;color:var(--muted);margin-left:auto}

/* ── App colour picker (js/colorpicker.js) — replaces the native colour dialog ── */
.uvcp-back{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;background:rgba(20,16,12,.45);padding:16px}
.uvcp-back.open{display:flex}
html.uvcp-lock,html.uvcp-lock body{overflow:hidden}
.uvcp{width:100%;max-width:340px;max-height:calc(100dvh - 32px);overflow-y:auto;background:var(--cream);color:var(--ink);border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.28);padding:16px 16px 14px;font-family:'Inter',sans-serif}
.uvcp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.uvcp-head span{font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:500}
.uvcp-x{background:none;border:none;font-size:22px;line-height:1;color:var(--muted);cursor:pointer;padding:2px 4px}
.uvcp-sv{position:relative;height:170px;border-radius:10px;cursor:crosshair;touch-action:none;overflow:hidden}
.uvcp-sv-w,.uvcp-sv-b{position:absolute;inset:0;pointer-events:none}
.uvcp-sv-w{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}
.uvcp-sv-b{background:linear-gradient(to top,#000,rgba(0,0,0,0))}
.uvcp-knob{position:absolute;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:2.5px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.3);pointer-events:none}
.uvcp-hue{position:relative;height:14px;margin:14px 9px 0;border-radius:8px;cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}
.uvcp-hue::before{content:'';position:absolute;inset:-10px -9px}
.uvcp-hue-knob{position:absolute;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;border:2.5px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.3);pointer-events:none}
.uvcp-row{display:flex;align-items:center;gap:10px;margin-top:14px}
.uvcp-prev{width:38px;height:38px;border-radius:10px;border:1px solid var(--border);flex-shrink:0}
.uvcp-hex{flex:1;display:flex;align-items:center;gap:4px;border:1px solid var(--border);border-radius:10px;padding:0 10px;background:var(--surface);height:38px}
.uvcp-hex span{color:var(--muted);font-family:monospace;font-size:14px}
.uvcp-hex input{flex:1;min-width:0;border:none;background:none;outline:none;color:var(--ink);font-family:monospace;font-size:14px;letter-spacing:.06em;text-transform:uppercase}
.uvcp-lbl{font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:14px 0 7px}
.uvcp-sw{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.uvcp-sw button{aspect-ratio:1;border-radius:50%;border:1px solid rgba(0,0,0,.12);cursor:pointer;padding:0}
.uvcp-sw button.on{box-shadow:0 0 0 2px var(--cream),0 0 0 4px var(--gold-deep)}
.uvcp-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
@media (max-width:520px){
  .uvcp-back{align-items:flex-end;padding:0}
  .uvcp{max-width:none;border-radius:18px 18px 0 0;padding:16px 18px calc(16px + env(safe-area-inset-bottom))}
  .uvcp-sv{height:190px}
}

/* Updated Terms & Privacy notice (dashboard) */
.uv-terms-banner{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--gold);border-radius:12px;padding:11px 12px 11px 14px;margin-bottom:16px}
.uv-terms-banner .utb-ic{color:var(--gold-deep);flex:none;display:flex}
.uv-terms-banner .utb-txt{flex:1;min-width:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.uv-terms-banner .utb-txt strong{display:block;font-size:13px;font-weight:600;color:var(--ink)}
.uv-terms-banner .utb-txt a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.uv-terms-banner .utb-btns{display:flex;align-items:center;gap:6px;flex:none}
.uv-terms-banner .utb-agree{background:var(--gold);color:#fff;border:none;border-radius:8px;padding:7px 16px;font:600 12.5px var(--font-body,'Inter',sans-serif);cursor:pointer}
.uv-terms-banner .utb-agree:hover{background:var(--gold-deep)}
@media (max-width:560px){.uv-terms-banner{flex-wrap:wrap}.uv-terms-banner .utb-txt{flex-basis:calc(100% - 40px)}.uv-terms-banner .utb-btns{width:100%;justify-content:flex-end}}

/* ── Wedding Tips Library ─────────────────────────────────────────── */
.tip-cat-icon{flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--parchment);color:var(--gold-deep);display:flex;align-items:center;justify-content:center}
.tip-cat-icon-lg{width:48px;height:48px}
.tip-back{display:inline-flex;align-items:center;gap:5px;background:none;border:none;color:var(--gold-deep);font-size:12.5px;font-weight:500;font-family:inherit;cursor:pointer;padding:0;margin-bottom:16px}
.tip-back:hover{text-decoration:underline}
.tip-detail-hd{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.tip-row-list{display:flex;flex-direction:column;gap:0;max-width:640px}
.tip-row{display:flex;gap:14px;padding:16px 0;border-top:.5px solid var(--border)}
.tip-row:first-child{border-top:none}
/* Sub-group header for a category that merges what used to be two or three separate
   categories (see _tipsDetailHtml) — most categories never set a tip's `group`, so this
   never appears for them. */
.tip-group-lbl{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep);margin-top:20px}
.tip-group-lbl:first-child{margin-top:0}
.tip-group-lbl+.tip-row{border-top:none}
.tip-row-num{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--parchment);color:var(--gold-deep);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.tip-row-body{flex:1;min-width:0}
.tip-row-lead{font-size:14.5px;font-weight:600;color:var(--ink);margin-bottom:3px}
.tip-row-text{font-size:13px;color:var(--muted);line-height:1.55}
.tip-row-link{display:inline-flex;align-items:center;gap:5px;margin-top:9px;background:var(--parchment);border:1px solid var(--gold);color:var(--gold-deep);font-size:12px;font-weight:600;font-family:inherit;border-radius:7px;padding:6px 12px;cursor:pointer}
.tip-row-link:hover{background:var(--gold);color:#fff;border-color:var(--gold)}
.tip-next{display:inline-flex;align-items:center;gap:7px;margin-top:24px;background:var(--surface);border:1px solid var(--border);color:var(--ink);font-size:13px;font-weight:500;font-family:inherit;border-radius:9px;padding:11px 16px;cursor:pointer;max-width:640px;width:100%;justify-content:space-between}
.tip-next:hover{border-color:var(--gold)}
.tip-row.tip-row-hit{background:rgba(196,168,130,.16);border-radius:8px;transition:background 1.4s ease}
body.dark .tip-cat-icon,body.dark .tip-row-num{background:rgba(196,168,130,.14)}
body.dark .tip-row-link{background:rgba(196,168,130,.12)}

/* Editorial topic list + search */
.tip-search-wrap{position:relative;max-width:640px;margin-bottom:28px}
.tip-search-wrap input{width:100%;padding:13px 16px 13px 42px;border:1px solid var(--border);border-radius:30px;background:var(--surface);font-family:inherit;font-size:14px;color:var(--ink)}
.tip-search-wrap input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(196,168,130,.18)}
.tip-search-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.tip-search-empty{padding:30px 4px;color:var(--muted);font-size:13.5px}
.tip-search-cat{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--gold-deep);background:var(--parchment);border-radius:20px;padding:2px 9px;margin-bottom:6px}
.tip-search-hit{cursor:pointer;border-radius:8px;transition:background .12s}
.tip-search-hit:hover{background:var(--parchment)}
body.dark .tip-search-cat{background:rgba(196,168,130,.14)}
.tip-ed-list{display:flex;flex-direction:column;gap:0;max-width:960px}
.tip-ed-row{display:flex;align-items:center;gap:40px;padding:34px 0;border-bottom:.5px solid var(--border);cursor:pointer;background:none;border-left:none;border-right:none;border-top:none;text-align:left;font-family:inherit;width:100%}
.tip-ed-row:first-child{padding-top:4px}
.tip-ed-row:last-child{border-bottom:none}
.tip-ed-row:nth-child(even){flex-direction:row-reverse}
.tip-ed-media{flex:0 0 38%;position:relative;aspect-ratio:4/3;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,var(--parchment),var(--cream))}
.tip-ed-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.tip-ed-icon-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--gold-deep);opacity:.45}
.tip-ed-content{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.tip-ed-num{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--gold-deep);margin-bottom:10px}
.tip-ed-title{font-family:'Cormorant Garamond',serif;font-size:27px;font-weight:600;color:var(--ink);line-height:1.18;margin-bottom:10px;transition:color .15s}
.tip-ed-tagline{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:16px;max-width:400px}
.tip-ed-meta{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--gold-deep)}
.tip-ed-row:hover .tip-ed-title{color:var(--gold-deep)}
.tip-ed-row:hover .tip-ed-media img{transform:scale(1.04)}
.tip-ed-row:hover .tip-ed-media{box-shadow:var(--shadow)}
@media (max-width:760px){
  .tip-ed-row,.tip-ed-row:nth-child(even){flex-direction:column;align-items:stretch;gap:16px;padding:24px 0}
  .tip-ed-media{flex:none;width:100%;aspect-ratio:16/10}
  .tip-ed-title{font-size:23px}
}
/* Vendor detail view: hover hint on the photo tile (upload/change). */
.vdet-photo-hover:hover{opacity:1!important}
