/* Original theme artwork; no external fonts, trackers, or game assets. */
body[data-lab-theme="win7"]{--paper:#f8fcff;--panel:#e5f0fa;--sky:#e5f0fa;--sky-dark:#185b87;--ink:#183a50;--muted:#4d687c;--line:#92afc5;--accent:#17689d;--theme-action-ink:#fff;--theme-radius:5px;--scene:url("theme-art/win7.svg")}
body[data-lab-theme="vista"]{--paper:#f8fcfa;--panel:#e2eeea;--sky:#e2eeea;--sky-dark:#25594f;--ink:#1a3c3a;--muted:#506d68;--line:#90b0a5;--accent:#276c5a;--theme-action-ink:#fff;--theme-radius:5px;--scene:url("theme-art/vista.svg")}
body[data-lab-theme="mario"]{--paper:#fffef6;--panel:#fff3d2;--sky:#dff3ff;--sky-dark:#265e91;--ink:#313c53;--muted:#586278;--line:#b49a62;--accent:#a83c2c;--theme-action-ink:#fff;--theme-radius:12px;--scene:url("theme-art/mario.svg")}
body[data-lab-theme="animal"]{--paper:#fffdf1;--panel:#edf1d9;--sky:#deeddc;--sky-dark:#386b52;--ink:#3c513f;--muted:#637259;--line:#a2b08a;--accent:#386e55;--theme-action-ink:#fff;--theme-radius:22px;--scene:url("theme-art/animal.svg")}
body[data-lab-theme="maple"]{--paper:#fffaf0;--panel:#f3e7ce;--sky:#f9e7ca;--sky-dark:#8c4c2e;--ink:#553d2e;--muted:#7c6651;--line:#c8a578;--accent:#95482e;--theme-action-ink:#fff;--theme-radius:16px;--scene:url("theme-art/maple.svg")}
body[data-lab-theme="kart"]{--paper:#f9fdff;--panel:#e5f1fc;--sky:#e5f1fc;--sky-dark:#225f91;--ink:#243d58;--muted:#506d86;--line:#90b4d2;--accent:#165d9a;--theme-action-ink:#fff;--theme-radius:12px;--scene:url("theme-art/kart.svg")}
body[data-lab-theme="win7"],body[data-lab-theme="vista"],body[data-lab-theme="mario"],body[data-lab-theme="animal"],body[data-lab-theme="maple"],body[data-lab-theme="kart"]{background:var(--panel) var(--scene) center top/cover fixed;color:var(--ink)}
/* Shared surfaces follow the active palette, including menus opened after a change. */
body[data-community][data-lab-theme]:not([data-lab-theme="default"]){font-family:"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.panel,.window,.cards article,dialog,.article,.comments,.post-row,.lottery-card,.reward-card,.content-share,.signup-summary,.lab-control-group){
 background:var(--paper);color:var(--ink);border-color:var(--line);border-radius:var(--theme-radius,10px)}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.panel,.cards article,.window){box-shadow:0 1px 0 #ffffff80 inset,0 5px 20px #102c4610}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.panel h1,.panel h2,.panel h3,.article h1){color:var(--ink);line-height:1.4;letter-spacing:-.025em}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.account-menu-items,.nav-menu-items){
 background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:var(--theme-radius,8px);box-shadow:0 12px 28px #102c4633;padding:6px}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.account-menu-items,.nav-menu-items)>a{background:transparent;color:var(--ink);border:0;border-radius:4px}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.account-menu-items,.nav-menu-items)>a:hover{background:var(--panel);color:var(--ink)}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.meta,.muted,.helptext,.lab-control-group>p,.lab-heading>p,.post-row small){color:var(--muted)}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(button:not(.theme-choice),.button,.lab-section-nav a){
 color:var(--ink);border-color:var(--line);background:var(--panel);border-radius:var(--theme-radius,6px)}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){
 color:var(--ink);background:var(--paper);border-color:var(--line);border-radius:6px}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.lottery-card p,.content-share p,.reward-card p){color:var(--ink)}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.tag,.content-tags a){background:var(--panel);color:var(--ink);border-color:var(--line)}
/* Both sites use their own navigation shapes consistently. */
body[data-community="oszip"][data-lab-theme]:not([data-lab-theme="default"]) .menubar{
 background:var(--panel);border-color:var(--line);gap:8px;padding:10px 12px}
body[data-community="oszip"][data-lab-theme]:not([data-lab-theme="default"]) .menubar :is(a.nav-button,details>summary,form button){
 background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:var(--theme-radius,0);box-shadow:0 1px 0 #fff8 inset;min-height:36px}
body[data-community="oszip"][data-lab-theme]:not([data-lab-theme="default"]) .menubar :is(a.nav-button,details>summary,form button):hover{background:var(--panel);color:var(--ink)}
body[data-community="village"][data-lab-theme]:not([data-lab-theme="default"]) header nav :is(a,summary,button){
 background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:999px;box-shadow:0 2px 0 color-mix(in srgb,var(--line) 50%,transparent)}
body[data-community="village"][data-lab-theme]:not([data-lab-theme="default"]) header nav :is(a,summary,button):hover{background:var(--panel)}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.compose-button,.attendance-cta,[aria-current="page"]){
 background:var(--accent)!important;color:var(--theme-action-ink,#fff)!important;border-color:var(--accent)!important}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) :is(.power,.power-button){background:#813c3f!important;color:#fff!important;border-color:#813c3f!important}
/* Aero: bright readable content inside a translucent desktop frame. */
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .desktop{
 background:#d5e7f3d9;border:1px solid #d9f3ff;border-radius:8px;padding:8px;box-shadow:0 0 0 1px #16374988,0 18px 70px #061e4499;backdrop-filter:blur(16px)}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .desktop>header{
 background:linear-gradient(#ffffff88,#badced77 48%,#8cb5ce77 50%,#e5f8ff99);border:1px solid #f4fbff99;border-radius:5px 5px 0 0;padding:20px 22px;box-shadow:0 1px 0 #35586d55}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) :is(.brand,.brand-note,.online,.zip){color:#12384d;text-shadow:0 1px 3px #fff}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .menubar{background:linear-gradient(#f5faff,#d6e5ef);border:1px solid #8ca8bb;border-top:1px solid white;border-radius:0 0 5px 5px}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) main{padding:22px 18px;background:#edf5fa80}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) :is(.panel,.window){border-width:1px}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .panel>h2{padding-bottom:10px;border-bottom:1px solid var(--line)}
body[data-community="oszip"][data-lab-theme="vista"] .desktop{background:#a7c3bbc9;border-color:#d1eee3}
body[data-community="oszip"][data-lab-theme="vista"] .desktop>header{background:linear-gradient(#d8e8e899,#91b2bb88 49%,#527b8988 50%,#bdd5d399)}
body[data-community="oszip"][data-lab-theme="vista"] .menubar{background:linear-gradient(#f3f7f1,#d2dfdb)}
/* Existing desktop themes get a coherent frame and title-bar language. */
body[data-community="oszip"][data-lab-theme="win98"]{--paper:#f4f2e8;--panel:#c7c8c6;--ink:#202b31;--muted:#46535b;--line:#7f8587;--accent:#174a7d;--theme-action-ink:#fff;--theme-radius:0px}
body[data-community="oszip"]:is([data-lab-theme="win98"],[data-lab-theme="xp"],[data-lab-theme="win10"],[data-lab-theme="win8"]) :is(.panel,.nav-button,.menubar details>summary){border-radius:0}
body[data-community="oszip"][data-lab-theme="xp"] .desktop>header{background:linear-gradient(#4f92e9,#1c59b4 48%,#2865c8);border-bottom:2px solid #17418d}
body[data-community="oszip"][data-lab-theme="xp"] :is(.brand,.brand-note,.online,.zip){color:white}
body[data-community="oszip"][data-lab-theme="win10"] .desktop>header{background:#104c7b;border-bottom:4px solid #2ca6ed}
body[data-community="oszip"][data-lab-theme="win10"] :is(.brand,.brand-note,.online,.zip){color:#fff}
body[data-community="oszip"][data-lab-theme="win8"] .desktop>header{background:#4d2869}
body[data-community="oszip"][data-lab-theme="win8"] :is(.brand,.brand-note,.online,.zip){color:#fff}
body[data-community="oszip"][data-lab-theme="win11"] .desktop{border:1px solid #b3bfe4;border-radius:18px;box-shadow:0 18px 60px #3a4c8a33}
body[data-community="oszip"][data-lab-theme="macos"] .desktop{border-radius:16px;border:1px solid #afb6c8;box-shadow:0 20px 60px #322e4933}
body[data-community="oszip"][data-lab-theme="linux"] .desktop>header{background:linear-gradient(110deg,#482642,#713c4d)}
body[data-community="oszip"][data-lab-theme="linux"] :is(.brand,.brand-note,.online,.zip){color:#fff4e9}
/* Island and adventure themes: visible landscape between separate paper panels. */
body[data-community="village"]:is([data-lab-theme="mario"],[data-lab-theme="animal"],[data-lab-theme="maple"],[data-lab-theme="kart"]) .site-shell{
 background:transparent;border:0;box-shadow:none;padding:24px;max-width:1200px;margin:28px auto}
body[data-community="village"]:is([data-lab-theme="mario"],[data-lab-theme="animal"],[data-lab-theme="maple"],[data-lab-theme="kart"]) .site-shell>header{
 background:var(--paper);border:1px solid var(--line);border-top:7px solid var(--accent);border-radius:var(--theme-radius);padding:24px;margin-bottom:24px;box-shadow:0 6px 0 #173e4d16,0 14px 38px #173e4d12}
body[data-community="village"]:is([data-lab-theme="mario"],[data-lab-theme="animal"],[data-lab-theme="maple"],[data-lab-theme="kart"]) .brand{color:var(--sky-dark);font-size:26px;letter-spacing:-.04em}
body[data-community="village"]:is([data-lab-theme="mario"],[data-lab-theme="animal"],[data-lab-theme="maple"],[data-lab-theme="kart"]) .brand small{color:var(--muted);font-size:13px;letter-spacing:0;margin-top:7px}
body[data-community="village"]:is([data-lab-theme="mario"],[data-lab-theme="animal"],[data-lab-theme="maple"],[data-lab-theme="kart"]) :is(.hero,.boards,.post-list,.community-links,footer){background:var(--paper);padding:24px;border:1px solid var(--line);border-radius:var(--theme-radius);color:var(--ink)}
body[data-community="village"][data-lab-theme="animal"] .site-shell>header{border-top:9px solid #7e9b69;background:linear-gradient(#fffef4,#f6f1dc)}
body[data-community="village"][data-lab-theme="animal"] .panel>h2{color:#386b52;border-bottom:2px dashed #c3ceab;padding-bottom:12px}
body[data-community="village"][data-lab-theme="maple"] .site-shell>header{background:linear-gradient(#fff8e6,#f4dfb7);border-bottom:4px solid #b28b59}
body[data-community="village"][data-lab-theme="maple"] .panel{box-shadow:0 3px 0 #c9aa7777,0 10px 25px #6d482217}
body[data-community="village"][data-lab-theme="mario"] .site-shell>header{border-bottom:5px solid #d5b56a}
body[data-community="village"][data-lab-theme="mario"] .panel{box-shadow:0 4px 0 #d9cba7,0 10px 25px #38577c18}
body[data-community="village"][data-lab-theme="kart"] .site-shell>header{border-top:0;border-bottom:5px solid #f2b646;background:linear-gradient(115deg,#f8fcff,#d9efff)}
body[data-community="village"][data-lab-theme="kart"] .site-shell>header::before{content:"";display:block;flex-basis:100%;height:8px;margin:-24px -24px 12px;background:repeating-conic-gradient(#234d75 0 25%,#f9fdff 0 50%) 0 0/16px 16px;border-radius:12px 12px 0 0}
body[data-community="village"][data-lab-theme="kart"] .panel>h2{border-left:5px solid #edb549;padding-left:12px}
/* Shared gallery is a preview sheet, never a wall of identical text buttons. */
body[data-community] #theme-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:24px 0}
body[data-community] #theme-gallery .theme-choice{
 position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;min-height:185px;padding:14px;background:var(--preview-bg,#f1f5f5);color:var(--preview-ink,#284651);border:1px solid var(--preview-line,#92a8b3);border-radius:12px;text-align:left;box-shadow:0 3px 9px #183a4f14;overflow:hidden;transition:transform .18s,box-shadow .18s,outline-color .18s}
body[data-community] #theme-gallery .theme-choice::before{content:"";display:block;height:70px;flex-shrink:0;border:1px solid #ffffff99;border-radius:7px;background:linear-gradient(145deg,#ffffff55,transparent 60%),var(--preview-scene,linear-gradient(135deg,var(--preview-line,#92a8b3),var(--preview-bg,#edf4f4)));background-size:cover;background-position:center;box-shadow:0 1px 4px #17374718 inset}
body[data-community] #theme-gallery .theme-choice strong{font-size:15px;color:inherit;line-height:1.4}
body[data-community] #theme-gallery .theme-choice small{color:inherit;opacity:.88;font-size:12px;line-height:1.5}
body[data-community] #theme-gallery .theme-choice-state{margin-top:auto;padding-top:7px;font-size:11px;font-weight:750;letter-spacing:.03em;color:inherit}
body[data-community] #theme-gallery .theme-choice:hover{transform:translateY(-3px);box-shadow:0 9px 20px #183a4f22}
body[data-community] #theme-gallery .theme-choice[aria-pressed=true]{outline:3px solid var(--preview-line,#48768a);outline-offset:3px}
.preview-win7{--preview-bg:#eaf4ff;--preview-ink:#173a52;--preview-line:#397aa9;--preview-scene:url("theme-art/win7.svg")}
.preview-vista{--preview-bg:#edf5ef;--preview-ink:#214438;--preview-line:#467c65;--preview-scene:url("theme-art/vista.svg")}
.preview-mario{--preview-bg:#fff5d5;--preview-ink:#4d3d2c;--preview-line:#aa4833;--preview-scene:url("theme-art/mario.svg")}
.preview-animal{--preview-bg:#f8f2da;--preview-ink:#3c573e;--preview-line:#5b8259;--preview-scene:url("theme-art/animal.svg")}
.preview-maple{--preview-bg:#fff0d6;--preview-ink:#604027;--preview-line:#a2673d;--preview-scene:url("theme-art/maple.svg")}
.preview-kart{--preview-bg:#e9f5ff;--preview-ink:#234c70;--preview-line:#2c72ab;--preview-scene:url("theme-art/kart.svg")}
.preview-default{--preview-bg:#f5f5ee;--preview-ink:#304851;--preview-line:#718b96}
.preview-sky{--preview-bg:#e5f3fc;--preview-ink:#23475e;--preview-line:#4c8eb8}
.preview-warm{--preview-bg:#f2ece2;--preview-ink:#51453b;--preview-line:#a08160}
.preview-night{--preview-bg:#263543;--preview-ink:#eff6ff;--preview-line:#9db5cc}
/* Daylight and night themes share consistent content contrast and menu surfaces. */
body[data-community="village"]:is([data-lab-theme="space"],[data-lab-theme="arctic"],[data-lab-theme="pluto"],[data-lab-theme="night"]) .site-shell>header{background:var(--panel);border-bottom:1px solid var(--line);padding:22px;border-radius:14px}
body[data-community]:is([data-lab-theme="space"],[data-lab-theme="arctic"],[data-lab-theme="pluto"],[data-lab-theme="night"]) :is(.post-row,.hero,.boards,.account-menu-items,.nav-menu-items){background:var(--paper);color:var(--ink)}
@media(max-width:760px){
 body[data-community] #theme-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body[data-community] #theme-gallery .theme-choice{min-height:182px;padding:11px}
 body[data-community] #theme-gallery .theme-choice::before{height:60px}
 body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .desktop{width:calc(100% - 16px);margin:12px auto;padding:5px}
 body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) main{padding:14px 8px}
 body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .desktop>header{padding:16px 12px}
 body[data-community="village"]:is([data-lab-theme="mario"],[data-lab-theme="animal"],[data-lab-theme="maple"],[data-lab-theme="kart"]) .site-shell{padding:12px;margin:10px auto}
 body[data-community="village"]:is([data-lab-theme="mario"],[data-lab-theme="animal"],[data-lab-theme="maple"],[data-lab-theme="kart"]) .site-shell>header{padding:18px;margin-bottom:16px}
 body[data-community="village"][data-lab-theme="kart"] .site-shell>header::before{margin:-18px -18px 10px}
 body[data-community="village"]:is([data-lab-theme="mario"],[data-lab-theme="animal"],[data-lab-theme="maple"],[data-lab-theme="kart"]) :is(.hero,.boards,.community-links,footer){padding:18px}
}
@media(prefers-reduced-motion:reduce){body[data-community] #theme-gallery .theme-choice{transition:none}body[data-community] #theme-gallery .theme-choice:hover{transform:none}}
@media(forced-colors:active){body[data-community] #theme-gallery .theme-choice[aria-pressed=true]{outline:3px solid Highlight}}
/* Keep long equipment names inside the fishing grid on narrow screens. */
body[data-community] :is(.fishing-layout,.fishing-main,.fishing-box,.fishing-locations,.fishing-rods,.fishing-rod-card){min-width:0}
body[data-community] :is(.fishing-box,.fishing-rod-card){overflow-wrap:anywhere}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) .fishing-box{background:var(--paper);color:var(--ink);border-color:var(--line)}
body[data-community][data-lab-theme]:not([data-lab-theme="default"]) .fishing-box :is(h3,.fishing-note){color:var(--ink)}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .titlebar{
 background:linear-gradient(#f2fbff,#ccdfed 49%,#c4d8e7 50%,#e7f4fd);border-bottom:1px solid var(--line);color:var(--ink);font:600 13px "Segoe UI",sans-serif;letter-spacing:.02em}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .titlebar a{color:var(--ink)}
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .channel-panel,
body[data-community="oszip"]:is([data-lab-theme="win7"],[data-lab-theme="vista"]) .statusbar{background:var(--panel);border-color:var(--line);color:var(--ink)}
body[data-community] .fishing-rods{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
@media(max-width:760px){body[data-community] .fishing-columns{grid-template-columns:minmax(0,1fr)}body[data-community] .fishing-columns>*{min-width:0}}
body[data-community] .fishing-locations{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
body[data-community] .fishing-locations button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
@media(max-width:380px){body[data-community] .fishing-locations{grid-template-columns:minmax(0,1fr)}}
/* Compact navigation and shrinkable panels keep every theme usable on phones. */
body[data-community="oszip"] main>.panel,body[data-community="oszip"] main>.lab-section,body[data-community="oszip"] main>.lab-reaction{min-width:0;box-sizing:border-box;max-width:100%}
@media(max-width:760px){
 body[data-community="oszip"] .menubar :is(.primary-nav,.account-nav,.utility-nav){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin:0;gap:6px}
 body[data-community="oszip"] .menubar :is(a.nav-button,summary.nav-button,form button.nav-button){width:100%;min-width:0;box-sizing:border-box;justify-content:center;white-space:normal}
 body[data-community="oszip"] .menubar :is(details,form){min-width:0;width:100%;margin:0}
}
body[data-community="oszip"] .os-lab-workspace{grid-template-columns:minmax(0,1fr)}
body[data-community="oszip"] .os-lab-workspace>*{min-width:0;max-width:100%;box-sizing:border-box}
