/* Portal chrome shares terminal palette tokens; artwork keeps its own colours. */
@font-face{font-family:VT323;src:url('/site-assets/vt323-latin-400-normal.woff2') format('woff2');font-display:swap}
:root{--portal-bg:#282828;--portal-fg:#ebdbb2;--portal-accent:#d79921;--portal-red:#dd6c67;--portal-green:#98971a;--portal-yellow:#d79921;--portal-blue:#61989a;--portal-magenta:#bd7b99;--portal-cyan:#689d6a;--site-font:VT323,monospace}
html[data-portal-theme]{background:var(--portal-bg);scroll-behavior:auto;scrollbar-color:var(--portal-accent) var(--portal-bg)}
html[data-portal-theme] body{height:auto;min-height:100dvh;margin:0;overflow:auto;background:var(--portal-bg);color:var(--portal-fg);font-family:var(--site-font);font-size:20px;line-height:1.4;--identity-accent:var(--portal-accent);--panel:var(--portal-bg);--panel-2:var(--portal-bg);--text:var(--portal-fg);--card:var(--portal-bg)}
html[data-portal-theme] body::before{display:none}
html[data-portal-theme] .portal-shell{display:flex;flex-direction:column;width:min(1440px,calc(100% - 48px));height:auto;min-height:calc(100dvh - 48px);margin:24px auto;border:1px solid var(--portal-accent);border-radius:8px;overflow:clip;background:var(--portal-bg);box-shadow:0 18px 64px #0004}
html[data-portal-theme] .portal-shell>.viewport{display:grid;grid-template-columns:208px minmax(0,1fr);flex:1;align-items:stretch;min-height:calc(100dvh - 152px);overflow:visible}
html[data-portal-theme] .portal-shell>.titlebar,html[data-portal-theme] .portal-shell>.statusbar{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:48px;padding:10px 18px;background:var(--portal-bg);color:var(--portal-fg);font-size:17px;border-color:var(--portal-accent)}
html[data-portal-theme] .portal-shell>.titlebar{border-bottom:1px solid var(--portal-accent)}
html[data-portal-theme] .portal-shell>.statusbar{margin-top:auto;border-top:1px solid var(--portal-accent);font-size:16px}
html[data-portal-theme] .titlebar>.traffic{display:none}
html[data-portal-theme] .titlebar>.title-path{max-width:32ch}
html[data-portal-theme] .portal-shell .title-spacer,html[data-portal-theme] .portal-shell .status-spacer{display:block;flex:1}
html[data-portal-theme] .content-pane{display:flex;min-width:0;overflow:visible;background:var(--portal-bg)}
html[data-portal-theme] .buffer{overflow:visible;padding:24px;min-width:0}
html[data-portal-theme] .output{padding:0;min-width:0;overflow-wrap:anywhere}
html[data-portal-theme] .page-output{width:100%;max-width:1080px;margin:0 auto;padding:0}
html[data-portal-theme] .pane-header{min-height:42px;padding:10px 24px;background:var(--portal-bg);border-bottom:1px solid var(--portal-accent);color:var(--portal-accent);font-size:17px;letter-spacing:.04em}
html[data-portal-theme] .tree-pane{display:none}
.portal-sidebar{position:relative;min-width:0;padding:24px 14px 32px;border-right:1px solid var(--portal-accent);background:var(--portal-bg);font-size:19px}
.portal-brand{display:block;margin:0 8px 24px;color:var(--portal-accent)!important;font-size:30px;letter-spacing:.08em;text-decoration:none!important;background:transparent!important}
.portal-skip-link{position:absolute;left:12px;top:-100px;z-index:100;padding:10px 14px;background:var(--portal-bg)!important;color:var(--portal-accent)!important;border:2px solid var(--portal-accent)}
.portal-skip-link:focus{top:8px}
.portal-subtitle{font-size:16px!important;line-height:1.2!important;margin:0 8px 24px;max-width:16ch}
.portal-nav-group{margin:0 0 22px}
.portal-nav-label{display:block;margin:0 8px 7px;font-size:15px;text-transform:uppercase;letter-spacing:.13em;color:var(--portal-fg)}
.portal-sidebar .portal-nav-label{font-size:15px;line-height:1.3;margin:0 8px 8px;color:var(--portal-fg)}
.portal-sidebar .portal-nav-group{margin-bottom:18px}
.portal-nav-group>summary{cursor:pointer;min-height:32px}
html[data-portal-theme] a.portal-nav-link{display:block;margin:3px 0;padding:7px 9px;border:1px solid transparent;background:transparent;color:var(--portal-accent);text-decoration:none;line-height:1.15}
html[data-portal-theme] a.portal-nav-link:hover{border-color:var(--portal-accent)}
html[data-portal-theme] a.portal-nav-link[aria-current=page]{color:var(--portal-bg)!important;background:var(--portal-accent)!important;border-color:var(--portal-accent)}
.portal-theme-control{display:flex;gap:8px;align-items:center;margin-left:auto;min-width:0}
.portal-theme-control label{font-size:16px;text-transform:uppercase;letter-spacing:.08em}
html[data-portal-theme] #portal-theme-select{max-width:200px;min-height:34px;padding:3px 24px 3px 9px;border:1px solid var(--portal-accent);border-radius:0;background:var(--portal-bg);color:var(--portal-accent);font:inherit;font-size:18px}
#portal-theme-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-portal-theme] .portal-menu-toggle{display:none;padding:7px 10px;min-height:40px;border:1px solid var(--portal-accent);background:var(--portal-bg);color:var(--portal-accent);font:inherit}
html[data-portal-theme] :where(h1,h2,h3,h4,h5,h6){font-family:inherit;color:var(--portal-accent);font-weight:400;line-height:1.1;letter-spacing:0}
html[data-portal-theme] :where(h1,.page-output h1,.markdown-body h1){font-size:clamp(2.25rem,4vw,3.5rem);max-width:100%;margin:0 0 16px}
html[data-portal-theme] :where(h2,.page-output h2,.markdown-body h2){font-size:1.75rem;margin-bottom:14px}
html[data-portal-theme] :where(h3){font-size:1.35rem}
html[data-portal-theme] :where(p,li,dd,dt,label,small,figcaption,summary,td,th){color:var(--portal-fg)}
html[data-portal-theme] :where(p,.lead,.post-header .lead,.post-section>p,.markdown-body p,.markdown-body li){font-size:21px;line-height:1.4;max-width:78ch}
html[data-portal-theme] :where(small,.doc-meta,.meta-line,.kicker,.eyebrow,.product-menu-hint){font-size:17px}
html[data-portal-theme] :where(a){color:var(--portal-accent);background:transparent;text-underline-offset:3px}
html[data-portal-theme] :where(p,li,dd,td) a{text-decoration:underline}
html[data-portal-theme] :where(strong,mark,code,.cmd,.prompt,.kicker,.eyebrow,.tree-dir,.title-path,.status-path,.meta-line,.doc-meta,.terminal-list strong,.file-row .path,.command-row strong){color:var(--portal-accent);background:transparent}
html[data-portal-theme] :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--portal-accent)!important;outline-offset:3px}
html[data-portal-theme] :where(button,input,select,textarea){font-family:inherit;font-size:18px;max-width:100%;border-color:var(--portal-accent);border-radius:0;color:var(--portal-fg);background-color:var(--portal-bg)}
html[data-portal-theme] :where(input,select,textarea)::placeholder{color:var(--portal-fg);opacity:1}
html[data-portal-theme] :where(button,a.button,.terminal-link,.action-link,.product-menu-link){min-height:42px}
html[data-portal-theme] :where(button,.terminal-link,.action-link,.title-action,.button,.tab,.chip,.doc-browse-tab,.view-button){border:1px solid var(--portal-accent);background:var(--portal-bg);color:var(--portal-accent);border-radius:0;box-shadow:none}
html[data-portal-theme] :where(button,.terminal-link,.action-link,.product-menu-link,.doc-browse-tab):hover{background:var(--portal-accent);color:var(--portal-bg)}
html[data-portal-theme] :where(button:disabled,[aria-disabled=true]){color:var(--portal-fg);opacity:1;cursor:not-allowed;border-style:dashed}
html[data-portal-theme] :where(.terminal-card,.terminal-section,.terminal-list,.code-window,.command-list,.command-item,.settings-reference-groups,.settings-reference-group,.settings-reference-list,.settings-reference-option,.preset-card,.module-card,.market-card,.product-menu-link,.product-details,.doc-reader,.doc-browse-tabs,.doc-tab-links,.command-row,.file-row,.quick-commands,.note,.post-note,.post-header,.post-section,.feature-card,.editor-panel,.panel-heading,.upload-zone,.header-actions,.view-tabs,.workspace-panel,.meta-panel,.code-panel,.preview-panel,.palette-card,.palette-tools,.preset-meta span,.preset-tags span){background:var(--portal-bg);background-image:none;border-color:var(--portal-accent);color:var(--portal-fg);border-radius:0;box-shadow:none}
html[data-portal-theme] :where(pre,.code-window pre,.quick-commands){background:var(--portal-bg);color:var(--portal-fg);font-size:18px;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-portal-theme] :where(.product-menu-link span,.product-menu-link.is-launcher span,.product-menu-link.is-files span,.product-menu-link.is-keys span,.product-menu-group h2,.product-details summary,.app-proof strong,.panel-heading h2,.settings-reference-group>summary,.inline-doc-title){color:var(--portal-accent)}
html[data-portal-theme] :where(.product-menu-link small,.product-details p,.product-menu-group h2 span,.panel-heading span,.settings-reference-group>summary small,.theme-reference-head,.size,.palette-status){color:var(--portal-fg)}
html[data-portal-theme] .product-directory-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.65fr);gap:24px;margin:0 0 24px;padding:24px;border:1px solid var(--portal-accent);background:var(--portal-bg)}
html[data-portal-theme] .identity-project .product-directory-header{background:var(--portal-accent);color:var(--portal-bg)}
html[data-portal-theme] .identity-project .product-directory-header :where(h1,p,.kicker,a,span,small){color:var(--portal-bg);background:transparent}
html[data-portal-theme] .identity-project .product-directory-header .product-menu-link{border-color:var(--portal-bg);color:var(--portal-bg)}
html[data-portal-theme] .identity-project .product-directory-header :focus-visible{outline-color:var(--portal-bg)!important}
html[data-portal-theme] .product-menu{gap:24px}
html[data-portal-theme] .product-menu-group{border:1px solid var(--portal-accent);padding:14px}
html[data-portal-theme] .product-menu-group h2{border-bottom:1px solid var(--portal-accent);padding-bottom:10px;margin-bottom:4px;font-size:23px}
html[data-portal-theme] .product-menu-link{border:0;border-bottom:1px solid var(--portal-accent);padding:12px 6px;background:var(--portal-bg);text-decoration:none}
html[data-portal-theme] .product-menu-link:last-child{border-bottom:0}
html[data-portal-theme] .product-menu-link:hover{background:var(--portal-accent);color:var(--portal-bg)}
html[data-portal-theme] .product-menu-link:hover :where(span,small){color:var(--portal-bg)}
html[data-portal-theme] .post-header{margin-bottom:28px;padding-bottom:22px}
html[data-portal-theme] .post-section{margin-bottom:30px}
html[data-portal-theme] .portal-update{margin:24px 0;padding:18px;border:1px solid var(--portal-accent);border-left:5px solid var(--portal-accent);background:var(--portal-bg);color:var(--portal-fg)}
.portal-update-label{display:block;margin-bottom:10px;text-transform:uppercase;font-size:16px;letter-spacing:.1em;color:var(--portal-accent)}
html[data-portal-theme] .portal-update :last-child{margin-bottom:0}
html[data-portal-theme] .command-item{border-bottom:1px solid var(--portal-accent)}
html[data-portal-theme] .doc-browse-tabs{padding:10px 0;margin-bottom:20px;gap:8px}
html[data-portal-theme] .doc-browse-tab{padding:6px 10px;min-height:36px;font-size:18px}
html[data-portal-theme] .doc-browse-tab[aria-selected=true]{background:var(--portal-accent);color:var(--portal-bg)}
html[data-portal-theme] .terminal-list li{color:var(--portal-fg);border-color:var(--portal-accent)}
html[data-portal-theme] .statusbar a{background:transparent;color:var(--portal-accent);padding:3px 5px}
html[data-portal-theme] .portal-standalone-content{min-width:0}
html[data-portal-theme] .portal-standalone-content>main{width:100%;max-width:none;margin:0;padding:0}
html[data-portal-theme] .portal-standalone-content .app{height:auto;min-height:900px}
html[data-portal-theme] .portal-standalone-content .app>header{display:flex;flex-wrap:wrap;background:var(--portal-bg);color:var(--portal-fg);border-color:var(--portal-accent);padding:0 0 20px}
html[data-portal-theme] .portal-standalone-content article{border:1px solid var(--portal-accent);border-radius:0;background:var(--portal-bg)}
html[data-portal-theme] .portal-standalone-content .button{background:var(--portal-accent);color:var(--portal-bg);border-color:var(--portal-accent);border-radius:0}
html[data-portal-theme] .portal-standalone-content .body{background:var(--portal-bg)}
html[data-portal-theme] .portal-standalone-content .disabled{background:var(--portal-bg);color:var(--portal-fg);border-style:dashed}
html[data-portal-theme] .portal-standalone-content .size,html[data-portal-theme] .portal-standalone-content p{color:var(--portal-fg)}
/* Legacy page-specific rules must resolve to the same readable surfaces. */
html[data-portal-theme] body.identity-page{--identity-accent:var(--portal-accent)}
html[data-portal-theme] body .terminal-link,
html[data-portal-theme] body .action-link,
html[data-portal-theme] body .title-action,
html[data-portal-theme] body .terminal-link.primary,
html[data-portal-theme] body .terminal-link[aria-current=true]{background:var(--portal-bg);color:var(--portal-accent);border-color:var(--portal-accent)}
html[data-portal-theme] body .terminal-link::before,html[data-portal-theme] body .action-link::before{color:inherit}
html[data-portal-theme] body .terminal-link:hover,
html[data-portal-theme] body .action-link:hover{background:var(--portal-accent);color:var(--portal-bg)}
html[data-portal-theme] body .product-menu-link.is-primary{background:var(--portal-bg);color:var(--portal-accent)}
html[data-portal-theme] body .product-menu-link small,
html[data-portal-theme] body .product-menu-link.is-primary small{color:var(--portal-fg);font-size:17px}
html[data-portal-theme] body .product-menu-link span{color:var(--portal-accent);font-size:21px}
html[data-portal-theme] body .product-menu-link:hover,
html[data-portal-theme] body .product-menu-link:focus-visible{background:var(--portal-accent);color:var(--portal-bg)}
html[data-portal-theme] body .product-menu-link:hover span,
html[data-portal-theme] body .product-menu-link:hover small,
html[data-portal-theme] body .product-menu-link:focus-visible span,
html[data-portal-theme] body .product-menu-link:focus-visible small{color:var(--portal-bg)}
html[data-portal-theme] body.identity-project .product-directory-header .product-menu-link{background:transparent;border-color:var(--portal-bg)}
html[data-portal-theme] body.identity-project .product-directory-header .product-menu-link :is(span,small){color:var(--portal-bg)}
html[data-portal-theme] body.identity-project .product-directory-header .product-menu-link:hover{outline:1px solid var(--portal-bg);outline-offset:3px}
html[data-portal-theme] body :is(.post-category,.category-legend span,.post-note,.market-content,.market-panel,.preset-market,.preset-list,.moderation-panel,.moderation-controls,.empty-state,.error-state,.manifest-summary){background:var(--portal-bg);background-image:none;color:var(--portal-fg);border-color:var(--portal-accent)}
html[data-portal-theme] body .post-category{color:var(--portal-accent)}
html[data-portal-theme] body .post-key span{background:var(--portal-bg);color:var(--category);border-color:var(--category)}
html[data-portal-theme] body .project-post{background:var(--portal-bg)}
html[data-portal-theme] body :is(.market-form,.preset-gallery-section,.market-section,.doc-reader-body,.viewer-toolbar,.viewer-note){background:var(--portal-bg);color:var(--portal-fg);border-color:var(--portal-accent)}
html[data-portal-theme] body :is(.inline-doc,.marketplace-header,.status,.market-form label,.market-form .consent,.market-form input,.market-form textarea,.market-form select,.wiki-search input,.markdown-body pre,.markdown-body code){background:var(--portal-bg);color:var(--portal-fg);border-color:var(--portal-accent)}
html[data-portal-theme] body :is(.titlebar,.statusbar,.content-pane,.buffer,.terminal-shell){overflow:visible}
html[data-portal-theme] body .portal-shell{overflow:clip}
html[data-portal-theme] body.viewer-page{overflow:auto}
html[data-portal-theme] body.viewer-page .portal-shell{height:auto;min-height:calc(100dvh - 48px)}
html[data-portal-theme] body code[style*="#58d3dc"]{color:var(--portal-cyan)!important}
html[data-portal-theme] body code[style*="#ffc20a"]{color:var(--portal-yellow)!important}
html[data-portal-theme] body code[style*="#00ef88"]{color:var(--portal-green)!important}
html[data-portal-theme] body code[style*="#854cff"]{color:var(--portal-magenta)!important}
html[data-portal-theme] body :is(.market-panel,.market-section,.market-content,.preset-market,.moderation-panel,.form-panel,.marketplace-panel){background:var(--portal-bg);background-image:none}
html[data-portal-theme] body :is(.source-stage.empty,.preview-stage.empty){background:var(--portal-bg);background-image:none}
@media(min-width:1700px){html[data-portal-theme] .portal-shell{margin-top:40px;min-height:calc(100dvh - 80px)}}
@media(max-width:1050px){html[data-portal-theme] .portal-shell{width:calc(100% - 24px);margin:12px;min-height:calc(100dvh - 24px)}html[data-portal-theme] .portal-shell>.viewport{grid-template-columns:180px minmax(0,1fr)}html[data-portal-theme] .buffer{padding:20px}html[data-portal-theme] .product-directory-header{grid-template-columns:1fr}.portal-sidebar{padding:20px 10px}}
@media(max-width:780px){html[data-portal-theme] .portal-shell{width:100%;min-height:100dvh;height:auto;margin:0;border:0;border-radius:0;overflow:visible;box-shadow:none}html[data-portal-theme] .portal-shell>.viewport{display:block;min-height:0}html[data-portal-theme] .portal-shell>.titlebar{position:sticky;top:0;z-index:25;min-height:64px;padding:10px 14px;gap:8px}html[data-portal-theme] .portal-shell>.titlebar>.title-path,html[data-portal-theme] .portal-shell>.titlebar>.title-spacer{display:none}html[data-portal-theme] .portal-menu-toggle{display:block}.portal-theme-control{margin-left:auto;gap:6px}.portal-theme-control label{font-size:15px}html[data-portal-theme] #portal-theme-select{max-width:156px;font-size:17px}.portal-sidebar{display:none;border-right:0;border-bottom:1px solid var(--portal-accent);padding:18px;max-height:65dvh;overflow:auto}body.portal-menu-open .portal-sidebar{display:block}.portal-brand{margin-bottom:12px}.portal-nav-group{margin-bottom:12px}html[data-portal-theme] a.portal-nav-link{min-height:44px;padding:10px}html[data-portal-theme] .content-pane{overflow:visible}html[data-portal-theme] .buffer{padding:18px 14px}html[data-portal-theme] .pane-header{padding:10px 14px;font-size:16px}html[data-portal-theme] .product-menu,html[data-portal-theme] .product-directory-header,html[data-portal-theme] .product-details{grid-template-columns:1fr}html[data-portal-theme] .product-directory-header{padding:18px;gap:14px}html[data-portal-theme] .product-menu{gap:18px}html[data-portal-theme] .product-menu-link{grid-template-columns:1fr;gap:2px}html[data-portal-theme] :where(.page-output h1,.markdown-body h1,h1){font-size:2.3rem}html[data-portal-theme] .post-header{margin-bottom:22px}html[data-portal-theme] .portal-shell>.statusbar{position:static;padding:12px 14px;gap:6px;font-size:16px;white-space:normal}html[data-portal-theme] .statusbar>.status-path{flex-basis:100%;order:0}html[data-portal-theme] .portal-shell .status-spacer{display:none}html[data-portal-theme] .command-item{grid-template-columns:1fr;gap:8px}html[data-portal-theme] .portal-standalone-content .app{min-height:0}}
@media(max-width:780px){
 html[data-portal-theme] .content-pane>.pane-header:not(.doc-reader-header){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
 html[data-portal-theme] .content-pane>.pane-header>.wiki-search{grid-column:1/-1;min-width:0;width:100%}
 html[data-portal-theme] .content-pane>.pane-header>.wiki-search input{width:100%}
 html[data-portal-theme] .content-pane>.pane-header>.wiki-tools{grid-column:1/-1;width:100%;align-items:stretch}
}
@media(prefers-reduced-motion:reduce){html[data-portal-theme] *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
