:root {
  color-scheme:dark;
  --bg:#090c15;
  --surface:#101522;
  --surface-2:#171d2e;
  --surface-3:#20283c;
  --stroke:#293047;
  --text:#f3f5ff;
  --muted:#a1aac1;
  --subtle:#98a3bc;
  --accent:#a6a9ff;
  --accent-strong:#888df9;
  --mint:#86e1c7;
  --gold:#efc78e;
  --rose:#ffa6ad;
  --glass:rgba(15,20,33,.92);
  --shadow:0 24px 75px rgba(0,0,0,.27);
  --radius:20px;
  --sidebar-width:260px;
  --max-content:1340px
}

:root[data-theme="light"] {
  color-scheme:light;
  --bg:#f5f6fb;
  --surface:#fff;
  --surface-2:#f0f2fb;
  --surface-3:#e7ebf8;
  --stroke:#dbe0ed;
  --text:#171d31;
  --muted:#59657c;
  --subtle:#717f96;
  --accent:#5656c9;
  --accent-strong:#4646b7;
  --mint:#0c7863;
  --gold:#99600d;
  --rose:#b83d53;
  --glass:rgba(255,255,255,.94);
  --shadow:0 18px 55px rgba(33,44,90,.09)
}

* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:90px
}
body {
  margin:0;
  min-width:320px;
  background:var(--bg);
  color:var(--text);
  font:15px/1.65 'DM Sans',system-ui,-apple-system,Segoe UI,sans-serif;
  -webkit-font-smoothing:antialiased
}
body::before {
  content:"";
  position:fixed;
  top:-270px;
  left:45%;
  width:800px;
  height:600px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(105,98,205,.11),transparent 67%);
  pointer-events:none;
  z-index:-1
}
button,input,textarea,select {
  font:inherit
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.55;
  cursor:not-allowed
}
a {
  color:inherit;
  text-decoration:none
}
a:hover {
  text-decoration:none
}
img,svg {
  max-width:100%
}
h1,h2,h3,h4,p {
  margin-top:0
}
h1,h2,h3,h4,.metric-value,.brand-type {
  font-family:Manrope,'DM Sans',sans-serif;
  letter-spacing:-.045em
}
h1 {
  font-size:clamp(2rem,3.7vw,3.45rem);
  line-height:1.16;
  font-weight:800
}
h2 {
  font-size:clamp(1.3rem,2vw,1.65rem);
  line-height:1.3;
  font-weight:800
}
h3 {
  font-size:1.08rem;
  line-height:1.4;
  letter-spacing:-.025em
}
p {
  color:var(--muted)
}
strong {
  color:var(--text)
}
:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:3px
}
::selection {
  background:#8e90f5;
  color:#fff
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-100px;
  left:16px;
  z-index:999;
  background:var(--accent);
  color:var(--bg);
  padding:10px 20px;
  border-radius:10px
}
.skip-link:focus {
  top:10px
}
.icon {
  width:19px;
  height:19px;
  display:inline-block;
  vertical-align:middle;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
  flex:none
}
.app-shell {
  display:flex;
  min-height:100vh
}
.sidebar {
  width:var(--sidebar-width);
  flex:none;
  background:var(--surface);
  border-right:1px solid var(--stroke);
  padding:33px 17px 17px;
  position:fixed;
  inset:0 auto 0 0;
  z-index:50;
  display:flex;
  flex-direction:column;
  overflow-y:auto
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  margin-bottom:51px
}
.brand-mark {
  display:grid;
  place-items:center;
  background:linear-gradient(140deg,#b8baff,#757deb);
  border-radius:14px;
  color:#111637;
  font-size:30px;
  width:45px;
  height:45px;
  box-shadow:0 12px 32px rgba(129,124,236,.18)
}
.brand-type {
  font-weight:800;
  font-size:29px;
  line-height:1;
  letter-spacing:-.08em
}
.brand-dot {
  color:var(--accent)
}
.brand-type small {
  display:block;
  letter-spacing:.17em;
  color:var(--subtle);
  font:700 9px/1.7 'DM Sans';
  margin-top:8px
}
.nav-label {
  color:var(--subtle);
  letter-spacing:.12em;
  font-weight:800;
  font-size:10px;
  padding:0 16px;
  margin-bottom:12px
}
.side-nav,.sidebar-bottom {
  display:grid;
  gap:5px
}
.nav-link {
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 15px;
  border-radius:12px;
  color:var(--muted);
  font-weight:600;
  font-size:13px;
  transition:background .18s,color .18s
}
.nav-link:hover {
  color:var(--text);
  background:var(--surface-2)
}
.nav-link.active {
  background:rgba(145,143,255,.13);
  color:var(--accent)
}
.nav-link.active::after {
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
  margin-left:auto
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:38px
}
.focus-card {
  padding:19px;
  margin-bottom:13px;
  border:1px solid rgba(159,154,255,.22);
  border-radius:17px;
  background:linear-gradient(140deg,rgba(104,95,176,.19),rgba(28,35,64,.25))
}
.focus-orb {
  font-size:24px;
  color:var(--gold);
  display:block;
  margin-bottom:7px
}
.focus-card strong {
  font-size:14px
}
.focus-card p {
  font-size:12px;
  line-height:1.55;
  margin:6px 0 14px
}
.focus-card a {
  color:var(--accent);
  font-size:12px;
  font-weight:700
}
.main-shell {
  margin-left:var(--sidebar-width);
  width:calc(100% - var(--sidebar-width));
  min-height:100vh;
  display:flex;
  flex-direction:column
}
.topbar {
  height:79px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:0 clamp(22px,4vw,65px);
  border-bottom:1px solid var(--stroke);
  background:var(--glass);
  backdrop-filter:blur(18px);
  position:sticky;
  top:0;
  z-index:35
}
.topbar-start,.topbar-actions {
  display:flex;
  align-items:center;
  gap:18px
}
.topbar-eyebrow {
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--subtle)
}
#topbar-title {
  color:var(--text)
}
.topbar-separator {
  padding:0 7px;
  color:var(--subtle)
}
.account-button {
  border:1px solid var(--stroke);
  background:var(--surface-2);
  color:var(--text);
  border-radius:999px;
  padding:9px 16px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:700;
  max-width:230px
}
.account-button span:last-child {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.sync-state {
  color:var(--muted);
  font-size:11px;
  display:inline-flex;
  align-items:center;
  gap:7px
}
.sync-dot {
  background:var(--gold);
  height:7px;
  width:7px;
  border-radius:50%;
  flex:none
}
.sync-state.synced .sync-dot {
  background:var(--mint)
}
.sync-state.error .sync-dot {
  background:var(--rose)
}
.icon-btn {
  display:grid;
  place-items:center;
  border:1px solid var(--stroke);
  background:var(--surface-2);
  color:var(--text);
  width:40px;
  height:40px;
  border-radius:12px
}
.hamburger {
  display:none
}
.page-content {
  max-width:calc(var(--max-content) + 120px);
  margin:0 auto;
  width:100%;
  padding:clamp(23px,3.8vw,52px) clamp(20px,4vw,64px) 65px;
  flex:1;
  outline:0
}
.site-footer {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  border-top:1px solid var(--stroke);
  padding:23px clamp(20px,4vw,65px);
  color:var(--subtle);
  font-size:11px
}
.site-footer strong {
  color:var(--muted)
}
.mobile-nav {
  display:none
}
.scrim {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:40
}
.scrim[hidden] {
  display:none
}
.loading-state {
  padding:120px 0;
  text-align:center;
  color:var(--muted)
}

.eyebrow {
  font-size:11px;
  letter-spacing:.16em;
  color:var(--accent);
  font-weight:800;
  text-transform:uppercase
}
.page-head {
  margin-bottom:28px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap
}
.page-head h1 {
  font-size:clamp(2rem,3vw,2.8rem);
  margin:5px 0 9px
}
.page-head p {
  margin:0;
  max-width:650px
}
.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:19px
}
.section-head h2 {
  margin:0
}
.section-head p {
  margin:5px 0 0;
  font-size:13px
}
.text-link {
  font-size:12px;
  font-weight:800;
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  gap:5px
}
.text-link:hover,.text-button:hover {
  text-decoration:underline
}
.card {
  background:var(--surface);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:clamp(19px,2.6vw,27px);
  box-shadow:0 10px 35px rgba(0,0,0,.035)
}
.card.tight {
  padding:20px
}
.card h3 {
  margin-bottom:8px
}
.card p:last-child {
  margin-bottom:0
}
.grid-2 {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:19px
}
.grid-3 {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:19px
}
.grid-4 {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px
}
.stack {
  display:grid;
  gap:19px
}
.gap-section {
  margin-top:37px
}
.hero {
  position:relative;
  overflow:hidden;
  border-radius:27px;
  background:linear-gradient(118deg,#34396c 0%,#252c52 45%,#18203a 100%);
  padding:clamp(26px,4.4vw,60px);
  margin-bottom:27px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 225px;
  gap:20px;
  min-height:305px;
  align-items:center;
  color:#fff;
  border:1px solid rgba(209,202,255,.12)
}
.hero:before {
  content:"";
  position:absolute;
  right:-100px;
  top:-170px;
  width:490px;
  height:490px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:50%;
  box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 112px rgba(255,255,255,.025)
}
.hero .eyebrow {
  color:#c6c8ff
}
.hero h1 {
  max-width:650px;
  margin:12px 0 14px
}
.hero p {
  color:#d3d6f2;
  max-width:580px;
  margin-bottom:25px
}
.hero-content {
  position:relative;
  z-index:1
}
.hero-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap
}
.hero-illustration {
  position:relative;
  display:grid;
  place-items:center;
  min-height:185px
}
.sunburst {
  width:165px;
  height:165px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:radial-gradient(circle,#f1d4b5 0,#d3b4ff 29%,rgba(151,159,255,.3) 43%,transparent 67%);
  filter:drop-shadow(0 20px 40px rgba(193,168,255,.24));
  font-size:70px;
  color:#fff;
  transform:rotate(-13deg)
}
.button {
  border:1px solid transparent;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  min-height:44px;
  border-radius:12px;
  padding:12px 17px;
  font-size:13px;
  font-weight:800;
  line-height:1.25;
  text-align:center;
  transition:transform .15s,background .15s
}
.button:active {
  transform:scale(.98)
}
.button-primary {
  background:var(--accent);
  color:#111426
}
.button-primary:hover {
  background:var(--accent-strong);
  color:#fff
}
.button-secondary {
  background:var(--surface-2);
  color:var(--text);
  border-color:var(--stroke)
}
.button-secondary:hover {
  background:var(--surface-3)
}
.button-ghost-light {
  background:rgba(255,255,255,.1);
  color:#fff;
  border-color:rgba(255,255,255,.22)
}
.button-ghost-light:hover {
  background:rgba(255,255,255,.18)
}
.button-danger {
  background:rgba(255,166,173,.12);
  color:var(--rose);
  border-color:rgba(255,166,173,.3)
}
.button-small {
  min-height:36px;
  padding:9px 13px;
  font-size:12px
}
.full-width {
  width:100%
}
.metric {
  padding:23px;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:148px
}
.metric .metric-icon {
  background:var(--surface-2);
  width:36px;
  height:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:var(--accent)
}
.metric-value {
  font-weight:800;
  font-size:clamp(1.8rem,2.7vw,2.45rem);
  line-height:1.2;
  letter-spacing:-.055em
}
.metric-label {
  font-size:12px;
  color:var(--muted)
}
.metric-foot {
  color:var(--subtle);
  font-size:11px
}
.progress {
  background:var(--surface-3);
  height:7px;
  overflow:hidden;
  border-radius:100px
}
.progress>span {
  display:block;
  height:100%;
  border-radius:100px;
  background:linear-gradient(90deg,var(--accent-strong),var(--mint));
  min-width:0;
  transition:width .3s
}
.progress-line {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  font-size:12px;
  color:var(--muted);
  margin:12px 0 10px
}
.muted {
  color:var(--muted)
}
.subtle {
  color:var(--subtle)
}
.small {
  font-size:12px
}
.tiny {
  font-size:11px
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  border-radius:999px;
  padding:6px 10px;
  background:var(--surface-2);
  color:var(--muted);
  border:1px solid var(--stroke)
}
.pill-accent {
  background:rgba(147,147,255,.12);
  color:var(--accent);
  border-color:rgba(147,147,255,.17)
}
.pill-mint {
  background:rgba(91,203,172,.12);
  color:var(--mint);
  border-color:rgba(91,203,172,.22)
}
.pill-rose {
  background:rgba(239,148,162,.12);
  color:var(--rose);
  border-color:rgba(239,148,162,.22)
}
.pill-gold {
  background:rgba(239,199,142,.12);
  color:var(--gold);
  border-color:rgba(239,199,142,.22)
}
.lesson-card {
  display:flex;
  flex-direction:column;
  gap:13px;
  min-height:255px
}
.lesson-card .lesson-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px
}
.lesson-symbol {
  font-size:23px;
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  background:var(--surface-2);
  border-radius:15px
}
.lesson-card h3 {
  font-size:17px;
  margin-bottom:0
}
.lesson-card p {
  font-size:12px;
  line-height:1.6;
  margin:0;
  flex:1
}
.lesson-card .lesson-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:13px;
  border-top:1px solid var(--stroke);
  color:var(--subtle);
  font-size:11px
}
.lesson-card:hover {
  border-color:var(--accent)
}
.activity-list {
  display:grid;
  gap:0
}
.activity {
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 0;
  border-bottom:1px solid var(--stroke)
}
.activity:last-child {
  border-bottom:0;
  padding-bottom:0
}
.activity:first-child {
  padding-top:0
}
.activity-icon {
  display:grid;
  place-items:center;
  flex:none;
  background:var(--surface-2);
  color:var(--accent);
  border-radius:13px;
  width:45px;
  height:45px
}
.activity-main {
  flex:1;
  min-width:0
}
.activity-main strong {
  display:block;
  font-size:13px;
  line-height:1.35
}
.activity-main span {
  font-size:11px;
  color:var(--subtle)
}
.activity.done .activity-main strong {
  text-decoration:line-through;
  color:var(--subtle)
}
.check-control {
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:1.5px solid var(--stroke);
  color:transparent;
  border-radius:100px;
  height:27px;
  width:27px;
  flex:none
}
.check-control.checked {
  background:var(--mint);
  color:#092920;
  border-color:var(--mint)
}
.countdown-card {
  background:linear-gradient(115deg,rgba(164,156,255,.12),rgba(123,215,199,.06));
  border-color:rgba(158,156,255,.26)
}
.countdown-date {
  color:var(--muted);
  font-size:12px
}
.countdown-number {
  font:800 47px/1.1 Manrope;
  letter-spacing:-.07em;
  margin:9px 0;
  color:var(--text)
}
.countdown-sub {
  font-size:12px;
  color:var(--muted)
}
.countdown-separator {
  height:1px;
  background:var(--stroke);
  margin:18px 0
}
.filters {
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin:20px 0
}
.filter-button {
  border:1px solid var(--stroke);
  background:var(--surface);
  color:var(--muted);
  border-radius:999px;
  padding:9px 14px;
  font-weight:700;
  font-size:12px
}
.filter-button.active,.filter-button:hover {
  background:var(--accent);
  color:#111429;
  border-color:var(--accent)
}
.search-field {
  position:relative;
  display:flex;
  align-items:center
}
.search-field .icon {
  position:absolute;
  left:15px;
  color:var(--subtle)
}
.search-field input {
  width:100%;
  padding:12px 14px 12px 46px;
  min-height:48px;
  border:1px solid var(--stroke);
  background:var(--surface);
  color:var(--text);
  border-radius:14px;
  outline:none
}
.search-field input:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(142,145,245,.18)
}
.details-header {
  display:flex;
  gap:15px;
  align-items:center;
  margin-bottom:19px
}
.details-hero {
  background:linear-gradient(120deg,var(--surface-2),var(--surface));
  border:1px solid var(--stroke);
  border-radius:23px;
  padding:32px;
  margin:21px 0
}
.details-hero h1 {
  margin:11px 0
}
.details-hero p {
  max-width:720px
}
.detail-body {
  display:grid;
  grid-template-columns:minmax(0,1fr) 275px;
  gap:22px;
  align-items:start
}
.prose h2 {
  margin:0 0 13px;
  font-size:22px
}
.prose h3 {
  margin:23px 0 10px
}
.prose p {
  line-height:1.85;
  margin-bottom:14px
}
.prose ul,.prose ol {
  padding-left:24px;
  color:var(--muted);
  line-height:1.8
}
.prose li {
  margin-bottom:8px
}
.example {
  border-left:3px solid var(--mint);
  background:var(--surface-2);
  padding:16px 20px;
  border-radius:0 12px 12px 0;
  color:var(--text);
  margin:19px 0
}
.divider {
  height:1px;
  background:var(--stroke);
  margin:25px 0
}
.sticky-panel {
  position:sticky;
  top:100px
}
.question {
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:21px;
  margin:17px 0
}
.question-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:13px
}
.question-title {
  font-weight:700;
  line-height:1.6;
  font-size:14px;
  margin-bottom:13px
}
.option-list {
  display:grid;
  gap:10px
}
.option-button {
  width:100%;
  text-align:left;
  border-radius:12px;
  background:var(--surface-2);
  border:1px solid var(--stroke);
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--text);
  font-size:13px
}
.option-button:hover:not(:disabled) {
  border-color:var(--accent);
  background:var(--surface-3)
}
.option-button .option-letter {
  border:1px solid var(--stroke);
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:8px;
  flex:none;
  font-weight:800;
  color:var(--muted)
}
.option-button.correct {
  background:rgba(97,199,167,.1);
  border-color:var(--mint)
}
.option-button.wrong {
  background:rgba(247,146,154,.1);
  border-color:var(--rose)
}
.answer-feedback {
  padding:15px;
  border-radius:12px;
  background:var(--surface-2);
  font-size:13px;
  margin-top:15px
}
.answer-feedback strong {
  display:block;
  margin-bottom:4px
}
.answer-feedback p {
  margin:0;
  line-height:1.65
}
.essay-editor {
  width:100%;
  background:var(--surface-2);
  border:1px solid var(--stroke);
  border-radius:14px;
  color:var(--text);
  padding:18px;
  min-height:360px;
  line-height:1.9;
  resize:vertical;
  outline:none
}
.essay-editor:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(142,145,245,.14)
}
.field {
  display:grid;
  gap:7px
}
.field label {
  font-size:12px;
  font-weight:800;
  color:var(--text)
}
.field input,.field select {
  width:100%;
  min-height:45px;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:11px 13px
}
.field input:focus,.field select:focus {
  outline:2px solid var(--accent);
  outline-offset:1px
}
.form-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px
}
.note {
  border:1px solid rgba(166,169,255,.28);
  background:rgba(166,169,255,.07);
  padding:14px 16px;
  border-radius:13px;
  color:var(--muted);
  font-size:12px
}
.note strong {
  color:var(--text)
}
.note.warning {
  border-color:rgba(239,199,142,.28);
  background:rgba(239,199,142,.07)
}
.checklist {
  display:grid;
  gap:11px
}
.checklist label {
  display:flex;
  align-items:flex-start;
  gap:11px;
  font-size:13px;
  line-height:1.5;
  color:var(--muted)
}
.checklist input {
  accent-color:var(--accent);
  height:18px;
  width:18px;
  flex:none;
  margin-top:1px
}
.flashcard {
  min-height:315px;
  width:100%;
  border:1px solid rgba(166,169,255,.35);
  background:radial-gradient(ellipse at 85% 0%,rgba(166,169,255,.16),transparent 45%),var(--surface);
  border-radius:26px;
  padding:38px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:17px;
  color:var(--text)
}
.flashcard:focus-visible {
  outline-offset:5px
}
.flashcard .card-question {
  font:800 clamp(1.4rem,3vw,2.2rem)/1.45 Manrope;
  max-width:760px
}
.flashcard .card-hint {
  font-size:12px;
  color:var(--muted)
}
.flashcard.is-revealed {
  border-color:var(--mint)
}
.flashcard-controls {
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:20px;
  flex-wrap:wrap
}
.quiz-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center
}
.choice-card {
  padding:20px;
  text-align:left;
  width:100%;
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--stroke);
  border-radius:16px;
  display:grid;
  gap:8px
}
.choice-card:hover {
  border-color:var(--accent)
}
.choice-card strong {
  font-size:16px
}
.choice-card span {
  color:var(--muted);
  font-size:12px
}
.chart-row {
  display:grid;
  grid-template-columns:110px 1fr 50px;
  align-items:center;
  gap:13px;
  margin:19px 0;
  font-size:12px
}
.chart-row span:first-child {
  font-weight:700
}
.chart-row span:last-child {
  text-align:right;
  color:var(--muted)
}
.stats-highlight {
  background:linear-gradient(145deg,var(--surface-2),var(--surface));
  text-align:center
}
.stats-highlight .metric-value {
  font-size:55px;
  color:var(--accent)
}
.empty-state {
  text-align:center;
  border:1px dashed var(--stroke);
  border-radius:18px;
  padding:35px 20px;
  color:var(--muted)
}
.empty-state strong {
  display:block;
  margin-bottom:6px
}
.empty-state .icon {
  width:32px;
  height:32px;
  color:var(--accent);
  margin-bottom:15px
}
.row-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center
}
.spaced {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:13px;
  flex-wrap:wrap
}
.settings-section {
  display:grid;
  gap:17px
}
.radio-cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
.radio-card {
  padding:15px;
  border:1px solid var(--stroke);
  border-radius:13px;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--surface-2);
  color:var(--text);
  text-align:left;
  font-size:13px
}
.radio-card.active {
  border-color:var(--accent);
  background:rgba(153,154,255,.1)
}
.profile-avatar {
  height:55px;
  width:55px;
  border-radius:17px;
  background:linear-gradient(125deg,var(--accent),#dcbbf1);
  display:grid;
  place-items:center;
  font:800 24px Manrope;
  color:#101529
}
.footer-links {
  display:flex;
  gap:15px;
  flex-wrap:wrap
}
.footer-links a {
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px
}
.toast {
  position:fixed;
  right:25px;
  bottom:25px;
  z-index:100;
  border:1px solid var(--stroke);
  background:var(--surface-2);
  padding:13px 19px;
  border-radius:13px;
  box-shadow:var(--shadow);
  font-size:13px;
  max-width:min(370px,calc(100% - 32px));
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity .2s,transform .2s
}
.toast.visible {
  opacity:1;
  transform:translateY(0)
}
.auth-dialog {
  border:1px solid var(--stroke);
  border-radius:24px;
  background:var(--surface);
  color:var(--text);
  padding:27px;
  width:min(450px,calc(100vw - 24px));
  box-shadow:var(--shadow);
  max-height:calc(100dvh - 35px)
}
.auth-dialog::backdrop {
  background:rgba(0,0,0,.7);
  backdrop-filter:blur(5px)
}
.dialog-close-row {
  display:flex;
  justify-content:flex-end
}
.auth-badge {
  height:57px;
  width:57px;
  background:var(--accent);
  color:#111629;
  border-radius:17px;
  display:grid;
  place-items:center;
  font-size:36px;
  margin-bottom:17px
}
.auth-dialog h2 {
  margin-bottom:6px
}
.auth-dialog p {
  font-size:13px
}
.auth-form {
  display:grid;
  gap:8px;
  margin-top:21px
}
.auth-form label {
  font-weight:800;
  font-size:12px;
  margin-top:6px
}
.auth-form input {
  border-radius:12px;
  padding:13px;
  background:var(--surface-2);
  border:1px solid var(--stroke);
  color:var(--text);
  min-width:0
}
.auth-form .button {
  margin-top:13px
}
.auth-footer {
  display:flex;
  gap:10px;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:16px
}
.text-button {
  border:0;
  background:transparent;
  color:var(--accent);
  font-weight:800;
  font-size:12px;
  padding:5px
}
.auth-message {
  min-height:1.3em;
  color:var(--muted);
  margin:15px 0 0
}
.auth-message.error {
  color:var(--rose)
}
.auth-message.success {
  color:var(--mint)
}

@media(min-width:1750px) {
  :root {
    --sidebar-width:295px
  }
  .sidebar {
    padding-left:26px;
    padding-right:26px
  }
  .page-content {
    padding-left:70px;
    padding-right:70px
  }
  .topbar {
    padding-left:70px;
    padding-right:70px
  }
}

@media(max-width:1200px) {
  .grid-4 {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .grid-3 {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .detail-body {
    grid-template-columns:minmax(0,1fr) 240px
  }
  .hero {
    grid-template-columns:1fr 150px
  }
  .sunburst {
    width:135px;
    height:135px
  }
}

@media(max-width:850px) {
  .sidebar {
    transform:translateX(-105%);
    transition:transform .22s ease;
    box-shadow:var(--shadow);
    width:min(295px,88vw)
  }
  .sidebar.open {
    transform:translateX(0)
  }
  .main-shell {
    width:100%;
    margin-left:0
  }
  .hamburger {
    display:grid
  }
  .topbar {
    height:68px;
    padding:0 22px
  }
  .page-content {
    padding:27px 23px 98px
  }
  .mobile-nav {
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:30;
    display:flex;
    justify-content:space-around;
    align-items:stretch;
    min-height:67px;
    padding-bottom:env(safe-area-inset-bottom);
    background:var(--glass);
    border-top:1px solid var(--stroke);
    backdrop-filter:blur(18px)
  }
  .mobile-nav a,.mobile-nav button {
    border:0;
    background:transparent;
    flex:1;
    min-width:0;
    color:var(--muted);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    font-size:10px;
    font-weight:800;
    padding:9px 3px
  }
  .mobile-nav .active {
    color:var(--accent)
  }
  .mobile-nav .icon {
    width:21px;
    height:21px
  }
  .site-footer {
    padding-bottom:105px
  }
  .toast {
    bottom:86px
  }
  .detail-body {
    grid-template-columns:1fr
  }
  .sticky-panel {
    position:static;
    order:-1
  }
}

@media(max-width:620px) {
  body {
    font-size:14px
  }
  .topbar {
    padding:0 17px
  }
  .topbar-eyebrow {
    font-size:10px;
    letter-spacing:.06em
  }
  .topbar-separator {
    padding:0 2px
  }
  .topbar-start,.topbar-actions {
    gap:10px
  }
  .sync-state {
    display:none
  }
  .account-button {
    padding:8px 11px
  }
  .account-button span:last-child {
    max-width:80px
  }
  .page-content {
    padding:22px 15px 90px
  }
  .grid-2,.grid-3 {
    grid-template-columns:1fr
  }
  .grid-4 {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .metric {
    min-height:125px;
    padding:16px
  }
  .metric-value {
    font-size:27px
  }
  .hero {
    display:block;
    padding:29px 22px;
    min-height:unset;
    border-radius:21px
  }
  .hero h1 {
    font-size:clamp(2rem,9vw,2.65rem)
  }
  .hero-illustration {
    display:none
  }
  .hero .button {
    min-height:42px
  }
  .card {
    border-radius:17px;
    padding:18px
  }
  .page-head {
    margin-bottom:21px
  }
  .page-head h1 {
    font-size:2.05rem
  }
  .section-head {
    align-items:start
  }
  .section-head h2 {
    font-size:1.4rem
  }
  .activity {
    gap:11px
  }
  .activity-icon {
    height:40px;
    width:40px
  }
  .details-hero {
    padding:23px 18px
  }
  .details-hero h1 {
    font-size:2rem
  }
  .form-row {
    grid-template-columns:1fr
  }
  .chart-row {
    grid-template-columns:85px 1fr 38px;
    gap:9px
  }
  .radio-cards {
    grid-template-columns:1fr
  }
  .site-footer {
    padding:20px 16px 98px
  }
  .hero-actions .button {
    flex:1
  }
  .auth-dialog {
    padding:19px
  }
}

@media(max-width:390px) {
  .grid-4 {
    grid-template-columns:1fr 1fr
  }
  .metric-value {
    font-size:24px
  }
  .metric-label {
    font-size:11px
  }
  .account-button span:last-child {
    display:none
  }
  .topbar-eyebrow {
    font-size:9px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    transition-duration:.01ms!important
  }
}

@media(prefers-contrast:more) {
  :root {
    --stroke:#6c789a;
    --muted:#d1d8ef;
    --subtle:#b7c0d5
  }
  :root[data-theme=light] {
    --muted:#344054;
    --subtle:#45536a;
    --stroke:#68758d
  }
  .button-primary {
    border:2px solid currentColor
  }
}


[hidden] {
  display:none!important
}
