/* ===================================================================================
   Where2 redesign, October 2026 ("after dark": Inter, electric blue + violet).
   Loaded after app.css. The dark tokens come from the design handoff; the light values are
   derived from them, since light mode was not designed. Pages use the w2x-* classes below
   instead of inline colours.
=================================================================================== */

:root, html.dark {
    --w2-bg-primary: #06070D;
    --w2-bg-secondary: #0C0E16;
    --w2-card-bg: #10121B;
    --w2-input-bg: #181B27;
    --w2-input-border: rgba(255, 255, 255, .09);
    --w2-card-border: rgba(255, 255, 255, .09);
    --w2-glass-bg: rgba(255, 255, 255, .04);
    --w2-glass-border: rgba(255, 255, 255, .09);
    --w2-glass-strong-bg: rgba(13, 15, 24, .985);
    --w2-nav-bg: rgba(14, 16, 26, .96);
    --w2-text-primary: #F5F7FF;
    --w2-text-secondary: #9AA3B8;
    --w2-text-tertiary: #636B82;
    --w2-grad-primary: linear-gradient(135deg, #3D8BFF, #2B4BFF);
    --w2-accent-text: #5B9BFF;
    --w2-info-text: #5B9BFF;
    --w2-nav-active: #7FA8FF;
    --w2-nav-inactive: #636B82;
    --w2-success-text: #5FD39A;
    --w2-danger-text: #E58A7E;
    --w2-warning-text: #F2B866;
    --w2-shadow: rgba(0, 0, 0, .5);

    --w2-x-label: #7D869C;
    --w2-x-violet: #A78BFA;
    --w2-x-track: #262A3A;
    --w2-x-hair: rgba(255, 255, 255, .09);
    --w2-x-chip-border: rgba(255, 255, 255, .16);
    --w2-x-btn-border: rgba(255, 255, 255, .2);
    --w2-x-danger-border: rgba(229, 138, 126, .45);
    --w2-x-well: #181B27;
    --w2-x-navy: #141A3A;
    --w2-x-accent-soft: rgba(91, 140, 255, .08);
    --w2-x-accent-line: rgba(91, 155, 255, .35);
    --w2-x-overlay: rgba(11, 13, 22, .6);
    --w2-x-pin-bg: rgba(11, 13, 22, .92);
    --w2-x-pin-glow: 0 0 0 6px rgba(91, 140, 255, .18), 0 0 28px rgba(61, 139, 255, .8);
    --w2-x-panel-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    --w2-x-radius-pill: 999px;
    --w2-x-radius-card: 22px;
    --w2-x-radius-sheet: 28px;
    --w2-x-radius-input: 14px;
    --w2-x-font: 'Inter', system-ui, -apple-system, sans-serif;
    --w2-x-cat-venue: #5B9BFF;
    --w2-x-cat-music: #A78BFA;
    --w2-x-cat-bar: #F59E6B;
    --w2-x-cat-food: #FF5C8A;
}

html.light {
    --w2-card-bg: #FFFFFF;
    --w2-input-bg: #EEF1F8;
    --w2-input-border: rgba(15, 23, 42, .12);
    --w2-card-border: rgba(15, 23, 42, .10);
    --w2-glass-strong-bg: rgba(255, 255, 255, .985);
    --w2-grad-primary: linear-gradient(135deg, #3D8BFF, #2B4BFF);
    --w2-accent-text: #2B4BFF;
    --w2-success-text: #15803D;
    --w2-danger-text: #B91C1C;

    --w2-x-label: #5B6478;
    --w2-x-violet: #6D4FD8;
    --w2-x-track: #CBD2E3;
    --w2-x-hair: rgba(15, 23, 42, .10);
    --w2-x-chip-border: rgba(15, 23, 42, .18);
    --w2-x-btn-border: rgba(15, 23, 42, .22);
    --w2-x-danger-border: rgba(185, 28, 28, .4);
    --w2-x-well: #E6EAF4;
    --w2-x-navy: #DCE5FF;
    --w2-x-accent-soft: rgba(43, 75, 255, .08);
    --w2-x-accent-line: rgba(43, 75, 255, .35);
    --w2-x-overlay: rgba(255, 255, 255, .8);
    --w2-x-pin-bg: rgba(255, 255, 255, .95);
}

html, body, .mud-typography, .mud-input, .mud-button-root, button, input, select, textarea {
    font-family: var(--w2-x-font);
}
html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ─── Page frame ──────────────────────────────────────────────────────────────── */
.w2x-page {
    min-height: 100vh;
    padding: calc(var(--w2-safe-top) + 10px) 20px 110px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 640px;
    margin: 0 auto;
    color: var(--w2-text-primary);
}
.w2x-page.tight { gap: 14px; }
.w2x-stack { display: flex; flex-direction: column; gap: 14px; }
.w2x-stack.sm { gap: 8px; }
.w2x-stack.lg { gap: 22px; }
.w2x-hrow { display: flex; align-items: center; gap: 10px; }
.w2x-spacer { flex: 1; }

/* ─── Type ────────────────────────────────────────────────────────────────────── */
.w2x-display { font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.w2x-title   { font-weight: 700; letter-spacing: -.025em; font-size: 34px; line-height: 1.05; margin: 0; }
.w2x-h2      { font-weight: 700; letter-spacing: -.025em; font-size: 24px; line-height: 1.1; margin: 0; }
.w2x-h3      { font-weight: 700; letter-spacing: -.025em; font-size: 18px; line-height: 1.2; margin: 0; }
.w2x-body    { font-size: 15px; line-height: 1.45; }
.w2x-sub     { font-size: 13px; color: var(--w2-text-secondary); line-height: 1.4; }
.w2x-muted   { color: var(--w2-text-secondary); }
.w2x-faint   { color: var(--w2-text-tertiary); }
.w2x-accent  { color: var(--w2-accent-text); }
.w2x-violet  { color: var(--w2-x-violet); }
.w2x-success { color: var(--w2-success-text); }
.w2x-danger  { color: var(--w2-danger-text); }
.w2x-label {
    font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--w2-x-label);
}
.w2x-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.w2x-link {
    background: none; border: none; padding: 0; cursor: pointer; font: inherit;
    font-size: 13px; color: var(--w2-text-secondary); text-decoration: underline; text-underline-offset: 3px;
}
.w2x-link.accent { color: var(--w2-accent-text); text-decoration: none; font-weight: 500; }
.w2x-eyebrow {
    font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--w2-accent-text);
}

/* ─── Header (sub-pages) ──────────────────────────────────────────────────────── */
.w2x-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.w2x-head-title { flex: 1; min-width: 0; font-weight: 700; letter-spacing: -.025em; font-size: 24px; line-height: 1.1; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.w2x-head-sub { font-size: 13px; color: var(--w2-text-secondary); margin-top: 3px; }
.w2x-iconbtn {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14); background: var(--w2-x-overlay);
    color: var(--w2-text-primary); cursor: pointer; padding: 0; text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}
html.light .w2x-iconbtn { border-color: var(--w2-x-chip-border); }
.w2x-iconbtn:active { transform: scale(.95); }
.w2x-iconbtn.lg { width: 48px; height: 48px; }
.w2x-iconbtn.on { background: var(--w2-grad-primary); border-color: transparent; color: #fff; }
.w2x-iconbtn.plain { background: transparent; }

/* ─── Buttons ─────────────────────────────────────────────────────────────────── */
.w2x-btn {
    height: 52px; padding: 0 24px; border-radius: 999px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--w2-grad-primary); color: #fff; font-size: 16px; font-weight: 600;
    text-decoration: none; white-space: nowrap; flex: none;
    transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.w2x-btn:active { transform: scale(.98); }
.w2x-btn:disabled, .w2x-btn.disabled { opacity: .4; cursor: not-allowed; transform: none; }
.w2x-btn.block { width: 100%; }
/* app.css's light theme sets `html.light button` / `html.light a` / `html.light svg` to dark text, which
   outranks .w2x-btn: every gradient button and link-button showed dark text on blue in light mode. */
html.light .w2x-btn:not(.secondary):not(.danger),
html.light .w2x-btn:not(.secondary):not(.danger) svg { color: #fff; }
.w2x-btn.secondary { background: transparent; color: var(--w2-text-primary); border: 1px solid var(--w2-x-btn-border); font-weight: 500; }
.w2x-btn.danger { background: transparent; color: var(--w2-danger-text); border: 1px solid var(--w2-x-danger-border); font-weight: 500; }
.w2x-btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.w2x-btn.md { height: 44px; padding: 0 20px; font-size: 15px; }
.w2x-btn.xs { height: 34px; padding: 0 14px; font-size: 13px; }
.w2x-btn-row { display: flex; gap: 10px; }
.w2x-btn-row > .w2x-btn { flex: 1; }

/* Bottom-pinned action bar over a fade (wizards, filter sheets). */
.w2x-actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002;
    padding: 28px 20px calc(env(safe-area-inset-bottom, 0px) + 18px);
    background: linear-gradient(180deg, rgba(6, 7, 13, 0) 0%, var(--w2-bg-primary) 34%);
    display: flex; gap: 10px;
}
html.light .w2x-actionbar { background: linear-gradient(180deg, rgba(216, 222, 240, 0) 0%, var(--w2-bg-primary) 34%); }
.w2x-actionbar > .w2x-btn { flex: 1; }
.w2x-actionbar.above-nav { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); padding-bottom: 12px; }

/* ─── Chips, segmented control, toggle, slider ────────────────────────────────── */
.w2x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w2x-chips.scroll {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -20px; padding: 0 20px;
}
.w2x-chips.scroll::-webkit-scrollbar { display: none; }
.w2x-chip {
    height: 36px; padding: 0 15px; border-radius: 18px; flex: none;
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent; color: var(--w2-text-primary);
    border: 1px solid var(--w2-x-chip-border);
    font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
    transition: transform .12s ease, background .15s ease;
}
.w2x-chip:active { transform: scale(.97); }
.w2x-chip.on { background: var(--w2-grad-primary); color: #fff; border-color: transparent; }
.w2x-chip.dashed { border-style: dashed; color: var(--w2-accent-text); border-color: var(--w2-x-accent-line); }
.w2x-chip.solid { background: var(--w2-x-pin-bg); }
.w2x-chip.sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 15px; }

.w2x-seg {
    display: flex; height: 42px; padding: 3px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14); gap: 2px;
}
html.light .w2x-seg { border-color: var(--w2-x-chip-border); }
.w2x-seg > button {
    flex: 1; border: none; background: transparent; border-radius: 999px; cursor: pointer;
    color: var(--w2-text-secondary); font-size: 14px; font-weight: 500; white-space: nowrap;
    padding: 0 8px; transition: background .15s ease, color .15s ease;
}
.w2x-seg > button.on { background: var(--w2-grad-primary); color: #fff; font-weight: 600; }
.w2x-seg.lg { height: 46px; }

.w2x-toggle {
    position: relative; width: 51px; height: 31px; flex: none; cursor: pointer;
    border-radius: 16px; background: var(--w2-x-track); border: none; padding: 0;
    transition: background .2s ease;
}
.w2x-toggle::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px;
    background: #F5F7FF; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .2s ease;
}
.w2x-toggle.on { background: var(--w2-grad-primary); }
.w2x-toggle.on::after { transform: translateX(20px); background: #fff; }
.w2x-toggle:disabled { opacity: .45; cursor: not-allowed; }

.w2x-slider { display: flex; flex-direction: column; gap: 8px; }
.w2x-slider-head { display: flex; justify-content: space-between; align-items: baseline; }
.w2x-slider-value { font-weight: 700; letter-spacing: -.025em; font-size: 22px; }
.w2x-range {
    -webkit-appearance: none; appearance: none; width: 100%; height: 25px; margin: 0; background: transparent;
    --pct: 50%;
}
.w2x-range::-webkit-slider-runnable-track {
    height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--w2-accent-text) 0 var(--pct), var(--w2-x-track) var(--pct) 100%);
}
.w2x-range::-moz-range-track { height: 3px; border-radius: 2px; background: var(--w2-x-track); }
.w2x-range::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--w2-accent-text); }
.w2x-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 25px; height: 25px; border-radius: 50%; margin-top: -11px;
    background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); border: none; cursor: pointer;
}
.w2x-range::-moz-range-thumb { width: 25px; height: 25px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.w2x-ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--w2-text-tertiary); }

