/* =============================================================================
   The Event Hub — portal theme
   One set of tokens drives everything (Bootstrap 5 is re-coloured through them).
   Quiet graphite-green chrome, white cards, one eucalyptus accent, Figtree.
   Colour lives in the content (invite previews, reply states), not the chrome.
   Direction contract: .impeccable/surfaces/system-global-views-home-tpl.md
   ============================================================================= */

:root {
    /* Neutral ramp, tinted a touch toward green. */
    --wi-bg: #f3f4f3;
    --wi-surface: #ffffff;
    --wi-surface-2: #f6f7f6;   /* raised rows, hover, wells */
    --wi-surface-3: #eceeed;   /* pressed */
    --wi-ink: #18211e;
    --wi-ink-2: #4e5955;
    --wi-muted: #5f6965;       /* secondary text: >= 4.5:1 on white and surface-2 */
    --wi-subtle: #7c8682;      /* icons and non-text marks: >= 3:1 on white */
    --wi-line: #e4e7e5;        /* hairlines */
    --wi-line-strong: #d3d8d5; /* control borders */
    --wi-line-hover: #b9c1bd;
    --wi-surface-sunk: #f9faf9;

    /* One accent: eucalyptus. */
    --wi-primary: #2f6f62;
    --wi-primary-dark: #265b50;
    --wi-primary-soft: #e6f0ec;
    --wi-primary-line: #b9d4ca;
    --wi-primary-rgb: 47, 111, 98;
    --wi-gradient: var(--wi-primary); /* kept for old rules: a flat fill now, never a hue gradient */

    /* Reply / status colours, toned to sit in the ramp. Older names kept: "sage" = success, "gold" = warning. */
    --wi-sage: #3f8a62;
    --wi-sage-soft: #e6f1ea;
    --wi-sage-ink: #2b6646;
    --wi-gold: #d19a2a;
    --wi-gold-soft: #f8efd9;
    --wi-gold-ink: #7a5a12;
    --wi-info: #3b6e9e;
    --wi-info-soft: #e8eef5;
    --wi-info-ink: #2c5680;
    --wi-danger: #c8463d;
    --wi-danger-soft: #f8e6e3;
    --wi-danger-ink: #9f3830;
    --wi-coral: #c2573e;
    --wi-coral-soft: #f8e7e2;
    --wi-coral-ink: #973f2c;
    --wi-unsent: #b9c0bd;

    --wi-radius: 14px;
    --wi-radius-sm: 8px;
    --wi-shadow: 0 1px 2px rgba(24, 33, 30, .04);
    --wi-shadow-md: 0 4px 14px rgba(24, 33, 30, .08);
    --wi-shadow-lg: 0 18px 44px rgba(24, 33, 30, .16);
    --wi-sidebar-w: 280px;     /* the menu drawer on narrow screens */
    --wi-topbar-h: 60px;
    --wi-font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --wi-serif: var(--wi-font);
    --wi-ease: cubic-bezier(.2, .8, .2, 1);

    /* Bootstrap */
    --bs-body-bg: var(--wi-bg);
    --bs-body-color: var(--wi-ink);
    --bs-body-font-family: var(--wi-font);
    --bs-body-font-size: .875rem;
    --bs-body-line-height: 1.5;
    --bs-primary: var(--wi-primary);
    --bs-primary-rgb: var(--wi-primary-rgb);
    --bs-link-color: var(--wi-primary);
    --bs-link-color-rgb: var(--wi-primary-rgb);
    --bs-link-hover-color: var(--wi-primary-dark);
    --bs-border-color: var(--wi-line);
    --bs-border-radius: var(--wi-radius-sm);
    --bs-secondary-color: var(--wi-muted);
    --bs-success: var(--wi-sage);
    --bs-success-rgb: 63, 138, 98;
    --bs-danger: var(--wi-danger);
    --bs-danger-rgb: 200, 70, 61;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--wi-bg); color: var(--wi-ink); font-family: var(--wi-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; }
h1, h2, h3, .serif { font-family: var(--wi-font); font-weight: 600; letter-spacing: -.015em; color: var(--wi-ink); text-wrap: balance; }
h4, h5, h6 { font-weight: 600; letter-spacing: -.005em; color: var(--wi-ink); }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-muted { color: var(--wi-muted) !important; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .8125rem; }
.fw-600 { font-weight: 600; }
.min-w-0 { min-width: 0; }
.mw-520, .mw-700, .mw-900 { max-width: none; }
:focus-visible { outline: 2px solid var(--wi-primary); outline-offset: 2px; }
code { color: var(--wi-ink-2); background: var(--wi-surface-2); padding: 1px 6px; border-radius: 4px; font-size: .8125em; }
/* WhatsApp template bodies on Platform settings, shown exactly as submitted to Meta. */
.wa-template { margin: 0; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .8125rem; color: var(--wi-ink-2); background: var(--wi-surface-sunk); border: 1px solid var(--wi-line); border-radius: 10px; }
::selection { background: var(--wi-primary-soft); color: var(--wi-ink); }
html { scrollbar-color: var(--wi-line-hover) transparent; }
input, textarea { caret-color: var(--wi-primary); }

/* ---------- Buttons ---------- */
.btn { --bs-btn-border-radius: 8px; --bs-btn-font-weight: 500; --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .875rem; --bs-btn-line-height: 1.43; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: background-color .15s var(--wi-ease), border-color .15s var(--wi-ease), color .15s var(--wi-ease), transform .1s var(--wi-ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn i { font-size: .85em; }
.btn-primary { --bs-btn-bg: var(--wi-primary); --bs-btn-border-color: var(--wi-primary); --bs-btn-hover-bg: var(--wi-primary-dark); --bs-btn-hover-border-color: var(--wi-primary-dark); --bs-btn-active-bg: var(--wi-primary-dark); --bs-btn-active-border-color: var(--wi-primary-dark); --bs-btn-disabled-bg: #8fb3aa; --bs-btn-disabled-border-color: #8fb3aa; --bs-btn-focus-shadow-rgb: var(--wi-primary-rgb); }
.btn-outline-primary { --bs-btn-color: var(--wi-primary); --bs-btn-border-color: var(--wi-primary-line); --bs-btn-hover-bg: var(--wi-primary-soft); --bs-btn-hover-color: var(--wi-primary-dark); --bs-btn-hover-border-color: var(--wi-primary); --bs-btn-active-bg: var(--wi-primary-soft); --bs-btn-active-color: var(--wi-primary-dark); --bs-btn-active-border-color: var(--wi-primary); }
.btn-light, .btn-secondary, .btn-outline-secondary, .btn-outline-light { --bs-btn-bg: var(--wi-surface); --bs-btn-color: var(--wi-ink); --bs-btn-border-color: var(--wi-line-strong); --bs-btn-hover-bg: var(--wi-surface-2); --bs-btn-hover-color: var(--wi-ink); --bs-btn-hover-border-color: var(--wi-line-hover); --bs-btn-active-bg: var(--wi-surface-3); --bs-btn-active-color: var(--wi-ink); --bs-btn-active-border-color: var(--wi-line-hover); --bs-btn-disabled-bg: var(--wi-surface-2); --bs-btn-disabled-color: var(--wi-muted); --bs-btn-disabled-border-color: var(--wi-line); }
.btn-danger { --bs-btn-bg: var(--wi-danger); --bs-btn-border-color: var(--wi-danger); --bs-btn-hover-bg: var(--wi-danger-ink); --bs-btn-hover-border-color: var(--wi-danger-ink); --bs-btn-active-bg: var(--wi-danger-ink); --bs-btn-active-border-color: var(--wi-danger-ink); }
.btn-outline-danger { --bs-btn-color: var(--wi-danger-ink); --bs-btn-border-color: #ecc4bf; --bs-btn-hover-bg: var(--wi-danger-soft); --bs-btn-hover-color: var(--wi-danger-ink); --bs-btn-hover-border-color: var(--wi-danger); --bs-btn-active-bg: var(--wi-danger-soft); --bs-btn-active-color: var(--wi-danger-ink); }
.btn-success { --bs-btn-bg: var(--wi-sage-ink); --bs-btn-border-color: var(--wi-sage-ink); --bs-btn-hover-bg: #22553a; --bs-btn-hover-border-color: #22553a; --bs-btn-active-bg: #22553a; }
.btn-lg { --bs-btn-padding-x: 1.25rem; --bs-btn-padding-y: .625rem; --bs-btn-font-size: .9375rem; --bs-btn-border-radius: 10px; }
.btn-sm { --bs-btn-padding-x: .75rem; --bs-btn-padding-y: .3125rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: 8px; }
.btn-xs { --bs-btn-padding-x: .5rem; --bs-btn-padding-y: .25rem; --bs-btn-font-size: .75rem; --bs-btn-border-radius: 6px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 8px; }
.btn-link { --bs-btn-color: var(--wi-primary); --bs-btn-hover-color: var(--wi-primary-dark); padding-left: 0; padding-right: 0; }

/* ---------- Forms ---------- */
.form-label { font-weight: 500; font-size: .8125rem; color: var(--wi-ink); margin-bottom: .375rem; }
.form-control, .form-select { border: 1px solid var(--wi-line-strong); border-radius: var(--wi-radius-sm); padding: .5rem .75rem; font-size: .875rem; line-height: 1.43; background-color: var(--wi-surface); color: var(--wi-ink); transition: border-color .15s var(--wi-ease), box-shadow .15s var(--wi-ease); }
.form-control:hover, .form-select:hover { border-color: var(--wi-line-hover); }
.form-control:focus, .form-select:focus { border-color: var(--wi-primary); box-shadow: 0 0 0 3px rgba(var(--wi-primary-rgb), .16); }
.form-control::placeholder { color: var(--wi-muted); opacity: 1; }
.form-control:disabled, .form-select:disabled { background: var(--wi-surface-2); color: var(--wi-muted); }
.form-control-lg { padding: .625rem .875rem; font-size: .9375rem; border-radius: 10px; }
.form-control-sm, .form-select-sm { padding: .3125rem .625rem; font-size: .8125rem; }
/* ---------- Select, date and time pickers (core/js/controls.js) ----------
   The native field stays inside .wi-ctl (invisible, same box) as the source of truth. */
.wi-ctl { position: relative; display: block; width: 100%; }
.wi-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.wi-trigger { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.wi-trigger-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wi-trigger-text.is-placeholder { color: var(--wi-muted); }
.wi-trigger .wi-lead { flex-shrink: 0; width: 16px; text-align: center; font-size: .875rem; color: var(--wi-subtle); transition: color .15s var(--wi-ease); }
.wi-caret { flex-shrink: 0; font-size: .625rem; color: var(--wi-subtle); transition: transform .2s var(--wi-ease), color .15s var(--wi-ease); }
.wi-trigger:focus-visible, .wi-trigger.is-open { outline: none; border-color: var(--wi-primary); box-shadow: 0 0 0 3px rgba(var(--wi-primary-rgb), .16); }
.wi-trigger.is-open .wi-caret { transform: rotate(180deg); color: var(--wi-primary); }
.wi-trigger.is-open .wi-lead { color: var(--wi-primary); }
.wi-trigger:disabled { cursor: not-allowed; }
.wi-trigger:disabled .wi-lead, .wi-trigger:disabled .wi-caret { opacity: .6; }
.wi-trigger.is-invalid { background-image: none; padding-right: .75rem; border-color: var(--wi-danger); }
.wi-trigger.is-lg { padding: .625rem .875rem; font-size: .9375rem; border-radius: 10px; }
.wi-trigger.is-sm { padding: .3125rem .625rem; font-size: .8125rem; gap: 8px; }
.dt-length .wi-ctl { display: inline-block; width: auto; vertical-align: middle; }

.wi-pop { position: fixed; z-index: 1070; }
.wi-panel { background: var(--wi-surface); border: 1px solid var(--wi-line); border-radius: 12px; max-width: calc(100vw - 16px); overflow-y: auto; overscroll-behavior: contain; animation: wi-pop-down .14s var(--wi-ease); }
.wi-panel.is-up { animation-name: wi-pop-up; }
@keyframes wi-pop-down { from { opacity: 0; transform: translateY(-4px); } }
@keyframes wi-pop-up { from { opacity: 0; transform: translateY(4px); } }

/* Select list */
.wi-list-panel { display: flex; flex-direction: column; padding: 4px; overflow: hidden; box-shadow: 0 4px 14px rgba(24, 33, 30, .08); }
.wi-list { flex: 1 1 auto; min-height: 0; max-height: 296px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--wi-line-strong) transparent; }
.wi-opt { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 6px 10px; border-radius: 8px; color: var(--wi-ink-2); font-size: .875rem; line-height: 1.4; font-variant-numeric: tabular-nums; cursor: pointer; }
.wi-opt-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wi-opt.is-active { background: var(--wi-surface-2); color: var(--wi-ink); }
.wi-opt[aria-selected="true"] { color: var(--wi-primary-dark); font-weight: 500; }
.wi-opt-check { flex-shrink: 0; font-size: .75rem; color: var(--wi-primary); }
.wi-opt.is-disabled { color: var(--wi-muted); opacity: .55; cursor: default; }
.wi-opt.in-group { padding-left: 20px; }
.wi-group { padding: 10px 10px 4px; font-size: .75rem; font-weight: 500; color: var(--wi-muted); }
.wi-group:first-child { padding-top: 6px; }
.wi-empty { padding: 10px; font-size: .8125rem; color: var(--wi-muted); }
.wi-search { display: flex; align-items: center; gap: 10px; flex-shrink: 0; height: 40px; margin: -4px -4px 4px; padding: 0 14px; border-bottom: 1px solid var(--wi-line); }
.wi-search i { font-size: .75rem; color: var(--wi-subtle); }
.wi-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: .875rem; color: var(--wi-ink); }
.wi-search-input::placeholder { color: var(--wi-muted); opacity: 1; }

/* Date and time panels */
.wi-cal-panel, .wi-time-panel { width: 300px; padding: 12px; box-shadow: var(--wi-shadow-lg); }
.wi-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 8px 6px; }
.wi-cal-title { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; color: var(--wi-ink); font-variant-numeric: tabular-nums; }
.wi-cal-nav { display: flex; gap: 2px; }
.wi-icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--wi-ink-2); font-size: .75rem; cursor: pointer; transition: background-color .15s var(--wi-ease), color .15s var(--wi-ease); }
.wi-icon-btn:hover { background: var(--wi-surface-2); color: var(--wi-ink); }
.wi-icon-btn:active, .wi-day:active, .wi-topt:active { transform: scale(.96); }
.wi-cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wi-cal-row + .wi-cal-row { margin-top: 2px; }
.wi-dow { padding: 2px 0 6px; text-align: center; font-size: .75rem; font-weight: 500; color: var(--wi-muted); }
.wi-cell { display: block; min-width: 0; }
.wi-day, .wi-topt { width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--wi-ink-2); font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s var(--wi-ease), color .15s var(--wi-ease), border-color .15s var(--wi-ease), transform .1s var(--wi-ease); }
.wi-day { height: 36px; }
.wi-day:hover, .wi-topt:hover { background: var(--wi-surface-2); color: var(--wi-ink); }
.wi-day.is-today { border-color: var(--wi-primary-line); color: var(--wi-primary-dark); font-weight: 600; }
.wi-day.is-selected, .wi-day.is-selected:hover, .wi-topt.is-selected, .wi-topt.is-selected:hover { background: var(--wi-primary); border-color: var(--wi-primary); color: #fff; }
.wi-day:disabled { background: transparent; color: var(--wi-muted); opacity: .45; cursor: default; transform: none; }
.wi-day:focus-visible, .wi-topt:focus-visible, .wi-icon-btn:focus-visible { outline: 2px solid var(--wi-primary); outline-offset: 2px; position: relative; z-index: 1; }
.wi-grid-label { margin: 2px 2px 8px; font-size: .75rem; font-weight: 500; color: var(--wi-muted); }
.wi-tgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.wi-hours { margin-bottom: 14px; }
.wi-topt { padding: 7px 0; background: var(--wi-surface-2); }
.wi-topt:hover { background: var(--wi-surface-3); }
.wi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--wi-line); }
@media (pointer: coarse) {
    .wi-opt { min-height: 44px; }
    .wi-day { height: 40px; }
    .wi-topt { padding: 10px 0; }
    .wi-icon-btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .wi-panel { animation: none; } }
