:root {
  color-scheme: light;
  --bg: #f7f8fa; --ink: #243247; --muted: #738095; --line: #e6eaf0;
  --blue: #3966df; --soft-blue: #eef3ff; --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  background: var(--bg); color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #a8bfff; outline-offset: 4px; }
svg { display: block; flex-shrink: 0; }
svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; left: 16px; top: -70px; background: var(--ink); color: white; padding: 14px; }
.skip-link:focus { top: 12px; }
.site-header { background: #ffffffed; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1272px; margin: auto; padding: 0 36px; min-height: 88px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--ink); color: white; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.brand-text > span { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; letter-spacing: 2px; color: var(--muted); }
.workspace-nav { display: flex; gap: 6px; margin-left: auto; background: #f1f3f7; padding: 5px; border-radius: 12px; }
.workspace-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; background: transparent; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.workspace-nav button[aria-pressed=true] { background: white; color: var(--ink); box-shadow: 0 2px 6px #2432470b; }
.workspace-nav svg { width: 18px; height: 18px; }
.repo-link { display: flex; gap: 7px; align-items: center; color: #667287; font-size: 13px; }
.repo-link svg { width: 20px; height: 20px; }
.repo-link:hover { color: var(--blue); }
.app-shell { width: min(100%,1272px); padding: 46px 36px 0; margin: auto; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--muted); margin: 0 0 11px; line-height: 1.5; }
h1 { font-size: clamp(25px,3.1vw,38px); letter-spacing: -1px; font-weight: 650; line-height: 1.4; margin: 0; }
.title-dot { color: var(--blue); }
.intro-copy { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 11px 0 0; }
.preview-badge { display: inline-flex; gap: 8px; align-items: center; flex-shrink: 0; border: 1px solid var(--line); background: white; border-radius: 30px; padding: 8px 13px; font-size: 11px; color: #747f91; }
.preview-badge > span { width: 6px; height: 6px; background: #d6a55c; border-radius: 50%; }
.preview-note { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 27px; padding: 12px 15px; background: #f0f3f7; border: 1px solid #e8edf3; border-radius: 10px; color: #7e8999; font-size: 12px; line-height: 1.7; }
.preview-note svg { width: 17px; height: 17px; margin-top: 2px; }
.preview-note p { margin: 0; }
.preview-note strong { font-weight: 550; color: #69778c; }
.learning-path { display: flex; align-items: center; margin-bottom: 35px; }
.learning-path button { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-align: left; padding: 20px 21px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: background .15s, border-color .15s; }
.learning-path button:hover { border-color: #bcccf4; }
.learning-path button[aria-pressed=true] { background: var(--soft-blue); border-color: #bacbf5; }
.level-number { font-size: 21px; letter-spacing: -1px; font-weight: 600; color: #a3adbb; line-height: 1; }
.learning-path button[aria-pressed=true] .level-number { color: var(--blue); }
.level-info { min-width: 0; }
.level-info strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.level-info > span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.level-count { font-size: 11px; color: #8a95a5; margin-left: auto; padding: 5px 8px; background: #f6f8fb; border-radius: 6px; }
.learning-path button[aria-pressed=true] .level-count { background: #e4ecff; color: var(--blue); }
.path-connector { padding: 0 15px; font-size: 19px; color: #c1c9d5; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.section-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
h2 { font-size: 23px; font-weight: 650; letter-spacing: -.5px; line-height: 1.45; margin: 0; }
.section-heading p:not(.eyebrow) { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.small-note { font-size: 11px; color: #95a0b0; white-space: nowrap; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; min-height: 44px; }
.source-filters { display: flex; gap: 7px; }
.source-filters button { padding: 9px 15px; min-height: 40px; font-size: 12px; background: transparent; color: var(--muted); border-radius: 8px; white-space: nowrap; }
.source-filters button[aria-pressed=true] { background: var(--ink); color: white; }
.source-filters button:hover { background: #e9edf4; }
.source-filters button[aria-pressed=true]:hover { background: #32435b; }
.search-box { display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; padding: 10px 13px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.search-box svg { width: 17px; height: 17px; color: #9aa6b7; }
.search-box input { width: 100%; min-width: 0; outline: none; background: none; border: 0; font-size: 12px; color: var(--ink); }
.search-box input::placeholder { color: #9aa5b6; }
.search-box:focus-within { border-color: #8da9f0; box-shadow: 0 0 0 3px #edf2ff; }
.library-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 25px; align-items: start; }
.knowledge-list { display: grid; gap: 14px; }
.knowledge-card { display: block; text-align: left; width: 100%; position: relative; padding: 22px 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: border-color .15s, box-shadow .15s; }
.knowledge-card:hover { border-color: #bdcbee; box-shadow: 0 5px 18px #22395505; }
.knowledge-card.is-selected { border-color: #a5baf0; box-shadow: inset 3px 0 var(--blue); }
.card-kind { display: flex; align-items: center; gap: 7px; font-size: 10px; line-height: 1.6; color: #8a95a5; }
.card-title { display: block; margin: 12px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.3px; line-height: 1.65; }
.card-summary { display: block; font-size: 12px; line-height: 1.85; color: var(--muted); margin: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { display: inline-block; padding: 4px 8px; border: 1px solid #edf0f5; border-radius: 6px; background: #f8f9fc; font-size: 10px; color: #8290a3; line-height: 1.5; }
.list-footnote { font-size: 11px; color: #98a3b2; line-height: 1.8; margin: 19px 3px 0; }
.detail-panel { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; min-height: 370px; position: sticky; top: 24px; overflow-wrap: anywhere; }
.detail-eyebrow { font-size: 10px; line-height: 1.7; color: var(--blue); margin: 0 0 10px; letter-spacing: .4px; }
.detail-title { font-size: 23px; line-height: 1.65; font-weight: 650; letter-spacing: -.4px; margin: 0 0 12px; }
.detail-summary { font-size: 13px; line-height: 1.95; color: #718098; margin: 0 0 25px; }
.detail-block { padding: 19px 0; border-top: 1px solid #edf0f5; }
.detail-block h3 { font-size: 12px; font-weight: 600; margin: 0 0 9px; color: #526179; }
.detail-block p, .detail-block li { font-size: 12px; line-height: 1.95; color: #7a879a; margin: 0; }
.detail-block ul, .detail-block ol { padding-left: 19px; margin: 0; }
.reference-list { display: grid; gap: 8px; }
.cross-reference { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 11px 13px; border: 1px solid #eaf0fb; border-radius: 9px; background: #f7f9ff; color: #61749c; font-size: 12px; line-height: 1.7; }
.cross-reference:hover { border-color: #b9ccf5; color: var(--blue); }
.cross-reference small, .reference-level { color: #9ba9c0; font-size: 10px; }
.source-note { font-size: 10px; line-height: 1.8; color: #9aa5b4; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
[data-close-detail] { display: none; }
.detail-panel [data-return-practice] { display: block; padding: 11px 14px; margin-top: 18px; min-height: 44px; border-radius: 9px; background: var(--soft-blue); color: var(--blue); font-size: 12px; }
.empty-state { padding: 40px 20px; text-align: center; border: 1px dashed #dbe2ec; border-radius: 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.practice-heading { margin: 4px 0 25px; }
.practice-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 27px; align-items: start; }
.sidebar-label { display: flex; align-items: center; justify-content: space-between; padding: 4px 3px 15px; font-size: 12px; font-weight: 550; color: #7c899b; }
.sidebar-label > span { font-size: 10px; color: #aab3c1; font-weight: 400; }
.practice-card { display: block; text-align: left; width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.practice-card.is-selected, .practice-card[aria-current=true] { border-color: #afc1ed; background: #f1f5ff; }
.practice-card h3, .practice-card strong { font-size: 14px; line-height: 1.85; font-weight: 550; margin: 0 0 11px; display: block; }
.practice-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; background: #fff8ec; color: #a98445; font-size: 10px; font-weight: 400; padding: 4px 8px; line-height: 1.7; }
.practice-hint { display: flex; align-items: flex-start; gap: 12px; padding: 22px 8px; }
.hint-line { width: 2px; height: 35px; background: #c6d3ef; flex-shrink: 0; margin-top: 4px; }
.practice-hint p { font-size: 11px; color: #96a1b2; line-height: 1.9; margin: 0; }
.practice-article { min-width: 0; padding: 34px 39px; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 25px; margin-bottom: 25px; }
.article-header .practice-status { margin-right: 8px; }
.article-title { font-size: clamp(21px,2.5vw,29px); line-height: 1.65; font-weight: 650; letter-spacing: -.5px; margin: 16px 0 11px; }
.article-intro { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; }
.view-switch { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); background: #f7f8fa; border-radius: 10px; width: fit-content; margin-top: 24px; }
.view-switch button { padding: 9px 15px; background: transparent; border-radius: 7px; font-size: 12px; line-height: 1.5; min-height: 39px; color: #8a96a7; }
.view-switch button[aria-pressed=true] { background: white; color: var(--ink); box-shadow: 0 2px 5px #2432470a; }
.article-section { padding: 0 0 25px; margin-bottom: 25px; border-bottom: 1px solid #edf0f5; }
.article-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.section-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--blue); line-height: 1.8; margin: 0 0 10px; }
.article-section h3 { font-size: 15px; line-height: 1.6; font-weight: 600; margin: 0 0 12px; }
.article-copy, .article-section p, .article-section li { font-size: 13px; line-height: 2; color: #65758e; }
.article-section p { margin: 0 0 12px; }
.article-section ol, .article-section ul { margin: 0 0 15px; padding-left: 20px; }
.article-section li { padding-left: 3px; margin-bottom: 6px; }
.article-section .cross-reference { font-size: 11px; margin-top: 8px; }
.article-section .source-note { font-size: 10px; color: #98a5b6; }
.ai-document { padding: 23px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 12px; margin: 16px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: "SFMono-Regular",Consolas,monospace; font-size: 12px; line-height: 1.95; color: #53647d; }
.copy-button { padding: 10px 14px; background: var(--soft-blue); color: var(--blue); border: 1px solid #e1e9fc; border-radius: 8px; font-size: 12px; min-height: 42px; }
.copy-status { font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 8px; }
.ai-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 23px 0; margin-top: 47px; color: #a0aab8; font-size: 10px; line-height: 1.8; }
.noscript-note { padding: 25px; border: 1px solid var(--line); background: white; border-radius: 15px; color: var(--muted); line-height: 1.8; }
@media (min-width:761px) { .detail-panel { max-height: calc(100dvh - 48px); overflow: auto; scrollbar-width: thin; scrollbar-color: #dbe2ee transparent; } }
@media (max-width:1000px) {
  .header-inner { padding: 0 24px; gap: 20px; } .brand-text { font-size: 15px; } .workspace-nav button { padding: 9px 13px; }
  .app-shell { padding: 34px 24px 0; } .learning-path button { padding: 17px 15px; gap: 9px; } .path-connector { padding: 0 9px; }
  .level-count { padding: 4px 6px; } .library-grid { gap: 18px; } .detail-panel { padding: 22px; }
  .practice-layout { grid-template-columns: 205px minmax(0,1fr); gap: 20px; } .practice-article { padding: 27px; }
}
@media (max-width:760px) {
  .header-inner { padding: 18px 20px 13px; min-height: 0; flex-wrap: wrap; gap: 17px; }
  .brand { gap: 10px; } .brand-mark { width: 36px; height: 36px; border-radius: 11px; } .brand-mark svg { width: 24px; height: 24px; }
  .brand-text { font-size: 14px; letter-spacing: -.3px; } .brand-text > span { font-size: 9px; margin-top: 4px; letter-spacing: 1.5px; }
  .repo-link { margin-left: auto; } .repo-link span { display: none; }
  .workspace-nav { order: 3; width: 100%; margin: 0; padding: 4px; } .workspace-nav button { width: 50%; min-height: 44px; font-size: 13px; }
  .app-shell { padding: 28px 20px 0; } .intro { align-items: flex-start; gap: 12px; margin-bottom: 21px; position: relative; }
  .intro .eyebrow { font-size: 8px; letter-spacing: 1.3px; margin-bottom: 9px; padding-right: 68px; }
  h1 { font-size: 26px; letter-spacing: -.8px; line-height: 1.6; }
  .intro-copy { font-size: 13px; line-height: 1.9; max-width: 320px; margin-top: 9px; }
  .preview-badge { padding: 6px 9px; font-size: 9px; gap: 5px; position: absolute; right: 0; top: -3px; }
  .preview-note { font-size: 10px; padding: 10px 11px; margin-bottom: 21px; gap: 7px; line-height: 1.85; } .preview-note svg { width: 14px; height: 14px; }
  .learning-path { gap: 7px; margin-bottom: 27px; align-items: stretch; }
  .learning-path button { flex-direction: column; align-items: flex-start; position: relative; padding: 14px 10px 12px; gap: 10px; border-radius: 12px; }
  .path-connector { display: none; } .level-number { font-size: 16px; } .level-info strong { font-size: 12px; white-space: normal; }
  .level-info > span { font-size: 9px; margin-top: 4px; } .level-count { position: absolute; top: 12px; right: 8px; margin: 0; font-size: 9px; background: none !important; padding: 0; }
  .section-heading { margin-bottom: 16px; } .section-heading h2 { font-size: 20px; } .section-heading p:not(.eyebrow) { font-size: 11px; margin-top: 6px; }
  .section-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; } .small-note { display: none; }
  .library-toolbar { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 17px; }
  .source-filters { gap: 5px; } .source-filters button { min-height: 42px; padding: 9px 15px; font-size: 11px; }
  .search-box { width: 100%; padding: 12px; min-height: 44px; } .search-box input { font-size: 12px; }
  .library-grid { display: block; } .knowledge-list { gap: 12px; } .knowledge-card { padding: 21px; border-radius: 14px; }
  .card-title { font-size: 16px; line-height: 1.75; } .card-summary { font-size: 13px; } .card-tags { margin-top: 16px; } .list-footnote { font-size: 10px; }
  .detail-panel { display: none; position: fixed; z-index: 10; inset: 0; border: 0; border-radius: 0; padding: 24px 22px 85px; max-height: none; overflow: auto; overscroll-behavior: contain; background: var(--bg); }
  body.detail-open { overflow: hidden; } body.detail-open .detail-panel { display: block; }
  .detail-title { font-size: 23px; margin-top: 18px; } .detail-summary { font-size: 13px; } .detail-block { padding: 20px 0; }
  .detail-block h3 { font-size: 13px; } .detail-block p, .detail-block li { font-size: 14px; } .cross-reference { min-height: 45px; font-size: 12px; background: white; }
  .detail-panel [data-close-detail] { display: flex; align-items: center; justify-content: center; position: fixed; bottom: max(16px,env(safe-area-inset-bottom)); left: 22px; right: 22px; min-height: 46px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 5px 20px #24324720; font-size: 13px; }
  .detail-panel .source-note { font-size: 11px; } .practice-heading { margin: 3px 0 21px; } .practice-layout { display: block; }
  .practice-sidebar { margin-bottom: 21px; } .sidebar-label { padding-bottom: 11px; font-size: 11px; } .practice-card { padding: 15px 17px; border-radius: 12px; }
  .practice-card h3, .practice-card strong { font-size: 13px; margin-bottom: 7px; } .practice-hint { display: none; }
  .practice-article { padding: 22px 20px; border-radius: 14px; } .article-header { padding-bottom: 22px; margin-bottom: 23px; }
  .article-title { font-size: 21px; line-height: 1.7; margin-top: 13px; } .article-intro { font-size: 13px; line-height: 1.95; }
  .view-switch { width: 100%; margin-top: 20px; } .view-switch button { flex: 1; padding: 10px 7px; min-height: 43px; font-size: 11px; }
  .article-section p, .article-section li { font-size: 14px; line-height: 1.95; } .article-section h3 { font-size: 15px; }
  .ai-document { padding: 15px; font-size: 11px; line-height: 1.9; } .ai-toolbar { align-items: flex-start; flex-direction: column; }
  .site-footer { font-size: 9px; gap: 15px; margin-top: 32px; padding: 20px 0; flex-wrap: wrap; }
}
@media (max-width:360px) {
  .header-inner { padding: 16px 15px 12px; } .app-shell { padding: 25px 15px 0; } .brand-text { font-size: 13px; } .brand-mark { width: 32px; height: 32px; }
  h1 { font-size: 23px; } .learning-path { gap: 6px; } .learning-path button { padding: 13px 9px 11px; }
  .level-info strong { font-size: 11px; } .level-info > span { font-size: 8px; } .level-number { font-size: 14px; }
  .knowledge-card { padding: 18px; } .practice-article { padding: 20px 16px; } .article-title { font-size: 19px; }
  .source-filters button { padding: 9px 13px; } .intro-copy { font-size: 11px; } .site-footer { font-size: 8px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
