:root {
    --blue: #0062ff;
    --blue-soft: #e6f0ff;
    --blue-pale: #eff6ff;
    --ink: #0a0a0a;
    --ink-soft: #1a1a1a;
    --slate: #4b5563;
    --muted: #8b95a1;
    --line: #f1f5f9;
    --canvas: #f8fafc;
    --card: #ffffff;
    --soft: #f2f4f6;
    --green: #059669;
    --orange: #d97706;
    --violet: #7e22ce;
    --side-width: 264px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Noto Sans KR", Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(0, 98, 255, 0.23);
    outline-offset: 2px;
}

.boot-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: var(--slate);
    background: #fff;
    font-size: 13px;
    font-weight: 650;
}

.is-loading .boot-loader {
    display: grid;
}

.is-loading .app-shell {
    visibility: hidden;
}

.loader-mark,
.brand-mark {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
    font-weight: 900;
    box-shadow: 0 9px 20px rgba(0, 98, 255, 0.22);
}

.loader-mark {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 22px;
    animation: loaderPulse 1.3s ease-in-out infinite;
}

@keyframes loaderPulse {
    50% { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0, 98, 255, 0.3); }
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--side-width) minmax(0, 1fr);
}

.side-panel {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 18px 20px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
}

.brand-block {
    padding: 0 10px 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 13px;
    font-size: 17px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -0.3px;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-nav {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.nav-label {
    margin: 20px 12px 7px;
    color: #a1a1a1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.nav-label:first-child {
    margin-top: 0;
}

.app-nav-item {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 13px;
    color: #6b7280;
    background: transparent;
    text-align: left;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 160ms ease;
}

.app-nav-item + .app-nav-item {
    margin-top: 3px;
}

.app-nav-item i {
    width: 20px;
    color: #8b95a1;
    font-size: 16px;
    text-align: center;
}

.app-nav-item:hover {
    color: var(--ink);
    background: var(--soft);
    transform: translateX(2px);
}

.app-nav-item.active {
    color: var(--blue);
    background: var(--blue-pale);
}

.app-nav-item.active i {
    color: var(--blue);
}

.privacy-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
    padding: 14px;
    border-radius: 16px;
    background: var(--soft);
}

.privacy-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--green);
    background: rgba(5, 150, 105, 0.12);
}

.privacy-card strong,
.privacy-card p {
    display: block;
    margin: 0;
}

.privacy-card strong {
    font-size: 10px;
    font-weight: 800;
}

.privacy-card p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.main-panel {
    min-width: 0;
}

.top-bar {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 26px clamp(24px, 4vw, 60px) 20px;
}

.top-copy {
    min-width: 0;
}

.today-label,
.eyebrow {
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.top-copy h1 {
    margin: 4px 0 2px;
    color: var(--ink-soft);
    font-size: clamp(24px, 2.1vw, 32px);
    font-weight: 900;
    letter-spacing: -1px;
}

.top-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.mobile-brand {
    display: none;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.developer-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: var(--slate);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    transition: 160ms ease;
}

.developer-button:hover {
    color: var(--blue);
    border-color: #b6cfff;
    background: var(--blue-pale);
}

.session-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.session-state > span:first-child {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.session-state.connected > span:first-child {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.primary-button,
.secondary-button,
.lookup-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.primary-button,
.lookup-button {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 9px 20px rgba(0, 98, 255, 0.2);
}

.primary-button:hover,
.lookup-button:hover {
    background: #0055dd;
    transform: translateY(-1px);
}

.secondary-button {
    color: var(--slate);
    background: var(--soft);
}

.icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--slate);
    background: #fff;
}

.dashboard-content {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 10px clamp(24px, 4vw, 60px) 64px;
}

.login-gate {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px 22px;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(66, 133, 255, .55), transparent 28%),
        linear-gradient(110deg, #0a0a0a 0%, #101b31 62%, #0062ff 130%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .13);
}

.login-gate::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -65px;
    top: -110px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}

.login-gate-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 17px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-size: 19px;
}

