:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #202333;
  --muted: #797d8d;
  --blue: #315af4;
  --blue-soft: #edf0ff;
  --line: #e8e9ee;
  --green: #20c77a;
  --orange: #ffb44a;
  --red: #f36562;
  --shadow: 0 4px 18px rgba(29, 31, 61, .045);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font: 500 14px/1.42 Manrope, Arial, sans-serif;
}
body.dark-theme {
  --bg: #151820;
  --surface: #242835;
  --ink: #f4f5f8;
  --muted: #a7aabc;
  --blue: #879dff;
  --blue-soft: #333b60;
  --line: #383d4c;
  --shadow: 0 5px 18px rgba(0, 0, 0, .12);
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
.app-shell { max-width: 560px; min-height: 100vh; margin: auto; padding: max(18px, env(safe-area-inset-top)) 18px calc(90px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.profile-button, .streak-pill { border: 0; background: transparent; padding: 0; display: flex; align-items: center; text-align: left; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #c6ceff, #907aff); color: white; font-weight: 800; font-size: 12px; box-shadow: 0 5px 14px #bac1f4; }
.profile-copy { display: grid; margin-left: 10px; }
.profile-copy strong { font-size: 14px; }
.profile-copy small, .streak-pill small { color: var(--muted); font-size: 10px; }
.streak-pill { border-radius: 18px; padding: 7px 10px; gap: 4px; background: #fff3e8; color: #ee7d26; }
.streak-pill b { font-size: 15px; }
.content { animation: rise .22s ease-out; }
@keyframes rise { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { color: var(--blue); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 700 23px/1.2 Unbounded, Manrope, sans-serif; letter-spacing: -.04em; margin-bottom: 6px; }
h2 { font-size: 17px; margin-bottom: 0; }
h3 { font-size: 14px; margin-bottom: 3px; }
.subtext { color: var(--muted); margin-bottom: 20px; }
.card { background: var(--surface); border-radius: 24px; padding: 17px; box-shadow: var(--shadow); margin-bottom: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 23px 2px 11px; }
.section-head h2 { margin: 0; }
.text-button { background: none; color: var(--blue); padding: 3px; border: 0; font-weight: 800; font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 4px; }
.quick-button { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 5px 18px rgba(52, 68, 128, .045); }
.quick-icon { display: grid; flex: 0 0 auto; place-items: center; width: 37px; height: 37px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); font-size: 18px; }
.quick-button:nth-child(2) .quick-icon { color: #df7b28; background: #fff2e7; }
.quick-button:nth-child(3) .quick-icon { color: var(--green); background: #e8faf1; }
.quick-button:nth-child(4) .quick-icon { color: #9b70e7; background: #f3edff; }
.quick-button b { display: block; font-size: 11px; }
.quick-button small { display: block; color: var(--muted); margin-top: 1px; font-size: 9px; }
.level-card { position: relative; overflow: hidden; color: white; background: linear-gradient(125deg, #6c5de7, #4e84ed); min-height: 158px; }
.level-card::after { content: ''; width: 170px; height: 170px; position: absolute; right: -46px; top: -62px; border: 25px solid rgba(255,255,255,.12); border-radius: 50%; }
.level-top, .xp-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.level-chip { background: rgba(255,255,255,.18); border-radius: 12px; padding: 6px 9px; font-size: 11px; font-weight: 800; }
.level-number { font: 700 28px Unbounded, sans-serif; }
.xp-row { margin-top: 24px; font-size: 12px; }
.xp-bar, .progress-bar { height: 8px; overflow: hidden; background: rgba(255,255,255,.28); border-radius: 9px; margin-top: 7px; position: relative; z-index: 1; }
.xp-bar span, .progress-bar span { display: block; height: 100%; border-radius: inherit; background: white; }
.schedule-card { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; }
.date-badge { display: grid; place-items: center; align-content: center; width: 52px; height: 52px; border-radius: 17px; color: var(--blue); background: var(--blue-soft); font-weight: 800; line-height: 1.05; }
.date-badge small { color: #8792f3; font-size: 10px; font-weight: 700; }
.time { color: var(--muted); font-size: 11px; }
.status { border-radius: 10px; padding: 5px 8px; background: #e9f9f2; color: #1da771; font-size: 10px; font-weight: 800; }
.path-summary { display: flex; gap: 13px; align-items: center; }
.circle-progress { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--green) 0 42%, #ebf0f6 42%); display: grid; place-items: center; }
.circle-progress::before { content: attr(data-value); display: grid; place-items: center; width: 49px; height: 49px; background: white; border-radius: 50%; font-size: 12px; font-weight: 800; }
.path-summary p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.next-node { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; font-size: 12px; }
.tag { color: #da8432; background: #fff4e9; border-radius: 9px; padding: 3px 7px; font-size: 10px; font-weight: 800; }
.homework-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; }
.task-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #fff0ef; font-size: 20px; }
.task-meta { color: var(--muted); font-size: 11px; }
.arrow { border: 0; background: #f2f4f9; width: 30px; height: 30px; border-radius: 10px; color: var(--blue); font-size: 19px; }
.achievement-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: none; }
.achievement-row::-webkit-scrollbar { display: none; }
.achievement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.achievement { --achievement-accent: #5277e9; display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 218px; padding: 15px 12px 13px; background: #f4f4f5; border: 1px solid transparent; border-radius: 17px; text-align: center; }
.achievement-row .achievement { flex: 0 0 162px; }
.achievement.theory { --achievement-accent: #426ce8; }
.achievement.homework { --achievement-accent: #de7743; }
.achievement.tests { --achievement-accent: #2caa76; }
.achievement.essays { --achievement-accent: #9661d0; }
.achievement.regularity { --achievement-accent: #d59b24; }
.achievement-art { display: grid; place-items: center; width: 98px; height: 98px; margin: 0 auto 10px; }
.achievement-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.achievement h3 { margin: 0 0 4px; font-size: 12px; line-height: 1.2; }
.achievement p { margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.achievement-footer { width: 100%; margin-top: auto; }
.achievement-progress { height: 6px; width: 100%; overflow: hidden; border-radius: 8px; background: #dfdfe2; }
.achievement-progress span { display: block; height: 100%; border-radius: inherit; background: var(--achievement-accent); }
.achievement small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 800; }
.achievement.earned small { color: var(--achievement-accent); }
.achievement-section { margin: 24px 0; }
.achievement-section .section-head { margin-bottom: 10px; align-items: flex-end; }
.achievement-section .section-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.achievement-section .section-head > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 800; }
.achievement-summary { position: relative; overflow: hidden; color: white; background: #315af4; border-color: #315af4; min-height: 133px; }
.achievement-summary::after { content: '★'; position: absolute; right: -2px; top: -21px; color: rgba(255,255,255,.13); font-size: 144px; line-height: 1; }
.achievement-total { position: relative; z-index: 1; display: block; font: 700 30px/1.2 Unbounded, Manrope, sans-serif; letter-spacing: -.06em; }
.achievement-summary h2 { position: relative; z-index: 1; margin: 4px 0 0; font-size: 13px; }
.achievement-summary p { position: relative; z-index: 1; margin: 2px 0 11px; color: #dfe6ff; font-size: 10px; }
.achievement-summary-bar { position: relative; z-index: 1; height: 6px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.3); }
.achievement-summary-bar span { display: block; height: 100%; border-radius: inherit; background: #d7f279; }
.profile-link-icon { width: 45px; height: 45px; border-radius: 16px; display: grid; place-items: center; background: #ffcf77; font-size: 23px; }
.tabbar { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(560px, 100%); display: flex; justify-content: space-around; padding: 9px max(12px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #e9edf5; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.nav-item { display: grid; gap: 2px; place-items: center; color: #a0a9bd; border: 0; background: none; padding: 2px 5px; font-size: 9px; font-weight: 700; }
.nav-item span { height: 22px; color: currentColor; font-size: 22px; line-height: 20px; }
.nav-item.active { color: var(--blue); }
.view-header { margin: 0 2px 19px; }
.view-header p { margin: 5px 0 0; color: var(--muted); }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.segmented { display: flex; padding: 3px; border-radius: 12px; background: #e9edf5; }
.segmented button { padding: 6px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(47,56,104,.1); }
.filter-button { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 11px; }
.week-strip { display: flex; gap: 7px; overflow-x: auto; padding: 3px 0 8px; scrollbar-width: none; }
.day-button { min-width: 51px; padding: 8px 5px; display: grid; gap: 2px; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--muted); }
.day-button b { color: var(--ink); font-size: 13px; }
.day-button small { font-size: 9px; font-weight: 700; }
.day-button.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.day-button.active b { color: var(--blue); }
.plan-day { padding-left: 11px; border-left: 3px solid var(--blue); margin: 14px 1px; }
.plan-day.homework-plan { border-color: var(--orange); }
.plan-day.done-plan { border-color: var(--green); }
.plan-label { color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.homework-plan .plan-label { color: #e88b3a; }
.done-plan .plan-label { color: var(--green); }
.plan-day h3 { margin: 3px 0 2px; }
.plan-day p { margin: 0; color: var(--muted); font-size: 11px; }
.plan-time { display: block; color: var(--ink); margin-top: 6px; font-size: 11px; font-weight: 800; }
.path-map { position: relative; padding: 7px 0 1px; }
.path-map::before { content: ''; position: absolute; left: 24px; top: 27px; bottom: 27px; width: 2px; background: #e2e7f0; }
.path-node { position: relative; display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; min-height: 80px; }
.node-dot { z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 18px; color: white; background: #dce1eb; font-size: 19px; }
.path-node.done .node-dot { background: var(--green); }
.path-node.current .node-dot { background: var(--blue); box-shadow: 0 0 0 7px var(--blue-soft); }
.path-node p { color: var(--muted); font-size: 11px; margin: 2px 0 0; }
.node-state { color: var(--muted); font-size: 10px; font-weight: 800; }
.path-node.done .node-state { color: var(--green); }
.path-node.current .node-state { color: var(--blue); }
.path-intro { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; color: var(--muted); font-size: 11px; }
.path-carousel { display: flex; gap: 12px; overflow-x: auto; margin: 0 -18px; padding: 5px 18px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.path-carousel::-webkit-scrollbar { display: none; }
.path-block { flex: 0 0 276px; min-height: 252px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: var(--shadow); scroll-snap-align: start; }
.path-block.done { background: linear-gradient(145deg, #f2fffa, #ffffff); border-color: #c9f2df; }
.path-block.current { border: 2px solid var(--blue); box-shadow: 0 11px 27px rgba(84, 104, 242, .16); }
.path-block.locked { background: #fafbfe; color: #8892a8; }
.block-top { display: flex; align-items: center; justify-content: space-between; }
.block-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: white; background: var(--blue); font-weight: 800; font-size: 12px; }
.done .block-number { background: var(--green); }
.locked .block-number { background: #dce1eb; }
.block-state { font-size: 10px; font-weight: 800; color: var(--blue); }
.done .block-state { color: var(--green); }
.locked .block-state { color: var(--muted); }
.path-block h3 { margin: 13px 0 3px; font-size: 16px; line-height: 1.25; }
.path-block p { margin: 0; color: var(--muted); font-size: 11px; }
.block-progress { height: 6px; margin: 13px 0 10px; overflow: hidden; border-radius: 10px; background: #edf1f6; }
.block-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.done .block-progress span { background: var(--green); }
.block-topics { padding: 0; margin: 0; list-style: none; }
.block-topics li { position: relative; padding: 5px 0 5px 17px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.28; }
.block-topics li::before { content: '○'; position: absolute; left: 0; color: var(--muted); }
.done .block-topics li::before { content: '✓'; color: var(--green); font-weight: 800; }
.current .block-topics li:first-child::before, .current .block-topics li:nth-child(2)::before { content: '✓'; color: var(--green); font-weight: 800; }
.current .block-topics li:nth-child(3)::before { content: '●'; color: var(--blue); }
.more-topics { margin-top: auto; color: var(--blue); font-size: 10px; font-weight: 800; }
.essay-access { display: grid; grid-template-columns: 47px 1fr auto; gap: 11px; align-items: center; margin-bottom: 15px; padding: 14px; color: #443372; border-radius: 21px; background: linear-gradient(135deg, #f5edff, #fff7ea); }
.essay-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 16px; background: white; box-shadow: 0 4px 10px rgba(99,66,156,.12); font-size: 22px; }
.essay-access h3 { margin: 0; }
.essay-access p { margin: 2px 0 0; color: #796b9e; font-size: 10px; }
.essay-hero { color: #fff; background: linear-gradient(135deg, #7659c8, #e9879e); }
.essay-hero .eyebrow, .essay-hero p { color: #f6eaff; }
.essay-hero .progress-bar { background: rgba(255,255,255,.28); }
.essay-session { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.essay-session:last-child { border-bottom: 0; }
.essay-session.locked { opacity: .52; }
.essay-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #8357c6; background: #f4edff; font-weight: 800; font-size: 12px; }
.essay-session h3 { margin: 0; }
.essay-session p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.essay-lock { color: var(--muted); font-size: 16px; }
.payment-card { color: #5c391d; background: linear-gradient(135deg, #fff1de, #fff9ef); border: 1px solid #ffe1bd; }
.payment-card .section-head { margin: 0 0 10px; }
.payment-card .section-head h2, .payment-card .text-button { color: #70441e; }
.payment-line { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; }
.payment-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: white; font-size: 21px; }
.payment-line p { margin: 2px 0 0; color: #9a704a; font-size: 10px; }
.payment-sum { text-align: right; font-size: 15px; font-weight: 800; }
.payment-sum small { display: block; color: #d57829; font-size: 9px; }
.settings-group { margin-bottom: 14px; }
.settings-group h2 { margin: 4px 2px 9px; font-size: 14px; }
.setting-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row h3 { margin: 0; }
.setting-row p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.switch { position: relative; display: inline-block; width: 42px; height: 25px; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 99px; background: #dce2ed; transition: .2s; }
.switch-track::after { content: ''; position: absolute; width: 19px; height: 19px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 4px rgba(0,0,0,.16); transition: .2s; }
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track::after { transform: translateX(17px); }
body.dark-theme .path-block, body.dark-theme .day-button, body.dark-theme .material-tabs button, body.dark-theme .achievement { background: var(--surface); border-color: var(--line); }
body.dark-theme .path-block.done { background: linear-gradient(145deg, #203c3a, var(--surface)); }
body.dark-theme .path-block.locked { background: #1b2236; }
body.dark-theme .essay-access { background: linear-gradient(135deg, #372b58, #463929); color: #f4ecff; }
body.dark-theme .essay-access p { color: #d5c8f0; }
body.dark-theme .payment-card { color: #ffe9d3; background: linear-gradient(135deg, #50351e, #362c25); border-color: #6a492b; }
body.dark-theme .payment-card .section-head h2, body.dark-theme .payment-card .text-button { color: #ffe9d3; }
body.dark-theme .payment-line p, body.dark-theme .payment-sum small { color: #eec299; }
body.dark-theme .payment-icon { background: #674525; }
body.dark-theme .achievement { background: var(--surface); border-color: var(--line); }
body.dark-theme .achievement-summary { background: #3652ba; }
body.dark-theme .achievement-progress { background: #3e4352; }
.assignment { margin-bottom: 11px; }
.assignment-top { display: flex; gap: 11px; align-items: center; }
.assignment-title { flex: 1; }
.assignment-title p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.assignment-details { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; color: var(--muted); font-size: 11px; }
.action-button { border: 0; border-radius: 12px; padding: 9px 12px; color: white; background: var(--blue); font-size: 11px; font-weight: 800; }
.action-button.secondary { color: var(--blue); background: var(--blue-soft); }
.action-button:disabled { color: #8790a4; background: #eef1f6; cursor: not-allowed; }
.file-input { display: none; }
.review-result { display: flex; gap: 7px; font-size: 10px; }
.right { text-align: right; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { min-height: 112px; padding: 15px; }
.stat-icon { font-size: 20px; }
.stat-value { display: block; margin-top: 12px; font: 700 21px Unbounded, sans-serif; letter-spacing: -.07em; }
.stat-label { color: var(--muted); font-size: 10px; }
.chart-card { padding-bottom: 13px; }
.chart { height: 109px; display: flex; gap: 8px; align-items: end; padding-top: 13px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; min-width: 21px; position: relative; border-radius: 8px 8px 3px 3px; background: linear-gradient(#8d9cff, #5468f2); }
.bar b { position: absolute; bottom: calc(100% + 3px); width: 100%; text-align: center; color: var(--muted); font-size: 9px; }
.bar span { display: block; position: absolute; top: calc(100% + 5px); width: 100%; text-align: center; color: var(--muted); font-size: 9px; }
.profile-hero { text-align: center; padding-top: 22px; }
.profile-hero .avatar { width: 64px; height: 64px; margin: 0 auto 10px; font-size: 15px; border-radius: 22px; }
.profile-hero p { color: var(--muted); margin-bottom: 0; font-size: 12px; }
.profile-level { background: linear-gradient(125deg, #6c5de7, #4e84ed); color: white; }
.profile-level .xp-row { margin-top: 11px; }
.profile-level .xp-bar { margin-top: 6px; }
.material-banner { color: white; background: linear-gradient(135deg, #2469b8, #3fc2bc); }
.material-banner p { margin: 5px 0 0; color: #d8fffd; font-size: 12px; }
.material-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.material-tabs button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px; background: white; color: var(--muted); font-size: 10px; font-weight: 800; }
.material-tabs button.active { color: var(--blue); border-color: #cbd2ff; background: var(--blue-soft); }
.material-row { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.material-row:last-child { border-bottom: 0; padding-bottom: 0; }
.material-type { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-size: 19px; background: #eaf7ff; }
.material-row:nth-child(2) .material-type { background: #f6eeff; }
.material-row:nth-child(3) .material-type { background: #fff4e8; }
.material-row p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 95px; transform: translate(-50%, 15px); padding: 10px 14px; border-radius: 14px; background: #1e2745; color: white; box-shadow: 0 12px 25px rgba(0,0,0,.18); font-size: 12px; opacity: 0; pointer-events: none; transition: .25s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Dashboard visual system: editorial type, clear actions, generous cards. */
.app-shell { padding: max(18px, env(safe-area-inset-top)) 18px calc(104px + env(safe-area-inset-bottom)); }
.topbar { margin: 1px 0 31px; }
.brand, .topbar-actions { display: flex; align-items: center; }
.brand { gap: 9px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: #315af4; font: 700 23px/1 Unbounded, Manrope, sans-serif; letter-spacing: -.12em; padding-right: 3px; }
.brand-copy { display: grid; line-height: 1.14; }
.brand-copy strong { font-size: 14px; font-weight: 800; letter-spacing: -.04em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
.topbar-actions { gap: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #e5d5c1; color: #5f4939; box-shadow: none; }
.streak-pill { height: 38px; padding: 0 11px; border: 1px solid #fcebd2; border-radius: 13px; background: #fff5e5; color: #aa551b; }
.streak-pill b { font-size: 13px; }
.eyebrow { font-size: 10px; letter-spacing: .07em; }
h1 { font: 700 27px/1.16 Unbounded, Manrope, sans-serif; letter-spacing: -.06em; }
h2 { font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
h3 { font-size: 14px; font-weight: 800; letter-spacing: -.025em; }
.home-intro { margin: 0 1px 23px; }
.home-intro h1 { margin: 9px 0 7px; }
.home-intro p { color: var(--muted); margin: 0; font-size: 12px; }
.wave { color: #f46256; }
.card { border: 1px solid var(--line); border-radius: 21px; padding: 17px; box-shadow: var(--shadow); }
.section-head { margin: 25px 1px 12px; }
.home-intro + .section-head { margin-top: 0; }
.text-button { color: var(--blue); font-size: 11px; }
.quick-grid { gap: 9px; }
.quick-button { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 13px; min-height: 112px; padding: 15px; border-radius: 19px; box-shadow: var(--shadow); }
.quick-button b { font-size: 13px; letter-spacing: -.03em; }
.quick-button small { font-size: 10px; }
.quick-icon { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.quick-button:nth-child(1) .quick-icon { background: #efe9ff; color: #733de4; }
.quick-button:nth-child(2) .quick-icon { background: #ffeec7; color: #c67900; }
.quick-button:nth-child(3) .quick-icon { background: #daf9e9; color: #0ea96a; }
.quick-button:nth-child(4) .quick-icon { background: #ffe9e7; color: #f16159; }
.focus-card { position: relative; overflow: hidden; min-height: 205px; padding: 20px; border: 0; color: white; background: #315af4; box-shadow: 0 11px 24px rgba(49, 90, 244, .16); }
.focus-card::after { content: ''; position: absolute; width: 156px; height: 156px; border: 28px solid rgba(255,255,255,.1); border-radius: 45px; transform: rotate(30deg); top: -95px; right: -60px; }
.focus-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.focus-kicker { color: #d5dfff; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.focus-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #d2f577; color: #183caa; font-size: 26px; }
.focus-card h3 { max-width: 320px; margin: 16px 0 6px; font: 700 18px/1.25 Unbounded, Manrope, sans-serif; letter-spacing: -.045em; position: relative; z-index: 1; }
.focus-card p { margin: 0 0 20px; color: #dce4ff; font-size: 11px; }
.focus-button { display: flex; align-items: center; gap: 15px; min-height: 37px; padding: 0 13px; border: 0; border-radius: 11px; background: white; color: #234ad0; font-size: 11px; font-weight: 800; }
.focus-button span { font-size: 15px; }
.lesson-card { padding: 14px; }
.lesson-card .schedule-card { grid-template-columns: 54px 1fr 19px; gap: 12px; }
.date-badge { width: 54px; height: 58px; border-radius: 13px; background: #efe9ff; color: #6d39da; }
.date-badge b { font-size: 19px; }
.date-badge small { color: #7d5cc5; }
.card-kicker { display: block; margin-bottom: 3px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.schedule-arrow { color: var(--blue); font-size: 18px; }
.home-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.home-mini-card { min-height: 156px; display: flex; align-items: flex-start; flex-direction: column; padding: 15px; text-align: left; border: 0; border-radius: 20px; }
.home-mini-card .mini-symbol { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 15px; border-radius: 50%; background: rgba(255,255,255,.55); font-size: 18px; }
.home-mini-card small { font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.home-mini-card strong { margin-top: 5px; font: 700 15px/1.24 Unbounded, Manrope, sans-serif; letter-spacing: -.05em; }
.path-mini { color: #32543f; background: #d9f3e1; }
.achievement-mini { color: #4e3b77; background: #ebe2ff; }
.mini-progress { width: 100%; height: 5px; margin-top: auto; border-radius: 9px; background: rgba(50,84,63,.16); }
.mini-progress i { display: block; width: 21%; height: 100%; border-radius: inherit; background: #2caf71; }
.mini-detail { margin-top: auto; font-size: 10px; font-weight: 800; }
.payment-card { color: #674019; background: #fff1d8; border: 1px solid #ffe5b5; box-shadow: none; }
.payment-icon { border-radius: 12px; font-size: 20px; font-weight: 800; }
.payment-line p { color: #9f754d; }
.tabbar { border-top: 1px solid var(--line); background: rgba(255,255,255,.96); }
.nav-item { min-width: 52px; font-size: 9px; }
.nav-item span { font-size: 22px; }
.nav-item.active { font-weight: 800; }
.view-header { margin-bottom: 21px; }
.view-header h1 { margin-top: 9px; }
.view-header p { font-size: 12px; }
.path-block { border-radius: 21px; }
.path-block.current { border-color: #315af4; }
.path-overview-card { padding: 18px; }
.path-overview { display: grid; grid-template-columns: 1fr 1fr; }
.path-metric { min-width: 0; padding: 2px 15px 2px 1px; }
.path-metric + .path-metric { border-left: 1px solid var(--line); padding: 2px 0 2px 15px; }
.path-metric-label { max-width: 95px; min-height: 36px; color: var(--muted); font-size: 10px; line-height: 1.25; font-weight: 700; }
.path-metric-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 7px; }
.path-metric-bottom strong { white-space: nowrap; font: 700 24px/1.1 Unbounded, Manrope, sans-serif; letter-spacing: -.07em; }
.path-metric-bottom strong span { color: var(--muted); font-size: 17px; }
.path-ring { --ring-color: #8360ec; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--ring-color) var(--progress), var(--line) 0); display: grid; place-items: center; }
.path-ring::after { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); }
.task-metric .path-ring { --ring-color: #25b981; }
.path-overview-note { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.path-list-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 25px 2px 11px; }
.path-list-title span { color: var(--muted); font-size: 11px; font-weight: 700; }
.path-accordion { overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); }
.path-section + .path-section { border-top: 1px solid var(--line); }
.path-section-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 78px; padding: 14px; border: 0; background: transparent; text-align: left; }
.path-section-toggle:hover { background: var(--blue-soft); }
.path-section-number { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 800; }
.path-section.done .path-section-number { color: #14825e; background: #e7f8f0; }
.path-section-heading { min-width: 0; flex: 1; }
.path-section-heading strong { display: block; font-size: 12px; line-height: 1.25; }
.path-section-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.path-section-state { color: var(--blue); font-size: 9px; font-weight: 800; }
.path-section.done .path-section-state { color: #169366; }
.path-section.locked .path-section-state { color: var(--muted); }
.path-chevron { color: var(--muted); font-size: 20px; line-height: 1; transform: rotate(0deg); transition: transform .2s ease; }
.path-section.expanded .path-chevron { transform: rotate(180deg); }
.path-section-panel { padding: 0 14px 8px; }
.path-section-panel[hidden] { display: none; }
.path-section-progress { height: 4px; margin: 0 0 10px; overflow: hidden; border-radius: 5px; background: var(--line); }
.path-section-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.path-section.done .path-section-progress span { background: #25b981; }
.path-topic-list { padding: 0; margin: 0; list-style: none; }
.path-topic { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; row-gap: 4px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); }
.path-topic-number { color: var(--muted); font-size: 10px; font-weight: 800; }
.path-topic-copy strong { display: block; font-size: 11px; line-height: 1.28; }
.path-topic-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.path-topic-status { grid-column: 2; width: fit-content; padding: 4px 7px; border-radius: 7px; background: #f2f3f6; color: #777d8a; font-size: 9px; font-weight: 800; }
.path-topic-status.complete { color: #14825e; background: #e7f8f0; }
.path-topic.topic-current .path-topic-copy strong { color: var(--blue); }
.path-accordion + .essay-access { width: 100%; text-align: left; }
.essay-access { border: 0; background: #ece6ff; box-shadow: none; }
.essay-hero { background: #7659c8; }
.material-banner { background: #335cdf; }
.profile-level { background: #315af4; }
.circle-progress { background: conic-gradient(var(--green) 0 21%, #ebf0f6 21%); }
.status { border-radius: 8px; }
.tag { border-radius: 8px; }
body.dark-theme .brand-mark { background: #4968e7; }
body.dark-theme .quick-button { background: var(--surface); border-color: var(--line); }
body.dark-theme .streak-pill { background: #493a2d; border-color: #625040; color: #ffd393; }
body.dark-theme .tabbar { background: rgba(36,40,53,.96); }
body.dark-theme .path-mini { background: #2b4b3d; color: #d9f3e1; }
body.dark-theme .achievement-mini { background: #40345d; color: #efe5ff; }
body.dark-theme .focus-card, body.dark-theme .profile-level, body.dark-theme .material-banner { background: #3652ba; }
body.dark-theme .lesson-card .date-badge { background: #40345d; color: #e3ceff; }
body.dark-theme .focus-button { background: #f4f5fa; color: #253ea6; }
body.dark-theme .card-kicker { color: #a8b9ff; }
body.dark-theme .circle-progress::before { background: var(--surface); }
body.dark-theme .path-section.done .path-section-number, body.dark-theme .path-topic-status.complete { background: #24473e; color: #87e6ba; }
body.dark-theme .path-topic-status { background: #343947; color: #b0b5c3; }
.live-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.live-actions .quick-button { min-width: 0; }
.live-empty { margin: 0; color: var(--muted); font-size: 12px; }
.live-lesson, .live-material { display: flex; align-items: center; gap: 12px; }
.live-lesson-icon, .live-material-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; color: var(--blue); background: var(--blue-soft); font-size: 20px; }
.live-lesson p, .live-material p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.live-material > div { flex: 1; min-width: 0; }
.live-assignment-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.live-kind { color: var(--blue); font-size: 10px; font-weight: 800; }
.live-status { color: var(--muted); font-size: 10px; font-weight: 800; }
.live-result { margin: 0 0 10px; color: #159360; font-weight: 800; font-size: 12px; }
.live-comment { margin: 0 0 12px; padding: 10px; border-radius: 11px; background: var(--blue-soft); font-size: 11px; }
.live-upload { display: inline-block; width: fit-content; }
.live-student-list { display: flex; flex-wrap: wrap; gap: 8px; }
.live-student-choice { padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-weight: 800; font-size: 11px; }
.live-student-choice.active { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.live-pending { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; }
.live-pending + .live-pending { border-top: 1px solid var(--line); margin-top: 12px; }
.live-pending strong, .live-pending small { display: block; }
.live-pending small { color: var(--muted); font-size: 10px; }
.live-form-card form { display: grid; gap: 9px; margin-top: 12px; }
.live-form-card input, .live-form-card select, .live-form-card textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 12px; }
.live-form-card textarea { min-height: 66px; resize: vertical; }
.live-form-card .action-button { justify-self: start; }
.live-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live-progress-list > h3 { margin: 16px 0 8px; }
.live-progress-list > h3:first-child { margin-top: 0; }
.live-progress-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10px; }
.live-progress-row label { white-space: nowrap; color: var(--muted); font-size: 9px; }
.live-progress-row input { accent-color: var(--blue); }
.live-photo-dialog { max-width: min(94vw, 600px); max-height: 85vh; padding: 10px; border: 0; border-radius: 15px; background: var(--surface); }
.live-photo-dialog::backdrop { background: rgba(13, 18, 39, .72); }
.live-photo-dialog > button { display: block; margin-left: auto; margin-bottom: 7px; }
.live-photo-dialog img { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; }
.live-soon { color: var(--muted); font-size: 10px; font-weight: 800; }
.material-row { grid-template-columns: 43px minmax(0, 1fr) auto; }
.material-copy { min-width: 0; }
.material-copy h3 { overflow-wrap: anywhere; }
.material-open { display: inline-flex; align-items: center; gap: 5px; padding: 8px 9px; border: 0; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.material-open:disabled { opacity: .55; cursor: wait; }
.icon-arrow-up-right { display: inline-block; width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.icon-spark { display: block; width: 23px; height: 23px; }
.text-button, .mini-detail { display: inline-flex; align-items: center; gap: 4px; }
.schedule-arrow .icon-arrow-up-right { width: 21px; height: 21px; }
.assignment-top .status, .assignment-top .tag { flex: 0 0 auto; white-space: nowrap; }
.assignment-details > div { min-width: 0; }
.live-revision { color: #dc6072; background: #fff0ef; }
.live-upload { cursor: pointer; white-space: nowrap; }
.live-week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: capitalize; }
.live-week-nav button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: var(--surface); color: var(--blue); font-size: 20px; }
.live-muted { color: var(--muted); font-size: 11px; }
.live-stat-icon { color: var(--blue); background: var(--blue-soft); }
.live-settings-icon { color: var(--blue); background: var(--blue-soft); }
.live-attendance-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.live-attendance-row:last-child { border-bottom: 0; }
.live-attendance-row span { flex: 1; min-width: 0; }
.live-attendance-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.live-attendance-row input { accent-color: var(--blue); }
body.dark-theme .material-open, body.dark-theme .live-week-nav button { background: var(--blue-soft); color: var(--blue); }
body.dark-theme .live-revision { background: #543039; color: #ffb3c0; }
@media (min-width: 500px) {
  .achievement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .app-shell { padding-left: 13px; padding-right: 13px; }
  .card { border-radius: 19px; }
  .nav-item { font-size: 8px; min-width: 46px; }
  .quick-button { min-height: 105px; padding: 12px; }
  .home-mini-card { padding: 12px; }
  .achievement-grid { gap: 8px; }
  .achievement { padding: 12px 9px; min-height: 208px; }
  .achievement-art { width: 84px; height: 84px; }
  .path-metric-bottom strong { font-size: 21px; }
  .path-metric-bottom strong span { font-size: 15px; }
  .path-section-toggle { gap: 7px; padding: 12px 10px; }
  .path-section-state { font-size: 8px; }
}
