.workspace-shell #guides-view{max-width:1300px;margin:auto}
.workspace-shell .guides-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start}
.workspace-shell .guides-library,.workspace-shell .guides-detail{min-width:0;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:13px}
.workspace-shell .guides-library{position:sticky;top:94px;max-height:calc(100dvh - 125px);overflow:auto}
.workspace-shell .guides-library h2{font-size:17px;margin:0 0 18px}
.workspace-shell .guides-library label{font-size:12px;margin:14px 0 5px;color:var(--muted)}
.workspace-shell #guides-search,.workspace-shell #guides-type{min-width:0;width:100%;min-height:42px;margin:0;padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--card);color:var(--ink);font-size:14px}
.workspace-shell #guides-count{font-size:12px;line-height:1.6;color:var(--muted);margin:16px 0}
.workspace-shell #guides-list{display:grid;gap:8px}
.workspace-shell #guides-list button,.workspace-shell #guides-refresh{width:100%;margin:0;min-height:42px;padding:10px 12px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:9px;font-size:13px;line-height:1.5;text-align:left;overflow-wrap:anywhere}
.workspace-shell #guides-list .guides-item{display:flex;flex-direction:column;gap:5px}
.workspace-shell #guides-list .guides-item span{font-size:11px;color:var(--muted)}
.workspace-shell #guides-list .guides-item[aria-pressed=true]{background:var(--signal-soft);border-color:var(--signal)}
.workspace-shell #guides-refresh{margin-top:18px;text-align:center;background:transparent;border-color:var(--line-strong);font-size:12px}
.workspace-shell .guides-detail{min-height:400px;scroll-margin-top:100px}
.workspace-shell .guides-detail>h2{font-size:28px;line-height:1.3;margin:5px 0 12px;overflow-wrap:anywhere}
.workspace-shell .guides-kind{font-size:12px;color:var(--muted);margin:0}
.workspace-shell .guides-summary{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 22px}
.workspace-shell .guides-toc{padding:16px;margin:20px 0;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.workspace-shell .guides-toc h3{font-size:13px;margin:0 0 10px}
.workspace-shell .guides-toc a{display:block;padding:5px 0;font-size:14px;color:var(--ink);overflow-wrap:anywhere}
.workspace-shell .guides-content section{scroll-margin-top:110px;margin:28px 0}
.workspace-shell .guides-content h3{font-size:22px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 12px}
.workspace-shell .guides-content .math-text{font-family:Georgia,serif;font-size:18px;line-height:1.85;white-space:pre-line;overflow-wrap:anywhere}
.workspace-shell .guides-practice{display:inline-block;padding:10px 16px;min-height:44px;border-radius:8px;background:var(--signal);color:#171918;font-size:13px;font-weight:700;text-decoration:none}
.workspace-shell .guides-pdf-actions{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}
.workspace-shell .guides-pdf-actions button{width:auto;min-height:42px;padding:9px 14px;margin:0;border:1px solid var(--line-strong);border-radius:8px;background:var(--card);color:var(--ink);font-size:13px}
.workspace-shell .guides-pdf-actions p{width:100%;font-size:12px;line-height:1.6;color:var(--muted);margin:0;overflow-wrap:anywhere}
.workspace-shell .guides-pdf-frame{display:block;width:100%;height:600px;border:1px solid var(--line);border-radius:8px;margin-top:20px;scroll-margin-top:100px;background:white}
.workspace-shell .guides-empty{max-width:440px;margin:30px auto;font-size:15px;line-height:1.8;color:var(--muted)}
.workspace-shell #guides-message{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:1050px){.workspace-shell .guides-library{max-height:calc(100dvh - 190px)}}
@media(max-width:900px){.workspace-shell .guides-workspace{grid-template-columns:minmax(0,1fr);gap:16px}.workspace-shell .guides-library{position:static;max-height:none}.workspace-shell #guides-list{max-height:280px;overflow:auto}.workspace-shell .guides-detail{min-height:220px}}
@media(max-width:480px){.workspace-shell .guides-library,.workspace-shell .guides-detail{padding:16px}.workspace-shell .guides-detail>h2{font-size:23px}.workspace-shell .guides-content h3{font-size:20px}.workspace-shell .guides-content .math-text{font-size:17px}.workspace-shell .guides-toc{padding:12px}.workspace-shell .guides-pdf-frame{height:460px}}
