/* ViewGrades — black + navy */

:root {
  --bg: #03050a;
  --bg-2: #050913;
  --surface: #0a1122;
  --surface-2: #0e172d;
  --surface-3: #15213d;
  --line: #16203a;
  --line-2: #22304f;

  --text: #e7ecf6;
  --text-2: #94a3bf;
  --text-3: #5d6a86;

  --accent: #4c7dff;
  --accent-2: #8aa8ff;
  --accent-3: #c3d2ff;
  --accent-wash: rgba(76, 125, 255, 0.12);
  --accent-line: rgba(76, 125, 255, 0.35);

  --t-a: #22c55e;
  --t-b: #eab308;
  --t-c: #f97316;
  --t-d: #ef4444;
  --t-f: #dc2626;
  --up: #22c55e;
  --down: #f87171;

  --r-lg: 16px;
  --r: 12px;
  --r-sm: 9px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sidebar-w: 248px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent-3); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
::selection { background: rgba(76, 125, 255, 0.4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ico { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.up { color: var(--up); font-weight: 600; font-variant-numeric: tabular-nums; }
.down { color: var(--down); font-weight: 600; font-variant-numeric: tabular-nums; }
.noscript { padding: 40px; text-align: center; color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }

.t-a { color: var(--t-a); } .t-b { color: var(--t-b); } .t-c { color: var(--t-c); }
.t-d { color: var(--t-d); } .t-f { color: var(--t-f); } .t-none { color: var(--text-3); }
.bg-a { background: var(--t-a); } .bg-b { background: var(--t-b); } .bg-c { background: var(--t-c); }
.bg-d { background: var(--t-d); } .bg-f { background: var(--t-f); } .bg-none { background: var(--text-3); }

#app { outline: none; }
.enter > * { animation: enter 0.4s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons, inputs, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: var(--r); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -12px rgba(76, 125, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover:not(:disabled) { background: #5d8aff; color: #fff; }
.btn-primary:disabled { opacity: 0.8; }
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: #2e3e63; color: var(--text); }
.btn-danger { color: #fca5a5; }
.text-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-2); font-size: 13px; font-weight: 500; }
.text-btn:hover { color: var(--accent-3); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); color: var(--text-2); transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; flex: none; }
.btn-label { display: inline-flex; align-items: center; gap: 10px; }

input, select, textarea {
  height: 40px; width: 100%; min-width: 0; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line-2); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; padding: 10px 12px; }
input::placeholder { color: var(--text-3); }
input:hover, select:hover { border-color: #2e3e63; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 125, 255, 0.2); }
input[type='number'] { -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3bf' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.field { margin-bottom: 16px; }
.field label, .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.input-icon { position: relative; }
.input-icon > .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon input { padding-left: 36px; font-family: var(--mono); font-size: 13px; }
.input-action { position: relative; }
.input-action input { padding-right: 44px; }
.input-action .icon-btn { position: absolute; right: 3px; top: 3px; }
.suffix { position: relative; display: block; }
.suffix input { padding-right: 28px; }
.suffix i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--text-3); font-size: 13px; pointer-events: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input { appearance: none; width: 16px; height: 16px; padding: 0; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check:hover { color: var(--text); }
.check.on { color: var(--text); }

.form-error { display: flex; gap: 8px; align-items: flex-start; color: #fecaca; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 14px; }
.form-error .ico { margin-top: 2px; color: var(--down); }
.notice { display: flex; gap: 8px; align-items: flex-start; color: var(--accent-3); background: var(--accent-wash); border: 1px solid var(--accent-line); padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; margin-top: 14px; }
.notice .ico { margin-top: 2px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.chip .ico { color: var(--text-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--accent-2); background: var(--accent-wash); border: 1px solid var(--accent-line); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.tag.cat { color: #fff; }
.tag-hypo { background: var(--accent-wash); color: var(--accent-2); }
.tag-edit { background: rgba(234, 179, 8, 0.12); color: var(--t-b); }
.tag-ng { background: var(--surface-3); color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.empty { color: var(--text-2); text-align: center; padding: 40px 16px; }
.empty .ico { margin: 0 auto 10px; color: var(--text-3); }

/* ---------- app shell (sidebar) ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px; background: var(--bg-2); border-right: 1px solid var(--line);
}
.sb-logo { padding: 4px 8px 16px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-link { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.sb-link:hover { background: var(--surface); color: var(--text); }
.sb-link.on { color: var(--text); background: var(--surface-2); }
.sb-link .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.sb-sub { display: flex; flex-direction: column; margin: 2px 0 6px 20px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.sb-sub a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.sb-sub a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-sub a:hover { color: var(--text); background: var(--surface); }
.sb-sub a.on { color: var(--text); background: var(--surface-2); }
.sb-sub .sb-grade { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-spacer { flex: 1; min-height: 12px; }
.sb-note { margin: 8px 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--text-2); line-height: 1.45; display: flex; gap: 8px; }
.sb-note .ico { color: var(--accent-2); margin-top: 2px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--accent-3); background: linear-gradient(135deg, #1b2c57, #0f1a36); border: 1px solid var(--line-2); flex: none; }
.sb-user-text { min-width: 0; flex: 1; line-height: 1.25; }
.sb-user-text b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user-text span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.sb-legal { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 10px 0; font-size: 11.5px; }
.sb-legal a { color: var(--text-3); }
.sb-legal a:hover { color: var(--text-2); }

.main { min-width: 0; }
.topbar { display: none; }
.content { max-width: 1120px; margin: 0 auto; padding: 18px 32px 80px; }
.updated { display: flex; justify-content: center; align-items: center; margin-bottom: 18px; }
.updated-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.updated-pill button { color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.updated-pill button:hover { color: var(--accent-3); }
.updated-pill.spinning .ico { animation: spin 0.8s linear infinite; }
.demo-pill { margin-left: 8px; }

/* mobile drawer */
.scrim { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(84vw, 300px); z-index: 40; transform: translateX(-100%); transition: transform 0.25s var(--ease); }
  .shell.drawer-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .shell.drawer-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 14px; background: rgba(3, 5, 10, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar .logo { margin-right: auto; }
  .content { padding: 16px 16px 64px; }
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo-word { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.logo-word b { font-weight: 800; color: var(--accent-2); }

/* ---------- page headings ---------- */
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.page-title p { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* ---------- dashboard ---------- */
.period-row { display: flex; justify-content: center; margin-bottom: 22px; }
.select-pill select { height: 42px; padding: 0 38px 0 16px; border-radius: 10px; font-weight: 600; background-color: var(--surface); }
.gpa-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.gpa { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gpa-label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.gpa-value { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.gpa-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpa.primary { background: linear-gradient(160deg, rgba(76, 125, 255, 0.16), rgba(76, 125, 255, 0.02) 65%), var(--surface); border-color: var(--accent-line); }
.gpa.primary .gpa-value { color: var(--accent-3); }
.info-tip { color: var(--text-3); cursor: help; }

.class-list { display: flex; flex-direction: column; gap: 14px; }
.class-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 40%); align-items: center; gap: 20px;
  width: 100%; text-align: left; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
  animation: enter 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.class-row:hover { border-color: var(--accent-line); background: #0b1328; transform: translateY(-1px); }
.cr-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cr-grade { display: flex; align-items: center; gap: 14px; }
.cr-score { font-size: 20px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 112px; text-align: right; }
.cr-score small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.meter { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; transition: width 0.5s var(--ease); }
.section-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 28px 0 10px; display: flex; align-items: center; justify-content: space-between; }

.recent { padding: 6px; }
.recent-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; width: 100%; text-align: left; }
.recent-item:hover { background: var(--surface-2); }
.recent-item b { font-weight: 500; font-size: 14px; display: block; }
.recent-item span { font-size: 12px; color: var(--text-3); }
.recent-score { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.recent-score small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.recent-grid { display: grid; grid-template-columns: 1fr 1fr; }

/* skeletons */
.sk { background: linear-gradient(90deg, #0c1427 25%, #13203d 50%, #0c1427 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-row { height: 96px; border-radius: var(--r-lg); }
.w-30 { width: 30%; } .w-40 { width: 40%; } .w-60 { width: 60%; }

/* ---------- class page ---------- */
.cls-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 6px; }
.cls-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.cls-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cls-grade { text-align: right; flex: none; }
.cls-grade .big { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cls-grade .sub { font-size: 13px; color: var(--text-2); margin-top: 2px; white-space: nowrap; }
.cls-grade .sub b { color: var(--text); font-variant-numeric: tabular-nums; }
.match { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.match.ok .ico { color: var(--t-a); }

.chart-wrap { position: relative; margin: 10px -6px 4px; min-height: 300px; width: calc(100% + 12px); overflow: hidden; }
.trend { display: block; overflow: visible; touch-action: pan-y; }
.trend .axis { fill: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.grid-line { stroke: var(--line); }
.guide-line { stroke: var(--line-2); stroke-dasharray: 3 5; }
.guide-label { fill: var(--text-3); font-size: 11px; font-weight: 600; }
.trend-line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.trend-whatif { fill: none; stroke: var(--accent-3); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.trend-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.hover-line { stroke: var(--line-2); visibility: hidden; }
.hover-dot { fill: #fff; stroke: var(--accent); stroke-width: 3; visibility: hidden; }
.trend.hovering .hover-line, .trend.hovering .hover-dot { visibility: visible; }
.chart-tip { position: absolute; left: 0; top: 0; pointer-events: none; padding: 8px 11px; border-radius: 9px; background: rgba(10, 17, 34, 0.96); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); line-height: 1.45; }
.chart-tip .tt-date { color: var(--text-2); }
.chart-tip b { font-size: 13.5px; font-variant-numeric: tabular-nums; display: block; }
.chart-tip .tt-name { color: var(--text-3); max-width: 220px; overflow: hidden; text-overflow: ellipsis; display: block; }
.chart-empty { display: grid; place-items: center; min-height: 240px; color: var(--text-3); font-size: 14px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); }

.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px 0; margin-bottom: 4px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.toolbar-right { gap: 8px; }
.whatif-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--r); background: var(--accent-wash); border: 1px solid var(--accent-line); font-size: 13.5px; animation: enter 0.25s var(--ease); }
.whatif-banner .wb-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; }
.whatif-banner .wb-compare { color: var(--text-2); display: inline-flex; gap: 7px; align-items: center; font-variant-numeric: tabular-nums; }
.whatif-banner b { color: var(--text); }
.whatif-banner .hint { margin-left: auto; color: var(--text-3); font-size: 12.5px; }

.legend { display: flex; justify-content: center; margin: 6px 0 16px; }
.legend-inner { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; }
.legend button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.legend button:hover { color: var(--text); }
.legend button.on { background: var(--surface-3); color: var(--text); }
.legend button .n { color: var(--text-3); font-size: 12px; }

.breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 16px; animation: enter 0.25s var(--ease); }
.bd { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.bd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bd-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.bd-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-w { font-size: 11.5px; color: var(--text-3); font-weight: 600; background: var(--surface-3); border-radius: 5px; padding: 1px 6px; }
.bd-pct { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 8px; }
.bd .meter { margin: 8px 0 6px; height: 6px; }
.bd-foot { font-size: 11.5px; color: var(--text-3); }

.assignments { display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; }
.asg {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center;
  padding: 16px 18px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.15s;
}
.asg:hover { border-color: var(--line-2); }
.asg.hypo { border-color: var(--accent-line); background: linear-gradient(90deg, rgba(76, 125, 255, 0.08), transparent 60%), var(--surface); }
.asg.excluded .asg-name, .asg.excluded .asg-right { opacity: 0.45; }
.asg.excluded .asg-name b { text-decoration: line-through; }
.asg-name b { font-size: 16px; font-weight: 500; display: block; }
.asg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.asg-right { display: flex; align-items: center; gap: 12px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.asg-impact { font-size: 14px; font-weight: 600; min-width: 54px; text-align: right; }
.asg-score { font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.asg-score .of { color: var(--text-2); font-weight: 500; }
.asg-pct { font-size: 15.5px; font-weight: 600; min-width: 62px; text-align: right; }
.asg-inputs { display: none; align-items: center; gap: 6px; }
.asg-inputs input { width: 70px; height: 36px; padding: 0 8px; text-align: right; font-weight: 600; background: var(--surface-2); border-color: var(--line-2); }
.asg-inputs .slash { color: var(--text-3); }
.hypo-on .asg-inputs { display: flex; }
.hypo-on .asg-score { display: none; }
.asg-actions { display: none; gap: 2px; }
.hypo-on .asg-actions { display: flex; }
.asg-actions .revert { visibility: hidden; }
.asg.modified .asg-actions .revert { visibility: visible; }
.asg .tag-edit { display: none; }
.asg.modified .tag-edit { display: inline-flex; }
.asg .meter { grid-column: 1 / -1; height: 6px; }
.asg-note { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.note-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--text-2); }
.note-btn:hover { color: var(--text); }
.asg.ungraded .asg-score { color: var(--text-3); font-weight: 500; }

.add-card { max-width: 900px; margin: 0 auto 12px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: var(--surface); animation: enter 0.25s var(--ease); }
.add-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) 84px 84px auto; gap: 10px; align-items: end; }
.add-grid .lbl { font-size: 12px; }

/* ---------- planner (modal) ---------- */
.planner-intro { color: var(--text-2); font-size: 14px; margin: -4px 0 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; gap: 3px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 16px; }
.seg button { height: 34px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); }
.sentence { font-size: 15.5px; line-height: 2.5; color: var(--text-2); padding: 12px 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.sentence select, .sentence input { display: inline-block; width: auto; height: 34px; vertical-align: middle; font-weight: 600; color: var(--text); margin: 0 3px; }
.sentence input { width: 82px; text-align: center; }
.sentence .suffix input { width: 104px; padding-right: 26px; }
.sentence select { max-width: 220px; }
.sentence .suffix { display: inline-block; }
.now-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); margin: 14px 0 10px; }
.now-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.goals { display: grid; gap: 8px; }
.goal { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.goal.current { border-color: var(--accent-line); }
.goal-letter { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; font-weight: 800; background: var(--bg); border: 1px solid var(--line-2); }
.goal-text { min-width: 0; }
.goal-text b { display: block; font-size: 14.5px; font-weight: 600; }
.goal-text span { font-size: 12.5px; color: var(--text-2); }
.goal .meter { margin-top: 8px; height: 6px; position: relative; overflow: visible; }
.goal .meter .mark { position: absolute; top: -3px; width: 2px; height: 12px; border-radius: 2px; background: #fff; }
.goal-need { text-align: right; font-variant-numeric: tabular-nums; }
.goal-need b { display: block; font-size: 18px; font-weight: 700; }
.goal-need span { font-size: 12px; color: var(--text-3); }
.goal.safe .goal-need b { color: var(--t-a); font-size: 15px; }
.goal.out { opacity: 0.6; }
.goal.out .goal-need b { color: var(--text-3); font-size: 15px; }
.goal .try { margin-top: 6px; }
.slider-box { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.slider-box .lbl b { color: var(--accent-2); }
.slider-result { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }
.slider-result b { font-variant-numeric: tabular-nums; }
input[type='range'] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; margin-top: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--surface-3) var(--fill, 50%)); }
input[type='range']:focus { box-shadow: none; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: grab; }
input[type='range']::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: grab; }
.how { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.how summary { cursor: pointer; color: var(--accent-2); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.how summary::-webkit-details-marker { display: none; }
.how p { margin-top: 8px; line-height: 1.6; }

/* ---------- attendance / documents / mail ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; }
button.list-item:hover { border-color: var(--line-2); }
.li-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-2); }
.li-main b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-main span { font-size: 13px; color: var(--text-2); }
.li-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.li-right { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.kind-tardy { color: var(--t-b); background: rgba(234, 179, 8, 0.12); }
.kind-excused { color: #93c5fd; background: rgba(59, 130, 246, 0.14); }
.kind-unexcused, .kind-absent { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }
.kind-activity { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.kind-other { color: var(--text-2); }
.mail-item.unread .li-main b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.mail-body { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; }
.tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.tabs button.on { background: var(--surface-3); color: var(--text); }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: 13.5px; margin-bottom: 16px; }
.callout .ico { color: var(--accent-2); margin-top: 2px; }

/* ---------- modal & toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(1, 3, 8, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.2s; }
.modal-backdrop.in { opacity: 1; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); transform: translateY(10px) scale(0.98); transition: transform 0.25s var(--ease); }
.modal-wide { max-width: 620px; }
.modal-backdrop.in .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.modal-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.modal-head h2 .ico { color: var(--accent-2); }
.settings fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.settings legend { font-size: 13px; font-weight: 650; margin-bottom: 6px; padding: 0; }
.settings .hint { color: var(--text-3); font-size: 12.5px; margin-bottom: 10px; }
.cutoffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cutoffs label { display: flex; flex-direction: column; gap: 6px; }
.cut-letter { font-size: 18px; font-weight: 750; text-align: center; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; font-size: 14px; }
.switch-row b { font-weight: 550; }
.switch-row small { color: var(--text-3); font-size: 12.5px; }
.switch { -webkit-appearance: none; appearance: none; flex: none; width: 42px; height: 24px; padding: 0; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform 0.2s var(--ease), background 0.2s; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: #fff; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.modal-actions .spacer { flex: 1; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; background: #0f1830; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.25s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast-success .ico { color: var(--t-a); }
.toast-error .ico { color: var(--down); }
.toast-info .ico { color: var(--accent-2); }

/* ---------- landing ---------- */
.landing { position: relative; overflow: hidden; }
.landing-glow { position: absolute; inset: -10% -10% auto; height: 900px; pointer-events: none; background: radial-gradient(700px 420px at 70% 30%, rgba(76, 125, 255, 0.16), transparent 70%), radial-gradient(500px 360px at 15% 45%, rgba(37, 66, 140, 0.25), transparent 70%); }
.landing-nav { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; }
.landing-nav nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.landing-nav nav a { color: var(--text-2); }
.landing-nav nav a:hover { color: var(--text); }
.hero { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 48px 28px 40px; display: grid; grid-template-columns: 440px 1fr; gap: 40px; align-items: center; min-height: 620px; }
.hero-card { padding: 40px 36px; border-radius: 22px; background: rgba(10, 17, 34, 0.85); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); text-align: left; }
.hero-brand { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 26px; }
.hero-brand .logo-word { font-size: 36px; letter-spacing: -0.035em; }
.hero-card h1 { font-size: 23px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 10px; }
.hero-card p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin-bottom: 26px; }
.hero-card .btn + .btn { margin-top: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 22px; font-size: 12.5px; color: var(--text-3); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ico { color: var(--accent-2); }

.preview-stage { perspective: 1800px; min-width: 0; padding: 10px 0; }
.preview {
  width: 100%; max-width: 760px; margin-left: auto; aspect-ratio: 16 / 10.5;
  transform: rotateY(-9deg) rotateX(4deg); transform-origin: center;
  border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg); overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 80px -20px rgba(76, 125, 255, 0.25);
  display: grid; grid-template-columns: 150px minmax(0, 1fr); pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(#000 82%, transparent 100%);
  mask-image: linear-gradient(#000 82%, transparent 100%);
}
.pv-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 14px 10px; font-size: 11.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.pv-side .pv-logo { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); font-size: 12.5px; margin-bottom: 8px; }
.pv-side .pv-link { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 6px; }
.pv-side .pv-sub { padding-left: 22px; display: flex; flex-direction: column; gap: 5px; }
.pv-main { padding: 14px 20px; }
.pv-top { display: flex; justify-content: center; margin-bottom: 8px; }
.pv-top span { font-size: 10.5px; color: var(--text-2); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); }
.pv-title { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.pv-title b { font-size: 17px; font-weight: 600; }
.pv-title span { font-size: 19px; font-weight: 600; }
.pv-chart { margin: 8px 0; }
.pv-tools { display: flex; gap: 10px; font-size: 10.5px; color: var(--text-2); align-items: center; margin: 4px 0 10px; }
.pv-tools .pv-btn { border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 6px; }
.pv-tools .pv-btn.blue { border-color: var(--accent-line); color: var(--accent-2); }
.pv-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; font-size: 11.5px; }
.pv-row b { font-weight: 500; font-size: 12px; display: block; }
.pv-row .tag { height: 17px; font-size: 9.5px; padding: 0 6px; margin-top: 4px; }
.pv-row .pv-score { display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.pv-row .pv-box { border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 8px; background: var(--surface-2); }

.features { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 40px 28px 20px; }
.features-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.features-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.features-head p { color: var(--text-2); font-size: 16px; margin-top: 12px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy .eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-2); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.feature-copy h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.feature-copy p { color: var(--text-2); font-size: 15.5px; line-height: 1.65; margin-top: 12px; }
.feature-copy ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text-2); font-size: 14.5px; }
.feature-copy li { display: flex; gap: 9px; align-items: flex-start; }
.feature-copy li .ico { color: var(--accent-2); margin-top: 3px; }
.feature-visual { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); pointer-events: none; user-select: none; }
.faq { max-width: 760px; margin: 0 auto; padding: 40px 28px 20px; }
.faq h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; text-align: center; margin-bottom: 22px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--text-3); transition: transform 0.2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { color: var(--text-2); margin-top: 10px; line-height: 1.65; font-size: 14.5px; }
.cta { text-align: center; padding: 50px 28px 70px; }
.cta h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 18px; }
.cta .btns { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 28px 40px; }
.site-footer .inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--text-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* ---------- login page ---------- */
.auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.auth-main { position: relative; z-index: 1; flex: 1; display: grid; place-items: start center; padding: 10px 20px 40px; }
.auth-card { width: 100%; max-width: 460px; padding: 30px; border-radius: 20px; background: rgba(10, 17, 34, 0.9); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); }
.auth-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.auth-card > .muted { font-size: 14px; margin-top: 4px; }
.auth-card form { margin-top: 22px; }
.host-preview { font-size: 12.5px; display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--text-3); }
.host-preview:empty { display: none; }
.host-preview.ok { color: var(--t-a); }
.host-preview.ok b { color: var(--text); font-family: var(--mono); font-weight: 500; font-size: 12px; }
.host-preview.ok em { color: var(--text-3); font-style: normal; }
.host-preview.bad { color: #fca5a5; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.agree { font-size: 12.5px; color: var(--text-3); margin-top: 16px; line-height: 1.5; text-align: center; }
.agree a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* district guide */
.guide-wrap { margin: -4px 0 18px; }
.guide { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.guide-stage { position: relative; height: 178px; overflow: hidden; background: radial-gradient(260px 140px at 50% 0%, rgba(76, 125, 255, 0.14), transparent 70%), #050913; border-bottom: 1px solid var(--line); }
.g-browser, .g-app { position: absolute; left: 18px; right: 18px; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.g-browser { top: 16px; bottom: -8px; border-radius: 10px 10px 0 0; background: #0c1427; border: 1px solid #1f2c4a; }
.g-chrome { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-bottom: 1px solid #1a2541; }
.g-dots { display: flex; gap: 5px; }
.g-dots i { width: 8px; height: 8px; border-radius: 50%; background: #26324f; }
.g-address { position: relative; flex: 1; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; background: #060b17; color: var(--text-3); font: 11px/1 var(--mono); white-space: nowrap; overflow: hidden; }
.g-url { color: var(--text-2); }
.g-host, .g-path { transition: background 0.3s, color 0.3s; }
.guide.selected .g-host, .guide.selected .g-path { background: rgba(76, 125, 255, 0.5); color: #fff; }
.g-caret { display: none; width: 1px; height: 12px; background: var(--accent-2); vertical-align: middle; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.guide.typing[data-step='0'] .g-address .g-caret { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }
.g-page { padding: 16px 22% 0; display: grid; gap: 8px; }
.g-page-title { height: 9px; width: 48%; margin: 2px auto 6px; border-radius: 4px; background: #24314f; }
.g-field { height: 16px; border-radius: 4px; background: #121c33; border: 1px solid #1f2c4a; }
.g-btn { height: 16px; width: 40%; border-radius: 4px; background: #2a3a60; }
.g-copied { position: absolute; top: 40px; left: 50%; transform: translate(-50%, -4px) scale(0.95); opacity: 0; display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; transition: opacity 0.25s, transform 0.25s var(--ease); }
.guide.copied .g-copied { opacity: 1; transform: translate(-50%, 0) scale(1); }
.g-keys { position: absolute; right: 14px; bottom: 22px; display: flex; gap: 4px; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.g-keys kbd { min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 6px; border-radius: 6px; background: #16213d; border: 1px solid #2c3b62; border-bottom-width: 3px; font: 600 12px var(--font); color: var(--text); }
.guide.selected[data-step='1'] .g-keys { opacity: 1; transform: none; }
.g-app { top: 34px; padding: 16px; border-radius: 12px; background: #0b1328; border: 1px solid #1f2c4a; opacity: 0; transform: translateX(28px); }
.g-app-label { font-size: 11.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.g-app-input { height: 34px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--accent); box-shadow: 0 0 0 3px rgba(76, 125, 255, 0.18); font: 11.5px/1 var(--mono); white-space: nowrap; overflow: hidden; }
.g-paste-path { transition: opacity 0.4s, color 0.4s; }
.guide.trimmed .g-paste-path { opacity: 0.35; text-decoration: line-through; color: var(--text-3); }
.guide[data-step='2'] .g-app-input .g-caret { display: inline-block; }
.g-app-ok { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--t-a); opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.g-app-ok b { font-family: var(--mono); font-weight: 500; color: var(--text); font-size: 11px; }
.guide.trimmed .g-app-ok { opacity: 1; transform: none; }
.guide[data-step='2'] .g-browser { opacity: 0; transform: translateX(-28px) scale(0.97); }
.guide[data-step='2'] .g-app { opacity: 1; transform: none; }
.g-cursor { position: absolute; left: 62%; top: 72%; transition: left 0.7s var(--ease), top 0.7s var(--ease); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.guide[data-step='1'] .g-cursor { left: 46%; top: 30%; }
.guide[data-step='2'] .g-cursor { left: 70%; top: 52%; }
.guide-steps { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.guide-step { position: relative; width: 100%; display: flex; gap: 11px; align-items: flex-start; text-align: left; padding: 9px 10px 11px; border-radius: 9px; }
.guide-step:hover { background: var(--surface); }
.gs-num { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--text-3); border: 1px solid var(--line-2); transition: all 0.25s; }
.guide-step.active .gs-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.guide-step.done .gs-num { color: var(--accent-2); border-color: var(--accent-line); }
.gs-text b { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.gs-text span { display: none; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.guide-step.active .gs-text b { color: var(--text); }
.guide-step.active .gs-text span { display: block; }
.gs-bar { position: absolute; left: 43px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; overflow: hidden; }
.guide-step.active .gs-bar { background: var(--line); }
.gs-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.guide.run .guide-step.active .gs-bar span { animation: fillbar var(--step-ms, 3400ms) linear forwards; }
.guide.paused .guide-step.active .gs-bar span { animation-play-state: paused; }
@keyframes fillbar { to { width: 100%; } }
.guide-tip { display: flex; gap: 7px; align-items: flex-start; padding: 0 14px 13px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.guide-tip .ico { margin-top: 2px; }
.guide-tip b { color: var(--text-2); font-weight: 600; }
.guide-tip code { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); }

/* ---------- legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 20px 24px 80px; }
.legal h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.legal .updated-on { color: var(--text-3); font-size: 13.5px; margin: 8px 0 26px; }
.legal h2 { font-size: 19px; font-weight: 650; margin: 30px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .summary { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 10px; }
.legal .summary p { color: var(--text); }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 400px 1fr; gap: 32px; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; min-height: 0; }
  .hero-card { max-width: 460px; margin: 0 auto; width: 100%; }
  .preview { max-width: 640px; margin: 0 auto; transform: rotateX(6deg); }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .gpa-row, .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .landing-nav nav a:not(.btn) { display: none; }
  .landing-nav { padding: 16px 18px; }
  .hero { padding: 8px 18px 24px; gap: 26px; }
  .preview { grid-template-columns: minmax(0, 1fr); aspect-ratio: 4 / 4.2; }
  .pv-side { display: none; }
  .pv-main { padding: 12px 14px; }
  .pv-tools span:nth-child(2), .pv-tools .pv-btn:not(.blue) { display: none; }
  .features, .faq { padding-left: 18px; padding-right: 18px; }
  .feature { padding: 28px 0; }
  .feature-copy h3 { font-size: 22px; }
  .feature-visual { padding: 14px; }
  .cta h2 { font-size: 24px; }
  .site-footer .inner { flex-direction: column; align-items: flex-start; }
  .hero-card { padding: 30px 22px; }
  .hero-brand .logo-word { font-size: 30px; }
  .features-head h2 { font-size: 27px; }
  .class-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .cr-title { font-size: 18px; }
  .cr-score { min-width: 0; text-align: left; font-size: 18px; }
  .cls-head { flex-direction: column; }
  .cls-grade { text-align: left; }
  .cls-head h1, .cls-grade .big { font-size: 25px; }
  .chart-wrap { min-height: 220px; }
  .asg { grid-template-columns: 1fr; }
  .asg-right { justify-content: flex-start; flex-wrap: wrap; }
  .add-grid { grid-template-columns: 1fr 1fr; }
  .add-grid > :nth-child(1), .add-grid > :nth-child(2), .add-grid > :last-child { grid-column: 1 / -1; }
  .toolbar-right .btn span.hide-sm { display: none; }
  .recent-grid { grid-template-columns: 1fr; }
  .goal { grid-template-columns: 36px 1fr; }
  .goal-need { grid-column: 2; text-align: left; }
  .list-item { grid-template-columns: auto minmax(0, 1fr); }
  .li-right { grid-column: 2; }
  .auth-card { padding: 22px; }
}

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

/* links that are really cards/rows */
a.class-row, a.recent-item, a.list-item { color: var(--text); }
a.chip { color: var(--text-2); }
a.chip:hover { color: var(--text); border-color: var(--line-2); }
.goal-text .meter { display: block; max-width: 260px; }

/* grade text: white like StudentVUE, color lives in the bar */
.cr-score { color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.cr-grade .meter { height: 9px; }
.scale-note { align-items: center; }
.scale-note span { flex: 1; }
.scale-note .btn { flex: none; }
.hero-brand .mark, .auth .mark { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28)); }
.mark { flex: none; display: block; }

/* feedback form */
.fb-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.fb-topic input { position: absolute; opacity: 0; pointer-events: none; }
.fb-topic span { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg); color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.fb-topic span:hover { color: var(--text); border-color: #2e3e63; }
.fb-topic input:checked + span { border-color: var(--accent); background: var(--accent-wash); color: var(--text); }
.fb-topic input:checked + span .ico { color: var(--accent-2); }
.fb-topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.fb-tech { margin: 2px 0 12px; font-size: 13px; }
.fb-note { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 12.5px; margin-bottom: 14px; }
@media (max-width: 680px) {
  .fb-topics, .fb-row { grid-template-columns: 1fr; }
  .fb-topic span { height: 42px; }
}
.pv-tools { white-space: nowrap; overflow: hidden; }
.pv-tools .pv-btn { flex: none; }
.show-sm { display: none; }
@media (max-width: 680px) {
  .show-sm { display: inline; }
  .toolbar-right { width: 100%; }
  .toolbar-right .btn { flex: 1; }
}
@media (max-width: 680px) {
  .asg { padding: 14px 14px 12px; gap: 10px; }
  .asg-name b { font-size: 15px; }
  .asg-right { justify-content: flex-start; gap: 10px; }
  .asg-impact, .asg-pct { min-width: 0; text-align: left; }
  .hypo-on .asg-inputs { order: -1; width: 100%; }
  .hypo-on .asg-inputs input { flex: 1; width: auto; height: 42px; font-size: 16px; }
  .asg-actions { margin-left: auto; }
  .asg-actions .revert { display: none; }
  .asg.modified .asg-actions .revert { display: inline-grid; }
  .legend-inner { width: 100%; }
}
@media (max-width: 680px) {
  .asg { grid-template-columns: minmax(0, 1fr); }
  .asg-right { min-width: 0; flex-wrap: wrap; }
  .hypo-on .asg-inputs { min-width: 0; }
  .hypo-on .asg-inputs input { flex: 1 1 0; min-width: 0; }
  /* iOS zooms into inputs smaller than 16px */
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 680px) {
  .goal { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; }
  .goal-letter { width: 34px; height: 34px; font-size: 17px; }
  .goal-need { grid-column: auto; text-align: right; }
  .goal-need b { font-size: 16px; }
  .modal { padding: 18px; border-radius: 16px; }
  .modal-backdrop { padding: 10px; }
  .sentence { font-size: 14.5px; padding: 10px 12px; }
}

/* ---------- progress: you vs. past you ---------- */
.pg-hero { padding: 22px 24px; margin-bottom: 14px; background: radial-gradient(420px 200px at 90% 0%, rgba(76,125,255,.14), transparent 70%), var(--surface); border-color: var(--accent-line); }
.pg-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-since { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13px; }
.pg-counts { display: flex; gap: 6px; }
.pg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 12px; }
.pg-metric { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.pg-label { font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.pg-label .ico { color: var(--accent-2); }
.pg-values { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.pg-values .ico { color: var(--text-3); }
.pg-then { font-size: 20px; color: var(--text-3); font-weight: 600; }
.pg-now { font-size: 32px; font-weight: 750; letter-spacing: -0.03em; }
.pg-metric .up, .pg-metric .down, .pg-metric .muted { font-size: 14px; }
.pg-msg { color: var(--text); font-size: 15px; }
.pg-bests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 6px; }
.pg-best-card { padding: 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pg-best-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pg-best-sub { font-size: 12px; color: var(--text-3); }
.pg-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.pg-row .li-main b { white-space: normal; }
.pg-best { height: 22px; font-size: 11.5px; margin-left: 6px; vertical-align: 2px; color: #fcd34d; background: rgba(234,179,8,.12); border-color: rgba(234,179,8,.3); }
.pg-delta { min-width: 84px; text-align: right; font-size: 14.5px; }
.pg-spark-empty { color: var(--text-3); }
.pg-note { display: flex; gap: 7px; align-items: flex-start; color: var(--text-3); font-size: 12.5px; margin-top: 16px; }
.pg-note .ico { margin-top: 2px; }
.pg-teaser { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; color: var(--text); border-color: var(--accent-line); transition: background .15s; }
.pg-teaser:hover { background: #0b1328; color: var(--text); }
.pg-teaser-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-2); flex: none; }
.pg-teaser-text { flex: 1; display: flex; flex-direction: column; }
.pg-teaser-text b { font-weight: 600; }
.pg-teaser-text > span { font-size: 13.5px; color: var(--text-2); }
.pg-teaser > .ico { color: var(--text-3); }
@media (max-width: 980px) { .pg-bests { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .pg-compare { grid-template-columns: 1fr; }
  .pg-now { font-size: 28px; }
  .pg-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pg-row .pg-spark { display: none; }
  .pg-delta { min-width: 0; }
  .pg-hero { padding: 18px; }
}
.tabs { max-width: 100%; overflow-x: auto; } .tabs button { white-space: nowrap; flex: none; }
