:root {
    color-scheme: light;
    --schedule-accent: #111827;
    --schedule-broadcast: #8b5cf6;
    --schedule-off: #64748b;
    --schedule-other: #0f766e;
    --schedule-background: #ffffff;
    --schedule-card: #ffffff;
    --schedule-text: #111827;
    --schedule-border: color-mix(in srgb, var(--schedule-text) 9%, transparent);
    --schedule-soft: color-mix(in srgb, var(--schedule-text) 5%, var(--schedule-card));
    --schedule-muted: color-mix(in srgb, var(--schedule-text) 65%, var(--schedule-card));
    --schedule-faint: color-mix(in srgb, var(--schedule-text) 45%, var(--schedule-card));
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--schedule-text); background: var(--schedule-background); }
button { font: inherit; cursor: pointer; color: inherit; }
button:focus-visible { outline: 2px solid var(--schedule-accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.schedule-calendar { padding: 24px; overflow: hidden; }
.schedule-heading { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--schedule-border); }
.schedule-heading-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; background: var(--schedule-soft); color: var(--schedule-text); }
.schedule-heading-icon svg { width: 23px; height: 23px; }
.schedule-heading-copy { min-width: 0; }
.schedule-eyebrow { font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--schedule-faint); }
.schedule-title { font-size: 24px; letter-spacing: -.04em; line-height: 1.35; margin: 4px 0 0; overflow-wrap: anywhere; }
.schedule-description { font-size: 13px; line-height: 1.7; color: var(--schedule-muted); white-space: pre-wrap; margin: 8px 0 0; overflow-wrap: anywhere; }
.schedule-description:empty { display: none; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.schedule-navigation { display: flex; align-items: center; gap: 6px; min-width: 0; }
.schedule-navigation h2 { font-size: 15px; letter-spacing: -.025em; margin: 0 5px; min-width: 144px; text-align: center; }
.schedule-navigation button { display: grid; place-items: center; border: 1px solid var(--schedule-border); background: var(--schedule-card); border-radius: 10px; min-width: 34px; height: 34px; font-size: 22px; transition: background .15s; }
.schedule-navigation button:hover { background: var(--schedule-soft); }
#schedule-today { font-size: 12px; font-weight: 600; padding: 0 13px; margin-left: 3px; }
.schedule-view-switch { display: flex; background: var(--schedule-soft); border: 1px solid var(--schedule-border); border-radius: 11px; padding: 3px; gap: 3px; }
.schedule-view-switch button { border: 0; background: transparent; border-radius: 8px; padding: 7px 17px; font-size: 12px; font-weight: 700; color: var(--schedule-muted); }
.schedule-view-switch button[aria-pressed=true] { background: var(--schedule-card); color: var(--schedule-text); box-shadow: 0 1px 4px #0000000d; }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--schedule-muted); margin-bottom: 18px; }
.schedule-legend span { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--schedule-border); border-radius: 999px; }
.schedule-legend span:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--schedule-broadcast); }
.schedule-legend .schedule-legend-off:before { background: var(--schedule-off); }
.schedule-legend .schedule-legend-other:before { background: var(--schedule-other); }
#schedule-status { font-size: 12px; color: var(--schedule-muted); margin: 12px 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.schedule-day { background: var(--schedule-card); border: 1px solid var(--schedule-border); border-radius: 14px; min-width: 0; min-height: 240px; overflow: hidden; }
.schedule-day.is-today { border-color: color-mix(in srgb, var(--schedule-accent) 35%, var(--schedule-card)); }
.schedule-day.is-outside { opacity: .5; }
.schedule-day-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px; background: var(--schedule-soft); border-bottom: 1px solid var(--schedule-border); gap: 6px; }
.schedule-day-name { font-size: 11px; font-weight: 600; color: var(--schedule-muted); }
.schedule-day-number { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; flex-shrink: 0; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; }
.is-today .schedule-day-number { color: var(--schedule-card); background: var(--schedule-accent); }
.schedule-day-heading.is-sunday .schedule-day-name { color: #e35d6a; }
.schedule-day-heading.is-saturday .schedule-day-name { color: #4d83c9; }
.schedule-day-add { width: 24px; height: 24px; border: 1px solid var(--schedule-border); background: var(--schedule-card); color: var(--schedule-muted); border-radius: 7px; font-size: 18px; line-height: 1; }
.schedule-events { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.schedule-event { border: 1px solid var(--schedule-border); background: color-mix(in srgb, var(--event-color, var(--schedule-broadcast)) 5%, var(--schedule-card)); border-radius: 10px; text-align: left; padding: 10px; width: 100%; min-width: 0; transition: background .15s, border-color .15s; }
.schedule-event:hover { background: color-mix(in srgb, var(--event-color, var(--schedule-broadcast)) 10%, var(--schedule-card)); border-color: color-mix(in srgb, var(--event-color, var(--schedule-broadcast)) 35%, var(--schedule-card)); }
.schedule-event-kind { display: table; font-size: 10px; line-height: 1.5; font-weight: 700; color: color-mix(in srgb, var(--event-color, var(--schedule-broadcast)) 70%, var(--schedule-text)); background: color-mix(in srgb, var(--event-color, var(--schedule-broadcast)) 12%, var(--schedule-card)); border-radius: 5px; padding: 2px 6px; margin-bottom: 7px; }
.schedule-event-time { font-size: 11px; color: var(--schedule-muted); display: block; font-variant-numeric: tabular-nums; line-height: 1.5; margin-bottom: 4px; }
.schedule-event-title { font-size: 12px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; display: block; }
.schedule-event-description { font-size: 11px; line-height: 1.6; color: var(--schedule-muted); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.schedule-empty { font-size: 11px; text-align: center; color: var(--schedule-faint); padding: 25px 0; }
.schedule-footnote { font-size: 11px; text-align: right; margin: 18px 0 0; color: var(--schedule-faint); }
.schedule-grid.is-month { gap: 1px; background: var(--schedule-border); border: 1px solid var(--schedule-border); border-radius: 14px; overflow: hidden; }
.is-month .schedule-day { min-height: 145px; border: 0; border-radius: 0; }
.is-month .schedule-day-heading { padding: 8px; border: 0; }
.is-month .schedule-day-number { width: 25px; height: 25px; border-radius: 7px; font-size: 14px; }
.is-month .schedule-event { padding: 6px; border-radius: 7px; }
.is-month .schedule-event-title { font-size: 11px; }
.is-month .schedule-event-kind, .is-month .schedule-event-description { display: none; }
.is-month .schedule-event-time { font-size: 9px; margin-bottom: 2px; }
.is-month .schedule-empty { padding: 10px 0; font-size: 10px; }
[data-theme=pastel] .schedule-day { background: color-mix(in srgb, var(--schedule-accent) 3%, var(--schedule-card)); }
[data-theme=pastel] .schedule-event { border-radius: 12px; background: color-mix(in srgb, var(--event-color) 10%, var(--schedule-card)); }
[data-theme=pastel] .schedule-event:hover { background: color-mix(in srgb, var(--event-color) 16%, var(--schedule-card)); }
[data-theme=minimal] .schedule-day { border-radius: 8px; }
[data-theme=minimal] .schedule-event { background: var(--schedule-card); border-radius: 7px; }
[data-theme=minimal] .schedule-event:hover { background: var(--schedule-soft); }
[data-theme=minimal] .schedule-eyebrow { display: none; }
.schedule-detail { border: 1px solid var(--schedule-border); border-radius: 16px; background: var(--schedule-card); color: var(--schedule-text); padding: 24px; width: min(440px, calc(100% - 32px)); max-height: 85vh; overflow: auto; }
.schedule-detail::backdrop { background: #0008; }
#schedule-detail-close { display: grid; place-items: center; float: right; background: var(--schedule-soft); border: 0; border-radius: 8px; width: 30px; height: 30px; font-size: 22px; line-height: 1; }
.schedule-detail-kind { font-size: 11px; color: var(--schedule-muted); font-weight: 700; }
.schedule-detail h2 { font-size: 22px; letter-spacing: -.03em; overflow-wrap: anywhere; }
#schedule-detail-time { font-size: 13px; color: var(--schedule-muted); }
#schedule-detail-description { font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .schedule-calendar { padding: 20px; }
    .schedule-grid:not(.is-month) { grid-template-columns: 1fr; }
    .schedule-grid:not(.is-month) .schedule-day { min-height: 0; }
    .schedule-grid:not(.is-month) .schedule-day-heading { justify-content: flex-start; gap: 12px; }
    .schedule-grid:not(.is-month) .schedule-day-add { margin-left: auto; }
    .schedule-grid:not(.is-month) .schedule-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
    .schedule-empty { padding: 8px 0; }
}
@media (max-width: 460px) {
    .schedule-calendar { padding: 16px; }
    .schedule-heading { gap: 10px; padding-bottom: 16px; margin-bottom: 16px; }
    .schedule-heading-icon { width: 38px; height: 38px; border-radius: 11px; }
    .schedule-title { font-size: 21px; }
    .schedule-toolbar { gap: 12px; }
    .schedule-navigation { width: 100%; gap: 3px; }
    .schedule-navigation h2 { flex: 1; min-width: 0; font-size: 13px; }
    .schedule-navigation button { min-width: 30px; height: 32px; }
    #schedule-today { padding: 0 10px; }
    .schedule-view-switch { width: 100%; }
    .schedule-view-switch button { flex: 1; padding: 6px 13px; }
    .is-month .schedule-day { min-height: 100px; }
    .is-month .schedule-day-heading { padding: 6px 3px; flex-wrap: wrap; gap: 3px; }
    .is-month .schedule-day-name { font-size: 9px; }
    .is-month .schedule-day-number { width: 21px; height: 21px; font-size: 12px; border-radius: 6px; }
    .is-month .schedule-events { padding: 3px; gap: 4px; }
    .is-month .schedule-event { padding: 4px 3px; border-radius: 5px; }
    .is-month .schedule-event-title { font-size: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .is-month .schedule-event-time { font-size: 8px; }
    .is-month .schedule-day-add { width: 17px; height: 17px; font-size: 14px; }
    .is-month .schedule-empty { font-size: 8px; }
    .schedule-footnote { text-align: center; font-size: 10px; }
}