.login-gate-copy {
    min-width: 0;
}

.login-gate-copy > span {
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    font-weight: 750;
}

.login-gate-copy h2 {
    margin: 3px 0 4px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.35px;
}

.login-gate-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 9px;
}

.login-gate-button {
    position: relative;
    z-index: 1;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.dashboard-load-state {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(150px, 240px);
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid #cfe0ff;
    border-radius: 22px;
    background: linear-gradient(115deg, #f7faff, #eef5ff);
    box-shadow: 0 14px 30px rgba(0, 98, 255, .08);
}

.dashboard-load-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: var(--blue);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 98, 255, .1);
}

.dashboard-load-icon .dashboard-spinner {
    width: 26px;
    height: 26px;
    margin: 0;
}

.dashboard-load-state.is-complete .dashboard-load-icon {
    color: var(--green);
    background: #ebfbf4;
}

.dashboard-load-copy { min-width: 0; }
.dashboard-load-copy > span {
    display: block;
    margin-bottom: 2px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
}
.dashboard-load-copy strong { display: block; font-size: 14px; font-weight: 900; }
.dashboard-load-copy p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }

.dashboard-load-progress > span {
    display: block;
    margin-bottom: 7px;
    color: var(--slate);
    font-size: 9px;
    font-weight: 850;
    text-align: right;
}

.dashboard-load-progress > div {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce8fb;
}

.dashboard-load-progress > div > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
    transition: width .25s ease;
}

.dashboard-load-state.is-complete .dashboard-load-progress > div > span { background: var(--green); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.grade-hero,
.surface-card,
.seat-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.grade-hero {
    grid-column: span 4;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    color: #fff;
    background: #0a0a0a;
}

.card-topline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 650;
}

.card-topline small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
}

.hero-value {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 27px 0 auto;
}

.hero-value strong {
    font-size: clamp(70px, 6.5vw, 96px);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -6px;
}

.hero-value span {
    color: rgba(255, 255, 255, 0.46);
    font-size: 17px;
    font-weight: 700;
}

