/* RideGrid brand theme. Black, white and route-red from the existing RideGrid logo. */
:root {
    color-scheme: dark;
    --bg: #0b0b0d;
    --panel: #141416;
    --panel-2: #1d1d20;
    --line: #2d2d32;
    --border: var(--line);
    --text: #f5f5f6;
    --muted: #aaaab3;
    --accent: #ff1020;
    --accent-2: #ff7b84;
    --action: #cf1424;
    --green: #65deb0;
    --yellow: #f3cb76;
    --red: #ff8d97;
    --blue: #c3c3ce;
    --radius: 14px;
    --shadow: 0 12px 36px #0000001f;
    --space: 24px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-synthesis: none;
}
html { scroll-padding-block: 24px; }
body { background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden]:not([hidden="until-found"]) { display: none !important; }
::selection { background: #ff102040; color: white; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button, a { transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
:where(h1, h2, h3) { color: var(--text); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 750; letter-spacing: -.055em; }
h2 { font-size: 1.13rem; font-weight: 720; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
p { line-height: 1.65; }
small { font-size: .79rem; }
strong { font-weight: 700; }
.rg-icon { flex: 0 0 auto; vertical-align: middle; }
.eyebrow { color: var(--accent-2); font-size: .65rem; font-weight: 750; letter-spacing: .16em; }
.muted { color: var(--muted); }
.app-shell { grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { height: 100dvh; padding: 26px 16px 18px; background: #0e0e10; border-color: #29292e; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sidebar .brand { gap: 11px; padding: 0 10px; margin-bottom: 16px; }
.brand-mark { border-radius: 9px; width: 43px; height: 43px; box-shadow: 0 3px 12px #0003; }
.brand strong { font-size: 1.2rem; letter-spacing: -.05em; }
.brand small { display: block; font-size: .64rem; margin-top: 2px; }
.night-nav { gap: 4px; }
.nav-group-label { display: block; color: #92929b; font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; padding: 20px 13px 7px; }
.night-nav a, .night-menu-links a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; min-height: 44px; border: 1px solid transparent; border-radius: 7px; color: #b0b0ba; font-size: .82rem; font-weight: 550; }
.night-nav a:hover, .night-menu-links a:hover { color: var(--text); background: #202024; }
.night-nav a.active, .night-menu-links a.active { color: #fff; border-color: #ff102025; background: #ff102012; box-shadow: none; }
.night-nav a.active .rg-icon, .night-menu-links a.active .rg-icon { color: var(--accent-2); }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px; border: 1px solid #ff102045; border-radius: 7px; background: #ff10201a; color: #ffc4c9; font-size: .65rem; }
.sidebar .pwa-nav-install { margin: 20px 8px 14px; width: auto; font-size: .76rem; min-height: 40px; }
.sidebar .setup-banner { margin: 14px 0; font-size: .76rem; }
.user-card { padding: 12px; margin-top: auto; background: #18181c; border-radius: 10px; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.user-card:not(:has(img)) { grid-template-columns: 1fr; }
.user-copy strong { font-size: .82rem; }
.user-copy small { font-size: .72rem; }
.user-card .ghost-button { padding: 6px 10px; min-height: 34px; font-size: .72rem; }
.main-content { width: 100%; max-width: 1550px; margin-inline: auto; padding: 34px clamp(22px, 3vw, 48px) 28px; }
.main-content:focus { outline: none; }
.topbar { align-items: center; min-height: 64px; margin-bottom: 30px; }
.topbar .eyebrow { margin-bottom: 6px; font-size: .6rem; letter-spacing: .22em; }
.topbar-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-date { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; text-transform: capitalize; white-space: nowrap; }
.topbar-actions:empty { display: none; }
.night-more { display: none; }
.beta-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; min-height: 32px; padding: 6px 20px; background: #17171b; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .65rem; line-height: 1.5; }
.beta-banner strong { color: #f1d199; font-size: .63rem; font-weight: 700; }
.beta-banner a { color: #d4d4dc; text-decoration: underline; text-underline-offset: 3px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space); box-shadow: var(--shadow); min-width: 0; }
.main-content > .panel, .main-content > [data-live-refresh-region] > .panel { margin-bottom: 22px; }
.panel > :last-child { margin-bottom: 0; }
.panel .panel { background: #0e0e11; box-shadow: none; border-radius: 10px; }
.section-head { gap: 16px; align-items: center; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; font-size: .81rem; max-width: 72ch; }
.grid, .stats-grid, .two-column-grid, .admin-columns, .account-access-grid, .profile-stats-grid { gap: 18px; }
.stat-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 20px; min-width: 0; box-shadow: none; }
.stat-card > span { font-size: .74rem; font-weight: 550; color: var(--muted); }
.stat-card strong { margin-top: 9px; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.15; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card small { display: block; margin-top: 7px; color: var(--muted); }
.grid.stats, .stats-grid { margin-bottom: 22px; }
.button, .primary-button, .ghost-button, .danger-button, .secondary-button, .filter-button,
form > button:not([class]), .admin-form button:not([class]), .panel form > button:not([class]) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    padding: 11px 17px; border: 1px solid transparent; border-radius: 8px; font-size: .8rem; font-weight: 650; line-height: 1.35; text-align: center;
}
.button, .primary-button, form > button:not([class]), .admin-form button:not([class]), .panel form > button:not([class]) { color: #fff; background: var(--action); box-shadow: 0 4px 14px #cf14241a; }
.button:hover, .primary-button:hover, form > button:not([class]):hover { background: #bc1b2d; color: #fff; }
.ghost-button, .secondary-button, .button.secondary { width: auto; color: #dedee4; border-color: #3b3b43; background: #202025; box-shadow: none; }
.ghost-button:hover, .secondary-button:hover, .button.secondary:hover { background: #2b2b32; border-color: #62626c; color: #fff; }
.danger-button { color: #ffb2ba; border-color: #ff8d9740; background: #ff8d970c; box-shadow: none; }
.danger-button:hover { background: #ff8d971c; }
.button.small, .ghost-button.small, .danger-button.small { min-height: 40px; padding: 8px 13px; font-size: .75rem; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), select, textarea) {
    min-width: 0; max-width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #3a3a42; border-radius: 7px;
    color: var(--text); background: #0e0e11; outline: none; line-height: 1.4;
}
input::placeholder, textarea::placeholder { color: #8292aa; opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--action); flex: none; cursor: pointer; }
input[type="number"] { font-variant-numeric: tabular-nums; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); outline-offset: 2px; }
textarea { width: 100%; resize: vertical; min-height: 110px; }
.admin-form, .preference-form, .feedback-form { gap: 16px; }
.admin-form label, .preference-form label, .feedback-form label { color: #c7c7ce; font-size: .79rem; }
.auth-form input:not([type="checkbox"]), .search, .ride-search input, .admin-history-filter-form select, .admin-history-filter-form input { background: #0e0e11; border-color: #3a3a42; border-radius: 8px; min-height: 46px; }
.auth-form input:not([type="checkbox"]):focus { border-color: var(--blue); box-shadow: 0 0 0 3px #c3c3ce15; }
.flash { padding: 14px 17px; margin-bottom: 20px; font-size: .83rem; border-radius: 8px; line-height: 1.55; }
.flash.success { color: #b1f2d6; border-color: #65deb035; background: #65deb00b; }
.flash.error { color: #ffbdc3; border-color: #ff8d9740; background: #ff8d970b; }
.empty, .empty-state, .compact-empty { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.empty.panel { padding: clamp(28px, 5vw, 66px); text-align: center; }
.empty.panel h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.empty.panel p { max-width: 62ch; margin-inline: auto; }
.empty.panel .button { margin-top: 10px; }
.badge { padding: 5px 9px; gap: 6px; border: 1px solid transparent; font-size: .59rem; line-height: 1.4; font-weight: 700; letter-spacing: .065em; white-space: normal; }
.badge::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.open, .badge.available { color: var(--green); background: #65deb00b; border-color: #65deb026; }
.badge.down { color: var(--red); background: #ff8d970b; border-color: #ff8d9730; }
.badge.maintenance { color: var(--yellow); background: #f3cb760b; border-color: #f3cb7630; }
.badge.closed, .badge.unknown { color: #b1bdd0; background: #aaaab30a; border-color: #aaaab320; }
.status-closed .status-dot { background: #aaaab3; }
.status-down .status-dot { background: var(--red); }
.status-maintenance .status-dot { background: var(--yellow); }
.park-notice, .live-summary-bar { border-color: var(--line); border-radius: 11px; background: #111114; padding: 17px 20px; }
.park-notice-closed { background: #aaaab308; border-color: #aaaab32c; }
.park-notice-closed strong, .park-stat-closed { color: #c9c9d2; }
.park-notice-unknown { background: #f3cb7608; border-color: #f3cb7630; }
.live-summary-bar strong, .park-notice strong { font-size: .88rem; }
.live-controls-panel { overflow: visible; }
.attraction-toolbar { gap: 10px; align-items: end; margin-bottom: 22px; }
.simplified-toolbar .search { flex: 1 1 210px; min-width: 160px; }
.filter-select-label { gap: 6px; font-size: .68rem; }
.filter-select-label select { min-height: 46px; }
.primary-filter-group { padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #0e0e11; gap: 3px; }
.filter-button { min-height: 38px; padding: 9px 12px; color: var(--muted); background: transparent; border-color: transparent; font-size: .75rem; }
.filter-button:hover { background: var(--panel-2); color: var(--text); }
.filter-button.active { color: var(--text); background: #303037; border-color: #4c4c57; box-shadow: 0 2px 4px #0002; }
.toolbar-more > summary { min-height: 46px; border: 1px solid var(--line); background: #1d1d20; }
.toolbar-more-menu { background: #1b1b20; border-color: #454550; border-radius: 9px; padding: 10px; box-shadow: 0 18px 45px #0006; }
.attraction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.attraction-card { position: relative; min-width: 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; transition: border-color .18s ease, background-color .18s ease; }
.attraction-card:hover { border-color: #51515d; background: #19191d; }
.attraction-head { margin-bottom: 14px; align-items: flex-start; }
.attraction-head h3 { font-size: 1.04rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.attraction-area { color: #aaaab3; font-size: .68rem; }
.card-actions { gap: 5px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.favorite-button { display: grid; place-items: center; min-width: 36px; min-height: 36px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #a4a4af; font-size: 1.3rem; }
.favorite-button:hover, .favorite-button.is-favorite, .favorite-button[aria-pressed="true"] { background: #f3cb7610; color: var(--yellow); border-color: #f3cb7626; }
.queue-grid, .queue-grid.has-alternatives { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.queue-grid > .queue-item:first-child { grid-column: 1 / -1; padding: 17px 0 16px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.queue-item { padding: 12px; border-color: #2c2c34; border-radius: 8px; background: #0e0e11; }
.queue-label { color: var(--muted); font-size: .73rem; font-weight: 650; letter-spacing: .045em; margin-bottom: 7px; }
.queue-value { font-size: 1.05rem; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.queue-grid > .queue-item:first-child .queue-value[data-wait-kind="current"] { font-size: 2.65rem; line-height: 1.1; letter-spacing: -.07em; font-weight: 720; }
.queue-grid > .queue-item:first-child .queue-value:not([data-wait-kind="current"]) { font-size: 1.35rem; line-height: 1.3; }
.queue-detail { display: block; color: var(--muted); margin-top: 6px; font-size: .78rem; line-height: 1.5; }
.queue-trend { display: inline-flex; gap: 4px; font-size: .65rem; border-radius: 5px; margin-top: 7px; }
.attraction-updated { padding-top: 12px; border-top: 1px solid var(--line); color: #9999a3; font-size: .65rem; }
.attraction-hours { font-size: .74rem; border-radius: 7px; }
.attraction-card .button, .attraction-card .ghost-button { min-height: 38px; font-size: .72rem; }
.compact-mode .attraction-card, .attraction-grid.compact .attraction-card { padding: 14px; }
.compact-mode .queue-grid > .queue-item:first-child .queue-value { font-size: 1.45rem; }
.attraction-grid.compact .queue-grid { flex-wrap: wrap; }
.attraction-grid.compact .queue-grid > .queue-item:first-child { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #0e0e11; }
.attraction-grid.compact .queue-grid > .queue-item:first-child .queue-value[data-wait-kind] { font-size: 1rem; letter-spacing: -.025em; }
.attraction-grid.compact .attraction-updated { border: 0; padding-top: 0; }
.ridecounter-park-mode .attraction-grid:not(.compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ridecounter-park-mode .attraction-grid:not(.compact) .queue-grid > .queue-item:first-child .queue-value[data-wait-kind="current"] { font-size: 3.2rem; }
.ridecounter-park-mode .daily-insights, .ridecounter-park-mode .compact-intelligence, .ridecounter-park-mode .activity-disclosure { display: none; }
.wait-changed { animation: night-wait-update .9s ease-out; }
@keyframes night-wait-update { from { border-color: #ff7b84; background-color: #342330; } to { border-color: var(--line); background-color: var(--panel); } }
.detail-back { margin-bottom: 18px; color: var(--muted); font-size: .78rem; }
.detail-back a:hover { color: var(--text); }
.attraction-detail-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 26px; margin-bottom: 18px; background: linear-gradient(110deg, #1c1c21, var(--panel)); }
.attraction-detail-hero h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 6px 0 14px; letter-spacing: -.045em; }
.detail-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .72rem; }
.detail-queue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.detail-queue-card { padding: 22px; }
.detail-queue-card .detail-big-wait { display: block; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.04em; margin: 12px 0 8px; overflow-wrap: anywhere; }
.detail-queue-card:first-child .detail-big-wait[data-wait-kind="current"] { font-size: 3rem; line-height: 1.15; }
.detail-queue-card > small { display: block; font-size: .74rem; line-height: 1.55; }
.detail-chart-panel, .detail-events-panel, .detail-heatmap-panel { margin-bottom: 22px; }
.maintenance-summary { padding: 20px; border: 1px solid #f3cb7633; border-left: 3px solid var(--yellow); border-radius: 9px; background: #f3cb7608; }
.maintenance-summary strong { color: var(--yellow); font-size: .82rem; }
.maintenance-summary p { margin: 7px 0; font-size: 1.17rem; letter-spacing: -.02em; }
.detail-event-list { display: grid; gap: 0; }
.detail-event-row { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .79rem; }
.detail-event-row:last-child { border: 0; }
.detail-event-row .muted { font-size: .74rem; }
.visit-hero { gap: 18px; margin-bottom: 22px; }
.visit-hero h2 { font-size: 1.4rem; letter-spacing: -.04em; }
.ride-grid { gap: 14px; }
.ride-card { padding: 19px; border-radius: 10px; background: #111114; border-color: #34343d; gap: 18px; }
.ride-card h3 { font-size: .96rem; line-height: 1.4; }
.ride-count { display: grid; place-items: center; border: 1px solid #42424b; border-radius: 8px; min-width: 45px; min-height: 45px; color: #d6e0f0; background: #222227; font-size: 1.13rem; font-variant-numeric: tabular-nums; }
.ride-actions { align-items: center; }
.ride-actions .button { padding-inline: 20px; }
.ride-actions .ghost-button { font-size: .71rem; }
.status-row { font-size: .73rem; gap: 7px; margin-top: 8px; flex-wrap: wrap; line-height: 1.5; }
.status-row small { font-size: .67rem; }
.next-rides-grid { gap: 14px; }
.next-ride { background: var(--panel); border-radius: 10px; padding: 20px; border-color: var(--line); }
.next-ride:hover { border-color: #55555e; }
.next-ride span { font-size: 1.25rem; font-weight: 650; }
.park-day-row, .planner-row { background: #111114; border-color: var(--line); border-radius: 10px; padding: 18px; font-size: .86rem; }
.park-day-row:hover, .planner-row:hover { background: #222228; border-color: #565663; }
.park-day-row small, .planner-row small { color: var(--muted); font-size: .75rem; }
.area-pills a { border-color: var(--line); color: #c3c3cd; min-height: 40px; display: inline-flex; align-items: center; }
.area-pills a.active { color: white; background: #303035; border-color: #565663; }
.smart-alert { background: #111114; border: 1px solid var(--line); border-radius: 8px; color: #c7c7ce; }
.smart-alert strong { color: var(--yellow); }
.list-row { gap: 16px; padding: 15px 0; font-size: .83rem; }
.list-row small { font-size: .74rem; }
table { width: 100%; border-collapse: collapse; font-size: .79rem; font-variant-numeric: tabular-nums; }
th { padding: 12px 14px; text-align: left; color: #bcbcc5; background: #0e0e11; font-size: .64rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid #44444c; }
td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #ffffff03; }
.table-wrap, .table-responsive, .admin-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; scrollbar-width: thin; }
.admin-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px; margin-bottom: 24px; background: #0e0e11; border: 1px solid var(--line); border-radius: 10px; }
.admin-tabs a { padding: 10px 12px; min-height: 40px; border: 1px solid transparent; border-radius: 7px; font-size: .73rem; color: #b0b0bb; }
.admin-tabs a:hover { color: #fff; background: var(--panel-2); }
.admin-tabs a.active { color: #fff; background: #303038; border-color: #4c4c59; }
.admin-list-row, .notification-item, .notification-card, .feedback-card, .incident-card { border-color: var(--line); background: #111114; border-radius: 9px; padding: 18px; }
.command-output, pre { padding: 18px; border: 1px solid #3a3a42; border-radius: 8px; background: #0c0c0f; color: #cdcdd7; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .75rem; line-height: 1.65; }
.admin-health-line { padding-block: 11px; font-size: .79rem; border-color: var(--line); }
.admin-operations { gap: 12px; }
.admin-form input, .admin-form select { width: 100%; }
.profile-head { padding-block: 6px; }
.profile-head img { width: 70px; height: 70px; border: 2px solid #52525f; }
.account-access-card { background: #0e0e11; border-color: var(--line); padding: 22px; border-radius: 10px; }
.account-access-head strong { font-size: .95rem; }
.account-access-head small, .account-note { font-size: .76rem; }
.account-state { font-size: .58rem; border-radius: 7px; }
.language-switcher { gap: 10px; font-size: .78rem; }
.language-switcher select { background: #0e0e11; }
.watchlist-grid { gap: 18px; }
.watchlist-card { border-radius: 12px; }
.watchlist-wait { display: block; padding-block: 12px 20px; }
.watchlist-wait .queue-value[data-wait-kind="current"] { font-size: 2.65rem; font-weight: 720; letter-spacing: -.065em; }
.watchlist-wait .queue-value:not([data-wait-kind="current"]) { font-size: 1.3rem; }
.watchlist-wait .queue-label { font-size: .73rem; color: var(--muted); }
.watchlist-card .badge.maintenance { color: var(--yellow); background: #f3cb760b; border-color: #f3cb7630; }
.watchlist-card .badge.closed { color: #b1bdd0; background: #aaaab30a; border-color: #aaaab320; }
.feature-actions { gap: 10px; flex-wrap: wrap; }
.rg-mc-filter button { background: var(--action); border-color: var(--action); min-height: 44px; }
.rg-mc-filter select { background: #0e0e11; border-color: #3a3a42; }
.rg-mc-nav a { min-height: 44px; align-items: center; background: var(--panel-2); border-color: var(--line); }
.rg-mc-bar { background: #2b2b35; border-color: var(--blue); }
.rg-mc-bar.active { background: #4d3c21; border-color: var(--yellow); }
.rg-mc-week { border-color: var(--line); }
.rg-mc-list-row { background: #111114; border-color: var(--line); }
.achievement-card, .achievement, .heat-cell, .day-compare-grid article { border-color: var(--line); background: #111114; border-radius: 8px; }
.heat-cell.heat-1 { background: #132c25; border-color: #2c5a49; }
.heat-cell.heat-2 { background: #203529; border-color: #3e6248; }
.heat-cell.heat-3 { background: #35301d; border-color: #655735; }
.heat-cell.heat-4 { background: #3a281f; border-color: #6c4935; }
.heat-cell.heat-5 { background: #3c232c; border-color: #70414e; }
.heat-cell span, .heat-cell small { color: #b0bed2; }
.wait-chart-wrap { border: 1px solid #303038; border-radius: 10px; padding: 14px 10px 6px; background: #0e0e11; }
.wait-chart { overflow: visible; }
.chart-grid-line { stroke: #33333a; stroke-width: 1; stroke-dasharray: 3 6; opacity: .8; }
.chart-axis-label { fill: #aaaab3; font-size: 11px; font-weight: 500; }
.chart-line { stroke: var(--accent); stroke-width: 2.7; filter: none; }
.chart-point { fill: var(--accent); stroke: #0e0e11; stroke-width: 2; }
.chart-legend { font-size: .68rem; color: var(--muted); margin-top: 10px; }
.status-timeline-node.status-maintenance { background: var(--yellow); box-shadow: 0 0 0 4px var(--panel); }
.status-timeline .status-pill.status-maintenance { color: #f3cb76 !important; background: #f3cb7610 !important; border-color: #f3cb7650 !important; }
.activity-event-pill .event-status-maintenance { color: var(--yellow); }
.app-footer { margin-top: 34px; padding: 22px 0 4px; border-top: 1px solid var(--line); color: #9797a1; font-size: .68rem; gap: 14px; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.app-footer a:hover { color: #fff; }
.auth-page { background: radial-gradient(ellipse at 50% 0, #202027 0, transparent 55%), var(--bg); padding: 36px 20px; }
.auth-shell { width: min(100%, 490px); gap: 22px; }
.auth-brand { gap: 13px; }
.auth-brand strong { font-size: 1.3rem; letter-spacing: -.05em; }
.auth-brand small { font-size: .72rem; }
.auth-panel { background: var(--panel); border-radius: 16px; border-color: #3e3e48; padding: clamp(24px, 5vw, 38px); box-shadow: 0 24px 70px #0003; }
.auth-panel h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 14px; }
.auth-panel > .muted { font-size: .83rem; }
.auth-form { gap: 17px; }
.auth-form label { font-weight: 550; }
.auth-form label > span { font-size: .75rem; }
.auth-submit { min-height: 48px; }
.auth-links, .auth-bottom-copy { font-size: .76rem; }
.landing-page { background: radial-gradient(ellipse at 85% 0, #202026 0, transparent 50%), var(--bg); }
.landing-shell { max-width: 1320px; padding-inline: clamp(20px, 4vw, 56px); }
.landing-nav { border-bottom: 1px solid var(--line); padding-block: 20px; }
.landing-hero { gap: clamp(32px, 5vw, 80px); padding-block: 64px; align-items: center; }
.landing-copy h1 { letter-spacing: -.065em; font-weight: 750; line-height: 1.05; }
.landing-preview, .landing-auth-card { background: #141418; border-color: #42424d; border-radius: 14px; box-shadow: 0 24px 70px #0003; }
.landing-auth-card { padding: 24px; }
.landing-preview { transform: none; }
.landing-discord-button { background: #212127; border: 1px solid #545461; }
.landing-discord-button:hover { background: #2c2c34; }
.landing-live-chip, .preview-status { color: var(--green); background: #65deb00a; border-color: #65deb02e; font-size: .68rem; }
.landing-features { gap: 20px; }
.landing-features article { background: var(--panel); border-color: var(--line); border-radius: 12px; padding: 22px; }
.landing-features h2 { font-size: 1rem; }
.landing-features p, .landing-footer { color: var(--muted); font-size: .8rem; }
.public-profile-shell, .status-page { max-width: 1120px; margin-inline: auto; padding: 32px clamp(18px, 4vw, 42px) 60px; }
.public-profile-nav { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 28px; }
.public-rider-hero, .public-profile-card, .public-stat-grid article { background: var(--panel); border-color: var(--line); border-radius: 12px; box-shadow: none; }
.public-rider-hero { padding: 28px; }
.public-rider-copy h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.public-profile-card { padding: 24px; }
.status-overview { padding: 30px; margin: 24px 0; border-top: 3px solid var(--green); background: var(--panel); }
.status-overview h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.status-overview.status-degraded, .status-overview.status-minor_issue { border-top-color: var(--yellow); }
.status-overview.status-major_outage { border-top-color: var(--red); }
.status-page > .panel { margin-bottom: 20px; }
.status-component { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .83rem; }
.error-shell { min-height: 100dvh; padding: 24px; display: grid; place-items: center; }
.error-card { width: min(100%, 580px); padding: clamp(26px, 5vw, 46px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.error-card h1 { font-size: 2rem; margin-bottom: 14px; }
.error-code { color: var(--accent-2); font-size: 4rem; letter-spacing: -.06em; line-height: 1.2; }
.error-request-id { color: var(--muted); overflow-wrap: anywhere; }
.pwa-install-card { border-color: #4b4b56; background: #16161bf5; border-radius: 12px; }
.pwa-install-primary { background: var(--action); min-height: 44px; }
.pwa-install-dismiss { min-height: 44px; }
.skip-link { border-radius: 7px; background: var(--text); color: var(--bg); z-index: 2000; }
.rc-progress { background: var(--accent); height: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 22px; }
@media (min-width: 1500px) { .main-content { padding-inline: 52px; } .attraction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1190px) {
    .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .sidebar { padding-inline: 12px; }
    .attraction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.stats, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar-date { display: none; }
}
@media (max-width: 900px) {
    .detail-queue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visit-hero { grid-template-columns: 1fr; }
    .admin-history-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-history-filter-form button { width: 100%; }
    .two-column-grid, .admin-columns, .account-access-grid { grid-template-columns: 1fr; }
    .feature-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --space: 19px; --radius: 12px; }
    .app-shell { display: block; }
    .sidebar { display: none; }
    .main-content, .pwa-standalone .main-content { padding: 23px 18px calc(106px + env(safe-area-inset-bottom)); }
    .topbar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 53px; margin-bottom: 24px; }
    .topbar h1 { font-size: 1.85rem; }
    .topbar .eyebrow { font-size: .58rem; }
    .topbar-tools { gap: 8px; margin-left: auto; }
    .topbar-actions { display: flex; }
    .topbar-actions:empty { display: none; }
    .topbar-actions .ghost-button { padding: 9px 11px; font-size: .7rem; }
    .night-more { display: block; position: relative; }
    .night-menu-toggle { display: grid !important; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #1b1b20; color: var(--text); cursor: pointer; list-style: none; }
    .night-menu-toggle::-webkit-details-marker { display: none; }
    .night-more[open] .night-menu-toggle { border-color: #7c7c88; }
    .night-menu.mobile-more-menu { top: calc(100% + 12px); right: 0; bottom: auto; left: auto; width: min(310px, calc(100vw - 36px)); max-height: calc(100dvh - 190px); padding: 12px; border: 1px solid #51515e; border-radius: 12px; background: #141418; box-shadow: 0 24px 70px #0009; z-index: 150; overflow-y: auto; }
    .night-menu-links { display: grid; gap: 3px; }
    .night-menu-links a { display: flex; padding: 11px; border-radius: 7px; min-height: 44px; }
    .night-menu .nav-group-label { padding-top: 13px; }
    .night-menu > form, .night-menu > button { width: 100%; margin-top: 12px; }
    .night-menu > form button { width: 100%; }
    .mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 100; padding: 8px max(10px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #404048; background: #101013f5; backdrop-filter: blur(16px); gap: 5px; }
    .mobile-nav > a { position: relative; flex-direction: column; min-height: 53px; gap: 5px; padding: 7px 4px; color: #b3b3bd; border-radius: 8px; background: transparent; font-size: .64rem; font-weight: 550; }
    .mobile-nav > a .rg-icon { width: 22px; height: 22px; }
    .mobile-nav > a > span { font-size: .64rem; line-height: 1.3; }
    .mobile-nav > a[aria-current] { color: #ffc4c9; background: #ff102012; }
    .mobile-nav > a[aria-current]::before { content: ''; position: absolute; top: -8px; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
    .beta-banner { padding: 5px 14px; justify-content: flex-start; font-size: .59rem; gap: 4px 10px; }
    .beta-banner > span { display: none; }
    .attraction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ridecounter-park-mode .attraction-grid:not(.compact) { grid-template-columns: 1fr; }
    .attraction-card { padding: 16px; border-radius: 11px; }
    .favorite-button { min-width: 44px; min-height: 44px; }
    .attraction-head { flex-wrap: wrap; gap: 10px; }
    .attraction-head .card-actions { justify-content: flex-start; }
    .attraction-head h3 { font-size: .96rem; }
    .queue-grid > .queue-item:first-child .queue-value[data-wait-kind="current"] { font-size: 2.4rem; }
    .queue-item { padding: 10px; }
    .queue-value { font-size: .95rem; }
    .queue-detail { font-size: .76rem; }
    .queue-label { font-size: .7rem; }
    .live-core-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
    .live-core-stats .stat-card { display: grid; padding: 13px; min-height: 92px; gap: 5px; }
    .live-core-stats .stat-card strong { font-size: 1.3rem; margin: 0; }
    .live-core-stats .stat-card span { font-size: .62rem; }
    .live-core-stats .stat-card small { font-size: .59rem; }
    .attraction-toolbar { gap: 10px; }
    .simplified-toolbar .search { flex-basis: 100%; width: 100%; min-width: 0; }
    .primary-filter-group { flex: 1; }
    .primary-filter-group .filter-button { flex: 1; padding-inline: 10px; }
    .filter-select-label { flex: 1 1 120px; }
    .filter-select-label select { width: 100%; }
    .detail-queue-grid { gap: 10px; }
    .detail-queue-card { padding: 17px; }
    .detail-queue-card .detail-big-wait { font-size: 1.1rem; }
    .detail-queue-card:first-child .detail-big-wait[data-wait-kind="current"] { font-size: 2.4rem; }
    .detail-queue-card > small { font-size: .68rem; }
    .attraction-detail-hero { padding: 22px; }
    .ride-grid, .next-rides-grid { grid-template-columns: 1fr; }
    .ride-card { padding: 17px; }
    .list-row { grid-template-columns: minmax(0, 1fr) auto; }
    .admin-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: thin; margin-bottom: 20px; }
    .admin-tabs a { flex: 0 0 auto; white-space: nowrap; min-height: 40px; }
    .admin-history-filter-form { grid-template-columns: 1fr; }
    .admin-filterbar { flex-wrap: wrap; }
    .admin-filterbar .search { min-width: 0; flex-basis: 100%; }
    .panel form[style*="display:flex"] { flex-wrap: wrap; }
    .panel form[style*="display:flex"] input[type="search"] { width: 100%; }
    .app-footer { margin-top: 26px; padding-top: 20px; line-height: 1.7; }
    .pwa-install-card { bottom: calc(88px + env(safe-area-inset-bottom)); }
    .auth-page { padding: 26px 18px; }
    .landing-hero { padding-block: 32px; }
    .landing-auth-card { padding: 20px; }
    .landing-shell > .language-switcher { font-size: .73rem; }
    .landing-features { grid-template-columns: 1fr; }
    .public-rider-hero { padding: 22px; }
    .status-overview { padding: 24px; }
}
@media (max-width: 480px) {
    .attraction-grid { grid-template-columns: 1fr; }
    .attraction-head { flex-wrap: nowrap; }
    .attraction-head .card-actions { justify-content: flex-end; }
    .grid.stats, .stats-grid, .profile-stats-grid { gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-card strong { font-size: 1.55rem; }
    .attraction-card { padding: 20px; }
    .queue-grid > .queue-item:first-child .queue-value[data-wait-kind="current"] { font-size: 2.9rem; }
    .queue-grid > .queue-item:first-child { padding-block: 12px 16px; }
    .queue-item { padding: 13px; }
    .queue-label { font-size: .73rem; }
    .queue-detail { font-size: .78rem; }
    .attraction-updated { font-size: .7rem; }
    .topbar h1 { font-size: 1.7rem; }
    .section-head { flex-wrap: wrap; gap: 12px; }
    .auth-links { flex-direction: row; flex-wrap: wrap; }
    .public-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
    body { background: white; color: #111; }
    .sidebar, .mobile-nav, .beta-banner, .topbar-tools, .pwa-install-card, .app-footer { display: none !important; }
    .app-shell { display: block; }
    .main-content { max-width: none; padding: 0; }
    .panel, .stat-card, .ride-card, .attraction-card { color: #111; background: white; border-color: #aaa; box-shadow: none; break-inside: avoid; }
    h1, h2, h3, strong, .muted, .queue-label, .queue-detail { color: #111; }
}

/* Logo identity: neutral surfaces, fine lines and the red route motif. */
.closure-history { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.closure-history summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 15px 17px; list-style: none; cursor: pointer; }
.closure-history summary::-webkit-details-marker { display: none; }
.closure-history-summary > span:first-child { flex: 1; min-width: 0; }
.closure-history-summary strong { display: block; font-size: .86rem; }
.closure-history-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.closure-count { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.closure-chevron { flex: none; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .15s ease; }
.closure-history[open] > summary > .closure-chevron, .closure-history-day[open] > summary > .closure-chevron { transform: rotate(90deg); }
.closure-history-days { border-top: 1px solid var(--line); padding: 0 16px; }
.closure-history-day + .closure-history-day { border-top: 1px solid var(--line); }
.closure-history-day > summary { padding: 13px 0; flex-wrap: wrap; font-size: .8rem; }
.closure-history-day > summary > time { flex: 1; font-weight: 650; text-transform: capitalize; }
.closure-history-day > summary > .muted { font-size: .73rem; }
.closure-day-events { display: grid; padding: 0 0 12px; }
.closure-history-event { display: grid; grid-template-columns: minmax(110px, .6fr) minmax(0, 1fr); gap: 8px 20px; padding: 11px 12px; border-left: 2px solid var(--line); font-size: .76rem; }
.closure-history-event + .closure-history-event { border-top: 1px solid var(--line); }
.closure-history-time { font-variant-numeric: tabular-nums; }
.closure-history-time small { display: block; font-size: .7rem; }
.closure-history-reason { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 480px) { .closure-history-event { grid-template-columns: 1fr; gap: 4px; } .closure-history summary { padding-inline: 12px; } .closure-history-day > summary { padding-inline: 0; } }
.brand-wordmark { display: block; width: 100%; max-width: 232px; height: auto; object-fit: contain; }
.sidebar .brand { display: block; padding: 0 5px; margin: 0 0 12px; }
.sidebar .brand-wordmark { width: 208px; max-width: 100%; height: auto; border: 0; border-radius: 0; }
.auth-brand .brand-wordmark { width: 260px; max-width: 100%; height: auto; border: 0; border-radius: 0; }
.landing-brand > .brand-wordmark { width: 256px; max-width: 100%; height: auto; }
.public-profile-nav .brand-wordmark { width: 226px; }
.topbar .night-wordmark-text { display: flex; gap: 0; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.night-wordmark-text > span:first-child { color: #f5f5f6; }
.night-wordmark-text > span:last-child { color: var(--accent); }
.night-nav a.active, .night-menu-links a.active { background: #ffffff05; border-color: #ffffff0b; border-left: 2px solid var(--accent); }
.panel, .attraction-card { box-shadow: 0 8px 22px #00000014; }
.attraction-card::before { content: ''; position: absolute; top: -1px; left: 20px; width: 26px; height: 2px; background: var(--accent); border-radius: 0; pointer-events: none; }
.attraction-detail-hero, .feature-hero { background-color: var(--panel); background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 28px 28px; }
.landing-page, .auth-page { background: radial-gradient(ellipse at 85% 0, #29292e 0, transparent 48%), var(--bg); }
.landing-preview::before { background: #ff102008; filter: blur(65px); }
.landing-preview { background: #111114; }
.preview-ride-card, .preview-mini-card { background: #19191e; border-color: var(--line); }
.live-summary-bar, .park-notice { background: #111114; }
.rg-mc-bar { background: #2b2b35; border-color: #aaaab3; }
@media (max-width: 760px) { .landing-brand > .brand-wordmark { width: 210px; } .attraction-card::before { left: 18px; } }
