/* Public subpages share the approved homepage's identity. No homepage selectors. */
:root{--page-panel:linear-gradient(145deg,#211535eb,#0c091df5);--page-input:#0c091c;--page-muted:#d1c2e4;--page-tint:#42c7f51c;--page-edge:#65c9f24d;--page-shadow:#13466b4d}
:root[data-theme=clear]{--page-panel:linear-gradient(145deg,#ffffffed,#eaf2ffed);--page-input:#f8fbff;--page-muted:#344c6d;--page-tint:#1867db0d;--page-edge:#7ca8e66b;--page-shadow:#6685b522}
:root[data-theme=night]{--page-panel:linear-gradient(145deg,#210405ed,#0b0000f5);--page-input:#0e0101;--page-muted:#e58b8b;--page-tint:#b312161c;--page-edge:#b12b355e;--page-shadow:#4d00005c}
.reference-shell[data-home=false]{background:var(--sky)}
.reference-shell[data-home=false]:before{height:1100px;opacity:.85;mask-image:linear-gradient(#000 0%,#000 46%,transparent 100%)}
.reference-shell[data-home=false] main{min-width:0;background:transparent}
.reference-shell[data-home=false] :is(.document,.feedback-page,.testers,.gallery){width:100%;max-width:1240px;margin-inline:auto;padding:46px clamp(22px,4vw,58px) 70px;min-width:0}
.reference-shell[data-home=false] :is(.document,.feedback-intro,.testers-hero,.community-copy,.gallery){position:relative}
.reference-shell[data-home=false] .page-kicker{font-size:10px;letter-spacing:.19em;line-height:1.5;color:var(--accent);font-weight:650;margin:0 0 18px;display:flex;align-items:center;gap:12px}
.reference-shell[data-home=false] .page-kicker:before{content:"";width:30px;height:1px;background:var(--accent);box-shadow:0 0 12px var(--glow)}
.reference-shell[data-home=false] h1{font-size:clamp(36px,4.6vw,65px);font-weight:650;line-height:1.08;letter-spacing:-.045em;margin:0 0 22px;max-width:100%;color:var(--text)}
.reference-shell[data-home=false] h1>span:not(.page-title-icon){color:var(--accent)}
.reference-shell[data-home=false] .page-title-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:0 0 22px;color:var(--accent);background:linear-gradient(150deg,var(--page-tint),transparent);border:1px solid var(--page-edge);border-radius:14px;box-shadow:inset 0 1px 0 #fff2,0 0 26px var(--page-shadow)}
.page-title-icon svg{width:28px;height:28px}
.reference-shell[data-home=false] :is(.document,.feedback-intro,.community-copy,.testers,.gallery)>p{font-size:16px;line-height:1.85;max-width:780px;color:var(--page-muted)}
.reference-shell[data-home=false] :is(.feedback-intro,.community-copy)>p{max-width:670px}
.reference-shell[data-home=false] :is(.dark,.download,.community-intro){background:transparent}
.reference-shell[data-home=false] :is(.grid article,.feedback-panel,.feedback-card,.community-login-card,.community-feature,.community-personal-bar,.community-account,.community-roadmap article,.testers-grid article,.testers-hero aside,.testers-final,.release-history-item,.gallery article,.gallery form#profile-form,.gallery form#public-profile-form,.preview #preview-admin,.roadmap #roadmap-form,.gallery #gallery-upload,.forum #forum-compose,.forum #forum-answer,.gallery nav.community-page-nav){background:var(--page-panel);border:1px solid var(--page-edge);border-radius:17px;box-shadow:inset 0 1px 0 #ffffff1c,0 16px 42px #0002;backdrop-filter:blur(16px)}
.reference-shell[data-home=false] :is(.grid article,.community-feature,.testers-grid article){position:relative;overflow:hidden}
.reference-shell[data-home=false] :is(.grid article,.community-feature,.testers-grid article):before{content:"";position:absolute;inset:0 20% auto 0;height:2px;background:linear-gradient(90deg,var(--accent),transparent);opacity:.65;pointer-events:none}
.reference-shell[data-home=false] :is(.grid article:hover,.community-feature:hover){border-color:var(--accent);box-shadow:inset 0 1px 0 #fff2,0 6px 35px var(--page-shadow);background:var(--page-panel)}
.reference-shell[data-home=false] :is(.grid article>span,.community-feature-icon,.community-icon,.community-personal-icon,.testers-number,.community-future-mark){color:var(--accent);background:var(--page-tint);border-color:var(--page-edge)}
.reference-shell[data-home=false] .grid article>span{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--page-edge);border-radius:12px;font-size:25px}
.reference-shell[data-home=false] :is(.grid p,.feedback-card p,.feedback-card li,.testers p,.community-feature p,.community-card-text,.community-privacy,.community-form-help,.community-future p,.community-hub-heading>p,.gallery article p,.community-page-nav-groups h3,.gallery>p,.field-help,.privacy-note){color:var(--page-muted)}
.reference-shell[data-home=false] :is(h2,h3,h4,label,.feedback-panel h2,.community-card-heading h2){color:var(--text)}
.reference-shell[data-home=false] :is(.back-link,.contact-email,.community-feature-cta,.community-page-nav-home,.community-page-nav-heading small,.testers-tag,.testers a:not(.btn):not(.ghost),.forum-author a,.forum-markdown a,.diagnostics summary){color:var(--accent)}
.reference-shell[data-home=false] :is(.community-feature-tag,.forum-tag){background:var(--page-tint);border:1px solid var(--page-edge);color:var(--accent)}
.reference-shell[data-home=false] :is(.community-feature-cta,.community-future,.gallery nav,.privacy-note,.download-stats,.release-details,.diagnostics,.preview-feedback){border-color:var(--page-edge)}
.reference-shell[data-home=false] :is(.feedback-page,.gallery,.community-main) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:var(--page-input);border-color:var(--page-edge);color:var(--text);color-scheme:inherit;box-shadow:inset 0 2px 6px #0002;min-height:44px}
.reference-shell[data-home=false] :is(input,textarea)::placeholder{color:var(--page-muted);opacity:.75}
.reference-shell[data-home=false] :is(input,textarea,select):focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--page-tint);outline:2px solid var(--accent);outline-offset:2px}
.reference-shell[data-home=false] .community-intro{padding:40px 5% 48px;gap:40px;grid-template-columns:minmax(0,1.1fr) minmax(0,.8fr);border-bottom:1px solid var(--page-edge)}
.reference-shell[data-home=false] .community-login-card{padding:30px}.reference-shell[data-home=false] .community-hub{max-width:1240px;padding:38px 5% 64px}
.reference-shell[data-home=false] .community-feature-grid{gap:18px}.reference-shell[data-home=false] .community-feature-forum{background:radial-gradient(ellipse at 95% 0,var(--page-tint),transparent 70%),var(--page-panel)}
.reference-shell[data-home=false] .community-personal-actions a,.reference-shell[data-home=false] .community-page-nav-links a{border:1px solid var(--page-edge);color:var(--text);background:var(--page-tint);min-height:44px;display:inline-flex;align-items:center;border-radius:9px}
.reference-shell[data-home=false] .community-page-nav-links a[aria-current=page]{border-color:var(--accent);background:var(--page-tint);color:var(--accent);box-shadow:0 0 12px var(--page-shadow)}
.reference-shell[data-home=false] :is(.gallery button,.community-logout,.community-code-actions button,.community-name-submit,.community-account button,.preview-download){font:inherit;font-size:13px;min-height:44px;padding:10px 16px;cursor:pointer;color:var(--text);background:var(--page-input);border:1px solid var(--page-edge);border-radius:9px;box-shadow:inset 0 1px 0 #ffffff16}
.reference-shell[data-home=false] :is(.gallery button:hover,.community-logout:hover,.preview-download:hover){border-color:var(--accent);color:var(--accent);background:var(--page-tint)}
.reference-shell[data-home=false] :is(.gallery button[type=submit],.gallery button[aria-pressed=true],.preview-download,.community-name-submit,.community-code-actions .btn,.community-submit){background:linear-gradient(160deg,var(--button-top),var(--button-bottom));color:var(--button-ink);border-color:var(--accent);box-shadow:inset 0 1px 0 #fff4,0 0 16px var(--page-shadow)}
.reference-shell[data-home=false] :is(button:disabled,.btn:disabled){opacity:.55;cursor:not-allowed;box-shadow:none}
.reference-shell[data-home=false] :is(.gallery-delete,.preview-delete){border-color:var(--accent);color:var(--accent);background:var(--page-tint)}
.reference-shell[data-home=false] :is(.document details,.testers-faq details){border:1px solid var(--page-edge);border-radius:13px;background:var(--page-panel);margin:14px 0;padding:0 22px;box-shadow:inset 0 1px 0 #fff1}
.reference-shell[data-home=false] :is(.document details,.testers-faq details)>summary{padding:20px 0;line-height:1.6;color:var(--text);min-height:58px}
.reference-shell[data-home=false] :is(.document details,.testers-faq details)[open]{border-color:var(--accent);padding-bottom:12px}
.reference-shell[data-home=false] .document details p{margin-top:0}
.reference-shell[data-home=false] .document>h2{margin-top:38px;border-top:1px solid var(--page-edge);padding-top:26px;font-size:25px}
.reference-shell[data-home=false] .document{min-height:0}
.reference-shell[data-home=false] .document:has(+.dark){padding-bottom:28px}
.reference-shell[data-home=false] .document+.dark{padding-top:28px}
.reference-shell[data-home=false] .document+.dark>.heading h2{font-size:30px}
.reference-shell[data-home=false] .community-status:not(:empty){padding:12px 14px;font-size:12px;line-height:1.6}
.reference-shell[data-home=false] .document>ol{padding:22px 22px 22px 52px;border:1px solid var(--page-edge);border-radius:16px;background:var(--page-panel)}
.reference-shell[data-home=false] .document>ol>li{padding:7px 0 15px 8px}.reference-shell[data-home=false] .document>ol>li::marker{color:var(--accent);font-weight:700}
.reference-shell[data-home=false] :is(.document pre,.forum-markdown pre,.forum-markdown code){background:var(--page-input);color:var(--text);border:1px solid var(--page-edge)}
.reference-shell[data-home=false] .testers-hero{padding-top:0;gap:34px}.reference-shell[data-home=false] .testers h1{font-size:clamp(36px,4.4vw,61px)}.reference-shell[data-home=false] .testers-lead{color:var(--text);font-size:20px}.reference-shell[data-home=false] .testers-notice{border-color:var(--accent);background:var(--page-tint);color:var(--page-muted)}
.reference-shell[data-home=false] .testers-hero aside img{width:130px;border-radius:12px}.reference-shell[data-home=false] .release-history-item{padding:26px}.reference-shell[data-home=false] .release-history-item a{color:var(--accent)}
.reference-shell[data-home=false] :is(#gallery-message:not(:empty),#preview-message:not(:empty),#forum-message:not(:empty),.community-status:not(:empty)){background:var(--page-input);color:var(--page-muted);border:1px solid var(--page-edge);border-radius:10px}
.reference-shell[data-home=false] .gallery-viewer{background:var(--sky);color:var(--text);border-color:var(--line)}.reference-shell[data-home=false] .viewer-toolbar{background:var(--sky)}.reference-shell[data-home=false] .viewer-toolbar output{color:var(--text)}
.reference-shell[data-home=false] .viewer-stage{background:var(--page-input)}.reference-shell[data-home=false] .viewer-details p{color:var(--page-muted)}
.reference-shell[data-home=false] :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(min-width:1100px){.reference-shell[data-home=false] .document:has(>details){max-width:1080px}.reference-shell[data-home=false] .document:has(>details)>p{max-width:700px}}
@media(max-width:900px){.reference-shell[data-home=false] .community-intro{grid-template-columns:1fr}.reference-shell[data-home=false] .community-login-card{max-width:680px;width:100%}}
@media(max-width:600px){.reference-shell[data-home=false] :is(.document,.feedback-page,.testers,.gallery){padding:30px 20px 44px}.reference-shell[data-home=false] h1{font-size:clamp(33px,9.3vw,44px)}.reference-shell[data-home=false] .page-title-icon{width:44px;height:44px;margin-bottom:18px}.reference-shell[data-home=false] :is(.document,.feedback-intro,.community-copy,.testers,.gallery)>p{font-size:15px}.reference-shell[data-home=false] .community-intro{padding:28px 20px 32px;gap:28px}.reference-shell[data-home=false] .community-login-card{padding:22px 18px}.reference-shell[data-home=false] .feedback-panel,.reference-shell[data-home=false] .feedback-card{padding:22px 18px}.reference-shell[data-home=false] :is(.document details,.testers-faq details){padding-inline:16px}.reference-shell[data-home=false] .testers-hero{gap:24px}.reference-shell[data-home=false] .release-history-item{padding:20px}.reference-shell[data-home=false] .community-hub{padding:30px 20px 44px}}