.form-hint, .form-text { font-size: .75rem; color: var(--wi-muted); margin-top: .375rem; }
.form-check-input { border-color: var(--wi-line-hover); }
.form-check-input:checked { background-color: var(--wi-primary); border-color: var(--wi-primary); }
.form-check-input:focus { border-color: var(--wi-primary); box-shadow: 0 0 0 3px rgba(var(--wi-primary-rgb), .16); }
.form-switch .form-check-input { width: 2.25em; height: 1.25em; }
.input-group-text { background: var(--wi-surface-2); border-color: var(--wi-line-strong); color: var(--wi-muted); font-size: .8125rem; }
.field-error { color: var(--wi-danger-ink); font-size: .75rem; margin-top: .375rem; }
.field-ok { color: var(--wi-sage-ink); font-size: .75rem; margin-top: .375rem; }

/* ---------- Brand mark ---------- */
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--wi-primary); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; flex-shrink: 0; }

/* ---------- Shell: one header ---------- */
.appbar { position: sticky; top: 0; z-index: 1020; height: var(--wi-topbar-h); background: var(--wi-surface); border-bottom: 1px solid var(--wi-line); display: flex; align-items: center; gap: 20px; padding: 0 28px; }
.appbar-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; color: var(--wi-ink); white-space: nowrap; flex-shrink: 0; }
.appbar-logo:hover { text-decoration: none; color: var(--wi-ink); }
.topnav { min-width: 0; }
.topnav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.topnav-link { appearance: none; border: 0; background: transparent; font: inherit; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; color: var(--wi-ink-2); font-weight: 500; font-size: .875rem; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--wi-ease), color .15s var(--wi-ease); }
.topnav-link i { width: 16px; text-align: center; font-size: .8rem; color: var(--wi-subtle); transition: color .15s var(--wi-ease); }
.topnav-link:hover { background: var(--wi-surface-2); color: var(--wi-ink); text-decoration: none; }
.topnav-link.active, .topnav-link.active:hover { background: var(--wi-primary-soft); color: var(--wi-primary-dark); }
.topnav-link.active i { color: var(--wi-primary); }
.topnav-link.locked { color: var(--wi-muted); }
.topnav-link .lock { font-size: .65rem; color: var(--wi-subtle); width: auto; }
.dropdown-item.locked { color: var(--wi-muted); }
.dropdown-item .lock { font-size: .65rem; color: var(--wi-subtle); width: auto; }
.topnav-link.dropdown-toggle::after { border: 0; content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .55rem; color: var(--wi-subtle); margin-left: 2px; vertical-align: 0; }
.appbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mobile-toggle { display: none; border: 0; background: transparent; font-size: 1.05rem; color: var(--wi-ink); width: 40px; height: 40px; border-radius: 8px; margin-left: -8px; }
.mobile-toggle:hover { background: var(--wi-surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--wi-surface-2); color: var(--wi-ink-2); display: grid; place-items: center; font-weight: 600; font-size: .75rem; flex-shrink: 0; border: 1px solid var(--wi-line-strong); transition: border-color .15s var(--wi-ease), background-color .15s var(--wi-ease); }
.avatar:hover, .avatar[aria-expanded="true"] { border-color: var(--wi-line-hover); background: var(--wi-surface-3); }
/* Current event + switcher, beside the account avatar. */
.event-pill { appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 260px; padding: 0 10px 0 12px; border: 1px solid var(--wi-line-strong); border-radius: 8px; background: var(--wi-surface); color: var(--wi-ink); font: 500 .875rem/1 var(--wi-font); cursor: pointer; transition: border-color .15s var(--wi-ease), background-color .15s var(--wi-ease); }
.event-pill:hover, .event-pill[aria-expanded="true"] { border-color: var(--wi-line-hover); background: var(--wi-surface-2); }
.event-pill:focus-visible { outline: 2px solid var(--wi-primary); outline-offset: 2px; }
.event-pill > i:first-child { font-size: .8rem; color: var(--wi-subtle); flex-shrink: 0; }
.event-pill-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-pill-caret { font-size: .6rem; color: var(--wi-subtle); flex-shrink: 0; }
@media (max-width: 575.98px) { .event-pill { max-width: 150px; padding: 0 8px 0 10px; } }
.env-ribbon { color: var(--wi-gold-ink); background: var(--wi-gold-soft); font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: 6px; text-transform: capitalize; }
.acct-head { padding: 8px 12px 10px; }
.acct-head .acct-name { font-weight: 600; color: var(--wi-ink); }
.acct-plan { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--wi-surface-2); font-size: .75rem; color: var(--wi-muted); }
.acct-plan strong { color: var(--wi-ink); font-weight: 500; }
.impersonate-bar { background: var(--wi-ink); color: #fff; font-size: .8125rem; padding: 8px 28px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.impersonate-bar a, .impersonate-exit { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: #bfe0d6; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Menu drawer (narrow screens only): the same modules as the top menu. */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--wi-sidebar-w); max-width: 86vw; background: var(--wi-surface); display: flex; flex-direction: column; z-index: 1045; transform: translateX(-100%); visibility: hidden; transition: transform .25s var(--wi-ease), visibility .25s; box-shadow: var(--wi-shadow-lg); }
.sidebar.active { transform: translateX(0); visibility: visible; }
.sidebar-header { min-height: var(--wi-topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; flex-shrink: 0; border-bottom: 1px solid var(--wi-line); }
.sidebar .logo { font-size: 1rem; font-weight: 600; color: var(--wi-ink); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sidebar .logo:hover { text-decoration: none; }
.sidebar .toggle-btn { appearance: none; border: 0; background: transparent; color: var(--wi-muted); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: .85rem; cursor: pointer; }
.sidebar .toggle-btn:hover { background: var(--wi-surface-2); color: var(--wi-ink); }
.menu { list-style: none; margin: 0; padding: 8px 12px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.menu-label { font-size: .75rem; font-weight: 500; color: var(--wi-muted); padding: 16px 12px 8px; }
.menu-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--wi-ink-2); font-weight: 500; font-size: .875rem; cursor: pointer; margin-bottom: 2px; transition: background-color .15s var(--wi-ease), color .15s var(--wi-ease); }
.menu-link:hover { background: var(--wi-surface-2); color: var(--wi-ink); text-decoration: none; }
.menu-link.active { background: var(--wi-primary-soft); color: var(--wi-primary-dark); }
.menu-icon { width: 18px; text-align: center; font-size: .85rem; color: var(--wi-subtle); flex-shrink: 0; }
.menu-link.active .menu-icon { color: var(--wi-primary); }
.menu-link.locked { color: var(--wi-muted); }
.menu-link .lock { margin-left: auto; font-size: .65rem; color: var(--wi-subtle); }
.submenu { list-style: none; padding: 0 0 0 16px; margin: 0; display: none; }
.menu-item.active > .submenu, .submenu.active { display: block; }
.submenu-arrow { margin-left: auto; font-size: .6rem; transition: transform .2s var(--wi-ease); color: var(--wi-subtle); }
.menu-item.active > .submenu-toggle .submenu-arrow { transform: rotate(180deg); }
.menu-empty { color: var(--wi-muted); font-size: .8125rem; padding: 10px 12px; display: block; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--wi-line); }
.sidebar-plan { display: flex; align-items: center; gap: 10px; border: 1px solid var(--wi-line); border-radius: 10px; padding: 10px 12px; font-size: .75rem; color: var(--wi-muted); }
.sidebar-plan:hover { text-decoration: none; background: var(--wi-surface-2); }
.sidebar-plan strong { display: block; color: var(--wi-ink); font-size: .8125rem; font-weight: 500; }
.sidebar-plan .plan-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--wi-primary-soft); color: var(--wi-primary); font-size: .75rem; }
.sidebar-plan .plan-text { flex: 1; min-width: 0; line-height: 1.4; }
.sidebar-plan .plan-arrow { font-size: .6rem; color: var(--wi-subtle); }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(24, 33, 30, .4); z-index: 1040; }
.sidebar.active ~ .sidebar-backdrop { display: block; }