.w2x-stepper { display: inline-flex; align-items: center; gap: 14px; }
.w2x-stepper > button {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--w2-x-chip-border);
    background: transparent; color: var(--w2-text-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.w2x-stepper > span { min-width: 28px; text-align: center; font-weight: 700; font-size: 20px; }

.w2x-check {
    width: 22px; height: 22px; border-radius: 7px; flex: none; cursor: pointer;
    border: 1.5px solid var(--w2-x-chip-border); background: transparent; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.w2x-check.on { background: var(--w2-grad-primary); border-color: transparent; }

/* ─── Cards, inputs ───────────────────────────────────────────────────────────── */
.w2x-card {
    background: var(--w2-card-bg); border: 1px solid var(--w2-card-border);
    border-radius: 22px; padding: 16px 18px;
}
.w2x-card.flush { padding: 0; overflow: hidden; }
.w2x-card.tight { padding: 12px 14px; }
.w2x-card.accent { border-color: var(--w2-x-accent-line); background: var(--w2-x-accent-soft); }
.w2x-card.tappable { cursor: pointer; transition: transform .15s ease; text-decoration: none; color: inherit; display: block; }
.w2x-card.tappable:active { transform: scale(.99); }

.w2x-field { display: flex; flex-direction: column; gap: 7px; }
.w2x-field > label, .w2x-field-label { font-size: 13px; color: var(--w2-text-secondary); }
.w2x-field > label .req, .w2x-req { color: var(--w2-accent-text); margin-left: 2px; }
.w2x-field-hint { font-size: 12px; color: var(--w2-text-tertiary); }
.w2x-input, .w2x-select, .w2x-textarea {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
    background: var(--w2-input-bg); border: 1px solid var(--w2-card-border);
    color: var(--w2-text-primary); font-size: 15px; outline: none; box-sizing: border-box;
    transition: border-color .15s ease;
}
.w2x-textarea { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.45; font-family: inherit; }
.w2x-input::placeholder, .w2x-textarea::placeholder { color: var(--w2-text-tertiary); }
.w2x-input:focus, .w2x-select:focus, .w2x-textarea:focus { border-color: var(--w2-x-accent-line); }
.w2x-select { -webkit-appearance: none; appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239AA3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
.w2x-inputbox {
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 14px;
    background: var(--w2-input-bg); border: 1px solid var(--w2-card-border); color: var(--w2-text-secondary);
}
.w2x-inputbox > input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; color: var(--w2-text-primary); font-size: 15px; }
.w2x-inputbox > input::placeholder { color: var(--w2-text-tertiary); }
.w2x-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w2x-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* ─── Lists ───────────────────────────────────────────────────────────────────── */
.w2x-section { display: flex; flex-direction: column; }
.w2x-section > .w2x-label, .w2x-section > .w2x-label-row { margin-bottom: 4px; }
.w2x-row {
    display: flex; gap: 14px; align-items: center; padding: 12px 0;
    border-bottom: 1px solid var(--w2-x-hair); color: var(--w2-text-primary);
    text-decoration: none; background: none; border-left: none; border-right: none; border-top: none;
    width: 100%; text-align: left; cursor: pointer; font: inherit;
}
.w2x-row.static { cursor: default; }
.w2x-row.pad { padding: 14px 0; }
.w2x-row:last-child.nolast { border-bottom: none; }
.w2x-row-main { flex: 1; min-width: 0; }
.w2x-row-title { font-size: 15px; font-weight: 500; color: var(--w2-text-primary); }
.w2x-row-sub { font-size: 13px; color: var(--w2-text-secondary); margin-top: 2px; }
.w2x-row-value { font-size: 15px; color: var(--w2-text-secondary); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.w2x-row > .w2-icon:last-child, .w2x-chev { color: var(--w2-text-tertiary); }
.w2x-well {
    width: 38px; height: 38px; border-radius: 50%; flex: none;
    background: var(--w2-x-well); color: var(--w2-x-violet);
    display: inline-flex; align-items: center; justify-content: center;
}
.w2x-well.lg { width: 44px; height: 44px; }
.w2x-well.accent { color: var(--w2-accent-text); }
.w2x-badge {
    display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px;
    font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
    background: var(--w2-x-well); color: var(--w2-text-secondary);
}
.w2x-badge.accent  { background: rgba(91, 155, 255, .14); color: var(--w2-accent-text); }
.w2x-badge.violet  { background: rgba(167, 139, 250, .14); color: var(--w2-x-violet); }
.w2x-badge.success { background: rgba(95, 211, 154, .13); color: var(--w2-success-text); }
.w2x-badge.danger  { background: rgba(229, 138, 126, .14); color: var(--w2-danger-text); }
.w2x-badge.warning { background: rgba(242, 184, 102, .14); color: var(--w2-warning-text); }
.w2x-badge.overlay { background: rgba(6, 7, 13, .72); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); height: 26px; padding: 0 10px; border-radius: 13px; }
.w2x-badge.count { min-width: 20px; justify-content: center; padding: 0 6px; background: var(--w2-grad-primary); color: #fff; }
.w2x-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--w2-success-text); flex: none; display: inline-block; }
.w2x-dot.live { box-shadow: 0 0 0 4px rgba(95, 211, 154, .16); }

/* ─── Stat strip ──────────────────────────────────────────────────────────────── */
.w2x-stats { display: flex; border-top: 1px solid var(--w2-x-hair); border-bottom: 1px solid var(--w2-x-hair); }
.w2x-stats > * { flex: 1 1 0; padding: 14px 0; text-align: center; min-width: 0; display: block; }
.w2x-stats > * + * { border-left: 1px solid var(--w2-x-hair); }
.w2x-stat-num { font-weight: 700; letter-spacing: -.025em; font-size: 22px; line-height: 1; }
.w2x-stat-num.lg { font-size: 28px; }
.w2x-stat-label { font-size: 12px; color: var(--w2-text-secondary); margin-top: 4px; }
.w2x-stats.tappable > * { cursor: pointer; }

/* ─── Empty state ─────────────────────────────────────────────────────────────── */
.w2x-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 16px; }
.w2x-empty-icon {
    width: 64px; height: 64px; border-radius: 50%; margin-bottom: 6px;
    border: 1px solid var(--w2-x-accent-line); background: var(--w2-x-accent-soft); color: var(--w2-accent-text);
    display: flex; align-items: center; justify-content: center;
}
.w2x-empty-title { font-weight: 700; letter-spacing: -.025em; font-size: 22px; }
.w2x-empty-text { font-size: 14px; color: var(--w2-text-secondary); max-width: 300px; line-height: 1.45; }
.w2x-empty .w2x-btn { margin-top: 8px; }

