:root { --sn-ui:var(--ui); }
body header.top.sn-header { box-sizing:border-box; height:64px; min-height:64px; width:100%; max-width:none; padding:0 24px; display:flex; flex-wrap:nowrap; align-items:center; gap:24px; position:sticky; top:0; z-index:40; background:#fff; color:#171917; border-bottom:1px solid #666; font:15px/1.4 var(--sn-ui, var(--ui)); }
body header.sn-header .brand { flex:none; display:flex; align-items:center; gap:8px; font:600 18px/1.4 var(--sn-ui, var(--ui)); color:inherit; }
body header.sn-header .brand span { display:inline; }
.sn-header>.crumb,.sn-header>.crumbs,.sn-header>nav:not(.sn-links),.sn-header .contents-open,.sn-header .search-key { display:none!important; }
.sn-header .top-tools { display:flex; flex-wrap:nowrap; gap:4px; margin-left:auto; align-items:center; }
body .sn-header .top-tools>a,body .sn-header .top-tools>button { position:relative; display:inline-flex; justify-content:center; align-items:center; box-sizing:border-box; width:44px; height:44px; min-height:44px; padding:0; margin:0; border:1px solid transparent; border-radius:4px; color:inherit; background:transparent; font:600 22px/1 var(--sn-ui, var(--ui)); text-decoration:none; }
.sn-header .top-tools .lbl { display:none; }
.sn-header .top-tools .ico { display:inline; }
.sn-header .theme .sun { display:none; }
[data-theme="dark"] .sn-header .theme .sun { display:inline; }
[data-theme="dark"] .sn-header .theme .moon { display:none; }
.sn-links { display:flex; align-items:center; gap:24px; font:15px/1.5 var(--sn-ui, var(--ui)); }
.sn-links a,.sn-links summary { color:inherit; min-height:44px; display:flex; align-items:center; cursor:pointer; text-decoration:none; }
.sn-about { position:relative; }
.sn-pop { position:absolute; top:100%; left:0; min-width:240px; padding:12px; border:1px solid #666; background:#fff; color:#171917; box-shadow:0 8px 20px #0002; }
.sn-tip { display:none; position:absolute; top:calc(100% + 8px); right:0; width:max-content; max-width:240px; padding:8px 12px; background:#171917; color:#fff; font:15px/1.5 var(--sn-ui, var(--ui)); border-radius:4px; pointer-events:none; }
[data-sn-tip]:hover>.sn-tip,[data-sn-tip]:focus-visible>.sn-tip,.sn-tip-open>.sn-tip { display:block; }
body .sn-header .sn-menu { display:none; }
.sn-drawer,.sn-global { box-sizing:border-box; width:min(440px,calc(100% - 24px)); max-height:85dvh; padding:20px; border:1px solid #666; background:#fff; color:#171917; font:18px/1.5 var(--sn-ui, var(--ui)); }
.sn-drawer::backdrop,.sn-global::backdrop { background:#0008; }
.sn-drawer>button,.sn-drawer>a { position:relative; display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; margin:8px; color:inherit; background:transparent; font:18px/1.5 var(--sn-ui, var(--ui)); }
.sn-drawer .sn-links { display:block; }
.sn-drawer .sn-pop { position:static; box-shadow:none; }
.sn-drawer .sn-tip { top:auto; bottom:100%; right:auto; left:0; }
.sn-global label,.sn-global input,.sn-hits a { display:block; width:100%; box-sizing:border-box; font:18px/1.5 var(--sn-ui, var(--ui)); color:inherit; }
.sn-global input { min-height:44px; background:transparent; border:1px solid currentColor; }
.sn-hits { height:50vh; overflow:auto; margin-top:16px; }
.sn-hits a { padding:12px 0; }
.sn-view { display:flex; gap:12px; align-items:center; }
.sn-header :focus-visible,.sn-drawer :focus-visible { outline:3px solid currentColor; outline-offset:2px; }
[data-theme="dark"] body .sn-header,[data-theme="dark"] .sn-pop,[data-theme="dark"] .sn-drawer,[data-theme="dark"] .sn-global { background:#111511; color:#f8faf7; border-color:#aaa; }
@media(max-width:899px) { body header.top.sn-header { padding:0 12px; gap:8px; } body .sn-header .sn-menu { display:inline-flex; } }
.cn-bar { top:64px!important; }
@media(forced-colors:active) { .sn-header button { border:1px solid ButtonText!important; } }

.sn-drawer .theme .sun { display:none; }
[data-theme="dark"] .sn-drawer .theme .sun { display:inline; }
[data-theme="dark"] .sn-drawer .theme .moon { display:none; }
.sn-drawer .theme .lbl,.sn-drawer .reading .lbl { display:inline; }
[data-sn-tip]:focus>.sn-tip { display:block; }

.sn-header .toc-opener { display:none!important; }

[data-theme="dark"] body header.top.sn-header { background:#111511; color:#f8faf7; border-color:#aaa; }
body header.sn-header .top-tools .sn-menu { display:none; }
body header.sn-header .reading .ico { font:600 18px/1 var(--sn-ui, var(--ui)); }
.sn-view[hidden] { display:none; }
.sn-view button[aria-pressed="true"] { outline:2px solid currentColor; }
.sn-about>summary::after { content:'⌄'; margin-left:8px; }
@media(max-width:899px) { body header.sn-header .top-tools .sn-menu { display:inline-flex; } }

body header.top.sn-header .brand span { display:inline; position:static; width:auto; height:auto; overflow:visible; clip:auto; clip-path:none; white-space:nowrap; }
.sn-header .sn-mobile-label { display:none; }
.sn-drawer > [data-sn-tip] { display:flex; width:100%; box-sizing:border-box; justify-content:flex-start; gap:12px; margin:8px 0; padding:8px 12px; min-height:44px; border:1px solid currentColor; border-radius:4px; background:transparent; color:inherit; text-decoration:none; font:18px/1.5 var(--sn-ui, var(--ui)); }
.sn-drawer > button:not([data-sn-tip]) { padding:8px 12px; border:1px solid currentColor; border-radius:4px; margin:0 0 12px; }
.sn-drawer .ico { font:600 18px/1 var(--sn-ui, var(--ui)); }