.main { min-height: calc(100vh - var(--wi-topbar-h)); display: flex; flex-direction: column; }
.page { padding: 24px 28px 48px; flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; }
.page.page-wide { max-width: none; }

/* ---------- Content ---------- */
.content-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.content-header h1, .content-header h4 { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.content-header .sub, .breadcrumb { color: var(--wi-muted); font-size: .875rem; margin: 4px 0 0; }
.breadcrumb a, .content-header .sub a { color: var(--wi-muted); }
.content-header .sub a:hover { color: var(--wi-primary); }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section, .card { background: var(--wi-surface); border: 1px solid var(--wi-line); border-radius: var(--wi-radius); box-shadow: none; }
.section { padding: 20px; margin-bottom: 16px; }
.section-title { font-family: var(--wi-font); font-size: 1rem; font-weight: 600; letter-spacing: -.005em; margin: 0 0 4px; }
.section-sub { color: var(--wi-muted); font-size: .8125rem; margin: 0 0 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section.flush { padding: 0; overflow: hidden; }
.section.flush .section-head { padding: 16px 20px 0; }
hr, .divider { border: 0; border-top: 1px solid var(--wi-line); opacity: 1; margin: 16px 0; }

.stat-card { display: flex; align-items: center; gap: 12px; padding: 16px 20px; margin-bottom: 0; height: 100%; }
.stat-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: .85rem; background: var(--wi-surface-2); color: var(--wi-subtle); flex-shrink: 0; }
.stat-icon.sage, .stat-icon.gold, .stat-icon.info, .stat-icon.danger, .stat-icon.coral { background: var(--wi-surface-2); color: var(--wi-subtle); }
.stat-value { font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.stat-label { color: var(--wi-muted); font-size: .8125rem; font-weight: 400; }
.event-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--wi-surface-2); color: var(--wi-ink-2); flex-shrink: 0; font-size: .85rem; }

/* ---------- Event type picker ---------- */
.type-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip { position: relative; }
.type-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.type-chip label { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--wi-line-strong); border-radius: 8px; font-size: .8125rem; font-weight: 500; color: var(--wi-ink-2); cursor: pointer; background: var(--wi-surface); transition: border-color .15s, background-color .15s, color .15s; }
.type-chip label i { color: var(--wi-subtle); font-size: .8rem; transition: color .15s; }
.type-chip label:hover { border-color: var(--wi-line-hover); }
.type-chip input:checked + label { background: var(--wi-primary-soft); border-color: var(--wi-primary); color: var(--wi-primary-dark); }
.type-chip input:checked + label i { color: var(--wi-primary); }
.type-chip input:focus-visible + label { outline: 2px solid var(--wi-primary); outline-offset: 2px; }

/* What an event type turns on (Add an event) */
.type-defaults { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: var(--wi-surface-2); font-size: .8125rem; color: var(--wi-ink-2); }
.type-defaults:empty { display: none; }
.type-defaults p { margin: 0; }
.type-defaults .td-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.type-defaults .chip { background: var(--wi-surface); border: 1px solid var(--wi-line); }
.type-defaults .chip i { font-size: .65rem; color: var(--wi-primary); }
.type-defaults .td-off { color: var(--wi-muted); }

/* Automatic RSVP reminders (Event details) */
.remind-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.remind-chip { position: relative; }
.remind-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.remind-chip label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--wi-line-strong); border-radius: 8px; font-size: .8125rem; font-weight: 500; color: var(--wi-ink-2); background: var(--wi-surface); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.remind-chip label:hover { border-color: var(--wi-line-hover); }
.remind-chip input:checked + label { background: var(--wi-primary-soft); border-color: var(--wi-primary); color: var(--wi-primary-dark); }
.remind-chip input:focus-visible + label { outline: 2px solid var(--wi-primary); outline-offset: 2px; }

