:root {
    color-scheme: dark;
    --bg: #070a16;
    --bg2: #0d1429;
    --panel: #121a32;
    --panel2: #16213c;
    --border: #293554;
    --text: #f4f7ff;
    --muted: #aebbd4;
    --cyan: #5de4f7;
    --radius: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse at 80% -15%, #213168 0, transparent 46%),
        radial-gradient(ellipse at 0% 14%, #351a47 0, transparent 34%), var(--bg);
    color: var(--text);
    line-height: 1.55;
}

.schedule-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.schedule-header {
    padding: 54px 0 34px;
}

.schedule-eyebrow {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.schedule-header h1 {
    margin: 14px 0;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -.045em;
    line-height: 1.1;
}

.schedule-header > p:last-child {
    max-width: 680px;
    color: var(--muted);
}

.schedule-page {
    margin: 0 0 48px;
}

.schedule-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.schedule-toolbar label {
    color: var(--muted);
    font-weight: 700;
}

.schedule-toolbar select {
    min-width: 190px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg2);
    color: var(--text);
}

.schedule-toolbar select:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.schedule-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
}

.schedule-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.schedule-table th,
.schedule-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.schedule-table th {
    color: var(--cyan);
    font-size: 13px;
    letter-spacing: .04em;
    white-space: nowrap;
}

.schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.schedule-table tbody tr:hover {
    background: var(--panel2);
}

.schedule-radio-button,
.schedule-dialog-close {
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg2);
    color: var(--cyan);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.schedule-radio-button {
    padding: 7px 10px;
}

.schedule-radio-button:hover,
.schedule-dialog-close:hover {
    background: var(--panel2);
}

.schedule-unbooked {
    color: var(--muted);
}

.schedule-radio-dialog {
    width: min(440px, calc(100% - 32px));
    max-height: min(80vh, 600px);
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
}

.schedule-radio-dialog::backdrop {
    background: #02040bcc;
    backdrop-filter: blur(3px);
}

.schedule-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.schedule-dialog-header h2 {
    margin: 0;
    font-size: 20px;
}

.schedule-dialog-header p {
    margin: 5px 0 0;
    color: var(--muted);
}

.schedule-dialog-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
}

.schedule-radio-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.schedule-radio-list li {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg2);
}

.schedule-radio-list a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.schedule-table [hidden] {
    display: none;
}

.schedule-empty {
    margin: 0 0 48px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--muted);
}

@media (max-width: 700px) {
    .schedule-table {
        min-width: 680px;
    }

    .schedule-toolbar {
        align-items: stretch;
    }

    .schedule-toolbar select {
        width: 100%;
    }

    .schedule-count {
        margin-left: 0;
    }
}
