:root {
  --bg: #f4f6f1;
  --surface: rgba(255,255,255,.88);
  --surface-solid: #fff;
  --surface-soft: #edf2ec;
  --ink: #17231f;
  --muted: #69756f;
  --line: #dfe6df;
  --primary: #173f32;
  --primary-2: #24624d;
  --accent: #d7ef98;
  --accent-strong: #a8d83f;
  --danger: #b33c45;
  --shadow: 0 18px 60px rgba(22,48,39,.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

[data-theme="dark"] {
  --bg: #0d1512;
  --surface: rgba(21,31,27,.9);
  --surface-solid: #151f1b;
  --surface-soft: #1c2924;
  --ink: #f1f7f3;
  --muted: #98aaa1;
  --line: #2b3a33;
  --primary: #d8f1a0;
  --primary-2: #b7df64;
  --accent: #d8f1a0;
  --accent-strong: #bfec5f;
  --danger: #ff8b94;
  --shadow: 0 18px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .55; z-index: -1; }
.ambient-one { width: 420px; height: 420px; right: -160px; top: -140px; background: radial-gradient(circle, rgba(194,232,111,.45), transparent 68%); }
.ambient-two { width: 360px; height: 360px; left: 14%; bottom: -180px; background: radial-gradient(circle, rgba(143,199,183,.28), transparent 70%); }

.app-shell { display: grid; grid-template-columns: 252px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px 22px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 82%, transparent); backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 28px; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; color: #112d24; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.brand-mark svg { width: 28px; height: 28px; stroke-width: 2; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.4px; }
.brand small { color: var(--muted); display: block; font-size: 11px; margin-top: 2px; }
.nav-list { display: grid; gap: 7px; }
.nav-item { border: 0; background: transparent; padding: 12px 14px; border-radius: 13px; display: flex; gap: 12px; align-items: center; cursor: pointer; color: var(--muted); font-weight: 650; text-align: left; transition: .2s ease; }
.nav-item:hover { background: var(--surface-soft); color: var(--ink); transform: translateX(2px); }
.nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 10px 30px rgba(23,63,50,.18); }
[data-theme="dark"] .nav-item.active { color: #12231c; }
.nav-item svg { width: 19px; height: 19px; }
.side-note { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--surface-soft); display: flex; gap: 10px; }
.side-note strong { font-size: 12px; }
.side-note p { margin: 4px 0 0; font-size: 11px; line-height: 1.45; color: var(--muted); }
.privacy-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #58af75; box-shadow: 0 0 0 5px rgba(88,175,117,.13); flex: none; }
.theme-toggle { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 11px 13px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.theme-toggle span { font-size: 12px; font-weight: 700; }

.main-content { padding: 32px 38px 56px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow, .card-label { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: 1.5px; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: clamp(25px,3vw,36px); letter-spacing: -1.3px; line-height: 1.08; }
.top-actions { display: flex; gap: 10px; }
.button { border: 1px solid transparent; border-radius: 12px; min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 750; font-size: 13px; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 28px rgba(23,63,50,.16); }
[data-theme="dark"] .button.primary { color: #11231c; }
.button.ghost { border-color: var(--line); background: var(--surface); }
.button.small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.button.danger-text { color: var(--danger); background: transparent; }
.button svg { width: 17px; height: 17px; }
.text-button { padding: 4px; border: 0; background: transparent; color: var(--primary-2); font-weight: 750; cursor: pointer; font-size: 12px; }
.view { display: none; animation: fadeUp .28s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.panel, .score-card, .projection-card, .stat-card { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: var(--shadow); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(280px,.75fr); gap: 18px; }
.score-card, .projection-card { border-radius: var(--radius-lg); padding: 25px; overflow: hidden; position: relative; }
.score-card::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; right: -85px; bottom: -120px; background: var(--accent); opacity: .22; }
.score-card-head, .card-heading, .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.score-card-head p, .panel-head p, .plan-hero p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; color: #39714b; background: #e7f5e9; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
[data-theme="dark"] .live-pill { background: #203a2a; color: #9bd8ac; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #54a968; }
.score-content { display: flex; align-items: center; gap: 30px; margin-top: 26px; }
.score-ring { --score: 0; width: 172px; aspect-ratio: 1; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-strong) calc(var(--score)*1%), var(--surface-soft) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 13px; background: var(--surface-solid); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.score-ring > div { position: relative; z-index: 1; text-align: center; }
.score-ring strong { font-size: 39px; letter-spacing: -2px; }
.score-ring span { font-size: 16px; font-weight: 800; }
.score-ring small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.score-copy h2 { margin: 0; max-width: 420px; font-size: clamp(19px,2vw,26px); letter-spacing: -.7px; }
.score-copy p { margin: 9px 0 16px; max-width: 540px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.formula-chip { display: inline-flex; gap: 5px; padding: 9px 12px; background: var(--surface-soft); border-radius: 10px; font-size: 11px; font-weight: 750; }
.projection-card { background: linear-gradient(145deg, var(--primary), #255c49); color: #fff; }
[data-theme="dark"] .projection-card { background: linear-gradient(145deg, #283d34, #1b2d26); }
.projection-card .card-label, .projection-card p { color: rgba(255,255,255,.7); }
.projection-card h3 { margin: 0; font-size: 18px; }
.icon-box { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-weight: 900; }
.projection-value { margin-top: 35px; display: grid; gap: 5px; }
.projection-value strong { font-size: 40px; letter-spacing: -1.8px; }
.projection-value span { font-size: 11px; font-weight: 800; width: max-content; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.12); }
.projection-value span.positive { color: #dfffa2; }
.projection-value span.negative { color: #ffc6cb; }
.mini-track { margin-top: 22px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.mini-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s ease; }
.projection-card > p { font-size: 11px; line-height: 1.55; margin: 14px 0 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.stat-card { border-radius: var(--radius-md); padding: 18px; display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; flex: none; }
.stat-icon.mint { background: #e0f0e7; color: #286444; }.stat-icon.peach { background: #f7e7d3; color: #9a5d22; }.stat-icon.lavender { background: #ebe5f5; color: #6d50a0; }.stat-icon.blue { background: #dfeef4; color: #316f87; }
[data-theme="dark"] .stat-icon { filter: brightness(.72) saturate(.8); }
.stat-card small { display: block; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .8px; }
.stat-card strong { display: block; margin-top: 3px; font-size: 25px; letter-spacing: -.8px; }
.stat-card p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; }
.panel { border-radius: var(--radius-lg); padding: 23px; }
.panel-head h3 { margin: 0; font-size: 18px; letter-spacing: -.4px; }
.grade-bars { display: grid; gap: 14px; margin-top: 22px; min-height: 185px; }
.grade-row { display: grid; grid-template-columns: 92px minmax(0,1fr) 56px; gap: 12px; align-items: center; }
.grade-row label { font-size: 11px; color: var(--muted); font-weight: 700; }
.grade-track { height: 11px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; }
.grade-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--primary-2),var(--accent-strong)); }
.grade-row strong { text-align: right; font-size: 11px; }
.empty-state { place-items: center; color: var(--muted); font-size: 12px; }
.plan-list { display: grid; gap: 15px; margin-top: 22px; }
.plan-row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.plan-row-top strong { font-size: 12px; }
.plan-row-top span { color: var(--muted); }
.progress { height: 8px; background: var(--surface-soft); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary-2); }
.recent-panel { margin-top: 18px; }
.head-actions { display: flex; gap: 8px; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .9px; white-space: nowrap; }
td { padding: 14px 10px; border-bottom: 1px solid color-mix(in srgb,var(--line) 70%,transparent); font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.course-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.course-code-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-soft); font-size: 9px; font-weight: 900; flex: none; }
.course-cell strong { display: block; font-size: 12px; }
.course-cell small { display: block; color: var(--muted); margin-top: 3px; font-size: 9px; }
.grade-badge, .status-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 850; font-size: 10px; white-space: nowrap; }
.grade-badge { min-width: 38px; padding: 6px 8px; background: var(--surface-soft); }
.status-badge { padding: 6px 8px; }
.status-counted { background: #e2f3e6; color: #34704b; }.status-repeat { background: #f7e5e6; color: #9b444b; }.status-planned { background: #e8e9f8; color: #585c9d; }.status-completion { background: #f4ebd9; color: #8b6528; }.status-excluded { background: var(--surface-soft); color: var(--muted); }
[data-theme="dark"] .status-badge, [data-theme="dark"] .grade-badge { filter: brightness(.72); }

.toolbar { padding: 14px; display: flex; gap: 10px; align-items: center; border-radius: 18px; margin-bottom: 18px; }
.search-field { min-width: 240px; flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface-solid); border-radius: 12px; padding: 0 13px; height: 42px; }
.search-field svg { width: 17px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
select, input, textarea { border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); border-radius: 11px; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary-2) 15%,transparent); }
.toolbar select { height: 42px; padding: 0 34px 0 12px; }
.course-table-panel { min-height: 440px; }
.table-wrap.large { max-height: calc(100vh - 260px); }
.row-actions { display: flex; gap: 3px; justify-content: flex-end; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: var(--muted); }
.icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.include-toggle { width: 17px; height: 17px; accent-color: var(--primary-2); }
.big-empty { min-height: 330px; display: none; place-items: center; text-align: center; align-content: center; }
.big-empty.show { display: grid; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-soft); font-size: 24px; }
.big-empty h3 { margin: 14px 0 4px; }.big-empty p { margin: 0 0 15px; color: var(--muted); font-size: 12px; }

.plan-hero { display: flex; justify-content: space-between; align-items: center; gap: 28px; background: linear-gradient(120deg,var(--surface),color-mix(in srgb,var(--accent) 22%,var(--surface))); }
.plan-hero h2 { margin: 0; font-size: 25px; letter-spacing: -.8px; }
.plan-total { min-width: 135px; text-align: center; padding: 18px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--line); }
.plan-total strong { font-size: 34px; display: block; letter-spacing: -1px; }
.plan-total span { color: var(--muted); font-size: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.plan-card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-card h3 { margin: 0; font-size: 16px; }
.plan-card .ratio { font-size: 11px; font-weight: 850; background: var(--surface-soft); padding: 6px 8px; border-radius: 8px; }
.plan-card-meta { display: flex; gap: 16px; margin: 15px 0; }
.plan-card-meta div { min-width: 80px; }
.plan-card-meta small { color: var(--muted); display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }
.plan-card-meta strong { font-size: 18px; display: block; margin-top: 3px; }
.plan-card details { margin-top: 15px; }
.plan-card summary { cursor: pointer; color: var(--primary-2); font-size: 11px; font-weight: 800; }
.plan-courses { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.plan-course-pill { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 8px; border-radius: 9px; background: var(--surface-soft); font-size: 9px; }
.plan-course-pill i { width: 6px; height: 6px; border-radius: 50%; background: #b4bdb8; flex: none; }
.plan-course-pill.complete i { background: #58ae73; }.plan-course-pill span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plan-notes { display: flex; gap: 14px; margin-top: 18px; }
.note-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #193425; font-weight: 900; }
.plan-notes h3 { margin: 0; font-size: 15px; }.plan-notes p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.import-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 18px; }
.upload-panel h2 { margin: 0; font-size: 25px; letter-spacing: -.8px; }
.drop-zone { margin-top: 24px; min-height: 285px; border: 1.5px dashed color-mix(in srgb,var(--primary-2) 50%,var(--line)); border-radius: 22px; display: grid; place-items: center; align-content: center; text-align: center; padding: 25px; cursor: pointer; background: linear-gradient(145deg,color-mix(in srgb,var(--accent) 9%,transparent),transparent); transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--primary-2); background: color-mix(in srgb,var(--accent) 13%,var(--surface)); transform: translateY(-2px); }
.upload-orbit { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 0 0 12px color-mix(in srgb,var(--primary) 8%,transparent); }
[data-theme="dark"] .upload-orbit { color: #102019; }
.upload-orbit svg { width: 30px; height: 30px; }
.drop-zone h3 { margin: 23px 0 3px; font-size: 18px; }.drop-zone p { margin: 0; color: var(--primary-2); font-size: 12px; font-weight: 750; }.drop-zone > span { margin-top: 12px; color: var(--muted); font-size: 9px; }
.import-guide ol { margin: 23px 0; padding: 0; list-style: none; display: grid; gap: 19px; }
.import-guide li { display: flex; gap: 12px; }
.import-guide li > span { width: 29px; height: 29px; border-radius: 9px; background: var(--surface-soft); display: grid; place-items: center; font-size: 10px; font-weight: 900; flex: none; }
.import-guide strong { font-size: 12px; }.import-guide p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.secure-banner { display: flex; gap: 11px; align-items: center; padding: 14px; border-radius: 14px; background: #e6f2e7; color: #315c3d; }
[data-theme="dark"] .secure-banner { background: #20352a; color: #9ed3aa; }
.secure-banner > span { font-size: 22px; }.secure-banner strong { display: block; }.secure-banner p { color: inherit; opacity: .8; }
.parse-status { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 14px; border-radius: 14px; background: var(--surface-soft); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--primary-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.parse-status strong { font-size: 12px; }.parse-status p { margin: 3px 0 0; font-size: 10px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; margin: 19px 0; }.divider::before,.divider::after { content:""; height: 1px; background: var(--line); flex:1; }
.paste-fallback summary { cursor: pointer; font-size: 11px; font-weight: 800; color: var(--primary-2); }
.paste-fallback textarea { width: 100%; margin: 12px 0; padding: 12px; resize: vertical; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(7,16,12,.56); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(590px,100%); max-height: 90vh; overflow-y: auto; border-radius: 25px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: 0 30px 100px rgba(0,0,0,.25); padding: 28px; position: relative; animation: modalIn .2s ease; }
.wide-modal { width: min(1040px,100%); }
@keyframes modalIn { from { opacity:0; transform:scale(.97) translateY(8px); } to { opacity:1; transform:none; } }
.modal-close { position: absolute; right: 18px; top: 15px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--surface-soft); cursor: pointer; font-size: 21px; }
.modal h2 { margin: 0; font-size: 24px; }.modal > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.form-grid label { display: grid; gap: 7px; }.form-grid label.wide { grid-column: 1/-1; }.form-grid label > span { font-size: 10px; font-weight: 800; color: var(--muted); }.form-grid input { height: 43px; padding: 0 12px; }
.check-row { margin-top: 17px; display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 13px; background: var(--surface-soft); cursor: pointer; }.check-row input { margin-top: 3px; accent-color: var(--primary-2); }.check-row strong { display: block; font-size: 11px; }.check-row small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.review-tools { display: flex; justify-content: space-between; gap: 15px; margin: 18px 0 0; padding: 10px 12px; background: var(--surface-soft); border-radius: 11px; font-size: 10px; }.review-tools input { accent-color: var(--primary-2); }.review-tools span { color: var(--muted); }
.import-table { max-height: 51vh; }.import-table input[type="text"],.import-table input[type="number"] { width: 100%; min-width: 75px; padding: 7px 8px; font-size: 10px; }.import-table .name-input { min-width: 210px !important; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 9px; }
.toast { min-width: 250px; max-width: 350px; padding: 13px 15px; border-radius: 13px; color: #fff; background: #193d31; box-shadow: 0 15px 40px rgba(0,0,0,.2); font-size: 11px; font-weight: 700; animation: toastIn .25s ease; }.toast.error { background: #8f333b; }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 86px minmax(0,1fr); }
  .sidebar { padding: 24px 14px; align-items: center; }
  .brand > span:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { justify-content:center; width:54px; height:48px; padding:0; }.nav-item svg { width:21px; height:21px; }.side-note { display:none; }.theme-toggle span {display:none;}.theme-toggle {width:48px;justify-content:center;}.stats-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 820px) {
  .app-shell { display:block; }.sidebar { position:fixed; left:12px; right:12px; bottom:10px; top:auto; width:auto; height:66px; border:1px solid var(--line); border-radius:20px; flex-direction:row; padding:8px 10px; z-index:30; box-shadow:var(--shadow); }.brand,.side-note,.theme-toggle {display:none;}.nav-list {width:100%;grid-template-columns:repeat(4,1fr);gap:4px;}.nav-item,.nav-item.active {width:100%;height:49px;}.main-content {padding:24px 18px 100px;}.hero-grid,.content-grid,.import-layout {grid-template-columns:1fr;}.topbar {align-items:flex-start;}.top-actions .ghost {display:none;}.plan-grid {grid-template-columns:1fr;}.plan-hero {align-items:flex-start;}.score-content {gap:20px;}.score-ring {width:145px;}.plan-total {min-width:115px;}.toolbar {flex-wrap:wrap;}.toolbar select {flex:1;}
}
@media (max-width: 560px) {
  .topbar {display:grid;grid-template-columns:1fr auto;}.topbar h1 {font-size:25px;}.top-actions .button {width:43px;padding:0;font-size:0;}.top-actions .button svg {margin:0;}.score-content {flex-direction:column;align-items:flex-start;}.score-ring {align-self:center;}.stats-grid {grid-template-columns:1fr;}.stat-card {padding:15px;}.panel,.score-card,.projection-card {padding:18px;border-radius:20px;}.plan-hero {display:block;}.plan-total {margin-top:18px;width:100%;}.form-grid {grid-template-columns:1fr;}.form-grid label.wide {grid-column:auto;}.modal {padding:22px 17px;}.plan-courses {grid-template-columns:1fr;}.toolbar .danger-text {width:100%;}.main-content {padding-left:12px;padding-right:12px;}
}

.grade-rule-note {
  margin: 2px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.grade-rule-note strong { color: var(--text); }