/* ─── Avatar ──────────────────────────────────────────────────────────────────── */
.w2x-avatar {
    width: 76px; height: 76px; border-radius: 50%; flex: none; overflow: hidden;
    border: 1px solid var(--w2-accent-text); background: var(--w2-x-navy); color: var(--w2-accent-text);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; letter-spacing: -.025em; font-size: 34px;
}
.w2x-avatar img { width: 100%; height: 100%; object-fit: cover; }
.w2x-avatar.sm { width: 44px; height: 44px; font-size: 18px; }
.w2x-avatar.md { width: 56px; height: 56px; font-size: 24px; }

/* ─── Tiles (host dashboard, admin) ───────────────────────────────────────────── */
.w2x-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w2x-tile {
    position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px;
    border-radius: 20px; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border);
    color: var(--w2-text-primary); text-decoration: none; cursor: pointer; text-align: left; font: inherit;
    align-items: flex-start; justify-content: flex-start; width: 100%;
    transition: transform .15s ease;
}
.w2x-tile:active { transform: scale(.98); }
.w2x-tile-title { font-size: 15px; font-weight: 600; }
.w2x-tile-sub { font-size: 12.5px; color: var(--w2-text-secondary); margin-top: 2px; line-height: 1.35; }
.w2x-tile .w2x-badge.count { position: absolute; top: 14px; right: 14px; }

/* ─── Sheets ──────────────────────────────────────────────────────────────────── */
.w2x-scrim { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: w2x-fade .18s ease both; }
.w2x-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1101; max-height: 88vh; overflow-y: auto;
    background: var(--w2-bg-secondary); border-radius: 28px 28px 0 0; border-top: 1px solid var(--w2-card-border);
    padding: 10px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
    display: flex; flex-direction: column; gap: 18px; animation: w2x-up .24s cubic-bezier(.2, .9, .3, 1) both;
    max-width: 640px; margin: 0 auto;
}
.w2x-sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--w2-x-track); margin: 0 auto 2px; flex: none; }
.w2x-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w2x-sheet-title { font-weight: 700; letter-spacing: -.025em; font-size: 24px; margin: 0; }
.w2x-panel {
    background: var(--w2-glass-strong-bg); border: 1px solid var(--w2-card-border);
    border-radius: 28px; box-shadow: var(--w2-x-panel-shadow);
}
@keyframes w2x-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes w2x-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ─── Progress (wizard) ───────────────────────────────────────────────────────── */
.w2x-progress { height: 3px; border-radius: 2px; background: var(--w2-x-track); overflow: hidden; }
.w2x-progress > div { height: 100%; background: var(--w2-grad-primary); border-radius: 2px; transition: width .3s ease; }

/* ─── Choice cards (radio-style) ──────────────────────────────────────────────── */
.w2x-choice {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; cursor: pointer;
    border: 1px solid var(--w2-card-border); background: var(--w2-card-bg); color: var(--w2-text-primary);
    text-align: left; font: inherit; width: 100%;
}
.w2x-choice.on { border: 1.5px solid var(--w2-accent-text); background: var(--w2-x-accent-soft); }
.w2x-choice.dim { opacity: .55; cursor: not-allowed; }
.w2x-choice-title { font-size: 15px; font-weight: 600; }
.w2x-choice-sub { font-size: 13px; color: var(--w2-text-secondary); margin-top: 3px; line-height: 1.4; }
.w2x-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--w2-x-chip-border); flex: none; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.w2x-choice.on .w2x-radio { border-color: var(--w2-accent-text); }
.w2x-choice.on .w2x-radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--w2-grad-primary); }

/* ─── Callouts ────────────────────────────────────────────────────────────────── */
.w2x-callout {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px;
    background: var(--w2-x-accent-soft); border: 1px solid var(--w2-x-accent-line);
    font-size: 13.5px; line-height: 1.45; color: var(--w2-text-secondary);
}
.w2x-callout > .w2-icon { color: var(--w2-accent-text); margin-top: 1px; }
.w2x-callout.danger { background: rgba(229, 138, 126, .08); border-color: var(--w2-x-danger-border); color: var(--w2-danger-text); }
.w2x-callout.success { background: rgba(95, 211, 154, .08); border-color: rgba(95, 211, 154, .35); color: var(--w2-success-text); }

/* ─── Media (flyer cards) ─────────────────────────────────────────────────────── */
.w2x-media { position: relative; overflow: hidden; background: linear-gradient(135deg, #1A1F33, #0F1220); }
.w2x-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2x-media-fade::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 7, 13, 0) 40%, rgba(6, 7, 13, .92) 100%);
}
.w2x-media-tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.w2x-media-tr { position: absolute; top: 12px; right: 12px; z-index: 2; }
.w2x-media-bl { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; }
.w2x-roundbtn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(6, 7, 13, .55); color: #fff; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 0;
}
.w2x-roundbtn.on { color: #FF5C8A; }

/* ─── Spinner ─────────────────────────────────────────────────────────────────── */
.w2x-spinner { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--w2-x-track); border-top-color: var(--w2-accent-text); animation: spin .8s linear infinite; margin: 40px auto; }

@media (min-width: 700px) {
    .w2x-page { padding-bottom: 60px; }
}

/* ─── Tab bar (Layout/BottomNav.razor) ────────────────────────────────────────── */
.w2-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; pointer-events: none; }
.w2-nav-wrap {
    max-width: 460px; margin: 0 auto; pointer-events: auto;
    padding: 0 12px max(14px, calc(env(safe-area-inset-bottom, 0px) - 12px));
}
.w2-nav-pill {
    height: 62px; border-radius: 31px; padding: 0 6px;
    background: var(--w2-nav-bg); border: 1px solid var(--w2-x-hair);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    display: flex; justify-content: space-around; align-items: center;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
html.light .w2-nav-pill { box-shadow: 0 10px 30px rgba(15, 23, 42, .16); }
.w2-nav-item {
    flex: 0 1 56px; min-width: 0; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--w2-nav-inactive); text-decoration: none; background: none; border: none; padding: 0; cursor: pointer;
    font-size: 9.5px; font-weight: 600; letter-spacing: .04em; font-family: var(--w2-x-font);
    -webkit-tap-highlight-color: transparent; transition: color .15s ease;
}
.w2-nav-item svg { width: 21px; height: 21px; margin: 0; }
.w2-nav-item.active { color: var(--w2-nav-active); }
.w2-nav-item.active::after { content: none; display: none; }
.w2-nav-item:active { transform: scale(.92); }
.w2-nav-icon { position: relative; display: inline-flex; }
.w2-nav-label { line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.w2-nav-badge {
    position: absolute; top: -6px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--w2-grad-primary); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: 0;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--w2-bg-primary);
}
.w2-nav-menu { padding: 4px 16px; margin-bottom: 10px; max-height: 60vh; overflow-y: auto; }
.w2-nav-menu-row:last-child { border-bottom: none; }
.w2-nav-menu-row.active .w2x-row-title { color: var(--w2-accent-text); }