/* Tools for this event (Event details) */
.tools-group { font-size: .75rem; font-weight: 500; color: var(--wi-muted); margin: 16px 0 0; }
.tools-group:first-of-type { margin-top: 0; }
.tool-rows { list-style: none; margin: 0; padding: 0; }
.tool-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--wi-line); }
.tool-rows li:last-child { border-bottom: 0; }
.tool-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--wi-surface-2); color: var(--wi-ink-2); display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; }
.tool-rows li.is-off .tool-ico { color: var(--wi-subtle); }
.tool-body { flex: 1; min-width: 0; }
.tool-name { font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tool-rows li.is-off .tool-name { color: var(--wi-ink-2); }
.tool-text { font-size: .8125rem; color: var(--wi-muted); }
.tool-rows .form-switch { margin: 0; padding: 0; min-height: 0; }
.tool-rows .form-switch .form-check-input { margin: 0; float: none; cursor: pointer; }
.tool-lock { font-size: .75rem; font-weight: 400; color: var(--wi-muted); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tool-lock i { font-size: .65rem; color: var(--wi-subtle); }

/* ---------- Tables (plain tables and DataTables share one look) ---------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--wi-ink); --bs-table-border-color: var(--wi-line); --bs-table-hover-bg: var(--wi-surface-2); --bs-table-hover-color: var(--wi-ink); --bs-table-striped-bg: var(--wi-surface-sunk); margin: 0; font-size: .875rem; }
.table > thead th { font-size: .8125rem; font-weight: 500; color: var(--wi-muted); border-bottom-width: 1px; padding: 10px 16px; white-space: nowrap; background: var(--wi-surface-2); }
.table > tbody td { padding: 12px 16px; vertical-align: middle; }
/* Numbers line up in columns and don't jitter as they change. */
.table, .stat-value, .price, .tbl-count, .chip, .badge, .seg-badge, .num { font-variant-numeric: tabular-nums; }
.table > tbody tr:last-child td { border-bottom: 0; }
.toolbar { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.cell-main { font-weight: 500; color: var(--wi-ink); }
.cell-sub { font-size: .75rem; color: var(--wi-muted); }

/* ---------- Chips / badges ---------- */
.chip, .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 3px 8px; font-size: .75rem; font-weight: 500; line-height: 1.35; background: var(--wi-surface-2); color: var(--wi-ink-2); white-space: nowrap; }
.chip i { font-size: .6rem; }
.chip-success, .badge.bg-success, .text-bg-success { background: var(--wi-sage-soft) !important; color: var(--wi-sage-ink) !important; }
.chip-danger, .badge.bg-danger, .text-bg-danger { background: var(--wi-danger-soft) !important; color: var(--wi-danger-ink) !important; }
.chip-warning, .badge.bg-warning { background: var(--wi-gold-soft) !important; color: var(--wi-gold-ink) !important; }
.chip-info, .badge.bg-info { background: var(--wi-info-soft) !important; color: var(--wi-info-ink) !important; }
.chip-primary, .badge.bg-primary { background: var(--wi-primary-soft) !important; color: var(--wi-primary-dark) !important; }
.badge.bg-secondary { background: var(--wi-surface-2) !important; color: var(--wi-ink-2) !important; }
.badge.text-bg-info { background: var(--wi-info-soft) !important; color: var(--wi-info-ink) !important; }
.badge.text-bg-warning { background: var(--wi-gold-soft) !important; color: var(--wi-gold-ink) !important; }
.badge.text-bg-primary { background: var(--wi-primary-soft) !important; color: var(--wi-primary-dark) !important; }
.badge.text-bg-secondary, .badge.text-bg-light, .badge.text-bg-dark { background: var(--wi-surface-2) !important; color: var(--wi-ink-2) !important; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .empty-icon { color: var(--wi-subtle); font-size: 1.5rem; line-height: 1; margin: 0 auto 12px; }
.empty-state h3 { font-size: 1.125rem; margin-bottom: 6px; }
.empty-state p { color: var(--wi-muted); max-width: 440px; margin: 0 auto 20px; }

/* ---------- Alerts / notes ---------- */
.note { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 12px 16px; font-size: .8125rem; background: var(--wi-info-soft); color: var(--wi-info-ink); margin-bottom: 16px; border: 1px solid rgba(59, 110, 158, .14); }
.note i { margin-top: 3px; }
.note.note-warning { background: var(--wi-gold-soft); color: var(--wi-gold-ink); border-color: rgba(209, 154, 42, .2); }
.note.note-success { background: var(--wi-sage-soft); color: var(--wi-sage-ink); border-color: rgba(63, 138, 98, .18); }
.note.note-danger { background: var(--wi-danger-soft); color: var(--wi-danger-ink); border-color: rgba(200, 70, 61, .18); }
.note a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.alert { border-radius: 10px; border: 0; font-size: .875rem; }

/* ---------- Checklist (dashboard) ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wi-line); }
.checklist li:last-child { border-bottom: 0; }
.check-dot { width: 20px; height: 20px; padding: 3px; border-radius: 6px; border: 1.5px solid var(--wi-line-hover); display: grid; place-items: center; font-size: .6rem; color: transparent; flex-shrink: 0; }
.checklist li.done .check-dot { background: var(--wi-primary); border-color: var(--wi-primary); color: #fff; }
.checklist li.done .check-title { color: var(--wi-muted); }
.checklist li.locked .check-title { color: var(--wi-ink-2); }
.checklist li.locked .check-text { color: var(--wi-muted); }
.check-body { flex: 1; min-width: 0; }
.check-title { font-weight: 500; }
.check-text { font-size: .8125rem; color: var(--wi-muted); }
.progress { height: 6px; border-radius: 3px; background: var(--wi-surface-3); }
.progress-bar { background: var(--wi-primary); border-radius: 3px; }

/* ---------- Auth pages ----------
   Sign-in, sign-up and password share one left panel: a deep eucalyptus field
   with two columns of celebration photos drifting in opposite directions, each
   tagged with a generic invite address. This is the one place the portal is
   allowed to be loud (approved 2026-11-16); the form column stays quiet.
   Desktop: the page is exactly one screen tall and only the form column scrolls,
   so a long form (sign-up) never stretches the panel. */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-side { --auth-field: #10221d; position: relative; overflow: hidden; isolation: isolate; background: var(--auth-field); color: #fff; }
.auth-wall { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.auth-col { position: relative; overflow: hidden; }
.auth-track { display: grid; gap: 12px; animation: auth-up 60s linear infinite; will-change: transform; }
.auth-col + .auth-col .auth-track { animation-name: auth-down; animation-duration: 68s; }
@keyframes auth-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } }
@keyframes auth-down { from { transform: translateY(calc(-50% - 6px)); } to { transform: translateY(0); } }
.auth-side:hover .auth-track, .auth-side.is-paused .auth-track { animation-play-state: paused; }
.auth-shot { position: relative; margin: 0; height: 300px; border-radius: 14px; overflow: hidden; background: #1b3029; }
.auth-col + .auth-col .auth-shot:nth-child(odd) { height: 240px; }
.auth-shot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) contrast(.96); }
/* One shared grade: every photo is pulled toward the eucalyptus field so the wall reads as one set. */
.auth-shot::after { content: ""; position: absolute; inset: 0; background: #2f6f62; mix-blend-mode: soft-light; opacity: .55; pointer-events: none; }
.auth-addr { position: absolute; z-index: 1; left: 10px; bottom: 10px; max-width: calc(100% - 20px); background: #fff; color: var(--wi-ink); border-radius: 6px; padding: 4px 8px; font-size: .75rem; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-addr em { font-style: normal; font-weight: 400; color: var(--wi-muted); }
/* Fades: dark at the top so the logo reads, solid at the bottom for the copy. */
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(var(--auth-field) 0, rgba(16, 34, 29, .6) 96px, rgba(16, 34, 29, 0) 200px); }
/* The copy sits on its own solid field that fades up into the photos, so it reads at any height. */
.auth-hero::before { content: ""; position: absolute; z-index: -1; inset: -176px -48px -32px; pointer-events: none; background: linear-gradient(rgba(16, 34, 29, 0), var(--auth-field) 152px); }
.auth-side .auth-brand { position: absolute; top: 40px; left: 48px; color: #fff; }
.auth-brand { font-size: 1rem; font-weight: 600; color: inherit; display: inline-flex; align-items: center; gap: 10px; }
.auth-brand:hover { color: inherit; text-decoration: none; }
.auth-side .brand-mark { background: #fff; color: var(--wi-primary); }
.auth-main .auth-brand { color: var(--wi-ink); }
.auth-hero { position: absolute; left: 48px; right: 48px; bottom: 32px; }
.auth-side h2 { font-size: 2.5rem; line-height: 1.08; letter-spacing: -.025em; margin: 0; color: #fff; font-weight: 600; text-wrap: balance; }
.auth-side p { color: rgba(255, 255, 255, .78); max-width: 440px; font-size: .9375rem; line-height: 1.55; margin: 12px 0 0; }
.auth-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 28px; font-size: .75rem; color: rgba(255, 255, 255, .6); }
.auth-credits { position: relative; }
.auth-credits summary, .auth-pause { list-style: none; cursor: pointer; color: rgba(255, 255, 255, .72); border-radius: 6px; padding: 4px 6px; margin: -4px -6px; transition: color .15s, background-color .15s; }
.auth-credits > summary::before { display: none; }
.auth-credits summary:hover, .auth-pause:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.auth-credits-pop { position: absolute; bottom: calc(100% + 10px); left: -12px; width: 290px; padding: 12px 14px; background: #fff; color: var(--wi-ink-2); border-radius: 12px; box-shadow: var(--wi-shadow-lg); line-height: 1.6; }
.auth-side .auth-credits-pop p { margin: 0 0 6px; font-size: .75rem; color: var(--wi-muted); }
.auth-credits-pop ul { list-style: none; margin: 0; padding: 0; }
.auth-credits-pop a { color: var(--wi-primary); }
.auth-pause { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; }
.auth-pause i { font-size: .625rem; }
.auth-side :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .auth-track { animation: none; } .auth-pause { display: none; } }
@media (max-height: 760px) { .auth-shot { height: 220px; } .auth-col + .auth-col .auth-shot:nth-child(odd) { height: 180px; } .auth-hero::before { top: -112px; background: linear-gradient(rgba(16, 34, 29, 0), var(--auth-field) 96px); } }
@media (max-height: 640px) { .auth-side h2 { font-size: 2rem; } .auth-side p { display: none; } }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--wi-surface); }
.auth-card { width: 100%; max-width: 400px; }
@media (min-width: 992px) {
    .auth-wrap { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
    .auth-main { align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; }
    .auth-main .auth-card { margin: auto 0; }
}
.auth-card h1 { font-size: 1.75rem; letter-spacing: -.02em; margin-bottom: 4px; }
.auth-card .lead { color: var(--wi-muted); font-size: .9375rem; margin-bottom: 24px; }
.auth-foot { margin-top: 20px; font-size: .875rem; color: var(--wi-muted); text-align: center; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label { display: block; border: 1px solid var(--wi-line-strong); border-radius: 10px; padding: 12px 14px; cursor: pointer; height: 100%; transition: border-color .15s, background-color .15s; }
.choice label:hover { border-color: var(--wi-line-hover); }
.choice label strong { display: block; font-size: .875rem; font-weight: 500; }
.choice label span { font-size: .75rem; color: var(--wi-muted); }
.choice label i { color: var(--wi-subtle); margin-bottom: 8px; display: block; }
.choice input:checked + label { border-color: var(--wi-primary); background: var(--wi-primary-soft); }
.choice input:checked + label i { color: var(--wi-primary); }
.choice input:focus-visible + label { outline: 2px solid var(--wi-primary); outline-offset: 2px; }
.url-preview { background: var(--wi-surface-2); border-radius: var(--wi-radius-sm); padding: 8px 12px; font-size: .8125rem; color: var(--wi-ink-2); word-break: break-all; margin-top: 8px; }
.url-preview strong { color: var(--wi-primary-dark); font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.pricing-grid[data-count="1"] { max-width: 400px; margin-inline: auto; }
.pricing-grid[data-count="2"] { max-width: 820px; margin-inline: auto; }
.pricing-group + .pricing-group { margin-top: 48px; }
.pricing-group-head { text-align: center; margin-bottom: 20px; }
.pricing-group-head h2 { font-size: 1.375rem; margin: 0 0 4px; }
.pricing-group-head p { color: var(--wi-muted); margin: 0; }
.price-card { background: var(--wi-surface); border: 1px solid var(--wi-line); border-radius: var(--wi-radius); padding: 24px; display: flex; flex-direction: column; position: relative; transition: border-color .2s var(--wi-ease); }
.price-card:hover { border-color: var(--wi-line-strong); }
.price-card.featured { border: 1.5px solid var(--wi-primary); }
.price-card .ribbon { position: absolute; top: -11px; left: 20px; background: var(--wi-primary); color: #fff; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 6px; }
.price-card h3 { font-size: 1.125rem; margin: 0 0 4px; }
.price-card .tagline { color: var(--wi-muted); font-size: .8125rem; min-height: 2.6em; }
.price { font-size: 2rem; font-weight: 600; letter-spacing: -.025em; margin: 12px 0 2px; line-height: 1.1; }
.price small { font-size: .8125rem; font-weight: 400; letter-spacing: 0; color: var(--wi-muted); }
.change-note { display: flex; gap: 8px; align-items: flex-start; font-size: .75rem; line-height: 1.45; color: var(--wi-primary-dark); background: var(--wi-primary-soft); border-radius: 8px; padding: 8px 10px; margin: auto 0 10px; }
.change-note + .change-note { margin-top: 0; }
.change-note i { margin-top: 3px; }
.change-note-info { color: var(--wi-ink-2); background: var(--wi-surface-2); }
.change-note-warn { color: var(--wi-gold-ink); background: var(--wi-gold-soft); }
.price-note { font-size: .75rem; color: var(--wi-muted); margin-bottom: 16px; }
.price-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.price-features li { display: flex; gap: 10px; padding: 5px 0; font-size: .875rem; color: var(--wi-ink-2); }
.price-features i { color: var(--wi-primary); margin-top: 4px; font-size: .75rem; }
.price-action { display: flex; flex-direction: column; }
.price-save { color: var(--wi-sage-ink); font-weight: 500; }
.seg-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--wi-sage-soft); color: var(--wi-sage-ink); font-size: .75rem; font-weight: 500; vertical-align: 1px; }
.seg { display: inline-flex; background: var(--wi-surface-2); border: 1px solid var(--wi-line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button, .seg a { border: 0; background: transparent; border-radius: 7px; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .8125rem; color: var(--wi-muted); cursor: pointer; white-space: nowrap; }
.seg a:hover, .seg button:hover { text-decoration: none; color: var(--wi-ink); }
.seg .active { background: var(--wi-surface); color: var(--wi-ink); box-shadow: 0 1px 2px rgba(24, 33, 30, .1); }

/* ---------- Modal / offcanvas / toast / dropdown ---------- */
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--wi-shadow-lg); }
.modal-header { border-bottom: 0; padding: 20px 24px 4px; }
.modal-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.modal-body { padding: 12px 24px; }
.modal-footer { border-top: 0; padding: 8px 24px 20px; gap: 8px; }
.modal-footer > * { margin: 0; }
/* Scrollable modals whose header/body/footer sit inside a <form>: let the
   form fill the dialog so its .modal-body scrolls (Bootstrap only handles a
   .modal-body that is a direct child of .modal-content). */
.modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: 100%; overflow: hidden; }
.modal-dialog-scrollable .modal-content > form > .modal-header,
.modal-dialog-scrollable .modal-content > form > .modal-footer { flex-shrink: 0; }
.modal-dialog-scrollable .modal-content > form > .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-backdrop.show { opacity: .4; background: #18211e; }
.offcanvas { border-left: 1px solid var(--wi-line) !important; box-shadow: var(--wi-shadow-lg); }
.dropdown-menu { border: 1px solid var(--wi-line); border-radius: 12px; box-shadow: var(--wi-shadow-md); padding: 4px; font-size: .875rem; min-width: 220px; }
.dropdown-item { border-radius: 8px; padding: 8px 12px; color: var(--wi-ink-2); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--wi-surface-2); color: var(--wi-ink); text-decoration: none; }
.dropdown-item.active, .dropdown-item:active { background: var(--wi-primary-soft); color: var(--wi-primary-dark); }
.dropdown-item i { width: 16px; text-align: center; color: var(--wi-subtle); font-size: .8rem; }
.dropdown-item.active i { color: var(--wi-primary); }
.dropdown-header { font-size: .75rem; color: var(--wi-muted); padding: 8px 12px 4px; font-weight: 500; }
.dropdown-divider { border-color: var(--wi-line); margin: 4px 0; }
.toast { border: 0; border-radius: 12px; box-shadow: var(--wi-shadow-lg); background: var(--wi-ink); color: #fff; min-width: 260px; }
.toast .toast-body { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; font-size: .875rem; }
.toast .toast-icon { margin-top: 3px; }
.toast.is-success .toast-icon { color: #8fd1ae; }
.toast.is-error .toast-icon { color: #f0a199; }
.toast strong { display: block; font-size: .875rem; font-weight: 600; }
.toast .btn-close { filter: invert(1); opacity: .6; margin-left: auto; }
#confirm_modal .modal-body { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
#confirm_modal .modal-body > :not(.confirm-icon) { grid-column: 2; }
.confirm-icon { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--wi-danger-soft); color: var(--wi-danger-ink); display: grid; place-items: center; font-size: .875rem; margin: 0; }
.confirm-icon.is-calm { background: var(--wi-primary-soft); color: var(--wi-primary-dark); }
.nav-tabs { border-bottom: 1px solid var(--wi-line); gap: 4px; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--wi-muted); font-weight: 500; font-size: .875rem; padding: 10px 12px; border-radius: 0; margin-bottom: -1px; }
.nav-tabs .nav-link:hover { color: var(--wi-ink); text-decoration: none; }
.nav-tabs .nav-link.active { color: var(--wi-ink); border-bottom-color: var(--wi-primary); background: transparent; }

/* ---------- Loader ---------- */
.wi-loader { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 3000; pointer-events: none; opacity: 0; transition: opacity .2s; overflow: hidden; }
.wi-loader.active { opacity: 1; }
.wi-loader::before { content: ''; position: absolute; inset: 0; width: 40%; background: var(--wi-primary); border-radius: 2px; animation: wi-load 1.1s ease-in-out infinite; }
@keyframes wi-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.skeleton { background: linear-gradient(90deg, var(--wi-surface-3) 25%, var(--wi-surface-2) 37%, var(--wi-surface-3) 63%); background-size: 400% 100%; animation: wi-skel 1.3s ease infinite; border-radius: 6px; min-height: 14px; }
@keyframes wi-skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wi-spin .7s linear infinite; }
@keyframes wi-spin { to { transform: rotate(360deg); } }

/* ---------- Misc ---------- */
.perm-group { border: 1px solid var(--wi-line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.perm-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; padding-left: 26px; }
.copy-field { display: flex; align-items: center; gap: 8px; background: var(--wi-surface-2); border: 1px solid var(--wi-line); border-radius: 10px; padding: 4px 4px 4px 12px; font-size: .8125rem; min-width: 0; }
.copy-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.activity-feed { list-style: none; padding: 0; margin: 0; }
.activity-feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wi-line); font-size: .875rem; }
.activity-feed li:last-child { border-bottom: 0; }
/* DataTables: same toolbar and table look as the guest list. */
.dt-container .dt-search input, .dt-container .dt-length select { border: 1px solid var(--wi-line-strong); border-radius: 8px; padding: .4375rem .75rem; font-size: .8125rem; background: var(--wi-surface); }
.dt-container .dt-search input:focus, .dt-container .dt-length select:focus { outline: none; border-color: var(--wi-primary); box-shadow: 0 0 0 3px rgba(var(--wi-primary-rgb), .16); }
.dt-container .dt-search label, .dt-container .dt-length label { color: var(--wi-muted); font-size: .8125rem; }
.dt-container .dt-layout-row { padding: 12px 16px; margin: 0 !important; }
.dt-container .dt-layout-row.dt-layout-table { padding: 0; border-top: 1px solid var(--wi-line); border-bottom: 1px solid var(--wi-line); }
.dt-container .dt-info { color: var(--wi-muted); font-size: .8125rem; }
.dt-container table.dataTable > thead > tr > th { border-bottom: 1px solid var(--wi-line); }
.dt-container table.dataTable th.dt-orderable-asc span.dt-column-order, .dt-container table.dataTable th.dt-orderable-desc span.dt-column-order { opacity: .6; }
.dt-container .pagination { gap: 4px; }
/* Numeric columns: sort icon on the same side as every other column. */
.dt-container table.dataTable thead th.dt-type-numeric div.dt-column-header, .dt-container table.dataTable thead th.dt-type-date div.dt-column-header { flex-direction: row; }
.dt-container table.dataTable thead th.dt-type-numeric, .dt-container table.dataTable thead th.dt-type-date { text-align: left; }
.dt-container table.dataTable tbody td.dt-type-numeric, .dt-container table.dataTable tbody td.dt-type-date { text-align: left; }
.page-link { color: var(--wi-ink-2); border: 1px solid var(--wi-line); border-radius: 8px !important; min-width: 32px; height: 32px; padding: 0 10px; display: grid; place-items: center; font-size: .8125rem; }
.page-link:hover { background: var(--wi-surface-2); color: var(--wi-ink); border-color: var(--wi-line-strong); }
.active > .page-link, .page-link.active { background: var(--wi-primary); border-color: var(--wi-primary); color: #fff; }
.disabled > .page-link { color: var(--wi-subtle); background: transparent; }
/* DataTables pager: Font Awesome chevrons instead of the unicode arrows. */
.dt-paging .page-link.first, .dt-paging .page-link.previous, .dt-paging .page-link.next, .dt-paging .page-link.last { font-size: 0; }
.dt-paging .page-link.first::before, .dt-paging .page-link.previous::before, .dt-paging .page-link.next::before, .dt-paging .page-link.last::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .625rem; }
.dt-paging .page-link.first::before { content: "\f100"; }
.dt-paging .page-link.previous::before { content: "\f104"; }
.dt-paging .page-link.next::before { content: "\f105"; }
.dt-paging .page-link.last::before { content: "\f101"; }
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }

/* ---------- Responsive shell ---------- */
/* Icons beside the menu words only where there is room for them. */
@media (max-width: 1499.98px) { .topnav-link > i:first-child { display: none; } .topnav-link { padding: 0 10px; } }
/* Between the drawer and full width the menu is tight (nine items since the Gift registry):
   the logo keeps only its mark, the words sit closer and the event switcher is capped. */
@media (min-width: 1180px) and (max-width: 1499.98px) {
    .appbar { gap: 12px; }
    .appbar-logo > span:last-child { display: none; }
    .topnav > ul { gap: 0; }
    .topnav-link { padding: 0 8px; }
    .event-pill { max-width: 190px; }
}
@media (min-width: 1180px) and (max-width: 1279.98px) { .event-pill { max-width: 148px; } }
/* Below this the top menu folds into the drawer. */
@media (max-width: 1179.98px) {
    .topnav { display: none; }
    .mobile-toggle { display: grid; place-items: center; }
    .appbar { gap: 12px; padding: 0 16px; }
}
@media (min-width: 1180px) { .sidebar, .sidebar-backdrop { display: none !important; } }
@media (max-width: 991.98px) {
    .page { padding: 20px 16px 40px; }
    .impersonate-bar { padding: 8px 16px; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-main { align-items: flex-start; padding-top: 32px; min-height: 100vh; }
}

/* Facts line: a row of figures in running text (admin Home). */
.facts-line { display: flex; flex-wrap: wrap; gap: 4px 0; margin: -8px 0 20px; color: var(--wi-muted); }
.facts-line > span:not(:last-child)::after { content: "\00b7"; margin: 0 10px; color: var(--wi-subtle); }
.facts-line strong { color: var(--wi-ink); font-weight: 600; font-size: 1.125rem; margin-right: 2px; }
/* Plan card: allowances as a divided inline row. */
.plan-facts { display: flex; flex-wrap: wrap; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--wi-line); }
.plan-facts > div { padding: 0 24px; border-left: 1px solid var(--wi-line); }
.plan-facts > div:first-child { padding-left: 0; border-left: 0; }
.plan-facts dt { font-weight: 400; color: var(--wi-muted); font-size: .8125rem; }
.plan-facts dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 600; }
.btn.is-current-event { pointer-events: none; background: var(--wi-primary-soft); border-color: var(--wi-primary-line); color: var(--wi-primary-dark); }
/* Disclosure rows: one chevron instead of the browser marker. */
details > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .55rem; color: var(--wi-subtle); transition: transform .15s var(--wi-ease); }
details[open] > summary::before { transform: rotate(90deg); }

