.schedule-shell {
    --schedule-canvas: #020617;
    --schedule-surface: #0f172a;
    --schedule-raised: #111827;
    --schedule-line: #334155;
    --schedule-text: #f8fafc;
    --schedule-muted: #94a3b8;
    --schedule-gold: #ffbc05;
    width: min(100%, 1200px);
    margin: 32px auto 56px;
    color: var(--schedule-text);
}

.schedule-shell *, .schedule-shell *::before, .schedule-shell *::after { box-sizing: border-box; }
.schedule-shell a { color: inherit; }

.schedule-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--schedule-line);
}

.schedule-context {
    margin: 0 0 7px;
    color: var(--schedule-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.schedule-heading h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.schedule-server-switch { display: flex; border: 1px solid var(--schedule-line); }
.schedule-server-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 15px;
    color: var(--schedule-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-left: 1px solid var(--schedule-line);
}
.schedule-server-switch a:first-child { border-left: 0; }
.schedule-server-switch a.is-active { color: #0f172a; background: var(--schedule-gold); }

.schedule-now { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--schedule-line); border-left: 3px solid #22c55e; background: var(--schedule-surface); }
.schedule-now h2 { margin: 0 0 12px; font-size: 16px; }
.schedule-now-list { display: grid; gap: 10px; }
.schedule-now-list article { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; }

.schedule-ledger, .schedule-upcoming, .schedule-detail-ledger {
    margin-top: 24px;
    border: 1px solid var(--schedule-line);
    border-left: 3px solid var(--schedule-gold);
    background: var(--schedule-surface);
}

.schedule-ledger-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--schedule-line);
}
.schedule-ledger-head h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.schedule-ledger-head > span { color: var(--schedule-muted); font-size: 12px; }

.schedule-blocks { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); }
.schedule-block {
    min-width: 0;
    padding: 19px 20px 18px;
    border-bottom: 1px solid rgba(51, 65, 85, .85);
}
.schedule-block:nth-child(odd) { border-right: 1px solid rgba(51, 65, 85, .85); }
.schedule-block:nth-last-child(-n + 2) { border-bottom: 0; }
.schedule-block-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.schedule-block-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.schedule-block-icon { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.schedule-block-title h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.schedule-block-title a { color: var(--schedule-gold); font-size: 12px; font-weight: 800; text-decoration: none; }
.schedule-block dl { margin: 0; }
.schedule-block dl > div { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 20px; align-items: baseline; min-height: 33px; padding: 6px 0; }
.schedule-block dt { color: var(--schedule-muted); font-size: 13px; line-height: 1.45; }
.schedule-block dt small { margin-left: 7px; color: #94a3b8; }
.schedule-block dd { margin: 0; color: var(--schedule-text); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.schedule-block dl > div:first-child dd { color: var(--schedule-gold); font-size: 15px; }
.schedule-note { margin: 10px 0 0; color: #7f8ca1; font-size: 11px; line-height: 1.55; }

.schedule-upcoming ol, .guild-milestones { margin: 0; padding: 0; list-style: none; }
.schedule-upcoming li {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 20px;
    align-items: center;
    min-height: 58px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(51, 65, 85, .72);
}
.schedule-upcoming li:last-child { border-bottom: 0; }
.schedule-upcoming time { color: var(--schedule-gold); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-upcoming li > span { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.schedule-upcoming strong { font-size: 14px; }
.schedule-upcoming small { color: var(--schedule-muted); font-size: 12px; }
.schedule-upcoming li > a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; color: var(--schedule-muted); font-size: 12px; text-decoration: none; }

.schedule-footnote { margin: 16px 2px 0; color: #7f8ca1; font-size: 11px; line-height: 1.6; }
.schedule-breadcrumb { display: flex; gap: 8px; margin-bottom: 18px; color: var(--schedule-muted); font-size: 12px; }
.schedule-breadcrumb a { color: var(--schedule-gold); text-decoration: none; }
.schedule-detail-shell .schedule-heading { margin-bottom: 24px; }
.schedule-heading-title { display: flex; align-items: center; gap: 12px; }
.schedule-heading-title img { width: 44px; height: 44px; object-fit: contain; }
.schedule-detail-ledger > section + section { border-top: 1px solid var(--schedule-line); }

.schedule-table { width: 100%; }
.schedule-table-head, .schedule-table-row { display: grid; grid-template-columns: 120px 1fr 220px; gap: 20px; align-items: center; }
.schedule-table-head { min-height: 42px; padding: 8px 18px; color: var(--schedule-muted); font-size: 11px; font-weight: 800; border-bottom: 1px solid var(--schedule-line); }
.schedule-table-row { min-height: 58px; padding: 9px 18px; border-bottom: 1px solid rgba(51, 65, 85, .72); }
.schedule-table-row:last-child { border-bottom: 0; }
.schedule-table-row strong { font-size: 14px; }
.schedule-table-row span { color: var(--schedule-muted); font-size: 13px; }
.schedule-table-row span:last-child { color: var(--schedule-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule-table-row span:last-child time { color: var(--schedule-text); font-size: 14px; font-weight: 800; }
.schedule-table-row span:last-child time.is-soon { color: var(--schedule-gold); }
.schedule-table-row small { display: block; margin-top: 3px; color: var(--schedule-muted); font-size: 11px; font-weight: 500; }
.schedule-ledger-head h2 span { color: var(--schedule-muted); font-size: 13px; font-weight: 700; }
.crystal-table .schedule-table-head, .crystal-table .schedule-table-row { grid-template-columns: 160px 1fr; }
.crystal-table .schedule-table-row > :last-child { text-align: right; }

.guild-milestones li { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center; min-height: 58px; padding: 10px 18px; border-bottom: 1px solid rgba(51, 65, 85, .72); }
.guild-milestones li:last-child { border-bottom: 0; }
.guild-milestones time { color: var(--schedule-gold); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.guild-milestones strong { font-size: 14px; }
.guild-brackets { display: grid; grid-template-columns: repeat(5, 1fr); }
.guild-brackets > div { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-right: 1px solid var(--schedule-line); }
.guild-brackets > div:last-child { border-right: 0; }
.guild-brackets strong { font-size: 13px; }
.guild-brackets span { color: var(--schedule-gold); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.guild-category-table .schedule-table-head, .guild-category-table .schedule-table-row { grid-template-columns: minmax(180px, 1fr) 150px 150px; }
.schedule-detail-ledger > .schedule-note { padding: 0 18px 16px; }
.schedule-two-column { display: grid; grid-template-columns: 1fr 1fr; }
.schedule-two-column > div + div { border-left: 1px solid var(--schedule-line); }
.threshold-list { display: flex; flex-wrap: wrap; gap: 0; padding: 12px 18px 18px; }
.threshold-list span { padding: 8px 12px; color: var(--schedule-muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(51, 65, 85, .72); }

.home-schedule {
    display: block;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}
.home-schedule.is-ready {
    height: auto;
    overflow: visible;
    opacity: 1;
    border: 1px solid #334155;
    border-left: 3px solid #ffbc05;
    background: #0f172a;
}
.home-schedule-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 11px 15px; border-bottom: 1px solid #334155; }
.home-schedule-head h2 { margin: 0; color: #f8fafc; font-size: 15px; }
.home-schedule-head a { min-height: 44px; display: inline-flex; align-items: center; color: #ffbc05; font-size: 12px; font-weight: 800; text-decoration: none; }
.home-schedule-list { margin: 0; padding: 0; list-style: none; }
.home-schedule-list li { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(120px, auto) auto; gap: 16px; align-items: center; min-height: 48px; padding: 8px 15px; border-bottom: 1px solid rgba(51, 65, 85, .72); }
.home-schedule-list li:last-child { border-bottom: 0; }
.home-schedule-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.home-schedule-icon { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.home-schedule-list strong { color: #f8fafc; font-size: 13px; }
.home-schedule-list span { color: #94a3b8; font-size: 12px; }
.home-schedule-list time { color: #ffbc05; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }

.schedule-shell a:focus-visible, .schedule-shell button:focus-visible, .home-schedule a:focus-visible { outline: 2px solid #ffbc05; outline-offset: 3px; }

@media (max-width: 768px) {
    .schedule-shell { margin-top: 22px; }
    .schedule-heading { align-items: flex-start; flex-direction: column; }
    .schedule-server-switch { width: 100%; }
    .schedule-server-switch a { flex: 1; justify-content: center; padding: 0 8px; }
    .schedule-blocks { grid-template-columns: 1fr; }
    .schedule-block-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .schedule-heading-title img { width: 40px; height: 40px; }
    .schedule-block, .schedule-block:nth-child(odd), .schedule-block:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid rgba(51, 65, 85, .85); }
    .schedule-block:last-child { border-bottom: 0; }
    .schedule-ledger-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .schedule-upcoming li { grid-template-columns: 105px 1fr; gap: 12px; }
    .schedule-upcoming li > a { display: none; }
    .schedule-upcoming li > span { align-items: flex-start; flex-direction: column; gap: 3px; }
    .schedule-table-head { display: none; }
    .schedule-table-row, .guild-category-table .schedule-table-row { grid-template-columns: 1fr auto; gap: 6px 14px; align-items: start; padding: 13px 15px; }
    .schedule-table-row > :nth-child(2) { grid-column: 1; }
    .schedule-table-row > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
    .crystal-table .schedule-table-row { grid-template-columns: 1fr auto; }
    .crystal-table .schedule-table-row > :nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
    .guild-category-table .schedule-table-row > span::before { display: block; margin-bottom: 2px; color: #94a3b8; font-size: 10px; font-weight: 700; }
    .guild-category-table .schedule-table-row > span:nth-child(2)::before { content: "첫 단계"; }
    .guild-category-table .schedule-table-row > span:nth-child(3)::before { content: "시즌 포인트"; }
    .guild-milestones li { grid-template-columns: 125px 1fr; gap: 12px; padding-inline: 15px; }
    .guild-brackets { grid-template-columns: 1fr; }
    .guild-brackets > div { flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--schedule-line); }
    .guild-brackets > div:last-child { border-bottom: 0; }
    .schedule-two-column { grid-template-columns: 1fr; }
    .schedule-two-column > div + div { border-left: 0; border-top: 1px solid var(--schedule-line); }
    .home-schedule-list li { grid-template-columns: 1fr auto; gap: 4px 12px; }
    .home-schedule-list > li > span:not(.home-schedule-title) { grid-column: 1; padding-left: 41px; }
    .home-schedule-list time { grid-column: 2; grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
    .schedule-shell *, .home-schedule * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