/* ─── ChipGroup (Components/Filters/ChipGroup.razor) in the redesign ──────────── */
.w2-chip {
    min-height: 36px; height: 36px; padding: 0 15px; border-radius: 18px; gap: 7px;
    border: 1px solid var(--w2-x-chip-border); background: transparent; color: var(--w2-text-primary);
    font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.w2-chip:hover { border-color: var(--w2-x-chip-border); }
.w2-chip.active { background: var(--w2-grad-primary); color: #fff; border-color: transparent; box-shadow: none; }
.w2-chip-icon { display: none; }          /* no emoji in the redesign */
.w2-filter-title {
    font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--w2-x-label); margin: 0 0 12px;
}
.w2-chipgroup-head { margin: 0 0 12px; align-items: baseline; }
.w2-chipgroup-toggle, .w2-chipgroup-toggle.is-head, html.light .w2-chipgroup-toggle {
    min-height: 0; padding: 0; border: none; background: none; border-radius: 0;
    font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--w2-text-secondary);
    text-decoration: underline; text-underline-offset: 3px;
}
.w2-chipgroup-toggle:hover { background: none; }
.w2-chipgroup-toggle:not(.is-head) { margin-top: 12px; }
.w2h-panel-scroll .w2-chipgroup, .w2x-stack > .w2-chipgroup, .w2x-card .w2-chipgroup:last-child { margin-bottom: 0; }
.w2-date-overlay { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; -webkit-appearance: none; appearance: none; }
.w2-space-filters .w2-chipgroup { margin-bottom: 0; }
.w2-space-filters .w2-chipgroup + .w2-chipgroup { margin-top: 12px; }

/* ─── Trend badge (Components/TrendBadge.razor) ───────────────────────────────── */
.w2x-trend {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; flex: none;
    background: rgba(6, 7, 13, .7); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.w2x-trend > i { width: 6px; height: 6px; border-radius: 50%; background: var(--w2-x-violet); flex: none; }
.w2x-trend.views { text-transform: none; letter-spacing: 0; font-weight: 600; gap: 5px; }
html.light .w2x-trend:not(.on-photo) { background: rgba(43, 75, 255, .1); color: var(--w2-accent-text); }

/* ─── Flyer-first event card (Events tab, screen 08) ──────────────────────────── */
.w2x-evcard { display: block; border-radius: 24px; overflow: hidden; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); text-decoration: none; color: var(--w2-text-primary); }
.w2x-evcard-media { height: 230px; }
.w2x-evcard-media > img { position: absolute; inset: 0; }
.w2x-evcard-when { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--w2-accent-text); text-transform: uppercase; }
.w2x-evcard-title { font-weight: 700; letter-spacing: -.025em; font-size: 25px; line-height: 1.05; margin-top: 6px; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w2x-evcard-foot { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.w2x-evcard-price { font-weight: 700; letter-spacing: -.025em; font-size: 19px; color: var(--w2-accent-text); white-space: nowrap; }
.w2x-evcard .w2x-media-tl .w2x-trend { background: rgba(6, 7, 13, .7); color: #fff; }

/* Blazor focuses the page heading after navigation; no ring on it. Flat page background. */
h1:focus, h1:focus-visible, [tabindex="-1"]:focus { outline: none; }
.w2-ambient, .w2-ambient::before, .w2-ambient::after { display: none !important; }

/* Budget tiles (Preferences, profile set-up). */
.w2x-budget {
    min-height: 64px; border-radius: 18px; border: 1px solid var(--w2-card-border); background: transparent; cursor: pointer;
    color: var(--w2-text-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 12px;
    font: inherit;
}
.w2x-budget strong { font-size: 17px; font-weight: 700; line-height: 1; }
.w2x-budget span { font-size: 13px; font-weight: 500; }
.w2x-budget.on { background: var(--w2-grad-primary); border-color: transparent; color: #fff; }

/* ─── Shared utilities from app.css, restyled (used across ordering, tabs, rentals, admin) ─── */
.w2-surface { background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); border-radius: 22px; padding: 16px 18px; }
.w2-pill { height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 600; letter-spacing: .02em;
    background: var(--w2-x-well); color: var(--w2-text-secondary); border: none; }
.w2-pill.info    { background: rgba(91, 155, 255, .14); color: var(--w2-accent-text); border: none; }
.w2-pill.warn    { background: rgba(242, 184, 102, .14); color: var(--w2-warning-text); border: none; }
.w2-pill.success { background: rgba(95, 211, 154, .13); color: var(--w2-success-text); border: none; }
.w2-pill.danger  { background: rgba(229, 138, 126, .14); color: var(--w2-danger-text); border: none; }
.w2-btn-primary { height: 52px; border-radius: 999px; background: var(--w2-grad-primary); font-weight: 600; box-shadow: none; }
.w2-btn-primary:disabled { opacity: .4; }
.w2-btn-ghost { min-height: 52px; border-radius: 999px; border: 1px solid var(--w2-x-btn-border); color: var(--w2-text-primary); font-weight: 500; }
html.light .w2-btn-ghost { color: var(--w2-text-primary); }
.w2-link-btn { font-weight: 500; }
.w2-input { height: 50px; border-radius: 14px; border: 1px solid var(--w2-card-border); background: var(--w2-input-bg); font-size: 15px; padding: 0 16px; }
.w2-input:focus { border-color: var(--w2-x-accent-line); }
.w2-input::placeholder { color: var(--w2-text-tertiary); }
select.w2-input { appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239AA3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
textarea.w2-input { height: auto; padding: 14px 16px; }
.w2-alert { border-radius: 18px; font-weight: 500; font-size: 13.5px; }
.w2-alert.ok  { background: rgba(95, 211, 154, .08); border-color: rgba(95, 211, 154, .35); }
.w2-alert.err { background: rgba(229, 138, 126, .08); border-color: var(--w2-x-danger-border); }
.w2-venue-logo { border-radius: 50%; background: var(--w2-x-navy); border: 1px solid var(--w2-x-accent-line); font-weight: 700; color: var(--w2-accent-text); }
.w2-list-card { margin-bottom: 10px; }
.w2-choice { border-radius: 16px; background: var(--w2-card-bg); border-color: var(--w2-card-border); padding: 13px 14px; }
.w2-choice.on { border-color: var(--w2-accent-text); background: var(--w2-x-accent-soft); }
.w2-cardopt { border-radius: 16px; background: var(--w2-card-bg); border-color: var(--w2-card-border); }
.w2-cardopt.selected { border-color: var(--w2-accent-text); background: var(--w2-x-accent-soft); }
.w2-cardopt.selected .w2-choice-mark, .w2-choice.on .w2-choice-mark { background: var(--w2-grad-primary); }
.w2-tip { border-radius: 18px; border-color: var(--w2-card-border); background: transparent; }
.w2-tip.active, html.light .w2-tip.active { background: var(--w2-grad-primary); box-shadow: none; }
.w2-qty { border-color: var(--w2-x-chip-border); background: transparent; }
.w2-divider { background: var(--w2-x-hair); }
.w2-total-row { border-top-color: var(--w2-x-hair); font-weight: 700; letter-spacing: -.02em; }
.w2-sheet-title { font-weight: 700; letter-spacing: -.025em; font-size: 24px; }
.w2-stripe-mount { border-radius: 18px; background: var(--w2-card-bg); border-color: var(--w2-card-border); }
.w2-back-btn { border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: var(--w2-x-overlay); color: var(--w2-text-primary); }
.w2-back-btn svg { color: var(--w2-text-primary); }
.glass { background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); backdrop-filter: none; -webkit-backdrop-filter: none; }
.glass-strong { background: var(--w2-glass-strong-bg); border: 1px solid var(--w2-card-border); }
.gradient-bg { background: var(--w2-grad-primary) !important; }
.gradient-text { background: none; -webkit-text-fill-color: currentColor; color: var(--w2-text-primary); }
.host-tile { border-radius: 20px !important; }

/* Underlined tabs (Rentals: Catalog · Requests · Active · Returns). */
.w2x-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--w2-x-hair); overflow-x: auto; scrollbar-width: none; }
.w2x-tabs::-webkit-scrollbar { display: none; }
.w2x-tabs > button {
    flex: none; background: none; border: none; padding: 0 0 12px; margin-bottom: -1px; cursor: pointer; font: inherit;
    font-size: 15px; font-weight: 500; color: var(--w2-text-tertiary); border-bottom: 2px solid transparent; white-space: nowrap;
}
.w2x-tabs > button > span { margin-left: 4px; }
.w2x-tabs > button.on { color: var(--w2-text-primary); border-bottom-color: var(--w2-accent-text); }

/* ─── Edge-to-edge phone app (MainPage.xaml: SafeAreaEdges="None") ────────────────
   The layout root pads every page below the status bar / Dynamic Island, so inside it the
   pages' own --w2-safe-top is 0 (no double gap). Full-screen screens that draw under the
   status bar (the map) take the real inset back with .w2-fullbleed. Android pads natively. */
.w2-layout-root.platform-maui { padding-top: env(safe-area-inset-top, 0px); --w2-safe-top: 0px; }
html.w2-android .w2-layout-root.platform-maui { padding-top: 0; }
.w2-fullbleed { --w2-safe-top: env(safe-area-inset-top, 0px); }
html.w2-android .w2-fullbleed { --w2-safe-top: 0px; }
/* Scrolled content passes under the status bar: keep a soft backdrop there (not on the map). */
.w2-layout-root.platform-maui::before {
    content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); z-index: 1000; pointer-events: none;
    background: linear-gradient(180deg, var(--w2-bg-primary) 70%, rgba(6, 7, 13, 0));
}
html.light .w2-layout-root.platform-maui::before { background: linear-gradient(180deg, var(--w2-bg-primary) 70%, rgba(216, 222, 240, 0)); }
.w2-layout-root.platform-maui:has(.w2-fullbleed)::before, html.w2-android .w2-layout-root.platform-maui::before { display: none; }

/* Native controls (checkboxes, radios, selects, date pickers) follow the theme; a plain white
   checkbox on the dark booking page looked broken. accent-color tints the checked state. */
/* Scoped to form controls: on <html> it would also change how embedded frames (Stripe's card form) are backed. */
html.dark input, html.dark select, html.dark textarea  { color-scheme: dark; }
html.light input, html.light select, html.light textarea { color-scheme: light; }
input[type=checkbox], input[type=radio] { accent-color: var(--w2-accent-text); }

/* ─── Drink taste profile (TasteProfileView) + guest menu search / ratings ──────────────────────── */
:root, html.dark {
    --w2-ts-white: #cfd68f; --w2-ts-red: #cf7384; --w2-ts-rose: #dca0b4; --w2-ts-sparkling: #86c5d6;
    --w2-ts-orange: #d9a066; --w2-ts-dessert: #c9ad72; --w2-ts-fortified: #b58468; --w2-ts-cocktail: #a897d6;
    --w2-ts-mocktail: #7fc4a6; --w2-ts-beer: #d8b45e; --w2-ts-cider: #a9c673; --w2-ts-spirit: #98a8bf; --w2-ts-other: #8c93a3;
}
html.light {
    --w2-ts-white: #8f9a2a; --w2-ts-red: #b03a52; --w2-ts-rose: #bf5f82; --w2-ts-sparkling: #2a8aa6;
    --w2-ts-orange: #b8702a; --w2-ts-dessert: #9a7a2a; --w2-ts-fortified: #8a5236; --w2-ts-cocktail: #6f5cb5;
    --w2-ts-mocktail: #2a8a68; --w2-ts-beer: #a67c12; --w2-ts-cider: #5f8a22; --w2-ts-spirit: #566a85; --w2-ts-other: #6b7280;
}
.w2-ts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.w2-ts-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--w2-ts-other); flex: none; }
.w2-ts-white .w2-ts-dot { background: var(--w2-ts-white); }         .w2-ts-red .w2-ts-dot { background: var(--w2-ts-red); }
.w2-ts-rose .w2-ts-dot { background: var(--w2-ts-rose); }           .w2-ts-sparkling .w2-ts-dot { background: var(--w2-ts-sparkling); }
.w2-ts-orange .w2-ts-dot { background: var(--w2-ts-orange); }       .w2-ts-dessert .w2-ts-dot { background: var(--w2-ts-dessert); }
.w2-ts-fortified .w2-ts-dot { background: var(--w2-ts-fortified); } .w2-ts-cocktail .w2-ts-dot { background: var(--w2-ts-cocktail); }
.w2-ts-mocktail .w2-ts-dot { background: var(--w2-ts-mocktail); }   .w2-ts-beer .w2-ts-dot { background: var(--w2-ts-beer); }
.w2-ts-cider .w2-ts-dot { background: var(--w2-ts-cider); }         .w2-ts-spirit .w2-ts-dot { background: var(--w2-ts-spirit); }
.w2-ts-full { display: flex; flex-direction: column; gap: 10px; }
.w2-ts-scale { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--w2-text-secondary); }
.w2-ts-scale > span { width: 44px; flex: none; }
.w2-ts-scale > span:last-child { text-align: right; }
.w2-ts-segs { flex: 1; display: flex; gap: 4px; }
.w2-ts-segs i { flex: 1; height: 6px; border-radius: 3px; background: var(--w2-x-track); }
.w2-ts-segs i.on { background: var(--w2-grad-primary); }
.w2-ts-tasting { margin: 0; font-size: 14px; line-height: 1.45; font-style: italic; color: var(--w2-text-secondary); }

