:root {
  --ink: #344238;
  --muted: #718073;
  --paper: #fbf7f4;
  --surface: #fffdfb;
  --line: #dde6d5;
  --green: #667b68;
  --green-2: #667b68;
  --mint: #dde6d5;
  --yellow: #f8d3c5;
  --peach: #f8d3c5;
  --lavender: #fceee9;
  --shadow: 0 18px 50px rgba(102, 123, 104, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(163, 184, 153, .45);
  outline-offset: 2px;
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 76px; padding: 0 clamp(20px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(252, 238, 233, .88); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221, 230, 213, .9);
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 5px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: -.04em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: flex; gap: 10px; }
.icon-button, .button, .filter-toggle, .text-button { border: 0; background: none; color: inherit; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border-radius: 13px; font-weight: 650; }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: #536656; }
.button.secondary { border: 1px solid var(--line); background: #fff; }
main { padding: 0 clamp(20px, 4vw, 64px) 64px; }
.hero { max-width: 1440px; margin: 0 auto; padding: 58px 0 30px; }
.hero-copy { display: grid; gap: 8px; margin-bottom: 27px; }
.eyebrow { margin: 0; color: var(--green-2); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 0; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy > p:last-child { margin: 1px 0 0; color: var(--muted); font-size: 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.summary-card { position: relative; overflow: hidden; min-height: 126px; padding: 21px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.summary-card.featured { background: var(--green); color: #fff; border-color: var(--green); }
.summary-card .summary-label { color: var(--muted); font-size: 12px; }
.summary-card.featured .summary-label { color: rgba(255,255,255,.7); }
.summary-card strong { display: block; margin-top: 12px; font-size: 31px; line-height: 1; letter-spacing: -.03em; }
.summary-card .mini { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.summary-card.featured .mini { color: rgba(255,255,255,.68); }
.summary-card .orb { position: absolute; width: 76px; height: 76px; right: -15px; bottom: -18px; border-radius: 50%; background: var(--mint); opacity: .65; }
.summary-card.featured .orb { background: var(--yellow); opacity: .85; }
.today-strip { margin-top: 14px; padding: 23px; border-radius: var(--radius); background: linear-gradient(135deg, var(--mint), var(--lavender)); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.025em; }
.hint { color: var(--muted); font-size: 12px; }
.upcoming-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.upcoming-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 14px; border: 1px solid transparent; border-radius: 15px; background: rgba(255,255,255,.76); color: inherit; text-align: left; transition: .2s ease; }
.upcoming-card:hover { transform: translateY(-2px); border-color: #a3b899; background: var(--surface); }
.date-tile { flex: 0 0 48px; display: grid; place-items: center; min-height: 50px; border-radius: 13px; background: var(--surface); box-shadow: 0 4px 15px rgba(37, 68, 53, .06); }
.date-tile b { font-size: 16px; line-height: 1; }
.date-tile small { margin-top: -8px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.upcoming-card > span:nth-child(2) { min-width: 0; flex: 1; }
.upcoming-card strong, .upcoming-card small { display: block; }
.upcoming-card strong { margin-bottom: 4px; font-size: 14px; }
.upcoming-card small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-card > b { font-size: 11px; color: var(--green-2); }
.workspace { display: grid; grid-template-columns: minmax(390px, .82fr) minmax(470px, 1.18fr); gap: 16px; max-width: 1440px; margin: 0 auto; padding-top: 22px; scroll-margin-top: 80px; }
.list-panel, .detail-panel { min-height: 700px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.count-badge { padding: 5px 10px; border-radius: 999px; background: var(--mint); color: var(--green); font-size: 11px; font-weight: 700; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-field { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: #fffaf7; }
.search-field svg { width: 18px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #9aa39e; }
.filter-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; font-size: 12px; font-weight: 650; }
.filter-toggle span { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: white; font-size: 9px; }
.filter-row { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 8px; max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: .24s ease; }
.filter-row.open { max-height: 90px; margin-top: 10px; opacity: 1; }
.filter-row label { color: var(--muted); font-size: 10px; }
.filter-row select { width: 100%; height: 38px; margin-top: 4px; padding: 0 25px 0 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 11px; }
.text-button { color: var(--green-2); font-size: 12px; font-weight: 700; }
.filter-row .text-button { height: 38px; }
.student-list { display: grid; gap: 8px; margin-top: 18px; }
.student-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; width: 100%; padding: 13px; border: 1px solid transparent; border-radius: 15px; background: #fffaf7; color: inherit; text-align: left; transition: .18s ease; }
.student-card:hover { border-color: var(--line); transform: translateX(2px); }
.student-card.selected { border-color: #a3b899; background: #fceee9; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--avatar, var(--mint)); color: #445647; font-size: 13px; font-weight: 700; }
.student-main { min-width: 0; }
.student-main strong { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.student-main p { overflow: hidden; margin: 3px 0 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.level-chip { padding: 3px 7px; border-radius: 999px; background: #fff; color: var(--green-2); font-size: 9px; font-weight: 700; }
.student-meta { color: var(--muted); font-size: 10px; text-align: right; }
.student-meta b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 11px; }
.empty-state { padding: 50px 15px; color: var(--muted); text-align: center; font-size: 13px; }
.empty-state button { display: block; margin: 10px auto 0; }
.detail-panel { position: sticky; top: 92px; align-self: start; min-height: auto; }
.profile-head { display: flex; align-items: flex-start; gap: 16px; }
.profile-head .avatar { width: 58px; height: 58px; border-radius: 17px; font-size: 18px; }
.profile-title { min-width: 0; flex: 1; }
.profile-title h2 { margin: 3px 0 5px; font-size: 25px; letter-spacing: -.03em; }
.profile-title p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-actions { display: flex; gap: 7px; }
.profile-actions .icon-button { width: 38px; height: 38px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0 19px; }
.tag { padding: 6px 9px; border-radius: 9px; background: var(--mint); color: #536656; font-size: 10px; font-weight: 650; }
.tag.emphasis { background: var(--lavender); color: #7a5d55; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-card { min-height: 105px; padding: 15px; border-radius: 15px; background: #fff8f4; }
.quick-card.accent { background: var(--mint); }
.quick-card p { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.quick-card strong { display: block; font-size: 13px; line-height: 1.45; }
.quick-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.record-section { margin-top: 22px; }
.record-section .section-heading { align-items: center; margin-bottom: 10px; }
.record-section h3 { margin: 0; font-size: 14px; }
.small-button { min-height: 34px; padding: 0 11px; font-size: 11px; }
.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.note-card p { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.note-card span { display: block; color: #425049; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.timeline { display: grid; gap: 9px; }
.timeline-item { position: relative; padding: 13px 13px 13px 37px; border-radius: 14px; background: #fff8f4; }
.timeline-item::before { content: ""; position: absolute; left: 17px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px var(--mint); }
.timeline-item b { display: block; margin-bottom: 4px; font-size: 12px; }
.timeline-item time { margin-left: 6px; color: var(--muted); font-size: 9px; font-weight: 500; }
.timeline-item p { margin: 0; color: #5b6761; font-size: 11px; line-height: 1.5; }
.blank-detail { display: grid; place-items: center; min-height: 500px; color: var(--muted); text-align: center; }
.blank-detail .avatar { margin: 0 auto 13px; width: 56px; height: 56px; border-radius: 50%; }
dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 30px 100px rgba(20, 43, 33, .25); }
dialog::backdrop { background: rgba(21, 38, 32, .38); backdrop-filter: blur(5px); }
dialog form { padding: 25px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 21px; }
.dialog-header h2 { margin: 4px 0 0; font-size: 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { color: var(--muted); font-size: 11px; font-weight: 650; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fbfcfa; color: var(--ink); font-size: 12px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #7aac92; box-shadow: 0 0 0 3px rgba(47, 118, 89, .09); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.danger-zone { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); text-align: right; }
.danger { color: #b2473e; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 12px; background: #1e3029; color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }
.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; }
[hidden] { display: none !important; }
.wide { width: 100%; }
.brand-mark.large { width: 54px; height: 54px; border-radius: 17px; font-size: 20px; }
.eyebrow.light { color: #dde6d5; }
.loading-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--paper); }
.loading-screen p { color: var(--muted); font-size: 12px; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(35px,6vw,82px); background: var(--green); color: #fff; }
.login-art h1 { position: relative; z-index: 2; font-size: clamp(46px,6vw,78px); }
.login-orbit { position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.orbit-one { right: -120px; bottom: -170px; width: 520px; height: 520px; }
.orbit-two { right: 80px; bottom: 30px; width: 210px; height: 210px; background: var(--yellow); border: 0; opacity: .9; }
.login-form-wrap { display: grid; place-items: center; padding: 28px; }
.login-card { width: min(410px,100%); }
.login-card h2 { margin: 8px 0 8px; font-size: 31px; letter-spacing: -.035em; }
.login-copy { margin-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card label, .student-gate-card label { display: block; margin-bottom: 15px; color: var(--muted); font-size: 11px; font-weight: 650; }
.login-card input, .student-gate-card input { width: 100%; height: 48px; margin-top: 7px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: #fbfcfa; }
.login-card input:focus, .student-gate-card input:focus { border-color: #7aac92; box-shadow: 0 0 0 3px rgba(47,118,89,.09); }
.form-error { padding: 9px 11px; border-radius: 10px; background: #fff0ed; color: #a33d35; font-size: 11px; }
.student-gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 80% 15%, #f8d3c5 0, transparent 28%), var(--paper); }
.student-gate-card { width: min(440px,100%); padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.student-gate-card .brand-mark { margin: 0 auto 23px; }
.student-gate-card h1 { margin: 8px 0 10px; font-size: 36px; }
.student-gate-card > p:not(.eyebrow):not(.form-error) { margin-bottom: 25px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.student-gate-card label { text-align: left; }
.student-gate-card input { font-size: 24px; font-weight: 700; letter-spacing: .24em; text-align: center; }
.sync-state { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; color: var(--muted); font-size: 10px; }
.sync-state i { width: 7px; height: 7px; border-radius: 50%; background: #44a26e; box-shadow: 0 0 0 3px #daf0e2; }
.empty-state b, .empty-state span { display: block; }
.empty-state b { margin-bottom: 6px; color: var(--ink); font-size: 15px; }
.empty-state .button { margin: 16px auto 0; }
.portal-access-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; margin-bottom: 10px; padding: 15px; border: 1px solid #a3b899; border-radius: 15px; background: #f4f7f1; }
.portal-access-card strong, .portal-access-card small { display: block; }
.portal-access-card strong { margin: 4px 0; font-size: 12px; }
.portal-access-card small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.payment-list { display: grid; gap: 7px; }
.payment-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; }
.payment-item b, .payment-item small { display: block; }
.payment-item b { font-size: 12px; }
.payment-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.status.paid { background: var(--mint); color: #276c4f; }
.status.pending { background: #fff0bd; color: #785e0d; }
.status.overdue { background: #ffe0da; color: #9d4038; }
.share-dialog-content { padding: 25px; }
.share-help { margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.copy-field { display: block; margin-bottom: 13px; color: var(--muted); font-size: 10px; font-weight: 700; }
.copy-field span { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 6px; }
.copy-field input { min-width: 0; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #f7f8f5; color: var(--ink); font-size: 11px; }
.copy-field button { padding: 0 13px; border: 0; border-radius: 10px; background: var(--mint); color: var(--green); font-weight: 700; }
.student-portal { min-height: 100vh; padding: 0 0 70px; background: var(--paper); }
.portal-topbar { height: 72px; padding: 0 clamp(18px,5vw,72px); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.portal-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: end; padding: 65px max(24px,calc((100vw - 1280px)/2)) 55px; background: var(--green); color: #fff; }
.portal-hero h1 { margin: 9px 0 13px; }
.portal-hero > div > p:last-child { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; }
.portal-next { padding: 22px; border: 1px solid rgba(255,255,255,.17); border-radius: 19px; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.portal-next p, .portal-next strong, .portal-next span { display: block; }
.portal-next p { margin-bottom: 12px; color: #b8d6c5; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.portal-next strong { margin-bottom: 8px; font-size: 20px; }
.portal-next span { color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.portal-content { max-width: 1280px; margin: 0 auto; padding: 25px 24px; }
.portal-overview { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: -50px; }
.student-info-card { min-height: 160px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(19,49,35,.08); }
.student-info-card.mint { background: var(--mint); border-color: #cbd8c4; }
.student-info-card.yellow { background: var(--peach); border-color: #efc0af; }
.student-info-card p { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.4; }
.student-info-card p span { font-weight: 500; }
.student-info-card strong, .student-info-card > span { display: block; }
.student-info-card strong { margin: 22px 0 7px; font-size: 15px; line-height: 1.45; }
.student-info-card > span:not(.status) { color: var(--muted); font-size: 10px; line-height: 1.45; }
.portal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.portal-section { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.portal-section .section-heading { margin-bottom: 14px; }
.lesson-history { margin-top: 13px; }
.portal-timeline { display: grid; }
.portal-timeline article { display: grid; grid-template-columns: 45px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.portal-timeline article:first-child { border-top: 0; }
.timeline-number { color: #a3b899; font-size: 12px; font-weight: 700; }
.portal-timeline time { color: var(--muted); font-size: 9px; }
.portal-timeline h3 { margin: 4px 0 6px; font-size: 14px; }
.portal-timeline p { margin: 0; color: #59645e; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }

@media (max-width: 980px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .upcoming-list { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .portal-overview { grid-template-columns: 1fr 1fr; }
  .portal-columns { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 70px; }
  .topbar { height: 66px; padding: 0 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand small, .header-actions .icon-button { display: none; }
  .header-actions .button { min-height: 44px; padding: 0 12px; font-size: 12px; }
  main { padding: 0 14px 24px; }
  .hero { padding-top: 36px; }
  h1 { font-size: 37px; }
  .hero-copy > p:last-child { font-size: 13px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary-card { min-height: 105px; padding: 16px; }
  .summary-card strong { font-size: 25px; }
  .today-strip { padding: 18px; }
  .hint { display: none; }
  .workspace { padding-top: 10px; }
  .list-panel, .detail-panel { min-height: auto; padding: 18px; border-radius: 19px; }
  .filter-row, .filter-row.open { grid-template-columns: 1fr 1fr; max-height: 160px; }
  .filter-row select, .filter-row .text-button { height: 44px; }
  .filter-row label:nth-child(3) { grid-column: span 1; }
  .student-meta span { display: none; }
  .profile-head { flex-wrap: wrap; }
  .profile-actions { margin-left: auto; }
  .profile-actions .icon-button, .small-button { min-width: 44px; min-height: 44px; }
  .quick-grid, .note-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  dialog { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  dialog form { padding: 20px 18px 26px; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); height: 66px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(18px); }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 9px; text-decoration: none; }
  .mobile-nav svg { width: 19px; }
  .mobile-nav .active { color: var(--green); }
  .toast { bottom: 80px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-art { min-height: 270px; padding: 25px; }
  .login-art h1 { font-size: 37px; }
  .login-form-wrap { padding: 35px 22px; }
  .orbit-one { width: 300px; height: 300px; }
  .orbit-two { right: 25px; bottom: -25px; width: 130px; height: 130px; }
  .sync-state { display: none; }
  .portal-access-card { grid-template-columns: 1fr auto; }
  .portal-access-card .icon-button { grid-column: 2; }
  .student-gate-card { padding: 30px 20px; }
  .student-portal { padding-bottom: 30px; }
  .portal-topbar { height: 65px; padding: 0 15px; }
  .portal-topbar .text-button { min-height: 44px; padding: 0 8px; }
  .portal-hero { grid-template-columns: 1fr; gap: 25px; padding: 42px 18px 70px; }
  .portal-hero h1 { font-size: 38px; }
  .portal-content { padding: 0 14px 22px; }
  .portal-overview { grid-template-columns: 1fr 1fr; margin-top: -42px; }
  .student-info-card { min-height: 142px; padding: 15px; }
  .student-info-card strong { margin-top: 16px; }
  .portal-section { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
