.timetable-section { padding-block: 32px 72px; scroll-margin-top: 95px; }
.timetable-shell { border: 1px solid var(--line); border-radius: 30px; padding: clamp(18px, 3vw, 36px); background: var(--surface-alt); box-shadow: var(--shadow); }
.timetable-heading, .week-nav, .schedule-meta, .departure-top, .departure-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.timetable-heading h2 { margin: 4px 0; font-size: clamp(24px, 4vw, 34px); }
.live-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--mint-deep); font-size: 13px; font-weight: 800; }
.live-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #27a889; }
html[data-theme="dark"] .live-tag { color: #9be6cd; }
.week-nav { margin-block: 24px 16px; justify-content: flex-start; }
.week-nav button, .schedule-day, .week-all, .schedule-reset { min-height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 16px; cursor: pointer; color: var(--ink); background: var(--surface); }
.week-nav button:disabled { opacity: .45; cursor: default; }
.week-caption { font-weight: 800; margin-inline: auto; }
.schedule-filters { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.schedule-filters label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.schedule-filters select, .schedule-filters input { font: inherit; min-width: 0; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); }
.schedule-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-block: 18px 10px; }
.schedule-day { display: grid; gap: 2px; justify-items: center; padding: 10px 2px; position: relative; }
.schedule-day strong { font-size: 22px; line-height: 1.4; }
.schedule-day small { font-size: 11px; }
.schedule-day.is-today::after { content: ""; position: absolute; top: 7px; inset-inline-end: 7px; width: 5px; height: 5px; border-radius: 100%; background: #27a889; }
.schedule-day[aria-pressed="true"], .week-all[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: white; box-shadow: 0 4px 16px #5b35d52b; }
.schedule-meta { margin-block: 18px; font-size: 13px; color: var(--ink-soft); }
.schedule-results { display: grid; gap: 24px; }
.schedule-group h3 { margin-block: 0 12px; font-size: 18px; }
.departure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.departure-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.departure-time { font-size: 26px; font-weight: 900; line-height: 1.3; }
.departure-time small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-top: 6px; }
.departure-mode { font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 12px; padding: 7px 12px; }
html[data-theme="dark"] .departure-mode { color: #d7cbff; }
.departure-route { margin: 18px 0 10px; font-size: 18px; }
.departure-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.departure-tags span { background: var(--surface-muted); padding: 4px 9px; border-radius: 9px; font-size: 12px; }
.departure-tags .seat-low { color: #a33a14; background: #ffeadb; }
.departure-card details { border-top: 1px solid var(--line); padding-top: 10px; margin-block: 14px; }
.departure-card summary { cursor: pointer; font-size: 13px; font-weight: 700; min-height: 34px; }
.departure-stations { padding-inline-start: 22px; font-size: 13px; }
.departure-stations li { padding-block: 6px; }
.departure-stations time { float: inline-end; margin-inline-start: 8px; font-weight: 800; }
.schedule-message { padding: 32px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; background: var(--surface); }
.schedule-message p { color: var(--ink-soft); }
.schedule-note { color: var(--ink-soft); font-size: 12px; margin-bottom: 0; }
.invitation-hero { padding-block: 50px 34px; }
.invitation-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.invitation-layout h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.5; margin: 12px 0; }
.invitation-card { padding: 28px; text-align: center; border: 1px solid var(--line); border-radius: 30px; background: var(--surface-alt); box-shadow: var(--shadow); }
.invitation-code { font-size: clamp(28px, 6vw, 42px); font-weight: 900; letter-spacing: 4px; margin: 8px 0 18px; overflow-wrap: anywhere; color: var(--brand); }
html[data-theme="dark"] .invitation-code { color: #b7a2ff; }
.invitation-actions { display: grid; gap: 12px; }
.invitation-card .download-actions { justify-content: center; margin-top: 14px; }
.invitation-copy { font-size: 13px; color: var(--ink-soft); }
.invitation-art { width: 110px; height: 110px; object-fit: contain; }
.service-discovery { padding-block: 28px 70px; }
.service-discovery h2 { margin: 0 0 8px; }
.service-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.service-link { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-alt); transition: transform .2s, border-color .2s; }
.service-link:hover { transform: translateY(-4px); border-color: var(--brand); }
.service-link img { width: 100px; height: 100px; object-fit: contain; align-self: center; margin-bottom: 12px; }
.service-link h3 { margin: 0 0 8px; font-size: 19px; }
.service-link p { font-size: 13px; color: var(--ink-soft); margin: 0 0 20px; }
.service-link .service-more { font-size: 13px; color: var(--brand); font-weight: 800; margin-top: auto; }
html[data-theme="dark"] .service-link .service-more { color: #b7a2ff; }
@media (max-width: 900px) { .service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .invitation-layout, .departure-grid, .schedule-filters { grid-template-columns: minmax(0, 1fr); }
  .schedule-days { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px 10px; scrollbar-width: thin; }
  .schedule-day { flex: 1 0 48px; min-width: 48px; border-radius: 11px; font-size: 11px; }
  .schedule-day strong { font-size: 19px; }
  .schedule-day small { font-size: 9px; }
  .week-nav { gap: 8px; } .week-nav button { padding-inline: 10px; font-size: 12px; }
  .week-caption { order: -1; flex-basis: 100%; text-align: center; }
  .departure-card { padding: 18px; }
  .service-links { gap: 10px; } .service-link { padding: 18px 14px; }
  .service-link h3 { font-size: 16px; }
}
.timetable-shell { background: radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%), var(--surface-alt); }
.timetable-heading img { filter: drop-shadow(0 10px 12px #5b35d51a); }
.schedule-selection { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.selection-chip { font-size: 12px; color: var(--ink-soft); }
.schedule-day { transition: background .18s, color .18s, border-color .18s, transform .18s; }
.schedule-day:active { transform: scale(.95); }
.departure-card { position: relative; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; animation: odo-departure-in .3s ease both; animation-delay: calc(var(--card-order, 0) * 35ms); }
.departure-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 22px; width: 4px; height: 38px; border-radius: 5px; background: linear-gradient(var(--brand), #9d82f0); }
.departure-bottom { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 18px; }
.departure-time { letter-spacing: -.03em; }
.schedule-message { animation: odo-departure-in .25s ease both; }
[aria-busy="true"] .schedule-message { min-height: 180px; display: grid; place-content: center; background: linear-gradient(110deg, var(--surface) 25%, var(--surface-muted) 42%, var(--surface) 60%); background-size: 220% 100%; animation: odo-schedule-loading 1.6s ease-in-out infinite; }
@media (hover: hover) {
  .departure-card:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: 0 12px 28px #5b35d512; transform: translateY(-3px); }
  .schedule-day:hover { border-color: var(--brand); }
}
@keyframes odo-departure-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes odo-schedule-loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .service-link, .schedule-day, .departure-card { transition: none; }
  .departure-card, .schedule-message, [aria-busy="true"] .schedule-message { animation: none; }
}