.w2-star, html.light .w2-star { color: var(--w2-accent-text); fill: currentColor; }   /* html.light svg would otherwise paint it near-black */
.w2-star.off, html.light .w2-star.off { color: var(--w2-x-track); }
.w2-stars { display: inline-flex; align-items: center; gap: 2px; }
html.light .w2x-chip.on svg { color: #fff; }   /* the min-rating star chip: html.light svg would paint it dark on the blue chip */
.w2-star-btn { background: none; border: none; padding: 4px; cursor: pointer; display: inline-flex; }
.w2-ratebar { display: flex; align-items: center; gap: 8px; min-height: 16px; font-size: 12px; color: var(--w2-text-secondary); }
.w2-ratebar > div { flex: 1; height: 6px; border-radius: 3px; background: var(--w2-x-track); overflow: hidden; }
.w2-ratebar > div > i { display: block; height: 100%; background: var(--w2-grad-primary); }

/* Regression fix: MudBlazor "Secondary" text (#2B4BFF) is ~3.2:1 on the dark panels; text uses the readable accent token. */
html.dark .mud-secondary-text, html.dark .mud-typography.mud-secondary-text { color: var(--w2-accent-text) !important; }

/* ─── Age gates (migration 453): the confirmation box and the 18+ / 19+ badge ──────────────────────────────── */
.w2x-agebox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; line-height: 1.45; color: var(--w2-text-primary); }
.w2x-agebox input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; cursor: pointer; accent-color: #2a6dff; }
.w2x-agebox input[aria-invalid="true"] { outline: 2px solid var(--w2-danger-text); outline-offset: 2px; border-radius: 4px; }
.w2x-agebadge {
    display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; flex: none;
    font-size: 11.5px; font-weight: 800; letter-spacing: .02em; line-height: 1;
    border: 1px solid rgba(91, 155, 255, .45); background: rgba(91, 155, 255, .14); color: var(--w2-accent-text);
}
.w2x-agebadge.overlay { background: rgba(6, 7, 13, .72); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ─── AI search result cards (AiSearchResultCard) ─────────────────────────────────── */
.w2ai-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 18px; text-decoration: none; color: var(--w2-text-primary);
    background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); min-width: 0; }
.w2ai-card:hover { border-color: var(--w2-accent-text); }
.w2ai-card:focus-visible { outline: 2px solid var(--w2-accent-text); outline-offset: 2px; }
.w2ai-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--w2-grad-primary); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.w2ai-thumb { flex: none; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; background: var(--w2-x-well); color: var(--w2-text-tertiary); display: inline-flex; align-items: center; justify-content: center; }
.w2ai-thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w2ai-body { flex: 1; min-width: 0; display: block; }
.w2ai-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.w2ai-sub { display: block; font-size: 12px; color: var(--w2-text-secondary); margin-top: 2px; overflow-wrap: anywhere; }
.w2ai-facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.w2ai-times { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 7px; }
.w2ai-times-l { font-size: 11px; font-weight: 600; color: var(--w2-text-secondary); margin-right: 2px; }
.w2ai-cards { display: grid; gap: 8px; margin: 4px 0 12px 36px; }
.w2ai-note { font-size: 12px; color: var(--w2-text-secondary); margin: 6px 0 0; line-height: 1.4; }
.w2ai-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

