.l-workspace {
  --l-ink: #233b39;
  --l-muted: #74807a;
  --l-accent: #27766b;
  --l-accent-soft: #e2eeE7;
  --l-line: #e2e5db;
  --l-paper: #fffef9;
  --l-bg: #f4f4ed;
  min-height: 0;
  flex: 1;
  overflow: auto;
  color: var(--l-ink);
  background: radial-gradient(ellipse at 94% 0%, #dce9df88, transparent 50%), var(--l-bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.l-workspace[hidden], .l-workspace [hidden] { display: none !important; }
.l-workspace *, .l-workspace *::before, .l-workspace *::after { box-sizing: border-box; }
.l-workspace button, .l-workspace input, .l-workspace textarea, .l-workspace select { font: inherit; }
.l-workspace button { cursor: pointer; color: inherit; border: 1px solid var(--l-line); background: var(--l-paper); border-radius: 8px; padding: 8px 12px; transition: background .16s, border-color .16s; }
.l-workspace button:hover:not(:disabled) { border-color: #a4beb0; background: #edf2e9; }
.l-workspace button:disabled { opacity: .55; cursor: not-allowed; }
.l-workspace :focus-visible { outline: 2px solid var(--l-accent); outline-offset: 3px; }
.l-workspace input, .l-workspace textarea, .l-workspace select { color: var(--l-ink); border: 1px solid var(--l-line); border-radius: 8px; background: var(--l-paper); padding: 10px 12px; min-width: 0; }
.l-workspace textarea { resize: vertical; line-height: 1.7; }
.l-workspace p { line-height: 1.7; }
.l-workspace .l-primary { color: #fff; background: var(--l-accent); border-color: var(--l-accent); }
.l-workspace .l-primary:hover:not(:disabled) { background: #1d6158; border-color: #1d6158; }
.l-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100%; }
.l-sidebar { background: #eef0e8b8; border-right: 1px solid var(--l-line); padding: 26px 14px 20px; display: flex; flex-direction: column; min-width: 0; }
.l-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }
.l-brand > span { display: grid; place-items: center; width: 38px; height: 42px; background: var(--l-accent); color: white; border-radius: 5px 13px 13px 5px; font-family: "STSong", "SimSun", serif; font-size: 24px; box-shadow: inset 4px 0 #ffffff26; }
.l-brand b { font-size: 17px; letter-spacing: 2px; }
.l-brand small { display: block; color: var(--l-muted); font-size: 8px; letter-spacing: 1.5px; margin-top: 6px; }
.l-tree { flex: 1; overflow-wrap: anywhere; }
.l-workspace .l-tree-home { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; border: 0; background: transparent; width: 100%; padding: 12px; text-align: left; }
.l-tree-home small { font-size: 11px; color: var(--l-muted); margin-left: 19px; }
.l-workspace .l-tree-home.active, .l-tree-row.active { background: var(--l-accent-soft); color: #24685a; }
.l-tree-caption { display: flex; justify-content: space-between; align-items: center; padding: 23px 10px 10px; font-size: 11px; color: var(--l-muted); letter-spacing: 1px; }
.l-workspace .l-tree-caption button { background: transparent; border: 0; padding: 2px 8px; font-size: 19px; }
.l-tree-row { display: flex; align-items: center; border-radius: 8px; padding-left: calc(var(--depth) * 12px); min-height: 40px; }
.l-workspace .l-disclosure { background: transparent; border: 0; padding: 3px 5px; width: 24px; flex-shrink: 0; }
.l-workspace .l-tree-link { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 9px 5px; flex: 1; min-width: 0; text-align: left; }
.l-tree-link > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-tree-link small { margin-left: auto; color: var(--l-muted); padding-right: 4px; }
.l-folder-icon { color: #78927c; font-size: 20px; }
.l-tree-empty { color: var(--l-muted); font-size: 12px; padding: 0 10px; }
.l-sidebar-bottom { margin-top: 45px; padding: 16px 6px 0; border-top: 1px solid var(--l-line); }
.l-library-count { font-size: 11px; color: var(--l-muted); }
.l-workspace .l-storage-button { display: flex; width: 100%; align-items: center; gap: 7px; text-align: left; font-size: 11px; padding: 10px 8px; }
.l-storage-button > span:last-child { margin-left: auto; color: var(--l-muted); }
.l-storage-dot { width: 6px; height: 6px; background: #539277; border-radius: 50%; flex-shrink: 0; }
.l-sidebar-bottom > small { display: block; font-size: 10px; color: var(--l-muted); margin-top: 10px; }
.l-main { min-width: 0; }
.l-topbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--l-line); padding: 15px 28px; min-height: 62px; background: #fffef966; }
.l-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; font-size: 12px; color: var(--l-muted); }
.l-workspace .l-breadcrumb button { padding: 3px 0; border: 0; border-radius: 0; background: transparent; }
.l-breadcrumb b { font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--l-ink); }
.l-top-new { white-space: nowrap; font-size: 12px !important; }
.l-content { padding: 30px; max-width: 1500px; margin: auto; }
.l-eyebrow { color: var(--l-accent); font-size: 10px; letter-spacing: 2px; margin: 0 0 11px; font-weight: 600; }
.l-library-head { display: flex; gap: 25px; align-items: center; justify-content: space-between; padding: 20px 0 30px; }
.l-library-head h1 { font-family: "STSong", "SimSun", "Georgia", serif; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: 1px; margin: 0; font-weight: 500; }
.l-library-head p:last-child { margin: 13px 0 0; color: var(--l-muted); font-size: 13px; }
.l-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.l-library-head .l-actions { flex-shrink: 0; }
.l-library-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--l-line); padding: 20px 0; font-size: 12px; color: var(--l-muted); }
.l-search { width: 245px; font-size: 12px !important; background: #fffef98f !important; }
.l-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; margin-bottom: 24px; }
.l-workspace .l-folder-card { display: grid; grid-template-columns: 25px 1fr; gap: 9px; padding: 15px; text-align: left; background: #ecefe4; border-color: #dbe1d1; }
.l-folder-card > span { grid-row: span 2; font-size: 24px; color: #74916d; }
.l-folder-card b { font-size: 13px; overflow-wrap: anywhere; }
.l-folder-card small { color: var(--l-muted); font-size: 10px; }
.l-note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 18px; }
.l-workspace .l-note-card { text-align: left; padding: 22px; border-radius: 4px 15px 15px 4px; min-height: 238px; background: linear-gradient(90deg, #f1f0e7 0, #f1f0e7 4px, var(--l-paper) 4px); box-shadow: 0 5px 12px #344a3010; display: flex; flex-direction: column; animation: l-reveal .4s both; animation-delay: calc(var(--card-index) * 35ms); }
.l-workspace .l-note-card:hover { background: linear-gradient(90deg, #c9dccb 0, #c9dccb 4px, #fffef9 4px); box-shadow: 0 8px 20px #344a3018; }
.l-card-top { display: flex; justify-content: space-between; align-items: center; }
.l-card-top small { font-size: 10px; color: var(--l-muted); }
.l-paper-icon { font-family: "Georgia", "STSong", serif; font-size: 23px; color: #65856a; }
.l-note-card h2 { font-size: 18px; line-height: 1.5; font-family: "STSong", "SimSun", "Georgia", serif; font-weight: 600; margin: 20px 0 10px; overflow-wrap: anywhere; }
.l-note-card p { color: var(--l-muted); font-size: 12px; line-height: 1.8; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.l-note-card footer { display: flex; gap: 10px; justify-content: space-between; font-size: 10px; color: var(--l-muted); margin-top: auto; padding-top: 12px; border-top: 1px solid #eeeede; }
.l-note-card footer > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-note-card time { flex-shrink: 0; }
.l-empty { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 65px 15px; }
.l-empty-symbol { position: relative; font-family: "Georgia", serif; font-size: 46px; padding: 20px; background: #e5eadd; border-radius: 10px 25px 25px 10px; color: #689077; transform: rotate(-6deg); margin-bottom: 20px; }
.l-empty-symbol span { font-size: 20px; position: absolute; right: -10px; bottom: -5px; width: 28px; height: 28px; border-radius: 50%; background: var(--l-accent); color: white; }
.l-empty h2 { font-family: "STSong", "SimSun", serif; font-weight: 500; font-size: 23px; }
.l-empty p, .l-no-results { color: var(--l-muted); font-size: 13px; }
.l-note-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 25px; }
.l-workspace .l-note-toolbar button { font-size: 12px; }
.l-workspace .l-save-status { background: transparent; border-color: transparent; font-size: 11px; color: #688972; }
.l-workspace .l-save-status.is-error { color: #b44630; border-color: #e5b8a5; }
.l-note-heading { margin-bottom: 26px; }
.l-workspace .l-title { border: 0; border-radius: 0; background: transparent; font-size: clamp(24px, 3vw, 34px); font-family: "STSong", "SimSun", "Georgia", serif; padding: 0 0 8px; width: 100%; border-bottom: 1px dashed transparent; }
.l-workspace .l-title:hover, .l-workspace .l-title:focus { border-bottom-color: #adc5b1; }
.l-study-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 22px; }
.l-document { background: var(--l-paper); border: 1px solid var(--l-line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 25px #3b4c3010; }
.l-prompt-box { padding: 18px 22px; background: #f1f4eb; border-bottom: 1px solid var(--l-line); }
.l-prompt-box summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.l-prompt-box summary span { float: right; font-weight: 400; color: var(--l-muted); font-size: 10px; }
.l-prompt-box textarea { display: block; width: 100%; margin-top: 14px; font-size: 13px; }
.l-prompt-box p { font-size: 10px; color: var(--l-muted); margin: 10px 0 0; }
.l-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eeeee5; }
.l-editor-toolbar > span { font-size: 10px; color: var(--l-muted); }
.l-segment { display: flex; gap: 3px; padding: 3px; background: #eff0e8; border-radius: 7px; }
.l-workspace .l-segment button { background: transparent; border: 0; padding: 6px 10px; font-size: 11px; }
.l-workspace .l-segment .active { background: var(--l-paper); box-shadow: 0 1px 4px #233b3914; color: var(--l-accent); }
.l-workspace .l-markdown-editor { display: block; border: 0; border-radius: 0; width: 100%; min-height: 520px; padding: 28px; font-family: "Cascadia Code", "Consolas", monospace; font-size: 13px; line-height: 1.9; background: #fffefb; }
.l-preview { padding: 28px 34px 50px; min-height: 450px; line-height: 1.9; font-size: 15px; overflow-wrap: anywhere; color: #35433b; }
.l-preview > :first-child { margin-top: 0; }
.l-preview h1, .l-preview h2, .l-preview h3 { font-family: "STSong", "SimSun", "Georgia", serif; color: var(--l-ink); line-height: 1.6; }
.l-preview h2 { padding-top: 22px; border-top: 1px solid #e5e8de; margin-top: 35px; font-size: 23px; }
.l-preview h3 { font-size: 19px; }
.l-preview p { line-height: 1.95; }
.l-preview a { color: var(--l-accent); text-underline-offset: 3px; }
.l-preview blockquote { margin: 20px 0; padding: 10px 18px; border-left: 3px solid #9dbb8c; background: #f2f5ea; color: #647660; }
.l-preview pre { padding: 16px; border: 1px solid var(--l-line); border-radius: 8px; background: #f3f4ed; overflow: auto; line-height: 1.7; }
.l-preview code { font-family: "Cascadia Code", "Consolas", monospace; font-size: .86em; background: #eff1e6; border-radius: 3px; padding: 2px 4px; }
.l-preview pre code { padding: 0; background: transparent; }
.l-preview img { max-width: 100%; height: auto; }
.l-preview table { display: block; overflow: auto; border-collapse: collapse; max-width: 100%; font-size: 13px; }
.l-preview th, .l-preview td { border: 1px solid var(--l-line); padding: 8px 12px; }
.l-preview th { background: #edf1e5; }
.l-preview .katex-display { overflow-x: auto; overflow-y: hidden; padding: 5px 0; }
.l-plain-preview { white-space: pre-wrap; }
.l-document-empty { max-width: 330px; color: #939d8e; font-size: 14px; text-align: center; margin: 100px auto; line-height: 2; }
.l-outline { background: #f9faf3; border: 1px solid var(--l-line); border-radius: 12px; padding: 22px 18px; }
.l-outline h2 { font-size: 17px; margin: 0; font-weight: 500; font-family: "STSong", "SimSun", serif; }
.l-outline-head > p:last-child { font-size: 11px; color: var(--l-muted); margin: 10px 0; }
.l-outline progress { appearance: none; width: 100%; height: 5px; border: 0; border-radius: 5px; background: #e3e8dc; color: var(--l-accent); }
.l-outline progress::-webkit-progress-bar { background: #e3e8dc; border-radius: 5px; }
.l-outline progress::-webkit-progress-value { background: var(--l-accent); border-radius: 5px; transition: width .3s; }
.l-outline progress::-moz-progress-bar { background: var(--l-accent); border-radius: 5px; }
.l-outline ol { list-style: none; margin: 22px 0; padding: 0; }
.l-outline li { display: flex; gap: 10px; position: relative; padding-bottom: 22px; align-items: flex-start; }
.l-outline li:not(:last-child)::after { content: ""; position: absolute; width: 1px; background: #dce4d5; top: 28px; left: 12px; bottom: 3px; }
.l-module-number { width: 25px; height: 25px; border: 1px solid #d1dbcb; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex-shrink: 0; color: var(--l-muted); background: #f6f8f0; }
.l-outline li b { font-weight: 500; font-size: 12px; line-height: 1.6; display: block; overflow-wrap: anywhere; }
.l-outline li small { display: block; color: #939b8d; font-size: 10px; margin-top: 4px; }
.l-outline li.done .l-module-number { background: #deeddf; color: #4d855d; border-color: #c6ddc7; }
.l-outline li.running .l-module-number { border: 2px solid var(--l-accent); animation: l-pulse 1.6s infinite; }
.l-outline li.running small { color: var(--l-accent); }
.l-outline-empty { color: var(--l-muted); font-size: 12px; line-height: 1.9; padding: 18px 0; }
.l-generation-status { font-size: 11px; line-height: 1.8; color: #61765f; margin-bottom: 15px; overflow-wrap: anywhere; }
.l-outline-actions { display: flex; flex-direction: column; gap: 8px; }
.l-outline-actions button { font-size: 11px; }
.l-outline-tip { font-size: 10px; color: #939b8d; margin-bottom: 0; }
.l-annotations { margin-top: 22px; border-top: 1px solid var(--l-line); padding-top: 15px; font-size: 11px; }
.l-annotations summary { cursor: pointer; }
.l-annotations > div { padding: 12px 0; border-bottom: 1px solid var(--l-line); display: flex; align-items: center; gap: 6px; }
.l-annotations span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; overflow-wrap: anywhere; line-height: 1.7; }
.l-workspace .l-annotations button { font-size: 10px; padding: 3px 5px; }
.l-highlight { background: #f5e97d99; border-radius: 2px; box-shadow: 0 1px #e8d95d; }
.l-underline { text-decoration: underline; text-decoration-color: #58a188; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.l-selection-menu { position: fixed; z-index: 1200; display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; max-width: calc(100vw - 16px); background: #fffef9; border: 1px solid #ced8c7; border-radius: 10px; box-shadow: 0 8px 35px #233b3926; }
.l-workspace .l-selection-menu button { border: 0; padding: 8px; font-size: 11px; background: transparent; }
.l-selection-menu button:first-child { background: #f7eeaa; }
.l-selection-menu i { width: 1px; background: var(--l-line); margin: 3px; }
.l-notice { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 16px 30px 0; padding: 10px 14px; border-radius: 8px; background: #e5efe0; border: 1px solid #ccdfc1; font-size: 12px; line-height: 1.7; }
.l-notice.is-error { background: #fff0e8; border-color: #edc8b5; color: #a04830; }
.l-workspace .l-notice button { border: 0; padding: 3px 5px; background: transparent; font-size: 20px; }
.l-loading { padding: 80px 20px; text-align: center; color: var(--l-muted); }
.l-workspace .l-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid #d4decd; padding: 0; border-radius: 15px; color: var(--l-ink); background: var(--l-paper); box-shadow: 0 25px 100px #233b3940; }
.l-dialog::backdrop { background: #20312c55; backdrop-filter: blur(3px); }
.l-dialog-form { padding: 26px; }
.l-dialog header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; gap: 15px; }
.l-dialog header h2 { font-family: "STSong", "SimSun", serif; font-size: 24px; font-weight: 500; margin: 0; }
.l-dialog header button { background: transparent; border: 0; font-size: 24px; padding: 0 4px; }
.l-dialog label { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 12px; font-weight: 600; }
.l-dialog input, .l-dialog textarea, .l-dialog select { width: 100%; font-weight: 400; font-size: 13px; }
.l-dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.l-dialog-hint { font-size: 11px; color: var(--l-muted); line-height: 1.8; }
.l-dialog blockquote { max-height: 180px; overflow: auto; margin: 0; background: #eff3e7; padding: 14px; border-left: 3px solid #aac091; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.l-dialog-error { color: #a04830; background: #fff0e8; border: 1px solid #edc8b5; border-radius: 7px; padding: 10px; font-size: 12px; }
.l-storage-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.l-storage-options > div { border: 1px solid var(--l-line); border-radius: 8px; padding: 13px; background: #f2f5ea; }
.l-storage-options b { font-size: 12px; }
.l-storage-options p { font-size: 11px; color: var(--l-muted); margin: 8px 0 0; }
.l-github-status { font-size: 11px; padding: 10px; background: #e6eee0; border-radius: 6px; overflow-wrap: anywhere; }
.l-github-guide { font-size: 11px; line-height: 1.9; }
.l-github-guide summary { cursor: pointer; font-weight: 600; }
.l-github-guide ol { padding-left: 21px; color: var(--l-muted); }
.l-github-guide li { margin-bottom: 6px; }
.l-github-actions { margin-top: 20px; }
.l-github-actions button { font-size: 11px; }
@keyframes l-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes l-pulse { 50% { box-shadow: 0 0 0 4px #27766b18; } }
@media (min-width: 1550px) { .l-study-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; } }
@media (max-width: 1150px) { .l-shell { grid-template-columns: 185px minmax(0, 1fr); } .l-content { padding: 24px; } .l-study-layout { grid-template-columns: minmax(0, 1fr); } .l-outline ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; } .l-outline li::after { display: none; } .l-outline-actions { flex-direction: row; flex-wrap: wrap; } .l-library-head { align-items: flex-start; flex-direction: column; } }
@media (max-width: 700px) { .l-shell { display: block; } .l-sidebar { padding: 15px; border-right: 0; border-bottom: 1px solid var(--l-line); } .l-brand { padding: 0 0 12px; } .l-brand > span { width: 30px; height: 34px; font-size: 20px; } .l-tree { max-height: 190px; overflow: auto; } .l-workspace .l-tree-home { padding: 8px; } .l-tree-caption { padding: 10px 8px 4px; } .l-sidebar-bottom { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; } .l-sidebar-bottom > small { display: none; } .l-sidebar-bottom .l-storage-button { width: auto; margin-left: auto; } .l-library-count { margin: 0; } .l-topbar { padding: 12px 16px; } .l-content { padding: 20px 16px; } .l-library-head { padding: 8px 0 22px; } .l-library-head h1 { font-size: 26px; } .l-search { width: 180px; } .l-note-grid { grid-template-columns: 1fr; } .l-folder-grid { grid-template-columns: 1fr 1fr; } .l-preview { padding: 22px 20px 35px; font-size: 14px; } .l-preview h2 { font-size: 21px; } .l-prompt-box { padding: 15px; } .l-prompt-box summary span { display: none; } .l-workspace .l-markdown-editor { padding: 20px; min-height: 420px; } .l-note-toolbar { flex-wrap: wrap; margin-bottom: 20px; } .l-note-toolbar .l-actions { margin-left: auto; } .l-editor-toolbar { padding: 12px; } .l-note-heading { margin-bottom: 18px; } .l-notice { margin: 12px 16px 0; } .l-dialog-form { padding: 20px; } .l-dialog header h2 { font-size: 21px; } .l-storage-options { grid-template-columns: 1fr; } .l-outline ol { grid-template-columns: 1fr; } .l-outline li { padding-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .l-workspace *, .l-workspace *::before, .l-workspace *::after { animation: none !important; transition: none !important; } }
 .l-management { flex-wrap: wrap; margin-bottom: 18px; gap: 8px; }
 .l-management button { border: 1px solid #ddd6c9; border-radius: 8px; background: #fffdf7; color: #554a3b; padding: 8px 12px; cursor: pointer; }
 .l-management button[data-l-action^="delete"] { color: #a2382d; }
