/* Public schedule, mobile-first layout (Views/Schedule/Schedule_V2.cshtml).
   Everything is scoped under .sch because site_ionic.css sizes h1-h5 and p globally with !important;
   the detail sheet body carries .sch too since Ionic moves presented modals out of the page. */

.sch {
    --sch-bg: #14171b;
    --sch-surface: #1d2126;
    --sch-surface-2: #262b31;
    --sch-surface-3: #30363e;
    --sch-border: rgba(255, 255, 255, 0.08);
    --sch-border-strong: rgba(255, 255, 255, 0.16);
    --sch-text: #f2f4f7;
    --sch-muted: #a7b0bc;
    --sch-faint: #7c8591;
    --sch-accent: #00BEFF;
    --sch-accent-bg: rgba(0, 190, 255, 0.14);
    --sch-live: #00D99F;
    --sch-soon: #FFB547;
    --sch-danger: #FF99A3;
    --sch-star: #FFC94D;
    --sch-radius: 14px;
    --sch-gutter: 16px;
    --sch-max: 880px;
    color: var(--sch-text);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}
.sch *, .sch *::before, .sch *::after { box-sizing: border-box; }
.sch [hidden] { display: none !important; }
.sch button { font-family: inherit; }

/* Day-of-week colors reuse the site tokens; ink is the readable text color on top of each. */
.sch [data-dow="mon"] { --sch-dow: var(--cptr-mon); --sch-dow-ink: #111; }
.sch [data-dow="tue"] { --sch-dow: var(--cptr-tue); --sch-dow-ink: #111; }
.sch [data-dow="wed"] { --sch-dow: var(--cptr-wed); --sch-dow-ink: #111; }
.sch [data-dow="thu"] { --sch-dow: var(--cptr-thu); --sch-dow-ink: #111; }
.sch [data-dow="fri"] { --sch-dow: var(--cptr-fri); --sch-dow-ink: #111; }
.sch [data-dow="sat"] { --sch-dow: var(--cptr-sat); --sch-dow-ink: #fff; }
.sch [data-dow="sun"] { --sch-dow: var(--cptr-sun); --sch-dow-ink: #111; }

ion-content#main-content { --background: #14171b; }

.sch-root {
    min-height: 100%;
    padding-bottom: 40px;
    background:
        radial-gradient(120% 50% at 50% -10%, rgba(0, 127, 170, 0.32), transparent 60%),
        var(--sch-bg);
}

.sch-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px var(--sch-gutter);
    background: rgba(255, 136, 52, 0.16);
    color: #FFB27A;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ---------- Event header ---------- */
.sch-event {
    position: relative;
    overflow: hidden;
}
.sch-event-backdrop {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.2);
    opacity: 0.4;
}
.sch-event::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 23, 27, 0.1) 0%, var(--sch-bg) 100%);
}
.sch-event-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: var(--sch-max);
    margin: 0 auto;
    padding: 20px var(--sch-gutter) 14px;
}
.sch-event-thumb {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.sch-event-text { min-width: 0; }
.sch-eyebrow {
    color: var(--sch-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sch .sch-event-title {
    margin: 2px 0;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
}
.sch-event-dates { color: var(--sch-muted); font-size: 14px; }

/* Desktop tab row; phones and tablets use the bottom tab bar instead. */
.sch-topnav { display: none; }

/* ---------- Day strip ---------- */
.sch-days {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(20, 23, 27, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sch-border);
}
.sch-days-scroll {
    position: relative;
    display: flex;
    gap: 8px;
    max-width: var(--sch-max);
    margin: 0 auto;
    padding: 10px var(--sch-gutter);
    overflow-x: auto;
    scrollbar-width: none;
}
.sch-days-scroll::-webkit-scrollbar { display: none; }
.sch-day-pill {
    flex: none;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 10px 6px;
    border: 1px solid var(--sch-border);
    border-radius: 14px;
    background: var(--sch-surface);
    color: var(--sch-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.sch-day-pill:hover { border-color: var(--sch-border-strong); }
.sch-day-pill:focus-visible { outline: 2px solid var(--sch-accent); outline-offset: 2px; }
.sch-day-dow {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--sch-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.sch-day-dow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sch-dow);
}
.sch-day-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.sch-day-count { color: var(--sch-faint); font-size: 11px; font-weight: 600; }
.sch-day-pill.is-empty .sch-day-num { color: var(--sch-faint); }
.sch-day-pill[aria-pressed="true"] {
    background: var(--sch-dow);
    border-color: transparent;
    color: var(--sch-dow-ink);
}
.sch-day-pill[aria-pressed="true"] .sch-day-dow,
.sch-day-pill[aria-pressed="true"] .sch-day-count,
.sch-day-pill[aria-pressed="true"] .sch-day-num { color: inherit; }
.sch-day-pill[aria-pressed="true"] .sch-day-dow::before { background: currentColor; }

/* ---------- Search and filters ---------- */
.sch-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: var(--sch-max);
    margin: 0 auto;
    padding: 14px var(--sch-gutter) 0;
}
.sch ion-searchbar.sch-search {
    --background: var(--sch-surface);
    --color: var(--sch-text);
    --placeholder-color: var(--sch-muted);
    --placeholder-opacity: 1;
    --icon-color: var(--sch-muted);
    --clear-button-color: var(--sch-muted);
    --border-radius: 12px;
    --box-shadow: inset 0 0 0 1px var(--sch-border);
    padding: 0;
    min-height: 44px;
}
.sch-chips {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--sch-gutter) * -1);
    padding: 0 var(--sch-gutter) 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.sch-chips::-webkit-scrollbar { display: none; }
.sch-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--sch-border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--sch-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.sch-chip wa-icon { color: var(--sch-muted); font-size: 12px; }
.sch-chip:focus-visible { outline: 2px solid var(--sch-accent); outline-offset: 2px; }
.sch-chip[aria-pressed="true"] {
    border-color: var(--sch-accent);
    background: var(--sch-accent-bg);
    color: var(--sch-accent);
}
.sch-chip[aria-pressed="true"] wa-icon { color: inherit; }
.sch-chip[data-kind="saved"][aria-pressed="true"],
.sch-chip[data-kind="saved"][aria-pressed="true"] wa-icon { color: var(--sch-star); border-color: var(--sch-star); }
.sch-chip[data-kind="saved"][aria-pressed="true"] { background: rgba(255, 201, 77, 0.12); }
.sch-chip-count:not(:empty) {
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    text-align: center;
}
.sch-chip-sep {
    flex: none;
    width: 1px;
    margin: 7px 2px;
    background: var(--sch-border-strong);
}
.sch-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: var(--sch-max);
    margin: 10px auto 0;
    padding: 0 var(--sch-gutter);
    color: var(--sch-muted);
    font-size: 13px;
}
.sch-link {
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--sch-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Day list ---------- */
.sch-day {
    max-width: var(--sch-max);
    margin: 0 auto;
    padding: 18px var(--sch-gutter) 0;
}
.sch-day-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 12px;
}
.sch .sch-day-title {
    margin: 0;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}
.sch-day-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sch-muted);
    font-size: 13px;
}
.sch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sch-ended-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px dashed var(--sch-border-strong);
    border-radius: var(--sch-radius);
    background: transparent;
    color: var(--sch-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

/* ---------- Activity card ---------- */
.sch-card {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 40px;
    column-gap: 12px;
    padding: 14px 6px 14px 14px;
    border: 1px solid var(--sch-border);
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    transition: background 0.15s, border-color 0.15s;
}
.sch-card:hover { background: var(--sch-surface-2); }
.sch-card:has(.sch-card-open:focus-visible) { outline: 2px solid var(--sch-accent); outline-offset: 2px; }
.sch-card.is-live {
    border-color: rgba(0, 217, 159, 0.45);
    box-shadow: inset 3px 0 0 var(--sch-live);
}
.sch-card.is-ended { opacity: 0.6; }
.sch-card-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}
.sch-card-start { font-size: 17px; font-weight: 800; line-height: 1.15; }
.sch-card-start small { margin-left: 2px; color: var(--sch-muted); font-size: 11px; font-weight: 700; }
.sch-card-end { color: var(--sch-muted); font-size: 12px; }
.sch-card .sch-status { margin-top: 6px; }
.sch .sch-card-title {
    margin: 0;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
.sch-card-open {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sch-card-open:focus-visible { outline: none; }
/* The title button covers the whole card so any tap opens the details. */
.sch-card-open::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.sch-card-room {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--sch-muted);
    font-size: 13px;
}
.sch-card-room wa-icon { flex: none; font-size: 12px; }
.sch-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 10px;
}
.sch-card-guests {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
}
.sch-avatars { display: inline-flex; flex: none; }
/* A 6px overlap keeps both letters of an initials avatar clear of the next avatar. */
.sch-avatars wa-avatar {
    margin-left: -6px;
    border: 2px solid var(--sch-surface);
    border-radius: 50%;
}
.sch-avatars wa-avatar::part(initials) { font-size: 9px; font-weight: 700; }
.sch-avatars wa-avatar:first-child { margin-left: 0; }
.sch-card-guest-names { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-save {
    position: relative;
    z-index: 1;
    align-self: start;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: -8px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sch-faint);
    font-size: 18px;
    cursor: pointer;
}
.sch-save:hover { background: rgba(255, 255, 255, 0.06); color: var(--sch-text); }
.sch-save:focus-visible { outline: 2px solid var(--sch-accent); }
.sch-save[aria-pressed="true"] { color: var(--sch-star); }
.sch-progress {
    grid-column: 1 / -1;
    height: 3px;
    margin: 12px 8px 0 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.sch-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--sch-live);
    transition: width 0.6s;
}