/* ─── Room event details (migration 463): pill grid + guest chip row ───────────── */
.w2ev-groups { display: flex; flex-direction: column; gap: 14px; }
.w2ev-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--w2-text-tertiary); margin-bottom: 8px; }
.w2ev-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.w2ev-pill {
    height: 36px; padding: 0 13px 0 11px; border-radius: 18px; flex: none;
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
    background: transparent; color: var(--w2-text-primary); border: 1px solid var(--w2-x-chip-border);
    font-size: 13.5px; font-weight: 500; transition: transform .12s ease, background .15s ease;
}
.w2ev-pill:active { transform: scale(.97); }
.w2ev-pill.on { background: var(--w2-grad-primary); color: #fff; border-color: transparent; font-weight: 600; }
.w2ev-row { display: flex; flex-wrap: wrap; gap: 6px; }
.w2ev-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 14px;
    background: rgba(91, 155, 255, .14); color: var(--w2-accent-text); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.w2ev-card { border-radius: 14px; border: 1px solid var(--w2-input-border); margin-bottom: 14px; background: rgba(255, 255, 255, .03); }
html.light .w2ev-card { background: rgba(0, 0, 0, .02); }
.w2ev-card > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    font-size: 14px; font-weight: 600; color: var(--w2-text-primary);
}
.w2ev-card > summary::-webkit-details-marker { display: none; }
.w2ev-card > summary .w2ev-chev { margin-left: auto; transition: transform .2s ease; color: var(--w2-text-tertiary); }
.w2ev-card[open] > summary .w2ev-chev { transform: rotate(180deg); }
.w2ev-card .w2ev-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 14px; }
.w2ev-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--w2-grad-primary); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.w2ev-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.w2ev-cap { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--w2-text-secondary); }
.w2ev-cap > span { display: inline-flex; align-items: center; gap: 5px; }
.w2ev-cap input {
    width: 100%; height: 38px; padding: 0 10px; border-radius: 10px; font-size: 14px;
    background: var(--w2-input-bg); border: 1px solid var(--w2-input-border); color: var(--w2-text-primary); box-sizing: border-box;
}
.w2ev-capline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--w2-text-secondary); margin-bottom: 8px; }
.w2ev-capline b { color: var(--w2-text-primary); font-weight: 700; }

.w2ev-suggest {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 12px; cursor: pointer; text-align: left;
    background: rgba(91, 155, 255, .10); border: 1px dashed var(--w2-x-accent-line); color: var(--w2-text-primary); font-size: 13px; font-weight: 500;
}
.w2ev-suggest .w2ev-suggest-go { margin-left: auto; color: var(--w2-accent-text); font-weight: 700; white-space: nowrap; }

/* ─── Room hold card (migration 464): waiting for the venue, held with a live countdown ─── */
.w2hold { border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); color: var(--w2-text-primary); }
.w2hold.held { border-color: var(--w2-accent-text); background: color-mix(in srgb, var(--w2-accent-text) 8%, var(--w2-card-bg)); }
.w2hold-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.w2hold-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.w2hold-venue { font-size: 15px; font-weight: 700; color: var(--w2-text-primary); text-decoration: none; overflow-wrap: anywhere; }
.w2hold-room { font-size: 12px; color: var(--w2-text-secondary); overflow-wrap: anywhere; }
.w2hold-when { margin: 6px 0 0; font-size: 13px; color: var(--w2-text-secondary); }
.w2hold-note { margin: 6px 0 0; font-size: 13px; font-style: italic; color: var(--w2-text-primary); }
.w2hold-help { margin: 8px 0 0; font-size: 12px; color: var(--w2-text-secondary); line-height: 1.4; }
.w2hold-err { margin: 8px 0 0; font-size: 12px; color: var(--w2-danger-text); }
.w2hold-count { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--w2-accent-text); font-variant-numeric: tabular-nums; }
.w2hold-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.w2hold-actions .w2x-btn { flex: 1 1 140px; }
.w2hold-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.w2hold-form label, .w2hold-notel { display: block; font-size: 12px; color: var(--w2-text-secondary); }
.w2hold-form .w2bk-input, .w2hold-notel .w2bk-input { margin-top: 4px; height: 40px; width: 100%; border-radius: 12px; border: 1px solid var(--w2-input-border); background: var(--w2-input-bg); color: var(--w2-text-primary); padding: 0 10px; font-size: 14px; box-sizing: border-box; }
.w2hold-notel { margin-top: 8px; }
.w2hold.ai { margin: 0; }

/* ─── iPad (700 px and up) ────────────────────────────────────────────────────────
   iPad mini portrait (744) now takes the tablet layout instead of the 448 px phone column.
   Card lists (Events, Event spaces) become a grid, the tab bar and sheets get tablet sizes,
   and touch targets stay at 44 px or more. Theme variables only. */
.w2x-cardgrid { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 700px) {
    .w2x-page.wide { max-width: 760px; }
    .w2x-cardgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
    .w2x-cardgrid .w2x-evcard-media { height: 190px; }
    /* Tab bar: roomier pill with larger icons and 11 px labels */
    .w2-nav-wrap { max-width: 560px; }
    .w2-nav-pill { height: 68px; border-radius: 34px; }
    .w2-nav-item { flex: 0 1 84px; font-size: 11px; min-height: 48px; }
    .w2-nav-item svg { width: 23px; height: 23px; }
    /* Menu / cart / card sheets: a little wider than on a phone */
    .w2-sheet { max-width: 560px; }
    /* Touch targets */
    .w2x-chip, .w2-chip { min-height: 44px; height: 44px; }
    .w2x-iconbtn { min-width: 44px; min-height: 44px; }
    .w2x-actionbar.above-nav { max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1024px) {
    .w2x-page.wide { max-width: 1080px; }
    .w2x-cardgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    /* The website hides the bottom nav from 1024 px, so the sticky filter bar drops to the bottom. */
    .platform-web .w2x-actionbar.above-nav { bottom: env(safe-area-inset-bottom, 0px); }
}

/* ─── Virtual EA (migration 465): occasion card, suggestions, follow-up, memory screen ───────── */
.w2ea { border-radius: 18px; padding: 12px 14px; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); color: var(--w2-text-primary); display: flex; flex-direction: column; gap: 8px; }
.w2ea-top { display: flex; align-items: center; gap: 8px; }
.w2ea-icon { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--w2-accent-text); background: color-mix(in srgb, var(--w2-accent-text) 14%, transparent); }
.w2ea-title { font-size: 15px; font-weight: 700; }
.w2ea-help { margin: 0; font-size: 12px; color: var(--w2-text-secondary); line-height: 1.45; }
.w2ea-ok { margin: 0; font-size: 13px; font-weight: 600; color: var(--w2-success-text); }
.w2ea-err { margin: 0; font-size: 12px; color: var(--w2-danger-text); }
.w2ea-link, .w2ea-linkbtn { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--w2-accent-text); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.w2ea-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.w2ea-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w2ea-form label, .w2ea-wide { display: block; font-size: 12px; color: var(--w2-text-secondary); }
.w2ea-input { margin-top: 4px; height: 40px; width: 100%; border-radius: 12px; border: 1px solid var(--w2-input-border); background: var(--w2-input-bg); color: var(--w2-text-primary); padding: 0 10px; font-size: 14px; box-sizing: border-box; font-family: inherit; }
textarea.w2ea-input { height: auto; padding: 8px 10px; resize: vertical; }
.w2ea-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.w2ea-consent { border-radius: 12px; padding: 8px 10px; background: color-mix(in srgb, var(--w2-accent-text) 8%, transparent); border: 1px solid color-mix(in srgb, var(--w2-accent-text) 30%, transparent); }
.w2ea-consent-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.w2ea-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.w2ea-actions .w2x-btn { flex: 1 1 120px; }
.w2ea-sub { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--w2-text-tertiary); margin-top: 4px; }
.w2ea-cards { margin: 0; }
.w2ea-gifts { border-radius: 12px; padding: 8px 10px; background: var(--w2-input-bg); }
.w2ea-gifts-title, .w2ea-label { font-size: 12px; font-weight: 700; color: var(--w2-text-secondary); margin-bottom: 4px; }
.w2ea-gifts ul { margin: 0 0 4px; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.w2ea-stars { display: flex; gap: 6px; }
.w2ea-star { background: none; border: 0; padding: 4px; color: var(--w2-text-tertiary); cursor: pointer; line-height: 0; }
.w2ea-star.on { color: var(--w2-accent-text); }
.w2ea-star.on svg { fill: currentColor; }
.w2ea-cat { font-size: 12px; font-weight: 600; color: var(--w2-text-secondary); margin: 10px 0 6px; }
.w2ea-dishes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.w2ea-dish { display: flex; flex-direction: column; align-items: stretch; width: 92px; flex: 0 0 92px; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; color: var(--w2-text-primary); cursor: pointer; }
.w2ea-dish-img { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 92px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--w2-input-bg); border: 2px solid transparent; color: var(--w2-text-tertiary); }
.w2ea-dish.on .w2ea-dish-img { border-color: var(--w2-accent-text); }
.w2ea-dish-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w2ea-who { position: absolute; left: 4px; bottom: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: var(--w2-grad-primary); }
.w2ea-dish-name { display: block; margin-top: 4px; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.w2ea-occ { display: flex; flex-direction: column; gap: 8px; }
.w2ea-occ-top { display: flex; align-items: center; gap: 10px; }
.w2ea-meta { font-size: 12px; color: var(--w2-text-secondary); }
.w2ea-facts { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--w2-text-secondary); }
.w2ea-facts strong { color: var(--w2-text-primary); }
.w2ea-answers { border-radius: 12px; padding: 8px 10px; background: var(--w2-input-bg); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.w2ea-dishrow { display: flex; flex-wrap: wrap; gap: 6px; }
.w2ea-dishchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); font-size: 12px; }
.w2ea-dishchip img { width: 24px; height: 24px; border-radius: 999px; object-fit: cover; }
.w2ea-dishchip em { color: var(--w2-text-secondary); font-style: normal; }
.w2ea-confirm { border-radius: 12px; padding: 8px 10px; border: 1px solid var(--w2-x-danger-border); font-size: 13px; }
.w2ea-danger { margin-top: 6px; }
@media (min-width: 900px) { .w2ea-page { max-width: 640px; margin-left: auto; margin-right: auto; } }
.w2ea-page { padding-bottom: 110px; }
.w2ea-more { font-size: 13px; }
.w2ea-more summary, .w2ea-gifts summary { cursor: pointer; color: var(--w2-accent-text); font-weight: 600; font-size: 13px; padding: 2px 0; }
.w2ea-more[open] summary { margin-bottom: 6px; }
.w2ea-more .w2ea-wide { margin-top: 6px; }
.w2ea-step { min-height: 120px; }
.w2ea-stars { justify-content: space-between; }
.w2ea-linkbtn:disabled { opacity: .4; }

