:root {
    --forest-950: #062b20;
    --forest-900: #073b2a;
    --forest-800: #0a4a35;
    --forest-700: #0f6548;
    --forest-600: #16825d;
    --jade-500: #1da979;
    --jade-100: #ddf5eb;
    --gold-600: #a67c24;
    --gold-500: #c89e42;
    --gold-300: #e4c77c;
    --gold-100: #fbf3dd;
    --ink-900: #14251f;
    --ink-700: #40524b;
    --ink-500: #6c7c76;
    --line: #dfe7e3;
    --paper: #ffffff;
    --paper-soft: #f5f8f6;
    --paper-warm: #fbfaf6;
    --shadow: 0 16px 48px rgba(7, 59, 42, .10);
    --shadow-soft: 0 8px 24px rgba(7, 59, 42, .08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 5%, rgba(29, 169, 121, .08), transparent 25rem),
        linear-gradient(180deg, #f9fbfa 0%, #f4f7f5 100%);
    color: var(--ink-900);
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 15px;
    min-height: 100vh;
}

a { color: inherit; }

.site-shell { min-height: 100vh; }

.institution-header {
    background: var(--forest-950);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: relative;
    z-index: 10;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    min-width: 0;
}

.brand-seal {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,.03));
    border: 1px solid rgba(228,199,124,.45);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.025);
    flex: 0 0 auto;
}

.brand-seal img { width: 45px; height: 45px; object-fit: contain; border-radius: 50%; }
.brand-eyebrow { display: block; color: rgba(255,255,255,.60); font-size: .70rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 3px; }
.brand-court { display: block; color: #fff; font-family: "DM Serif Display", Georgia, serif; font-size: 1.25rem; line-height: 1.1; }

.btn-header {
    color: #fff;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.06);
    padding: .72rem 1rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.btn-header svg { width: 18px; height: 18px; fill: currentColor; }
.btn-header:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); }

.hero-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 92% 15%, rgba(228,199,124,.20), transparent 22rem),
        radial-gradient(circle at 20% 115%, rgba(29,169,121,.35), transparent 32rem),
        linear-gradient(120deg, var(--forest-900), #084733 58%, #0a513a 100%);
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    right: -100px;
    top: -220px;
    box-shadow: 0 0 0 55px rgba(255,255,255,.022), 0 0 0 110px rgba(255,255,255,.014);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .11;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000);
}

