:root {
  color-scheme: dark;
  --bg: #090c12;
  --panel: #0e131c;
  --panel-2: #111a26;
  --panel-3: #172231;
  --line: #202b38;
  --line-soft: #18222e;
  --text: #eff3f8;
  --muted: #8e9aaa;
  --faint: #5c6878;
  --accent: #ff895b;
  --accent-2: #f15c4d;
  --teal: #64c9bc;
  --good: #65c9a1;
  --danger: #f27d7d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 74% 0%, rgba(25, 44, 62, .22), transparent 40%), var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.boot { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 100vh; color: var(--muted); }
.brand-mark { display: inline-grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: #111722; background: linear-gradient(145deg, #ffae72, #ed594a); font-size: 12px; font-weight: 800; letter-spacing: -.06em; box-shadow: 0 6px 20px rgba(242, 100, 73, .16); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); background: rgba(11, 15, 22, .88); padding: 24px 15px 18px; overflow: hidden; }
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 0 9px 25px; }
.brand-copy { min-width: 0; }
.brand-title { font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.brand-subtitle { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .095em; margin-top: 3px; white-space: nowrap; }
.search-trigger { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #202a36; border-radius: 10px; background: #0d121a; color: #a8b3c1; cursor: pointer; text-align: left; transition: .18s ease; }
.search-trigger:hover { border-color: #3b4b5d; color: var(--text); background: #111a25; }
.search-trigger .search-label { flex: 1; font-size: 12px; }
.kbd { border: 1px solid #2b3745; border-radius: 5px; color: #788596; padding: 2px 5px; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.side-section-label { color: #637081; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; padding: 22px 11px 8px; }
.nav-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 8px; color: #aeb8c5; background: transparent; text-align: left; font-size: 12px; cursor: pointer; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav-link.active { color: #ffe1d3; background: rgba(255, 137, 91, .11); }
.nav-icon { display: inline-grid; place-items: center; width: 16px; color: #778595; }
.nav-link.active .nav-icon { color: var(--accent); }
.category-list { display: grid; gap: 3px; overflow-y: auto; padding-right: 3px; }
.category-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 0 8px 5px 11px; color: #637081; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.category-count { font-size: 10px; color: #687789; letter-spacing: 0; }
.category-group { margin-bottom: 4px; }
.category-button { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; color: #aeb8c5; padding: 7px 10px; text-align: left; font-size: 12px; cursor: pointer; }
.category-button:hover, .category-button.active { background: rgba(255,255,255,.045); color: var(--text); }
.folder-glyph { color: #748295; font-size: 13px; }
.category-docs { margin: 2px 0 7px 20px; padding-left: 10px; border-left: 1px solid #26313f; display: grid; gap: 1px; }
.doc-nav { border: 0; background: transparent; color: #8390a0; cursor: pointer; text-align: left; padding: 6px 7px; border-radius: 6px; line-height: 1.35; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-nav:hover, .doc-nav.active { color: #e6edf4; background: rgba(255,255,255,.05); }
.sidebar-footer { margin-top: auto; padding: 16px 3px 0; }
.community-card { border: 1px solid #253141; border-radius: 12px; padding: 13px; background: linear-gradient(145deg, rgba(22, 34, 47, .78), rgba(15, 22, 31, .88)); }
.community-card strong { display: block; font-size: 11px; margin-bottom: 5px; }
.community-card p { color: #8190a1; margin: 0 0 11px; font-size: 10px; line-height: 1.5; }
.community-card a { text-decoration: none; color: #ffd2bf; font-size: 10px; font-weight: 700; }
.community-card a:hover { text-decoration: underline; }
.main-column { min-width: 0; }
.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line-soft); padding: 0 clamp(20px, 4vw, 52px); background: rgba(9, 12, 18, .7); }
.crumbs { color: #718092; display: flex; gap: 8px; align-items: center; font-size: 11px; }
.crumbs strong { color: #b6c1ce; font-weight: 600; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; color: #8494a6; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; border: 1px solid #222d39; border-radius: 20px; padding: 6px 9px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(101,201,161,.1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #2a3745; background: #111822; color: #c8d0da; text-decoration: none; font-size: 11px; font-weight: 700; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.btn:hover { background: #1a2633; border-color: #405163; color: white; }
.btn.primary { border-color: transparent; color: #1a1110; background: linear-gradient(135deg, #ffad73, #f27151); box-shadow: 0 5px 17px rgba(240,104,74,.16); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: transparent; color: #9aa7b7; }
.btn.ghost:hover { border-color: #293747; background: #121a24; color: white; }
.btn.danger { color: #ffc0bd; border-color: #563738; background: #24191d; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #293544; border-radius: 8px; background: #111822; color: #9aa8b8; cursor: pointer; }
.icon-btn:hover { color: white; background: #192430; }
.mobile-menu { display: none; }
.content-wrap { width: min(100%, 1250px); margin: 0 auto; padding: 44px clamp(20px, 5vw, 64px) 84px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 790px) 190px; gap: clamp(30px, 5vw, 80px); justify-content: center; align-items: start; }
.article { min-width: 0; }
.article-meta-top { display: flex; align-items: center; gap: 8px; color: #8593a2; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; margin-bottom: 18px; }
.eyebrow-dot { color: var(--accent); font-size: 15px; line-height: 0; }
.article h1 { margin: 0; font-size: clamp(30px, 4vw, 45px); line-height: 1.11; letter-spacing: -.055em; font-weight: 800; max-width: 820px; }
.article-deck { color: #9ca9b7; font-size: 15px; line-height: 1.75; margin: 14px 0 22px; max-width: 680px; }
.article-byline { display: flex; align-items: center; gap: 8px; color: #758294; font-size: 10px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.article-byline strong { color: #c5ced8; font-weight: 600; }
.byline-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: #232f3c; color: var(--accent); font-size: 8px; font-weight: 800; }
.article-actions { margin-left: auto; display: flex; gap: 5px; }
.article-body { color: #c4ced9; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { color: #f0f4f8; letter-spacing: -.035em; line-height: 1.3; margin: 35px 0 13px; }
.article-body h1 { font-size: 29px; }
.article-body h2 { font-size: 23px; border-bottom: 1px solid #222e3a; padding-bottom: 10px; }
.article-body h3 { font-size: 18px; }
.article-body h4 { font-size: 15px; }
.article-body h5, .article-body h6 { font-size: 13px; }
.article-body p { margin: 0 0 17px; }
.article-body a { color: #ffad84; text-decoration: underline; text-decoration-color: rgba(255,173,132,.45); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body ul, .article-body ol { padding-left: 23px; margin: 7px 0 19px; }
.article-body li { padding-left: 3px; margin: 6px 0; }
.article-body li::marker { color: #ff916c; }
.article-body blockquote { border-left: 2px solid var(--accent); margin: 18px 0; padding: 2px 0 2px 16px; color: #9eabb9; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; background: #1a2532; border: 1px solid #263544; color: #ffd1ba; padding: 2px 5px; border-radius: 5px; }
.code-card { margin: 18px 0 22px; border: 1px solid #273443; border-radius: 11px; overflow: hidden; background: #0d131b; }
.code-head { display: flex; justify-content: space-between; align-items: center; min-height: 35px; padding: 0 12px; border-bottom: 1px solid #222d39; color: #718092; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-head button { background: none; border: 0; cursor: pointer; color: #8291a2; font: inherit; }
.code-head button:hover { color: #fff; }
.article-body pre { margin: 0; padding: 14px; overflow-x: auto; color: #d4dee8; font: 11px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.article-body hr { border: 0; border-top: 1px solid #263341; margin: 28px 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 18px 0 24px; font-size: 12px; }
.article-body th, .article-body td { border: 1px solid #293746; padding: 9px 11px; text-align: left; }
.article-body th { color: #e5edf5; background: #131d29; font-weight: 700; }
.article-body img { max-width: 100%; border-radius: 9px; }
.task-list { list-style: none; padding-left: 4px !important; }
.task-list input { accent-color: var(--accent); vertical-align: middle; margin-right: 7px; }
.article-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: #758294; font-size: 10px; }
.toc { position: sticky; top: 32px; padding-top: 4px; }
.toc-title { color: #788697; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.toc a { display: block; border-left: 1px solid #253241; padding: 5px 0 5px 11px; color: #778596; font-size: 10px; line-height: 1.4; text-decoration: none; }
.toc a.level-3 { padding-left: 20px; }
.toc a:hover { color: #efb191; border-color: var(--accent); }
.toc-empty { color: #526070; font-size: 10px; line-height: 1.6; }
.home-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 52px); border: 1px solid #263646; border-radius: 18px; background: linear-gradient(125deg, rgba(20,34,47,.94), rgba(14,20,29,.94) 57%, rgba(27,30,36,.82)); }
.home-hero::after { position: absolute; content: ""; width: 330px; height: 330px; border: 1px solid rgba(255, 148, 104, .13); border-radius: 50%; right: -105px; top: -175px; box-shadow: 0 0 0 35px rgba(255,148,104,.025), 0 0 0 70px rgba(255,148,104,.018); pointer-events: none; }
.home-kicker { display: flex; align-items: center; gap: 9px; color: #dca88c; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.home-hero h1 { margin: 19px 0 12px; font-size: clamp(32px, 5.3vw, 55px); letter-spacing: -.065em; line-height: 1.04; max-width: 650px; }
.home-hero p { color: #a6b2c0; max-width: 570px; font-size: 14px; line-height: 1.75; margin: 0; }
.hero-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 13px 15px; margin-top: 27px; border: 1px solid #3b4a59; border-radius: 10px; background: rgba(7,11,17,.72); color: #778698; cursor: pointer; }
.hero-search:hover { border-color: #66788b; }
.hero-search span:nth-child(2) { flex: 1; color: #9ba8b6; font-size: 11px; text-align: left; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 35px 0 14px; }
.home-section-head h2 { font-size: 15px; margin: 0; letter-spacing: -.02em; }
.home-section-head span { color: #728092; font-size: 10px; }
.category-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.category-card { display: flex; align-items: center; gap: 13px; min-height: 84px; padding: 14px; border: 1px solid #24303d; border-radius: 12px; background: rgba(16,23,32,.76); cursor: pointer; text-align: left; }
.category-card:hover { transform: translateY(-2px); border-color: #465669; background: #131d28; }
.category-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #303d4a; border-radius: 10px; background: #182330; color: #f6a07a; font-size: 14px; }
.category-card-copy { min-width: 0; flex: 1; }
.category-card-copy strong { display: block; font-size: 11px; margin-bottom: 5px; }
.category-card-copy span { display: block; color: #788697; font-size: 10px; }
.category-card-arrow { color: #647386; }
.recent-list { display: grid; border: 1px solid #222e3b; border-radius: 12px; overflow: hidden; background: rgba(15,21,30,.65); }
.recent-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #202a36; cursor: pointer; }
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: rgba(255,255,255,.035); }
.recent-row .recent-icon { color: #8795a5; }
.recent-row .recent-copy { flex: 1; min-width: 0; }
.recent-row strong { display: block; font-size: 11px; margin-bottom: 4px; }
.recent-row span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #788697; font-size: 10px; }
.recent-row time { color: #708092; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.empty-state { text-align: center; padding: 54px 22px; border: 1px dashed #344252; border-radius: 14px; color: #9eabb9; }
.empty-state .empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 15px; border-radius: 14px; background: #172331; color: var(--accent); font-size: 18px; }
.empty-state h2 { margin: 0 0 8px; font-size: 17px; }
.empty-state p { max-width: 420px; margin: 0 auto 17px; color: #8492a2; font-size: 11px; line-height: 1.65; }
.studio-wrap { width: min(100%, 1280px); margin: 0 auto; padding: 30px clamp(16px, 3vw, 34px) 70px; }
.studio-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.studio-head h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.04em; }
.studio-head p { margin: 0; color: #8593a2; font-size: 11px; }
.studio-notice { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid rgba(255,169,114,.25); border-radius: 10px; background: rgba(255,137,91,.07); color: #e6b99f; font-size: 10px; line-height: 1.55; margin-bottom: 18px; }
.studio-notice strong { color: #ffd4bf; }
.studio-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 17px; }
.studio-toolbar .spacer { flex: 1; }
.manage-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.62fr); gap: 14px; }
.manage-card { border: 1px solid #253241; border-radius: 13px; background: rgba(15,21,30,.75); overflow: hidden; }
.manage-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 15px; border-bottom: 1px solid #232e3b; }
.manage-card-head h2 { font-size: 12px; margin: 0; }
.manage-card-head span { color: #7b8899; font-size: 10px; }
.manage-list { padding: 5px 9px; max-height: 390px; overflow: auto; }
.manage-row { display: flex; align-items: center; gap: 9px; padding: 9px 7px; border-bottom: 1px solid rgba(36,47,60,.68); }
.manage-row:last-child { border-bottom: 0; }
.manage-row-copy { flex: 1; min-width: 0; }
.manage-row-copy strong { display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-row-copy span { display: block; color: #758394; font-size: 9px; margin-top: 4px; }
.manage-row-actions { display: flex; gap: 4px; }
.mini-btn { border: 1px solid #2a3745; border-radius: 6px; background: #111923; color: #9aa8b8; font-size: 9px; padding: 5px 7px; cursor: pointer; }
.mini-btn:hover { background: #1a2633; color: white; }
.category-manage-row { padding: 10px 8px; border-bottom: 1px solid rgba(36,47,60,.68); }
.category-manage-row:last-child { border-bottom: 0; }
.editor-shell { border: 1px solid #263444; border-radius: 14px; background: rgba(13,19,27,.85); overflow: hidden; }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #263241; }
.editor-top-copy { min-width: 0; }
.editor-top-copy strong { display: block; font-size: 11px; }
.editor-top-copy span { color: #778697; font-size: 9px; }
.editor-main { padding: 22px; }
.form-label { display: block; color: #8997a8; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; margin-bottom: 7px; }
.field { width: 100%; border: 1px solid #2a3847; border-radius: 8px; padding: 10px 11px; background: #0a1017; color: var(--text); font-size: 11px; }
.field:focus { border-color: #a15d47; outline: 1px solid rgba(255,137,91,.1); }
.title-field { padding: 13px; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.form-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin: 13px 0 18px; }
.editor-label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0 7px; }
.markdown-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid #293746; border-bottom: 0; border-radius: 8px 8px 0 0; background: #131b25; }
.markdown-toolbar button { min-width: 27px; height: 25px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #9ba8b6; cursor: pointer; font-size: 10px; }
.markdown-toolbar button:hover { border-color: #39485a; background: #1c2936; color: white; }
.editor-split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #293746; border-radius: 0 0 8px 8px; overflow: hidden; min-height: 420px; }
.markdown-input { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid #293746; }
.panel-kicker { padding: 9px 11px; color: #778697; background: #111923; border-bottom: 1px solid #25313d; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.markdown-textarea { flex: 1; width: 100%; resize: vertical; min-height: 390px; border: 0; border-radius: 0; outline: none !important; padding: 14px; background: #0b1118; color: #d3dee9; font: 11px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.preview-pane { min-width: 0; padding: 0 14px 14px; overflow: auto; max-height: 540px; }
.preview-pane .article-body { font-size: 11px; }
.preview-pane .article-body h1 { font-size: 24px; }
.preview-pane .article-body h2 { font-size: 19px; }
.preview-pane .article-body h3 { font-size: 15px; }
.preview-pane .article-body h4 { font-size: 12px; }
.history-list { display: grid; gap: 8px; padding: 14px; }
.history-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px; border: 1px solid #273544; border-radius: 8px; background: #111923; }
.history-item strong { display: block; font-size: 10px; }
.history-item span { display: block; color: #788697; font-size: 9px; margin-top: 4px; }
.overlay { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(3,6,10,.75); backdrop-filter: blur(8px); }
.dialog { width: min(100%, 600px); max-height: min(82vh, 680px); overflow: hidden; border: 1px solid #344252; border-radius: 15px; background: #111923; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px; border-bottom: 1px solid #263342; }
.dialog-head h2 { margin: 0; font-size: 13px; }
.dialog-body { padding: 15px 17px; overflow-y: auto; max-height: calc(82vh - 60px); }
.search-input { width: 100%; padding: 13px 14px; border: 1px solid #39495a; border-radius: 9px; background: #0a1119; color: var(--text); font-size: 12px; }
.search-results { display: grid; gap: 4px; margin-top: 13px; }
.search-result { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; width: 100%; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; padding: 10px; cursor: pointer; }
.search-result:hover { background: #1b2835; }
.search-result .result-icon { color: #ff9b73; }
.search-result strong { display: block; font-size: 11px; margin-bottom: 4px; }
.search-result small { display: block; color: #8b99a9; font-size: 9px; line-height: 1.5; }
.no-results { padding: 18px; text-align: center; color: #8492a2; font-size: 11px; }
.toast { position: fixed; z-index: 80; bottom: 22px; left: 50%; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 10px 15px; border: 1px solid #35485a; border-radius: 9px; background: #16212d; color: #dce5ed; font-size: 10px; box-shadow: 0 12px 36px rgba(0,0,0,.35); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 950px) {
  .app-shell { grid-template-columns: 230px minmax(0,1fr); }
  .page-grid { grid-template-columns: minmax(0,1fr); }
  .toc { position: static; order: -1; border-bottom: 1px solid var(--line-soft); padding: 0 0 13px; margin-bottom: 5px; }
  .toc a { display: inline-block; margin: 3px 4px 3px 0; border: 1px solid #253241; border-radius: 6px; padding: 5px 8px !important; }
  .toc-title { margin-bottom: 7px; }
}
@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 30; left: 0; top: 0; width: min(84vw, 300px); transform: translateX(-103%); transition: transform .22s ease; box-shadow: 22px 0 60px rgba(0,0,0,.42); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .topbar { height: 58px; padding: 0 14px; }
  .crumbs { flex: 1; min-width: 0; }
  .crumbs span, .status-pill { display: none; }
  .top-actions { gap: 5px; }
  .top-actions .btn { min-height: 31px; padding: 0 9px; font-size: 10px; }
  .content-wrap { padding: 25px 16px 60px; }
  .page-grid { gap: 20px; }
  .article h1 { font-size: 34px; }
  .article-deck { font-size: 13px; }
  .category-cards { grid-template-columns: 1fr; }
  .manage-grid { grid-template-columns: 1fr; }
  .studio-wrap { padding: 22px 14px 50px; }
  .studio-head { align-items: flex-start; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .editor-split { grid-template-columns: 1fr; }
  .markdown-input { border-right: 0; border-bottom: 1px solid #293746; }
  .markdown-textarea { min-height: 280px; }
  .preview-pane { max-height: none; min-height: 250px; }
  .editor-main { padding: 15px; }
  .article-actions .btn { padding: 0 8px; }
}