/* ---- Client dashboard: activity-led Home ---------------------------------- */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 4px 0 20px; }
.home-title { min-width: 0; }
.event-switch { appearance: none; border: 0; background: transparent; padding: 2px 6px; margin-left: -6px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--wi-ink); max-width: 100%; transition: background-color .15s var(--wi-ease); }
.event-switch:hover, .event-switch[aria-expanded="true"] { background: var(--wi-surface); }
.event-switch > i { font-size: .8rem; color: var(--wi-subtle); flex-shrink: 0; }
.home-head .event-title { margin: 0; text-align: left; }
.home-head .event-facts { margin: 4px 0 0; gap: 0; color: var(--wi-muted); }
.home-head .event-facts > span:not(:last-child)::after { content: "\00b7"; margin: 0 8px; color: var(--wi-subtle); }
.home-head .event-countdown { font-size: inherit; margin: 0; color: var(--wi-ink); }
.home-head .event-countdown strong { font-size: inherit; letter-spacing: 0; font-weight: 600; margin: 0; }
.home-head .event-after-next { margin: 6px 0 0; }
.home-head .event-actions { flex-shrink: 0; }
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.home-main, .home-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home-main > .section, .home-side > .section { margin-bottom: 0; }
.reply-sum { display: flex; align-items: center; gap: 24px; }
.reply-big { margin: 0; flex-shrink: 0; color: var(--wi-ink-2); font-size: .9375rem; }
.reply-big strong { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: var(--wi-ink); margin-right: 4px; }
.reply-sum-main { flex: 1; min-width: 0; }
.reply-sum .rsvp-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: .8125rem; color: var(--wi-ink-2); }
.reply-sum .rsvp-legend li { gap: 6px; }
.reply-sum .rsvp-legend a { font-size: .8125rem; }
.reply-foot { margin: 12px 0 0; font-size: .75rem; color: var(--wi-muted); }
.feed { margin-top: 16px; border-top: 1px solid var(--wi-line); }
.feed-day { font-size: .75rem; font-weight: 500; color: var(--wi-muted); margin: 16px 0 4px; letter-spacing: 0; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--wi-line); }
.feed-list li:last-child { border-bottom: 0; }
.feed-ini { width: 32px; height: 32px; border-radius: 50%; background: var(--wi-surface-2); border: 1px solid var(--wi-line); display: grid; place-items: center; font-size: .6875rem; font-weight: 600; color: var(--wi-ink-2); }
.feed-ini.is-system { background: var(--wi-primary-soft); border-color: transparent; color: var(--wi-primary); font-size: .75rem; }
.feed-text { color: var(--wi-ink-2); line-height: 1.5; }
.feed-text strong { color: var(--wi-ink); font-weight: 500; }
.feed-text .chip { margin-left: 4px; vertical-align: 1px; }
.feed-note { display: block; color: var(--wi-muted); font-size: .8125rem; margin-top: 2px; }
.feed-time { color: var(--wi-muted); font-size: .75rem; font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px; }
.feed-more { display: inline-block; margin-top: 8px; }
.feed-empty { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--wi-line); color: var(--wi-muted); }
.home-invite .section-head { margin-bottom: 12px; }
.home-invite-state { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--wi-muted); }
.home-invite-state .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
/* Attached files (receipts on expenses, contracts on vendor bookings) */
.file-box { border-top: 1px solid var(--wi-line); padding-top: 12px; }
.file-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.file-pick { cursor: pointer; }
.file-pick.disabled { pointer-events: none; opacity: .6; }
.file-box-head:has(input[type=file]:focus-visible) .file-pick { outline: 2px solid var(--wi-primary); outline-offset: 2px; }
.file-list { list-style: none; margin: 0 0 6px; padding: 0; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--wi-line); font-size: .8125rem; }
.file-list li:last-child { border-bottom: 0; }
.file-list li > i { color: var(--wi-subtle); width: 16px; text-align: center; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wi-ink); }
.file-size { color: var(--wi-muted); white-space: nowrap; }
.btn-icon-sm { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--wi-subtle); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.btn-icon-sm:hover, .btn-icon-sm:focus-visible { background: var(--wi-surface-2); color: var(--wi-danger-ink); }

