/* ─────────────────────────────────────────────────────────────────────────────
   Account redesign 2026-11 (owner PDF pages 8-15): tab bar per account, Host tab, Business tab, Setup, Profile.
   Blue brand only (var(--w2-grad-primary) / var(--w2-accent-text)); theme variables only, dark + light.
   ───────────────────────────────────────────────────────────────────────────── */

/* Seven tabs (Where2 staff: account tabs + Admin/Finance/Rep): tighter labels so all fit at 390 px (BottomNav .dense). */
.w2-nav-pill.dense { padding: 0 4px; }
.w2-nav-pill.dense .w2-nav-item { font-size: 8.5px; }
.w2-nav-pill.dense .w2-nav-item svg { width: 19px; height: 19px; }
.w2-nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ─── Centred header (Host tab and its screens, p10-p13) ───────────────────── */
.w2h-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 4px; }
.w2h-head .w2x-avatar { width: 64px; height: 64px; font-size: 26px; }
.w2h-head.big .w2x-avatar { width: 84px; height: 84px; font-size: 34px; }
.w2h-name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 6px 0 0; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2h-role { font-size: 13px; color: var(--w2-text-secondary); }
.w2h-head-left { position: absolute; left: 0; top: 4px; }
.w2h-head-right { position: absolute; right: 0; top: 4px; display: flex; gap: 8px; }
.w2h-count { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; color: var(--w2-text-secondary); font-size: 12px; }
.w2h-count::before, .w2h-count::after { content: ""; flex: 1; height: 1px; background: var(--w2-x-hair); }
.w2h-count b { display: block; font-size: 16px; color: var(--w2-text-primary); }

/* Page title row: title + one-line description, the main action on the right */
.w2h-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.w2h-pagehead h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.w2h-pagehead p { margin: 4px 0 0; font-size: 13px; color: var(--w2-text-secondary); }

/* ─── Manage events list ────────────────────────────────────────────────────── */
.w2h-evlist { display: flex; flex-direction: column; gap: 8px; }
.w2h-ev {
    display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 16px;
    background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); color: var(--w2-text-primary); text-decoration: none;
}
.w2h-ev-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.w2h-ev-img { width: 64px; height: 44px; border-radius: 10px; flex: none; background: var(--w2-x-well); display: flex; align-items: center; justify-content: center; color: var(--w2-accent-text); overflow: hidden; }
.w2h-ev-img img { width: 100%; height: 100%; object-fit: cover; }
.w2h-ev-main { flex: 1; min-width: 0; }
.w2h-ev-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2h-ev-meta { display: flex; gap: 12px; font-size: 12px; color: var(--w2-text-secondary); margin-top: 3px; overflow: hidden; white-space: nowrap; }
.w2h-ev-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w2h-more { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--w2-x-hair); background: var(--w2-x-well); color: var(--w2-text-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }

/* ─── Tiles (Manage finance, Team, Devices, Tickets, Setup) ─────────────────── */
.w2h-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w2h-tiles.three { grid-template-columns: repeat(3, 1fr); }
.w2h-tile {
    position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: 16px;
    background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); color: var(--w2-text-primary); text-decoration: none;
    font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; min-width: 0;
}
.w2h-tile:active { transform: scale(.985); }
.w2h-tile .w2-icon { color: var(--w2-accent-text); }
.w2h-tile-main { flex: 1; min-width: 0; }
.w2h-tile-title { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; }
.w2h-tile-sub { display: block; font-size: 12px; color: var(--w2-text-secondary); margin-top: 2px; line-height: 1.3; }
.w2h-tile .w2x-chev, .w2h-tile .w2x-chev.w2-icon { color: var(--w2-text-tertiary); flex: none; }
.w2h-tile.stack { flex-direction: column; justify-content: center; text-align: center; min-height: 84px; gap: 6px; }
.w2h-tile.stack .w2h-tile-title { font-size: 13px; font-weight: 500; }
.w2h-tile .w2x-badge.count { position: absolute; top: 8px; right: 8px; }

/* ─── Stats ─────────────────────────────────────────────────────────────────── */
.w2h-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.w2h-stat { padding: 10px 8px; border-radius: 14px; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); text-align: center; min-width: 0; text-decoration: none; color: inherit; }
.w2h-stat .w2-icon { color: var(--w2-accent-text); }
.w2h-stat b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.w2h-stat span { display: block; font-size: 11px; line-height: 1.25; color: var(--w2-text-secondary); margin-top: 2px; overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Big money card (Manage finances) */
.w2h-money { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.w2h-money > div { flex: 1 1 140px; min-width: 0; }
.w2h-money-label { font-size: 12px; color: var(--w2-text-secondary); }
.w2h-money-big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; }
.w2h-money-mid { font-size: 20px; font-weight: 700; margin-top: 2px; }
.w2h-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 6px; color: var(--w2-text-secondary); }
.w2h-trend .up { color: var(--w2-success-text); font-weight: 600; }
.w2h-trend .down { color: var(--w2-danger-text); font-weight: 600; }

