:root {
  --ink: #19332d;
  --muted: #6b7771;
  --soft: #f6f5f1;
  --paper: #fffdf9;
  --line: #e8e5de;
  --green: #173a31;
  --green-2: #285649;
  --lime: #d6e77f;
  --orange: #ed845d;
  --blue: #8fc8d0;
  --violet: #b5a4d6;
  --yellow: #e9c466;
  --shadow: 0 18px 45px rgba(25, 51, 45, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--soft); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 266px; flex: 0 0 266px; padding: 30px 20px 22px; background: var(--green); color: #eef2e6; display: flex; flex-direction: column; }
.brand-block { display: flex; align-items: center; gap: 12px; padding: 0 10px 42px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--green); font-weight: 900; font-size: 20px; box-shadow: 0 5px 18px rgba(214,231,127,.22); }
.brand-kicker { margin: 0 0 6px; color: #afc9ae; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.brand-block h1 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.03em; }
.sidebar-section { flex: 1; }
.sidebar-label { margin: 0 12px 12px; color: #7f9e91; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 800; }
.nav-list { display: grid; gap: 4px; }
.nav-item { width: 100%; border: 0; color: #b4c7b9; background: transparent; padding: 12px; border-radius: 11px; display: flex; align-items: center; gap: 11px; text-align: left; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--green); background: var(--lime); font-weight: 800; }
.nav-icon { width: 18px; font-size: 18px; line-height: 1; text-align: center; }
.nav-count { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 9px; color: #b6cabe; background: rgba(255,255,255,.09); text-align: center; font-size: 11px; }
.nav-item.active .nav-count { color: var(--green); background: rgba(23,58,49,.13); }
.sidebar-track { margin-top: 32px; padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.045); }
.track-head { display: flex; justify-content: space-between; color: #e6eedf; font-size: 12px; font-weight: 700; }
.progress-track { height: 6px; margin: 12px 0 10px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.13); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width .3s ease; }
.sidebar-track p { margin: 0; color: #85a394; font-size: 11px; line-height: 1.5; }
.sidebar-bottom { padding: 30px 10px 0; }
.text-button { padding: 0; border: 0; color: #a9c3b3; background: transparent; font-size: 12px; }
.text-button:hover { color: #fff; }
.sidebar-footnote { margin: 9px 0 0; color: #638275; font-size: 10px; }

.main-content { min-width: 0; flex: 1; padding: 0 42px 60px; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: #bac1ba; font-weight: 500; }
.breadcrumb span:last-child { color: var(--ink); font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.search-box { min-width: 250px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: #9ca69f; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: #a9b0aa; font-size: 10px; white-space: nowrap; }
.button { border: 0; border-radius: 10px; padding: 11px 14px; font-size: 12px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--green); background: var(--lime); box-shadow: 0 7px 18px rgba(130,153,55,.14); }
.button-ghost { color: var(--ink); background: #f0efea; }
.button-small { padding: 8px 11px; font-size: 11px; }
.icon-button { width: 30px; height: 30px; border: 0; border-radius: 9px; color: var(--muted); background: #f1f0ea; font-size: 22px; line-height: 1; }

#appContent { max-width: 1290px; margin: 0 auto; padding-top: 30px; }
.eyebrow { margin: 0 0 9px; color: var(--orange); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 900; }
.page-title { margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 40px); line-height: 1.08; letter-spacing: -.06em; }
.page-subtitle { max-width: 660px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 14px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }

.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; min-height: 266px; padding: 32px; border-radius: 23px; color: #f7f6eb; background: var(--green); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -80px; bottom: -175px; border: 1px solid rgba(214,231,127,.34); border-radius: 50%; box-shadow: 0 0 0 28px rgba(214,231,127,.05), 0 0 0 58px rgba(214,231,127,.03); }
.hero .eyebrow { color: var(--lime); }
.hero h2 { max-width: 570px; margin: 0; font-size: clamp(26px, 3.2vw, 45px); line-height: 1.03; letter-spacing: -.065em; }
.hero p { max-width: 560px; margin: 15px 0 0; color: #b9cbbd; font-size: 13px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 23px; }
.hero .button-ghost { color: #eaf0e6; background: rgba(255,255,255,.11); }
.hero-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.orbit { position: relative; width: 205px; height: 205px; border: 1px solid rgba(214,231,127,.4); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(214,231,127,.27); border-radius: 50%; }
.orbit::after { inset: 50px; border-color: rgba(214,231,127,.22); }
.orbit-center { position: absolute; inset: 72px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-size: 11px; font-weight: 900; text-align: center; line-height: 1.15; }
.orbit-node { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--green); background: #f1d091; font-size: 11px; font-weight: 900; }
.orbit-node.one { top: 13px; left: 86px; }.orbit-node.two { right: 5px; top: 87px; background: var(--blue); }.orbit-node.three { bottom: 12px; left: 87px; background: var(--violet); }.orbit-node.four { top: 87px; left: 5px; background: #e89778; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 15px; }
.stat-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.stat-label { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.stat-value { margin: 0; font-size: 25px; letter-spacing: -.05em; }
.stat-note { margin: 6px 0 0; color: #8b968f; font-size: 11px; }

.content-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.next-card { padding: 21px; }
.next-card-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.lesson-type { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lesson-type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lesson-title { margin: 16px 0 8px; font-size: 19px; letter-spacing: -.04em; }
.lesson-summary { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.meta-chip, .tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 7px; color: #687770; background: #f1f0eb; font-size: 10px; font-weight: 700; }
.next-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--line); }
.next-card-footer span { color: #8d9892; font-size: 11px; }
.mini-progress { flex: 1; max-width: 170px; height: 6px; overflow: hidden; border-radius: 8px; background: #eeeee8; }.mini-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--orange); }
.principle-card { padding: 21px; color: #f0f3e8; background: #244b40; }
.principle-card .eyebrow { color: var(--lime); }.principle-card h3 { margin: 0; font-size: 18px; letter-spacing: -.04em; }.principle-card p { margin: 13px 0 0; color: #bdd0bf; font-size: 12px; line-height: 1.7; }.principle-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }.principle-list li { display: flex; gap: 8px; color: #e7eee2; font-size: 11px; line-height: 1.5; }.principle-list li::before { content: "✓"; color: var(--lime); font-weight: 900; }

.roadmap-list { display: grid; gap: 13px; }
.roadmap-section { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.roadmap-section-head { display: grid; grid-template-columns: 50px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; }
.roadmap-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--green); background: var(--lime); font-size: 12px; font-weight: 900; }
.roadmap-section:nth-child(2) .roadmap-number { background: var(--blue); }.roadmap-section:nth-child(3) .roadmap-number { background: #f2d38d; }.roadmap-section:nth-child(4) .roadmap-number { background: var(--violet); }.roadmap-section:nth-child(5) .roadmap-number { background: #e79b7c; }.roadmap-section h3 { margin: 0; font-size: 16px; letter-spacing: -.03em; }.roadmap-section-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }.section-progress { min-width: 78px; color: var(--muted); font-size: 10px; text-align: right; }.section-progress strong { display: block; color: var(--ink); font-size: 13px; }.section-progress .progress-track { height: 4px; margin: 6px 0 0; background: #ecece6; }.section-progress .progress-track span { background: var(--green-2); }
.lesson-list { border-top: 1px solid var(--line); }.lesson-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 11px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #f0eee8; transition: background .18s ease; }.lesson-row:last-child { border-bottom: 0; }.lesson-row:hover { background: #fbfaf6; }.lesson-row.done { opacity: .58; }.lesson-row.done .lesson-row-title { text-decoration: line-through; }.lesson-check { position: relative; width: 18px; height: 18px; margin: 0; appearance: none; border: 1.5px solid #bdc8bd; border-radius: 6px; background: #fff; cursor: pointer; }.lesson-check:checked { border-color: var(--green); background: var(--green); }.lesson-check:checked::after { content: "✓"; position: absolute; left: 3px; top: -2px; color: var(--lime); font-size: 13px; font-weight: 900; }.lesson-open { min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }.lesson-row-title { margin: 0; font-size: 12px; font-weight: 800; }.lesson-row-summary { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.lesson-row-meta { color: #96a19a; font-size: 10px; white-space: nowrap; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }.detail-main { padding: 27px; }.detail-main h2 { margin: 0; font-size: 29px; letter-spacing: -.06em; }.detail-main > .lead { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }.detail-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }.detail-section h3 { margin: 0 0 12px; font-size: 14px; }.detail-section p, .detail-section li { color: #56645c; font-size: 12px; line-height: 1.75; }.detail-section ul { margin: 0; padding-left: 18px; }.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }.concept-card { padding: 12px; border-radius: 11px; background: #f5f3ed; }.concept-card strong { display: block; font-size: 11px; }.concept-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }.paper-list { display: grid; gap: 9px; }.paper-item { padding: 11px 13px; border-left: 3px solid var(--lime); border-radius: 0 9px 9px 0; background: #f7f5ef; }.paper-item strong { display: block; font-size: 11px; }.paper-item span { color: var(--muted); font-size: 10px; }.experiment-box { padding: 15px; border-radius: 13px; color: #eaf0e6; background: var(--green); }.experiment-box h4 { margin: 0; color: var(--lime); font-size: 12px; }.experiment-box ol { margin: 10px 0 0; padding-left: 18px; }.experiment-box li { color: #d4e1d3; font-size: 11px; line-height: 1.7; }.detail-side { display: grid; align-content: start; gap: 13px; }.side-card { padding: 18px; }.side-card h3 { margin: 0; font-size: 13px; }.side-card p { color: var(--muted); font-size: 11px; line-height: 1.65; }.side-card .button { width: 100%; margin-top: 9px; }.check-list { display: grid; gap: 10px; margin-top: 13px; }.check-list label { display: flex; gap: 8px; color: #617069; font-size: 11px; line-height: 1.45; }.check-list input { accent-color: var(--green); }

.library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }.library-card { padding: 19px; }.library-card h3 { margin: 0; font-size: 15px; }.library-card p { min-height: 38px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.library-card .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }.library-card .card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: #9aa29c; font-size: 10px; }
.notes-layout { display: grid; grid-template-columns: 280px 1fr; gap: 14px; min-height: 540px; }.notes-list { padding: 10px; }.notes-list-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 12px; }.notes-list-head h3 { margin: 0; font-size: 13px; }.note-item { width: 100%; padding: 13px 11px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; }.note-item:hover, .note-item.active { background: #f1f0ea; }.note-item strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.note-item span { display: block; margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.note-editor { padding: 24px; }.note-editor-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; }.note-editor input, .note-editor textarea { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }.note-editor input { font-size: 23px; font-weight: 900; letter-spacing: -.05em; }.note-editor textarea { min-height: 350px; margin-top: 24px; resize: vertical; font-size: 13px; line-height: 1.85; }.note-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }.note-meta input { width: 180px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fbfaf6; font-size: 11px; }.note-meta small { color: #9aa39d; font-size: 10px; }.empty-state { display: grid; place-items: center; min-height: 260px; padding: 25px; color: var(--muted); text-align: center; }.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; }.empty-state p { margin: 0; font-size: 11px; line-height: 1.6; }
.experiment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }.experiment-card { padding: 20px; }.experiment-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.experiment-card h3 { margin: 0; font-size: 15px; }.resource-badge { padding: 5px 7px; border-radius: 7px; color: #697670; background: #f1f0ea; font-size: 10px; font-weight: 800; white-space: nowrap; }.experiment-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }.experiment-card ol { margin: 14px 0 0; padding-left: 17px; }.experiment-card li { margin: 5px 0; color: #59675f; font-size: 11px; line-height: 1.5; }.experiment-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: #98a19b; font-size: 10px; }
.search-results { display: grid; gap: 10px; }.search-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); text-align: left; }.search-result:hover { border-color: #bdcdbd; background: #fbfaf6; }.search-result strong { display: block; font-size: 12px; }.search-result span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }.search-result small { color: #a0aaa3; font-size: 10px; white-space: nowrap; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(13, 32, 27, .46); backdrop-filter: blur(4px); }.modal-backdrop[hidden] { display: none; }.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border-radius: 19px; background: var(--paper); box-shadow: 0 25px 80px rgba(0,0,0,.2); }.modal-head { display: flex; justify-content: space-between; align-items: start; }.modal h2 { margin: 0; font-size: 22px; letter-spacing: -.05em; }.form-stack { display: grid; gap: 14px; margin-top: 22px; }.form-stack label { display: grid; gap: 7px; color: #53625a; font-size: 11px; font-weight: 800; }.form-stack input, .form-stack textarea, .form-stack select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fbfaf6; font-size: 12px; font-weight: 500; resize: vertical; }.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { border-color: #9db795; box-shadow: 0 0 0 3px rgba(157,183,149,.16); }.form-actions { display: flex; justify-content: end; gap: 9px; margin-top: 4px; }.toast { position: fixed; z-index: 30; right: 25px; bottom: 24px; padding: 11px 14px; border-radius: 10px; color: #eff5e9; background: var(--green); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }.toast.show { opacity: 1; transform: translateY(0); }
.auth-modal { width: min(430px, 100%); }.auth-copy { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }.auth-divider { display: flex; align-items: center; gap: 10px; color: #a1aaa3; font-size: 10px; }.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }.auth-message { min-height: 18px; margin: 0; color: var(--green-2); font-size: 11px; line-height: 1.5; }.auth-signout { width: 100%; margin-top: 13px; }

@media (max-width: 980px) { .sidebar { width: 220px; flex-basis: 220px; }.main-content { padding: 0 25px 45px; }.hero { grid-template-columns: 1fr; }.hero-visual { display: none; }.content-grid, .detail-layout { grid-template-columns: 1fr; }.detail-side { grid-template-columns: repeat(2, 1fr); }.topbar { height: auto; min-height: 94px; flex-wrap: wrap; padding: 20px 0; } }
@media (max-width: 680px) { .app-shell { display: block; }.sidebar { width: 100%; padding: 15px 15px 12px; }.brand-block { padding: 0 5px 16px; }.brand-block h1 { font-size: 15px; }.sidebar-section { display: none; }.sidebar-track { display: none; }.sidebar-bottom { display: none; }.main-content { padding: 0 15px 35px; }.topbar { gap: 13px; }.topbar-actions { width: 100%; }.search-box { flex: 1; min-width: 0; }.search-box kbd { display: none; }.button-primary { white-space: nowrap; }.hero { padding: 25px; }.stats-grid, .library-grid, .experiment-grid, .detail-side { grid-template-columns: 1fr; }.roadmap-section-head { grid-template-columns: 42px 1fr; gap: 11px; }.section-progress { grid-column: 2; text-align: left; }.notes-layout { grid-template-columns: 1fr; }.notes-list { max-height: 210px; overflow: auto; }.note-editor textarea { min-height: 270px; }.concept-grid { grid-template-columns: 1fr; }.lesson-row { grid-template-columns: 25px 1fr; }.lesson-row-meta { grid-column: 2; }.page-title { font-size: 29px; } }