/* Planning summary (dashboard side column) */
.home-planning .section-title { margin-bottom: 8px; }
.plan-lines { list-style: none; margin: 0; padding: 0; }
.plan-lines li { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--wi-line); font-size: .8125rem; }
.plan-lines li > :not(.plan-name) { grid-column: 2; }
.plan-name { font-weight: 500; color: var(--wi-primary-dark); text-decoration: none; }
.plan-name:hover, .plan-name:focus-visible { color: var(--wi-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.plan-value { color: var(--wi-ink-2); }
.plan-lines li:last-child { border-bottom: 0; padding-bottom: 0; }
a.plan-value.is-empty { color: var(--wi-primary-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wi-line); }
a.plan-value.is-empty:hover, a.plan-value.is-empty:focus-visible { text-decoration-color: currentColor; }
.plan-note { color: var(--wi-muted); }
.plan-late { color: var(--wi-danger-ink); font-weight: 500; }
.plan-bar { height: 6px; align-self: center; }
.plan-bar.is-over .progress-bar { background: var(--wi-danger); }
.plan-sub { margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--wi-line); font-size: .8125rem; font-weight: 500; color: var(--wi-muted); }
.plan-coming { list-style: none; margin: 0; padding: 0; font-size: .8125rem; }
.plan-coming li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.plan-date { flex: 0 0 44px; color: var(--wi-muted); white-space: nowrap; }
.plan-date.is-late { color: var(--wi-danger-ink); font-weight: 500; }
.plan-what { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--wi-ink); text-decoration: none; }
.plan-what i { width: 14px; flex-shrink: 0; font-size: .75rem; color: var(--wi-subtle); text-align: center; }
.plan-what:hover .text-truncate, .plan-what:focus-visible .text-truncate { text-decoration: underline; text-underline-offset: 3px; }
.plan-amt { color: var(--wi-ink-2); white-space: nowrap; }
.event-row-plan { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 2px; font-size: .75rem; color: var(--wi-muted); }
.section-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.home-invite .event-preview, .home-invite .event-preview:is(*) { width: 100%; display: block; }
.home-invite .event-preview-frame, .home-invite .event-preview-empty { width: 100%; height: 300px; }
.home-invite .event-preview-frame iframe { width: 200%; height: 600px; }
.home-invite .event-preview-empty { height: 140px; }
.home-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home-ready .section-head { align-items: flex-start; }
.home-ready .checklist-progress { width: 96px; padding-top: 8px; }
.home-ready .checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr) 32px; column-gap: 12px; row-gap: 8px; align-items: start; }
.home-ready .checklist li > .row-more-wrap { grid-column: 3; grid-row: 1; margin-top: -6px; }
.home-ready .checklist li.is-next { margin: 0 -12px; padding: 12px; border-radius: 10px; background: var(--wi-primary-soft); border-bottom-color: transparent; }
.home-ready .checklist li.is-next .check-dot { border-color: var(--wi-primary); background: var(--wi-surface); }
.home-ready .checklist li.later { display: flex; align-items: center; padding: 8px 0; }
.check-group { font-size: .75rem; font-weight: 500; color: var(--wi-muted); margin: 16px 0 0; }
.home-ready .section-head + .check-group { margin-top: 0; }
.check-when { width: 44px; flex-shrink: 0; font-size: .75rem; font-weight: 500; color: var(--wi-muted); }
.home-ready .check-link { font-weight: 400; color: var(--wi-ink-2); text-decoration: none; }
.home-ready .check-link:hover { color: var(--wi-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.row-more { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--wi-subtle); display: grid; place-items: center; opacity: .75; transition: background-color .15s var(--wi-ease), opacity .15s var(--wi-ease); }
.row-more:hover, .row-more:focus-visible, .row-more[aria-expanded="true"] { background: var(--wi-surface-2); opacity: 1; }
.row-more:focus-visible { outline: 2px solid var(--wi-primary); outline-offset: 2px; }
.row-more i { font-size: .8rem; }
.ready-menu { min-width: 240px; }
.ready-menu-hint { max-width: 260px; padding: 8px 12px 6px; margin-top: 4px; border-top: 1px solid var(--wi-line); font-size: .75rem; color: var(--wi-muted); }
.ready-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--wi-line); font-size: .8125rem; }
.ready-foot .checklist-done { flex: 1; min-width: 0; margin: 0; border-top: 0; padding-top: 0; }
.ready-tools { display: inline-flex; align-items: center; gap: 6px; color: var(--wi-ink-2); text-decoration: none; white-space: nowrap; }
.ready-tools i { font-size: .75rem; color: var(--wi-subtle); }
.ready-tools:hover { color: var(--wi-primary-dark); }
.home-ready .checklist li .check-dot { margin-top: 1px; }
.home-ready .checklist li > .btn { grid-column: 2; justify-self: start; }
.home-ready .checklist-all-done { display: flex !important; }
@media (max-width: 1179.98px) { .home-split { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 991.98px) {
    .home-split { grid-template-columns: minmax(0, 1fr); }
    .home-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 575.98px) {
    .home-head { flex-direction: column; align-items: stretch; margin-bottom: 16px; }
    .home-head .event-title { font-size: 1.5rem; }
    .home-head .event-facts { display: block; line-height: 1.6; }
    .home-head .event-facts > span { white-space: nowrap; }
    .home-head .event-after-next { text-align: left; }
    .feed .feed-day:nth-of-type(n+4), .feed .feed-list:nth-of-type(n+4) { display: none; }
    .home-head .event-actions .btn { flex: 1 1 100%; justify-content: center; min-height: 44px; }
    .reply-sum { flex-direction: column; align-items: stretch; gap: 12px; }
    .home-side { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Client dashboard (shared pieces) ------------------------------------ */
.event-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 24px 28px; }
.event-title { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; overflow-wrap: anywhere; }
.event-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; color: var(--wi-ink-2); font-size: .875rem; }
.event-facts span { display: inline-flex; align-items: center; gap: 6px; }
.event-facts i { color: var(--wi-subtle); width: 14px; text-align: center; font-size: .8rem; }
.event-countdown { font-size: 1rem; color: var(--wi-ink-2); margin: 0 0 20px; }
.event-countdown strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--wi-ink); margin-right: 2px; }
.event-countdown.is-quiet { font-size: .9375rem; color: var(--wi-muted); }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.event-after-next { font-size: .8125rem; color: var(--wi-muted); margin: 12px 0 0; }
.event-preview { display: block; width: 210px; color: var(--wi-ink-2); text-decoration: none; }
.event-preview-frame { display: block; position: relative; width: 210px; height: 290px; overflow: hidden; border-radius: 12px; border: 1px solid var(--wi-line); background: var(--wi-surface-sunk); box-shadow: 0 1px 2px rgba(24, 33, 30, .06); transition: transform .2s var(--wi-ease), box-shadow .2s var(--wi-ease); }
.event-preview-frame iframe { position: absolute; top: 0; left: 0; width: 420px; height: 580px; border: 0; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.event-preview:hover .event-preview-frame, .event-preview:focus-visible .event-preview-frame { border-color: var(--wi-line-hover); box-shadow: 0 4px 12px rgba(24, 33, 30, .1); }
.event-preview-label { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: .75rem; font-weight: 500; }
.event-preview-label .fa-circle-check { color: var(--wi-sage); }
.event-preview-empty { display: grid; place-items: center; gap: 10px; align-content: center; width: 210px; height: 290px; border: 1px dashed var(--wi-line-hover); border-radius: 12px; background: var(--wi-surface-sunk); font-size: .8125rem; font-weight: 500; text-align: center; padding: 20px; }
.event-preview-empty i { font-size: 1.4rem; color: var(--wi-subtle); }
.event-preview:hover .event-preview-empty { border-color: var(--wi-primary-line); color: var(--wi-primary-dark); }

.rsvp-line { font-size: .9375rem; margin: 0 0 12px; color: var(--wi-ink-2); }
.rsvp-line strong { color: var(--wi-ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.rsvp-sep { margin: 0 8px; color: var(--wi-subtle); }
.rsvp-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--wi-surface-3); gap: 2px; }
.rsvp-bar span { display: block; min-width: 6px; }
.seg-coming { background: var(--wi-sage); }
.seg-declined { background: var(--wi-danger); }
.seg-awaiting { background: var(--wi-gold); }
.seg-unsent { background: var(--wi-unsent); }
.rsvp-legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 20px; font-size: .875rem; color: var(--wi-ink-2); }
.rsvp-legend li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.rsvp-legend strong { color: var(--wi-ink); font-weight: 600; }
.rsvp-legend a { font-size: .8125rem; font-weight: 500; }
.rsvp-legend .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rsvp-empty p { color: var(--wi-ink-2); }