/* ─── Declutter (2026-10-24): grouped hubs and the More menu ─────────────────────── */
.w2x-group { background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); border-radius: 22px; overflow: hidden; }
.w2x-group-sum {
    display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 18px; cursor: pointer;
    list-style: none; color: var(--w2-text-primary); -webkit-tap-highlight-color: transparent;
}
.w2x-group-sum::-webkit-details-marker { display: none; }
.w2x-group-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.w2x-group-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.w2x-group-hint { font-size: 12.5px; color: var(--w2-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2x-group[open] .w2x-group-hint { display: none; }
.w2x-group .w2x-group-chev { color: var(--w2-text-tertiary); transition: transform .15s ease; }
.w2x-group[open] .w2x-group-chev { transform: rotate(180deg); }
.w2x-group-body { display: flex; flex-direction: column; border-top: 1px solid var(--w2-x-hair); }
.w2x-hublink {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px;
    width: 100%; box-sizing: border-box; background: transparent; border: 0; border-top: 1px solid var(--w2-x-hair);
    color: var(--w2-text-primary); text-decoration: none; font: inherit; text-align: left; cursor: pointer;
}
.w2x-group-body > .w2x-hublink:first-child { border-top: 0; }
.w2x-hublink:active { background: var(--w2-glass-bg); }
.w2x-hublink-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.w2x-hublink .w2x-hublink-chev { color: var(--w2-text-tertiary); }
.w2x-hublink .w2x-badge.count { position: static; }
.w2x-group-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 10px 18px; border-top: 1px solid var(--w2-x-hair);
}
.w2x-group-body > .w2x-group-row:first-child { border-top: 0; }
.w2x-group-row-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 600; }
.w2x-group-row-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2x-group-row-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 700px) {
    .w2x-group-body.cols { display: grid; grid-template-columns: 1fr 1fr; }
    .w2x-group-body.cols > .w2x-hublink:nth-child(2) { border-top: 0; }
    .w2x-group-body.cols > .w2x-hublink:nth-child(even) { border-left: 1px solid var(--w2-x-hair); }
}

.w2x-more { position: relative; flex: none; display: inline-flex; }
.w2x-more-back { position: fixed; inset: 0; z-index: 1250; }
.w2x-more-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 1260; min-width: 220px; padding: 6px;
    background: var(--w2-bg-secondary, var(--w2-bg-primary)); border: 1px solid var(--w2-glass-border); border-radius: 14px;
    box-shadow: 0 14px 40px var(--w2-shadow);
}
.w2x-more-item {
    width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent;
    color: var(--w2-text-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; text-decoration: none; white-space: nowrap;
}
.w2x-more-item:hover, .w2x-more-item:active { background: var(--w2-glass-bg); }
.w2x-more-item .on-mark { margin-left: auto; color: var(--w2-accent-text); }

/* Previous years recap of an occasion (virtual EA): calm, one short line per year */
.w2ea-hist { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; padding: 4px 2px; font-size: 16px; line-height: 1.45; }
.w2ea-hist-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--w2-text-primary); }
.w2ea-hist-year { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.w2ea-hist-head { font-weight: 600; color: var(--w2-text-primary); }
.w2ea-hist-line { color: var(--w2-text-secondary); font-size: 16px; }
.w2ea-hist-note { font-style: italic; }
.w2ea-hist-dishes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.w2ea-hist-dishes li { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 96px; color: var(--w2-text-primary); }
.w2ea-hist-dishes img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; margin-bottom: 2px; }
.w2ea-hist-dn { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.w2ea-hist-who { font-size: 16px; color: var(--w2-text-secondary); }
.w2ea-hist-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--w2-accent-text); font-weight: 600; font-size: 16px; }


