.kai-schedule-body { --secondary: #1b1d2a; font-family: "Geologica", sans-serif; color: #1b1d2a; background: #f8f9fa; }
.kai-schedule-header { background: #fff; }
.kai-schedule-header__inner { max-width: 1280px; min-height: 64px; margin: auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kai-schedule-header img { display: block; width: 260px; height: 32px; object-fit: contain; }
.kai-schedule-register { background: linear-gradient(100deg, #4d76ff, #1b1d2a); border-radius: 30px; padding: 10px 17px; color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
.kai-schedule { background: #f8f9fa; padding: 12px 40px 40px; }
.kai-schedule__inner { max-width: 1200px; margin: auto; }
.kai-schedule-back { display: inline-flex; align-items: center; gap: 4px; color: #6b7385; font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.kai-schedule h1 { font-size: 36px; line-height: 1.25; font-weight: 800; margin: 0 0 4px; }
.kai-schedule-year { font-size: 18px; color: #6b7385; margin: 0 0 26px; }
.kai-schedule-panel { background: #fff; border: 1px solid #e5e6e9; border-radius: 17px; box-shadow: 0 1px 2px #0003; }
.kai-schedule-filters { display: grid; grid-template-columns: 1fr 1fr; padding: 20px 32px; margin-bottom: 24px; }
.kai-schedule-filter:first-child { padding-right: 44px; border-right: 1px solid #cfd3de; }
.kai-schedule-filter:last-child { padding-left: 43px; }
.kai-schedule-filter > p { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #6b7385; }
.kai-schedule-filter__buttons { display: flex; gap: 8px; }
.kai-schedule-chip { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 40px; padding: 8px 12px; border: 1px solid #cfd3de; border-radius: 24px; background: #f3f4f6; text-align: center; font-size: 14px; font-weight: 600; }
.kai-schedule-chip.is-active { background: #4d76ff; color: #fff; border-color: #4d76ff; }
.kai-schedule-chip.is-disabled { color: #1b1d2a; cursor: default; }
.kai-schedule-chip[href]:hover { border-color: #4d76ff; }
.kai-schedule-calendar { position: relative; padding: 28px 32px; }
.kai-schedule-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.kai-schedule-week { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.kai-schedule-week__arrow { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #dfe3eb; border-radius: 50%; color: #6b7385; }
.kai-schedule-week__arrow.is-prev svg { transform: rotate(180deg); }
.kai-schedule-week__arrow[aria-disabled] { opacity: .4; }
.kai-schedule-week__arrow[href]:hover { background: #eef2ff; color: #4d76ff; }
.kai-schedule-week__label { padding: 9px 16px; border: 1px solid #dfe3eb; border-radius: 24px; font-size: 15px; font-weight: 600; white-space: nowrap; margin: 0; }
.kai-schedule-notice { display: flex; align-items: center; gap: 12px; border: 1px solid #eaf0ff; border-radius: 8px; background: #f7f9ff; padding: 10px 12px; font-size: 13px; line-height: 20px; margin: 0; }
.kai-schedule-notice svg { flex-shrink: 0; color: #4d76ff; }
.kai-schedule-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.kai-schedule-day { border: 1px solid #dfe3eb; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-height: 264px; }
.kai-schedule-day__header { padding: 8px 4px 6px; text-align: center; background: #f3f4f6; }
.kai-schedule-day h2 { margin: 0 0 3px; font-size: 16px; line-height: 22px; font-weight: 700; }
.kai-schedule-day time { font-size: 13px; color: #6b7385; line-height: 20px; }
.kai-schedule-day__lessons { padding: 16px 8px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kai-schedule-lesson { border-radius: 14px; padding: 9px 10px; background: #eef2ff; box-shadow: 0 1px 2px #0003; }
.kai-schedule-lesson__time { margin: 0 0 4px; color: #4d76ff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.kai-schedule-lesson h3 { font-size: 13px; line-height: 20px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.kai-schedule-day__empty { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 172px; margin: 0; text-align: center; border: 1px dashed #cfd3de; border-radius: 12px; background: #f8f9fa; color: #6b7385; font-size: 13px; padding: 8px; }
.kai-schedule-day__empty.is-holiday { border-color: #bfcfff; background: #f2f5ff; color: #395bd1; font-weight: 600; overflow-wrap: anywhere; }
.kai-schedule-body > footer { background: #1b1d2a; }
.kai-schedule-body > footer > div { max-width: 1144px; }
.kai-schedule-body > footer .footer-logo img { height: 54px; }
.kai-schedule-body > footer .flex.items-center.gap-3:not(.flex-col) { gap: 10px; }
.kai-schedule-body > footer .flex.items-center.gap-3:not(.flex-col) a { width: 24px; height: 24px; }
.kai-schedule-body > footer .mt-2 { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.kai-schedule-body > footer .mt-2 a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; padding: 11px 16px; border-radius: 30px; background: #ffffff1a; color: #fff; font-size: 14px; font-weight: 400; line-height: 20px; text-align: center; }
.kai-schedule-body > footer .mt-2 a:hover { background: #ffffff26; }
.kai-schedule a:focus-visible { outline: 3px solid #4d76ff; outline-offset: 3px; }
.kai-schedule-header a:focus-visible { outline: 3px solid #4d76ff; outline-offset: 3px; }
.kai-schedule-loader { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: center; padding: 100px 16px 24px; border-radius: inherit; background: #ffffffd9; cursor: wait; }
.kai-schedule-loader[hidden] { display: none; }
.kai-schedule-loader__card { position: sticky; top: 24px; display: flex; align-items: center; gap: 14px; padding: 20px 24px; border: 1px solid #dce4ff; border-radius: 16px; background: #fff; box-shadow: 0 8px 32px #1b1d2a26; color: #1b1d2a; font-size: 15px; font-weight: 600; }
.kai-schedule-loader__spinner { flex-shrink: 0; width: 32px; height: 32px; border: 3px solid #e1e8ff; border-top-color: #4d76ff; border-radius: 50%; animation: kai-schedule-spin .8s linear infinite; }
.kai-schedule[aria-busy="true"] [data-schedule-link] { opacity: .5; cursor: wait; }
@keyframes kai-schedule-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kai-schedule-loader__spinner { animation: none; } }
@media (max-width: 1100px) {
  .kai-schedule { padding-left: 24px; padding-right: 24px; }
  .kai-schedule-calendar { padding: 24px; }
  .kai-schedule-toolbar { flex-wrap: wrap; gap: 16px; }
  .kai-schedule-notice { flex: 1 1 400px; }
  .kai-schedule-lesson { padding: 8px 6px; }
  .kai-schedule-lesson__time { font-size: 12px; }
  .kai-schedule-day h2 { font-size: 14px; }
}
@media (max-width: 850px) {
  .kai-schedule-filters { padding: 20px; gap: 20px; }
  .kai-schedule-filter:first-child { padding-right: 20px; }
  .kai-schedule-filter:last-child { padding-left: 0; }
  .kai-schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kai-schedule-day { min-height: 220px; }
  .kai-schedule-lesson__time, .kai-schedule-day h2 { font-size: 16px; }
  .kai-schedule-lesson h3 { font-size: 14px; }
  .kai-schedule-day__empty { min-height: 120px; }
}
@media (max-width: 560px) {
  .kai-schedule-header__inner { padding: 12px 16px; gap: 12px; }
  .kai-schedule-header img { width: 164px; height: auto; max-height: 32px; }
  .kai-schedule-register { font-size: 13px; padding: 10px 14px; }
  .kai-schedule { padding: 16px 24px 32px; }
  .kai-schedule-back { margin-bottom: 20px; }
  .kai-schedule h1 { font-size: 24px; margin-bottom: 8px; }
  .kai-schedule-year { font-size: 16px; margin-bottom: 24px; }
  .kai-schedule-filters { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; margin-bottom: 20px; }
  .kai-schedule-filter:first-child { border-right: 0; border-bottom: 1px solid #dfe3eb; padding: 0 0 20px; }
  .kai-schedule-filter > p { line-height: 20px; }
  .kai-schedule-chip { font-size: 14px; padding: 8px; }
  .kai-schedule-chip__suffix { display: none; }
  .kai-schedule-calendar { padding: 20px 16px; }
  .kai-schedule-loader__card { gap: 10px; padding: 16px; font-size: 13px; }
  .kai-schedule-toolbar { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 32px; }
  .kai-schedule-week { justify-content: center; width: 100%; }
  .kai-schedule-week__label { flex: 1; min-width: 0; font-size: 14px; white-space: normal; text-align: center; padding: 10px 8px; }
  .kai-schedule-notice { order: -1; flex: none; font-size: 12px; line-height: 16px; padding: 12px; align-items: flex-start; }
  .kai-schedule-grid { grid-template-columns: 1fr; gap: 8px; }
  .kai-schedule-day { display: grid; grid-template-columns: 39% minmax(0, 1fr); min-height: 0; }
  .kai-schedule-day__header { display: block; padding: 12px; text-align: left; }
  .kai-schedule-day h2 { font-size: 14px; line-height: 20px; margin: 0 0 4px; }
  .kai-schedule-day time { font-size: 13px; }
  .kai-schedule-day__lessons { min-width: 0; padding: 12px; }
  .kai-schedule-day__empty { min-height: 60px; }
  .kai-schedule-lesson { padding: 9px 10px; }
  .kai-schedule-lesson__time { font-size: 14px; }
  .kai-schedule-lesson h3 { font-size: 13px; }
}
@media (max-width: 360px) {
  .kai-schedule-header img { width: 140px; }
  .kai-schedule-register { font-size: 12px; padding: 10px 12px; }
  .kai-schedule { padding-left: 16px; padding-right: 16px; }
  .kai-schedule-day__header, .kai-schedule-day__lessons { padding: 10px 8px; }
  .kai-schedule-day h2, .kai-schedule-lesson__time { font-size: 12px; }
  .kai-schedule-lesson { padding: 9px 8px; }
}