.checklist-progress { width: 140px; }
.checklist li.is-next { background: var(--wi-primary-soft); margin: 0 -12px; padding: 12px; border-radius: 10px; border-bottom-color: transparent; }
.checklist li.locked .check-dot { color: var(--wi-subtle); border-style: dashed; }
.checklist-all-done { justify-content: center; color: var(--wi-sage-ink); font-weight: 500; gap: 10px !important; }
.checklist-done { margin-top: 4px; border-top: 1px solid var(--wi-line); padding-top: 8px; }
.checklist-done summary { cursor: pointer; font-size: .8125rem; font-weight: 500; color: var(--wi-muted); padding: 4px 0; width: max-content; }
.checklist-done summary:hover { color: var(--wi-ink); }
.checklist-done .checklist li { padding: 8px 0; }

.events-overview .event-rows { list-style: none; margin: 0; padding: 0; }
.event-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, 200px) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--wi-line); }
.event-rows li:last-child { border-bottom: 0; }
.event-rows li.is-past .event-row-title { color: var(--wi-ink-2); }
.event-rows li.is-past .event-row-icon { background: var(--wi-surface-2); color: var(--wi-muted); }
.event-row-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--wi-surface-2); color: var(--wi-ink-2); font-size: .8rem; }
.event-rows li.is-current .event-row-icon { background: var(--wi-primary-soft); color: var(--wi-primary-dark); }
.event-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-row-sub, .event-row-pct { font-size: .75rem; color: var(--wi-muted); }
.event-row-pct { margin-bottom: 4px; }
.event-row-replies .progress { height: 6px; }
.event-row-needs { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--wi-gold-ink); font-weight: 500; margin-bottom: 4px; }
.events-past { margin-top: 8px; border-top: 1px solid var(--wi-line); padding-top: 8px; }
.events-past summary { cursor: pointer; font-size: .8125rem; font-weight: 500; color: var(--wi-muted); padding: 6px 0; width: max-content; }
.events-past summary:hover { color: var(--wi-ink); }
.link-tap { font-weight: 500; font-size: .8125rem; }
/* Spinners stop for people who asked for less motion; the text still says what is happening. */
@media (prefers-reduced-motion: reduce) {
    .fa-spin, .fa-spin-pulse { animation: none !important; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

.switch-item { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.switch-date { font-size: .75rem; color: var(--wi-muted); }

@media (max-width: 767.98px) {
    .event-hero { grid-template-columns: 1fr; padding: 20px 16px; }
    .event-preview { display: none; }
    .event-actions .btn-lg { width: 100%; justify-content: center; }
    .event-after-next { text-align: center; }
    /* Comfortable thumb targets on phones. */
    .checklist .btn, .events-overview .btn, .rsvp-summary .btn, .copy-field .btn { min-height: 44px; }
    .link-tap, .rsvp-legend a { display: inline-flex; align-items: center; min-height: 44px; }
    .events-past summary, .checklist-done summary { min-height: 44px; display: flex; align-items: center; }
    .event-rows:not(.is-expanded) > li:nth-child(n+4) { display: none; }
    .event-rows li { grid-template-columns: auto minmax(0, 1fr) auto; }
    .event-row-replies { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 575.98px) {
    .plan-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
    .plan-facts > div { padding: 0; border-left: 0; }
    .content-header h1, .content-header h4 { font-size: 1.5rem; }
    .section { padding: 16px; border-radius: 12px; }
    .header-actions { width: 100%; }
    .header-actions .btn { flex: 1; white-space: nowrap; }
    .header-actions .btn-primary { order: -1; flex-basis: 100%; }
    .table > thead th, .table > tbody td { padding: 10px 12px; }
    .hide-xs { display: none !important; }
    .choice-grid { grid-template-columns: 1fr; }
    .modal { --bs-modal-margin: 10px; } /* Bootstrap sizes scrollable dialogs from this */
    .type-chip label { padding: 0 12px; font-size: .8125rem; }
}
/* ---- Top bar: Help button, menu counts ---------------------------------- */
.appbar-help { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--wi-line); background: var(--wi-surface); color: var(--wi-ink-2); font-size: .95rem; flex-shrink: 0; transition: background .15s, border-color .15s; }
.appbar-help:hover, .appbar-help.active { background: var(--wi-surface-2); border-color: var(--wi-line-hover); color: var(--wi-ink); text-decoration: none; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--wi-primary); color: #fff; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-link .nav-count { margin-left: auto; }

/* ---- Guided tour (core/js/tour.js) --------------------------------------- */
.tour-root { position: fixed; inset: 0; z-index: 1990; }
.tour-block { position: absolute; inset: 0; cursor: default; }
.tour-spot { position: fixed; pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 9999px rgba(24, 33, 30, .62); transition: top .42s var(--wi-ease), left .42s var(--wi-ease), width .42s var(--wi-ease), height .42s var(--wi-ease), border-radius .42s var(--wi-ease); }
.tour-card { position: fixed; width: 340px; max-width: calc(100vw - 32px); background: var(--wi-surface); border-radius: 14px; padding: 16px 20px 16px; box-shadow: 0 18px 44px rgba(24, 33, 30, .28), 0 2px 6px rgba(24, 33, 30, .12); outline: none; transition: top .42s var(--wi-ease), left .42s var(--wi-ease); }
.tour-card.is-in { animation: tour-in .32s var(--wi-ease); }
.tour-card.is-center { width: 380px; }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px -8px 8px 0; }
.tour-count { font-size: .75rem; font-weight: 500; color: var(--wi-muted); font-variant-numeric: tabular-nums; }
.tour-x { appearance: none; border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--wi-subtle); }
.tour-x:hover { background: var(--wi-surface-2); color: var(--wi-ink); }
.tour-bar { height: 4px; border-radius: 4px; background: var(--wi-surface-3); overflow: hidden; margin-bottom: 14px; }
.tour-bar span { display: block; height: 100%; background: var(--wi-primary); border-radius: 4px; transition: width .42s var(--wi-ease); }
.tour-title { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; color: var(--wi-ink); margin: 0 0 6px; }
.tour-text { font-size: .875rem; line-height: 1.55; color: var(--wi-ink-2); margin: 0 0 16px; }
.tour-foot { display: flex; align-items: center; gap: 8px; }
.tour-foot .btn { white-space: nowrap; }
.tour-gap { flex: 1; }
.tour-skip { --bs-btn-color: var(--wi-muted); --bs-btn-hover-color: var(--wi-ink); padding-left: 0; padding-right: 0; }
html.tour-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .tour-spot, .tour-card, .tour-bar span { transition: none; }
    .tour-card.is-in { animation: none; }
}
@media (max-width: 575.98px) {
    .tour-card, .tour-card.is-center { width: calc(100vw - 32px); }
    .tour-foot .btn { min-height: 44px; }
}

/* ---- Help page and tickets ----------------------------------------------- */
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.help-side { position: sticky; top: calc(var(--wi-topbar-h) + 16px); }
.help-search { position: relative; margin-bottom: 16px; }
.help-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--wi-subtle); font-size: .8rem; pointer-events: none; }
.help-search .form-control { padding-left: 38px; height: 44px; }
.help-group { padding: 16px 20px 8px; }
.help-group .section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.help-group .section-title > i { width: 16px; text-align: center; font-size: .85rem; color: var(--wi-subtle); }
.help-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; color: var(--wi-muted); }
.help-lock i { font-size: .65rem; }
.help-item { border-top: 1px solid var(--wi-line); }
.help-item:first-of-type { border-top: 0; }
.help-item > summary { list-style: none; display: flex; text-align: left; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 500; color: var(--wi-ink); }
.help-item summary::-webkit-details-marker { display: none; }
.help-item > summary::before { display: none; }
.help-search input::-webkit-search-cancel-button { display: none; }
.help-item summary i { font-size: .6rem; color: var(--wi-subtle); transition: transform .2s var(--wi-ease); flex-shrink: 0; }
.help-item[open] summary i { transform: rotate(180deg); }
.help-item summary:hover { color: var(--wi-primary-dark); }
.help-answer { padding: 0 0 14px; color: var(--wi-ink-2); max-width: 70ch; }
.help-answer p, .help-answer ol { margin: 0 0 8px; }
.help-answer ol { padding-left: 1.25rem; }
.help-answer li { margin-bottom: 4px; }
.help-answer a { color: var(--wi-primary-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--wi-primary-line); }
.help-answer a:hover { text-decoration-color: currentColor; }
.ticket-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ticket-list a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--wi-line); color: inherit; }
.ticket-list a:hover { background: var(--wi-surface-sunk); text-decoration: none; }
.ticket-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ticket-list .chip { flex-shrink: 0; }
.ticket-wrap { max-width: 820px; }
.ticket-thread { padding: 4px 20px; }
.ticket-msg { padding: 16px 0; border-top: 1px solid var(--wi-line); }
.ticket-msg:first-child { border-top: 0; }
.ticket-msg header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .8125rem; }
.ticket-msg header strong { font-weight: 600; color: var(--wi-ink); }
.ticket-msg time { color: var(--wi-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-msg.is-staff header strong { color: var(--wi-primary-dark); }
.ticket-msg.is-staff .ticket-body { background: var(--wi-primary-soft); border-radius: 10px; padding: 10px 14px; }
.ticket-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--wi-ink); max-width: 70ch; }
.ticket-file { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 10px; border: 1px solid var(--wi-line); border-radius: 8px; font-size: .8125rem; color: var(--wi-ink-2); max-width: 100%; overflow-wrap: anywhere; }
.ticket-file:hover { background: var(--wi-surface-2); text-decoration: none; color: var(--wi-ink); }
.ticket-file i { color: var(--wi-subtle); font-size: .75rem; }
.ticket-wait { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0 14px; border-top: 1px solid var(--wi-line); font-size: .8125rem; color: var(--wi-muted); }
.ticket-reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ticket-reply-foot > .min-w-0 { flex: 1 1 220px; max-width: 360px; }
.ticket-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ticket-contact { list-style: none; margin: 0 0 16px; padding: 0; }
.ticket-contact li { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-width: 0; }
.ticket-contact i { width: 16px; text-align: center; color: var(--wi-subtle); font-size: .85rem; flex-shrink: 0; }
.ticket-contact a { overflow-wrap: anywhere; }
.ticket-facts { margin: 0; display: grid; gap: 10px; }
.ticket-facts dt { font-size: .75rem; font-weight: 500; color: var(--wi-muted); }
.ticket-facts dd { margin: 0; font-size: .875rem; color: var(--wi-ink); }
.ticket-search .form-control { width: 200px; height: 40px; }
.ticket-table .row-link { cursor: pointer; }
.ticket-table .row-link:hover td { background: var(--wi-surface-sunk); }
.ticket-table .cell-main { color: var(--wi-ink); }
@media (max-width: 1179.98px) { .help-grid, .ticket-admin-grid { grid-template-columns: minmax(0, 1fr); } .help-side { position: static; } }
@media (max-width: 575.98px) { .appbar { gap: 8px; } .appbar-logo > span:not(.brand-mark) { display: none; } .appbar-end { gap: 6px; } .ticket-search, .ticket-search .form-control { width: 100%; } .ticket-list a { padding: 10px 16px; } .ticket-thread { padding: 0 16px; } }

