@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
  --ink: #101522;
  --muted: #6b7180;
  --navy: #08111f;
  --navy-soft: #101c30;
  --cream: #f7f5ef;
  --paper: #fffefa;
  --line: #e5e2da;
  --amber: #faaf44;
  --amber-pale: #fff1d9;
  --blue: #5885d7;
  --pink: #d77082;
  --green: #2f9a72;
  --shadow: 0 16px 45px rgba(30, 30, 25, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Noto Sans SC", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; z-index: 2; display: flex; flex-direction: column; width: 258px; height: 100vh; padding: 32px 20px 24px; color: #e6edf8; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; color: inherit; font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: .03em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: var(--navy); background: var(--amber); border-radius: 9px; font-family: Georgia, serif; font-size: 17px; font-weight: bold; transform: rotate(-6deg); }
.brand-mark span { color: #a14b29; }
.navigation { display: grid; gap: 7px; margin-top: 60px; }
.nav-link { display: flex; align-items: center; gap: 15px; padding: 12px; border-radius: 9px; color: #9facbf; font-size: 14px; text-decoration: none; transition: .2s ease; }
.nav-link span { width: 18px; color: #c7d1e0; font-size: 19px; text-align: center; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-link.active span { color: var(--amber); }
.sidebar-note { margin-top: auto; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: linear-gradient(140deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); }
.sidebar-note strong { display: block; margin: 5px 0 10px; color: #fff; font-size: 17px; }.sidebar-note p:last-child { margin: 13px 0 0; color: #9ba9be; font-size: 11px; line-height: 1.6; }
.progress-track, .card-progress { overflow: hidden; height: 5px; border-radius: 10px; background: rgba(255,255,255,.12); }.progress-track span, .card-progress span { display: block; height: 100%; border-radius: inherit; background: var(--amber); transition: width .35s ease; }

main { grid-column: 2; min-width: 0; }.topbar { display: flex; align-items: center; justify-content: space-between; height: 80px; padding: 0 clamp(25px, 5vw, 74px); border-bottom: 1px solid var(--line); }.crumb { color: var(--muted); font-size: 12px; }.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,154,114,.11); }.top-actions { display: flex; align-items: center; gap: 20px; }.text-button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; }.text-button:hover { color: var(--ink); }.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: #58708e; font-size: 12px; font-weight: bold; }
.section { width: min(1170px, calc(100% - 50px)); margin: 0 auto; }.hero { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 405px; align-items: center; gap: 20px; padding: 66px 34px 56px; }.eyebrow { margin: 0; color: #9b7641; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .12em; }.hero h1 { max-width: 700px; margin: 12px 0 16px; font-size: clamp(36px, 4.1vw, 57px); line-height: 1.21; letter-spacing: -.055em; }.hero h1 em { color: #a76c25; font-family: "Playfair Display", serif; font-weight: 600; }.hero-copy { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }.hero-actions { display: flex; gap: 12px; margin-top: 29px; }.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; transition: .2s ease; }.primary-button { color: #fff; background: var(--navy); box-shadow: 0 5px 14px rgba(8,17,31,.14); }.primary-button:hover { background: #1b2d48; transform: translateY(-1px); }.primary-button span { color: var(--amber); font-size: 18px; }.secondary-button { color: #4e5560; border-color: #d7d4cc; background: rgba(255,255,255,.65); }.secondary-button:hover { border-color: #9d9c98; }
.hero-orbit { position: relative; width: 245px; height: 245px; justify-self: center; }.orbit-ring { position: absolute; inset: 9px; border: 1px solid #ded7ca; border-radius: 50%; }.ring-one { transform: rotate(50deg) scaleX(.55); }.ring-two { transform: rotate(-35deg) scaleY(.55); }.orbit-core { position: absolute; inset: 84px; display: grid; place-items: center; border-radius: 50%; color: #fff5e3; background: var(--navy); box-shadow: 0 0 0 12px rgba(250,175,68,.1), 0 13px 30px rgba(8,17,31,.2); font-family: Georgia, serif; font-size: 31px; font-weight: bold; }.orbit-tag { position: absolute; padding: 4px 8px; border: 1px solid #e3ded1; border-radius: 10px; color: #766b5e; background: #fffdf8; font-size: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }.tag-one { top: 17px; right: 20px; }.tag-two { bottom: 42px; left: -7px; }.tag-three { right: -7px; bottom: 25px; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.metric-card { position: relative; display: flex; align-items: center; gap: 13px; min-height: 102px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.5); }.metric-icon { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; border-radius: 10px; font-size: 19px; }.metric-icon.amber { color: #bd7424; background: var(--amber-pale); }.metric-icon.blue { color: #2f65b7; background: #e7efff; }.metric-icon.pink { color: #ad5060; background: #ffe8ea; }.metric-card p { margin: 0 0 3px; color: var(--muted); font-size: 11px; }.metric-card strong { font-size: 23px; letter-spacing: -.04em; }.metric-card small { color: #727885; font-size: 11px; font-weight: 500; letter-spacing: 0; }.metric-trend, .metric-link { position: absolute; right: 16px; bottom: 15px; color: #8490a2; font-size: 10px; }.metric-link { color: #8b672f; text-decoration: none; }.metric-link:hover { text-decoration: underline; }

.content-grid, .lower-grid { display: grid; grid-template-columns: 1.52fr 1fr; gap: 20px; margin-top: 22px; }.panel { border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: var(--shadow); }.today-panel { padding: 25px; }.panel-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.panel-heading h2, .section-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.04em; }.panel-heading > span { padding-top: 7px; color: #94713b; font-family: "DM Mono", monospace; font-size: 10px; }.task-list { margin-top: 20px; border-top: 1px solid #eeebe5; }.task-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 65px; border-bottom: 1px solid #eeebe5; cursor: pointer; }.task-check { position: absolute; width: 1px; height: 1px; opacity: 0; }.custom-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid #c8c8c5; border-radius: 5px; transition: .15s ease; }.task-check:checked + .custom-check { border-color: var(--green); background: var(--green); }.task-check:checked + .custom-check::after { content: "✓"; color: #fff; font-size: 12px; }.task-content { display: grid; gap: 2px; flex: 1; }.task-content strong { font-size: 13px; font-weight: 600; }.task-content small { color: #91949c; font-size: 10px; }.task-check:checked ~ .task-content strong { color: #999; text-decoration: line-through; }.task-type { padding: 4px 8px; border-radius: 4px; color: #7b6e5d; background: #f3eee5; font-size: 10px; }.panel-footer { margin-top: 16px; color: #88827a; font-size: 11px; line-height: 1.7; }
.focus-panel { display: flex; flex-direction: column; min-height: 290px; padding: 25px; background: linear-gradient(145deg, var(--navy), var(--navy-soft)); }.focus-panel .panel-heading h2, .focus-panel .panel-heading .eyebrow, .focus-panel #timerLabel { color: #fff; }.focus-panel .panel-heading .eyebrow { color: #d9a65f; }.mode-button { padding: 5px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 5px; color: #b8c7de; background: rgba(255,255,255,.06); font-family: "DM Mono", monospace; font-size: 10px; }.timer-display { margin: auto 0 7px; color: #fef4df; font-family: "DM Mono", monospace; font-size: clamp(47px, 5vw, 65px); letter-spacing: -.1em; line-height: 1; }.focus-panel #timerLabel { min-height: 34px; margin: 0; color: #aebbd0; font-size: 11px; line-height: 1.6; }.timer-button { align-self: flex-start; min-height: 35px; margin-top: 11px; color: var(--navy); background: var(--amber); box-shadow: none; }.timer-button:hover { background: #ffc160; }.stop-button { align-self: flex-start; margin-top: 8px; color: #b9c6d6; }.stop-button:hover { color: #fff; }

.path-section { padding-top: 75px; }.section-heading > p { max-width: 290px; margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }.path-card { min-height: 234px; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.45); transition: transform .2s ease, box-shadow .2s ease; }.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }.path-card.current { border-color: #dcc28d; background: #fffaf0; }.path-number { display: inline-flex; margin-right: 7px; color: #a79885; font-family: "DM Mono", monospace; font-size: 11px; }.path-state { color: #987543; font-size: 10px; }.path-card h3 { margin: 27px 0 8px; font-size: 16px; letter-spacing: -.03em; }.path-card p { min-height: 57px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }.path-meta { display: flex; justify-content: space-between; margin-top: 14px; color: #9a9a96; font-size: 10px; }.card-progress { height: 4px; margin-top: 10px; background: #e9e6df; }.card-progress span { background: #d4a04e; }
.lower-grid { margin-top: 70px; padding-bottom: 50px; }.review-panel, .knowledge-panel { padding: 25px; }.flashcard { position: relative; height: 182px; margin-top: 19px; cursor: pointer; perspective: 800px; outline: none; }.flashcard-inner { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }.flashcard.is-flipped .flashcard-inner { transform: rotateY(180deg); }.card-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 23px; border: 1px solid #e7dfd1; border-radius: 9px; backface-visibility: hidden; background: #fefbf5; }.card-back { color: #f8f4ea; border-color: transparent; background: #596d87; transform: rotateY(180deg); }.card-face span { margin-bottom: 10px; color: #a17c44; font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .1em; }.card-back span { color: #eac17d; }.card-face strong { font-family: "Playfair Display", "Noto Sans SC", serif; font-size: 18px; line-height: 1.55; }.card-face small { margin-top: auto; color: #999289; font-size: 10px; }.card-back small { color: #d6dfeb; }.review-actions { display: flex; gap: 10px; margin-top: 14px; }.review-button { flex: 1; min-height: 34px; border: 1px solid; border-radius: 6px; background: transparent; font-size: 11px; font-weight: 700; }.review-button.again { border-color: #e5c6cb; color: #ad5060; }.review-button.know { border-color: #bddccf; color: #27865f; }.review-button:hover { filter: brightness(.96); background: #fff; }
.note-form { display: flex; gap: 8px; margin-top: 18px; }.note-form input { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #dedbd4; border-radius: 6px; color: var(--ink); background: #fcfbf8; font-size: 12px; outline-color: #b58a4f; }.note-form .primary-button { min-height: 38px; padding: 0 12px; white-space: nowrap; }.note-list { display: grid; gap: 7px; margin-top: 14px; }.note-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 6px; background: #f7f4ee; color: #535a65; font-size: 12px; }.note-item button { border: 0; color: #b17878; background: transparent; font-size: 15px; }.empty-notes { margin: 20px 0 0; color: #9e9b95; font-size: 11px; text-align: center; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; padding: 11px 15px; border-radius: 7px; color: #fff; background: #26384e; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .22s; }.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) { .app-shell { grid-template-columns: 1fr; }.sidebar { position: static; display: block; width: 100%; height: auto; padding: 16px 25px; }.brand { padding: 0; }.navigation { display: flex; gap: 2px; margin: 14px 0 0; overflow-x: auto; }.nav-link { flex: 0 0 auto; padding: 8px; }.nav-link span { display: none; }.sidebar-note { display: none; } main { grid-column: 1; }.hero { grid-template-columns: 1fr; }.hero-orbit { display: none; }.path-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .section { width: min(100% - 30px, 1170px); }.topbar { height: 58px; padding: 0 15px; }.crumb { font-size: 10px; }.hero { min-height: auto; padding: 48px 5px; }.hero h1 { font-size: 37px; }.hero-actions, .content-grid, .lower-grid { grid-template-columns: 1fr; }.hero-actions { display: grid; }.metrics-grid { grid-template-columns: 1fr; gap: 8px; }.metric-card { min-height: 76px; }.content-grid, .lower-grid { display: grid; }.path-section { padding-top: 47px; }.section-heading { display: block; }.section-heading > p { margin-top: 10px; }.path-grid { grid-template-columns: 1fr; }.path-card { min-height: 180px; }.path-card h3 { margin-top: 17px; }.path-card p { min-height: auto; }.lower-grid { margin-top: 47px; }.today-panel, .focus-panel, .review-panel, .knowledge-panel { padding: 19px; } }

.course-section { padding-top: 34px; }.course-heading { padding: 0 4px; }.course-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; margin-top: 20px; align-items: start; }.lesson-nav { position: sticky; top: 20px; overflow: hidden; padding: 16px 0 0; }.lesson-nav-title { display: flex; justify-content: space-between; margin: 0; padding: 0 18px 13px; color: var(--ink); font-size: 12px; font-weight: 700; }.lesson-nav-title span { color: #a27c41; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; }.lesson-nav-list { display: grid; border-top: 1px solid #eeebe5; }.lesson-nav-button { display: grid; grid-template-columns: 26px 1fr 12px; align-items: center; gap: 8px; width: 100%; min-height: 58px; padding: 9px 15px; border: 0; border-bottom: 1px solid #eeebe5; color: #677080; background: transparent; text-align: left; transition: .18s ease; }.lesson-nav-button:hover { color: var(--ink); background: #faf7f0; }.lesson-nav-button.active { color: var(--ink); background: #fff5e4; }.lesson-nav-button.done .lesson-nav-index { color: #fff; border-color: var(--green); background: var(--green); }.lesson-nav-index { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #d7d6d2; border-radius: 50%; color: #a3a0a0; font-family: "DM Mono", monospace; font-size: 9px; }.lesson-nav-name { font-size: 11px; font-weight: 600; line-height: 1.45; }.lesson-nav-arrow { color: #b0b1b0; font-size: 13px; }.lesson-nav-footer { margin-top: 14px; padding: 0 18px 18px; color: #85847f; font-size: 10px; line-height: 1.7; }.lesson-nav-footer strong { color: #6f614d; font-size: 10px; }.lesson-nav-footer p { margin: 4px 0 0; }
.lesson-reader { padding: clamp(23px, 4vw, 42px); }.lesson-reader-top { display: flex; justify-content: space-between; align-items: center; }.lesson-number { color: #a17638; font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .12em; }.lesson-duration { padding: 5px 8px; border-radius: 5px; color: #737c88; background: #f2f1ed; font-size: 10px; }.lesson-reader h2 { margin: 14px 0 7px; font-size: clamp(26px, 3.3vw, 37px); letter-spacing: -.05em; }.lesson-intro { max-width: 720px; margin: 0; color: #677080; font-size: 14px; line-height: 1.8; }.lesson-content { display: grid; gap: 14px; margin-top: 25px; }.knowledge-block { padding: 16px 17px; border-left: 3px solid #d9a451; border-radius: 0 7px 7px 0; background: #faf8f2; }.knowledge-block h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -.02em; }.knowledge-block p { margin: 0; color: #565f6c; font-size: 13px; line-height: 1.85; }.knowledge-block p + p { margin-top: 9px; }.knowledge-block strong { color: #1d2b3e; }.concept-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }.concept-chip { padding: 10px; border: 1px solid #e5e0d6; border-radius: 6px; background: #fffefa; }.concept-chip strong { display: block; color: #85642f; font-size: 11px; }.concept-chip span { display: block; margin-top: 3px; color: #6d7179; font-size: 10px; line-height: 1.6; }.takeaway-box { display: grid; gap: 5px; margin-top: 22px; padding: 15px 17px; border: 1px solid #d7e6dc; border-radius: 8px; background: #f2f9f4; }.takeaway-box span { color: #488060; font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .06em; }.takeaway-box strong { color: #285e47; font-size: 13px; line-height: 1.7; }
.quick-check { margin-top: 22px; padding-top: 21px; border-top: 1px solid #e8e5de; }.quick-check h3 { margin: 5px 0 0; font-size: 18px; }.question-text { margin: 16px 0 12px; color: #2b3541; font-size: 13px; font-weight: 600; line-height: 1.75; }.answer-choices { display: grid; gap: 8px; }.answer-choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #dfddd7; border-radius: 6px; color: #4d5764; background: #fffefa; font-size: 12px; text-align: left; transition: .15s ease; }.answer-choice:hover, .answer-choice.selected { border-color: #bb955a; background: #fff8e9; }.answer-choice .choice-mark { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid #c9c8c4; border-radius: 50%; color: transparent; font-size: 10px; }.answer-choice.selected .choice-mark { border-color: #a77b3c; color: #a77b3c; }.answer-choice.correct { border-color: #7db79d; background: #f0faf3; }.answer-choice.incorrect { border-color: #e7b6bd; background: #fff4f5; }.check-footer { display: flex; align-items: center; gap: 13px; margin-top: 13px; }.check-footer .secondary-button { min-height: 35px; font-size: 11px; }.check-footer p { margin: 0; color: #6a7786; font-size: 11px; line-height: 1.6; }.check-footer p.correct { color: #287652; }.check-footer p.incorrect { color: #a34d5b; }.lesson-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 25px; }.lesson-actions .text-button { color: #80653d; }.lesson-actions .text-button:hover { color: #3c3021; }.course-link { margin-top: 11px; padding: 0; border: 0; color: #876733; background: transparent; font-size: 10px; font-weight: 700; }.course-link:hover { color: #332516; text-decoration: underline; }
@media (max-width: 920px) { .course-layout { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 620px) { .course-section { padding-top: 20px; }.course-layout { grid-template-columns: 1fr; }.lesson-nav { position: static; }.lesson-nav-list { grid-template-columns: repeat(2, 1fr); }.lesson-nav-button { grid-template-columns: 22px 1fr; min-height: 52px; padding: 8px; }.lesson-nav-arrow, .lesson-nav-footer { display: none; }.lesson-reader { padding: 22px 17px; }.concept-row { grid-template-columns: 1fr; }.lesson-actions { align-items: flex-start; flex-direction: column; }.check-footer { align-items: flex-start; flex-direction: column; gap: 8px; } }