/* Live / soon / ended label, used on cards and in the activity sheet. */
.sch-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.sch-status:empty { display: none; }
.sch-status[data-state="live"] { background: var(--sch-live); color: #04110c; }
.sch-status[data-state="live"]::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: sch-pulse 1.4s ease-in-out infinite;
}
.sch-status[data-state="soon"] { background: rgba(255, 181, 71, 0.16); color: var(--sch-soon); }
.sch-status[data-state="ended"] { background: rgba(255, 255, 255, 0.08); color: var(--sch-muted); }
@keyframes sch-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
    .sch-status[data-state="live"]::before { animation: none; }
}

.sch-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--sch-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.sch-pill wa-icon { font-size: 11px; }
.sch-pill-ticket { background: var(--sch-accent-bg); color: var(--sch-accent); }
.sch-dow {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 5px;
    background: var(--sch-dow);
    color: var(--sch-dow-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Empty states ---------- */
.sch-empty {
    padding: 36px 16px;
    border: 1px dashed var(--sch-border-strong);
    border-radius: var(--sch-radius);
    color: var(--sch-muted);
    text-align: center;
}
.sch-empty > wa-icon { margin-bottom: 8px; color: var(--sch-faint); font-size: 32px; }
.sch-empty-title { color: var(--sch-text); font-size: 16px; font-weight: 700; }
.sch-empty-text { margin-top: 4px; font-size: 14px; }
.sch-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.sch-empty-actions:empty { display: none; }

/* ---------- Buttons and rows ---------- */
.sch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--sch-border-strong);
    border-radius: 999px;
    background: var(--sch-surface-2);
    color: var(--sch-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.sch-btn:hover { background: var(--sch-surface-3); }
.sch-btn:focus-visible { outline: 2px solid var(--sch-accent); outline-offset: 2px; }
.sch-btn[aria-pressed="true"] {
    border-color: rgba(255, 201, 77, 0.5);
    background: rgba(255, 201, 77, 0.12);
    color: var(--sch-star);
}
.sch-btn-block { display: flex; width: 100%; margin-top: 18px; }
.sch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.sch-rows {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sch-border);
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    overflow: hidden;
}
.sch-row,
.sch-product {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 12px 14px;
    border: 0;
    border-top: 1px solid var(--sch-border);
    background: transparent;
    color: var(--sch-text);
    font-size: 15px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.sch-rows > :first-child { border-top: 0; }
.sch-row:hover,
.sch-product:hover { background: var(--sch-surface-2); }
.sch-row:focus-visible,
.sch-product:focus-visible { outline: 2px solid var(--sch-accent); outline-offset: -2px; }
.sch-row-static { cursor: default; }
.sch-row-static:hover { background: transparent; }
.sch-row.is-today { background: rgba(0, 190, 255, 0.07); }
.sch-product:disabled { cursor: default; }
.sch-product:disabled:hover { background: transparent; }
.sch-product:disabled .sch-product-title { color: var(--sch-muted); }
.sch-row-main,
.sch-product-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.sch-row-title,
.sch-product-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.sch-row-sub,
.sch-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: var(--sch-muted);
    font-size: 13px;
}
.sch-row-end { flex: none; color: var(--sch-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sch-today { color: var(--sch-accent); font-weight: 700; }
.sch-row-when {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 68px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.sch-product-price { flex: none; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sch-product-price.is-sold {
    color: var(--sch-danger);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sch-stock { color: var(--sch-soon); font-weight: 600; }
.sch-chev { flex: none; color: var(--sch-faint); font-size: 12px; }

/* ---------- Guests, tickets, info panels ---------- */
.sch-panel-inner {
    max-width: var(--sch-max);
    margin: 0 auto;
    padding: 16px var(--sch-gutter) 0;
}
.sch-panel-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 14px;
}
.sch .sch-panel-title {
    margin: 0;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}
.sch-count { color: var(--sch-muted); font-size: 14px; font-weight: 600; }

.sch-guest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.sch-guest-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 8px 8px 12px;
    border: 1px solid var(--sch-border);
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    color: var(--sch-text);
    text-align: left;
    cursor: pointer;
}
.sch-guest-card:hover { background: var(--sch-surface-2); }
.sch-guest-card:focus-visible { outline: 2px solid var(--sch-accent); outline-offset: 2px; }
.sch-guest-img {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 6px;
    border-radius: 10px;
    background: var(--sch-surface-2);
    object-fit: cover;
    object-position: 50% 20%;
}
.sch-initials {
    display: grid;
    place-items: center;
    color: var(--sch-muted);
    font-size: 36px;
    font-weight: 800;
}
.sch-guest-name { padding: 0 4px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.sch-guest-next { padding: 0 4px; color: var(--sch-muted); font-size: 12px; }

.sch-acc {
    margin-bottom: 10px;
    border: 1px solid var(--sch-border);
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    overflow: hidden;
}
.sch-acc::part(header) { padding: 14px 16px; }
.sch-acc::part(content) { padding: 0; }
.sch-acc-summary { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; }
.sch-acc .sch-rows {
    border: 0;
    border-top: 1px solid var(--sch-border);
    border-radius: 0;
}

.sch-info-hero {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--sch-radius);
}
.sch-block { margin-top: 24px; }
.sch .sch-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--sch-muted);
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}
.sch-note {
    padding: 14px;
    border: 1px solid var(--sch-border);
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    color: var(--sch-muted);
}
.sch-prose { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.sch .sch-prose p {
    margin: 0 0 12px;
    font-size: 15px !important;
    line-height: 1.6 !important;
    letter-spacing: normal !important;
}
.sch .sch-prose h1,
.sch .sch-prose h2,
.sch .sch-prose h3,
.sch .sch-prose h4,
.sch .sch-prose h5 {
    margin: 18px 0 8px;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
.sch-prose a { color: var(--sch-accent); }
.sch-prose img,
.sch-prose video,
.sch-prose iframe { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- Detail sheet ---------- */
ion-modal.sch-sheet {
    --background: #14171b;
    --border-radius: 20px;
}
ion-modal.sch-sheet ion-toolbar {
    --background: #14171b;
    --color: #f2f4f7;
    --border-width: 0;
}
ion-modal.sch-sheet ion-content { --background: #14171b; }
ion-modal.sch-sheet ion-title { font-size: 16px; font-weight: 700; }
.sch-icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f2f4f7;
    font-size: 16px;
    cursor: pointer;
}
.sch-icon-btn[hidden] { display: none; }
/* Extra bottom room: a sheet resting below full height leaves the end of its content off screen. */
.sch-sheet-body { padding: 0 var(--sch-gutter) calc(96px + env(safe-area-inset-bottom)); }
.sch-detail-media {
    display: flex;
    justify-content: center;
    margin: 0 calc(var(--sch-gutter) * -1);
    background: #0d0f12;
}
.sch-detail-media img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; }
.sch-detail-head { padding-top: 16px; }
.sch .sch-detail-title {
    margin: 4px 0 12px;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
}
.sch-facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sch-facts li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.sch-facts wa-icon { width: 18px; color: var(--sch-accent); }
.sch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sch-guest-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    text-align: center;
}
.sch-guest-photo {
    width: 132px;
    height: 132px;
    margin-bottom: 12px;
    border-radius: 24px;
    background: var(--sch-surface-2);
    object-fit: cover;
    object-position: 50% 20%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.sch-guest-hero .sch-detail-title { margin-bottom: 2px; }
.sch-guest-sub { color: var(--sch-muted); font-size: 14px; }
.sch-guest-hero .sch-actions { justify-content: center; }

/* ---------- Bottom tab bar ---------- */
.sch-tabbar ion-toolbar {
    --background: rgba(20, 23, 27, 0.96);
    --border-color: rgba(255, 255, 255, 0.08);
    --min-height: 60px;
    --padding-top: 4px;
    --padding-bottom: 4px;
}
.sch-tabbar ion-segment {
    max-width: 560px;
    margin: 0 auto;
    --background: transparent;
}
.sch-tabbar ion-segment-button {
    min-height: 52px;
    --color: #a7b0bc;
    --color-checked: #00BEFF;
    --border-radius: 12px;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: none;
}
.sch-tabbar ion-segment-button.md {
    --indicator-color: #00BEFF;
    --indicator-height: 3px;
    --background-checked: transparent;
}
.sch-tabbar ion-segment-button.ios { --indicator-color: rgba(0, 190, 255, 0.16); }
.sch-tabbar ion-segment-button wa-icon { margin: 4px 0 3px; font-size: 20px; }

@media (min-width: 768px) {
    .sch { --sch-gutter: 24px; }
    .sch-event-thumb { width: 88px; height: 88px; }
    .sch .sch-event-title { font-size: 28px !important; }
    ion-modal.sch-sheet {
        --width: 640px;
        --height: min(86vh, 920px);
    }
    .sch-sheet-body { padding-bottom: 32px; }
}

@media (min-width: 992px) {
    .sch-tabbar { display: none; }
    .sch-topnav {
        position: relative;
        z-index: 1;
        display: flex;
        gap: 6px;
        max-width: var(--sch-max);
        margin: 0 auto;
        padding: 0 var(--sch-gutter) 14px;
    }
    .sch-topnav button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 38px;
        padding: 0 16px;
        border: 1px solid var(--sch-border);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--sch-muted);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }
    .sch-topnav button:hover { color: var(--sch-text); }
    .sch-topnav button:focus-visible { outline: 2px solid var(--sch-accent); outline-offset: 2px; }
    .sch-topnav button[aria-current="page"] {
        border-color: var(--sch-accent);
        background: var(--sch-accent-bg);
        color: var(--sch-accent);
    }
}
