:root {
  --ink: #172033;
  --muted: #657089;
  --navy: #12233f;
  --navy-2: #1a3155;
  --blue: #2855d9;
  --blue-soft: #eaf0ff;
  --mint: #55d6be;
  --mint-soft: #dcf8f1;
  --orange: #ff9b45;
  --orange-soft: #fff0df;
  --violet: #7659e8;
  --red: #d9485f;
  --green: #147d64;
  --surface: #ffffff;
  --canvas: #f4f6fa;
  --line: #dce2ec;
  --shadow: 0 16px 44px rgba(30, 49, 83, 0.10);
  --radius: 18px;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; font-size: 16px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.22; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.3; letter-spacing: -0.025em; }
h3 { font-size: 1.05rem; line-height: 1.35; }
.eyebrow { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--muted); }
.tiny { color: var(--muted); font-size: .78rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 12px; background: var(--blue); color: white; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(40, 85, 217, .22); }
.btn:focus-visible, .nav-link:focus-visible, .choice:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(40, 85, 217, .28); outline-offset: 2px; }
.btn.secondary { background: #eef1f6; color: var(--ink); }
.btn.secondary:hover { box-shadow: 0 8px 18px rgba(30, 49, 83, .1); }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--red); }
.btn.small { min-height: 36px; padding: 0 13px; border-radius: 9px; font-size: .86rem; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #eef1f6; color: var(--ink); }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 750; }
.field input, .field textarea, .field select, .search-input { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); padding: 11px 13px; min-height: 46px; }
.field textarea { min-height: 112px; resize: vertical; }
.field small { color: var(--muted); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.status { display: inline-flex; align-items: center; width: max-content; gap: 7px; padding: 4px 9px; border-radius: 999px; background: #eef1f6; color: #4d586c; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8190a7; }
.status.approved, .status.active, .status.connected, .status.completed { background: #def6ee; color: #0d6e56; }
.status.approved::before, .status.active::before, .status.connected::before, .status.completed::before { background: #25a87e; }
.status.pending, .status.in-progress { background: #fff0d9; color: #985900; }
.status.pending::before, .status.in-progress::before { background: #ef9d2c; }
.status.rejected, .status.suspended, .status.error { background: #ffe4e8; color: #a5253a; }
.status.rejected::before, .status.suspended::before, .status.error::before { background: #d9485f; }
.tag { display: inline-flex; padding: 4px 9px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: .75rem; font-weight: 750; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* Authentication */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(540px, 1.1fr); background: var(--surface); }
.auth-brand { position: relative; overflow: hidden; background: var(--navy); color: white; padding: clamp(34px, 6vw, 82px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand::after { content: ""; position: absolute; width: 440px; height: 440px; right: -210px; bottom: -160px; border: 80px solid rgba(85, 214, 190, .14); border-radius: 50%; }
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--navy); font-weight: 950; }
.brand-story { position: relative; z-index: 1; max-width: 620px; }
.brand-story h1 { max-width: 560px; margin-bottom: 20px; font-size: clamp(2.25rem, 5vw, 4.8rem); line-height: 1.05; letter-spacing: -.065em; }
.brand-story p { max-width: 500px; color: #c7d2e6; font-size: 1.05rem; }
.signal-line { display: flex; align-items: flex-end; gap: 8px; height: 58px; margin: 34px 0 20px; }
.signal-line span { width: 10px; border-radius: 10px; background: var(--mint); opacity: .3; }
.signal-line span:nth-child(1) { height: 18px; }.signal-line span:nth-child(2) { height: 31px; }.signal-line span:nth-child(3) { height: 25px; }.signal-line span:nth-child(4) { height: 48px; opacity: 1; }.signal-line span:nth-child(5) { height: 37px; opacity: .7; }
.auth-proof { position: relative; z-index: 1; display: flex; gap: 12px; color: #c7d2e6; font-size: .84rem; }
.auth-proof span { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; }
.auth-panel { display: grid; place-items: center; padding: 38px; background: #fbfcfe; }
.auth-card { width: min(100%, 470px); }
.auth-card h2 { margin-bottom: 8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #eef1f6; border-radius: 13px; padding: 4px; margin: 28px 0 24px; }
.auth-tab { min-height: 43px; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 750; }
.auth-tab.active { background: white; color: var(--ink); box-shadow: 0 3px 10px rgba(30, 49, 83, .08); }
.auth-actions { display: grid; gap: 12px; margin-top: 24px; }
.demo-box { margin-top: 22px; padding: 13px 15px; border: 1px dashed #bdc8d8; border-radius: 11px; color: var(--muted); background: white; font-size: .8rem; }

/* App layout */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: white; padding: 26px 18px; display: flex; flex-direction: column; z-index: 20; }
.sidebar .brand { padding: 0 10px 28px; }
.sidebar .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.nav-group-label { margin: 20px 12px 8px; color: #8796af; font-size: .7rem; letter-spacing: .12em; font-weight: 800; }
.nav-list { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border-radius: 11px; color: #bbc8dc; background: transparent; font-weight: 670; text-align: left; }
.nav-link:hover { color: white; background: rgba(255, 255, 255, .06); }
.nav-link.active { color: var(--navy); background: var(--mint); }
.nav-icon { width: 21px; text-align: center; font-size: 1rem; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 15px 10px 4px; border-top: 1px solid rgba(255, 255, 255, .12); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #dce5f5; color: var(--navy); font-weight: 850; }
.sidebar-user .avatar { background: #2b4165; color: white; }
.sidebar-user strong, .sidebar-user small { display: block; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: #8fa0ba; font-size: .72rem; }
.main { min-width: 0; }
.topbar { height: 78px; padding: 0 clamp(22px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.topbar-title strong { display: block; font-size: 1.02rem; }.topbar-title span { display: block; color: var(--muted); font-size: .76rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu { display: none; }
.page { padding: clamp(26px, 4vw, 48px); max-width: 1500px; margin: 0 auto; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { margin-bottom: 6px; }.page-head p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 20px; }.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 4px rgba(30, 49, 83, .02); }
.card.soft { background: #f8faff; }.card.dark { background: var(--navy); color: white; border: 0; box-shadow: var(--shadow); }.card.highlight { border-color: #b9c8f6; background: linear-gradient(145deg, #fff, #f2f6ff); }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 18px; }.card-head h2, .card-head h3 { margin-bottom: 4px; }.card-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.metric-card { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 850; }.metric-icon.mint { background: var(--mint-soft); color: var(--green); }.metric-icon.orange { background: var(--orange-soft); color: #a45610; }.metric-icon.violet { background: #eeeaff; color: var(--violet); }
.metric-value { font-size: 1.7rem; line-height: 1; font-weight: 850; letter-spacing: -.04em; }.metric-label { margin-top: 7px; color: var(--muted); font-size: .82rem; }
.level-hero { min-height: 270px; display: grid; grid-template-columns: 1.3fr .7fr; overflow: hidden; padding: 0; }
.level-copy { padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; }.level-copy p { max-width: 560px; color: #becae0; }.level-ring-wrap { display: grid; place-items: center; background: linear-gradient(145deg, rgba(85,214,190,.12), rgba(255,155,69,.05)); }
.level-ring { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mint) 0 72%, rgba(255,255,255,.12) 72%); position: relative; }.level-ring::after { content: ""; width: 128px; height: 128px; border-radius: 50%; background: var(--navy); position: absolute; }.level-ring strong { position: relative; z-index: 1; font-size: 2.35rem; }.level-ring small { position: relative; z-index: 1; color: #aab8cf; text-align: center; }
.progress { height: 8px; background: #e8ecf3; border-radius: 999px; overflow: hidden; }.progress > span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.skill-row { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: 12px; margin: 15px 0; font-size: .86rem; }.skill-row strong:last-child { text-align: right; }
.timeline { display: grid; gap: 2px; }.timeline-item { display: grid; grid-template-columns: 13px 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }.timeline-item:last-child { border: 0; }.timeline-dot { width: 10px; height: 10px; border: 2px solid white; box-shadow: 0 0 0 2px var(--blue); border-radius: 50%; margin-top: 7px; background: var(--blue); }.timeline-item h3 { margin-bottom: 2px; font-size: .92rem; }.timeline-item p { margin: 0; font-size: .8rem; color: var(--muted); }.score { font-weight: 850; font-size: 1.1rem; }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }.plan-list li { display: flex; gap: 10px; align-items: start; padding: 12px; border-radius: 12px; background: #f5f7fb; }.plan-list .check { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: var(--mint-soft); color: var(--green); font-size: .75rem; font-weight: 900; }

/* Exams */
.exam-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.exam-card { position: relative; overflow: hidden; min-height: 245px; display: flex; flex-direction: column; }
.exam-card::after { content: attr(data-short); position: absolute; right: -2px; bottom: -35px; font-weight: 950; font-size: 6.8rem; letter-spacing: -.09em; color: rgba(40,85,217,.055); }
.exam-card .tag { margin-bottom: 28px; }.exam-card h2 { margin-bottom: 8px; }.exam-card p { color: var(--muted); font-size: .88rem; }.exam-card .btn { position: relative; z-index: 1; margin-top: auto; width: max-content; }
.test-layout { min-height: 100vh; background: #f7f8fb; display: grid; grid-template-rows: 72px 1fr 76px; }
.test-header { background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }.test-title { display: flex; align-items: center; gap: 14px; }.test-title .brand-mark { width: 34px; height: 34px; border-radius: 10px; }.timer { font-variant-numeric: tabular-nums; padding: 8px 13px; border-radius: 9px; background: #f0f3f8; font-weight: 850; }.timer.warn { background: #ffe4e8; color: var(--red); }
.test-body { min-height: 0; display: grid; grid-template-columns: minmax(300px, .95fr) minmax(360px, 1.05fr); }.passage-panel, .question-panel { padding: clamp(25px, 4vw, 52px); overflow: auto; }.passage-panel { border-right: 1px solid var(--line); background: white; }.passage-panel p { max-width: 680px; line-height: 1.9; }.question-panel { display: flex; flex-direction: column; }.question-count { color: var(--blue); font-weight: 800; font-size: .82rem; }.question-text { margin: 18px 0 24px; max-width: 650px; font-size: 1.24rem; line-height: 1.55; }.choices { display: grid; gap: 11px; max-width: 720px; }.choice { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; width: 100%; min-height: 56px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); text-align: left; }.choice:hover { border-color: #8ea7ee; }.choice.selected { border-color: var(--blue); background: var(--blue-soft); }.choice-key { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #f0f3f8; font-size: .8rem; font-weight: 850; }.choice.selected .choice-key { background: var(--blue); color: white; }.response-area { min-height: 220px; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 17px; resize: vertical; line-height: 1.7; }.word-count { margin-top: 7px; color: var(--muted); font-size: .8rem; }.test-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-top: 1px solid var(--line); background: white; }.question-dots { display: flex; gap: 6px; flex-wrap: wrap; }.question-dot { width: 27px; height: 7px; border-radius: 9px; background: #dce2ec; }.question-dot.current { background: var(--blue); }.question-dot.answered { background: var(--mint); }.test-actions { display: flex; gap: 10px; }
.result-hero { padding: 34px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }.score-orb { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--navy); }.score-orb strong { font-size: 2.35rem; line-height: 1; }.score-orb span { font-size: .72rem; font-weight: 800; }.result-hero p { color: #c4d0e3; margin-bottom: 0; }.result-level { text-align: center; padding: 15px 24px; border-left: 1px solid rgba(255,255,255,.15); }.result-level strong { display: block; font-size: 2rem; }.review-item { padding: 18px 0; border-bottom: 1px solid var(--line); }.review-item:last-child { border-bottom: 0; }.review-head { display: flex; gap: 10px; justify-content: space-between; }.correct { color: var(--green); }.wrong { color: var(--red); }.explanation { padding: 12px 14px; background: #f5f7fb; border-radius: 10px; font-size: .86rem; color: #4d586c; }

/* Coach */
.coach-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 20px; height: calc(100vh - 190px); min-height: 560px; }.chat-card { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; padding: 0; overflow: hidden; }.chat-head { padding: 20px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }.coach-avatar { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px 15px 15px 5px; background: var(--navy); color: var(--mint); font-weight: 900; }.chat-head h2 { font-size: 1rem; margin: 0; }.chat-head p { margin: 0; color: var(--muted); font-size: .77rem; }.chat-messages { overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 15px; }.bubble { max-width: 78%; padding: 13px 15px; border-radius: 15px 15px 15px 5px; background: #f0f3f8; white-space: pre-wrap; }.bubble.user { margin-left: auto; border-radius: 15px 15px 5px 15px; background: var(--blue); color: white; }.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }.chat-form input { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }.insight-stack { display: grid; gap: 14px; overflow: auto; }.insight-card { padding: 18px; border-radius: 15px; background: white; border: 1px solid var(--line); }.insight-card h3 { margin-bottom: 10px; }.insight-card ul { margin: 0; padding-left: 20px; color: #4d586c; font-size: .88rem; }.prompt-box { background: var(--navy); color: #d7e0ef; font-size: .82rem; line-height: 1.7; }

/* Tables and admin */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }.table { width: 100%; border-collapse: collapse; min-width: 720px; background: white; }.table th { padding: 12px 15px; text-align: left; background: #f5f7fb; color: var(--muted); font-size: .76rem; letter-spacing: .03em; }.table td { padding: 14px 15px; border-top: 1px solid var(--line); vertical-align: middle; font-size: .87rem; }.table tr:hover td { background: #fbfcfe; }.person { display: flex; align-items: center; gap: 11px; }.person strong, .person span { display: block; }.person span { color: var(--muted); font-size: .75rem; }.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 17px; }.filters .search-input { max-width: 320px; }.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: #eef1f6; }.segment { min-height: 36px; padding: 0 12px; border-radius: 8px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 750; }.segment.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(30,49,83,.08); }.connection-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; }.connection-logo { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--navy); color: var(--mint); font-weight: 900; }.connection-card h3 { margin-bottom: 3px; }.connection-card p { margin: 0; color: var(--muted); font-size: .82rem; }.connection-actions { display: flex; gap: 9px; }.empty { text-align: center; padding: 52px 20px; color: var(--muted); }.empty-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 16px; background: #eef1f6; font-size: 1.35rem; }.empty h3 { color: var(--ink); margin-bottom: 5px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(13, 24, 43, .56); backdrop-filter: blur(4px); }.modal { width: min(100%, 640px); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 20px; box-shadow: 0 30px 80px rgba(6, 17, 34, .35); }.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }.modal-head h2 { margin: 0; }.modal-body { padding: 24px; }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--line); }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 10px; }.toast { width: min(360px, calc(100vw - 44px)); padding: 14px 16px; border-radius: 12px; background: var(--navy); color: white; box-shadow: var(--shadow); animation: toast-in .25s ease; }.toast.error { background: #a5253a; }@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.loading { min-height: 60vh; display: grid; place-items: center; }.spinner { width: 38px; height: 38px; border: 4px solid #dce2ec; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: .82fr 1.18fr; }.auth-brand { padding: 42px; }.brand-story h1 { font-size: 3.2rem; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }.exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.coach-layout { grid-template-columns: 1fr; height: auto; }.chat-card { min-height: 580px; }.insight-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .auth-shell { display: block; }.auth-brand { min-height: 310px; }.brand-story h1 { margin-top: 60px; font-size: 2.7rem; }.auth-proof, .signal-line { display: none; }.auth-panel { padding: 32px 20px; }
  .app-shell { display: block; }.sidebar { position: fixed; left: -270px; width: 248px; transition: left .2s ease; }.sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(13,24,43,.32); }.mobile-menu { display: grid; }.topbar { padding: 0 18px; }.page { padding: 24px 18px; }.grid.three { grid-template-columns: 1fr 1fr; }.level-hero { grid-template-columns: 1fr; }.level-ring-wrap { min-height: 220px; }.exam-grid { grid-template-columns: 1fr; }.test-body { grid-template-columns: 1fr; overflow: auto; }.passage-panel, .question-panel { overflow: visible; }.passage-panel { border-right: 0; border-bottom: 1px solid var(--line); }.test-layout { height: auto; min-height: 100vh; }.test-footer { position: sticky; bottom: 0; }.question-dots { display: none; }.result-hero { grid-template-columns: 1fr; text-align: center; }.score-orb { margin: auto; }.result-level { border: 0; border-top: 1px solid rgba(255,255,255,.15); }.connection-card { grid-template-columns: 50px 1fr; }.connection-actions { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .brand-story h1 { font-size: 2.2rem; }.auth-brand { min-height: 275px; padding: 28px; }.form-grid.two, .grid.two, .grid.three, .grid.four, .insight-stack { grid-template-columns: 1fr; }.page-head { align-items: start; flex-direction: column; }.topbar-title span { display: none; }.card { padding: 18px; }.metric-card { min-height: 120px; }.test-header { padding: 0 15px; }.test-title small { display: none; }.passage-panel, .question-panel { padding: 24px 18px; }.test-footer { padding: 10px 14px; min-height: 76px; }.test-actions { margin-left: auto; }.test-actions .btn { padding: 0 12px; }.chat-form { grid-template-columns: 1fr; }.bubble { max-width: 91%; }.modal-backdrop { padding: 10px; }.modal { max-height: calc(100vh - 20px); }.filters { align-items: stretch; flex-direction: column; }.filters .search-input { max-width: none; }
}
