.notebook-page{--canvas:#f6f7f5;--surface:#fff;--ink:#23332d;--ink-soft:#384a42;--muted:#627169;--line:#dce3dd;--moss:#356b50;--focus:#356b50;--code:#fafbf9;--selected:#e9f1e9;background:var(--canvas);background-image:none;font-family:Inter,'Segoe UI','Microsoft YaHei',sans-serif}
:root[data-theme=dark] .notebook-page{--canvas:#171d1b;--surface:#1c2421;--ink:#e2e9e3;--ink-soft:#c2cec5;--muted:#98a99d;--line:#34423a;--moss:#9ec6a8;--focus:#9ec6a8;--code:#151c19;--selected:#293d30}
.notebook-page::before,.notebook-page::after{display:none}.notebook-page .sub-header,.notebook-page .sub-footer,.notebook-main{width:min(1320px,calc(100% - 64px))}.notebook-page .sub-header{padding:17px 0;gap:28px}.notebook-page .brand{font-size:35px}.notebook-page .sub-header nav a{font-size:14px}.notebook-intro{display:flex;justify-content:space-between;align-items:center;gap:32px;padding:38px 0 32px}.notebook-intro .eyebrow{font-size:10px;letter-spacing:.17em;color:var(--muted);margin:0 0 12px}.notebook-intro h1{font-family:inherit;font-size:32px;font-weight:650;letter-spacing:-.045em;line-height:1.3;margin:0}.notebook-intro h1 span{font-size:19px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:8px}.notebook-intro .lead{font-size:14px;margin:12px 0 0;color:var(--muted)}.notebook-meta{display:grid;grid-template-columns:1fr 1fr;gap:15px 24px;margin:0;font-size:12px}.notebook-meta a{text-decoration:none;min-height:32px;display:flex;align-items:center;border-bottom:1px solid var(--line)}.notebook-meta>span{grid-column:1/-1;text-align:right;color:var(--muted);font-size:12px}.notebook-meta i{font-style:normal;margin:0 8px;color:var(--line)}
.notebook-layout{grid-template-columns:265px minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:clip;min-height:680px}.notebook-sidebar{padding:23px 16px;top:0;max-height:100dvh;border-right:1px solid var(--line);scrollbar-width:thin}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:0 10px;margin-bottom:18px;font-size:13px;font-weight:600}.sidebar-heading button{display:none}.search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.search-field{margin:0;background:var(--canvas);border:1px solid var(--line);border-radius:7px;align-items:center}.search-field>span{padding-left:10px;font-size:23px;color:var(--muted)}.search-field input{padding:12px 7px;font-size:12px;min-height:44px}.search-field button{min-width:36px;height:44px;font-size:20px}.notebook-sidebar #search-status{margin:12px 10px 23px;font-size:12px}.template-nav{display:block;max-height:none;overflow:visible}.nav-group{margin:0 0 22px}.nav-group h3{font-family:inherit;font-size:12px;color:var(--ink-soft);display:flex;align-items:center;justify-content:space-between;margin:0 9px 8px;font-weight:600}.nav-group h3 small{font-size:11px;font-weight:400;color:var(--muted)}.nav-group a{font-size:13px;padding:9px 12px;line-height:1.6;border:0;border-radius:5px;color:var(--muted);margin:2px 0;overflow-wrap:anywhere}.nav-group a:hover{background:var(--canvas)}.nav-group a[aria-current]{background:var(--selected);color:var(--moss);font-weight:600;box-shadow:inset 3px 0 var(--moss)}.sidebar-note{font-size:11px;color:var(--muted);padding:16px 10px 0;border-top:1px solid var(--line);margin:25px 0 0}
.notebook-articles{padding:32px 36px;min-width:0}.reader-ready .template-group>h2{display:none}.template-group+.template-group{margin-top:0}.template{scroll-margin-top:24px;margin-bottom:26px}.template:focus{outline:none}.article-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.article-category{font-size:12px;color:var(--moss);margin:0 0 10px}.article-category span{font-size:10px;color:var(--muted);letter-spacing:.09em;margin-left:10px}.article-heading h3{font-family:inherit;font-size:28px;font-weight:600;line-height:1.4;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}.permalink{display:grid;place-items:center;min-width:44px;height:44px;border:1px solid var(--line);border-radius:7px;color:var(--muted)!important;text-decoration:none;font:20px Consolas,monospace}.code-box{border-radius:8px;background:var(--code);margin:18px 0;box-shadow:0 3px 8px #00000003}.code-bar{padding:7px 15px;background:var(--surface);font-size:12px;gap:12px;min-height:58px}.code-bar>span{display:flex;align-items:center;gap:9px;white-space:nowrap}.code-bar small{font-size:11px}.code-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--moss)}.code-bar>div{display:flex;gap:8px}.code-bar button{font-size:12px;min-height:36px;padding:6px 12px;cursor:pointer;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--muted)}.code-bar .copy-code{background:var(--selected);color:var(--moss);border-color:transparent}.code-bar button:hover,.code-bar button[aria-pressed=true]{border-color:var(--moss);color:var(--moss)}.notebook-page pre{max-height:none;padding:24px;font-size:13px;line-height:1.8;color:var(--ink-soft);tab-size:4}.notebook-page code{font-family:'Cascadia Code',Consolas,'Liberation Mono',monospace;font-variant-ligatures:none}.code-wrapped pre{white-space:pre-wrap;overflow-wrap:anywhere}.syntax-keyword{color:#8150a0}.syntax-number{color:#a36125}.syntax-string{color:#347350}.syntax-comment{color:#708077;font-style:italic}.syntax-directive{color:#426b94}:root[data-theme=dark] .syntax-keyword{color:#c4a4de}:root[data-theme=dark] .syntax-number{color:#dbb17e}:root[data-theme=dark] .syntax-string{color:#a0caa7}:root[data-theme=dark] .syntax-comment{color:#8d9d92}:root[data-theme=dark] .syntax-directive{color:#97b9d4}.source-note{font-size:14px;line-height:1.9}.reader-pagination{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:22px;margin-top:30px}.reader-pagination a{max-width:48%;font-size:12px;color:var(--moss);line-height:1.7;text-decoration:none;min-height:44px;display:flex;align-items:center}.reader-pagination #next-template{margin-left:auto;text-align:right}.reader-note{margin:24px 0 0;font-size:11px;line-height:1.8;color:var(--muted)}.empty-search{padding:35px 0;font-size:18px;line-height:2}.empty-search small{font-size:13px}.notebook-page .sub-footer{margin-top:28px;padding:24px 0}.notebook-page .copy-status:not(:empty){background:var(--ink);color:var(--canvas)}
@media(min-width:1600px){.notebook-page pre{font-size:14px}}
@media(max-width:850px){.notebook-page .sub-header,.notebook-page .sub-footer,.notebook-main{width:calc(100% - 36px)}.notebook-layout{grid-template-columns:220px minmax(0,1fr)}.notebook-articles{padding:26px 22px}.notebook-sidebar{padding:22px 12px}.code-bar{padding-inline:10px}.code-bar button{padding-inline:8px}.article-heading h3{font-size:25px}}
@media(max-width:620px){.notebook-intro{display:block;padding:28px 0 24px}.notebook-intro h1{font-size:30px}.notebook-meta{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:20px;align-items:center}.notebook-meta>span{font-size:11px}.notebook-meta a{min-height:30px}.notebook-layout{display:block;border-radius:9px;min-height:0}.notebook-sidebar{position:static;border-right:0;border-bottom:1px solid var(--line);max-height:none;padding:12px 14px}.sidebar-heading{margin:0;padding:0;font-size:13px;min-height:44px}.reader-ready .sidebar-heading button{display:block;border:0;background:transparent;color:var(--moss);font-size:12px;min-height:44px;cursor:pointer}.reader-ready .notebook-sidebar:not(.directory-open) #directory-body{display:none}.template-nav{max-height:350px;overflow:auto;padding-bottom:0;border:0}.nav-group a{min-height:44px;display:flex;align-items:center}.search-field{margin-top:12px}.sidebar-note{display:none}.notebook-articles{padding:24px 16px}.article-heading{margin-bottom:20px}.article-heading h3{font-size:25px}.article-category span{font-size:9px}.code-bar{padding:6px 9px;gap:6px;flex-wrap:wrap}.code-bar button{min-height:44px;padding:6px 8px;font-size:11px}.code-bar small{font-size:10px}.code-bar>span{gap:6px;font-size:11px}.notebook-page pre{padding:18px 14px;font-size:12px;line-height:1.9}.notebook-page .sub-header{gap:20px}.reader-pagination{gap:14px}.reader-note{font-size:11px}.notebook-page .sub-footer{gap:8px}.notebook-page .theme-toggle{width:44px;height:44px}}
.notebook-page code{font-family:Consolas,monospace}