/* ─── EA vendor listings (migration 481): simple, 16px+ text, 44px+ targets ───────────────────────────────── */
.w2v-page { display: flex; flex-direction: column; gap: 20px; padding: calc(var(--w2-safe-top, 0px) + 20px) 16px 110px; max-width: 560px; margin: 0 auto; color: var(--w2-text-primary); font-size: 16px; }
.w2v-page h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.w2v-lead { font-size: 16px; line-height: 1.5; color: var(--w2-text-secondary); margin: 0; }
.w2v-q { font-size: 20px; font-weight: 700; margin: 0; }
.w2v-label { display: block; font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.w2v-input { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px; border-radius: 14px; box-sizing: border-box;
    border: 1px solid var(--w2-card-border); background: var(--w2-bg-secondary, transparent); color: var(--w2-text-primary); font-family: inherit; }
textarea.w2v-input { min-height: 110px; resize: vertical; }
.w2v-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.w2v-chip { min-height: 48px; padding: 0 18px; font-size: 16px; border-radius: 24px; cursor: pointer; font-family: inherit;
    border: 1px solid var(--w2-card-border); background: transparent; color: var(--w2-text-primary); }
.w2v-chip.on { background: var(--w2-grad-primary); color: #fff; border-color: transparent; font-weight: 600; }
.w2v-btn { min-height: 52px; padding: 0 24px; border-radius: 26px; border: none; cursor: pointer; font-size: 17px; font-weight: 600; font-family: inherit;
    background: var(--w2-grad-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; width: 100%; box-sizing: border-box; }
html.light .w2v-btn:not(.ghost) { color: #fff; }
.w2v-btn.ghost { background: transparent; color: var(--w2-text-primary); border: 1px solid var(--w2-card-border); font-weight: 500; }
.w2v-btn.sm { min-height: 44px; width: auto; padding: 0 20px; font-size: 16px; }
.w2v-btn:disabled { opacity: .45; cursor: not-allowed; }
.w2v-row { display: flex; gap: 12px; }
.w2v-row > * { flex: 1; }
.w2v-err { color: var(--w2-danger-text, #f87171); font-size: 16px; margin: 0; }
.w2v-steps { font-size: 16px; color: var(--w2-text-secondary); }
.w2v-more { border-top: 1px solid var(--w2-card-border); padding-top: 14px; }
.w2v-more > summary { min-height: 44px; display: flex; align-items: center; font-size: 16px; font-weight: 600; cursor: pointer; color: var(--w2-accent-text); }
.w2v-more[open] > summary { margin-bottom: 14px; }
.w2v-more > div { display: flex; flex-direction: column; gap: 18px; }
.w2v-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 20px; font-weight: 700; }
.w2v-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 16px; font-size: 16px; font-weight: 600; background: var(--w2-x-accent-soft, rgba(61,139,255,.15)); color: var(--w2-accent-text); }
.w2v-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--w2-card-border); background: var(--w2-bg-secondary, transparent); }
.w2v-card .w2v-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: var(--w2-x-accent-soft, rgba(61,139,255,.15)); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--w2-accent-text); }
.w2v-card .w2v-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.w2v-card .w2v-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.w2v-card .w2v-line { font-size: 16px; color: var(--w2-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2v-spons { font-size: 16px; font-weight: 600; padding: 0 10px; line-height: 26px; border-radius: 10px; background: var(--w2-x-accent-soft, rgba(61,139,255,.15)); color: var(--w2-accent-text); }
.w2v-cards { display: flex; flex-direction: column; gap: 12px; }
.w2v-cards .w2v-card { flex-wrap: wrap; }
.w2v-cards .w2v-card .w2v-btn { flex: 0 0 100%; }

/* Admin: service/occasion chips differ from the kind chips (squarer, outlined when off) */
.w2v-chip.svc { border-radius: 10px; border-style: dashed; }
.w2v-chip.svc.on { border-style: solid; }
/* The shared BilingualEditor inside the vendor wizard only: 44px targets and 16px text (the component is unchanged elsewhere) */
.w2v-bi .w2x-seg { height: 48px !important; }
.w2v-bi .w2x-seg > button { min-height: 44px; font-size: 16px !important; min-width: 64px; }
.w2v-bi button, .w2v-bi .mud-button-root { min-height: 44px; min-width: 44px; font-size: 16px !important; }
.w2v-bi p, .w2v-bi span, .w2v-bi label, .w2v-bi .mud-input, .w2v-bi input, .w2v-bi textarea { font-size: 16px !important; }
/* EA "Stop suggesting this": 44px tall, 16px text */
.w2ea-linkbtn { min-height: 44px; font-size: 16px; padding: 0 4px; display: inline-flex; align-items: center; }

/* ─── Supplier catalog (migration 484): gallery, highlights, vendor page, review. Calm: 16px+ text, 44px+ targets ─────────── */
.w2v-page.w2v-admin { max-width: 760px; }
.w2v-note { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 16px; line-height: 1.45; background: var(--w2-x-accent-soft, rgba(61,139,255,.15)); color: var(--w2-text-primary); }
.w2v-line2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 16px; color: var(--w2-text-secondary); }
.w2v-sec { display: flex; flex-direction: column; gap: 12px; }
.w2v-chip.static { cursor: default; min-height: 40px; display: inline-flex; align-items: center; }
.w2v-card-link { cursor: pointer; }
.w2v-card-link:focus-visible { outline: 2px solid var(--w2-accent-text); outline-offset: 2px; }
.w2v-contact { display: contents; }
.w2v-cards .w2v-card .w2v-contact { display: block; flex: 0 0 100%; }
.w2v-cards .w2v-card .w2v-contact .w2v-btn { width: 100%; }
.w2v-hl { display: flex; gap: 10px; flex-wrap: wrap; font-size: 16px; color: var(--w2-text-primary); }
.w2v-hl-price { font-weight: 600; color: var(--w2-accent-text); }
.w2v-hl-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--w2-card-border); }
.w2v-hl-row img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.w2v-hl-row .w2v-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w2v-hl-row .w2v-name { font-size: 17px; font-weight: 700; display: flex; gap: 10px; flex-wrap: wrap; }
.w2v-linkbtn { background: none; border: none; padding: 0 4px; min-height: 44px; font-size: 16px; font-family: inherit; color: var(--w2-accent-text); cursor: pointer; text-decoration: underline; align-self: flex-start; }
.w2v-report { border-top: 1px solid var(--w2-card-border); padding-top: 8px; }
.w2v-spons.warn { background: rgba(248,113,113,.16); color: var(--w2-danger-text, #f87171); }
html.light .w2v-spons.warn { color: #b42318; background: rgba(217,45,32,.10); }

/* carousel */
.w2v-car { border-radius: 18px; overflow: hidden; outline: none; }
.w2v-car:focus-visible { box-shadow: 0 0 0 2px var(--w2-accent-text); }
.w2v-car-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 62vh; background: var(--w2-bg-secondary, #111); display: flex; align-items: center; justify-content: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.w2v-car-stage img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.w2v-car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 24px; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.w2v-car-nav.prev { left: 10px; } .w2v-car-nav.next { right: 10px; }
.w2v-car-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 2px 12px; min-height: 28px; line-height: 28px; border-radius: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; }
.w2v-car-full { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; outline: none; }
.w2v-car-full .w2v-car-stage { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; background: transparent; }
.w2v-car-close { position: absolute; top: calc(var(--w2-safe-top, 0px) + 12px); right: 12px; width: 48px; height: 48px; border-radius: 24px; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; cursor: pointer; }

/* owner editor: photos + highlights */
.w2v-sub { border-top: 1px solid var(--w2-card-border); padding-top: 6px; }
.w2v-sub > summary { min-height: 44px; display: flex; align-items: center; font-size: 17px; font-weight: 700; cursor: pointer; }
.w2v-sub > div { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.w2v-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.w2v-tile { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--w2-card-border); background: var(--w2-bg-secondary, transparent); display: flex; flex-direction: column; }
.w2v-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--w2-x-accent-soft, rgba(61,139,255,.15)); }
.w2v-tile.dim img, .w2v-hl-edit.dim { opacity: .55; }
.w2v-tag { position: absolute; top: 8px; left: 8px; padding: 0 10px; line-height: 26px; border-radius: 10px; font-size: 16px; font-weight: 600; background: rgba(0,0,0,.65); color: #fff; }
.w2v-tag.warn { top: auto; bottom: 62px; background: rgba(180,35,24,.9); }
.w2v-hl-edit .w2v-tag.warn { position: static; display: inline-block; }
.w2v-tile-actions { display: flex; gap: 6px; padding: 6px; justify-content: space-between; }
.w2v-mini { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--w2-card-border); background: transparent; color: var(--w2-text-primary); font-size: 18px; cursor: pointer; }
.w2v-mini.danger { color: var(--w2-danger-text, #f87171); }
.w2v-mini:disabled { opacity: .35; cursor: not-allowed; }
.w2v-file { position: relative; cursor: pointer; }
.w2v-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.w2v-hl-edit { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px; border-radius: 16px; border: 1px solid var(--w2-card-border); }
.w2v-hl-edit .w2v-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.w2v-hl-edit .w2v-name { font-size: 17px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.w2v-hl-edit .w2v-tile-actions { padding: 0; flex-wrap: wrap; justify-content: flex-end; max-width: 100px; }
.w2v-form { display: flex; flex-direction: column; gap: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--w2-card-border); }
.w2v-pick { width: 56px; height: 56px; padding: 0; border-radius: 12px; border: 2px solid transparent; overflow: hidden; cursor: pointer; background: none; }
.w2v-pick.on { border-color: var(--w2-accent-text); }
.w2v-pick img { width: 100%; height: 100%; object-fit: cover; }

/* wizard checklist */
.w2v-check { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--w2-card-border); }
.w2v-check-row { display: flex; gap: 12px; align-items: center; min-height: 36px; font-size: 16px; }
.w2v-check-row.done { color: var(--w2-text-secondary); }
.w2v-check-row.todo { font-weight: 600; }
.w2v-check-row.done > span:first-child { color: #2f9e5b; }

/* admin approval */
.w2v-arow { flex-wrap: wrap; }
.w2v-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; background: none; border: none; border-top: 1px solid var(--w2-card-border); font-size: 16px; font-weight: 600; color: var(--w2-accent-text); font-family: inherit; cursor: pointer; }
.w2v-panel { flex: 0 0 100%; display: flex; flex-direction: column; gap: 10px; }
.w2v-grp { border: 1px solid var(--w2-card-border); border-radius: 14px; padding: 0 14px; }
.w2v-grp > summary { min-height: 48px; display: flex; align-items: center; font-size: 16px; font-weight: 700; cursor: pointer; }
.w2v-grp[open] > summary { margin-bottom: 4px; }
.w2v-grp > div { padding-bottom: 14px; }
.w2v-facts { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.w2v-facts a:not(.w2v-btn) { color: var(--w2-accent-text); display: inline-flex; align-items: center; min-height: 44px; }
.w2v-k { font-size: 16px; font-weight: 600; color: var(--w2-text-secondary); margin-right: 8px; }
.w2v-checkrow { display: flex; align-items: center; gap: 14px; min-height: 48px; font-size: 16px; cursor: pointer; }
.w2v-checkrow input { width: 24px; height: 24px; flex: none; accent-color: var(--w2-accent-text); }