.grade-hero > button {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-size: 11px;
    font-weight: 850;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.orbit-one { width: 210px; height: 210px; right: -80px; top: -95px; }
.orbit-two { width: 150px; height: 150px; right: -58px; top: -66px; }

.surface-card {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.trend-card {
    grid-column: span 8;
    min-height: 310px;
    padding: 24px;
}

.surface-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.surface-heading h2 {
    margin: 5px 0 0;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -0.3px;
}

.surface-heading > button {
    padding: 4px 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.surface-period {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--slate);
    background: var(--soft);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.bar-chart {
    height: 210px;
    display: flex;
    align-items: flex-end;
    gap: clamp(10px, 1.5vw, 18px);
    padding: 22px 6px 0;
    border-bottom: 1px solid var(--line);
}

.bar-chart > div {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.bar-chart span {
    width: 100%;
    height: var(--bar);
    min-height: 36px;
    border-radius: 8px 8px 3px 3px;
    background: var(--blue-soft);
}

.bar-chart > div:nth-child(even) span {
    background: #b6cfff;
}

.bar-chart .current span {
    background: var(--ink);
}

.bar-chart b {
    font-size: 11px;
}

.bar-chart small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
}

.bar-chart .current small {
    color: var(--ink);
    font-weight: 850;
}

.schedule-card {
    grid-column: span 8;
    min-height: 480px;
    padding: 24px;
}

.schedule-preview {
    min-height: 390px;
    margin-top: 18px;
    padding: 14px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--soft);
}

.dashboard-timetable-placeholder {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-timetable-placeholder i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--blue);
    background: #fff;
    font-size: 20px;
}

.schedule-preview.is-loaded { min-height: 390px; }

.dashboard-timetable-scroll {
    max-height: 520px;
    overflow: auto;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    background: #fff;
}

.dashboard-timetable-board {
    min-width: 720px;
    display: grid;
    grid-template-columns: 76px repeat(var(--dashboard-days), minmax(110px, 1fr));
    grid-auto-rows: minmax(68px, auto);
    background: #fff;
}

.dashboard-timetable-corner,
.dashboard-timetable-day {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 38px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid #e8edf4;
    color: var(--slate);
    background: #fff;
    font-size: 9px;
    font-weight: 850;
}

.dashboard-timetable-corner {
    left: 0;
    z-index: 4;
    color: var(--muted);
}

.dashboard-timetable-time {
    position: sticky;
    left: 0;
    z-index: 2;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    padding: 9px 5px;
    border-right: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

.dashboard-timetable-time strong { color: var(--slate); font-size: 8px; }
.dashboard-timetable-time span { font-size: 7px; line-height: 1.35; }

.dashboard-timetable-cell {
    min-width: 0;
    min-height: 68px;
    padding: 3px;
    border-right: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
    background: #fbfcfe;
}

.dashboard-course-block {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    padding: 7px;
    overflow: hidden;
    border-radius: 9px;
    color: #173766;
    background: #dce9ff;
}

.dashboard-course-block + .dashboard-course-block { margin-top: 3px; }
.dashboard-course-block strong,
.dashboard-course-block span,
.dashboard-course-block small { display: block; overflow: hidden; text-overflow: ellipsis; }
.dashboard-course-block strong { font-size: 9px; font-weight: 900; line-height: 1.25; }
.dashboard-course-block span { margin-top: 3px; font-size: 7px; line-height: 1.3; }
.dashboard-course-block small { margin-top: auto; padding-top: 4px; font-size: 7px; opacity: .75; }
.dashboard-course-block.tone-1 { color: #126246; background: #d9f7ea; }
.dashboard-course-block.tone-2 { color: #68408b; background: #f3e8ff; }
.dashboard-course-block.tone-3 { color: #8a4d12; background: #fff0dd; }
.dashboard-course-block.tone-4 { color: #9a3151; background: #ffe4ec; }

.seat-card {
    grid-column: span 4;
    min-height: 190px;
    padding: 24px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 18px 38px rgba(0, 98, 255, 0.18);
}

.seat-card > div {
    display: flex;
    flex-direction: column;
}

.seat-card span { color: rgba(255,255,255,.72); font-size: 11px; }
.seat-card strong { margin-top: 2px; font-size: 30px; font-weight: 900; letter-spacing: -1px; }
.seat-card p { margin: 12px 0 20px; color: rgba(255,255,255,.72); font-size: 10px; }
.seat-card button { padding: 0; border: 0; color: #fff; background: transparent; font-size: 10px; font-weight: 800; }

.quick-card {
    grid-column: span 12;
    min-height: 190px;
    padding: 24px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.quick-grid > button {
    min-height: 105px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 12px;
    align-items: end;
    padding: 16px;
    border: 0;
    border-radius: 17px;
    background: var(--soft);
    text-align: left;
    transition: 160ms ease;
}

.quick-grid > button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.quick-icon {
    width: 42px;
    height: 42px;
    grid-row: 1 / 3;
    align-self: center;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 17px;
}

.quick-icon.blue { color: var(--blue); background: rgba(0, 98, 255, .12); }
.quick-icon.green { color: var(--green); background: rgba(5, 150, 105, .12); }
.quick-icon.orange { color: var(--orange); background: rgba(217, 119, 6, .12); }
.quick-grid strong { align-self: end; font-size: 11px; font-weight: 850; }
.quick-grid small { align-self: start; color: var(--muted); font-size: 9px; }

.lookup-section {
    margin-top: 22px;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 20px;
}

.lookup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.lookup-header h2 {
    margin: 5px 0 4px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.6px;
}

.lookup-header p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.private-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--green);
    background: rgba(5, 150, 105, .1);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.lookup-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 24px;
}

.query-card {
    align-self: start;
    padding: 18px;
    border-radius: 20px;
    background: var(--soft);
}

.parameter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.parameter-panel label,
.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--slate);
    font-size: 9px;
    font-weight: 800;
}

.parameter-panel input,
.parameter-panel select,
.login-field input {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.lookup-button {
    width: 100%;
    min-height: 46px;
}

.lookup-button:disabled {
    opacity: .7;
    transform: none;
}

.query-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 12px 2px 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.query-note i { color: var(--green); }

.result-card {
    min-width: 0;
    min-height: 260px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.empty-response,
.response-loading {
    min-height: 218px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 16px;
    color: var(--blue);
    background: var(--blue-pale);
    font-size: 20px;
}

.empty-response > i { display: none; }
.empty-response strong,
.response-loading strong { font-size: 13px; font-weight: 850; }
.empty-response p,
.response-loading span:last-child { max-width: 330px; margin: 6px 0 0; color: var(--muted); font-size: 10px; }

.dashboard-spinner {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border: 3px solid var(--blue-soft);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.response-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.status-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
}

.status-code > span:first-child {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.status-code.error { color: #b42318; }
.status-code.error > span:first-child { background: #ef4444; }

.result-actions,
.view-switch {
    display: flex;
    align-items: center;
    gap: 7px;
}

.view-switch {
    padding: 3px;
    border-radius: 999px;
    background: var(--soft);
}

.view-switch button,
.copy-button {
    min-height: 30px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: 9px;
    font-weight: 800;
}

.view-switch button.active {
    color: #fff;
    background: var(--blue);
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--slate);
    background: var(--soft);
}

.raw-response-wrap {
    overflow: auto;
    border-radius: 15px;
    background: #0f172a;
}

.raw-response-wrap pre {
    max-height: 540px;
    margin: 0;
    padding: 18px;
    color: #dce9ff;
    font-size: 10px;
    line-height: 1.65;
}

.preview-response {
    min-width: 0;
}

.login-dialog {
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .2);
}

.login-dialog .modal-header {
    align-items: flex-start;
    padding: 24px 24px 8px;
    border: 0;
}

.login-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.modal-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--blue);
    background: var(--blue-pale);
    font-size: 17px;
}

.login-heading h2 {
    margin-top: 4px;
    font-size: 19px;
    font-weight: 900;
}

.login-dialog .modal-body {
    padding: 10px 24px 18px;
}

.login-intro {
    margin: 0 0 16px;
    color: var(--slate);
    font-size: 11px;
}

.privacy-notice {
    display: flex;
    gap: 11px;
    margin-bottom: 18px;
    padding: 13px;
    border-radius: 15px;
    color: var(--green);
    background: rgba(5, 150, 105, .08);
}

.privacy-notice > i { margin-top: 2px; }
.privacy-notice p,
.privacy-notice strong,
.privacy-notice span { display: block; margin: 0; }
.privacy-notice strong { color: #047857; font-size: 10px; }
.privacy-notice span { margin-top: 3px; color: #4b5563; font-size: 9px; line-height: 1.45; }

.login-field + .login-field { margin-top: 13px; }
.login-field input { height: 48px; background: var(--canvas); }
.login-field input:focus { border-color: var(--blue); background: #fff; }

.login-dialog .modal-footer {
    padding: 0 24px 24px;
    border: 0;
}

.login-dialog .alert {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 10px;
}

.error-log-dialog {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .24);
}

.error-log-dialog .modal-header {
    align-items: flex-start;
    padding: 22px 24px 16px;
    border: 0;
}

.error-log-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-log-icon {
    width: 44px;
    height: 44px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: #b42318;
    background: #fff0ed;
    font-size: 17px;
}

.error-log-heading h2 { margin-top: 4px; font-size: 19px; font-weight: 900; }
.error-log-dialog .modal-body { padding: 4px 24px 18px; }
.error-log-summary { margin: 0 0 12px; color: var(--slate); font-size: 11px; }

.error-log-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #047857;
    background: #ecfdf5;
    font-size: 9px;
    line-height: 1.5;
}

.error-log-content {
    max-height: 340px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 14px;
    color: #dce9ff;
    background: #0f172a;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.error-log-dialog .modal-footer { padding: 0 24px 22px; border: 0; }

.developer-console {
    --bs-offcanvas-width: min(680px, 100vw);
    border-left: 1px solid var(--line);
    background: #f8fafc;
    box-shadow: -24px 0 70px rgba(15, 23, 42, .14);
}

.developer-header {
    align-items: flex-start;
    padding: 26px 28px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.developer-kicker,
.developer-section-label {
    color: var(--blue);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.developer-header h2 {
    margin: 5px 0 3px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.7px;
}

.developer-header p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.developer-body {
    padding: 22px 28px 40px;
}

.developer-local-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    color: #1d4ed8;
    background: #eff6ff;
}

.developer-local-note p,
.developer-local-note strong,
.developer-local-note span {
    display: block;
    margin: 0;
}

.developer-local-note strong { font-size: 10px; }
.developer-local-note span { margin-top: 3px; color: #1e40af; font-size: 9px; line-height: 1.45; }

.developer-endpoint-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.developer-endpoint-list > button {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
    text-align: left;
    transition: 150ms ease;
}

.developer-endpoint-list > button:hover,
.developer-endpoint-list > button.active {
    border-color: #b6cfff;
    background: var(--blue-pale);
}

.developer-endpoint-list > button.active {
    box-shadow: inset 3px 0 0 var(--blue);
}

.developer-endpoint-list > button > span:nth-child(2) {
    min-width: 0;
}

.developer-endpoint-list strong,
.developer-endpoint-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.developer-endpoint-list strong { font-size: 10px; font-weight: 850; }
.developer-endpoint-list small { margin-top: 3px; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.developer-endpoint-list > button > i { color: #94a3b8; font-size: 10px; }

.dev-method {
    display: grid;
    place-items: center;
    width: 38px;
    height: 24px;
    border-radius: 7px;
    color: var(--green);
    background: rgba(5, 150, 105, .11);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 900;
}

.developer-request-card,
.developer-response {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
}

.developer-request-heading,
.developer-response-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.developer-request-heading > div > span {
    color: var(--blue);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
}

.developer-request-heading h3,
.developer-response-heading h3 {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 900;
}

.dev-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #b45309;
    background: #fff7ed;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}

#dev-endpoint-description {
    margin: 12px 0 16px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.developer-parameters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 11px;
}

.developer-parameters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--slate);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
}

.developer-parameters input,
.developer-parameters select {
    width: 100%;
    height: 41px;
    padding: 0 11px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    color: var(--ink);
    background: var(--canvas);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
}

.developer-code-example {
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: #0f172a;
}

.developer-code-heading {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px 7px 12px;
    border-bottom: 1px solid #1e293b;
}

.developer-code-heading .developer-section-label { color: #94a3b8; }

.developer-code-copy {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid #334155;
    border-radius: 7px;
    color: #cbd5e1;
    background: #1e293b;
    font-size: 8px;
    font-weight: 800;
}

.developer-code-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px 0;
}

.developer-code-toggle {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 2px;
    border-radius: 7px;
    background: #1e293b;
}

.developer-code-toggle > button {
    min-width: 62px;
    padding: 5px 8px;
    border: 0;
    border-radius: 5px;
    color: #94a3b8;
    background: transparent;
    font-size: 8px;
    font-weight: 800;
}

.developer-code-toggle > button.active {
    color: #fff;
    background: #475569;
}

.developer-code-toggle > button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.developer-code-note {
    margin: 9px 10px 0;
    padding: 8px 9px;
    border-radius: 7px;
    color: #fde68a;
    background: #422006;
    font-size: 8px;
    line-height: 1.5;
}

.developer-code-example pre {
    min-height: 92px;
    margin: 0;
    padding: 13px 14px 15px;
    overflow: auto;
}

.developer-code-example code {
    color: #dbeafe;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    line-height: 1.65;
    white-space: pre;
}

.developer-run-button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--blue);
    font-size: 10px;
    font-weight: 850;
}

.developer-run-button:disabled { opacity: .68; }

.developer-copy-button {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    color: var(--slate);
    background: var(--soft);
    font-size: 8px;
    font-weight: 800;
}

.developer-response-empty,
.developer-response-loading {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
    font-size: 9px;
}

.developer-response-empty > i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--blue);
    background: var(--blue-pale);
    font-size: 17px;
}

.developer-response-loading .dashboard-spinner {
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
}

.developer-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 16px 0 9px;
    color: var(--green);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
}

.developer-status > span:first-child {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.developer-status.error { color: #dc2626; }
.developer-status.error > span:first-child { background: #dc2626; }

.developer-json {
    max-height: 540px;
    margin: 0;
    padding: 17px;
    overflow: auto;
    border-radius: 14px;
    color: #dce9ff;
    background: #0f172a;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.financial-records {
    min-width: 0;
}

.record-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
    border-radius: 999px;
    background: #eaecef;
}

.record-tab {
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: #6b7280;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

.record-tab.active {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 3px 7px rgba(0, 98, 255, .22);
}

.record-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin-top: 11px;
}

.record-entry {
    min-width: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f2f4f6;
}

.record-entry-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.record-entry h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
}

.record-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 8px;
    border-radius: 6px;
    color: #6b7280;
    background: #eaecef;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.record-status.is-satisfied,
.record-status.is-complete {
    color: #059669;
    background: #ecfdf5;
}

.record-status.is-insufficient,
.record-status.is-rejected {
    color: #dc2626;
    background: #fef2f2;
}

.record-status.is-pending {
    color: #b45309;
    background: #fffbeb;
}

.record-amount {
    display: block;
    margin-top: 5px;
    color: #0a0a0a;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.35px;
    line-height: 1.25;
}

.record-meta {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.45;
}

.graduate-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 59px;
    margin-bottom: 11px;
    padding: 12px 16px;
    border-radius: 14px;
    color: #6b7280;
    background: #f2f4f6;
    font-size: 13px;
}

.graduate-overview strong {
    font-weight: 900;
}

.graduate-overview.is-satisfied strong { color: #059669; }
.graduate-overview.is-insufficient strong { color: #f87171; }

.graduate-overview button {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    color: #0a0a0a;
    background: #eaecef;
    font-size: 11px;
    font-weight: 800;
}

.graduate-group-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
}

.graduate-group {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f2f4f6;
}

.graduate-group > h3 {
    margin: 0;
    padding: 14px 16px 10px;
    border: 0;
    color: var(--blue);
    background: transparent;
    font-size: 13px;
    font-weight: 900;
}

.graduate-group > div {
    margin: 0 16px 10px;
    border-top: 1px solid #eee;
}

.graduate-requirement {
    display: block;
    padding: 9px 0;
}

.graduate-requirement + .graduate-requirement {
    border-top: 1px solid #eee;
}

.graduate-requirement-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.graduate-requirement-heading > strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.graduate-requirement-meta {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}

.graduate-difference {
    font-weight: 850;
}

.graduate-difference.is-satisfied { color: #10b981; }
.graduate-difference.is-insufficient { color: #f87171; }

@media (min-width: 1241px) {
    .record-list,
    .graduate-group-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (min-width: 1360px) {
    .graduate-group-list,
    .tuition-payment-list,
    .scholarship-history {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .graduate-group-list {
        align-items: start;
    }

    .tuition-payment-list,
    .scholarship-history {
        overflow: visible;
        border: 0;
    }

    .tuition-payment {
        height: 100%;
        border: 1px solid var(--line);
        border-radius: 14px;
    }

    .scholarship-entry {
        min-height: 118px;
        padding-right: 14px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 14px;
    }

    .scholarship-entry + .scholarship-entry,
    .tuition-payment + .tuition-payment {
        border-top: 1px solid var(--line);
    }

    .scholarship-entry .history-rail::before {
        display: none;
    }
}

@media (max-width: 1240px) {
    :root { --side-width: 230px; }
    .grade-hero,
    .trend-card { grid-column: span 6; }
    .schedule-card { grid-column: span 7; }
    .seat-card { grid-column: span 5; }
    .quick-card { grid-column: span 12; }
}

@media (max-width: 900px) {
    .app-shell { display: block; }
    .side-panel { display: none; }
    .top-bar { min-height: auto; padding-top: 18px; }
    .mobile-brand { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; }
    .mobile-brand .brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
    .top-copy { margin-right: auto; }
    .today-label,
    .top-copy p { display: none; }
    .top-copy h1 { margin: 0; font-size: 18px; }
    .dashboard-content { padding-top: 4px; }
    .lookup-body { grid-template-columns: 1fr; }
    .login-gate { grid-template-columns: 48px minmax(0, 1fr); }
    .login-gate-icon { width: 48px; height: 48px; }
    .login-gate-button { grid-column: 2; justify-self: start; }
    .dashboard-load-state { grid-template-columns: 48px minmax(0, 1fr); }
    .dashboard-load-progress { grid-column: 2; }
}

@media (max-width: 700px) {
    .top-bar { flex-wrap: wrap; gap: 12px; padding: 16px 18px 14px; }
    .top-copy { display: none; }
    .auth-actions { margin-left: auto; }
    .session-state { display: none; }
    .top-actions { margin-left: auto; }
    .developer-button { width: 38px; min-height: 38px; justify-content: center; padding: 0; }
    .developer-button > span { display: none; }
    .primary-button { min-height: 38px; padding: 0 14px; }
    .dashboard-content { padding: 4px 14px 38px; }
    .dashboard-grid { gap: 12px; }
    .grade-hero,
    .trend-card,
    .schedule-card,
    .seat-card,
    .quick-card { grid-column: span 12; }
    .grade-hero { min-height: 290px; }
    .trend-card,
    .schedule-card { min-height: 290px; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-grid > button { min-height: 78px; }
    .lookup-section { margin-top: 12px; padding: 20px 15px; border-radius: 22px; }
    .lookup-header { flex-direction: column; gap: 12px; }
    .lookup-header h2 { font-size: 19px; }
    .lookup-body { gap: 14px; padding-top: 16px; }
    .parameter-panel { grid-template-columns: 1fr; }
    .result-card { padding: 14px; }
    .response-meta { align-items: flex-start; }
    .result-actions { flex-wrap: wrap; justify-content: flex-end; }
    .login-dialog { margin: 12px; border-radius: 22px; }
    .login-gate { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
    .login-gate-icon { width: 44px; height: 44px; }
    .login-gate-button { grid-column: 1; width: 100%; }
    .dashboard-load-state { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; }
    .dashboard-load-icon { width: 44px; height: 44px; border-radius: 14px; }
    .dashboard-load-progress { grid-column: 1 / -1; }
    .developer-console { --bs-offcanvas-width: 100vw; }
    .developer-header { padding: 20px 18px 16px; }
    .developer-body { padding: 18px 14px 32px; }
    .developer-endpoint-list { grid-template-columns: 1fr; }
    .developer-parameters { grid-template-columns: 1fr; }
    .developer-code-controls { align-items: stretch; flex-direction: column; }
    .developer-code-toggle { width: 100%; }

    .record-entry {
        padding: 14px 16px;
    }

    .record-entry h3 {
        font-size: 13px;
    }

    .graduate-overview {
        padding: 12px 14px;
        font-size: 12px;
    }

    .graduate-overview button {
        padding: 0 11px;
        font-size: 10px;
    }

    .scholarship-entry {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 8px 10px;
        min-height: 0;
        padding: 14px 12px 14px 0;
    }

    .history-rail {
        grid-row: 1 / span 3;
    }

    .scholarship-period,
    .scholarship-copy,
    .scholarship-amount {
        grid-column: 2;
    }

    .scholarship-period,
    .scholarship-copy,
    .scholarship-amount {
        padding: 0;
    }

    .scholarship-amount,
    .tuition-payment-date {
        text-align: left;
    }

    .tuition-payment-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .tuition-payment-amounts {
        grid-template-columns: 1fr;
    }

    .tuition-amount + .tuition-amount {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .graduate-requirement {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .graduate-requirement-status,
    .graduate-progress {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