/* Revenue chart (inline SVG, theme colours) */
.w2h-chart { width: 100%; height: 170px; display: block; overflow: visible; }
.w2h-chart .grid { stroke: var(--w2-x-hair); stroke-width: 1; }
.w2h-chart .axis { fill: var(--w2-text-tertiary); font-size: 10px; font-family: var(--w2-x-font); }
.w2h-chart .line { fill: none; stroke: var(--w2-accent-text); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.w2h-chart .area { fill: var(--w2-accent-text); opacity: .14; }
.w2h-chart .dot { fill: var(--w2-accent-text); }
.w2h-chart-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.w2h-chart-head .w2x-seg { flex: 1 1 220px; max-width: 340px; height: 38px; }
.w2h-chart-head .w2x-seg > button { font-size: 13px; }
.w2h-period { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

/* ─── Lists with a status pill (Team, Devices) ──────────────────────────────── */
.w2h-list { display: flex; flex-direction: column; gap: 8px; }
.w2h-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px;
    background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); color: var(--w2-text-primary); text-decoration: none;
    width: 100%; box-sizing: border-box; font: inherit; text-align: left; cursor: pointer;
}
.w2h-item-main { flex: 1; min-width: 0; }
.w2h-item-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2h-item-sub { font-size: 12px; color: var(--w2-text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w2h-item-side { flex: none; text-align: right; font-size: 11px; color: var(--w2-text-secondary); max-width: 42%; }
.w2h-item-side b { display: block; font-size: 12px; color: var(--w2-text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w2h-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--w2-x-well); color: var(--w2-text-secondary); }
.w2h-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.w2h-pill.ok { background: rgba(95, 211, 154, .13); color: var(--w2-success-text); }
.w2h-pill.warn { background: rgba(242, 184, 102, .14); color: var(--w2-warning-text); }
.w2h-pill.info { background: rgba(91, 155, 255, .14); color: var(--w2-accent-text); }
.w2h-thumb { width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--w2-x-well); color: var(--w2-accent-text); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 700; }
.w2h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w2h-thumb.round { border-radius: 50%; }

/* Filter chips row that scrolls sideways on a phone */
.w2h-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.w2h-chips::-webkit-scrollbar { display: none; }
.w2h-chips .w2x-chip { flex: none; height: 34px; font-size: 13px; padding: 0 14px; }

/* Event / venue picker (a native select dressed as a card) */
.w2h-picker { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 16px; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); }
.w2h-picker .w2-icon { color: var(--w2-accent-text); }
.w2h-picker > div { flex: 1; min-width: 0; }
.w2h-picker label { display: block; font-size: 11px; color: var(--w2-text-secondary); }
.w2h-picker select { width: 100%; border: none; background: transparent; color: var(--w2-text-primary); font: inherit; font-size: 15px; font-weight: 600; padding: 2px 0; outline: none; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.w2h-picker select option { background: var(--w2-bg-secondary); color: var(--w2-text-primary); }

/* ─── Tickets door screen (p12) ─────────────────────────────────────────────── */
.w2h-door { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w2h-scan { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 18px 12px; border-radius: 20px; border: 1px solid var(--w2-x-accent-line); background: var(--w2-x-accent-soft); color: var(--w2-text-primary); text-decoration: none; }
.w2h-scan .w2-icon { color: var(--w2-accent-text); }
.w2h-scan b { font-size: 17px; }
.w2h-scan small { font-size: 12px; color: var(--w2-text-secondary); }
.w2h-ring { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); }
.w2h-ring svg { flex: none; }
.w2h-ring .track { stroke: var(--w2-x-track); }
.w2h-ring .val { stroke: var(--w2-accent-text); }
.w2h-ring text { fill: var(--w2-text-primary); font-weight: 700; font-size: 15px; font-family: var(--w2-x-font); }
.w2h-ring dl { margin: 0; flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12px; }
.w2h-ring dt { color: var(--w2-text-secondary); }
.w2h-ring dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 420px) { .w2h-door { grid-template-columns: 1fr; } }

/* ─── Business tab (p15) ────────────────────────────────────────────────────── */
.w2h-venuecard { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--w2-card-bg); border: 1px solid var(--w2-card-border); }
.w2h-venuecard .w2h-thumb { width: 60px; height: 60px; border-radius: 14px; font-size: 24px; }
.w2h-push { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--w2-grad-primary); color: #fff; text-decoration: none; }
html.light .w2h-push, html.light .w2h-push svg, html.light .w2h-push span { color: #fff; }
.w2h-push .w2h-tile-sub { color: rgba(255, 255, 255, .85); }
.w2h-glance { display: flex; flex-direction: column; }
.w2h-glance a, .w2h-glance div.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--w2-x-hair); color: var(--w2-text-primary); text-decoration: none; font-size: 14px; }
.w2h-glance .lbl { flex: 1; min-width: 0; line-height: 1.3; }
.w2h-glance .val { color: var(--w2-text-secondary); font-size: 13px; white-space: nowrap; }
.w2h-glance .w2x-dot { background: var(--w2-accent-text); }

/* ─── Profile (p14) ─────────────────────────────────────────────────────────── */
.w2h-prefs { display: flex; gap: 8px; flex-wrap: wrap; }
.w2h-prefs .w2x-chip { height: 32px; font-size: 13px; padding: 0 12px; cursor: default; }

@media (min-width: 900px) {
    .w2h-tiles.wide { grid-template-columns: repeat(4, 1fr); }
}
