.schedule-page [hidden] { display: none !important; }
.schedule-page > h1 { margin: 0 0 10px; font-size: 27px; }
.schedule-intro { color: #526777; line-height: 1.5; font-size: 13px; margin: 0 0 20px; }
.schedule-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; align-items: start; }
.schedule-sidebar { position: sticky; top: 14px; min-width: 0; }
.schedule-list { display: grid; gap: 16px; min-width: 0; }
.schedule-stage { border: 1px solid #b4c7d8; border-radius: 7px; overflow: hidden; background: #fff; }
.schedule-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: #e8f1fa; border-bottom: 1px solid #c9d9e6; }
.schedule-stage-heading h2 { margin: 0; font-size: 17px; color: #234b68; }
.schedule-stage-count { color: #536d80; font-size: 12px; white-space: nowrap; }
.schedule-day + .schedule-day { border-top: 1px solid #b4c7d8; }
.schedule-day { scroll-margin-top: 14px; outline: none; }
.schedule-day.is-selected-date > .schedule-day-heading { background: #dcecf8; box-shadow: inset 3px 0 #2974a5; }
.schedule-day:focus-visible { outline: 2px solid #2974a5; outline-offset: -2px; }
.schedule-day-heading { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: #f5f8fb; }
.schedule-day-heading h3 { margin: 0; font-size: 14px; }
.schedule-day-heading span { color: #607384; font-size: 12px; }
.schedule-entry { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 14px; }
.schedule-entry + .schedule-entry { border-top: 1px solid #e1e9ef; }
.schedule-time { color: #295778; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.schedule-time.is-pending { font-size: 11px; line-height: 1.3; font-weight: 400; }
.schedule-match-body { min-width: 0; }
.schedule-match-line { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 6px; }
.schedule-match-label { color: #657785; font-size: 11px; }
.schedule-matchup { display: grid; grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); align-items: center; gap: 8px; }
.schedule-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.schedule-team img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 5px; object-fit: contain; background: #eef3f7; border: 1px solid #d9e3eb; }
.schedule-team-name { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; line-height: 1.3; }
.schedule-team.is-pending .schedule-team-name { font-weight: 400; color: #738390; }
.schedule-versus { text-align: center; color: #8394a0; font-size: 10px; }
.schedule-note { margin: 4px 0 0 31px; color: #526777; font-size: 12px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.schedule-actions { display: flex; gap: 4px; }
.schedule-actions button { width: 27px; height: 27px; padding: 0; font-size: 17px; color: #426179; cursor: pointer; }
.schedule-empty { padding: 26px; background: #f5f8fb; border: 1px dashed #b4c7d8; border-radius: 6px; color: #526777; }
.schedule-editor { margin: 22px 0; padding: 18px; background: #e8f1fa; border: 1px solid #c0d4e4; border-radius: 6px; }
.schedule-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 15px; }
.schedule-editor-heading h2 { font-size: 17px; margin: 0; color: #234b68; }
.schedule-editor-heading label { font-size: 13px; }
.schedule-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.schedule-form label { display: grid; gap: 6px; font-size: 13px; }
.schedule-form input, .schedule-form select { padding: 8px; min-height: 38px; font: inherit; max-width: 100%; }
.schedule-note-field { flex: 1; min-width: 150px; }
.schedule-form button { min-height: 38px; padding: 8px 16px; }
#schedule-status { color: #526777; }
#schedule-status:empty { display: none; }
.schedule-calendar { padding: 12px; border: 1px solid #b4c7d8; border-radius: 7px; background: #f8fbfe; }
.schedule-calendar-heading { display: grid; grid-template-columns: 25px minmax(0,1fr) 25px; align-items: center; gap: 3px; margin-bottom: 10px; }
.schedule-calendar-heading h2 { margin: 0; text-align: center; font-size: 14px; color: #234b68; }
.schedule-calendar-heading h2::first-letter { text-transform: uppercase; }
.schedule-calendar-heading button { border: 0; background: transparent; color: #426179; padding: 0; height: 27px; font-size: 23px; cursor: pointer; }
.schedule-calendar-weekdays, .schedule-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; text-align: center; }
.schedule-calendar-weekdays { color: #768b9a; font-size: 10px; margin-bottom: 5px; }
.schedule-calendar-day, .schedule-calendar-blank { box-sizing: border-box; display: flex; position: relative; align-items: center; justify-content: center; height: 26px; border: 1px solid transparent; border-radius: 4px; font: 12px 'Segoe UI',sans-serif; color: #687c8b; }
.schedule-calendar-day.is-today { border-color: #8baac0; }
button.schedule-calendar-day { width: 100%; padding: 0; background: #dcecf8; color: #205d86; font-weight: 700; cursor: pointer; }
button.schedule-calendar-day:hover, button.schedule-calendar-day:focus-visible { background: #c5e1f4; outline: 2px solid #2974a5; outline-offset: 1px; }
button.schedule-calendar-day.is-selected { background: #286f9e; border-color: #286f9e; color: white; }
.schedule-calendar-cell { position: relative; }
.schedule-calendar-dot { width: 4px; height: 4px; border-radius: 50%; background: #2974a5; display: inline-block; }
.schedule-calendar-legend { display: flex; align-items: center; gap: 6px; color: #607788; font-size: 11px; margin-top: 10px; }
.schedule-calendar-nearest { margin-top: 10px; padding: 0; color: #25618b; background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; }
.schedule-calendar-empty { font-size: 12px; color: #607788; margin: 10px 0 0; }
.schedule-calendar-hint { margin: 9px 2px 0; color: #758795; font-size: 11px; line-height: 1.5; }
.schedule-calendar-tooltip { display: none; position: absolute; z-index: 30; top: calc(100% + 7px); left: calc((100% + 3px) * var(--calendar-column) * -1); width: 225px; max-width: calc(100vw - 48px); padding: 12px; border-radius: 6px; background: #203e54; color: #fff; box-shadow: 0 6px 20px #10293940; text-align: left; pointer-events: none; font-size: 12px; line-height: 1.4; }
.schedule-calendar-cell:not(.is-tooltip-dismissed):hover .schedule-calendar-tooltip, .schedule-calendar-cell:not(.is-tooltip-dismissed):focus-within .schedule-calendar-tooltip { display: block; }
.schedule-calendar-tooltip strong { display: block; margin-bottom: 8px; font-size: 13px; }
.schedule-calendar-tooltip-stage + .schedule-calendar-tooltip-stage { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ffffff30; }
.schedule-calendar-tooltip-stage span { display: block; color: #bfdef3; font-weight: 600; }
.schedule-calendar-tooltip small { display: block; color: #bbcad4; font-size: 10px; margin-top: 5px; }
@media (max-width: 850px) {
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-sidebar { position: static; width: min(100%,260px); }
}
@media (max-width: 540px) {
  .schedule-page { padding: 20px 14px; }
  .schedule-entry { grid-template-columns: 49px minmax(0,1fr); gap: 6px; padding: 8px 10px; }
  .schedule-match-line { grid-template-columns: 20px minmax(0,1fr); gap: 3px; }
  .schedule-matchup { gap: 4px; grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr); }
  .schedule-team { gap: 5px; }
  .schedule-team img { width: 22px; height: 22px; flex-basis: 22px; }
  .schedule-team-name { font-size: 11px; }
  .schedule-actions { grid-column: 2; justify-content: flex-end; }
  .schedule-note { margin-left: 23px; }
  .schedule-note-field { flex-basis: 100%; }
}
