:root {
  color-scheme: light;
  --brand: #155e5a;
  --brand-dark: #123f42;
  --brand-soft: #eaf2f1;
  --canvas: #f4f6f6;
  --surface: #ffffff;
  --text: #1e2933;
  --muted: #697780;
  --subtle: #8c989f;
  --border: #e1e7e8;
  --border-strong: #cdd8da;
  --positive: #267653;
  --positive-soft: #edf6f1;
  --warning: #9b6c36;
  --warning-soft: #f8f3ea;
  --radius-card: 12px;
  --radius-control: 8px;
  --shadow-card: 0 1px 2px rgb(25 45 49 / 4%), 0 4px 12px rgb(25 45 49 / 3%);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--text); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #63a6a0; outline-offset: 2px; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); max-width: 1600px; min-height: 100vh; margin: 0 auto; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 26px 16px 18px; background: var(--surface); border-right: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 11px; margin: 1px 9px 34px; color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: -.35px; }
.mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--brand); color: white; font-size: 15px; font-weight: 700; }
.navlabel { margin: 0 10px 9px; color: var(--subtle); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.nav { display: grid; gap: 3px; }
.nav button { position: relative; display: flex; width: 100%; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: #56646c; text-align: left; font-size: 12px; font-weight: 550; transition: background-color .15s, color .15s; }
.nav button:hover { background: #f4f7f7; color: var(--text); }
.nav button.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; }
.nav button.active::before { position: absolute; left: -16px; width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--brand); content: ""; }
.nav .ico { display: inline-grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border: 1px solid var(--border); border-radius: 6px; color: #68767c; font-size: 9px; font-weight: 650; }
.nav button.active .ico { border-color: #c8ddda; color: var(--brand); }
.sidebottom { margin-top: auto; }
.profile { display: flex; align-items: center; gap: 10px; padding: 15px 5px 3px; border-top: 1px solid var(--border); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d8e5e2; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.profile b, .profile small { display: block; }
.profile b { font-size: 11px; font-weight: 650; }
.profile small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.main { min-width: 0; padding: 0 42px 48px; }
.top { display: flex; height: 70px; align-items: center; justify-content: space-between; margin-bottom: 29px; border-bottom: 1px solid var(--border); }
.crumb { color: #43525a; font-size: 13px; font-weight: 650; }
.topright { display: flex; align-items: center; gap: 9px; }
.search, .field, .select, .area { min-height: 38px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font-size: 12px; }
.search { width: 220px; }
.search::placeholder, .field::placeholder, .area::placeholder { color: #98a3a8; }
.iconbtn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--muted); }
.iconbtn:hover, .secondary:hover { border-color: var(--border-strong); background: #f9fbfb; }
.content { width: min(100%, 1160px); margin: 0 auto; }
.route-progress { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 3px; pointer-events: none; transform: scaleX(0); transform-origin: left; background: var(--brand); opacity: 0; }
.route-progress-active { animation: route-load .36s ease-out both; }
@keyframes route-load { 0% { transform: scaleX(.08); opacity: 1; } 72% { transform: scaleX(.82); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.content.route-enter .page.active { animation: page-enter .24s ease-out both; }
@keyframes page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page { display: none; }
.page.active { display: block; }
@media (prefers-reduced-motion: reduce) { .route-progress-active, .content.route-enter .page.active { animation-duration: .01ms; } }
h1, h2, h3, p { margin-top: 0; }
.welcome { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.welcome h1 { margin: 6px 0 5px; font-size: 25px; font-weight: 700; letter-spacing: -.75px; }
.welcome p, .subtitle { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.eyebrow { color: #c1d8d5; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.eyebrow.dark { color: #73838a; }
.date { padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: #56646c; font-size: 10px; }
.hero { display: grid; min-height: 172px; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 24px; padding: 25px 30px; overflow: hidden; border: 1px solid #204d4f; border-radius: var(--radius-card); background: var(--brand-dark); color: white; }
.hero h2 { margin: 8px 0 7px; font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.hero p { margin: 0 0 17px; color: #d2e0de; font-size: 12px; }
.hero-button { display: inline-flex; min-height: 37px; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 7px; background: white; color: var(--brand-dark); font-size: 11px; font-weight: 650; }
.hero-button:hover { background: #eaf2f1; }
.hero-timer { padding: 12px 18px; border-left: 1px solid #ffffff38; }
.timer-label, .timer-caption { display: block; color: #d1e0de; font-size: 9px; }
.hero-timer strong { display: flex; align-items: baseline; gap: 7px; margin: 8px 0; font-size: 34px; font-weight: 650; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; }
.hero-timer strong small { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.hero-rule { width: 100%; height: 3px; margin: 11px 0; overflow: hidden; border-radius: 2px; background: #ffffff33; }
.hero-rule::before { display: block; width: 0; height: 100%; background: #cde5df; content: ""; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 17px 0 22px; }
.stat { position: relative; display: flex; min-width: 0; min-height: 91px; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-card); }
.staticon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border: 1px solid #dce7e5; border-radius: 8px; background: #f4f8f7; color: var(--brand); font-size: 10px; font-weight: 700; }
.stat-copy { min-width: 0; }
.stat-copy b, .stat-copy small, .stat-meta { display: block; }
.stat-copy b { font-size: 19px; font-weight: 680; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-copy small { margin-top: 3px; color: #47565e; font-size: 10px; font-weight: 600; }
.stat-meta { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.mini-progress { position: absolute; right: 13px; bottom: 14px; left: 55px; height: 3px; overflow: hidden; border-radius: 3px; background: #e8efee; }
.mini-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .2s ease; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 14px; }
.panel { min-width: 0; padding: 19px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.panel-head h2 { margin: 4px 0 0; font-size: 14px; font-weight: 670; letter-spacing: -.15px; }
.panel-meta { color: var(--muted); font-size: 10px; }
.plan-list, .exam-list, .upcoming { display: grid; gap: 3px; }
.plan-item, .exam-row, .event { display: flex; min-height: 48px; align-items: center; gap: 11px; padding: 8px 5px; border-bottom: 1px solid #edf0f1; }
.plan-item:last-child, .exam-row:last-child, .event:last-child { border-bottom: 0; }
.plan-check { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border: 1px solid #becbcd; border-radius: 6px; background: white; color: white; font-size: 11px; }
.plan-item.complete .plan-check { border-color: var(--brand); background: var(--brand); }
.plan-copy, .exam-copy, .event-copy { min-width: 0; flex: 1; }
.plan-copy strong, .exam-copy strong, .event-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.plan-copy small, .exam-copy small, .event-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.plan-action { padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; background: white; color: #4b6264; font-size: 9px; font-weight: 600; }
.plan-action:hover { border-color: #b8d0cc; color: var(--brand); }
.progress-track { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 4px; background: #e9efee; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .2s; }
.exam-date { display: grid; width: 38px; height: 39px; flex: 0 0 38px; align-content: center; justify-items: center; border: 1px solid var(--border); border-radius: 7px; background: #f8faf9; color: var(--brand); font-size: 8px; font-weight: 650; text-transform: uppercase; }
.exam-date b { margin-top: 1px; color: var(--text); font-size: 13px; }
.continue-panel { grid-column: 1 / -1; }
.continue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.subject-card { display: flex; min-height: 77px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: white; text-align: left; transition: border-color .15s, background-color .15s; }
.subject-card:hover { border-color: #b8d0cc; background: #fbfdfc; }
.subject-index { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 700; }
.subject-info { min-width: 0; flex: 1; }
.subject-info strong, .subject-info small { display: block; }
.subject-info strong { font-size: 11px; font-weight: 620; }
.subject-info small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.subject-arrow { color: #77868c; font-size: 14px; }
.schedule-panel, .tools-panel { min-height: 160px; }
.datebox { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-content: center; border: 1px solid var(--border); border-radius: 7px; background: #f8faf9; color: var(--brand); text-align: center; font-size: 8px; font-weight: 650; }
.datebox b { font-size: 13px; }
.tool-links { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; }
.tool-links button { display: flex; justify-content: space-between; gap: 6px; padding: 9px 0; border: 0; border-bottom: 1px solid #edf0f1; background: transparent; color: #43545b; text-align: left; font-size: 10px; }
.tool-links button:hover { color: var(--brand); }
.titlebar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.titlebar h1 { margin: 0 0 6px; font-size: 23px; font-weight: 680; letter-spacing: -.55px; }
.titlebar p { max-width: 640px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.primary, .secondary { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--radius-control); font-size: 10px; font-weight: 650; text-decoration: none; }
.primary { background: var(--brand); color: white; }
.primary:hover { background: #104d49; }
.secondary { border-color: var(--border); background: white; color: #4e5d63; }
.text-link { padding: 6px 0; border: 0; background: transparent; color: var(--brand); font-size: 10px; font-weight: 620; white-space: nowrap; }
.text-link:hover { color: #0d4542; }
.toolbar { display: flex; gap: 9px; margin-bottom: 14px; }
.toolbar .field { width: min(100%, 290px); }
.select { min-width: 140px; }
.cards3, .tools, .calculators, .guides, .announcements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.note, .paper, .guide, .announcement, .calc, .tool { padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: white; box-shadow: var(--shadow-card); }
.note { display: flex; min-height: 160px; flex-direction: column; }
.note h3, .paper h3, .announcement h3, .guide h3 { margin: 12px 0 6px; font-size: 12px; font-weight: 650; }
.note p, .paper p, .announcement p, .guide p, .calc > p, .tool p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.note p { flex: 1; white-space: pre-wrap; }
.notefoot, .annDate { color: var(--subtle); font-size: 9px; }
.notefoot { display: flex; justify-content: space-between; }
.tag { display: inline-flex; padding: 4px 7px; border: 1px solid #dce7e5; border-radius: 5px; background: #f5f9f8; color: var(--brand); font-size: 9px; font-weight: 650; }
.tiny { padding: 3px 5px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.paperfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
.quizlayout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
.quizbox { padding: 23px; }
.quizmeta { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.quizbox h2 { margin-bottom: 17px; font-size: 17px; font-weight: 650; line-height: 1.5; }
.answers { display: grid; gap: 8px; }
.answer { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: white; text-align: left; font-size: 11px; }
.answer:hover { border-color: #acc5c1; }
.answer.selected { border-color: #86aaa4; background: var(--brand-soft); }
.answer.correct { border-color: #96c7ad; background: var(--positive-soft); color: var(--positive); }
.answer.wrong { border-color: #dbada4; background: #fcf2ef; color: #965247; }
.quiz-history-panel { margin-top: 14px; }
.quiz-history { display: grid; gap: 8px; }
.quiz-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: white; font-size: 11px; }
.quiz-history-item div { display: grid; gap: 4px; }
.quiz-history-item small { color: var(--muted); font-size: 9px; }
.quiz-final-score { margin-bottom: 12px; font-size: 12px; }
.quiz-review { display: grid; gap: 10px; margin-top: 14px; }
.quiz-review h3 { margin: 0; font-size: 13px; }
.quiz-mistake { padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.quiz-mistake h4 { margin: 0 0 9px; font-size: 11px; line-height: 1.5; }
.quiz-mistake p { margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.quiz-explanation { padding-top: 7px; border-top: 1px solid var(--border); }
.quizaside h3, .calc h3 { font-size: 12px; font-weight: 650; }
.quizaside p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.result { min-height: 36px; padding: 10px; border: 1px solid #dce7e5; border-radius: 7px; background: #f5f9f8; color: #405f5d; font-size: 10px; }
.tablewrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: white; }
.table { width: 100%; min-width: 620px; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 10px; }
.table th { color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; }
.table td:first-child { color: #596970; font-weight: 620; }
.slot { display: block; padding: 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 9px; font-weight: 600; }
.slot.study { background: var(--positive-soft); color: var(--positive); }
.slot.deadline { background: var(--warning-soft); color: var(--warning); }
.calcform { display: grid; gap: 9px; }
.calcresult { min-height: 36px; padding: 10px; border-radius: 7px; background: #f2f6f5; color: #47615f; font-size: 10px; }
.guide ul { padding-left: 16px; color: #53636a; font-size: 10px; line-height: 1.8; }
.annDate { margin-top: 13px; }
.timerlayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr); gap: 14px; }
.timer { padding: 25px; text-align: center; }
.timerModes { display: flex; justify-content: center; gap: 6px; }
.tmode { padding: 7px 10px; border: 1px solid var(--border); border-radius: 20px; background: white; color: #596970; font-size: 9px; }
.tmode.active { border-color: #c8ddda; background: var(--brand-soft); color: var(--brand); }
.timerRing { display: grid; width: 165px; height: 165px; place-items: center; margin: 20px auto; border: 6px solid #e9efee; border-top-color: var(--brand); border-radius: 50%; }
.timerTime { font-size: 46px; font-weight: 550; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.timer small { color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 20px 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.empty strong { display: block; margin-bottom: 4px; color: #415159; font-size: 11px; }
.modalbg { position: fixed; z-index: 10; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; background: rgb(21 39 42 / 48%); }
.modalbg.show { display: flex; }
.modal { width: min(450px, 100%); padding: 21px; border: 1px solid var(--border); border-radius: 12px; background: white; box-shadow: 0 18px 45px rgb(20 35 38 / 18%); }
.modalhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.modalhead h2 { margin: 0; font-size: 15px; }
.close { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 7px; background: white; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 5px; color: #56656c; font-size: 10px; font-weight: 620; }
.area { min-height: 100px; resize: vertical; }
.formactions { display: flex; justify-content: end; gap: 8px; margin-top: 3px; }
.toast { position: fixed; z-index: 12; bottom: 22px; left: 50%; padding: 10px 14px; transform: translate(-50%, 10px); border: 1px solid #354d4d; border-radius: 8px; background: #193c3e; color: white; font-size: 10px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 1100px) { .main { padding-right: 28px; padding-left: 28px; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr); } }
@media (max-width: 800px) { .shell { display: block; } .side { position: sticky; z-index: 5; top: 0; display: block; width: 100%; height: auto; padding: 10px 14px 8px; border-right: 0; border-bottom: 1px solid var(--border); } .logo { margin: 0 4px 8px; font-size: 14px; } .mark { width: 28px; height: 28px; } .navlabel, .sidebottom { display: none; } .nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: thin; } .nav button { width: auto; flex: 0 0 auto; gap: 7px; padding: 8px 9px; font-size: 10px; } .nav button.active::before { top: auto; right: 9px; bottom: 0; left: 9px; width: auto; height: 2px; border-radius: 2px 2px 0 0; } .nav .ico { width: 17px; height: 17px; flex-basis: 17px; font-size: 8px; } .main { padding: 0 20px 34px; } .top { height: 58px; margin-bottom: 23px; } .hero { grid-template-columns: minmax(0, 1fr) 170px; padding: 21px; } .dashboard-grid { grid-template-columns: minmax(0, 1fr); } .continue-panel { grid-column: auto; } .quizlayout, .timerlayout { grid-template-columns: minmax(0, 1fr); } .cards3, .tools, .calculators, .guides, .announcements { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .main { padding-right: 14px; padding-left: 14px; } .search { width: 145px; } .iconbtn { display: none; } .welcome { align-items: flex-start; } .welcome h1 { font-size: 21px; } .date { display: none; } .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 19px; } .hero h2 { font-size: 19px; } .hero-timer { display: grid; grid-template-columns: auto auto; align-items: center; gap: 5px 10px; padding: 10px 0 0; border-top: 1px solid #ffffff38; border-left: 0; } .hero-timer strong { margin: 0; font-size: 24px; } .hero-rule { display: none; } .timer-caption { grid-column: 1 / -1; } .stats { gap: 8px; } .stat { min-height: 82px; gap: 8px; padding: 11px; } .staticon { width: 25px; height: 25px; flex-basis: 25px; } .stat-copy b { font-size: 17px; } .stat-meta { font-size: 8px; } .mini-progress { right: 10px; left: 44px; } .panel { padding: 15px; } .continue-grid { grid-template-columns: minmax(0, 1fr); } .panel-head h2 { font-size: 13px; } .titlebar { align-items: flex-start; } .titlebar h1 { font-size: 21px; } .cards3, .tools, .calculators, .guides, .announcements { grid-template-columns: minmax(0, 1fr); } .toolbar { flex-wrap: wrap; } .toolbar .field { width: 100%; } .timerModes { flex-wrap: wrap; } .quizbox, .timer { padding: 17px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Collapsible StudySpace navigation */
.shell { grid-template-columns: 72px minmax(0, 1fr); transition: grid-template-columns .25s ease; }
.shell.sidebar-expanded { grid-template-columns: 260px minmax(0, 1fr); }
.side { z-index: 20; min-width: 0; overflow: hidden; padding: 14px 10px 16px; transition: padding .25s ease, box-shadow .25s ease; }
.sidehead { display: flex; min-height: 44px; align-items: center; gap: 10px; margin-bottom: 26px; }
.sidebar-toggle, .mobile-sidebar-toggle { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #43545b; transition: background-color .16s, border-color .16s, color .16s; }
.sidebar-toggle:hover, .mobile-sidebar-toggle:hover { border-color: var(--border); background: #f4f7f7; color: var(--brand-dark); }
.sidebar-toggle svg, .mobile-sidebar-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.logo { min-width: 0; margin: 0; gap: 10px; white-space: nowrap; }
.logo-name { overflow: hidden; }
.shell:not(.sidebar-expanded) .logo { display: none; }
.shell:not(.sidebar-expanded) .sidehead { justify-content: center; }
.shell:not(.sidebar-expanded) .navlabel, .shell:not(.sidebar-expanded) .nav-label, .shell:not(.sidebar-expanded) .profile-copy { display: none; }
.shell:not(.sidebar-expanded) .nav { gap: 7px; }
.shell:not(.sidebar-expanded) .nav button { justify-content: center; width: 50px; height: 46px; margin: 0 auto; padding: 0; }
.shell:not(.sidebar-expanded) .nav button.active::before { left: -11px; }
.nav .ico { width: 21px; height: 21px; flex-basis: 21px; border: 0; border-radius: 5px; }
.nav .ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.nav button:hover .ico, .nav button.active .ico { color: var(--brand); }
.nav button { white-space: nowrap; }
.shell:not(.sidebar-expanded) .profile { justify-content: center; padding: 13px 0 2px; }
.shell:not(.sidebar-expanded) .profile .avatar { flex: 0 0 34px; }
.sidebar-backdrop { display: none; }
.mobile-sidebar-toggle { display: none; }
@media (max-width: 800px) {
  .shell, .shell.sidebar-expanded { display: block; min-height: 100vh; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); height: 100dvh; padding: 15px 14px 18px; border-right: 1px solid var(--border); box-shadow: 10px 0 30px rgb(21 41 45 / 10%); transform: translateX(-105%); transition: transform .25s ease; }
  .shell.mobile-sidebar-open .side { transform: translateX(0); }
  .shell.mobile-sidebar-open .logo { display: flex; }
  .shell.mobile-sidebar-open .sidehead { justify-content: flex-start; }
  .shell.mobile-sidebar-open .navlabel, .shell.mobile-sidebar-open .nav-label, .shell.mobile-sidebar-open .profile-copy { display: block; }
  .shell.mobile-sidebar-open .sidebottom { display: block; }
  .shell.mobile-sidebar-open .nav { display: grid; gap: 3px; overflow-x: visible; }
  .shell.mobile-sidebar-open .nav button { justify-content: flex-start; width: 100%; height: auto; margin: 0; padding: 10px 12px; }
  .shell.mobile-sidebar-open:not(.sidebar-expanded) .nav button { width: 100%; height: auto; margin: 0; }
  .shell.mobile-sidebar-open .nav button.active::before { top: 50%; right: auto; bottom: auto; left: -14px; width: 3px; height: 22px; transform: translateY(-50%); }
  .shell.mobile-sidebar-open .profile { justify-content: flex-start; padding: 15px 5px 3px; }
  .sidebar-backdrop { position: fixed; z-index: 19; inset: 0; background: rgb(13 30 33 / 38%); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .shell.mobile-sidebar-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .mobile-sidebar-toggle { display: grid; width: 38px; height: 38px; flex-basis: 38px; }
  .top { justify-content: flex-start; gap: 10px; }
  .topright { margin-left: auto; }
  .main { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .shell, .side, .sidebar-backdrop, .sidebar-toggle, .mobile-sidebar-toggle { transition-duration: .01ms !important; } }

/* Account sign-in */
.auth-screen { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 36px 20px 22px; background: #f4f6f6; }
.auth-screen[hidden] { display: none !important; }
.boot-screen { position: fixed; z-index: 30; inset: 0; display: grid; place-content: center; justify-items: center; background: #f4f6f6; color: var(--muted); text-align: center; }
.boot-screen[hidden] { display: none; }
.boot-screen p { margin: 12px 0 0; font-size: 12px; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; color: var(--brand-dark); font-size: 17px; font-weight: 700; letter-spacing: -.35px; }
.auth-card { width: min(100%, 420px); padding: 34px 36px 28px; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: 0 12px 36px rgb(25 45 49 / 6%); }
.auth-card h1 { margin: 9px 0 7px; color: var(--text); font-size: 26px; letter-spacing: -.8px; }
.auth-intro { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-form { display: grid; gap: 15px; }
.auth-form[hidden], .auth-link[hidden], .auth-switch [hidden] { display: none !important; }
.auth-form label { display: grid; gap: 7px; color: #35454c; font-size: 12px; font-weight: 600; }
.auth-form .field { width: 100%; min-height: 43px; font-size: 13px; }
.auth-submit { width: 100%; min-height: 43px; margin-top: 3px; font-size: 13px; }
.auth-submit[aria-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: wait; opacity: .88; }
.auth-submit[aria-busy="true"]::before { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: auth-spin .7s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--subtle); font-size: 10px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--border); content: ""; }
.google-button { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #d9dfe1; border-radius: 8px; background: white; color: #30383c; font-size: 12px; font-weight: 650; }
.google-button:hover { background: #f8fafb; border-color: #aeb9bd; }
.google-button:disabled { cursor: wait; opacity: .7; }
.google-button[aria-busy="true"]::after { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: auth-spin .7s linear infinite; }
.google-mark { color: #4285f4; font-family: Arial, sans-serif; font-size: 18px; font-weight: 700; }
.auth-link { padding: 0; border: 0; background: none; color: var(--brand); font-size: 12px; font-weight: 650; }
.auth-link:hover { color: var(--brand-dark); text-decoration: underline; }
.auth-card > .auth-link { display: block; margin: 16px auto 0; }
.auth-switch { margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch .auth-link { margin-left: 3px; }
.auth-privacy { margin: 21px 0 0; color: var(--subtle); text-align: center; font-size: 10px; }
.auth-footer { margin: 22px 0 0; color: var(--subtle); font-size: 10px; }
.auth-notice { display: none; margin: -7px 0 17px; padding: 10px 12px; border: 1px solid #d9e6e1; border-radius: 8px; background: #f1f7f4; color: #315e4e; font-size: 12px; line-height: 1.5; }
.auth-notice.show { display: block; }
.auth-notice.error { border-color: #ecd8d5; background: #fbf3f2; color: #8a4038; }
.auth-name-field[hidden] { display: none; }
.logout-button { margin-top: 5px; padding: 0; border: 0; background: none; color: #8a4941; font-size: 10px; text-align: left; }
.logout-button:hover { text-decoration: underline; }
.shell[hidden] { display: none; }
.shell:not([hidden]) { animation: app-enter .24s ease-out both; }
@keyframes app-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .auth-submit[aria-busy="true"]::before, .shell:not([hidden]) { animation-duration: .01ms; } }
@media (max-width: 520px) { .auth-card { padding: 28px 22px 23px; } .auth-card h1 { font-size: 23px; } }

/* Public landing page for Google branding review and first-time visitors. */
.public-home { min-height: 100vh; overflow: hidden; background: #fbfcfa; color: #173c3b; }
.public-home[hidden] { display: none !important; }
.public-nav { display: flex; width: min(100% - 64px, 1180px); height: 82px; align-items: center; justify-content: space-between; margin: 0 auto; border-bottom: 1px solid #e5ece9; }
.public-brand { display: inline-flex; align-items: center; gap: 10px; color: #183f3d; font-size: 16px; font-weight: 750; letter-spacing: -.4px; text-decoration: none; }
.public-brand .mark { width: 34px; height: 34px; border-radius: 10px; }
.public-nav-links, .public-nav-actions { display: flex; align-items: center; gap: 27px; }
.public-nav-links a, .public-footer nav a, .public-footer nav button { color: #506866; font-size: 12px; font-weight: 550; text-decoration: none; }
.public-nav-links a:hover, .public-footer nav a:hover, .public-footer nav button:hover { color: var(--brand); }
.public-nav-actions { gap: 18px; }
.public-login, .public-secondary, .public-footer nav button { border: 0; background: transparent; color: #32504e; font-size: 12px; font-weight: 600; }
.public-signup { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 13px; padding: 0 17px; border: 0; border-radius: 8px; background: #145b55; color: white; font-size: 12px; font-weight: 650; box-shadow: 0 5px 14px rgb(21 94 90 / 13%); transition: background-color .18s, transform .18s; }
.public-signup:hover { transform: translateY(-1px); background: #104a46; }
.public-signup span { font-size: 16px; }
.public-hero { display: grid; width: min(100% - 64px, 1180px); min-height: 565px; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr); align-items: center; gap: 60px; margin: 0 auto; padding: 70px 0 80px; }
.public-hero-copy { max-width: 565px; }
.public-kicker { display: flex; align-items: center; gap: 8px; color: #50726d; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7aaa8b; box-shadow: 0 0 0 4px #e6f1e9; }
.public-hero h1 { max-width: 580px; margin: 23px 0 18px; color: #153d3a; font-size: clamp(43px, 5.5vw, 66px); font-weight: 680; letter-spacing: -3.5px; line-height: 1.04; }
.public-hero h1 em { color: #26776a; font-family: Georgia, serif; font-weight: 500; }
.public-hero-copy > p { max-width: 485px; margin: 0; color: #647875; font-size: 16px; line-height: 1.75; }
.public-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 29px; }
.public-signup-large { min-height: 49px; padding: 0 20px; font-size: 13px; }
.public-secondary { padding: 12px 2px; text-decoration: underline; text-decoration-color: #c0cfca; text-underline-offset: 4px; }
.public-note { display: flex; align-items: center; gap: 8px; margin-top: 27px; color: #71827e; font-size: 10px; }
.public-note-check { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #e9f2eb; color: #34765a; font-size: 11px; font-weight: 750; }
.study-preview { position: relative; width: min(100%, 435px); min-height: 374px; justify-self: center; padding: 24px; border: 1px solid #e2ebe6; border-radius: 19px; background: linear-gradient(150deg, #fff 7%, #f4f8f4 100%); box-shadow: 0 22px 60px rgb(30 63 54 / 10%); transform: rotate(1deg); }
.preview-top { display: flex; align-items: center; gap: 11px; padding-bottom: 21px; border-bottom: 1px solid #e8eeea; }
.preview-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #e8f1ed; color: #22665b; font-size: 13px; font-weight: 750; }
.preview-top b, .preview-top small, .preview-subject b, .preview-subject small, .preview-quote b, .preview-quote small, .preview-floating b, .preview-floating small { display: block; }
.preview-top b { color: #294a45; font-size: 12px; }
.preview-top small { margin-top: 4px; color: #8a9a94; font-size: 9px; }
.preview-more { margin-left: auto; color: #8ea09a; font-size: 12px; letter-spacing: 2px; }
.preview-subject { display: flex; align-items: center; gap: 12px; margin: 24px 0 27px; padding: 15px; border: 1px solid #e7eeea; border-radius: 12px; background: white; }
.preview-subject-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; background: #edf3e7; color: #637d46; font-size: 12px; font-weight: 750; }
.preview-subject small { margin-bottom: 5px; color: #90a099; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.preview-subject b { color: #35534c; font-size: 12px; }
.preview-arrow { margin-left: auto; color: #6b9384; font-size: 17px; }
.preview-progress-label { display: flex; justify-content: space-between; gap: 8px; color: #758780; font-size: 9px; }
.preview-progress-label b { color: #41615a; font-size: 9px; }
.preview-progress { height: 7px; margin-top: 11px; overflow: hidden; border-radius: 8px; background: #e6ede8; }
.preview-progress i { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #78a997, #3d7e6e); }
.preview-quote { display: flex; align-items: flex-start; gap: 10px; margin-top: 25px; padding: 15px; border-radius: 11px; background: #edf4ef; }
.preview-quote > span { color: #78a08f; font-family: Georgia, serif; font-size: 29px; line-height: .8; }
.preview-quote b { color: #426158; font-size: 10px; }
.preview-quote small { margin-top: 5px; color: #7b9189; font-size: 9px; }
.preview-floating { position: absolute; right: -20px; bottom: 32px; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid #e4ece7; border-radius: 12px; background: white; box-shadow: 0 10px 28px rgb(30 63 54 / 12%); transform: rotate(-2deg); }
.preview-floating > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #eaf3eb; color: #4b8a6a; font-size: 12px; font-weight: 750; }
.preview-floating b { color: #3c5c51; font-size: 9px; }
.preview-floating small { margin-top: 4px; color: #889891; font-size: 8px; }
.public-proof { display: flex; width: min(100% - 64px, 1180px); align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 22px 0 27px; border-top: 1px solid #e6ece8; border-bottom: 1px solid #e6ece8; }
.public-proof > span { color: #83938d; font-size: 9px; font-weight: 750; letter-spacing: .11em; }
.public-proof div { display: flex; align-items: center; gap: 19px; color: #49655e; font-size: 11px; }
.public-proof i { width: 4px; height: 4px; border-radius: 50%; background: #95b7a7; }
.public-features { width: min(100% - 64px, 1180px); margin: 0 auto; padding: 104px 0 96px; }
.public-section-intro { max-width: 580px; margin: 0 auto 42px; text-align: center; }
.public-section-intro .public-kicker { justify-content: center; }
.public-section-intro h2, .public-how h2 { margin: 15px 0 10px; color: #1b4540; font-size: clamp(28px, 3.3vw, 40px); font-weight: 650; letter-spacing: -1.6px; line-height: 1.15; }
.public-section-intro > p, .public-how > div > p { color: #71817c; font-size: 13px; line-height: 1.7; }
.public-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.public-feature { position: relative; min-height: 197px; padding: 21px 18px; overflow: hidden; border: 1px solid #e4ebe7; border-radius: 12px; background: white; transition: transform .18s, box-shadow .18s; }
.public-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(32 67 55 / 7%); }
.feature-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; font-size: 11px; font-weight: 750; }
.feature-notes { background: #edf2e9; color: #6d8057; }
.feature-quiz { background: #e8f2ef; color: #37786b; }
.feature-progress { background: #f5eee3; color: #9b7546; }
.feature-news { background: #f1ebf4; color: #81698f; }
.public-feature h3 { margin: 20px 0 7px; color: #294a43; font-size: 13px; font-weight: 680; }
.public-feature p { max-width: 240px; margin: 0; color: #7a8983; font-size: 10px; line-height: 1.7; }
.feature-number { position: absolute; right: 17px; bottom: 13px; color: #c2cdc7; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.public-how { display: grid; width: min(100% - 64px, 1180px); grid-template-columns: .9fr 1.1fr; gap: 90px; margin: 0 auto 92px; padding: 46px; border: 1px solid #e4ebe6; border-radius: 18px; background: #f0f5f1; }
.public-how > div > p { max-width: 350px; margin: 0; }
.public-how ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.public-how li { display: flex; align-items: flex-start; gap: 16px; padding: 13px 0; border-bottom: 1px solid #dfe9e2; }
.public-how li:last-child { border-bottom: 0; }
.public-how li > span { color: #79a08f; font-size: 10px; font-weight: 750; }
.public-how li b, .public-how li small { display: block; }
.public-how li b { color: #35584f; font-size: 11px; }
.public-how li small { margin-top: 5px; color: #778981; font-size: 9px; line-height: 1.55; }
.public-cta { display: flex; width: min(100% - 64px, 1180px); align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto 75px; padding: 33px 39px; border-radius: 15px; background: #174b46; color: white; }
.public-cta .public-kicker { color: #b6d0c8; }
.public-cta h2 { margin: 10px 0 5px; font-size: 23px; font-weight: 640; letter-spacing: -.5px; }
.public-cta p { margin: 0; color: #d0e0d9; font-size: 11px; }
.public-cta .public-signup { flex: 0 0 auto; background: white; color: #174b46; }
.public-cta .public-signup:hover { background: #e7f1ec; }
.public-footer { display: grid; width: min(100% - 64px, 1180px); grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 16px; margin: 0 auto; padding: 22px 0 28px; border-top: 1px solid #e5ece8; }
.public-footer .public-brand { font-size: 13px; }
.public-footer .public-brand .mark { width: 28px; height: 28px; font-size: 12px; }
.public-footer > span { color: #7b8c85; font-size: 10px; }
.public-footer nav { display: flex; align-items: center; gap: 18px; }
.public-footer nav button { padding: 0; }
.public-footer > small { grid-column: 1 / -1; color: #9aa8a1; font-size: 9px; }
.auth-back-home { margin: 4px auto 16px; padding: 7px 10px; border: 0; background: transparent; color: #55726b; font-size: 11px; font-weight: 600; }
.auth-back-home:hover { color: var(--brand); }
.policy-page { width: min(100% - 40px, 780px); min-height: 100vh; margin: 0 auto; padding: 35px 0 70px; }
.policy-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.policy-header a { color: var(--brand); font-size: 11px; text-decoration: none; }
.policy-page h1 { margin: 36px 0 8px; color: var(--brand-dark); font-size: 32px; letter-spacing: -1px; }
.policy-updated, .policy-page p, .policy-page li { color: #62716f; font-size: 13px; line-height: 1.75; }
.policy-page h2 { margin: 27px 0 9px; color: #244c47; font-size: 17px; }
.policy-page ul { padding-left: 23px; }
.policy-draft-note { padding: 12px 14px; border: 1px solid #e5eade; border-radius: 8px; background: #f7f8f2; color: #697568; font-size: 11px; line-height: 1.6; }
@media (max-width: 900px) { .public-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 30px; } .public-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .public-how { gap: 40px; } }
@media (max-width: 700px) { .public-nav, .public-hero, .public-proof, .public-features, .public-how, .public-cta, .public-footer { width: min(100% - 36px, 560px); } .public-nav { height: 68px; } .public-nav-links { display: none; } .public-nav-actions { gap: 12px; } .public-login { font-size: 11px; } .public-signup { min-height: 38px; padding: 0 12px; font-size: 10px; } .public-hero { grid-template-columns: 1fr; gap: 45px; padding: 62px 0 55px; } .public-hero h1 { max-width: 500px; font-size: clamp(43px, 11vw, 58px); letter-spacing: -2.8px; } .public-hero-copy > p { font-size: 14px; } .study-preview { max-width: 420px; justify-self: center; } .preview-floating { right: -6px; } .public-proof { align-items: flex-start; flex-direction: column; gap: 14px; } .public-proof div { flex-wrap: wrap; gap: 11px; font-size: 10px; } .public-features { padding: 70px 0; } .public-section-intro { margin-bottom: 29px; } .public-how { grid-template-columns: 1fr; gap: 21px; margin-bottom: 58px; padding: 25px 21px; } .public-cta { align-items: flex-start; flex-direction: column; margin-bottom: 48px; padding: 27px 22px; } .public-cta h2 { font-size: 21px; } .public-footer { grid-template-columns: 1fr auto; } .public-footer > span { grid-column: 1 / -1; grid-row: 2; } .public-footer nav { grid-column: 1 / -1; grid-row: 3; } .public-footer > small { grid-row: 4; } }
@media (max-width: 440px) { .public-nav, .public-hero, .public-proof, .public-features, .public-how, .public-cta, .public-footer { width: min(100% - 28px, 420px); } .public-brand { font-size: 14px; } .public-brand .mark { width: 30px; height: 30px; } .public-nav-actions { gap: 7px; } .public-signup { gap: 7px; padding: 0 9px; } .public-hero-actions { align-items: flex-start; flex-direction: column; gap: 7px; } .public-note { align-items: flex-start; line-height: 1.5; } .study-preview { min-height: 350px; padding: 18px; } .public-feature-grid { grid-template-columns: 1fr; } .public-feature { min-height: 166px; } .public-footer nav { gap: 14px; } }