/* ---- Help videos (Help page cards + player, admin list and form) --------- */
.help-videos { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.help-video-btn { appearance: none; border: 0; background: none; padding: 0; width: 100%; text-align: left; display: flex; flex-direction: column; align-items: stretch; gap: 8px; color: var(--wi-ink); font: inherit; cursor: pointer; border-radius: 10px; }
.help-video-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--wi-surface-3); border: 1px solid var(--wi-line); }
.help-video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--wi-ease); }
.help-video-play { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--wi-primary-dark); font-size: .875rem; box-shadow: 0 4px 14px rgba(24, 33, 30, .2); transition: transform .2s var(--wi-ease); }
.help-video-play i { margin-left: 2px; }
.help-video-btn:hover .help-video-play { transform: scale(1.08); }
.help-video-btn:hover .help-video-thumb img { transform: scale(1.02); }
.help-video-btn:hover .help-video-title { color: var(--wi-primary-dark); }
.help-video-btn:focus-visible { outline: 2px solid var(--wi-primary); outline-offset: 3px; }
.help-video-title { font-size: .875rem; font-weight: 500; line-height: 1.4; }
.hv-length { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(24, 33, 30, .78); color: #fff; font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.help-player { overflow: hidden; }
.help-player video { display: block; width: 100%; max-height: 72vh; background: #000; }
.help-player-desc { margin: 0; padding: 12px 20px 16px; color: var(--wi-ink-2); font-size: .875rem; }
.hv-group .section-head { padding: 16px 20px 12px; margin: 0; }
.hv-group-icon { width: 16px; margin-right: 10px; text-align: center; font-size: .85rem; color: var(--wi-subtle); }
.hv-list { list-style: none; margin: 0; padding: 0; }
.hv-list li { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--wi-line); }
.hv-list li.is-hidden .hv-thumb, .hv-list li.is-hidden .cell-main { opacity: .55; }
.hv-thumb { position: relative; flex-shrink: 0; width: 128px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--wi-surface-3); color: var(--wi-subtle); border: 1px solid var(--wi-line); }
.hv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-thumb .hv-length { right: 4px; bottom: 4px; }
.hv-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hv-main .cell-main { color: var(--wi-ink); }
.hv-empty { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--wi-line); font-size: .8125rem; color: var(--wi-muted); }
.hv-form { max-width: 820px; }
.hv-progress { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.hv-bar { flex: 1; height: 6px; border-radius: 4px; background: var(--wi-surface-3); overflow: hidden; }
.hv-bar span { display: block; height: 100%; width: 0; background: var(--wi-primary); border-radius: 4px; transition: width .3s var(--wi-ease); }
.hv-preview { display: block; width: 100%; max-height: 420px; border-radius: 10px; background: #000; margin-bottom: 8px; }
@media (max-width: 575.98px) {
    .hv-list li { flex-wrap: wrap; padding: 12px 16px; }
    .hv-thumb { width: 96px; }
    .hv-list .toolbar { width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .help-video-thumb img, .help-video-play { transition: none; } }

@media print {
    .sidebar, .appbar, .no-print, .impersonate-bar, .tour-root { display: none !important; }
    body { background: #fff; }
    .section { border-color: #ddd; }
}

/* Package editor: parts of a module (e.g. the gift registry's cash funds), under its switch. */
.sub-feats { margin: 12px 0 0 44px; padding-top: 12px; border-top: 1px solid var(--wi-line); display: flex; flex-direction: column; gap: 10px; }
.sub-feats .form-check { margin: 0; }
.sub-feats .text-sm { font-size: .75rem; }
.sub-feats.is-off { opacity: .55; }

/* Print menus (Seating, Guests): icon, name and one line saying what it is. */
.print-menu { min-width: 300px; }
.print-menu .dropdown-item { display: flex; align-items: flex-start; gap: 10px; padding-top: 8px; padding-bottom: 8px; white-space: normal; }
.print-menu .dropdown-item > i { margin-top: 3px; width: 16px; text-align: center; }
.print-menu .dropdown-item small { display: block; color: var(--wi-muted, #5f6965); font-size: .78rem; line-height: 1.35; margin-top: 1px; }

/* Policy links: under the auth cards, the register agreement line, and the footer of every portal screen. */
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 28px; font-size: .75rem; }
.auth-legal a, .app-legal a { color: var(--wi-muted); }
.auth-legal a:hover, .app-legal a:hover { color: var(--wi-primary); }
.auth-agree { margin: 12px 0 0; font-size: .75rem; color: var(--wi-muted); text-align: center; line-height: 1.5; }
.auth-agree a { color: var(--wi-ink-2); text-decoration: underline; }
.app-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 16px 28px 24px; font-size: .75rem; color: var(--wi-muted); }
.app-legal nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.billing-policies a { color: var(--wi-muted); text-decoration: underline; }

/* Admin alerts (core/js/admin-alerts.js) */
.admin-alerts { position: fixed; top: calc(var(--wi-topbar-h, 60px) + 12px); right: 16px; z-index: 3050; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.admin-alert { display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 14px; background: var(--wi-surface); border: 1px solid var(--wi-line); border-radius: var(--wi-radius-sm, 12px); box-shadow: var(--wi-shadow-md); animation: admin-alert-in .22s var(--wi-ease, ease-out); }
.admin-alert.is-leaving { opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.admin-alert-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--wi-primary-soft); color: var(--wi-primary-dark); }
.admin-alert-icon.is-wa { background: #E3F5EA; color: #1E8E4F; }
.admin-alert-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; font-size: .875rem; line-height: 1.4; }
.admin-alert-main strong { font-weight: 600; color: var(--wi-ink); }
.admin-alert-who { color: var(--wi-ink-2); }
.admin-alert-text { color: var(--wi-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.admin-alert .btn-close { flex: none; font-size: .7rem; margin-top: 2px; }
.nav-count.is-bump { animation: nav-count-bump .4s var(--wi-ease, ease-out); }
@keyframes admin-alert-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes nav-count-bump { 40% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .admin-alert, .nav-count.is-bump { animation: none; } .admin-alert.is-leaving { transition: none; } }

/* Notification bell (admins) */
.appbar-bell { position: relative; }
.bell-count { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--wi-danger, #C8463D); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--wi-surface); }
.bell-count.is-bump { animation: nav-count-bump .4s var(--wi-ease, ease-out); }
.bell-menu { width: min(360px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.bell-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--wi-line); }
.bell-head strong { font-weight: 600; }
.bell-sub { font-size: .8125rem; color: var(--wi-muted); }
.bell-list { max-height: min(420px, 60vh); overflow-y: auto; }
.bell-empty { padding: 20px 16px; font-size: .875rem; color: var(--wi-muted); text-align: center; }
.bell-item { display: flex; gap: 12px; padding: 10px 16px; color: inherit; text-decoration: none; }
.bell-item + .bell-item { border-top: 1px solid var(--wi-line-2, var(--wi-line)); }
.bell-item:hover, .bell-item:focus-visible { background: var(--wi-surface-2); text-decoration: none; color: inherit; }
.bell-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--wi-primary-soft); color: var(--wi-primary-dark); font-size: .85rem; }
.bell-icon.is-wa { background: #E3F5EA; color: #1E8E4F; }
.bell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .8125rem; line-height: 1.4; }
.bell-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bell-top strong { font-weight: 600; color: var(--wi-ink); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell-top time { flex: none; color: var(--wi-muted); font-size: .75rem; }
.bell-meta { color: var(--wi-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell-text { color: var(--wi-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bell-foot { display: flex; border-top: 1px solid var(--wi-line); }
.bell-foot a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: .8125rem; color: var(--wi-ink-2); text-decoration: none; }
.bell-foot a + a { border-left: 1px solid var(--wi-line); }
.bell-foot a:hover { background: var(--wi-surface-2); color: var(--wi-ink); }
@media (prefers-reduced-motion: reduce) { .bell-count.is-bump { animation: none; } }

/* ---------- WhatsApp top-ups (Plan & billing) ---------- */
.topup-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.topup-pack { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n p" "l p"; align-items: center; text-align: left; gap: 0 12px; background: var(--wi-surface); border: 1px solid var(--wi-line); border-radius: var(--wi-radius-sm); padding: 12px 14px; cursor: pointer; transition: border-color .15s var(--wi-ease), background .15s var(--wi-ease); }
.topup-pack:hover { border-color: var(--wi-primary); background: var(--wi-primary-soft); }
.topup-pack:focus-visible { outline: 2px solid var(--wi-primary); outline-offset: 2px; }
.topup-pack.is-busy { opacity: .6; pointer-events: none; }
.topup-n { grid-area: n; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--wi-ink); }
.topup-l { grid-area: l; font-size: .75rem; color: var(--wi-muted); }
.topup-p { grid-area: p; justify-self: end; font-weight: 600; color: var(--wi-primary-dark); }
