@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jbmono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0f1929; --soft: #687486; --line: #e1e5ed; --brand: #3472f0;
  --good: #00875a; --warn: #d08d1d; --bad: #e7000b; --surface: #ffffff;
  --haze: #e5eaf3; --muted: #f1f5f9;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--haze); color: var(--ink);
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); }
.mono {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft);
}
.mono.c { text-align: center; } .mono.r, .r { text-align: right; }
.right { text-align: right; margin-top: 10px; }
.blob { position: fixed; border-radius: 50%; filter: blur(64px); pointer-events: none; z-index: 0; }
.blob.a { width: 420px; height: 420px; left: -96px; top: -160px; background: rgba(52,114,240,0.2); }
.blob.b { width: 360px; height: 360px; right: 25%; bottom: 0; background: rgba(0,135,90,0.1); }

.panel {
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-radius: 18px; box-shadow: 0 0 0 1px rgba(15,25,41,0.06);
}
.rise { animation: rise 0.5s cubic-bezier(0.32,0.72,0,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(15,25,41,0.06);
}
.top-inner { max-width: 1360px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.brand-name { font-size: 15px; font-weight: 700; line-height: 1.1; }
.brand .mono { font-size: 9.5px; margin-top: 3px; }
.brand.big { margin-bottom: 28px; }
.brand.big .brand-mark { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
.brand.big .brand-name { font-size: 18px; }
nav { display: flex; gap: 4px; }
.nav-btn {
  appearance: none; border: none; background: transparent; color: var(--soft);
  font: 600 14px "Inter", sans-serif; padding: 9px 16px; border-radius: 10px; cursor: pointer;
}
.nav-btn.active { background: rgba(15,25,41,0.07); color: var(--ink); }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; text-align: right; }
.who .time { font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 600; }
.who .nm { font-size: 13px; font-weight: 700; line-height: 1.1; }
.who .mono { font-size: 9.5px; margin-top: 3px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--muted); border: none; cursor: pointer;
  box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center;
  font: 700 12px "Inter", sans-serif; color: var(--ink);
}
.menu { position: absolute; right: 24px; top: 58px; width: 250px; padding: 6px; background: rgba(255,255,255,0.96); z-index: 30; box-shadow: 0 8px 30px rgba(15,25,41,0.15), 0 0 0 1px rgba(15,25,41,0.06); }
.menu-item { display: block; width: 100%; text-align: left; appearance: none; border: none; background: transparent; color: var(--ink); font: 500 14px "Inter", sans-serif; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.menu-item:hover, .menu-item:active { background: var(--muted); }
.menu-item.danger { color: var(--bad); }

.demo-banner { position: relative; z-index: 1; text-align: center; font-size: 13px; padding: 8px 16px; background: rgba(52,114,240,0.12); color: var(--ink); }

main { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 24px 24px 32px; min-height: 70vh; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 6px; }
.stat-box { padding: 12px 18px; text-align: right; }
.stat-box .big { font-family: "JetBrains Mono", monospace; font-size: 26px; font-weight: 700; margin-top: 4px; }

.grade-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.grade { padding: 14px 16px 16px; min-width: 0; }
.g-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { flex: none; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pill.good { background: rgba(0,135,90,0.12); color: var(--good); }
.pill.warn { background: rgba(208,141,29,0.14); color: #a86f0f; }
.pill.bad { background: rgba(231,0,11,0.10); color: var(--bad); }
.pill.brand { background: rgba(52,114,240,0.12); color: var(--brand); }
.pill.muted { background: var(--muted); color: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.g-mid { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.g-letter { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.g-pct { letter-spacing: 0; text-transform: none; font-size: 12px; margin-left: auto; }
.g-tag { margin-top: 10px; }
.bar { height: 6px; border-radius: 999px; background: rgba(15,25,41,0.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }

.cols { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr) minmax(0,0.9fr); gap: 14px; margin-bottom: 18px; align-items: start; }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.card-head.center { align-items: center; }
.baseline { display: flex; align-items: baseline; gap: 12px; }
.card-title { font-size: 15px; font-weight: 700; }
.card-head .mono { font-size: 10px; }
.link-btn { appearance: none; border: none; background: none; color: var(--brand); font: 600 11px "Inter", sans-serif; padding: 0; cursor: pointer; }
.empty { color: var(--soft); font-size: 13px; padding: 8px 2px; }

.calc-table { border-radius: 12px; background: rgba(255,255,255,0.6); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.calc-head, .calc-row { display: grid; grid-template-columns: minmax(0,1fr) 58px 44px 62px 34px 16px; gap: 6px; align-items: center; padding: 8px 10px; }
.calc-head { background: var(--muted); }
.calc-head .mono { font-size: 9.5px; }
.calc-row { border-top: 1px solid var(--line); font-size: 13px; }
.c-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.c-pct { font-family: "JetBrains Mono", monospace; font-size: 12px; background: var(--muted); border-radius: 8px; padding: 4px 6px; text-align: center; }
.calc-row input, .calc-row select {
  font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink); background: var(--muted);
  border: none; border-radius: 8px; padding: 5px 4px; width: 100%; text-align: center; -webkit-appearance: none; appearance: none;
}
.calc-row input.name-in { font-family: "Inter", sans-serif; font-size: 13px; text-align: left; padding: 5px 8px; }
.c-pts { font-family: "JetBrains Mono", monospace; font-size: 12px; text-align: right; color: var(--soft); }
.c-x { appearance: none; border: none; background: none; color: var(--soft); font-size: 16px; padding: 0; cursor: pointer; }
.add-course { width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px; border: 1px dashed #c4ccd9; background: transparent; color: var(--soft); font: 400 11px "JetBrains Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.live-gpa { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: flex-end; }
.live-gpa .mono { color: rgba(255,255,255,0.6); font-size: 10px; }
.live-gpa .num { font-family: "JetBrains Mono", monospace; font-size: 30px; font-weight: 700; margin-top: 4px; }
.live-gpa .r { text-align: right; }
.live-gpa .cr { font-family: "JetBrains Mono", monospace; font-size: 18px; font-weight: 600; margin-top: 4px; }

.sched-item { display: flex; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(15,25,41,0.035); margin-bottom: 8px; }
.sched-item.now { background: rgba(52,114,240,0.12); box-shadow: 0 0 0 1px rgba(52,114,240,0.2); }
.sched-times { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--soft); width: 62px; flex: none; line-height: 1.45; }
.sched-item.now .sched-times { color: var(--brand); }
.sched-bar { width: 2px; border-radius: 2px; background: rgba(15,25,41,0.18); flex: none; }
.sched-item.now .sched-bar { background: var(--brand); }
.sched-body { flex: 1; min-width: 0; }
.sched-row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sched-name { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.sched-sub { font-size: 12px; color: var(--soft); margin-top: 3px; }

.svc { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.7); box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; }
.svc.soon { opacity: 0.6; }
.svc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.svc-name { font-size: 14px; font-weight: 700; }
.svc-state { font: 400 10px "JetBrains Mono", monospace; color: var(--soft); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #b6bfcc; display: inline-block; }
.dot.on { background: var(--good); }
.svc-detail { font: 400 10px "JetBrains Mono", monospace; color: var(--soft); margin-top: 6px; line-height: 1.5; overflow-wrap: anywhere; }

.seg { display: inline-flex; background: rgba(15,25,41,0.06); border-radius: 10px; padding: 3px; }
.seg button { appearance: none; border: none; background: transparent; color: var(--soft); font: 400 11px "JetBrains Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 13px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.a-head, .a-row { display: grid; grid-template-columns: 34px minmax(0,1.7fr) minmax(0,1.2fr) 100px 128px; gap: 12px; align-items: center; padding: 12px 14px; }
.a-head { background: var(--muted); border-radius: 10px; }
.a-head .mono { font-size: 10px; }
.a-row { border-top: 1px solid var(--line); font-size: 14px; }
.a-row.is-done .a-title { text-decoration: line-through; color: var(--soft); }
.a-title { font-weight: 600; overflow-wrap: anywhere; }
.a-title a { color: inherit; text-decoration: none; }
.a-title a:hover { text-decoration: underline; }
.a-course { color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.a-when { font-size: 13px; }
.a-status { text-align: right; }
.chk { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #b6bfcc; background: #fff; appearance: none; -webkit-appearance: none; padding: 0; position: relative; display: block; cursor: pointer; }
.chk.on { background: var(--ink); border-color: var(--ink); }
.chk.on::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.status-line { font: 400 10px "JetBrains Mono", monospace; color: #7d8898; margin-top: 18px; letter-spacing: 0.06em; }

.btn { appearance: none; border: none; background: rgba(15,25,41,0.08); color: var(--ink); font: 600 13px "Inter", sans-serif; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.btn.primary { background: var(--ink); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { appearance: none; border: none; cursor: pointer; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.6); box-shadow: 0 0 0 1px rgba(15,25,41,0.1); color: var(--soft); font: 400 11px "JetBrains Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.chip.on { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px var(--ink); }
.list { overflow: hidden; }
.d-item { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line); cursor: pointer; }
.d-item:first-child { border-top: none; }
.d-item.unread { background: rgba(52,114,240,0.05); }
.d-item:active { background: rgba(52,114,240,0.12); }
.d-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 7px; flex: none; }
.d-item.unread .d-dot { background: var(--brand); }
.d-main { flex: 1; min-width: 0; }
.d-tags { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; flex-wrap: wrap; }
.d-source { font: 400 10px "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.d-source.announcement { background: rgba(231,0,11,0.08); color: var(--bad); box-shadow: 0 0 0 1px rgba(231,0,11,0.2); }
.d-source.inbox { background: rgba(0,135,90,0.10); color: var(--good); box-shadow: 0 0 0 1px rgba(0,135,90,0.22); }
.d-title { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.d-snippet { font-size: 13px; color: var(--soft); margin-top: 3px; overflow-wrap: anywhere; }
.d-full { font-size: 14px; line-height: 1.55; margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-when { font: 400 11px "JetBrains Mono", monospace; color: var(--soft); flex: none; }

.signin { max-width: 520px; margin: 4vh auto 0; }
.seg.wide { display: flex; width: 100%; margin-bottom: 16px; }
.seg.wide button { flex: 1; padding: 10px 13px; }
#entry-account .card-pad { margin-bottom: 0; }
#auth-seg { margin-bottom: 16px; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--soft); font-size: 12px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.fine.tight { margin-top: 14px; }
.verify-page { text-align: center; margin-top: 4vh; }
.verify-title { font-size: 22px; font-weight: 800; }
.verify-page p { color: var(--soft); font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
.verify-actions { justify-content: center; margin-top: 20px; }
#verify-resend-msg { margin-top: 12px; min-height: 14px; }
.conn-card { margin-bottom: 14px; }
.conn-card.soon { opacity: 0.75; }
.conn-note { color: var(--soft); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.gmail-opt-row { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: 13px; color: var(--ink); cursor: pointer; }
.gmail-opt-row input { margin-top: 3px; flex: none; }
.gmail-opt-row .mono { display: block; margin-top: 3px; font-size: 10px; }
.conn-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.conn-detail { color: var(--soft); font-size: 13px; }
.signin h1 { font-size: 32px; line-height: 1.15; }
.lede { color: var(--soft); font-size: 16px; line-height: 1.55; margin: 0 0 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field.grow { flex: 1; min-width: 160px; }
.field.full, .full { grid-column: 1 / -1; width: 100%; }
.field input {
  font: 400 16px "Inter", sans-serif;
  background: rgba(255,255,255,0.85); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
.field input:focus { outline: 2px solid rgba(52,114,240,0.5); outline-offset: 1px; }
.form-error { background: rgba(231,0,11,0.08); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.form-error.success { background: rgba(0,135,90,0.10); color: var(--good); }
.howto { margin-top: 18px; font-size: 14px; color: var(--ink); }
.howto summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.howto ol { padding-left: 20px; line-height: 1.6; }
.howto p { color: var(--soft); font-size: 13px; }
.fine { color: var(--soft); font-size: 12px; line-height: 1.6; margin-top: 16px; }

.sched-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sched-form .field { margin-bottom: 0; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day { appearance: none; border: none; cursor: pointer; padding: 8px 12px; border-radius: 10px; background: rgba(15,25,41,0.06); color: var(--soft); font: 400 11px "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.day.on { background: var(--ink); color: #fff; }
.sl-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sl-row:first-child { border-top: none; }
.sl-main { flex: 1; min-width: 0; }
.sl-name { font-weight: 700; overflow-wrap: anywhere; }
.sl-meta { font: 400 11px "JetBrains Mono", monospace; color: var(--soft); margin-top: 3px; }

.foot { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 8px 24px 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--soft); }
.doc { max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; line-height: 1.65; position: relative; z-index: 1; }
.doc h1 { font-size: 30px; } .doc h2 { font-size: 18px; margin: 28px 0 8px; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .who-text, .who .time, .brand .mono { display: none; }
  .top-inner { gap: 12px; padding: 10px 16px; }
  .menu { right: 16px; }
  main { padding: 18px 16px 28px; }
  .page-head { flex-wrap: wrap; }
  .a-head, .a-row { grid-template-columns: 34px minmax(0,1fr) 110px; }
  .a-head .h-course, .a-head .h-when, .a-row .a-course, .a-row .a-when { display: none; }
  .signin h1 { font-size: 26px; }
  .calc-head, .calc-row { grid-template-columns: minmax(0,1fr) 56px 52px 70px 34px 16px; }
  .calc-row input, .calc-row select, .calc-row input.name-in { font-size: 16px; }
}
@media (max-width: 520px) {
  nav { gap: 0; }
  .nav-btn { padding: 8px 10px; font-size: 13px; }
  header.top .brand-name { display: none; }
}