.py-lg-6 { padding-top: 4.75rem !important; padding-bottom: 4.75rem !important; }
.hero-kicker { display: inline-flex; align-items: center; gap: .65rem; text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 800; color: rgba(255,255,255,.72); margin-bottom: 1rem; }
.hero-kicker span { width: 28px; height: 2px; background: var(--gold-300); }
.hero-title { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2.75rem, 5vw, 5.25rem); line-height: .95; letter-spacing: -.035em; margin: 0 0 1.25rem; max-width: 900px; }
.hero-title em { color: var(--gold-300); font-style: normal; }
.hero-copy { max-width: 760px; color: rgba(255,255,255,.76); font-size: 1.05rem; line-height: 1.8; }
.hero-copy strong { color: #fff; font-weight: 700; }

.sync-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    padding: 18px 20px;
    backdrop-filter: blur(10px);
}
.sync-pulse { width: 36px; height: 36px; border-radius: 50%; background: rgba(29,169,121,.18); display: grid; place-items: center; flex: 0 0 auto; }
.sync-pulse span { width: 10px; height: 10px; background: #58e3b4; border-radius: 50%; box-shadow: 0 0 0 6px rgba(88,227,180,.12); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 5px rgba(88,227,180,.13); } 50% { box-shadow: 0 0 0 10px rgba(88,227,180,.03); } }
.sync-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); font-weight: 800; }
.sync-value { font-weight: 700; color: #fff; margin-top: 3px; }

.main-stage { position: relative; z-index: 2; margin-top: -26px; padding-bottom: 5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
    background: var(--paper);
    border: 1px solid rgba(7,59,42,.08);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
    padding: 19px;
    display: flex;
    gap: 15px;
    align-items: center;
    min-height: 94px;
}
.stat-card.stat-primary { background: var(--forest-900); color: #fff; border-color: transparent; }
.stat-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; flex: 0 0 auto; }
.stat-icon svg { width: 24px; height: 24px; fill: currentColor; }
.stat-icon.icon-green { background: var(--jade-100); color: var(--forest-700); }
.stat-icon.icon-gold { background: var(--gold-100); color: var(--gold-600); }
.stat-icon.icon-ink { background: #edf0ef; color: var(--ink-700); }
.stat-card strong { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; line-height: 1; }
.stat-card span { display: block; margin-top: 6px; color: var(--ink-500); font-size: .78rem; font-weight: 700; }
.stat-card.stat-primary span { color: rgba(255,255,255,.60); }

.date-rail { display: flex; gap: 10px; overflow-x: auto; padding: 28px 2px 10px; scrollbar-width: thin; }
.date-chip {
    flex: 0 0 90px;
    min-height: 112px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.84);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(7,59,42,.035);
    transition: .2s ease;
}
.date-chip:hover { transform: translateY(-3px); border-color: rgba(15,101,72,.3); box-shadow: var(--shadow-soft); }
.date-chip.active { background: var(--forest-900); border-color: var(--forest-900); color: #fff; }
.date-day { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.date-chip.active .date-day, .date-chip.active .date-month { color: rgba(255,255,255,.62); }
.date-chip strong { font-family: "DM Serif Display", Georgia, serif; font-size: 1.8rem; line-height: 1; margin: 4px 0 2px; }
.date-month { font-size: .72rem; color: var(--ink-500); }
.date-count { margin-top: 8px; font-size: .65rem; padding: 3px 8px; border-radius: 999px; background: var(--paper-soft); color: var(--forest-700); font-weight: 800; }
.date-chip.active .date-count { color: #fff; background: rgba(255,255,255,.12); }
.calendar-chip { min-width: 110px; gap: 7px; color: var(--forest-700); font-weight: 800; font-size: .75rem; }
.calendar-chip svg { width: 24px; height: 24px; fill: currentColor; }

.filter-panel {
    margin-top: 22px;
    padding: 22px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}
.form-label { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-700); }
.form-control, .form-select { min-height: 48px; border-radius: 13px; border-color: #d9e2de; background-color: #fff; font-size: .87rem; color: var(--ink-900); }
.form-control:focus, .form-select:focus { border-color: var(--forest-600); box-shadow: 0 0 0 .23rem rgba(22,130,93,.11); }
.search-field { position: relative; }
.search-field svg { width: 20px; height: 20px; fill: var(--ink-500); position: absolute; left: 14px; top: 14px; pointer-events: none; }
.search-field .form-control { padding-left: 44px; }
.btn-search { min-height: 48px; border-radius: 13px; background: var(--forest-700); border: 0; color: #fff; font-weight: 800; font-size: .86rem; }
.btn-search:hover, .btn-search:focus { color: #fff; background: var(--forest-800); box-shadow: 0 8px 18px rgba(15,101,72,.18); }
.clear-filter { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--forest-700); text-decoration: none; }
.clear-filter:hover { text-decoration: underline; }

.schedule-section { margin-top: 42px; }
.section-heading { margin-bottom: 20px; }
.section-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-600); margin-bottom: 7px; }
.section-heading h2 { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 4px; letter-spacing: -.02em; }
.section-heading p { color: var(--ink-500); }
.legend-inline { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .74rem; font-weight: 700; color: var(--ink-500); }
.legend-inline span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot.green { background: var(--jade-500); box-shadow: 0 0 0 4px rgba(29,169,121,.12); }
.legend-dot.gold { background: var(--gold-500); box-shadow: 0 0 0 4px rgba(200,158,66,.14); }

.schedule-list { display: grid; gap: 13px; }
.schedule-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 96px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(7,59,42,.045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
}
.schedule-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--jade-500); }
.schedule-card.is-preparation::before { background: var(--gold-500); }
.schedule-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: #cfdcd6; }
.time-rail { padding: 20px 18px 18px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: linear-gradient(180deg, #fbfdfc, #f6f9f7); }
.schedule-card.is-preparation .time-rail { background: linear-gradient(180deg, #fffdf8, #fbf6e8); }
.schedule-date-mini { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 7px; align-items: center; width: fit-content; }
.schedule-date-mini span { grid-column: 1 / 3; font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--ink-500); }
.schedule-date-mini strong { font-family: "DM Serif Display", Georgia, serif; font-size: 2.1rem; line-height: 1; color: var(--forest-900); }
.schedule-date-mini small { font-size: .78rem; color: var(--ink-500); font-weight: 700; }
.schedule-time { font-size: .75rem; font-weight: 800; color: var(--forest-700); }
.schedule-card.is-preparation .schedule-time { color: var(--gold-600); }
.schedule-body { padding: 20px 24px; min-width: 0; }
.type-badge, .room-badge { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .03em; }
.type-badge { padding: 5px 10px; text-transform: uppercase; }
.type-hearing { color: var(--forest-700); background: var(--jade-100); }
.type-preparation { color: #8b651a; background: var(--gold-100); }
.room-badge { color: var(--ink-500); background: #f1f4f2; padding: 5px 10px; }
.room-badge svg { width: 13px; height: 13px; fill: currentColor; margin-right: 5px; }
.schedule-body h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.45rem; margin: 0 0 5px; color: var(--ink-900); }
.agenda-text { margin: 0 0 16px; color: var(--forest-700); font-weight: 800; font-size: .91rem; line-height: 1.55; }
.schedule-card.is-preparation .agenda-text { color: #8b651a; }
.meta-grid { display: grid; grid-template-columns: 1.25fr 1fr .85fr; gap: 14px; border-top: 1px dashed #dfe7e3; padding-top: 14px; }
.meta-item { min-width: 0; }
.meta-label { display: block; font-size: .61rem; font-weight: 800; letter-spacing: .09em; color: #83918b; text-transform: uppercase; margin-bottom: 4px; }
.meta-value { display: block; font-size: .76rem; line-height: 1.5; color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-action { border-left: 1px solid var(--line); display: grid; place-items: center; background: #fbfcfb; }
.detail-button { border: 0; background: transparent; color: var(--forest-700); display: flex; flex-direction: column; gap: 7px; align-items: center; font-size: .72rem; font-weight: 800; padding: 16px; transition: .2s ease; }
.detail-button svg { width: 24px; height: 24px; fill: currentColor; }
.detail-button:hover { color: var(--forest-900); transform: translateX(3px); }
.is-preparation .detail-button { color: var(--gold-600); }

.pager-wrap { display: flex; justify-content: center; margin-top: 26px; }
.pager-wrap ul { list-style: none; display: flex; gap: 7px; padding: 0; margin: 0; }
.pager-wrap li a, .pager-wrap li span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--ink-700); padding: 0 10px; }
.pager-wrap li.active a, .pager-wrap li.active span { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }

.empty-state { border: 1px dashed #cad8d2; background: rgba(255,255,255,.75); border-radius: var(--radius-xl); padding: 58px 20px; text-align: center; }
.empty-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: var(--paper-soft); color: var(--forest-600); }
.empty-icon svg { width: 34px; height: 34px; fill: currentColor; }
.empty-state h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.8rem; }
.empty-state p { color: var(--ink-500); }

.site-footer { background: var(--forest-950); color: rgba(255,255,255,.65); padding: 28px 0; font-size: .76rem; }
.site-footer strong { color: #fff; display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 1.05rem; }
.site-footer span { display: block; margin-top: 4px; }
.footer-note { max-width: 420px; text-align: right; }

.detail-modal .modal-content { border: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 28px 90px rgba(6,43,32,.25); }
.detail-modal .modal-header { padding: 24px 26px 0; }
.modal-type { font-size: .65rem; font-weight: 800; color: var(--forest-600); text-transform: uppercase; letter-spacing: .11em; }
.detail-modal .modal-title { font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; }
.detail-modal .modal-body { padding: 20px 26px 28px; }
.detail-hero { background: linear-gradient(120deg, var(--forest-900), var(--forest-700)); border-radius: 18px; color: #fff; padding: 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.detail-label { display: block; color: rgba(255,255,255,.58); text-transform: uppercase; font-size: .63rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 4px; }
.detail-hero strong { font-family: "DM Serif Display", Georgia, serif; font-size: 1.4rem; }
.detail-when { text-align: right; }
.detail-when span { display: block; font-size: .72rem; color: rgba(255,255,255,.65); }
.detail-when strong { font-family: "Manrope", sans-serif; font-size: .85rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 16px; }
.detail-row { background: #fff; padding: 15px 17px; }
.detail-row.full { grid-column: 1 / -1; }
.detail-row span { display: block; color: var(--ink-500); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 4px; }
.detail-row strong { display: block; font-size: .82rem; line-height: 1.55; font-weight: 700; color: var(--ink-900); }

/* Display / TV mode */
.display-body { background: var(--forest-950); color: #fff; overflow-x: hidden; min-height: 100vh; }
.display-shell { min-height: 100vh; background: radial-gradient(circle at 90% -10%, rgba(200,158,66,.18), transparent 35rem), radial-gradient(circle at -10% 110%, rgba(29,169,121,.16), transparent 30rem), var(--forest-950); padding: 24px 28px; display: flex; flex-direction: column; }
.display-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.10); padding-bottom: 18px; }
.display-brand { display: flex; gap: 16px; align-items: center; }
.display-brand img { width: 62px; height: 62px; border-radius: 50%; object-fit: contain; box-shadow: 0 0 0 1px rgba(228,199,124,.4); }
.display-brand span { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.58); font-weight: 800; }
.display-brand h1 { font-family: "DM Serif Display", Georgia, serif; margin: 2px 0 0; font-size: 2.1rem; }
.display-clock { text-align: right; }
.display-clock span { display: block; color: rgba(255,255,255,.6); font-size: .78rem; }
.display-clock strong { font-family: "DM Serif Display", Georgia, serif; color: var(--gold-300); font-size: 2rem; letter-spacing: .03em; }
.display-datebar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; }
.display-datebar > div > span { display: block; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: .65rem; color: rgba(255,255,255,.45); }
.display-datebar > div > strong { display: block; margin-top: 3px; font-size: 1rem; }
.display-legend { display: flex; gap: 20px; font-size: .72rem; color: rgba(255,255,255,.6); }
.display-legend span { display: inline-flex !important; flex-direction: row; align-items: center; gap: 8px; text-transform: none !important; letter-spacing: 0 !important; font-size: .72rem !important; }
.display-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; flex: 1; align-content: start; }
.display-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); border-radius: 20px; padding: 18px; position: relative; overflow: hidden; min-height: 210px; }
.display-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--jade-500); }
.display-card.display-prep::before { background: var(--gold-500); }
.display-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.display-time { font-size: .82rem; color: rgba(255,255,255,.72); }
.display-card h2 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.55rem; margin: 16px 0 6px; color: #fff; }
.display-agenda { font-size: .88rem; font-weight: 700; color: #a8f0d5; line-height: 1.5; margin-bottom: 14px; }
.display-prep .display-agenda { color: #f2d895; }
.display-room { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.48); font-weight: 800; margin-bottom: 10px; }
.display-parties { font-size: .75rem; line-height: 1.45; color: rgba(255,255,255,.7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.display-grid.is-dense .display-card { min-height: 175px; padding: 15px; }
.display-grid.is-dense .display-card h2 { font-size: 1.25rem; margin-top: 12px; }
.display-grid.is-dense .display-agenda { font-size: .78rem; margin-bottom: 10px; }
.display-footer { display: flex; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.08); margin-top: 18px; padding-top: 12px; font-size: .65rem; }
.display-empty { grid-column: 1 / -1; min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: rgba(255,255,255,.8); }
.display-empty-mark { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); color: var(--gold-300); font-family: "DM Serif Display", Georgia, serif; font-size: 2.4rem; margin-bottom: 20px; }
.display-empty h2 { font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; }
.display-empty p { color: rgba(255,255,255,.45); }

@media (max-width: 1199.98px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .meta-grid { grid-template-columns: 1fr 1fr; }
    .display-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .brand-eyebrow { display: none; }
    .brand-court { font-size: 1rem; }
    .brand-seal { width: 48px; height: 48px; }
    .brand-seal img { width: 39px; height: 39px; }
    .btn-header span { display: none; }
    .hero-panel .container-xl { padding-top: 3rem !important; padding-bottom: 4rem !important; }
    .hero-title { font-size: 3rem; }
    .main-stage { margin-top: -20px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat-card { padding: 14px; min-height: 82px; }
    .stat-icon { width: 40px; height: 40px; border-radius: 12px; }
    .stat-card strong { font-size: 1.55rem; }
    .stat-card span { font-size: .68rem; }
    .filter-panel { padding: 18px; border-radius: 20px; }
    .schedule-card { grid-template-columns: 88px minmax(0, 1fr); }
    .schedule-action { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: block; }
    .detail-button { flex-direction: row; width: 100%; justify-content: center; }
    .time-rail { padding: 16px 12px 14px 18px; }
    .schedule-date-mini strong { font-size: 1.75rem; }
    .schedule-body { padding: 16px; }
    .schedule-body h3 { font-size: 1.22rem; }
    .meta-grid { grid-template-columns: 1fr; gap: 9px; }
    .meta-value { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .footer-note { text-align: left; }
    .detail-hero { flex-direction: column; align-items: flex-start; }
    .detail-when { text-align: left; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-row.full { grid-column: auto; }
    .display-shell { padding: 18px; }
    .display-header, .display-datebar { align-items: flex-start; }
    .display-clock { display: none; }
    .display-grid { grid-template-columns: 1fr; }
    .display-legend { display: none; }
    .display-footer { flex-direction: column; }
}

@media (max-width: 420px) {
    .stat-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.55rem; }
    .schedule-card { grid-template-columns: 1fr; }
    .time-rail { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: end; }
    .schedule-action { grid-column: auto; }
}
