:root { color-scheme: dark; }
[x-cloak] { display: none !important; }

.classes-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: #fff;
    background: #5d7358;
    font-family: var(--bs-body-font-family);
}

.classes-shell {
    box-sizing: border-box;
    width: min(100%, 2200px);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(1.25rem, 2.6vw, 3.5rem);
}

.classes-header,
.calendar-titlebar,
.class-card-topline,
.class-card-footer,
.schedule-entry {
    display: flex;
    align-items: center;
}

.classes-header {
    min-height: clamp(5.25rem, 9vw, 8.5rem);
    gap: clamp(1rem, 2.4vw, 2.5rem);
    margin-bottom: clamp(1.1rem, 2vw, 2rem);
}

.classes-logo {
    display: block;
    width: clamp(8.8rem, 15vw, 15rem);
    height: auto;
    mix-blend-mode: normal;
}

.classes-heading { flex: 1; }
.classes-kicker { display: block; color: rgba(255, 255, 255, .7); font-size: clamp(.68rem, .85vw, .9rem); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.classes-heading h1, .calendar-titlebar h2 { margin: .22rem 0 0; color: #fff; font-size: clamp(1.55rem, 3vw, 3.4rem); font-weight: 650; letter-spacing: -.035em; }

.classes-live {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(.72rem, 1vw, .95rem);
    white-space: nowrap;
}

.classes-live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #daddcf; box-shadow: 0 0 0 .25rem rgba(218, 221, 207, .15); }

.glass-panel {
    min-height: calc(100vh - clamp(8.8rem, 13vw, 12rem));
    padding: clamp(1rem, 1.8vw, 2rem);
    border: 1px solid rgba(255, 255, 255, .27);
    border-radius: clamp(1.1rem, 1.8vw, 2rem);
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 1.25rem 3.5rem rgba(30, 43, 28, .22);
    backdrop-filter: blur(13px);
}

.calendar-titlebar { justify-content: space-between; gap: 1rem; margin-bottom: clamp(1rem, 1.8vw, 1.8rem); }
.calendar-titlebar h2 { font-size: clamp(1.2rem, 1.7vw, 1.85rem); }

.classes-week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.65rem, 1.2vw, 1.3rem); }
.schedule-day { min-width: 0; }
.schedule-day-header { position: relative; min-height: 4.6rem; padding: .85rem .85rem .75rem; border-bottom: 1px solid rgba(255, 255, 255, .24); }
.schedule-day-header.is-today { border-bottom-color: #daddcf; }
.schedule-day-name { display: block; color: rgba(255, 255, 255, .72); font-size: clamp(.68rem, .85vw, .9rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.schedule-day-date { display: block; margin-top: .14rem; font-size: clamp(.98rem, 1.25vw, 1.28rem); font-weight: 600; }
.today-pill { position: absolute; top: .82rem; right: .65rem; padding: .18rem .48rem; border-radius: 99px; color: #36503a; background: #daddcf; font-size: .67rem; font-weight: 800; text-transform: uppercase; }

.schedule-list { display: grid; gap: .8rem; padding-top: .8rem; }
.schedule-entry { align-items: stretch; }

.class-card { flex: 1; min-width: 0; padding: clamp(.72rem, 1vw, 1.12rem); border: 1px solid rgba(255, 255, 255, .2); border-radius: 1rem; background: rgba(255, 255, 255, .12); box-shadow: 0 .55rem 1.35rem rgba(30, 43, 28, .1); }
.class-card.is-now { border-color: #f2f5ec; background: rgba(218, 221, 207, .24); box-shadow: 0 0 0 1px rgba(242, 245, 236, .72), 0 .85rem 2rem rgba(25, 38, 24, .27); }
.class-card-topline { justify-content: space-between; gap: .55rem; color: rgba(255, 255, 255, .75); }
.class-time { color: #fff; font-size: clamp(1.05rem, 1.45vw, 1.45rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.class-room { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-room { font-size: clamp(.7rem, .85vw, .9rem); }
.class-room i, .class-instructor i { margin-right: .25rem; }
.class-card h3 { margin: .52rem 0 .4rem; color: #fff; font-size: clamp(.93rem, 1.22vw, 1.3rem); font-weight: 650; line-height: 1.12; overflow-wrap: anywhere; }
.class-instructor { margin: 0; color: rgba(255, 255, 255, .78); font-size: clamp(.73rem, .88vw, .9rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-card-footer { justify-content: space-between; gap: .45rem; margin-top: .75rem; padding-top: .58rem; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .72); font-size: clamp(.64rem, .78vw, .78rem); }
.happening-now { color: #fff; font-weight: 800; white-space: nowrap; }
.happening-now i { color: #daddcf; }
.schedule-empty { margin: .45rem .35rem; color: rgba(255, 255, 255, .58); font-size: .82rem; line-height: 1.35; }
.classes-loading { display: flex; justify-content: center; align-items: center; gap: .55rem; padding: 1.2rem 0 .2rem; color: rgba(255, 255, 255, .76); font-size: .85rem; }

.day-switcher { display: none; gap: .5rem; }
.day-switcher-button { display: inline-flex; align-items: center; gap: .25rem; padding: .42rem .56rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: .6rem; color: #fff; background: rgba(255, 255, 255, .08); font-size: .73rem; }
.day-switcher-button:disabled { opacity: .34; }

@media (max-width: 999px) {
    .classes-shell { padding: 1rem; }
    .classes-header { align-items: flex-start; min-height: 4.5rem; }
    .classes-logo { width: 6.8rem; }
    .classes-heading h1 { font-size: 1.38rem; }
    .classes-live { display: none; }
    .glass-panel { min-height: calc(100vh - 5.5rem); padding: .9rem; border-radius: 1rem; }
    .day-switcher { display: flex; }
    .classes-week { display: block; overflow: hidden; }
    .schedule-day-header { min-height: 4.25rem; }
    .schedule-list { gap: .8rem; }
    .class-card { padding: 1rem; }
    .class-card h3 { font-size: 1.18rem; }
    .schedule-slide-enter { transition: opacity .3s ease, transform .3s ease; }
    .schedule-slide-enter-start { opacity: 0; transform: translateX(2rem); }
    .schedule-slide-enter-end { opacity: 1; transform: translateX(0); }
}

@media (max-width: 560px) {
    .classes-kicker { font-size: .58rem; }
    .classes-header { gap: .7rem; }
    .classes-logo { width: 5.65rem; }
    .calendar-titlebar { align-items: flex-end; }
    .calendar-titlebar h2 { font-size: 1.06rem; }
    .day-switcher-button { padding: .38rem .42rem; }
    .day-switcher-button span { display: none; }
}
