/* ---- experimental/shell.css ---- */
@font-face{font-family:system-fallback;src:local('Segoe UI')} :root{color-scheme:dark;--bg:#101923;--panel:#172430;--raised:#1e2e3d;--line:#30414f;--text:#eaf2f8;--muted:#a1b6c5;--mint:#a7e4cc;--violet:#b9a1ed}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 'Segoe UI',system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,input,select,textarea{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:10px 13px}button:hover{border-color:var(--mint)}[hidden]{display:none!important}.hub-header{display:flex;align-items:center;gap:30px;min-height:88px;border-bottom:1px solid var(--line);padding:14px max(24px,calc((100vw - 1400px)/2));background:#101923ee;position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.hub-brand{display:flex;align-items:center;gap:11px;letter-spacing:.13em;font-size:19px;font-weight:800;flex-shrink:0}.hub-brand img{width:42px;height:42px;object-fit:contain}.hub-brand small{display:block;font-size:9px;letter-spacing:.24em;color:var(--mint);font-weight:600}.hub-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}.hub-nav a{font-size:13px;white-space:nowrap;padding:8px 11px;border-radius:8px;color:var(--muted)}.hub-nav a:hover,.hub-nav a[aria-current=page]{background:var(--raised);color:var(--text)}.experiment-tag{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--violet);border:1px solid #b9a1ed44;padding:4px 8px;border-radius:20px}.hub-main{max-width:1400px;margin:auto;padding:48px 28px 80px;min-height:calc(100vh - 240px)}.hub-hero{display:flex;align-items:center;justify-content:space-between;gap:40px;margin:12px 0 42px}.hub-kicker{font-size:11px;font-weight:700;letter-spacing:.19em;color:var(--mint);text-transform:uppercase}.hub-hero h1{font-size:clamp(36px,5.4vw,66px);line-height:1.08;letter-spacing:-.045em;margin:12px 0 22px;max-width:720px;font-weight:650}.hub-hero p{color:var(--muted);font-size:17px;max-width:580px;margin:0}.hero-emblem{width:174px;height:174px;object-fit:contain;margin-right:40px;filter:drop-shadow(0 15px 40px #a7e4cc15)}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tool-card{min-height:270px;aspect-ratio:1.35;position:relative;display:flex;flex-direction:column;justify-content:flex-end;padding:25px;border:1px solid var(--line);background:linear-gradient(135deg,var(--panel),#13212b);border-radius:20px;overflow:hidden;transition:transform .2s,border-color .2s}.tool-card:hover{transform:translateY(-4px);border-color:var(--accent,var(--mint))}.tool-card:before{content:'';position:absolute;right:-35px;top:-40px;width:220px;height:220px;background:radial-gradient(circle,var(--glow,#a7e4cc19),transparent 70%)}.tool-icon{width:76px;height:76px;object-fit:contain;align-self:flex-end;margin:0 8px auto 0;filter:drop-shadow(0 8px 12px #0004)}.tool-card h2{margin:14px 0 6px;font-size:24px;letter-spacing:-.02em}.tool-card p{color:var(--muted);max-width:270px;font-size:13px;margin:0 28px 0 0}.tool-card .arrow{position:absolute;right:25px;bottom:26px;color:var(--accent,var(--mint));font-size:23px}.card-index{position:absolute;left:25px;top:24px;font-size:10px;letter-spacing:.13em;color:var(--muted)}.hub-section-head{display:flex;align-items:center;justify-content:space-between;margin:35px 0 15px}.hub-section-head h2{font-size:14px;font-weight:600;margin:0;color:var(--muted)}.hub-note{margin:35px 0 0;color:var(--muted);font-size:12px}.hub-footer{border-top:1px solid var(--line);padding:24px max(28px,calc((100vw - 1344px)/2));display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:var(--muted);font-size:12px}.hub-footer nav{display:flex;gap:18px;flex-wrap:wrap}.hub-footer a:hover{color:var(--mint)}.tool-heading{margin-bottom:28px}.tool-heading h1{font-size:38px;letter-spacing:-.035em;line-height:1.2;margin:10px 0}.tool-heading p{color:var(--muted);margin:0}.hub-error{padding:30px;border:1px solid #e6a892;border-radius:12px}.route-loading{padding:60px;color:var(--muted)}.homeland-global{position:relative!important;top:auto!important;min-height:60px!important;padding:8px 25px!important}.homeland-global .hub-brand{font-size:15px}.homeland-global .hub-brand img{width:32px;height:32px}.homeland-global .hub-nav{margin:0 0 0 auto!important}.homeland-global .hub-nav a{font-size:12px}.homeland-subnav{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 26px;border-bottom:1px solid var(--line);background:var(--panel)}.homeland-subnav a{font-size:13px;color:var(--muted);padding:6px 12px;border-radius:8px}.homeland-subnav a[aria-current=page]{color:var(--mint);background:#a7e4cc10}.homeland-subnav .subnav-label{color:var(--muted);font-size:10px;letter-spacing:.12em;margin-right:12px}.homeland-community-view .shell,.homeland-community-view #plan-quick-nav,.homeland-community-view .planner-sidebar,.homeland-community-view .aniiland-ad-slot{display:none!important}#community-root{max-width:1340px;margin:auto;padding:32px 26px;min-height:65vh}.homeland-original-header nav{display:none!important}.homeland-original-header .brand{pointer-events:none}.imported-build-banner{margin:0 0 18px;padding:18px;border:1px solid #a7e4cc66;border-radius:12px;background:#a7e4cc0d}.imported-build-banner .codes{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.imported-build-banner code{overflow-wrap:anywhere;color:var(--mint)}.imported-build-banner button{padding:5px 10px;font-size:12px}.experimental-footer-links{display:flex;gap:15px;justify-content:center;flex-wrap:wrap;padding:18px;font-size:13px;border-bottom:1px solid var(--line)}@media(min-width:1700px){.tool-card{aspect-ratio:1.25}}@media(max-width:1000px){.hub-header{gap:15px;align-items:flex-start;flex-wrap:wrap}.hub-nav{width:100%;margin:0;gap:2px}.hub-header{position:relative}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-emblem{width:130px;margin-right:0}.hub-main{padding-top:26px}}@media(max-width:600px){.hub-header{padding:15px 18px}.hub-nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.hub-nav a{padding:7px 10px}.hub-main{padding:25px 18px 50px}.hub-hero{margin-top:3px;margin-bottom:30px}.hero-emblem{display:none}.hub-hero h1{font-size:42px}.hub-hero p{font-size:15px}.tool-grid{gap:12px}.tool-card{min-height:230px;aspect-ratio:auto;padding:18px}.tool-icon{width:60px;height:60px;margin:15px 0 auto}.tool-card h2{font-size:19px}.tool-card p{font-size:12px;margin-right:0}.tool-card .arrow{display:none}.card-index{top:16px;left:18px}.hub-footer{padding:25px 18px}.tool-heading h1{font-size:30px}.homeland-global .hub-nav{width:100%}.homeland-subnav{padding:10px 15px}.experiment-tag{margin-left:auto}}

/* Keep the community page independent of the original planner chrome. */
.homeland-community-view .homeland-original-header,.homeland-community-view #about-planner,.homeland-community-view #aniiland-footer-ads,.homeland-community-view #order-dock{display:none!important}
.tool-card{aspect-ratio:1;min-height:0}.tool-icon{width:96px;height:96px;margin-top:22px}.tool-card h2{margin-top:30px}.homeland-original-header{position:relative!important;top:auto!important}
.homeland-original-header .brand{pointer-events:auto}
@media(max-width:600px){.tool-card{aspect-ratio:1;min-height:215px}.tool-icon{width:62px;height:62px;margin-top:16px}.tool-card h2{margin-top:20px}}
@media(max-width:600px){.tool-card{min-width:0;width:100%;min-height:0;padding:14px;aspect-ratio:1}.tool-icon{width:42px;height:42px;margin:13px 0 0 auto}.tool-card h2{font-size:16px;margin:10px 0 5px;line-height:1.2}.tool-card p{font-size:11px;line-height:1.4}.card-index{font-size:8px;top:12px;left:14px}.hub-nav{scrollbar-width:thin}}
@media(max-width:600px){.hub-nav{flex-wrap:wrap;overflow:visible;gap:2px}.hub-nav a{font-size:11px;padding:6px 8px}.homeland-global .hub-nav{margin-left:0!important}}
.aniiland-ezoic-row,.wintira-responsive-ad-row{display:none!important}

/* Override the legacy phone app-bar rules only for the new global navigation. */
html.aniiland-phone header.hub-header.homeland-global{position:relative!important;top:auto!important;height:auto!important;min-height:60px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;padding:14px 18px!important;overflow:visible!important}
html.aniiland-phone header.hub-header.homeland-global .hub-nav{display:flex!important;position:static!important;width:100%!important;max-width:100%!important;min-width:0!important;flex:1 1 100%!important;flex-wrap:wrap!important;gap:2px!important;margin:0!important;overflow:visible!important;justify-content:flex-start!important;border:0!important;background:none!important;padding:0!important}
html.aniiland-phone header.hub-header.homeland-global .hub-nav a{white-space:nowrap!important;flex:none!important;font-size:11px!important;padding:6px 8px!important}
html.aniiland-phone header.hub-header.homeland-global .hub-brand{flex:0 1 auto!important;min-width:0!important}
html.aniiland-phone header.homeland-original-header{position:relative!important;top:auto!important}
#m-tabbar{display:none!important}

/* Consistent legal and support footer links across tools. */
.hub-footer-identity{display:flex;flex-direction:column;gap:4px;max-width:340px}.hub-footer-identity small{font-size:11px;color:var(--muted);line-height:1.4}.hub-footer nav{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center}.hub-footer nav a{white-space:nowrap}.hub-footer a[href="/homeland"],.hub-footer a[href="/"]{font-weight:650}
.site-footer nav[aria-label="Site information"]{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;max-width:100%}.site-footer nav[aria-label="Site information"] a{white-space:nowrap}.site-footer nav[aria-label="Site information"] .ez-do-not-sell{color:#cbaef1}

/* Keep the shared tool navigation compact and on one line. */
.hub-header{gap:14px}
.hub-nav{flex-wrap:nowrap;gap:2px;min-width:0;overflow-x:auto;scrollbar-width:none}
.hub-nav::-webkit-scrollbar{display:none}
.hub-nav a{font-size:11px;padding:5px 6px}
@media(max-width:1000px){.hub-header{gap:10px}.hub-nav{width:100%;flex:1 0 100%;margin-left:0;flex-wrap:nowrap;overflow-x:auto}.hub-nav a{font-size:11px;padding:5px 6px}}
@media(max-width:600px){.hub-nav{width:100%;flex-wrap:nowrap;overflow-x:auto}.hub-nav a{font-size:11px;padding:6px 8px}}


/* ---- experimental/account-header.css ---- */
.hub-account-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hub-account-actions button,.hub-account-actions a{border:1px solid #3c5547;border-radius:9px;padding:9px 12px;background:#14261c;color:#e7f3eb;text-decoration:none;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.hub-account-actions .account-register{background:#afd9bc;color:#14261c;border-color:#afd9bc}.hub-account-actions button[aria-disabled=true]{opacity:.6}.account-dialog{width:min(440px,calc(100vw - 40px));box-sizing:border-box;background:#13241b;color:#f0f5ef;border:1px solid #557762;border-radius:20px;padding:26px;font-family:inherit}.account-dialog::backdrop{background:#06120cbb;backdrop-filter:blur(5px)}.account-dialog h2{margin:0 25px 12px 0;font-size:25px}.account-dialog p{font-size:14px;line-height:1.6;color:#bfcec1}.account-dialog a{color:#d0eed5}.account-dialog .account-close{position:absolute;top:15px;right:15px;background:transparent;border:0;color:white;font-size:24px;cursor:pointer}.account-provider-list{display:grid;gap:10px;margin:20px 0}.account-provider-list a,.account-provider-list button{display:flex;align-items:center;justify-content:center;gap:12px;background:#e5eee6;color:#16281d;text-decoration:none;font:inherit;font-weight:700;border:1px solid #a8c5b1;border-radius:10px;padding:13px;cursor:pointer}.account-provider-list a[data-provider=discord]{background:#5865f2;color:white;border-color:#7280ff}.account-provider-list a[aria-disabled=true]{opacity:.45;pointer-events:none}.account-provider-list span{font-size:18px}.account-dialog .account-note{font-size:12px;color:#9fb5a5}.account-dialog [role=status]{min-height:20px;color:#f1cdb6}.account-header-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 40px);padding:14px 20px;border:1px solid #61846c;border-radius:12px;background:#173321;color:white;z-index:10000;box-shadow:0 10px 40px #0008}.account-profile-mark{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#afd9bc;color:#13291c;font-weight:800;margin-right:5px}@media(max-width:700px){.hub-account-actions{width:100%;justify-content:flex-end}.account-dialog{padding:23px}.hub-account-actions button,.hub-account-actions a{padding:8px 10px}}

.account-game-details{display:grid;gap:10px;margin:14px 0 0}.account-game-details>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;padding-top:10px;border-top:1px solid var(--border,#8198b955)}.account-game-details dt{font-weight:600}.account-game-details dd{margin:0;font-weight:700;overflow-wrap:anywhere}


/* ---- experimental/revision.css ---- */
:root{--accent:#a9e9c6;--accent-soft:#a9e9c61a;--accent-contrast:#12251b;--radius:22px;--surface:var(--panel);--ink:var(--text)}
.hub-header{display:grid;grid-template-columns:1fr auto;gap:14px 24px;position:relative;padding:20px max(24px,calc((100vw - 1400px)/2));background:var(--bg);backdrop-filter:none;min-width:0}.hub-brand-row{display:flex;align-items:center;gap:20px}.hub-utilities{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0}.hub-nav{grid-column:1/-1;justify-content:center;width:100%;margin:0;gap:8px;padding-top:4px}.hub-nav a{font-weight:600;padding:9px 17px;border-radius:24px;font-size:13px}.hub-nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent)}.hub-support{font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:7px}.hub-support span{font-size:24px;color:var(--accent)}.hub-account-actions{gap:5px}.hub-account-actions button{border:0;background:transparent;color:var(--text);padding:8px 10px}.hub-account-actions .account-register{background:var(--accent);color:var(--accent-contrast);padding:9px 15px}.hub-main{padding-top:25px}.modern-hero{min-height:510px;display:grid;grid-template-columns:1.05fr 1fr;gap:20px;align-items:center;margin:0 0 60px;padding:30px 0}.modern-hero .hub-kicker{display:flex;align-items:center;gap:9px;font-size:10px}.live-dot{width:7px;height:7px;background:var(--accent);border-radius:50%}.modern-hero h1{font-size:clamp(42px,5.7vw,82px);letter-spacing:-.06em;font-weight:650;line-height:1.02;margin:23px 0}.modern-hero h1 em{font-style:normal;color:var(--accent)}.modern-hero p{font-size:16px;line-height:1.75;max-width:490px}.hero-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:28px}.hero-primary{display:flex;align-items:center;gap:25px;background:var(--accent);color:var(--accent-contrast);padding:14px 20px;border-radius:12px;font-weight:700;font-size:13px}.hero-secondary{font-size:12px;font-weight:600}.hero-meta{display:flex;gap:25px;color:var(--muted);font-size:9px;letter-spacing:.12em;margin-top:43px}.hero-scene{position:relative;min-height:470px;isolation:isolate;overflow:visible}.hero-scene:before{content:'';position:absolute;inset:40px 20px;background:radial-gradient(ellipse,#a9e9c625,transparent 67%);z-index:-1}.hero-pet{position:absolute;object-fit:contain;filter:drop-shadow(0 25px 20px #0003)}.pet-one{width:68%;height:90%;left:14%;top:1%;z-index:3;transform:rotate(-6deg)}.pet-two{width:43%;height:60%;left:-3%;bottom:-1%;z-index:4;transform:rotate(-12deg)}.pet-three{width:44%;height:57%;right:-4%;bottom:-2%;z-index:4;transform:rotate(10deg)}.scene-orbit{position:absolute;border:1px solid #a9e9c630;border-radius:50%;z-index:-1}.orbit-one{inset:35px;transform:rotate(-20deg)}.orbit-two{inset:95px 5px;transform:rotate(20deg)}.scene-sticker{position:absolute;z-index:6;padding:10px 15px;background:var(--panel);border:1px solid var(--line);border-radius:30px;font-size:9px;font-weight:650;letter-spacing:.07em;box-shadow:0 7px 18px #0001}.sticker-top{right:0;top:20px;transform:rotate(7deg)}.sticker-bottom{left:8%;bottom:0;transform:rotate(-5deg)}.scene-star{position:absolute;color:var(--accent);font-size:35px}.star-one{top:25%;left:2%}.star-two{right:0;bottom:35%;font-size:55px}.hub-section-head{align-items:end;margin:0 0 23px}.hub-section-head h2{font-size:28px;font-weight:650;color:var(--text);letter-spacing:-.035em;margin:6px 0 0}.hub-section-head>span{font-size:12px;color:var(--muted)}.tool-grid{gap:16px}.tool-card{aspect-ratio:auto;min-height:280px;border-radius:var(--radius);padding:22px;background:var(--panel);display:grid;grid-template-columns:1fr 110px;grid-template-rows:auto 1fr auto;position:relative;border-color:var(--line);box-shadow:0 8px 24px #00000008}.tool-card:before{background:none;display:none}.card-topline{grid-column:1/-1;display:flex;align-items:center;gap:10px}.card-index{position:static;font-size:11px;color:var(--text);font-weight:700}.card-category{font-size:8px;letter-spacing:.1em;color:var(--muted)}.tool-card-art{grid-column:2;grid-row:2;align-self:center;justify-self:end}.tool-icon{width:88px;height:88px;margin:0;filter:drop-shadow(0 8px 9px #0002)}.tool-card-copy{grid-column:1/-1;grid-row:3;max-width:85%}.tool-card h2{font-size:23px;line-height:1.2;letter-spacing:-.035em;margin:0 0 9px}.tool-card p{font-size:12px;line-height:1.6;margin:0;max-width:270px}.tool-card .arrow{bottom:25px;right:23px;font-size:20px}.tool-card:hover{transform:translateY(-5px);box-shadow:0 16px 40px #0002}.hub-note{font-size:11px}.hub-footer{margin-top:30px}.homeland-global{padding:18px 26px!important}.homeland-global .hub-brand{font-size:19px}.homeland-global .hub-brand img{width:42px;height:42px}.homeland-global .hub-nav{margin:0!important}.homeland-subnav{padding:12px max(24px,calc((100vw - 1400px)/2));min-height:65px}.homeland-version{margin-left:auto!important;position:static!important;align-self:center;border:0!important;background:transparent!important;flex:none!important;cursor:default}.homeland-version .version-details{display:flex;gap:9px;align-items:center}.homeland-version .version-details b{color:var(--muted);font-size:13px}.homeland-version small{font-size:10px;color:var(--muted)}.homeland-tools{padding:10px 26px!important;min-height:0!important;display:flex!important;gap:12px!important;border-bottom:1px solid var(--line)!important;background:var(--bg)!important;justify-content:flex-end!important}.homeland-tools .myrv-head-btn{display:none!important}.homeland-tools .event-center-btn,.homeland-tools #guide-open{position:static!important}.homeland-tools nav{display:none!important}.homeland-tools:empty{display:none!important}
@media(max-width:1100px){.hub-header{grid-template-columns:1fr;gap:12px}.hub-utilities{justify-content:flex-start;flex-wrap:wrap}.hub-nav{justify-content:flex-start;gap:3px}.hub-nav a{padding:8px 13px}.modern-hero{min-height:440px}.hero-scene{min-height:400px}.modern-hero h1{font-size:56px}.hero-actions{gap:14px}.tool-card{min-height:260px}.hero-meta{gap:15px}}
@media(max-width:650px){.hub-header,.homeland-global{padding:16px 18px!important;display:flex!important;flex-direction:column!important;gap:13px!important;align-items:stretch!important}.hub-brand-row{gap:10px}.hub-brand{font-size:17px}.hub-brand small{font-size:8px}.experiment-tag{font-size:8px;margin-left:auto}.hub-utilities{gap:8px;justify-content:space-between}.hub-support{font-size:10px}.hub-account-actions{width:auto;justify-content:flex-start;gap:1px}.hub-account-actions button{font-size:10px;padding:6px}.hub-account-actions .account-register{padding:7px 9px}.hub-nav{gap:1px;justify-content:flex-start;padding:0}.hub-nav a{font-size:11px;padding:7px 10px}.modern-hero{grid-template-columns:1fr;gap:0;padding-top:18px;margin-bottom:38px}.modern-hero h1{font-size:49px;max-width:100%;margin:18px 0}.modern-hero p{font-size:14px}.hero-actions{gap:13px;margin-top:22px}.hero-primary{font-size:12px;padding:12px 15px}.hero-secondary{font-size:11px}.hero-meta{margin-top:25px;font-size:8px;gap:20px}.hero-scene{min-height:325px;margin-top:20px}.sticker-top{font-size:7px}.sticker-bottom{font-size:7px}.scene-star{font-size:25px}.tool-grid{grid-template-columns:1fr 1fr;gap:10px}.tool-card{padding:15px;min-height:225px;width:auto;aspect-ratio:auto;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;border-radius:17px}.card-category{display:none}.tool-card-art{grid-column:1;grid-row:2;justify-self:end}.tool-icon{width:61px;height:61px}.tool-card-copy{grid-column:1;grid-row:3;max-width:100%}.tool-card h2{font-size:18px;margin:8px 0 6px}.tool-card p{font-size:11px;line-height:1.5}.tool-card .arrow{display:none}.hub-section-head h2{font-size:23px}.hub-section-head>span{display:none}.homeland-subnav{padding:10px 13px;gap:3px}.homeland-subnav .subnav-label{display:none}.homeland-subnav a{padding:6px 7px;font-size:11px}.homeland-version .version-details{gap:6px}.homeland-version small{display:none}.homeland-version{padding:4px!important}.homeland-version .version-details b{font-size:10px}.homeland-tools{padding:8px 15px!important}.homeland-community-view .homeland-tools{display:none!important}}
html.aniiland-phone header.hub-header.homeland-global{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:13px!important}.homeland-global .hub-utilities{max-width:100%}html.aniiland-phone header.hub-header.homeland-global .hub-nav{flex:auto!important;width:100%!important;gap:1px!important}.homeland-global .hub-utilities .hub-account-actions{width:auto!important}


/* ---- experimental/designs.css ---- */
/* Shared component tokens; each direction also changes composition in its own stylesheet. */
html[data-design]{color-scheme:dark;background:var(--bg)}html[data-design] body{background:var(--bg);color:var(--text);font-family:var(--body-font,'Segoe UI',system-ui,sans-serif)}html[data-design] h1,html[data-design] h2,html[data-design] h3{font-family:var(--heading-font,inherit)}html[data-design] .hub-header,html[data-design] .hub-footer,html[data-design] .homeland-subnav{background:var(--bg);border-color:var(--line)}html[data-design] .hub-header .hub-nav{justify-content:var(--nav-align,center)}html[data-design] .hub-brand,html[data-design] .hub-nav a[aria-current],html[data-design] .hub-kicker,html[data-design] .rt-eyebrow{color:var(--accent)}html[data-design] .hub-nav a,html[data-design] .hub-footer,html[data-design] .hub-footer a,html[data-design] .hub-note,html[data-design] .modern-hero p,html[data-design] .hero-meta,html[data-design] .rt-lead,html[data-design] .rt-results,html[data-design] .rt-paging,html[data-design] .reference-tools label{color:var(--muted)}html[data-design] .hero-primary,html[data-design] .hub-account-actions .account-register{background:var(--accent);color:var(--accent-contrast)}html[data-design] .tool-card,html[data-design] .rt-panel,html[data-design] .rt-toolbar,html[data-design] .rt-code-card,html[data-design] .rt-creature-card,html[data-design] .community-page,html[data-design] .community-card,html[data-design] .rt-community-card,html[data-design] .rt-element-pickers fieldset{background:var(--panel)!important;border-color:var(--line)!important;color:var(--text);border-radius:var(--radius)}html[data-design] .tool-card p,html[data-design] .rt-card-copy p,html[data-design] .rt-event-card small,html[data-design] .rt-event-card p,html[data-design] .community-page p,html[data-design] .community-card small,html[data-design] .rt-code-card p,html[data-design] .rt-community-card>span:not(.rt-community-crop){color:var(--muted)}html[data-design] .reference-tools{color:var(--text)}html[data-design] .reference-tools button,html[data-design] .reference-tools input,html[data-design] .reference-tools select,html[data-design] .community-page button,html[data-design] .community-page input,html[data-design] .community-page select,html[data-design] .community-page textarea,html[data-design] .account-dialog,html[data-design] .rt-dialog,html[data-design] .community-preview{background:var(--panel);color:var(--text);border-color:var(--line)}html[data-design] .rt-element-buttons button[aria-pressed=true],html[data-design] .rt-form-switch button[aria-pressed=true],html[data-design] .rt-appearance-choice[aria-pressed=true],html[data-design] .rt-tabs a[aria-current]{background:var(--accent-soft)!important;border-color:var(--accent)!important;color:var(--text)}html[data-design] .rt-chips span,html[data-design] .rt-badge{background:var(--raised);color:var(--text);border-color:var(--line)}html[data-design] .rt-tabs a{background:var(--panel);color:var(--muted);border-color:var(--line)}html[data-design] .rt-stats>div,html[data-design] .rt-skills>div,html[data-design] .rt-appearance-choice,html[data-design] .community-mini span{background:var(--raised)!important;border-color:var(--line)!important;color:var(--text)}html[data-design] .rt-modal-head{background:var(--panel)}html[data-design] .rt-notice,html[data-design] .rt-empty{background:var(--raised);color:var(--muted);border-color:var(--line)}html[data-design] .rt-stats strong{color:var(--accent)}html[data-design] .rt-appearance-choice span,html[data-design] .rt-stats span,html[data-design] .account-dialog p,html[data-design] .account-dialog .account-note{color:var(--muted)}html[data-design] .rt-event-card{background:var(--panel);color:var(--text);border-color:var(--line);border-radius:var(--radius)}html[data-design] .tool-card .arrow{color:var(--accent)}html[data-design] .scene-sticker{background:var(--panel);color:var(--text);border-color:var(--line)}html[data-design] .scene-orbit{border-color:var(--line)}html[data-design] .scene-star{color:var(--accent)}html[data-design] .hero-scene:before{background:radial-gradient(ellipse,var(--accent-soft),transparent 68%)}html[data-design] .account-dialog .account-close{color:var(--text)}html[data-design] .account-provider-list a[data-provider=google]{background:var(--raised);color:var(--text);border-color:var(--line)}html[data-design] .rt-sr-only{display:none!important}html[data-design] .rt-code-top{align-items:flex-start;flex-direction:column}html[data-design] .rt-code-card{display:flex;flex-direction:column}html[data-design] .rt-code-card>button{margin-top:auto}html[data-design] .rt-element-pickers{min-width:0}html[data-design] .rt-element-buttons button{min-width:60px}html[data-design] .homeland-tools{padding-right:170px!important}html[data-design] #order-dock{top:calc(var(--planner-header-height,180px) + 10px)!important}html[data-design] .hub-support{color:var(--text)}
.design-dock{position:fixed;right:20px;bottom:16px;z-index:1900;display:flex;gap:7px;align-items:center;background:var(--panel,#172430);color:var(--text,#fff);border:1px solid var(--line,#445);box-shadow:0 8px 35px #0003;border-radius:14px;padding:8px;max-width:calc(100vw - 24px)}.design-dock label{display:grid;gap:3px;font-size:9px;letter-spacing:.12em;margin:0!important;color:var(--muted);font-weight:600}.design-dock select{font-size:12px;font-weight:700;border:0;padding:1px 18px 1px 0;background:transparent;color:var(--text);max-width:175px;min-height:24px}.design-dock-step{border:0;padding:8px 10px;background:var(--raised);color:var(--text);min-height:35px}.design-all{font-size:10px;padding:7px;color:var(--accent);white-space:nowrap}.design-gallery-page{max-width:1500px!important}.design-lab-heading h1{font-size:60px;line-height:1.05;letter-spacing:-.06em;margin:18px 0}.design-lab-heading p{max-width:650px;color:var(--muted)}.design-lab-toolbar{display:flex;gap:25px;align-items:center;flex-wrap:wrap;margin:30px 0}.design-lab-toolbar label{display:flex;align-items:center;gap:10px;font-size:12px}.design-lab-toolbar span{font-size:12px;color:var(--muted)}.design-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.design-option{min-width:0;border:1px solid var(--line);background:var(--panel);border-radius:18px;overflow:hidden;padding:20px}.design-option-head{display:flex;gap:12px;align-items:center;margin-bottom:15px}.design-option-head>span{color:var(--muted);font-size:12px}.design-option-head h2{font-size:21px;margin:0}.design-swatches{display:flex;gap:3px;margin-left:auto}.design-swatches i{width:15px;height:15px;border-radius:50%;border:1px solid #8884}.design-frame-window{height:335px;overflow:hidden;position:relative;background:var(--bg);border-radius:10px;border:1px solid var(--line);pointer-events:none}.design-frame-window iframe{width:1320px;height:900px;border:0;transform:scale(.48);transform-origin:top left;pointer-events:none;background:var(--bg)}.design-option p{font-size:12px;color:var(--muted);line-height:1.65}.design-option .design-tone{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin:17px 0 5px}.design-option-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:17px}.design-option-actions a{font-weight:700;font-size:12px}.design-option-actions button{font-size:11px;color:var(--text);border:1px solid var(--line);background:var(--raised);padding:8px 12px}.design-option-actions button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}html.design-embedded .design-dock,html.design-embedded .hub-footer{display:none!important}html.design-embedded body{margin:0!important}html.design-embedded .hub-main{padding-bottom:20px!important}html.design-embedded .hub-header .experiment-tag{display:none}html.design-embedded .hub-header{position:relative!important}.hub-footer{padding-bottom:90px!important}
@media(max-width:1100px){.design-frame-window iframe{transform:scale(.33)}.design-frame-window{height:240px}}
@media(max-width:650px){.design-option-grid{grid-template-columns:1fr}.design-option{padding:14px}.design-frame-window{height:205px}.design-frame-window iframe{transform:scale(.25)}.design-lab-heading h1{font-size:45px}.design-dock{bottom:10px;right:10px;left:10px;width:auto;justify-content:center;padding:6px;gap:5px}.design-dock select{font-size:10px;max-width:138px}.design-all{font-size:9px}.design-dock label{font-size:8px}.design-dock-step{font-size:12px;padding:5px 8px}html[data-design] .homeland-tools{padding-right:140px!important}html[data-design] #order-dock{top:auto!important;bottom:72px!important}.design-option-head h2{font-size:19px}}
body:has(.homeland-tools) .shell{--bg:#101923;--panel:#172430;--raised:#1e2e3d;--line:#30414f;--text:#eaf2f8;--muted:#a1b6c5;--mint:#a7e4cc;--violet:#b9a1ed;background:#101923;color:#eaf2f8}html[data-design] .reference-tools .rt-creature-intro>img{max-width:100%}html[data-design] .rt-dialog{max-width:min(1100px,calc(100vw - 45px))}
html[data-design] .hub-main{overflow-x:clip}html[data-design] .modern-hero>*{min-width:0}html[data-design] .hero-pet.pet-three{right:2%;width:40%}html[data-design] .hero-pet.pet-two{left:1%}
html[data-design] .rt-damage-table .rt-element-heading{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:65px;border:0;background:transparent;padding:8px 5px;color:var(--text)}html[data-design] .rt-damage-table .rt-element-heading:hover{background:var(--accent-soft)}

html[data-design] .rt-dialog button,html[data-design] .rt-dialog input,html[data-design] .community-preview button{background:var(--raised);color:var(--text);border-color:var(--line)}
html[data-design] .rt-dialog:has(.rt-creature-layout){width:min(1080px,calc(100vw - 48px));max-width:none}
.rt-creature-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:28px;align-items:start}
.rt-creature-layout .rt-creature-intro{position:sticky;top:60px;align-self:start;flex-direction:column;text-align:center;gap:10px;padding:22px 18px;background:var(--raised);border-radius:var(--radius);margin-top:10px}
.rt-creature-layout .rt-creature-intro>img{width:290px;height:290px}.rt-creature-layout .rt-creature-intro h3{margin:8px 0!important}.rt-creature-layout .rt-creature-intro p{font-size:12px;line-height:1.5}.rt-creature-layout .rt-creature-intro .rt-chips{justify-content:center}
.rt-creature-options{min-width:0}.rt-creature-options .rt-appearance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.rt-creature-options .rt-appearance-choice img{width:120px;height:120px}.rt-creature-options .rt-appearance-choice{min-width:0}
@media(max-width:800px){.rt-creature-layout{grid-template-columns:1fr}.rt-creature-layout .rt-creature-intro{position:static;flex-direction:row;text-align:left;gap:15px;padding:15px}.rt-creature-layout .rt-creature-intro>img{width:160px;height:180px}.rt-creature-layout .rt-creature-intro>div{min-width:0}.rt-creature-layout .rt-creature-intro h3{font-size:22px}.rt-creature-layout .rt-creature-intro .rt-chips{justify-content:flex-start}.rt-creature-options .rt-appearance-choice img{width:85px;height:85px}.rt-creature-options .rt-appearance-choice{padding:7px!important}.rt-creature-options .rt-appearance-choice span{font-size:10px}}
html[data-design]{--egg-active-bg:var(--accent);--egg-active-text:var(--accent-contrast)}html[data-design] .egg-tool button[aria-pressed=true]{color:var(--accent-contrast)!important;background:var(--accent)!important}


/* ---- experimental/designs-a.css ---- */
/* 01 — Daybreak: illustrated light hub and soft bento cards. */
html[data-design="1"]{color-scheme:light;--bg:#f4f7f0;--panel:#fff;--raised:#e8eedf;--line:#d7e0cf;--text:#20382f;--muted:#65766b;--accent:#245847;--accent-soft:#b6df7340;--accent-contrast:#fff;--mint:#245847;--violet:#72569e;--radius:24px;--map-bg:#192e27;--map-glow:#80b88318}
html[data-design="1"] .modern-hero{background:linear-gradient(115deg,#edf4e4,#f5f8f1 65%);border-radius:35px;padding:40px;margin-top:10px}html[data-design="1"] .hero-scene:before{background:radial-gradient(ellipse,#bbd79c77,transparent 70%)}html[data-design="1"] .tool-card:first-child{background:#e5eedb!important}html[data-design="1"] .tool-card:nth-child(4){background:#eee8f6!important}html[data-design="1"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:20px}html[data-design="1"] .rt-card-art{background:radial-gradient(ellipse,#e5eddb,transparent 70%);height:180px}html[data-design="1"] .rt-toolbar{border-radius:20px;padding:22px}html[data-design="1"] .rt-code-grid{gap:20px}html[data-design="1"] .rt-code-card{padding:25px;box-shadow:0 7px 25px #476e3310}html[data-design="1"] .egg-gallery{gap:20px}html[data-design="1"] .rt-element-pickers fieldset{padding:20px}
/* 02 — Nightfall: cinematic hero and asymmetric tools. */
html[data-design="2"]{--bg:#0d1225;--panel:#181e38;--raised:#242c4b;--line:#343959;--text:#f2f0ff;--muted:#a4aecb;--accent:#d4bcff;--accent-soft:#a881ff28;--accent-contrast:#211339;--mint:#d4bcff;--violet:#e3b4e7;--radius:22px;--map-bg:#0a0c1a;--map-glow:#9375ff20}
html[data-design="2"] body{background:radial-gradient(ellipse at 80% 20%,#39296155,transparent 45%),var(--bg)}html[data-design="2"] .modern-hero{min-height:560px;border-bottom:1px solid var(--line)}html[data-design="2"] .hero-copy{z-index:5}html[data-design="2"] .modern-hero h1{font-size:80px;font-weight:500}html[data-design="2"] .hero-scene{transform:scale(1.1);margin-left:-25px}html[data-design="2"] .hero-scene:before{background:radial-gradient(ellipse,#9c6efc50,transparent 70%)}html[data-design="2"] .tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}html[data-design="2"] .tool-card:first-child,html[data-design="2"] .tool-card:nth-child(4){grid-column:span 2}html[data-design="2"] .tool-card{background:linear-gradient(140deg,#27213d,#141a31)!important;min-height:260px}html[data-design="2"] .tool-card:first-child .tool-icon{width:140px;height:140px}html[data-design="2"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:20px}html[data-design="2"] .rt-card-art{height:205px;background:radial-gradient(ellipse,#6d459e55,transparent 70%)}html[data-design="2"] .rt-card-art img{width:170px;height:170px}html[data-design="2"] .rt-element-pickers{grid-template-columns:1fr 1fr}html[data-design="2"] .rt-element-pickers fieldset:last-child{grid-column:1/-1}html[data-design="2"] .rt-code-grid{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-design="2"] .rt-code-top code{font-size:22px}html[data-design="2"] .rt-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-design="2"] .rt-event-card{display:grid;grid-template-columns:45% 1fr}
/* 03 — Editorial: magazine masthead, serif type and indexed rows. */
html[data-design="3"]{color-scheme:light;--bg:#f4eee5;--panel:#fffaf3;--raised:#eae1d5;--line:#cfc2b1;--text:#273c3d;--muted:#7e786b;--accent:#a64431;--accent-soft:#a6443115;--accent-contrast:#fff9ef;--mint:#a64431;--violet:#716383;--radius:2px;--heading-font:Georgia,'Times New Roman',serif;--body-font:'Segoe UI',sans-serif;--map-bg:#272a22}
html[data-design="3"] .hub-header{border-bottom:3px double var(--line)}html[data-design="3"] .hub-brand{font-family:Georgia,serif;letter-spacing:.06em}html[data-design="3"] .hub-nav a{border-radius:0}html[data-design="3"] .modern-hero{grid-template-columns:1.2fr 1fr;border-bottom:3px double var(--line);padding-bottom:35px}html[data-design="3"] .modern-hero h1{font-size:80px;font-weight:400;letter-spacing:-.065em}html[data-design="3"] .modern-hero h1 em{font-style:italic}html[data-design="3"] .hero-primary{border-radius:0}html[data-design="3"] .hero-scene .scene-orbit{display:none}html[data-design="3"] .scene-sticker{border-radius:0;box-shadow:none}html[data-design="3"] .tool-grid{grid-template-columns:1fr 1fr;gap:0 35px}html[data-design="3"] .tool-card{border:0!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;box-shadow:none;border-radius:0;min-height:190px;grid-template-columns:1fr 100px;grid-template-rows:auto auto;background:transparent!important;padding:25px 0}html[data-design="3"] .tool-card-art{grid-row:1/3;grid-column:2}html[data-design="3"] .tool-card-copy{grid-column:1;grid-row:2;max-width:90%}html[data-design="3"] .tool-card h2{font-size:30px;font-weight:400}html[data-design="3"] .tool-card .arrow{display:none}html[data-design="3"] .rt-toolbar{background:transparent!important;border-width:1px 0!important;padding:20px 0}html[data-design="3"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:30px}html[data-design="3"] .rt-creature-card{background:transparent!important;border-width:0 0 1px!important;border-radius:0}html[data-design="3"] .rt-card-art{background:none;height:180px}html[data-design="3"] .rt-code-grid{grid-template-columns:1fr 1fr;gap:0 30px}html[data-design="3"] .rt-code-card{border-width:1px 0!important;padding:24px 0;box-shadow:none;background:transparent!important}html[data-design="3"] .rt-element-buttons button{border-radius:0}html[data-design="3"] .rt-event-grid{grid-template-columns:1fr 1fr}html[data-design="3"] .community-card{border-width:0 0 1px!important;background:transparent!important;border-radius:0!important}
/* 04 — Candy Club: oversized playful stickers and tactile colour-blocks. */
html[data-design="4"]{color-scheme:light;--bg:#fff1f5;--panel:#fff;--raised:#f6dce8;--line:#e4bdd0;--text:#4e2943;--muted:#956c83;--accent:#a32d66;--accent-soft:#f0a8ca4d;--accent-contrast:#fff;--mint:#a32d66;--violet:#8b5cc3;--radius:32px;--heading-font:'Trebuchet MS','Segoe UI',sans-serif;--map-bg:#38243d}
html[data-design="4"] .hub-nav a{border:1px solid var(--line);background:#fff}html[data-design="4"] .modern-hero{grid-template-columns:1fr 1.1fr;gap:0}html[data-design="4"] .modern-hero h1{font-size:74px;font-weight:900;letter-spacing:-.06em}html[data-design="4"] .hero-scene{background:#f6dce8;border-radius:50% 40% 42% 35%;transform:rotate(3deg);min-height:470px}html[data-design="4"] .scene-sticker{background:#fff8cc;border:2px solid #e2bc68;box-shadow:4px 4px 0 #a32d6622}html[data-design="4"] .scene-orbit{display:none}html[data-design="4"] .tool-card{border:2px solid var(--line)!important;box-shadow:5px 5px 0 var(--line);min-height:295px}html[data-design="4"] .tool-card:nth-child(even){background:#f7e4ff!important}html[data-design="4"] .tool-card:nth-child(3n){background:#fff6cf!important}html[data-design="4"] .tool-icon{width:110px;height:110px;transform:rotate(8deg)}html[data-design="4"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}html[data-design="4"] .rt-creature-card{border:2px solid var(--line)!important;box-shadow:4px 4px 0 var(--line)}html[data-design="4"] .rt-card-art{background:#fbe4f0;border-radius:50%;margin:12px;height:155px}html[data-design="4"] .rt-tabs a{border-radius:30px!important}html[data-design="4"] .rt-element-buttons button{border-radius:20px;min-height:100px}html[data-design="4"] .rt-code-card{box-shadow:5px 5px 0 var(--line);border:2px solid var(--line)!important;padding:24px}html[data-design="4"] .egg-gallery button{box-shadow:5px 5px 0 var(--line)}
/* 05 — Mission Control: compact operations dashboard. */
html[data-design="5"]{--bg:#111d27;--panel:#1b2b37;--raised:#233b49;--line:#35505e;--text:#d9edf1;--muted:#95aebb;--accent:#79d3d7;--accent-soft:#79d3d71c;--accent-contrast:#11272a;--mint:#79d3d7;--violet:#9eb4df;--radius:7px;--heading-font:'Segoe UI',sans-serif;--body-font:'Segoe UI',sans-serif;--map-bg:#0b1720}
html[data-design="5"] .hub-header{padding-top:12px;padding-bottom:12px;gap:5px}html[data-design="5"] .hub-nav{justify-content:flex-start!important;gap:0}html[data-design="5"] .hub-nav a{border-radius:3px}html[data-design="5"] .modern-hero{min-height:300px;grid-template-columns:1.5fr 1fr;margin-bottom:25px;border-bottom:1px solid var(--line);padding:15px 0 30px}html[data-design="5"] .modern-hero h1{font-size:52px;line-height:1.1;margin:14px 0}html[data-design="5"] .modern-hero p{font-size:14px;max-width:580px}html[data-design="5"] .hero-meta{margin-top:20px;font-family:Consolas,monospace}html[data-design="5"] .hero-scene{min-height:290px}html[data-design="5"] .scene-sticker{display:none}html[data-design="5"] .hero-pet{filter:drop-shadow(0 15px 12px #0004)}html[data-design="5"] .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}html[data-design="5"] .tool-card{min-height:170px;padding:17px;grid-template-columns:1fr 68px;grid-template-rows:auto 1fr}html[data-design="5"] .tool-card-art{grid-row:1/3;grid-column:2}html[data-design="5"] .tool-icon{width:60px;height:60px}html[data-design="5"] .tool-card-copy{grid-column:1;grid-row:2;max-width:95%}html[data-design="5"] .tool-card h2{font-size:20px;margin:12px 0 6px}html[data-design="5"] .tool-card p{font-size:11px}html[data-design="5"] .card-category{display:none}html[data-design="5"] .tool-card .arrow{display:none}html[data-design="5"] .rt-toolbar{padding:12px;margin:15px 0;gap:9px}html[data-design="5"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:9px}html[data-design="5"] .rt-card-art{height:135px;background:#233b4922}html[data-design="5"] .rt-card-art img{width:120px;height:120px}html[data-design="5"] .rt-card-copy{padding:0 12px 12px}html[data-design="5"] .rt-element-pickers fieldset{padding:10px}html[data-design="5"] .rt-element-buttons button{min-height:70px;max-width:none;padding:7px}html[data-design="5"] .rt-code-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}html[data-design="5"] .rt-code-card{padding:17px}html[data-design="5"] .rt-event-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}html[data-design="5"] .community-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
@media(max-width:1000px){html[data-design="2"] .modern-hero h1,html[data-design="3"] .modern-hero h1,html[data-design="4"] .modern-hero h1{font-size:59px}html[data-design="2"] .tool-grid{grid-template-columns:1fr 1fr}html[data-design="2"] .tool-card:first-child,html[data-design="2"] .tool-card:nth-child(4){grid-column:span 1}html[data-design="5"] .rt-code-grid{grid-template-columns:1fr 1fr}html[data-design="2"] .rt-element-pickers{grid-template-columns:1fr}}
@media(max-width:650px){html[data-design="1"] .modern-hero{padding:20px;border-radius:25px;margin:0 -6px 35px}html[data-design="2"] .modern-hero,html[data-design="3"] .modern-hero,html[data-design="4"] .modern-hero,html[data-design="5"] .modern-hero{grid-template-columns:1fr;min-height:0;gap:0}html[data-design="2"] .modern-hero h1,html[data-design="3"] .modern-hero h1,html[data-design="4"] .modern-hero h1{font-size:51px}html[data-design="2"] .hero-scene{transform:none;margin:10px 0 0;min-height:320px}html[data-design="4"] .hero-scene{min-height:320px;margin:28px 0 5px}html[data-design="5"] .hero-scene{min-height:260px}html[data-design="3"] .tool-grid{grid-template-columns:1fr;gap:0}html[data-design="3"] .tool-card{min-height:160px;padding:20px 0;grid-template-columns:1fr 90px}html[data-design="3"] .tool-card-art{grid-row:1/3;grid-column:2}html[data-design="3"] .tool-card-copy{grid-column:1;grid-row:2}html[data-design="3"] .tool-card h2{font-size:28px}html[data-design="2"] .rt-code-grid,html[data-design="2"] .rt-event-grid,html[data-design="3"] .rt-code-grid,html[data-design="3"] .rt-event-grid{grid-template-columns:1fr}html[data-design="2"] .rt-event-card{display:block}html[data-design="4"] .tool-card{min-height:235px;padding:15px;box-shadow:3px 3px 0 var(--line)}html[data-design="4"] .tool-icon{width:70px;height:70px}html[data-design="5"] .tool-grid{grid-template-columns:1fr}html[data-design="5"] .tool-card{min-height:135px;grid-template-columns:1fr 65px;grid-template-rows:auto 1fr}html[data-design="5"] .tool-card-art{grid-row:1/3;grid-column:2}html[data-design="5"] .tool-card-copy{grid-column:1;grid-row:2}html[data-design="5"] .rt-code-grid{grid-template-columns:1fr}html[data-design="5"] .rt-dex-grid{grid-template-columns:1fr 1fr}}


/* ---- experimental/designs-b.css ---- */
/* 06 — Pocket Console: a tactile compact game interface. */
html[data-design="6"]{color-scheme:light;--bg:#e8f3ee;--panel:#fcfffb;--raised:#d4e8df;--line:#aecabd;--text:#244b41;--muted:#65857a;--accent:#225e50;--accent-soft:#a9d9aa66;--accent-contrast:#fff;--mint:#225e50;--violet:#7566a8;--radius:28px;--heading-font:'Trebuchet MS',sans-serif;--map-bg:#17392f}
html[data-design="6"] .hub-main{max-width:1220px}html[data-design="6"] .hub-header{border:6px solid var(--raised);border-radius:0 0 30px 30px}html[data-design="6"] .hub-nav a{background:var(--raised);border-radius:18px}html[data-design="6"] .modern-hero{grid-template-columns:1.2fr 1fr;min-height:355px;background:var(--panel);border:6px solid var(--raised);border-radius:34px;padding:25px 35px;margin-bottom:30px}html[data-design="6"] .modern-hero h1{font-size:54px;font-weight:800}html[data-design="6"] .hero-scene{min-height:300px}html[data-design="6"] .hero-meta,html[data-design="6"] .scene-sticker{display:none}html[data-design="6"] .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}html[data-design="6"] .tool-card{min-height:250px;text-align:center;display:flex;align-items:center;padding:23px;border:4px solid var(--raised)!important;box-shadow:0 6px 0 var(--line)}html[data-design="6"] .tool-card-art{margin:10px auto 15px;order:1}html[data-design="6"] .tool-card-copy{order:2;max-width:100%}html[data-design="6"] .card-topline{justify-content:center}.design-embedded[data-design="6"] .modern-hero{margin-top:10px}html[data-design="6"] .card-category,html[data-design="6"] .tool-card .arrow{display:none}html[data-design="6"] .tool-icon{width:80px;height:80px}html[data-design="6"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:16px}html[data-design="6"] .rt-card-art{height:140px}html[data-design="6"] .rt-card-art img{width:120px;height:120px}html[data-design="6"] .rt-creature-card{border:3px solid var(--raised)!important;box-shadow:0 4px 0 var(--line);text-align:center}html[data-design="6"] .rt-chips{justify-content:center}html[data-design="6"] .rt-element-buttons button{border-radius:22px;border-width:3px;box-shadow:0 3px 0 var(--line)}html[data-design="6"] .rt-code-grid{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-design="6"] .rt-code-card{border:3px solid var(--raised)!important;box-shadow:0 5px 0 var(--line)}html[data-design="6"] .egg-gallery{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))}
/* 07 — Field Journal: paper, notes and a serif field-guide hierarchy. */
html[data-design="7"]{color-scheme:light;--bg:#f1ead7;--panel:#fffaf0;--raised:#e6dcc2;--line:#c8b993;--text:#3f4936;--muted:#887b5f;--accent:#526344;--accent-soft:#c6ad7833;--accent-contrast:#fffaf0;--mint:#526344;--violet:#856d8d;--radius:6px;--heading-font:Georgia,serif;--map-bg:#30392a}
html[data-design="7"] body{background-image:repeating-linear-gradient(0deg,transparent,transparent 27px,#c8b99314 28px)}html[data-design="7"] .hub-header{background:transparent!important;border-bottom:2px solid var(--line)}html[data-design="7"] .hub-brand{font-family:Georgia,serif}.design-embedded[data-design="7"] .hub-header{background:var(--bg)!important}html[data-design="7"] .hub-nav a{border-radius:0;border-bottom:1px dashed var(--line)}html[data-design="7"] .modern-hero{grid-template-columns:1fr 1fr;border-bottom:1px dashed var(--line);min-height:450px}html[data-design="7"] .modern-hero h1{font-size:70px;font-weight:400}html[data-design="7"] .modern-hero h1 em{font-style:italic}html[data-design="7"] .hero-scene{min-height:400px;border:1px dashed var(--line);border-radius:50%;background:#e6dcc244}html[data-design="7"] .hero-primary{border-radius:3px}html[data-design="7"] .scene-sticker{border-radius:0;box-shadow:3px 3px 0 #3f493618}html[data-design="7"] .tool-grid{grid-template-columns:1fr 1fr;gap:24px}html[data-design="7"] .tool-card{transform:rotate(-.5deg);min-height:220px;box-shadow:3px 5px 0 #3f49361c;border-top:4px solid var(--line)!important}html[data-design="7"] .tool-card:nth-child(even){transform:rotate(.5deg)}html[data-design="7"] .card-category{font-family:Consolas,monospace;font-size:9px}html[data-design="7"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:24px}html[data-design="7"] .rt-creature-card{border-top:4px solid var(--line)!important;box-shadow:3px 4px 0 #3f493618}html[data-design="7"] .rt-card-art{background:none;height:190px}html[data-design="7"] .rt-toolbar{border-style:dashed!important;background:transparent!important}html[data-design="7"] .rt-code-grid{grid-template-columns:1fr 1fr;gap:22px}html[data-design="7"] .rt-code-card{border-top:4px solid var(--line)!important;padding:26px}html[data-design="7"] .rt-event-grid{grid-template-columns:1fr 1fr}html[data-design="7"] .egg-gallery button{border-top:4px solid var(--line)}html[data-design="7"] .community-card{border-style:dashed!important}
/* 08 — Prism Studio: centred, airy and artwork-first. */
html[data-design="8"]{color-scheme:light;--bg:#faf8ff;--panel:#fff;--raised:#eee8f7;--line:#dfd5ed;--text:#382b50;--muted:#8c7f9e;--accent:#7354b1;--accent-soft:#c8b6ed3d;--accent-contrast:#fff;--mint:#7354b1;--violet:#ad82b9;--radius:30px;--heading-font:'Segoe UI',sans-serif;--map-bg:#261d39}
html[data-design="8"] .hub-header{border-bottom:0}html[data-design="8"] .modern-hero{display:flex;flex-direction:column;text-align:center;min-height:0;padding-top:35px;gap:0;margin-bottom:45px}html[data-design="8"] .modern-hero .hub-kicker,html[data-design="8"] .hero-actions,html[data-design="8"] .hero-meta{justify-content:center}html[data-design="8"] .modern-hero h1{font-size:77px;max-width:none;font-weight:400;letter-spacing:-.055em}html[data-design="8"] .modern-hero h1 br{display:none}html[data-design="8"] .modern-hero p{max-width:620px;margin:auto}html[data-design="8"] .hero-scene{width:570px;min-height:350px;margin:25px auto 0}html[data-design="8"] .hero-pet.pet-one{height:100%;top:-10%;left:17%}html[data-design="8"] .scene-sticker,html[data-design="8"] .hero-meta{display:none}html[data-design="8"] .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}html[data-design="8"] .tool-card{min-height:320px;border:0!important;box-shadow:0 15px 55px #7354b111;text-align:center;display:flex;align-items:center;padding:28px}html[data-design="8"] .tool-card-art{margin:18px auto 30px;order:1}html[data-design="8"] .tool-card-copy{order:2;max-width:100%}html[data-design="8"] .card-category,html[data-design="8"] .card-index,html[data-design="8"] .tool-card .arrow{display:none}html[data-design="8"] .tool-icon{width:100px;height:100px}html[data-design="8"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:26px}html[data-design="8"] .rt-creature-card{border:0!important;text-align:center;box-shadow:0 10px 40px #7354b112}html[data-design="8"] .rt-card-art{height:220px;background:radial-gradient(ellipse,#eee8f7,transparent 70%)}html[data-design="8"] .rt-card-art img{width:180px;height:180px}html[data-design="8"] .rt-chips{justify-content:center}html[data-design="8"] .rt-tabs{justify-content:center}html[data-design="8"] .rt-toolbar{justify-content:center;background:transparent!important;border:0!important}html[data-design="8"] .rt-element-buttons button{border-radius:50px;max-width:none}html[data-design="8"] .rt-code-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}html[data-design="8"] .rt-code-card{box-shadow:0 10px 40px #7354b112;border:0!important;padding:30px}html[data-design="8"] .rt-event-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}
/* 09 — Atlas Desk: navigation rail and horizontal workspace rows. */
html[data-design="9"]{color-scheme:light;--bg:#edf1f4;--panel:#fff;--raised:#dfe8ed;--line:#c4d2db;--text:#254353;--muted:#78909e;--accent:#245f7a;--accent-soft:#a3c5d440;--accent-contrast:#fff;--mint:#245f7a;--violet:#697eb0;--radius:10px;--map-bg:#183344}
@media(min-width:1200px){html[data-design="9"] body{padding-left:225px}html[data-design="9"] header.hub-header{position:fixed!important;left:0;top:0;bottom:0;width:225px;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start;gap:25px;padding:25px 20px!important;border-right:1px solid var(--line);border-bottom:0;z-index:1200}html[data-design="9"] .hub-brand-row{flex-direction:column;align-items:flex-start;gap:15px}html[data-design="9"] .hub-brand{font-size:16px}html[data-design="9"] .hub-brand small{font-size:7px}html[data-design="9"] .hub-brand img{width:33px;height:33px}html[data-design="9"] .hub-utilities{order:3;flex-direction:column;align-items:stretch;gap:20px;margin-top:auto}html[data-design="9"] .hub-account-actions{display:grid;grid-template-columns:1fr 1fr}html[data-design="9"] .hub-nav{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;order:2}html[data-design="9"] .hub-nav a{border-radius:8px;padding:12px 14px}html[data-design="9"] .hub-main{padding-top:30px}html[data-design="9"] .design-dock{right:20px}html[data-design="9"] .homeland-subnav{padding:15px 25px}html[data-design="9"] .homeland-tools{padding-left:25px!important}}
html[data-design="9"] .modern-hero{grid-template-columns:1.5fr 1fr;min-height:320px;border-bottom:1px solid var(--line);margin-bottom:30px;padding-bottom:30px}html[data-design="9"] .modern-hero h1{font-size:54px}html[data-design="9"] .hero-scene{min-height:300px}html[data-design="9"] .scene-sticker,html[data-design="9"] .hero-meta{display:none}html[data-design="9"] .tool-grid{grid-template-columns:1fr;gap:12px}html[data-design="9"] .tool-card{min-height:130px;display:grid;grid-template-columns:60px 1fr 90px;grid-template-rows:1fr;padding:20px;align-items:center}html[data-design="9"] .card-topline{grid-column:1;grid-row:1}.design-embedded[data-design="9"] .card-topline{grid-column:1}html[data-design="9"] .card-category{display:none}html[data-design="9"] .tool-card-copy{grid-column:2;grid-row:1;max-width:none}html[data-design="9"] .tool-card-art{grid-column:3;grid-row:1}html[data-design="9"] .tool-icon{width:70px;height:70px}html[data-design="9"] .tool-card .arrow{display:none}html[data-design="9"] .rt-dex-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}html[data-design="9"] .rt-creature-card{display:grid;grid-template-columns:110px 1fr;align-items:center}html[data-design="9"] .rt-card-art{height:125px}html[data-design="9"] .rt-card-art img{width:100px;height:100px}html[data-design="9"] .rt-card-copy{padding:16px}html[data-design="9"] .rt-code-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}html[data-design="9"] .rt-toolbar{padding:14px}html[data-design="9"] .rt-event-grid{grid-template-columns:1fr}html[data-design="9"] .rt-event-card{display:grid;grid-template-columns:230px 1fr}html[data-design="9"] .egg-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
/* 10 — Neo Arcade: sharp, typographic and high contrast. */
html[data-design="10"]{--bg:#11120e;--panel:#202119;--raised:#303327;--line:#515639;--text:#f4f4df;--muted:#b3b69b;--accent:#e6fc67;--accent-soft:#e6fc671f;--accent-contrast:#171a09;--mint:#e6fc67;--violet:#c9d7b4;--radius:0px;--heading-font:'Arial Black','Segoe UI',sans-serif;--body-font:Consolas,'Courier New',monospace;--map-bg:#0c0e08}
html[data-design="10"] .hub-header{border-bottom:3px solid var(--accent)}html[data-design="10"] .hub-nav a{border-radius:0}.design-embedded[data-design="10"] .hub-nav a{border-radius:0}html[data-design="10"] .modern-hero{grid-template-columns:1.25fr 1fr;position:relative;border-bottom:3px solid var(--accent);padding-bottom:35px;min-height:500px}html[data-design="10"] .modern-hero h1{font-size:74px;font-weight:900;text-transform:uppercase;letter-spacing:-.07em;transform:skew(-4deg)}html[data-design="10"] .modern-hero p{font-size:13px}html[data-design="10"] .hero-primary{border-radius:0;box-shadow:5px 5px 0 #e6fc6733}html[data-design="10"] .hero-scene{background:repeating-linear-gradient(135deg,transparent,transparent 20px,#e6fc6706 21px,#e6fc6706 23px);min-height:440px}.design-embedded[data-design="10"] .hero-scene{min-height:440px}html[data-design="10"] .scene-sticker{border-radius:0;border:2px solid var(--accent);box-shadow:4px 4px 0 #e6fc6733}html[data-design="10"] .scene-orbit{border-radius:0;transform:rotate(8deg);border:1px solid var(--line)}html[data-design="10"] .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}html[data-design="10"] .tool-card{border:2px solid var(--line)!important;min-height:250px;box-shadow:5px 5px 0 #e6fc6720}html[data-design="10"] .tool-card:nth-child(even){border-color:var(--accent)!important}html[data-design="10"] .tool-card h2{text-transform:uppercase;font-size:22px}html[data-design="10"] .rt-toolbar{border-width:2px!important}html[data-design="10"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px}html[data-design="10"] .rt-creature-card{border-width:2px!important;box-shadow:4px 4px 0 #e6fc6720}html[data-design="10"] .rt-card-art{background:repeating-linear-gradient(135deg,transparent,transparent 15px,#e6fc6708 16px,#e6fc6708 17px)}html[data-design="10"] .rt-tabs a{border-radius:0;text-transform:uppercase;font-size:12px}html[data-design="10"] .rt-element-buttons button{border-radius:0;border-width:2px}html[data-design="10"] .rt-code-grid{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-design="10"] .rt-code-card{border-width:2px!important;border-top-color:var(--accent)!important;padding:25px}html[data-design="10"] .egg-gallery button{border-radius:0;box-shadow:4px 4px 0 #e6fc6720}html[data-design="10"] .community-card{border-width:2px!important}
@media(max-width:1000px){html[data-design="6"] .modern-hero h1,html[data-design="7"] .modern-hero h1,html[data-design="10"] .modern-hero h1{font-size:55px}html[data-design="8"] .modern-hero h1{font-size:61px}html[data-design="6"] .tool-grid,html[data-design="8"] .tool-grid,html[data-design="10"] .tool-grid{grid-template-columns:1fr 1fr}html[data-design="6"] .rt-code-grid,html[data-design="8"] .rt-code-grid,html[data-design="10"] .rt-code-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){html[data-design="6"] .modern-hero,html[data-design="7"] .modern-hero,html[data-design="9"] .modern-hero,html[data-design="10"] .modern-hero{grid-template-columns:1fr;min-height:0}html[data-design="6"] .modern-hero{padding:20px;border-width:4px}html[data-design="6"] .modern-hero h1,html[data-design="7"] .modern-hero h1,html[data-design="8"] .modern-hero h1,html[data-design="9"] .modern-hero h1,html[data-design="10"] .modern-hero h1{font-size:48px}html[data-design="8"] .modern-hero h1 br{display:block}html[data-design="8"] .hero-scene{width:100%;min-height:300px}html[data-design="7"] .hero-scene,html[data-design="10"] .hero-scene{min-height:310px}html[data-design="6"] .tool-card{padding:15px;min-height:225px}html[data-design="6"] .tool-icon{width:65px;height:65px}html[data-design="6"] .tool-card h2{font-size:18px}html[data-design="7"] .tool-grid{grid-template-columns:1fr;gap:18px}html[data-design="7"] .tool-card{min-height:180px}html[data-design="8"] .tool-card{min-height:240px;padding:15px}html[data-design="8"] .tool-card-art{margin:10px auto 15px}html[data-design="8"] .tool-icon{width:70px;height:70px}html[data-design="9"] .tool-card{grid-template-columns:32px 1fr 55px;min-height:120px;padding:15px}html[data-design="9"] .tool-icon{width:52px;height:52px}html[data-design="9"] .rt-dex-grid{grid-template-columns:1fr}html[data-design="9"] .rt-event-card{display:block}html[data-design="9"] .rt-code-grid,html[data-design="7"] .rt-code-grid,html[data-design="6"] .rt-code-grid,html[data-design="8"] .rt-code-grid,html[data-design="10"] .rt-code-grid{grid-template-columns:1fr}html[data-design="7"] .rt-event-grid,html[data-design="8"] .rt-event-grid{grid-template-columns:1fr}html[data-design="10"] .tool-card{min-height:235px;padding:15px}.design-embedded[data-design="10"] .hero-scene{min-height:310px}html[data-design="10"] .tool-card h2{font-size:18px}}


/* ---- experimental/nightfall.css ---- */
/* Selected Nightfall release: planner surfaces share the rest of Aniiland's palette. */
html[data-design="2"] body:has(.homeland-tools) .shell{--bg:#18243a;--panel:#27364e;--raised:#354963;--line:#647996;--text:#f8faff;--muted:#cbd8eb;--mint:#d4bcff;--violet:#e3b4e7;background:var(--bg);color:var(--text)}
html[data-design="2"] body:has(.homeland-tools){--bg:#18243a;--panel:#27364e;--raised:#354963;--line:#647996;--text:#f8faff;--muted:#cbd8eb;--mint:#d4bcff;--violet:#e3b4e7}
html[data-design="2"] .shell :is(.panel,.production-card,.metric,.section-card,.facility-card,.planner-sidebar,.workspace,.content-card){background:var(--panel);border-color:var(--line)}
html[data-design="2"] .shell :is(input,select,textarea){background:#354963;color:var(--text);border-color:var(--line)}
html[data-design="2"] .shell button{border-color:var(--line)}
html[data-design="2"] .homeland-subnav{position:sticky!important;top:0!important;z-index:1100;background:#27364ef5!important;backdrop-filter:blur(18px);box-shadow:0 5px 22px #0005;min-height:62px;gap:6px}
html[data-design="2"] .homeland-subnav :is(#myrv-head-btn,#event-center-btn){position:static!important;display:flex!important;align-items:center;gap:7px;background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;padding:6px 10px!important;margin:0!important;min-height:40px;border-radius:10px!important;font-size:11px!important;box-shadow:none!important;flex:none!important}
.homeland-subnav :is(#myrv-head-btn,#event-center-btn) :is(img,svg){width:28px!important;height:28px!important}.homeland-subnav :is(#myrv-head-btn,#event-center-btn) small{display:none!important}.homeland-subnav #event-center-progress{font-size:10px}
html[data-design="2"] .homeland-tools{position:relative!important;top:auto!important;padding:7px 24px!important;min-height:0!important;background:transparent!important;border:0!important;z-index:auto!important}.homeland-tools:empty{display:none!important}
html[data-design="2"] #order-dock{top:calc(var(--homeland-nav-height,64px) + 10px)!important}
html[data-design="2"] .homeland-subnav .homeland-version{margin-left:auto}
html[data-design="2"] .rt-damage-table img{filter:none!important;opacity:1!important}.rt-damage-table td button{cursor:pointer}.rt-paging{min-height:55px}
.hub-ad{max-width:100%;margin:25px auto;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}.hub-ad>small{font-size:9px;letter-spacing:.12em;color:var(--muted);text-transform:uppercase}.hub-ad-slot{width:min(728px,100%);min-height:90px;border:1px solid var(--line);border-radius:12px;background:#ffffff03;display:grid;place-items:center;color:var(--muted);font-size:11px}.hub-footer{padding-bottom:28px!important}
@media(max-width:700px){html[data-design="2"] .homeland-subnav{padding:7px 10px;gap:4px}.homeland-subnav .homeland-version{order:6}.homeland-subnav :is(#myrv-head-btn,#event-center-btn){font-size:10px!important}.hub-ad-slot{width:min(320px,100%);min-height:100px}html[data-design="2"] #order-dock{top:auto!important;bottom:12px!important}html[data-design="2"] .homeland-tools{padding:6px 12px!important}}
html[data-design="2"] .homeland-subnav :is(#myrv-head-btn,#event-center-btn){width:auto!important;max-width:none!important;flex:0 0 auto!important}html[data-design="2"] .homeland-subnav :is(#myrv-head-btn,#event-center-btn) :is(img,svg){display:block!important}
@media(max-width:700px){html[data-design="2"] .homeland-subnav :is(#myrv-head-btn,#event-center-btn){min-height:33px!important;padding:4px 7px!important}.homeland-subnav :is(#myrv-head-btn,#event-center-btn) :is(img,svg){width:22px!important;height:22px!important}html[data-design="2"] .homeland-subnav{min-height:0}.homeland-subnav .homeland-version{font-size:9px!important}}
html[data-design="2"] .rt-damage-table{background:var(--panel);border-color:var(--line)}html[data-design="2"] .rt-damage-table :is(th,td){border-color:var(--line);background:#354963}html[data-design="2"] .rt-damage-table th{background:var(--panel)}html[data-design="2"] .rt-damage-table td:has(.rt-highlight){background:#b294ff12}html[data-design="2"] .rt-damage-table .rt-selected{outline:2px solid var(--accent)}
/* Dex: stable card anatomy and complete, readable detail sections. */
html[data-design="2"] .rt-dex-grid{grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:18px;align-items:stretch}html[data-design="2"] .rt-creature-card{height:100%;display:flex;flex-direction:column}html[data-design="2"] .rt-card-art{height:185px;width:100%;flex:none;background:radial-gradient(ellipse at 50% 65%,#8c72c128,transparent 70%)}html[data-design="2"] .rt-card-art img{width:154px;height:154px;object-fit:contain;margin:13px 0 0}html[data-design="2"] .rt-card-copy{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1;min-width:0;width:100%}html[data-design="2"] .rt-card-copy h3{min-height:22px;font-size:16px;line-height:1.35;margin:0 0 6px}html[data-design="2"] .rt-card-copy>p{min-height:18px;font-size:11px;line-height:1.5;margin:0 0 11px}html[data-design="2"] .rt-card-copy .rt-chips{min-height:27px;margin:0;gap:5px}.rt-card-meta{font-size:10px;line-height:1.5;color:var(--muted);border-top:1px solid var(--line);margin-top:13px;padding-top:11px}.rt-unlisted{font-style:normal;color:var(--muted)!important;border-style:dashed!important;white-space:normal!important}.rt-number{font-size:9px!important;letter-spacing:.04em}.rt-data-note{font-size:11px;color:var(--muted);line-height:1.8;margin:12px 0}.rt-art-note{font-size:10px;color:var(--muted);line-height:1.7;display:block;margin-top:10px}
html[data-design] .rt-dex-dialog{padding:25px;max-height:90dvh;background:#354963;border-color:#3d4669;border-radius:22px;color:#f8faff}html[data-design] .rt-dex-dialog .rt-modal-head{background:#354963f5;border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:20px;top:-25px;z-index:5}html[data-design] .rt-dex-dialog .rt-modal-head h2{font-size:20px}html[data-design] .rt-dex-dialog .rt-creature-layout{grid-template-columns:300px minmax(0,1fr);gap:25px}html[data-design] .rt-dex-dialog .rt-creature-intro{background:#1c2440;border:1px solid var(--line);padding:20px 16px;top:65px;text-align:center;gap:10px;min-width:0}html[data-design] .rt-dex-dialog .rt-creature-intro>img{width:265px;height:290px;object-fit:contain}html[data-design] .rt-dex-dialog .rt-creature-intro h3{font-size:25px}.rt-creature-summary{font-size:11px!important;color:var(--accent)!important}.rt-detail-section{margin:0 0 25px;padding:0 0 25px;border-bottom:1px solid var(--line)}.rt-detail-section:last-child{border:0;padding:0;margin-bottom:0}.rt-section-label{display:flex;align-items:center;gap:9px;margin-bottom:15px}.rt-section-label>span{font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums}.rt-section-label h3{font-size:15px;margin:0!important}html[data-design] .rt-dex-dialog .rt-form-switch{gap:6px;margin:0 0 15px}html[data-design] .rt-dex-dialog .rt-form-switch button{font-size:10px;min-height:33px;padding:7px 11px;border-radius:8px;line-height:1.5}html[data-design] .rt-dex-dialog button[aria-pressed=true]{background:#38294e;color:#eadbff;border-color:#b995e8}html[data-design] .rt-dex-dialog .rt-appearance-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0}html[data-design] .rt-dex-dialog .rt-appearance-choice{padding:6px;min-height:0;border-radius:10px;gap:4px;display:flex;flex-direction:column;align-items:center}html[data-design] .rt-dex-dialog .rt-appearance-choice img{width:65px;height:65px;object-fit:contain}html[data-design] .rt-dex-dialog .rt-appearance-choice span{font-size:9px;line-height:1.5}html[data-design] .rt-dex-dialog .rt-stats{gap:8px}html[data-design] .rt-dex-dialog .rt-stats>div{background:#1c2440;border:1px solid #647996;padding:12px;border-radius:9px}html[data-design] .rt-dex-dialog .rt-stats strong{font-size:20px;color:#d4bcff}html[data-design] .rt-dex-dialog .rt-stats span{color:var(--muted)}html[data-design] .rt-dex-dialog .rt-stats meter{accent-color:#b995e8}html[data-design] .rt-dex-dialog .rt-skills{grid-template-columns:1fr;gap:12px}.rt-skill-card{background:#1c2440;border:1px solid #647996;border-radius:12px;padding:16px}.rt-skill-card>div{display:flex;align-items:start;justify-content:space-between;gap:14px}.rt-skill-card h4{font-size:14px;margin:0!important;line-height:1.5}.rt-skill-card .rt-chips{justify-content:flex-end;gap:4px}.rt-skill-card .rt-chips span{font-size:9px;padding:3px 6px}.rt-skill-card>p{font-size:12px;line-height:1.8;color:#bac2db;margin:12px 0 0}.rt-skill-card dl{display:flex;gap:15px;flex-wrap:wrap;border-top:1px solid #647996;padding-top:12px;margin:13px 0 0}.rt-skill-card dl>div{display:flex;gap:6px;align-items:center}.rt-skill-card dt{font-size:10px;color:#cbd8eb}.rt-skill-card dd{font-size:11px;color:#e0cbff;margin:0;font-weight:650}.rt-work-traits{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:13px}.rt-work-traits span{border:1px solid #3d4669;border-radius:7px;font-size:10px;color:#c9b4eb;padding:5px 8px}
@media(max-width:750px){html[data-design="2"] .rt-dex-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html[data-design="2"] .rt-card-art{height:145px}html[data-design="2"] .rt-card-art img{width:122px;height:122px;margin-top:9px}html[data-design="2"] .rt-card-copy{padding:10px 12px 12px}html[data-design="2"] .rt-card-copy h3{font-size:14px;min-height:20px}html[data-design="2"] .rt-card-copy>p{font-size:10px;min-height:30px}.rt-card-meta{font-size:9px;min-height:38px}.rt-card-copy .rt-chips span{font-size:9px}html[data-design] .rt-dex-dialog{padding:16px;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important}html[data-design] .rt-dex-dialog .rt-modal-head{top:-16px}html[data-design] .rt-dex-dialog .rt-creature-layout{grid-template-columns:1fr;gap:22px}html[data-design] .rt-dex-dialog .rt-creature-intro{position:static;display:flex;flex-direction:row;text-align:left;padding:12px;gap:13px}html[data-design] .rt-dex-dialog .rt-creature-intro>img{width:125px;height:155px;flex:none}html[data-design] .rt-dex-dialog .rt-creature-intro h3{font-size:21px}html[data-design] .rt-dex-dialog .rt-creature-intro .rt-chips{justify-content:flex-start}html[data-design] .rt-dex-dialog .rt-appearance-grid{grid-template-columns:repeat(4,minmax(0,1fr))}html[data-design] .rt-dex-dialog .rt-appearance-choice img{width:53px;height:53px}.rt-skill-card{padding:13px}.rt-skill-card>div{flex-direction:column;gap:8px}.rt-skill-card .rt-chips{justify-content:flex-start}.rt-skill-card>p{font-size:11px}.rt-detail-section{margin-bottom:20px;padding-bottom:20px}}
html[data-design="2"] body.nightfall-homeland{--blue:#c4a5f3;--mint:#d4bcff;--violet:#e3b4e7}html[data-design="2"] body.nightfall-homeland .segmented button.active{background:#c4a5f3!important;color:#211339!important}html[data-design="2"] body.nightfall-homeland :is(.eyebrow,.sidebar-title){color:#d4bcff!important}html[data-design="2"] body.nightfall-homeland :is(.advanced-dialog,.myrv-dialog,.event-dialog,.order-dialog,.recipe-dialog,dialog){background:#27364e!important;color:#f8faff!important;border-color:#3d4669!important}html[data-design="2"] body.nightfall-homeland dialog::backdrop{background:#070b19cc;backdrop-filter:blur(5px)}
.rt-dex-dialog meter::-webkit-meter-bar{background:#354963;border:0;border-radius:4px}.rt-dex-dialog meter::-webkit-meter-optimum-value{background:#b995e8;border-radius:4px}.rt-dex-dialog meter::-moz-meter-bar{background:#b995e8}
html[data-design="2"] body.nightfall-homeland .shell .planner-sidebar .segmented button.active{background:#c4a5f3!important;color:#211339!important}
.rt-dex-dialog .rt-form-switch:empty,.rt-dex-dialog .rt-appearance-grid:empty{display:none!important}.rt-creature-notes{font-size:10px!important;color:var(--muted)!important;line-height:1.7!important}
.rt-version-previews{margin:30px 0 55px!important}.rt-release-heading{display:flex;gap:20px;align-items:center;justify-content:space-between}.rt-release-heading h2{font-size:30px;letter-spacing:-.04em;margin:10px 0}.rt-release-badge{border:1px solid var(--line);background:var(--accent-soft);color:var(--accent);font-size:10px;padding:9px 13px;border-radius:20px;white-space:nowrap}.rt-version-previews .rt-community-card small{color:var(--accent);font-weight:700}.rt-named-upcoming-heading{margin-top:30px;border-top:1px solid var(--line);padding-top:30px}.rt-named-upcoming-heading h2{font-size:24px;margin:0 0 10px}.rt-named-upcoming-heading p{color:var(--muted);font-size:12px;line-height:1.7}
@media(max-width:650px){.rt-release-heading{align-items:start;flex-direction:column;gap:7px}.rt-release-heading h2{font-size:25px}.rt-release-badge{font-size:9px;padding:7px 10px}}
/* Companion refresh: brighter accents, stronger surface separation, equal tool tiles. */
html[data-design="2"]{--bg:#090f20;--panel:#19233e;--raised:#293858;--line:#4b5c84;--text:#faf8ff;--muted:#bcc8e2;--accent:#d7baff;--accent-soft:#b58aff25}
html[data-design="2"] .hub-header{background:#111a31;border-bottom-color:#4b5c84}
html[data-design="2"] .hub-utilities .hub-support,html[data-design="2"] .hub-account-actions [data-account-community]{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #bfa0ee!important;border-radius:10px!important;padding:9px 13px!important;min-height:36px;background:#4c326a!important;color:#fff0ff!important;text-decoration:none;font-size:12px;font-weight:700;box-shadow:inset 0 1px #ffffff18}
html[data-design="2"] .hub-account-actions [data-account-community]{background:#343f83!important;border-color:#8e9bff!important;color:#f3f4ff!important}
html[data-design="2"] .hub-utilities .hub-support:hover,html[data-design="2"] .hub-account-actions [data-account-community]:hover{filter:brightness(1.2)}
html[data-design="2"] .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
html[data-design="2"] .tool-grid .tool-card{grid-column:auto!important;min-height:350px;height:100%;display:flex;flex-direction:column;background:linear-gradient(150deg,#253451,#141e36)!important;border:1px solid #52648d;overflow:hidden;padding:24px!important}
html[data-design="2"] .tool-grid .tool-card:nth-child(2n){background:linear-gradient(150deg,#352b4e,#171c34)!important}
html[data-design="2"] .tool-grid .tool-card:hover{border-color:var(--accent);box-shadow:0 12px 35px #0005,0 0 25px var(--glow);transform:translateY(-4px)}
html[data-design="2"] .tool-card .card-topline{width:100%;position:relative;z-index:2}.tool-card-copy{margin-top:auto;width:100%}
html[data-design="2"] .tool-card .tool-card-copy h2{font-size:23px;margin:0 0 9px}html[data-design="2"] .tool-card .tool-card-copy p{font-size:12px;line-height:1.65;min-height:40px;margin:0;color:#c8d3e9}
html[data-design="2"] .tool-card .tile-art{position:relative;display:block;width:100%;height:170px;flex:0 0 170px;margin:8px 0 20px;isolation:isolate}
.tile-art img{position:absolute;object-fit:contain;filter:drop-shadow(0 10px 12px #0006)}.tile-orbit{position:absolute;width:160px;height:130px;left:calc(50% - 80px);top:25px;background:radial-gradient(ellipse,var(--glow),transparent 70%);border:1px solid #ffffff14;border-radius:50%;transform:rotate(-15deg)}
.tile-art .tile-main{width:145px;height:145px;left:calc(50% - 72px);top:8px}.tile-art .tile-companion{width:95px;height:120px;left:calc(50% + 28px);top:50px;transform:rotate(10deg)}
.tile-pet{width:130px;height:155px;top:4px}.tile-pet-0{left:calc(50% - 135px);transform:rotate(-12deg)}.tile-pet-1{left:calc(50% - 65px);z-index:2}.tile-pet-2{left:calc(50% + 15px);transform:rotate(12deg)}
.tile-caption{position:absolute;bottom:-3px;left:0;width:100%;text-align:center;font-size:9px;letter-spacing:.15em;color:#ffdf9e;font-weight:800}
.tile-element{width:55px;height:55px;top:10px;left:calc(50% - 28px)}.tile-element-0{transform:translate(-70px,5px)}.tile-element-1{transform:translate(0,-5px)}.tile-element-2{transform:translate(70px,5px)}.tile-element-3{transform:translate(-70px,80px)}.tile-element-4{transform:translate(0,90px)}.tile-element-5{transform:translate(70px,80px)}
.tile-art .tile-event-scene{inset:6px 0;width:100%;height:160px;object-fit:cover;border-radius:13px;opacity:.7;filter:none}.tile-calendar{position:absolute;inset:24px 30px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#101a34a8;border:1px solid #b7d9ff66;border-radius:12px;box-shadow:0 5px 20px #0005;backdrop-filter:blur(2px)}.tile-calendar small{font-size:8px;letter-spacing:.1em;color:#daf0ff}.tile-calendar b{font-size:25px;letter-spacing:.1em;color:#fff}.tile-calendar>span{color:#e6c8ff}
.tile-art .tile-reward{width:85px;height:100px;top:62px}.tile-reward-left{left:calc(50% - 130px);transform:rotate(-15deg)}.tile-reward-right{left:calc(50% + 45px);transform:rotate(15deg)}
@media(min-width:1025px){html[data-design="2"] body.nightfall-homeland .shell>.planner-sidebar{top:calc(var(--homeland-nav-height,62px) + 12px)!important;max-height:calc(100dvh - var(--homeland-nav-height,62px) - 24px)!important}}
.homeland-import-notice{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px auto;padding:14px 18px;max-width:1240px;border:1px solid #87d7ca;background:#163b40;color:#dcfff8;border-radius:12px;font-size:13px}.homeland-import-notice button{border:0;background:none;color:inherit;font-size:22px;cursor:pointer}
@media(max-width:1000px){html[data-design="2"] .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){html[data-design="2"] .tool-grid{grid-template-columns:1fr}html[data-design="2"] .tool-grid .tool-card{min-height:340px}.homeland-import-notice{margin:12px;font-size:12px}}


/* ---- experimental/controls-colors.css ---- */
/* Shared button anatomy. Cards and map markers retain their dedicated layouts. */
html[data-design="2"]{--button-height:40px;--button-radius:10px}
html[data-design="2"] :is(.hub-utilities .hub-support,.hub-account-actions button,.hub-account-actions a){box-sizing:border-box!important;height:var(--button-height)!important;min-height:var(--button-height)!important;max-height:var(--button-height)!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;border:1px solid var(--line)!important;border-radius:var(--button-radius)!important;background:var(--raised)!important;color:var(--text)!important;font-family:inherit!important;font-size:12px!important;font-weight:650!important;line-height:1.2!important;text-decoration:none!important;white-space:nowrap;box-shadow:none!important}
html[data-design="2"] .hub-utilities{align-items:center!important;gap:9px!important}.hub-account-actions{align-items:center!important;gap:9px!important}
html[data-design="2"] .hub-account-actions .account-register{background:var(--accent)!important;color:var(--accent-contrast)!important;border-color:var(--accent)!important}
html[data-design="2"] :is(.rt-toolbar button,.rt-paging button,.rt-tabs a,.rt-form-switch button,.rt-copy,.egg-tiers button,.egg-clear,.egg-controls button,.event-toolbar button,.event-editor-link,.color-options button,.demo-actions button){box-sizing:border-box;min-height:var(--button-height);padding:9px 14px;border:1px solid var(--line);border-radius:var(--button-radius);background:var(--raised);color:var(--text);font:inherit;font-size:12px;font-weight:650;line-height:1.4;cursor:pointer;text-decoration:none}
html[data-design="2"] :is(.rt-tabs a[aria-current],.rt-form-switch button[aria-pressed=true],.egg-tiers button[aria-pressed=true],.color-options button[aria-pressed=true]){background:var(--accent)!important;color:var(--accent-contrast)!important;border-color:var(--accent)!important}
html[data-design="2"] :is(.hub-utilities a,.hub-account-actions button,.rt-toolbar button,.rt-paging button,.rt-tabs a,.egg-tiers button,.color-options button):hover{filter:brightness(1.15)}
html[data-design="2"] :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--accent)!important;outline-offset:3px}
html[data-design="2"] button:disabled{opacity:.5;cursor:not-allowed;filter:none}
.color-comparison{max-width:1344px;margin:25px auto 5px;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text)}.color-comparison h2{font-size:26px;margin:9px 0}.color-comparison p{font-size:12px;color:var(--muted);line-height:1.7}.color-options{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:18px}.color-options button{display:flex;align-items:center;gap:8px;text-align:left}.color-swatches{display:flex}.color-swatches i{display:block;width:14px;height:21px;border:1px solid #ffffff55}.color-swatches i:first-child{border-radius:5px 0 0 5px}.color-swatches i:last-child{border-radius:0 5px 5px 0}
html[data-design="2"] body{background:var(--bg)!important;color:var(--text)!important}
html[data-design="2"] :is(.hub-header,.hub-footer,.rt-creature-card,.rt-damage-table,.rt-toolbar,.rt-dialog,.rt-creature-intro,.rt-detail-section,.rt-skill-card,.rt-stats>div){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-design="2"] :is(.rt-card-art,.rt-card-copy,.rt-modal-head){background:transparent!important}
html[data-design="2"] :is(input,select,.rt-chips span,.hub-nav a[aria-current],.rt-number,.rt-appearance-choice){background:var(--raised)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-design="2"] :is(.rt-lead,.rt-card-copy>p,.rt-card-meta,.rt-results,.hub-brand small,.hub-footer,.rt-data-note,.rt-art-note){color:var(--muted)!important}
html[data-design="2"] :is(h1,h2,h3,h4,.hub-brand,.hub-nav a){color:var(--text)!important}
html[data-design="2"] .rt-card-art{background:radial-gradient(ellipse,var(--accent-soft),transparent 70%)!important}
html[data-design="2"] .rt-card-meta{border-color:var(--line)!important}
@media(max-width:750px){.color-comparison{margin:15px 12px;padding:17px}.color-options{grid-template-columns:repeat(2,minmax(0,1fr))}.color-options button{font-size:11px!important;padding:9px!important}.hub-utilities{flex-wrap:wrap}}
.demo-dialog{width:min(860px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:25px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;font-family:inherit}.demo-dialog::backdrop{background:#000a}.demo-heading{display:flex;justify-content:space-between;align-items:center}.demo-heading button{font:inherit;color:var(--text);background:var(--raised);border:1px solid var(--line);border-radius:10px;width:40px;height:40px}.demo-badge{font-size:11px;color:var(--accent)}.demo-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.demo-stats div{padding:15px;background:var(--raised);border:1px solid var(--line);border-radius:12px}.demo-stats strong{font-size:25px;display:block}.demo-stats span,.demo-dialog p{font-size:12px;line-height:1.7;color:var(--muted)}.demo-facilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.demo-facilities>div{padding:10px;border:1px solid var(--line);border-radius:9px;font-size:12px}.demo-facilities small{display:block;color:var(--muted);margin-top:4px}.demo-unavailable{padding:16px;border:1px dashed var(--line);border-radius:12px}.demo-actions{display:flex;gap:10px;margin:15px 0}.demo-section{margin-top:26px}

html[data-design="2"] :is(.setup-mode-main button,.segmented button,.goal-btn,.planner-sidebar>.primary,.mr-actions button,.mr-acct button,.account-provider-list a,.account-provider-list button){min-height:40px!important;box-sizing:border-box!important;border-radius:10px!important;font-family:inherit!important;font-size:12px!important;line-height:1.4!important;font-weight:650!important}
html[data-design="2"] :is(.account-dialog,.account-provider-list button){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}html[data-design="2"] .account-provider-list a{background:var(--raised)!important;color:var(--text)!important;border-color:var(--line)!important}

/* Chosen palette: 01 Moonstone. Applies to the entire site. */
html[data-design="2"]{--bg:#080d1b;--panel:#18233b;--raised:#253653;--line:#657da8;--text:#f5f7ff;--muted:#c3d2ed;--accent:#d2b4ff;--accent-soft:#d2b4ff24;--accent-contrast:#24143c;--blue:#d2b4ff;--mint:#d2b4ff}
html[data-design="2"] .tool-grid .tool-card{background:linear-gradient(145deg,#253653,#18233b)!important;border-color:var(--line)}
.demo-caught-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}.demo-caught-toolbar input{min-height:40px;flex:1;min-width:150px;background:var(--raised);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:9px 12px;font:inherit}.demo-caught-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.demo-caught-card{padding:12px;background:var(--raised);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;font-size:12px;min-width:0}.demo-caught-card img{height:80px;width:80px;object-fit:contain}.demo-caught-card small{color:var(--muted);font-size:10px;line-height:1.6}.demo-caught-stats{display:flex;flex-wrap:wrap;gap:8px}.demo-caught-stats span{padding:8px 10px;background:var(--raised);border-radius:8px;border:1px solid var(--line);font-size:12px}.demo-home-pets{margin-top:24px}.rt-caught-badge{font-size:10px;line-height:1.5;color:#dcfff2;border:1px solid #75c5a4;background:#173c32;border-radius:6px;padding:3px 7px;margin-top:9px;align-self:flex-start}
html[data-design="2"] body.nightfall-homeland{--blue:#d2b4ff;--mint:#d2b4ff;--violet:#d2b4ff}
.demo-heading{position:sticky;top:-25px;z-index:4;background:var(--panel);padding:14px 0;border-bottom:1px solid var(--line)}
html[data-design="2"] body.nightfall-homeland{background:#080d1b!important;color:#f5f7ff!important}
.demo-section{scroll-margin-top:140px}


/* ---- experimental/mode-collection.css ---- */
/* Readable Moonstone surfaces; Homeland uses the same Moonstone palette. */
html[data-design="2"]{--bg:#202e46;--panel:#2b3c58;--raised:#354c6b;--line:#8198b9;--text:#f8faff;--muted:#d5e0f1;--accent:#d2b4ff;--accent-contrast:#24143c}
html[data-design="2"] body:not(.nightfall-homeland){background:var(--bg)!important;color:var(--text)!important}

html[data-design="2"] :is(.hub-main,.reference-tools,.egg-tool,.hub-hero){background-color:transparent!important}
html[data-design="2"] :is(.hub-header,.hub-footer,.rt-creature-card,.rt-toolbar,.rt-dialog,.rt-modal-head,.rt-creature-intro,.rt-skill-card,.rt-stats>div,.demo-dialog,.demo-heading,.egg-finder,.egg-tier-info,.egg-card,.egg-viewer,.event-card){background-color:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-design="2"] body.nightfall-homeland .shell :is(.setup-mode-switch button.active,.segmented button.active,.goal-btn.active,.primary),html[data-design="2"] :is(button[aria-pressed=true],.rt-tabs a[aria-current],.hero-primary,.account-register){background:var(--accent)!important;color:var(--accent-contrast)!important;border-color:var(--accent)!important}
html[data-design="2"] body.nightfall-homeland .shell .setup-mode-switch button.active *{color:var(--accent-contrast)!important}
.rt-creature-wrap{display:flex;flex-direction:column;border:3px solid transparent;border-radius:22px;min-width:0;overflow:hidden;background:var(--panel)}
html[data-design="2"] .rt-creature-wrap .rt-creature-card{flex:1;border:0!important;border-radius:18px 18px 0 0!important;width:100%}
html[data-design="2"] .rt-creature-wrap.rt-is-caught{border-color:#51e09a!important;box-shadow:0 0 0 1px #133c2c}
.rt-caught-toggle,.rt-caught-form-toggle,.rt-collection-controls button{min-height:40px;border:1px solid var(--line);border-radius:9px;background:var(--raised);color:var(--text);font:650 12px/1.4 'Segoe UI',sans-serif;cursor:pointer;padding:9px 12px}
.rt-caught-toggle{border-radius:0 0 16px 16px;border-width:1px 0 0;width:100%}.rt-caught-form-toggle{margin-bottom:14px}
.rt-collection-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0}.rt-collection-controls p{font-size:12px;line-height:1.6;color:var(--muted);flex:1;min-width:220px}.rt-collection-controls>span{font-size:12px;color:var(--muted)}
html[data-design="2"][data-mode="light"]{--bg:#e4ebf5;--panel:#f9fbff;--raised:#e6edf7;--line:#7a8da9;--text:#17243b;--muted:#40536f;--accent:#65418c;--accent-contrast:#fff;--accent-soft:#65418c18;--blue:#65418c;--mint:#65418c;--violet:#65418c}
html[data-design="2"][data-mode="light"] body.nightfall-homeland{--panel:#f9fbff;--raised:#e6edf7;--line:#7a8da9;--text:#17243b;--muted:#40536f;--blue:#65418c;--mint:#65418c;--violet:#65418c;background:#e4ebf5!important;color:#17243b!important}
html[data-design="2"][data-mode="light"] :is(.hub-header,.hub-footer,.homeland-subnav,.rt-dialog,.rt-modal-head,.rt-creature-intro,.rt-skill-card,.rt-stats>div,.rt-community-card,.demo-dialog,.demo-heading,.egg-card,.egg-viewer,.egg-finder,.egg-tier-info,.ev-panel,.ev-card,.event-card,.event-toolbar,.rt-damage-table th,.rt-damage-table td){background-color:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-design="2"][data-mode="light"] :is(.tool-grid .tool-card,.hero-scene,.rt-appearance-choice){background:var(--panel)!important;color:var(--text)!important}
html[data-design="2"][data-mode="light"] :is(h1,h2,h3,h4,.hub-brand,.hub-nav a,.hub-kicker,.rt-eyebrow,.egg-intro,.rt-card-copy>p,.rt-card-meta,.rt-lead,.hub-hero p,.tool-card .tool-card-copy p,.hub-section-head,.demo-dialog p,.rt-skill-card>p){color:var(--text)!important}
html[data-design="2"][data-mode="light"] :is(input,select,textarea,.rt-chips span,.demo-caught-card,.demo-stats>div,.demo-caught-stats span){background:var(--raised)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-design="2"][data-mode="light"] .rt-caught-badge{background:#d6f4e2;color:#134a2d;border-color:#26784c}
html[data-design="2"][data-mode="light"] .rt-creature-wrap.rt-is-caught{border-color:#16864c!important}
@media(max-width:750px){.rt-collection-controls{gap:9px}.rt-caught-toggle{font-size:11px;padding:8px}}
.demo-caught-card{border:3px solid #51e09a}html[data-design="2"][data-mode="light"] .demo-caught-card{border-color:#16864c!important}
html[data-design="2"][data-mode="light"] body.nightfall-homeland :is(main#content,.shell,.production-card,.metric,.section-card,.facility-card,.workspace,.content-card,.rv-upgrade-panel){background-color:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-design="2"][data-mode="light"] body.nightfall-homeland :is(h1,h2,h3,h4,strong,.metric-value,.stat-value,.eyebrow,.sidebar-title,select){color:var(--text)!important}
/* Legacy Homeland defines palette variables on inner containers too. */
html[data-design="2"][data-mode="light"] body.nightfall-homeland,html[data-design="2"][data-mode="light"] body.nightfall-homeland *{--bg:#e4ebf5!important;--panel:#f9fbff!important;--raised:#e6edf7!important;--line:#7a8da9!important;--text:#17243b!important;--muted:#40536f!important;--blue:#65418c!important;--mint:#65418c!important;--violet:#65418c!important;--accent:#65418c!important;--accent-contrast:#fff!important}
/* Override legacy selected-control rules, including the planner's ID-scoped rules. */
html[data-design="2"] body.nightfall-homeland.nightfall-homeland .shell .planner-sidebar :is(.setup-mode-switch button.active,.segmented button.active,.goal-btn.active,#optimize){color:var(--accent-contrast)!important;background:var(--accent)!important;border-color:var(--accent)!important}
html[data-design="2"] body.nightfall-homeland.nightfall-homeland .shell .planner-sidebar :is(.setup-mode-switch button.active,.segmented button.active,.goal-btn.active,#optimize) *{color:inherit!important}
html[data-design="2"] :is(.rt-code-card,.rt-panel,.ec-toolbar,.ec-event-card,.ec-dialog,.ec-modal-head,.ec-modal-body,.et-day-detail,.et-everyday){background-color:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-design="2"][data-mode="light"] :is(.et-panel,.et-axis,.et-axis-label,.et-group,.events-v4 button.et-event-label,.events-v4 .et-actions button,.et-everyday-list button,.ec-event-copy,.rt-code-card,.rt-panel,.rt-notice,.egg-spawn-summary,.egg-legend){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-design="2"][data-mode="light"] :is(.et-key,.et-axis small,.et-axis button,.et-everyday-list small,.ec-event-copy p,.ec-event-copy small,.ec-overline,.ec-tags,.ec-note,.rt-code-card p,.rt-rewards,.rt-code-card code,.egg-legend,.egg-finder p,.egg-tier-info){color:var(--muted)!important}
html[data-design="2"][data-mode="light"] .et-canvas{background-color:#edf2fa!important}

/* Homeland uses the same current Moonstone surfaces as the hub and tools. */
html[data-design="2"][data-mode="dark"] body.nightfall-homeland,html[data-design="2"][data-mode="dark"] body.nightfall-homeland *{--bg:#192739!important;--panel:#223247!important;--raised:#2c4057!important;--line:#58738d!important;--text:#f3f7fd!important;--muted:#b9cce0!important;--blue:#8acaff!important;--mint:#69ebc4!important;--violet:#caa8f1!important;--accent:#caa8f1!important;--accent-contrast:#281738!important}
html[data-design="2"][data-mode="dark"] body.nightfall-homeland{background:#192739!important;color:#f3f7fd!important}
html[data-design="2"][data-mode="dark"] body.nightfall-homeland :is(.homeland-subnav,.homeland-tools){background:#223247!important;border-color:#58738d!important}
/* Current mode is highlighted inside one diagonal sun / moon control. */
html[data-design="2"] .hub-account-actions [data-mode-toggle]{position:relative!important;width:72px!important;min-width:72px!important;padding:0!important;overflow:hidden;background:var(--panel)!important;isolation:isolate}
.mode-half{position:absolute;inset:0;display:block;background:var(--raised);color:var(--muted)}.mode-sun{clip-path:polygon(0 0,100% 0,0 100%)}.mode-moon{clip-path:polygon(100% 0,100% 100%,0 100%)}.mode-half.is-current{background:var(--accent);color:var(--accent-contrast)}.mode-half>svg{position:absolute;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mode-sun>svg{left:10px;top:3px}.mode-moon>svg{right:10px;bottom:3px}.mode-diagonal{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:var(--line);stroke-width:1;pointer-events:none}
.demo-heading{align-items:flex-start;gap:12px}.demo-heading h2{margin:9px 0 12px}.demo-identity{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:12px;line-height:1.7}.demo-identity span{color:var(--muted)}.demo-identity b{color:var(--text);margin-left:5px}.demo-context-tabs{margin-bottom:0}.demo-section[hidden]{display:none!important}.demo-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.demo-home-pet{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--raised);font-size:12px}.demo-home-pet img{width:58px;height:58px;object-fit:contain;flex:none}.demo-home-pet small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:4px}.demo-facility{display:flex;align-items:center;gap:12px}.demo-facility>img{width:48px;height:48px;object-fit:contain;flex:none}
html[data-design="2"] body.nightfall-homeland .planner-sidebar>#guide-open{position:relative!important;inset:auto!important;display:flex!important;width:100%!important;justify-content:center!important;align-items:center;gap:8px;margin:0 0 20px!important;min-height:40px!important;border-radius:10px!important;background:var(--raised)!important;border:1px solid var(--line)!important;color:var(--text)!important;font:650 12px/1.4 'Segoe UI',sans-serif!important;box-shadow:none!important}
@media(max-width:750px){.demo-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-home-pet{gap:5px;padding:7px;font-size:11px}.demo-home-pet img{width:42px;height:42px}.demo-facilities{grid-template-columns:1fr}.demo-identity{font-size:11px;gap:5px 10px}}
@media(max-width:1024px){html[data-design="2"] body.nightfall-homeland .planner-sidebar>#guide-open{min-height:34px!important;margin:0!important;border-radius:0!important;padding:4px 10px!important;font-size:11px!important}}
html[data-design="2"] body.nightfall-homeland .planner-sidebar>#guide-open>span{display:inline!important}


/* ---- experimental/readability-linking.css ---- */
/* Readable body copy and controls, including compact screens. */
html[data-design="2"] body{font-size:16px;line-height:1.6}
html[data-design="2"] :is(.rt-lead,.egg-intro p,.egg-finder p,.ec-event-copy p,.rt-panel,.rt-code-card p,.demo-dialog p){font-size:16px!important;line-height:1.65!important}
html[data-design="2"] :is(.rt-card-meta,.rt-card-copy>p,.rt-data-note,.rt-art-note,.rt-results,.demo-caught-card small,.demo-home-pet small,.demo-facilities small,.rt-code-card .rt-badge,.egg-card small,.egg-map-info,.egg-footnote,.ec-note){font-size:14px!important;line-height:1.55!important}
html[data-design="2"] :is(.hub-nav a,.hub-footer,.rt-toolbar label,.rt-tabs a,.rt-toolbar button,.rt-paging button,.rt-copy,.rt-caught-toggle,.rt-caught-form-toggle,.demo-context-tabs button,.rt-collection-controls button,.egg-controls label,.ec-toolbar label){font-size:15px!important;line-height:1.5!important}
html[data-design="2"] :is(.rt-toolbar input,.rt-toolbar select,.ec-toolbar input,.ec-toolbar select,.demo-caught-toolbar input,.profile-link-dialog input){font-size:16px!important;min-height:44px!important}
html[data-design="2"] :is(.rt-creature-card h3,.demo-home-pet b,.demo-caught-card b){font-size:16px!important;line-height:1.4!important}
html[data-design="2"] .rt-chips span{font-size:13px!important}
html[data-design="2"] .hub-account-actions :is(button,a),html[data-design="2"] .hub-utilities .hub-support{font-size:14px!important;min-height:44px!important;height:44px!important;max-height:none!important}
html[data-design="2"] .hub-account-actions [data-mode-toggle]{width:78px!important;min-width:78px!important}
html[data-design="2"] body.nightfall-homeland .planner-sidebar :is(label,summary,.hint,.goal-shared-note,button,select){font-size:14px!important;line-height:1.5!important}
html[data-design="2"] body.nightfall-homeland .shell .setup-mode-switch button{min-height:44px!important}
html[data-design="2"] :is(.et-key,.et-event-label,.et-banner-dates,.et-axis button,.ec-event-copy small){font-size:12px!important}
.egg-map-stage{transition:none!important}.egg-map-port{user-select:none;touch-action:none;overscroll-behavior:contain}
@media(max-width:750px){html[data-design="2"] :is(.rt-card-copy h3,.rt-creature-card h3){font-size:17px!important}html[data-design="2"] .rt-card-copy>p{min-height:42px}html[data-design="2"] .rt-card-meta{min-height:44px}html[data-design="2"] .hub-nav{gap:7px 10px!important}html[data-design="2"] .hub-nav a{padding:8px 5px!important;font-size:14px!important}html[data-design="2"] :is(.rt-tabs a,.rt-caught-toggle,.egg-tiers button,.demo-context-tabs button){min-height:44px!important;font-size:14px!important}.demo-home-grid{grid-template-columns:1fr!important}.demo-caught-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.demo-heading{padding:10px 0}.demo-identity{font-size:13px!important}.rt-dex-dialog .rt-appearance-choice span{font-size:12px!important}}
.profile-link-dialog{width:min(620px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:25px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);font:16px/1.6 'Segoe UI',system-ui,sans-serif}.profile-link-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.profile-link-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.profile-link-heading h2{font-size:26px;margin:8px 0}.profile-link-heading small{font-size:12px;letter-spacing:.05em;color:var(--muted)}.profile-link-dialog button,.profile-link-invite button{font:650 15px/1.5 inherit;font-family:inherit;font-size:15px;min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--text);cursor:pointer}.profile-link-dialog [data-close]{width:44px;flex:none}.profile-link-dialog [data-verify]{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}.profile-link-dialog button:disabled{opacity:.5;cursor:not-allowed}.profile-link-code{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px;border:2px solid var(--accent);border-radius:12px;background:var(--raised)}.profile-link-code strong{font:750 30px/1.2 monospace;letter-spacing:.12em;color:var(--text);user-select:all}.profile-link-dialog label{display:grid;gap:7px;font-weight:650}.profile-link-dialog input{background:var(--raised);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:11px;width:100%;box-sizing:border-box}.profile-link-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.profile-link-note{font-size:14px;color:var(--muted);line-height:1.55}.profile-link-invite{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--raised);margin:16px 0}.profile-link-invite h3{margin:0 0 8px}.profile-link-invite p{margin:0 0 12px}.profile-link-invite small{display:block;font-size:13px;line-height:1.5;color:var(--muted);margin-top:12px}
html[data-design="2"] .hub-utilities>#language-trigger{position:relative!important;inset:auto!important;align-self:center!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:44px!important;padding:7px 11px!important;margin:0!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--raised)!important;color:var(--text)!important;font:650 14px/1.4 'Segoe UI',sans-serif!important;box-shadow:none!important}.hub-utilities>#language-trigger img{width:28px!important;height:20px!important;object-fit:cover}.hub-utilities{flex-wrap:wrap!important}


/* ---- experimental/revision16.css ---- */
/* Semantic controls and map colors: these must outrank the legacy theme conversion. */
html:is(#r16,html):is(#priority,html):is(#controls,html) body .mr-form{align-items:end!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .mr-form :is(input,select,button){min-height:46px!important;height:46px!important;box-sizing:border-box!important;margin-bottom:0!important;font-size:14px!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body :is(.roster-actions,.event-v2-controls){align-items:center!important;gap:10px!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .roster-actions>:is(button,label),html:is(#r16,html):is(#priority,html):is(#controls,html) body .event-v2-controls>:is(button,label,.event-reserved-farms){box-sizing:border-box!important;min-height:48px!important;height:auto!important;padding:10px 14px!important;font:650 14px/1.4 'Segoe UI',sans-serif!important;display:flex!important;align-items:center!important;border-radius:10px!important;gap:8px!important;margin:0!important;white-space:normal!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .event-v2-controls>.inline-help-btn{width:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;height:44px!important;padding:0!important;justify-content:center!important;position:static!important;flex:0 0 44px!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body :is(.plan-stale-note,.plan-stale-note *,.stale-plan-notice,.stale-plan-notice *){color:var(--text)!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .order-fab{top:calc(var(--planner-header-height,150px) + 10px)!important;z-index:60!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .order-panel{top:calc(var(--planner-header-height,150px) + 66px)!important;max-height:calc(100dvh - var(--planner-header-height,150px) - 86px)!important;z-index:61!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .plot-picker button.active{background:#174c39!important;color:#ffffff!important;border:3px solid #59e2a3!important;box-shadow:inset 0 0 0 1px #102e24!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .plot-picker button.active *{color:#ffffff!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .plot-picker button.active b::before{content:'✓ ';color:#8effbd!important}
html[data-mode=light]:is(#r16,html):is(#priority,html):is(#controls,html) body .plot-picker button.active{background:#dbf5e6!important;color:#123e2d!important;border-color:#23704e!important}
html[data-mode=light]:is(#r16,html):is(#priority,html):is(#controls,html) body .plot-picker button.active *{color:#123e2d!important}
html[data-mode=light]:is(#r16,html):is(#priority,html):is(#controls,html) body .plot-picker button.active b::before{color:#23704e!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .placed{background:var(--block-color)!important;border:2px solid var(--block-color)!important;box-shadow:0 0 0 1px #122235,0 2px 5px #0008!important;opacity:1!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .layout-legend-row{border-left:5px solid var(--legend-color,var(--line))!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .layout-legend-icon{border:2px solid var(--legend-color,var(--line))!important;background:color-mix(in srgb,var(--legend-color,var(--panel)) 35%,var(--panel))!important;padding:2px!important;border-radius:6px!important;box-sizing:content-box!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .climate-preview-facility{background:color-mix(in srgb,var(--crop-color) 50%,#18283c)!important;border:2px solid var(--crop-color)!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .climate-preview-range{border:2px dashed var(--range-color)!important;background:color-mix(in srgb,var(--range-color) 22%,transparent)!important;box-shadow:inset 0 0 0 1px #152335,0 0 0 1px #152335!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body :is(.power-range,.power-preview-range){border:3px dashed #ffdb58!important;background:#e8ba282b!important;box-shadow:inset 0 0 0 1px #3d310b,0 0 0 1px #3d310b!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .climate-range{border-width:3px!important;border-style:dashed!important;box-shadow:0 0 0 1px #152335,inset 0 0 0 1px #152335!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .climate-range.heat-furnace{border-color:#ff8856!important;background:#ff885638!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .climate-range.cooling-unit{border-color:#62caff!important;background:#62caff38!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .climate-range.sunlamp{border-color:#ffec86!important;background:#ffec8638!important}
.egg-marker .egg-marker-rate{position:absolute;top:100%;left:50%;transform:translateX(-50%);font:750 12px/1.3 'Segoe UI',sans-serif;background:#14243b;color:#fff;border:1px solid #a8c0e2;border-radius:4px;padding:2px 4px;white-space:nowrap;pointer-events:none}
.egg-marker .egg-key-nest{position:absolute;width:16px;height:16px;right:-8px;top:-7px;filter:drop-shadow(0 1px 2px #000)}
.community-code-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.community-code-fields label{display:grid;gap:6px}
html[data-design="2"] .hub-utilities>#language-trigger{height:44px!important;min-width:58px!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body :is(.recalc-note,.recalc-note *){color:var(--text)!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .recalc-note{border-left:4px solid var(--accent)!important;background:var(--raised)!important}
html[data-design="2"] input::placeholder,html[data-design="2"] textarea::placeholder{color:var(--muted)!important;opacity:1!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .order-dock{top:calc(var(--planner-header-height,150px) + 10px)!important;z-index:60!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .event-v2-controls{align-items:stretch!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .event-v2-controls>:is(.event-activate-btn,label,.event-reserved-farms){min-height:64px!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .event-v2-controls>.inline-help-btn{align-self:center!important;order:5!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .order-dock{top:var(--orders-top,calc(var(--planner-header-height,150px) + 10px))!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .order-panel{top:calc(var(--orders-top,150px) + 56px)!important;max-height:calc(100dvh - var(--orders-top,150px) - 76px)!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body :is(.community-form,.community-preview){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .community-form :is(input:not([type=checkbox]),select){min-height:46px!important;font-size:16px!important;background:var(--raised)!important;color:var(--text)!important;box-sizing:border-box}
html:is(#r16,html):is(#priority,html):is(#controls,html) body .mr-form>:is(label,button){margin:0!important}

/* Coverage sits beneath facilities, including ranges rendered later in the DOM. */
html body .layout-canvas :is(.power-range,.climate-range){z-index:2!important}


/* ---- experimental/revision17.css ---- */
html[data-design="2"]{--tag-craft-bg:#43345e;--tag-craft-ink:#e5d5ff;--tag-sale-bg:#173f35;--tag-sale-ink:#9eefd0;--tag-upgrade-bg:#253f5b;--tag-upgrade-ink:#c6e5ff;--tag-important-bg:#443b29;--tag-important-ink:#ffdd99;--job-surface:#203049;--section-rule:#6d87a8;--role-ink-mix:#ffffff;--heart-ink:#ffc0dc}
html[data-design="2"][data-mode="light"]{--tag-craft-bg:#efe4fa;--tag-craft-ink:#563175;--tag-sale-bg:#dff4e8;--tag-sale-ink:#155335;--tag-upgrade-bg:#dfeefa;--tag-upgrade-ink:#164b71;--tag-important-bg:#fff0d0;--tag-important-ink:#71500e;--job-surface:#edf3fb;--section-rule:#93a5bc;--role-ink-mix:#000000;--heart-ink:#8e365d}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .rt-creature-wrap{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding:0!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .rt-creature-wrap>.rt-creature-card{height:auto!important;max-height:none!important;min-height:0!important;flex:1 0 auto!important;margin:0!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .rt-creature-wrap>.rt-caught-toggle{display:block!important;box-sizing:border-box!important;flex:0 0 auto!important;height:auto!important;min-height:48px!important;max-height:none!important;margin:0!important;width:100%!important;padding:12px 10px!important;font:650 14px/1.5 'Segoe UI',sans-serif!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;white-space:normal!important;overflow:visible!important}
.rt-damage-examples{margin:32px 0}.rt-damage-examples>p{font-size:15px;color:var(--muted)}.rt-damage-example-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.rt-damage-example-grid a{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);text-decoration:none;text-align:center}.rt-damage-example-grid img{width:100%;height:150px;object-fit:contain}.rt-damage-example-grid span{color:var(--muted);font-size:14px}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .et-everyday{border:1px solid var(--line)!important;border-radius:16px!important;background:var(--panel)!important;margin:30px 0!important;overflow:hidden}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .et-everyday>summary{display:flex!important;align-items:center!important;gap:12px!important;padding:18px 20px!important;font-size:16px!important;font-weight:650!important;line-height:1.5!important;cursor:pointer;color:var(--text)!important;background:var(--panel)!important;list-style:none!important;min-height:64px;box-sizing:border-box}
.et-everyday>summary::-webkit-details-marker{display:none}.et-everyday>summary::before{content:'';display:block;width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s;margin-right:6px}.et-everyday[open]>summary::before{transform:rotate(225deg)}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .et-everyday>summary>span{margin-left:auto!important;display:inline-grid;place-items:center;min-width:32px;height:28px;border-radius:20px;background:var(--accent)!important;color:var(--accent-contrast)!important;font-size:14px!important;font-weight:750!important;padding:0 7px;box-sizing:border-box}
.et-everyday[open]>summary{border-bottom:1px solid var(--line)}.et-everyday-list{padding:16px}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .product-row{padding-block:22px!important;border-bottom:1px solid var(--section-rule)!important;margin:0!important;gap:16px!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .product-row:last-child{border-bottom:0!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body :is(.production-card>h3,.flow-card>h3){border-bottom:1px solid var(--section-rule)!important;padding-bottom:16px!important;margin-bottom:0!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .product-row .qty{color:var(--tag-sale-ink)!important;font-weight:650!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .production-use-tag{display:inline-flex!important;align-items:center;flex-wrap:wrap;gap:4px;padding:4px 10px!important;border-radius:20px!important;line-height:1.45!important;border:1px solid currentColor!important;margin-block:7px!important;font-size:13px!important;font-weight:650!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .production-use-tag.recipe-use{background:var(--tag-craft-bg)!important;color:var(--tag-craft-ink)!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .production-use-tag.sell-use{background:var(--tag-sale-bg)!important;color:var(--tag-sale-ink)!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .production-use-tag.upgrade-use{background:var(--tag-upgrade-bg)!important;color:var(--tag-upgrade-ink)!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .production-use-tag *{color:inherit!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .family-requirement{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:7px 10px!important;border:1px solid var(--tag-important-ink)!important;border-radius:8px!important;background:var(--tag-important-bg)!important;margin-block:9px!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body :is(.family-requirement b,.family-requirement b *,.important-upgrade-badge){color:var(--tag-important-ink)!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .family-requirement span{color:var(--text)!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .worker-card.aniimo-needed-card{border-left:4px solid var(--ability-color)!important;padding:16px!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .worker-ability{border-bottom:1px solid var(--section-rule)!important;padding-bottom:12px!important;margin-bottom:14px!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .worker-ability span{color:color-mix(in srgb,var(--ability-color) 65%,var(--role-ink-mix))!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .aniimo-needed-jobs{display:grid!important;gap:14px!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .aniimo-needed-job{background:var(--job-surface)!important;border:1px solid var(--section-rule)!important;border-radius:12px!important;padding:16px!important;margin:0!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .roster-assigned-instance .aniimo-needed-pet.roster-multi-job{border:3px solid var(--roster-instance-border,#51c8f5)!important;box-shadow:0 0 0 1px var(--bg)!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body :is(.external-recommendation,.aniimo-border-swatch.dotted){outline:2px dotted #b88dec!important;outline-offset:3px!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .roster-card-enabled{outline:3px solid var(--accent)!important;outline-offset:2px!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .aniimo-border-swatch.solid{border:3px solid #51c8f5!important}
.unused-plan-items{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--job-surface)}.unused-plan-items summary{cursor:pointer;font-weight:650;padding:5px}.unused-plan-item{display:grid;gap:5px;border-top:1px solid var(--line);padding:12px 0;font-size:14px;line-height:1.6}.unused-plan-item:first-of-type{margin-top:8px}.unused-plan-item span{display:block;color:var(--muted)}
.best-personalities-dialog{width:min(760px,calc(100vw - 24px));max-height:86dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:24px;background:var(--panel);color:var(--text)}.best-personalities-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.best-personalities-heading h2{margin:8px 0}.best-personalities-dialog>p{line-height:1.7}.personality-job-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.personality-job-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--job-surface);font-size:14px}.personality-job-list .personality-inline{display:inline-flex;align-items:center;gap:6px}.personality-job-list img{width:22px;height:22px;object-fit:contain}.best-personalities-button{font:650 14px/1.4 'Segoe UI',sans-serif!important;padding:10px 14px!important;min-height:44px!important;margin:6px 10px!important}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .hub-utilities>:is([data-mode-toggle],.hub-support,[data-account-community]){display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;margin:0!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--raised)!important;color:var(--text)!important;flex-shrink:0}
html:is(#r17,html):is(#semantic,html):is(#ui,html) body .hub-utilities>[data-mode-toggle]{position:relative!important;min-width:78px!important;width:78px!important;max-width:78px!important;overflow:hidden!important}
.hub-utilities>[data-account-community]>svg{width:23px;height:23px;fill:currentColor}.hub-support>svg{width:23px;height:23px;fill:none;stroke:var(--heart-ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.rt-damage-example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.personality-job-list{grid-template-columns:1fr}.et-everyday>summary{font-size:14px!important;padding:14px!important}.best-personalities-dialog{padding:16px}.best-personalities-button{margin:8px 0!important}}

.hub-utilities>[data-mode-toggle]{order:0}.hub-utilities>.hub-support{order:1}.hub-utilities>[data-account-community]{order:2}.hub-utilities>#language-trigger{order:3}.hub-utilities>.hub-account-actions{order:4}


/* ---- experimental/revision18.css ---- */
/* A small increase in text stroke preserves the existing hierarchy and semantic colors. */
body{font-weight:450}body :is(p,small,label,button,input,select,td,th,.muted,.hint,.rt-lead,.product-row,.worker-card,.hub-nav a){-webkit-text-stroke:.12px currentColor}
.crop-stars{display:block;color:#f4c45d;font-size:18px;letter-spacing:2px;margin:4px 0}html[data-mode=light] .crop-stars{color:#78530c}.trade-value-pairs{padding:12px;border-left:3px solid var(--accent);line-height:1.8}.rt-habitat{padding:18px;margin-bottom:18px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}.rt-habitat h3{margin:0 0 10px}.rt-habitat p{line-height:1.7}.rt-habitat small{color:var(--muted)}
html:is(#r18,html):is(#ui,html):is(#header,html) #myrv-head-btn{width:auto!important;max-width:none!important;min-width:0!important;padding:10px 14px!important;white-space:nowrap!important}#myrv-head-btn b{white-space:nowrap}
.egg-key-room-egg{pointer-events:none;position:absolute;transform:translate(-50%,-50%) scale(var(--egg-marker-scale,1));transform-origin:center center;display:grid;justify-items:center;gap:2px;z-index:4}.egg-key-room-egg img{width:30px;height:30px;object-fit:contain}.egg-key-room-egg span{font:750 13px/1.3 'Segoe UI',sans-serif;background:#18283f;color:#fff4ca;padding:2px 6px;border:1px solid #d9bd73;border-radius:6px;white-space:nowrap}

html:is(#r18,html) .trade-crop .crop-stars{color:#f4c45d!important}html[data-mode=light]:is(#r18,html) .trade-crop .crop-stars{color:#78530c!important}.ec-toolbar{grid-template-columns:minmax(180px,240px) minmax(0,1fr)!important}@media(max-width:600px){.ec-toolbar{grid-template-columns:1fr!important}}


/* ---- experimental/revision20.css ---- */
html:is(#r20,html):is(#ui,html):is(#header,html):is(#mode,html) body .hub-utilities>[data-mode-toggle]{width:52px!important;min-width:52px!important;max-width:52px!important;height:34px!important;min-height:34px!important;max-height:34px!important;border-radius:9px!important}.hub-utilities>[data-mode-toggle] .mode-half>svg{width:14px!important;height:14px!important}.hub-utilities>[data-mode-toggle] .mode-sun>svg{left:5px!important;top:3px!important}.hub-utilities>[data-mode-toggle] .mode-moon>svg{right:5px!important;bottom:3px!important}
.tile-world-map{width:100%;height:100%;object-fit:cover;border-radius:14px;opacity:.9;filter:none!important}.tile-daily{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font:bold 23px monospace;letter-spacing:7px;background:var(--panel);color:var(--text);border:1px solid var(--accent);border-radius:8px;padding:6px 15px;white-space:nowrap}
@media(min-width:1050px){html:is(#r20,html) .hub-nav{gap:4px!important;flex-wrap:nowrap!important}html:is(#r20,html) .hub-nav a{padding:8px 10px!important;font-size:14px!important;white-space:nowrap}}@media(min-width:750px) and (max-width:1049px){html:is(#r20,html) .hub-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px!important}html:is(#r20,html) .hub-nav a{text-align:center;padding:8px 4px!important;font-size:13px!important}}@media(max-width:749px){html:is(#r20,html) .hub-nav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;justify-content:flex-start!important;gap:6px!important;scrollbar-width:thin;max-width:100%;padding-block:4px!important}html:is(#r20,html) .hub-nav a{flex:none;white-space:nowrap}}


/* ---- experimental/atmosphere.css ---- */
/* Nightfall atmosphere: soft depth, restrained stars, readable Moonstone surfaces. */
html[data-design="2"]{--bg:#18243a;--panel:#27364e;--raised:#354963;--line:#647996;--text:#f5f7ff;--muted:#c4d1e5}
html[data-design="2"] body{background:radial-gradient(ellipse at 82% 3%,#7655b72b,transparent 42%),radial-gradient(ellipse at 3% 35%,#357d9620,transparent 48%),#18243a!important;background-attachment:fixed!important;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.3;background-image:radial-gradient(circle,#e1d4ff 0 1px,transparent 1.3px),radial-gradient(circle,#a8c9ec 0 .7px,transparent 1px);background-size:193px 179px,277px 233px;background-position:27px 41px,108px 139px}
html[data-design="2"] body .hub-header{background:linear-gradient(110deg,#101728ed,#191d33e8)!important;border-color:#aabaff24!important;box-shadow:0 8px 32px #05091835;backdrop-filter:blur(18px)}
html[data-design="2"] body :is(.egg-finder,.egg-tier-info,.egg-card,.egg-viewer,.rt-creature-card,.rt-toolbar,.event-card,.tool-card){border-color:#a0b6db30!important;box-shadow:0 10px 26px #040a192b,inset 0 1px #ffffff05}
html[data-design="2"] body .egg-card{background:linear-gradient(145deg,#263651,#1d2a41)!important;transition:transform .18s,box-shadow .18s,border-color .18s}
html[data-design="2"] body .egg-card:hover{transform:translateY(-4px);border-color:#c6a7ff80!important;box-shadow:0 16px 30px #03081750}
html[data-design="2"] body .egg-intro{position:relative;max-width:none;min-height:238px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 34px;overflow:hidden;border-radius:24px;background:radial-gradient(ellipse at 85% 70%,#9d7cdb2b,transparent 58%),linear-gradient(120deg,#26344a90,#312b4a50);border:1px solid #c3a7ee22}
.egg-intro-copy{position:relative;z-index:1;max-width:690px}.egg-intro h1{letter-spacing:-.035em}.egg-hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.egg-hero-tags span{font-size:12px;line-height:1.5;padding:5px 10px;border:1px solid #cfb5ff30;border-radius:30px;color:var(--muted);background:#aca0dc0c}
.egg-hero-art{position:relative;flex:0 0 250px;height:220px}.egg-hero-art>img{position:absolute;inset:8px 15px;width:210px;height:210px;object-fit:contain;filter:drop-shadow(0 16px 24px #05051770);transform:rotate(-7deg)}.egg-art-orbit{position:absolute;inset:18px 4px;border:1px solid #c5a5ff35;border-radius:50%;transform:rotate(-25deg);box-shadow:0 0 60px #ac83e525}.egg-art-nest{position:absolute;right:0;bottom:4px;padding:12px;border-radius:20px;background:#3b315aa0;border:1px solid #d7c1ff45;transform:rotate(9deg)}.egg-art-nest .egg-game-icon{width:56px;height:56px}.egg-hero-art i{position:absolute;color:#e7c98f;font-size:24px;left:6px;top:20px}.egg-hero-art i:last-child{left:auto;right:4px;top:68px;font-size:35px}
html[data-design="2"] body .egg-tool :is(.egg-tier-info span,.egg-compass small,.egg-card small,.egg-spawn-summary span,.egg-map-hint,.egg-legend,.egg-footnote,.egg-controls .egg-reset){font-size:12px!important;line-height:1.65}.egg-tool .hub-ad{margin:22px auto}.hub-ad{opacity:.85}.hub-ad-slot{border-color:#98adce35!important}
html[data-design="2"][data-mode="light"]{--bg:#e9edf6;--panel:#fafbff;--raised:#e5eaf5;--line:#8494ae;--text:#17243b;--muted:#40536f}
html[data-design="2"][data-mode="light"] body{background:radial-gradient(ellipse at 90% 0%,#cdbfe965,transparent 50%),radial-gradient(ellipse at 0% 40%,#b9dce34a,transparent 50%),#e9edf6!important}
html[data-mode="light"] body::before{opacity:.15;background-image:radial-gradient(circle,#675580 0 1px,transparent 1.3px)}
html[data-design="2"][data-mode="light"] body .hub-header{background:#f6f7ffed!important;border-color:#6d71952b!important;box-shadow:0 5px 24px #28364d0c}
html[data-design="2"][data-mode="light"] body .egg-intro{background:radial-gradient(ellipse at 85% 70%,#bea4e645,transparent 58%),linear-gradient(120deg,#fafbff,#e5e3f3);border-color:#88719e30}
html[data-design="2"][data-mode="light"] body .egg-card{background:linear-gradient(145deg,#fff,#f0f3fa)!important}
html[data-design="2"][data-mode="light"] body :is(.egg-finder,.egg-tier-info,.egg-card,.egg-viewer,.rt-creature-card,.rt-toolbar,.event-card,.tool-card){border-color:#7584a040!important;box-shadow:0 8px 22px #3141680c}
html[data-mode="light"] .egg-art-nest{background:#e8ddf7}.egg-tool .egg-thumb{border-color:#a0b6db20}
@media(max-width:650px){html[data-design="2"] body .egg-intro{padding:24px 20px;min-height:210px}.egg-intro-copy{max-width:100%}.egg-intro-copy p{max-width:85%}.egg-hero-art{position:absolute;right:-45px;top:3px;opacity:.2;width:210px;pointer-events:none}.egg-hero-tags{gap:6px}.egg-hero-tags span{font-size:12px}.egg-intro h1{font-size:36px}.egg-finder{gap:22px}}
@media(prefers-reduced-motion:reduce){html[data-design="2"] body .egg-card{transition:none}.egg-card:hover{transform:none!important}}
html[data-design="2"][data-mode="light"] .egg-art-nest{background:#665086;border-color:#80639f}.egg-tool .egg-tier-info>div{border-right-color:#9bb1d12b}html[data-mode="light"] .egg-tool .egg-tier-info>div{border-right-color:#7686a030}


/* ---- experimental/site-polish23.css ---- */
/* Shared shell polish; map previews do not change the website theme. */
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland,html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell{--bg:#18243a!important;--panel:#27364e!important;--raised:#354963!important;--line:#647996!important;--text:#f5f7ff!important;--muted:#cbd8eb!important}
html:is(#r23,html):is(#unified,html) body.nightfall-homeland .shell{background:transparent!important}
html[data-design="2"]:not([data-mode="light"]) body .homeland-subnav{background:#19263bea!important;border-color:#8dadd032!important;backdrop-filter:blur(18px)}
html[data-design="2"] body .hub-nav{gap:5px!important;overflow-x:auto;scrollbar-width:thin;padding-bottom:8px!important;justify-content:center}
html[data-design="2"] body .hub-nav a{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #a9bed122!important;border-radius:10px!important;background:#a9bed109;color:var(--muted)!important;min-height:40px;box-sizing:border-box;text-decoration:none;padding:8px 10px!important;transition:background .15s,border-color .15s;flex-shrink:0}
html[data-design="2"] body .hub-nav a:hover{background:#ad9be526!important;border-color:#bf9cf469!important;color:var(--text)!important}
html[data-design="2"] body .hub-nav a[aria-current="page"]{color:var(--text)!important;background:linear-gradient(120deg,#a482df35,#79b5d01f)!important;border-color:#c7a4f48a!important;box-shadow:inset 0 -2px #cba8f4,0 3px 13px #0a102433}
.hub-nav a::before{content:"";display:block;flex:0 0 17px;height:17px;background:var(--nav-icon) center/contain no-repeat;opacity:.95}
.hub-nav a[href="/"]{--nav-icon:url('/assets/aniiland-icon.png')}.hub-nav a[href="/homeland"]{--nav-icon:url('/assets/aniiland-icon.png')}.hub-nav a[href="/aniimodex"]{--nav-icon:url('/assets/icons/aniipod_pro.png')}.hub-nav a[href="/interactive-map"]{--nav-icon:url('/experimental/assets/world-map/icons/fast-travel.webp')}.hub-nav a[href="/egg-heist"]{--nav-icon:url('/experimental/assets/extracted/ui_item_Grabegg_DiamondEgg_Pink.webp')}.hub-nav a[href="/event-crop-trade"]{--nav-icon:url('/assets/event/weird-jelly-bean.png?v=eventtrade20261107v4')}.hub-nav a[href="/damage-chart"]{--nav-icon:url('/assets/ability_fire.png')}.hub-nav a[href="/events"]{--nav-icon:url('/experimental/icons/calendar.svg')}.hub-nav a[href="/gift-codes"]{--nav-icon:url('/experimental/icons/gift.svg')}.hub-nav a[href="/aniidle"]{--nav-icon:url('/experimental/assets/game/eebf418d206c4ec0bd.webp')}
html[data-design="2"][data-mode="light"] body .hub-nav a{border-color:#7887a330!important;background:#c0c9dd18;color:#40536f!important}html[data-design="2"][data-mode="light"] body .hub-nav a[aria-current="page"]{background:linear-gradient(120deg,#ddd0ef,#dfeaf6)!important;border-color:#80619d80!important;color:#312244!important;box-shadow:inset 0 -2px #80619d}
@media(max-width:1450px){html[data-design="2"] body .hub-nav{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;max-width:100%;box-sizing:border-box}}@media(max-width:750px){html[data-design="2"] body .hub-nav a{font-size:14px!important;min-height:42px}.hub-nav a::before{flex-basis:18px;height:18px}}
/* Win over legacy color bridges so Homeland shares the same canvas/header. */
html:is(#polish23,html):is(#shared23,html):is(#canvas23,html):not([data-mode="light"]) body{background:radial-gradient(ellipse at 82% 3%,#9170d63a,transparent 45%),radial-gradient(ellipse at 3% 35%,#4e9bad28,transparent 48%),#18243a!important;background-attachment:fixed!important}
html:is(#polish23,html):is(#shared23,html):is(#canvas23,html):not([data-mode="light"]) body .hub-header{background:linear-gradient(110deg,#101b30ed,#20243be8)!important;border-color:#aabaff24!important;box-shadow:0 8px 32px #05091835!important}
html:is(#polish23,html):is(#shared23,html):is(#canvas23,html):not([data-mode="light"]) body .homeland-subnav{background:#1d2b42ed!important;border-color:#91abc535!important;--bg:#18243a!important;--panel:#27364e!important;--raised:#354963!important}
html:is(#polish23,html):is(#shared23,html):is(#canvas23,html)[data-mode="light"] body{background:radial-gradient(ellipse at 90% 0%,#cdbfe965,transparent 50%),radial-gradient(ellipse at 0% 40%,#b9dce34a,transparent 50%),#e9edf6!important;background-attachment:fixed!important}
html:is(#polish23,html):is(#shared23,html):is(#canvas23,html)[data-mode="light"] body .hub-header{background:#f6f7ffed!important;border-color:#6d71952b!important}
html:is(#polish23,html):is(#shared23,html):is(#canvas23,html)[data-mode="light"] body .homeland-subnav{background:#f2f5fbed!important;border-color:#8390ab40!important}
@media(min-width:750px) and (max-width:1450px){html[data-design="2"] body .hub-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:6px!important}html[data-design="2"] body .hub-nav a{font-size:14px!important;white-space:nowrap}}


/* ---- experimental/revision25.css ---- */
/* Daylight Moonstone: luminous sky, subtle glints and layered paper surfaces. */
html:is(#day25,html):is(#sky25,html):is(#light25,html)[data-mode="light"] body{background:radial-gradient(ellipse at 94% 0%,#e8d0ffb0,transparent 48%),radial-gradient(ellipse at 2% 33%,#bdeaf080,transparent 49%),radial-gradient(ellipse at 75% 85%,#ffe4ca60,transparent 48%),linear-gradient(145deg,#f1f6ff,#e5edf8 54%,#f3eef9)!important;background-attachment:fixed!important}
html[data-mode="light"] body::before{opacity:.24!important;background-image:radial-gradient(circle,#fff 0 1.5px,transparent 2px),radial-gradient(circle,#9b83b0 0 .7px,transparent 1.2px)!important;background-size:173px 157px,277px 233px!important}
html:is(#day25,html):is(#sky25,html):is(#light25,html)[data-mode="light"] body .hub-header{background:linear-gradient(110deg,#fcfdfff2,#f1eafbed,#eaf5fbed)!important;border-color:#a69cbc45!important;box-shadow:0 8px 30px #657d9f16!important;backdrop-filter:blur(18px)}
html[data-design="2"][data-mode="light"] body :is(.egg-finder,.egg-tier-info,.egg-card,.egg-viewer,.rt-creature-card,.rt-toolbar,.event-card,.tool-card,.world-map-sidebar,.world-map-toolbar,.wm-detail){box-shadow:0 9px 26px #637ba018,inset 0 1px #fff!important;border-color:#95a3bc45!important}
html[data-design="2"][data-mode="light"] .rt-creature-card{background:linear-gradient(145deg,#ffffff,#eef1fc)!important}html[data-design="2"][data-mode="light"] .tool-card:hover,html[data-design="2"][data-mode="light"] .egg-card:hover{box-shadow:0 16px 32px #8c6fab25!important;border-color:#a182c780!important}
html[data-design="2"][data-mode="light"] .hero-scene{background:radial-gradient(ellipse at 35% 25%,#f8e6ff,#dcecf9 65%,#e4e9fa)!important}.hub-ad-banner .hub-ad-slot{width:min(970px,100%);min-height:90px}.hub-ad{box-sizing:border-box;max-width:100%}.wm-sync-status{font-size:13px;line-height:1.6;color:var(--muted);margin-top:12px}
@media(min-width:750px) and (max-width:1450px){html[data-design="2"] body .hub-nav{grid-template-columns:repeat(5,minmax(0,1fr))}}

html:is(#day25,html):is(#controls25,html)[data-mode="light"] body :is(.rt-toolbar,.world-map-toolbar) button{background:#ece7f6!important;color:#322744!important;border-color:#9b89b84d!important;box-shadow:0 2px 7px #6654850c}
html[data-design="2"][data-mode="light"] body .hub-nav a{border-color:#8a80a84d!important;background:#fff6!important}html[data-design="2"][data-mode="light"] body .hub-nav a:hover{background:#e6ddf4!important}


/* ---- experimental/revision26.css ---- */
/* Unified main navigation. Planner content and side rails are unchanged. */
html:is(#layout26,html):is(#header26,html):is(#top26,html) body header.hub-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px 24px!important;position:relative!important;top:auto!important;min-height:0!important;height:auto!important;padding:20px max(24px,calc((100% - 1400px)/2))!important;box-sizing:border-box!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible!important}
html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-brand{font-size:19px!important;line-height:1.2!important}.hub-header .hub-brand-row{min-width:0}
html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-brand img{width:42px!important;height:42px!important;flex:0 0 42px!important}html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-brand small{font-size:9px!important;letter-spacing:.16em!important}
html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-utilities{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;max-width:none!important}
html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-nav{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:6px!important;width:100%!important;max-width:1400px!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important;position:static!important;overflow:visible!important;flex:auto!important}
html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-nav a{display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:6px 3px!important;margin:0!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;gap:7px!important;flex:none!important}
.hub-nav a[href="/homeland"]{--nav-icon:url('/experimental/assets/extracted/UI_Icon_MarkPoint_CampingCar.webp')!important}
html:is(#layout26,html):is(#header26,html):is(#top26,html) body .homeland-subnav{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 3px 12px #060f232b!important}
@media(min-width:750px) and (max-width:1350px){html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-nav{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;overflow-x:auto!important;justify-content:flex-start!important;gap:4px!important}html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-nav a{width:122px!important;min-width:122px!important;flex:0 0 122px!important;font-size:11px!important;padding:6px 4px!important;white-space:nowrap!important}}
@media(max-width:749px){html:is(#layout26,html):is(#header26,html):is(#top26,html) body header.hub-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:16px!important;gap:12px!important}html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-utilities{justify-content:flex-start!important;flex-wrap:wrap!important}html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-nav{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important;scrollbar-width:thin;padding-bottom:7px!important}html:is(#layout26,html):is(#header26,html):is(#top26,html) body .hub-header .hub-nav a{width:152px!important;flex:0 0 152px!important}}
/* The map gets a larger workspace while wide displays retain empty ad rails. */
html:is(#layout26,html):is(#map26,html) body.world-map-page .hub-main{max-width:1840px!important;width:calc(100% - 64px)!important;padding:28px 0 64px!important;box-sizing:border-box!important;margin-inline:auto!important}
@media(max-width:750px){html:is(#layout26,html):is(#map26,html) body.world-map-page .hub-main{width:calc(100% - 28px)!important;padding-top:18px!important}}


/* ---- experimental/revision27.css ---- */
/* Shared utility geometry: icon controls are square; named controls keep natural widths. */
html:is(#r27,html):is(#a27,html):is(#b27,html):is(#c27,html):is(#d27,html) body .hub-header .hub-utilities :is(button,a.hub-support,#language-trigger){box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important;border-radius:11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;line-height:1.15!important;vertical-align:middle!important}
html:is(#r27,html):is(#a27,html):is(#b27,html):is(#c27,html):is(#d27,html) body .hub-header .hub-utilities :is([data-mode-toggle],.hub-support,[data-account-community]){width:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;flex:0 0 44px!important}
.hub-account-actions{align-items:center!important}.hub-utilities [data-mode-toggle] .mode-sun>svg{left:5px!important;top:5px!important}.hub-utilities [data-mode-toggle] .mode-moon>svg{right:5px!important;bottom:5px!important}
body{padding-bottom:var(--ad-anchor-clearance,0px)}.hub-footer{margin-bottom:calc(var(--ad-anchor-clearance,0px) + env(safe-area-inset-bottom))}.ad-overlay-blocked :is([id*="ezmobfooter"],[id*="ezoic-pub-ad-placeholder-bottom"],.hub-anchor-preview){visibility:hidden!important;pointer-events:none!important}
.hub-anchor-preview{position:fixed;z-index:900;bottom:0;left:50%;transform:translateX(-50%);width:min(970px,100%);height:80px;padding:12px 58px 12px 16px;box-sizing:border-box;background:var(--surface,#26364f);border:1px solid var(--border,#73849c);box-shadow:0 -4px 24px #0004;display:grid;place-items:center;color:var(--text,#edf1fa)}.hub-anchor-preview button,.hub-rail-preview button{position:absolute;right:6px;top:6px;width:36px;height:36px;min-height:36px;cursor:pointer}.hub-rail-preview{display:none}.hub-ad-banner .hub-ad-slot{min-height:100px!important}
@media(min-width:1760px){.hub-rail-preview{display:grid;place-items:center;position:fixed;top:220px;width:140px;height:500px;border:1px dashed var(--border,#73849c);color:var(--text,#edf1fa);z-index:50}.hub-rail-left{left:8px}.hub-rail-right{right:8px}body.world-map-page .hub-rail-preview{display:none}}
/* Five home compositions, scoped to the home page. */
.home27 #hub-content{max-width:1400px!important;margin:auto!important;padding:28px 28px 64px!important}.home-design-picker{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:28px}.home-design-picker>span{font-size:13px;margin-right:8px;opacity:.8}.home-design-picker a{padding:10px 14px;border:1px solid #9fafd144;border-radius:24px;text-decoration:none;color:var(--text);font-size:13px;background:#90a4d00a}.home-design-picker a[aria-current]{background:#c6adf3;color:#20253e;border-color:#ddcaff;box-shadow:0 3px 18px #a484db25}
.home27 .home27-hero{display:grid!important;grid-template-columns:1.15fr 1fr;align-items:center;min-height:390px;padding:46px!important;border:1px solid #a9b9dc30!important;border-radius:30px!important;background:radial-gradient(ellipse at 80% 70%,#9172cc33,transparent 65%),linear-gradient(135deg,#29445466,#4b3c6655)!important;box-shadow:0 20px 55px #060e2425;overflow:hidden;position:relative;gap:30px;margin:0!important}.home27-eyebrow{font-size:11px;font-weight:800;letter-spacing:.18em;color:var(--accent,#d0b4ff)}.home27 .home27-copy h1{font-size:clamp(32px,3.8vw,54px)!important;line-height:1.08!important;letter-spacing:-.035em;max-width:650px;margin:20px 0!important}.home27-copy>p{max-width:480px;line-height:1.75;font-size:16px}.home27-actions{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.home27-actions a{padding:14px 19px;border:1px solid #bcb4d655;border-radius:12px;text-decoration:none;color:var(--text);font-weight:750;font-size:14px}.home27-actions a:first-child{background:#cbb2f5;color:#25253f}.home27-caption{font-size:11px;letter-spacing:.15em;opacity:.65}.home27-companions{position:relative;height:300px;isolation:isolate}.home27-companions img{position:absolute;object-fit:contain;width:56%;height:88%;filter:drop-shadow(0 18px 12px #09132755);bottom:12px;left:20%}.home27-companions img:nth-of-type(2){width:43%;height:65%;left:-2%;transform:rotate(-9deg)}.home27-companions img:nth-of-type(3){width:39%;height:65%;left:64%;transform:rotate(10deg)}.home27-orbit{position:absolute;inset:8% 2%;border:1px solid #c7b5e24a;border-radius:50%;transform:rotate(-15deg);z-index:-1;background:radial-gradient(ellipse,#b48bda25,transparent 70%)}.home27-companions>span:last-child{position:absolute;bottom:0;left:20%;font-size:12px;letter-spacing:.06em;background:#31425d;padding:9px 14px;border-radius:20px;color:#f4e7ff}
.home27-section{margin:44px 0 22px}.home27-section h2{font-size:26px;margin:10px 0}.home27-section p{opacity:.7;margin:0;font-size:14px}.home27-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.home27-card{display:flex;flex-direction:column;position:relative;min-width:0;text-decoration:none;color:var(--text);border:1px solid #a1b4d32a;border-radius:22px;background:linear-gradient(145deg,#8ea6cb13,#64537e12);overflow:hidden;box-shadow:0 8px 24px #060d2020;transition:transform .18s,border-color .18s}.home27-card:hover{transform:translateY(-4px);border-color:var(--home-accent)}.home27-number{padding:20px 20px 0;font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--home-accent)}.home27-card .tile-art{height:164px!important;min-height:164px!important;margin:0!important;border:0!important;border-radius:0!important;background:radial-gradient(ellipse,var(--home-accent),transparent 70%)!important;background-blend-mode:soft-light;isolation:isolate}.home27-card .tile-art:before{content:'';position:absolute;inset:0;background:var(--bg,#19263b);opacity:.9;z-index:-1}.home27-card-copy{padding:18px 22px 24px;display:flex;flex-direction:column;flex:1}.home27-card-copy h2{font-size:20px;margin:0 0 10px}.home27-card-copy p{font-size:14px;line-height:1.6;opacity:.78;margin:0 0 22px}.home27-open{margin-top:auto;font-size:12px;font-weight:800;color:var(--home-accent)}.home27-signoff{text-align:center;opacity:.6;font-size:12px;margin-top:38px}
/* 2: a working console with horizontal mission cards. */
[data-home-design="2"] .home27-hero{min-height:260px;grid-template-columns:1.7fr 1fr;border-radius:18px!important;padding:32px!important}[data-home-design="2"] .home27-companions{height:220px}[data-home-design="2"] .home27-grid{grid-template-columns:repeat(2,minmax(0,1fr))}[data-home-design="2"] .home27-card{display:grid;grid-template-columns:140px 1fr;border-radius:16px}[data-home-design="2"] .home27-number{grid-column:1/-1;padding-bottom:8px}[data-home-design="2"] .home27-card .tile-art{align-self:center;height:140px!important;min-height:140px!important}[data-home-design="2"] .home27-card-copy{padding:16px 24px 24px}
/* 3: editorial field journal, spacious index beside illustrated entries. */
[data-home-design="3"] .home27-hero{background:transparent!important;box-shadow:none;border-width:0 0 1px!important;border-radius:0!important;padding:30px 0 40px!important}[data-home-design="3"] .home27-copy h1{font-family:Georgia,serif!important;font-weight:600!important;font-size:clamp(36px,4vw,58px)!important}[data-home-design="3"] .home27-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}[data-home-design="3"] .home27-card{display:grid;grid-template-columns:170px 1fr;border:0;border-top:1px solid #a1b4d344;border-radius:0;background:transparent;box-shadow:none;padding:14px 0}[data-home-design="3"] .home27-number{grid-column:1/-1;padding:10px 0}[data-home-design="3"] .home27-card-copy h2{font-family:Georgia,serif;font-size:25px}
/* 4: an arcade of companion portals. */
[data-home-design="4"] .home27-hero{grid-template-columns:1fr;text-align:center;min-height:460px;background:radial-gradient(ellipse at center,#7561a344,transparent 70%)!important}[data-home-design="4"] .home27-copy{z-index:2}[data-home-design="4"] .home27-copy h1,[data-home-design="4"] .home27-copy p{margin-left:auto!important;margin-right:auto!important}[data-home-design="4"] .home27-actions{justify-content:center}[data-home-design="4"] .home27-companions{height:180px;width:380px;max-width:100%;margin:auto}[data-home-design="4"] .home27-companions>span:last-child{display:none}[data-home-design="4"] .home27-grid{gap:24px}[data-home-design="4"] .home27-card{text-align:center;border-radius:80px 80px 24px 24px}[data-home-design="4"] .home27-number{padding-top:26px}[data-home-design="4"] .home27-card-copy{padding-top:8px}
/* 5: a bento launchpad with two featured destinations. */
[data-home-design="5"] .home27-hero{min-height:280px;padding:32px!important}[data-home-design="5"] .home27-companions{height:240px}[data-home-design="5"] .home27-grid{grid-template-columns:repeat(4,minmax(0,1fr))}[data-home-design="5"] .home27-card:nth-child(-n+2){grid-column:span 2;display:grid;grid-template-columns:1fr 1fr}[data-home-design="5"] .home27-card:nth-child(-n+2) .home27-number{grid-column:1/-1}[data-home-design="5"] .home27-card:nth-child(-n+2) .tile-art{height:230px!important}[data-home-design="5"] .home27-card:nth-child(-n+2) .home27-card-copy{justify-content:center;padding-top:30px}[data-home-design="5"] .home27-card:nth-child(-n+2) h2{font-size:28px}
html[data-mode="light"] .home27-open{color:#64418a}html[data-mode="light"] .home27-number{color:#604179}html[data-mode="light"] .home27-eyebrow{color:#67418a}
@media(max-width:1000px){.home27-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home27 .home27-hero{padding:28px!important;gap:12px}.home27-companions{height:240px}[data-home-design="5"] .home27-grid{grid-template-columns:repeat(2,minmax(0,1fr))}[data-home-design="5"] .home27-card:nth-child(-n+2){grid-column:span 1;display:flex}[data-home-design="5"] .home27-card:nth-child(-n+2) .tile-art{height:164px!important}}
@media(max-width:650px){.home27 #hub-content{padding:18px 16px 40px!important}.home27 .home27-hero{grid-template-columns:1fr!important;padding:26px 22px!important;min-height:0}.home27-companions{height:220px;width:100%;max-width:350px;margin:auto}.home27 .home27-copy h1{font-size:36px!important}.home27-grid,[data-home-design="2"] .home27-grid,[data-home-design="3"] .home27-grid{grid-template-columns:1fr}.home27-card{border-radius:20px}.home27-card .tile-art{height:180px!important}[data-home-design="2"] .home27-card,[data-home-design="3"] .home27-card{grid-template-columns:110px 1fr}.home27-section{margin-top:30px}[data-home-design="5"] .home27-grid{grid-template-columns:1fr}[data-home-design="4"] .home27-card{border-radius:50px 50px 22px 22px}.home-design-picker{gap:7px}.home-design-picker>span{width:100%}.home-design-picker a{font-size:12px;padding:9px 11px}.home27-actions a{width:100%;text-align:center;box-sizing:border-box}}
@media(prefers-reduced-motion:reduce){.home27-card{transition:none}}

.hub-ad-dismissed{display:none!important}.hub-provider-ad-close{position:fixed!important;bottom:calc(var(--ad-anchor-clearance,80px) + env(safe-area-inset-bottom))!important;right:12px!important;z-index:999999!important;width:40px!important;height:40px!important;min-height:40px!important;border-radius:50%!important;background:var(--panel,#273a56)!important;color:var(--text,#fff)!important;border:1px solid #a6b9d6!important;box-shadow:0 2px 10px #0004}.hub-provider-ad-close[hidden]{display:none!important}

html:is(#r27,html):is(#a27,html):is(#b27,html):is(#c27,html):is(#d27,html) body .hub-provider-ad-close[hidden]{display:none!important}

.home27 #hub-content .home27-card .tile-art{position:relative!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;max-width:100%!important;overflow:hidden!important;z-index:0!important}.home27 #hub-content .home27-card-copy{position:relative;z-index:1}.home27 #hub-content .home27-card .tile-art:before{z-index:-1!important}

.hub-footer{margin-bottom:env(safe-area-inset-bottom)}html[data-mode="light"] .home27 .home27-hero{background:radial-gradient(ellipse at 85% 70%,#dfc8f866,transparent 65%),linear-gradient(135deg,#f5fffc,#f2edff)!important;border-color:#a29abf55!important;box-shadow:0 16px 45px #71638b16}html[data-mode="light"] [data-home-design="3"] .home27-hero{background:transparent!important}html[data-mode="light"] [data-home-design="4"] .home27-hero{background:radial-gradient(ellipse,#e3d3f866,transparent 70%)!important}html[data-mode="light"] .home27 .home27-card .tile-art:before{background:#f0f3fc!important}

.home27 [data-home-design="3"] .home27-card .tile-art{background:transparent!important}.home27 [data-home-design="3"] .home27-card .tile-art:before{opacity:0!important}.home27 [data-home-design="3"] .tile-art .tile-pet{width:68px;height:130px;top:18px}.home27 [data-home-design="3"] .tile-pet-0{left:calc(50% - 82px)}.home27 [data-home-design="3"] .tile-pet-1{left:calc(50% - 34px)}.home27 [data-home-design="3"] .tile-pet-2{left:calc(50% + 14px)}.home27 [data-home-design="3"] .tile-art .tile-main{width:122px;height:135px;left:calc(50% - 61px)}.home27 [data-home-design="3"] .tile-art .tile-companion{width:60px;left:calc(50% + 22px)}.home27 [data-home-design="3"] .tile-daily{font-size:17px;letter-spacing:3px;padding:5px 8px}@media(max-width:650px){.home27 [data-home-design="3"] .tile-art .tile-pet{width:48px;height:100px;top:28px}.home27 [data-home-design="3"] .tile-pet-0{left:calc(50% - 55px)}.home27 [data-home-design="3"] .tile-pet-1{left:calc(50% - 24px)}.home27 [data-home-design="3"] .tile-pet-2{left:calc(50% + 7px)}}

.patch-notes details{margin:12px 0;padding:12px 16px;border:1px solid var(--border,#8198b966);border-radius:12px}.patch-notes summary{cursor:pointer;font-weight:750;min-height:24px}.patch-notes details details{margin-left:12px}.patch-notes li{margin:8px 0}

.hub-hero.feedback-page{display:block!important;max-width:900px;margin:30px auto!important;padding:36px!important}.feedback-page p{line-height:1.8}.feedback-page a{font-weight:750;text-underline-offset:4px}

@media(max-width:600px){
 .home27 [data-home-design="3"] .home27-card{grid-template-columns:minmax(0,1fr);gap:0;padding:18px 0 24px}
 .home27 [data-home-design="3"] .home27-number{grid-column:1/-1}.home27 #hub-content .home27-card .tile-art{height:150px!important;min-height:150px!important;max-width:300px!important;justify-self:center;border-radius:20px!important;background:radial-gradient(ellipse at 50% 75%,var(--home-accent),transparent 68%)!important}
 .home27 [data-home-design="3"] .tile-art .tile-main{width:120px;height:130px;left:calc(50% - 60px);top:8px;object-fit:contain}
 .home27 [data-home-design="3"] .tile-art .tile-pet{width:90px;height:130px;top:8px;object-fit:contain}.home27 [data-home-design="3"] .tile-pet-0{left:calc(50% - 120px)}.home27 [data-home-design="3"] .tile-pet-1{left:calc(50% - 45px)}.home27 [data-home-design="3"] .tile-pet-2{left:calc(50% + 30px)}
 .home27 [data-home-design="3"] .home27-card-copy{padding:14px 6px 0}.home27 [data-home-design="3"] .home27-card-copy h2{font-family:inherit;font-size:24px}.home27 [data-home-design="3"] .home27-card-copy p{font-size:16px;margin-bottom:14px;opacity:1}
}


/* ---- experimental/revision32.css ---- */
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .hub-header .hub-tool-toggle{display:none!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav>a{min-height:52px!important;max-height:none!important;padding:12px 20px!important;font-size:16px!important;font-weight:750!important;line-height:1.25!important;border:1px solid var(--line,#8198b955)!important;border-radius:12px!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav>a[aria-current]{background:var(--accent,#cbb2f5)!important;color:var(--accent-contrast,#20253e)!important;border-color:var(--accent,#cbb2f5)!important;box-shadow:0 2px 12px #b18cd52b!important}

/* Match the real sub-navigation links. The planner moves these action
   buttons here on desktop and to .homeland-mobile-shortcuts on phones. */
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav > :is(#myrv-head-btn,#event-center-btn){
  box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  height:52px!important;min-height:52px!important;max-height:52px!important;
  margin:0!important;padding:12px 20px!important;gap:8px!important;
  border:1px solid #8565aa!important;border-radius:12px!important;
  background:#223247!important;color:#f5f7ff!important;
  font-family:inherit!important;font-size:16px!important;font-weight:750!important;
  line-height:1.25!important;white-space:nowrap!important;
}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav > #event-center-btn.event-center-btn > .magical-nav-name{
  display:inline!important;font:inherit!important;font-size:16px!important;
  line-height:1.25!important;white-space:nowrap!important;color:inherit!important;
}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav > #event-center-btn.event-center-btn > .magical-nav-currency{
  width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important;
  flex:0 0 26px!important;object-fit:contain!important;
}
/* 1025–1180px can still be desktop with a mouse: keep grid cards equal. */
@media(min-width:1025px) and (max-width:1180px) and (pointer:fine){
  html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav > :is(#myrv-head-btn,#event-center-btn){
    width:100%!important;max-width:100%!important;height:auto!important;min-height:52px!important;
    padding:12px 8px!important;white-space:normal!important;font-size:15px!important;
  }
}
@media(max-width:1180px){
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .hub-header .hub-tool-toggle{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:52px!important;height:auto!important;max-height:none!important;border:1px solid var(--line,#8198b955)!important;border-radius:12px!important;background:var(--panel,#27364e)!important;color:var(--text,#f5f7ff)!important;padding:12px 16px!important;font-size:15px!important;text-align:left!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .hub-tool-toggle b{margin-left:auto;font-size:14px;color:var(--accent,#d2b4ff)}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .hub-header .hub-nav{display:none!important;overflow:visible!important;scrollbar-width:none!important;max-height:none!important;flex-wrap:wrap!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .hub-header[data-tools-open] .hub-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .hub-header .hub-nav a{width:100%!important;min-width:0!important;min-height:52px!important;height:52px!important;max-height:none!important;flex:none!important;padding:10px!important;white-space:normal!important;font-size:14px!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav{position:static!important;top:auto!important;z-index:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;padding:12px!important;box-sizing:border-box!important;max-height:none!important;background:var(--panel,#27364e)!important;backdrop-filter:none!important;overflow:visible!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav .subnav-label,html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav .homeland-version{display:none!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav>a{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;font-size:15px!important;padding:12px 8px!important;text-align:center!important;white-space:normal!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav :is(#myrv-head-btn,#event-center-btn){width:100%!important;min-width:0!important;max-width:100%!important;min-height:52px!important;height:auto!important;white-space:normal!important;font-size:14px!important;line-height:1.2!important;margin:0!important;padding:10px 8px!important;justify-content:center!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .homeland-subnav :is(#myrv-head-btn,#event-center-btn) b{white-space:normal!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone{--m-header-h:0px!important;--planner-header-height:0px!important;--m-nav-h:72px!important;scroll-padding-top:82px!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body{padding-bottom:calc(82px + var(--ad-anchor-clearance,0px) + env(safe-area-inset-bottom))!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body .planner-sidebar:not(.mobile-settings-open){position:sticky!important;top:0!important;z-index:500!important;max-height:none!important;overflow:visible!important;height:auto!important;margin:0!important;padding:0!important;background:var(--panel,#27364e)!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body .mobile-planner-bar{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:4px!important;position:relative!important;top:auto!important;background:var(--panel,#27364e)!important;border-bottom:1px solid var(--line,#8198b955)!important;padding:6px 10px!important;min-height:68px!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body .mobile-settings-toggle{display:flex!important;min-width:0!important;width:100%!important;min-height:56px!important;height:auto!important;max-height:none!important;padding:8px!important;background:transparent!important;border:0!important;gap:8px!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body .mobile-settings-summary{min-width:0!important;flex:1!important;text-align:left!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body .mobile-settings-summary b{font-size:14px!important;line-height:1.3!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body [data-planner-help]{display:flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:1px solid var(--line,#8198b955)!important;border-radius:50%!important;background:var(--raised,#344862)!important;color:var(--text,#f5f7ff)!important;font-size:19px!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body .planner-sidebar.mobile-settings-open{position:fixed!important;top:16px!important;left:max(0px,calc((100vw - 760px)/2))!important;right:max(0px,calc((100vw - 760px)/2))!important;bottom:calc(78px + var(--ad-anchor-clearance,0px) + env(safe-area-inset-bottom))!important;max-height:none!important;height:auto!important;z-index:4000!important;background:var(--panel,#27364e)!important;overflow-y:auto!important;border-radius:22px 22px 0 0!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body .planner-sidebar.mobile-settings-open .mobile-planner-bar{position:sticky!important;top:0!important;z-index:5!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body #m-tabbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;position:fixed!important;top:auto!important;bottom:calc(var(--ad-anchor-clearance,0px) + env(safe-area-inset-bottom))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(100%,760px)!important;min-height:72px!important;height:72px!important;padding:4px 8px!important;gap:8px!important;z-index:4100!important;border:1px solid var(--line,#8198b955)!important;border-radius:16px 16px 0 0!important;background:var(--panel,#27364e)!important;box-shadow:0 -6px 22px #07102133!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body #m-tabbar button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;width:100%!important;min-height:62px!important;height:62px!important;max-height:none!important;margin:0!important;padding:6px 8px!important;border-radius:12px!important;border:1px solid transparent!important;background:transparent!important;color:var(--text,#f5f7ff)!important;font-size:15px!important;line-height:1.2!important;font-weight:750!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body #m-tabbar button.active{background:var(--accent,#cbb2f5)!important;color:var(--accent-contrast,#20253e)!important;border-color:var(--accent,#cbb2f5)!important}
html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body #m-tabbar svg{width:21px!important;height:21px!important;fill:none;stroke:currentColor;stroke-width:1.8}
}
@media(max-width:600px){html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .hub-header[data-tools-open] .hub-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:1181px){[data-planner-help]{display:none!important}}
@media(max-width:1180px){html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body:has(.hub-header[data-tools-open]) .order-dock{visibility:hidden!important}html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html) body .hub-header[data-tools-open] .hub-tool-toggle>span:last-child{transform:rotate(180deg)}}

@media(max-width:1180px){html:is(#r32,html):is(#b32,html):is(#c32,html):is(#d32,html):is(#e32,html).aniiland-phone body #content>.page-title{padding-right:115px!important;min-height:80px!important;box-sizing:border-box!important}}


/* ---- experimental/revision33.css ---- */
html body #guide-overlay{z-index:20000!important}html body #guide-overlay .guide-spotlight{z-index:20001!important;border-color:var(--accent,#cbb2f5)!important;transition:none!important}html body #guide-overlay .guide-card{z-index:20002!important;background:var(--panel,#27364e)!important;color:var(--text,#f5f7ff)!important;max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}html body #guide-overlay[hidden]{display:none!important}html body #guide-overlay .guide-card button{min-height:44px!important}html.guide-open body #m-tabbar,html.guide-open:not(.guide-orders) body .order-dock{visibility:hidden!important}html body #guide-overlay .guide-spotlight[hidden]{display:none!important}@media(max-width:1180px){html.guide-open.aniiland-phone:is(#guide33,html):is(#sheet33,html):is(#mobile33,html):is(#top33,html):is(#fix33,html) body .planner-sidebar.mobile-settings-open{bottom:calc(var(--guide-card-height,240px) + 26px)!important;box-shadow:none!important}html body #guide-overlay .guide-card{max-height:45dvh;padding:14px!important}html body #guide-overlay .guide-copy{font-size:14px;line-height:1.5}html body #guide-overlay .guide-card h2{font-size:19px!important}}

html body #guide-overlay .guide-next{background:var(--accent,#cbb2f5)!important;color:var(--accent-contrast,#24143c)!important}@media(max-width:1180px){html.guide-open:not(.guide-calculate) body .planner-sidebar.mobile-settings-open>:is(#optimize,#max-potential-open){display:none!important}html.guide-open.guide-calculate body .planner-sidebar.mobile-settings-open>#optimize{position:static!important;bottom:auto!important;order:0!important}}

/* Resource rows keep their separation in both themes. */
html:is(#resources34,html):is(#contrast34,html) body .rf-row{padding:12px 4px!important;border-bottom:1px solid color-mix(in srgb,currentColor 26%,transparent)!important;gap:12px!important}html:is(#resources34,html):is(#contrast34,html) body .rf-row:last-child{border-bottom:0!important}html:is(#resources34,html):is(#contrast34,html) body .rf-row+.rf-row{margin-top:4px!important}
html body #facility-price-dialog{box-sizing:border-box!important;max-height:calc(100dvh - 32px)!important;height:auto!important;overflow-y:auto!important;overscroll-behavior:contain;margin:auto!important;max-width:calc(100vw - 24px)!important}html body #facility-price-content{overflow:visible!important;max-height:none!important}html body #facility-price-dialog>.close{position:sticky!important;top:0!important;float:right;z-index:3}html body #facility-price-dialog .facility-price-columns{min-height:0!important}@media(max-width:760px){html body #facility-price-dialog .facility-price-columns{grid-template-columns:1fr!important}}

.account-profile-mark img{width:100%;height:100%;object-fit:cover;border-radius:50%}.account-nickname{display:grid;gap:10px;padding:16px 0;margin:16px 0;border-block:1px solid #8198b955}.account-nickname label{display:grid;gap:8px}.account-nickname input{min-height:44px;padding:10px;font:inherit}

/* Empty-slot presentation is independent of ad-provider scripts. */
html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad){min-height:0!important;height:auto!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;clear:both}html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad):not(.ad-filled){margin-block:0!important}html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad-slot){min-height:0!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important}html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad)[hidden]{display:none!important}.hub-ad>small{display:none!important}.hub-ad.ad-filled{margin-block:20px!important}.hub-ad-slot{text-align:center}

@media(min-width:1601px){html:is(#rails37,html):is(#safe37,html):is(#tools37,html) body .hub-main{width:calc(100% - 360px)!important;max-width:1840px!important;margin-inline:auto!important}}

html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad){display:flex!important;justify-content:center!important;align-items:flex-start!important;gap:16px!important}
html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad)[hidden]{display:none!important}

html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad-slot)[hidden]{display:none!important}




/* Beta feedback: icon-mode segmented control and dual artwork in the Floor Planner. */
#layout-root .layout-icon-selector{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;margin:8px 0 12px}
#layout-root .layout-icon-label{font-size:12px;font-weight:750;color:var(--text);letter-spacing:.02em}
#layout-root .layout-icon-modes{display:inline-flex;align-items:stretch;gap:2px;max-width:100%;padding:3px;border:1px solid var(--line,#8198b9);border-radius:999px;background:rgba(12,20,34,.5)}
#layout-root .layout-icon-modes button{appearance:none;min-width:0;min-height:34px;padding:6px 12px;white-space:nowrap;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--muted,#d5e0f1)!important;font-size:12px;font-weight:700;line-height:1.2;font-family:inherit;box-shadow:none!important;cursor:pointer;transition:background .12s,color .12s}
#layout-root .layout-icon-modes button[aria-pressed="true"]{background:var(--accent,#c599ef)!important;color:var(--accent-contrast,#26143d)!important}
#layout-root .layout-icon-modes button:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px}
#layout-root .placed.icon-view{position:absolute}
#layout-root .placed .placed-icon.facility-base-icon{width:88%;height:88%;z-index:1}
/* The overlay is a true square sized from the *shorter* facility edge, not
   percentages of independent width/height (which flatten non-square recipes). */
#layout-root .placed .placed-icon.recipe-corner-icon{
  position:absolute!important;top:0!important;right:0!important;left:auto!important;bottom:auto!important;
  width:var(--recipe-corner-size,20px)!important;height:var(--recipe-corner-size,20px)!important;
  min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  flex:0 0 auto!important;aspect-ratio:1/1!important;box-sizing:border-box!important;
  object-fit:contain!important;object-position:center!important;
  padding:1px!important;border:1px solid #d1a9ffaa;border-radius:50%;
  background:#21132be8;box-shadow:0 1px 4px #000a;z-index:4;pointer-events:none
}
#layout-root .placed.climate-device .placed-icon.recipe-corner-icon{width:var(--recipe-corner-size,20px)!important;height:var(--recipe-corner-size,20px)!important}

/* The ownership picker is plum; actual floor-plan plots retain their original colors. */
html[data-design="2"]:is(#plum1,html):is(#plum2,html):is(#plum3,html):is(#plum4,html) body #layout-root .plot-picker button.active{background:#39264f!important;border:2px solid #b387d6!important;color:#fff!important;box-shadow:none!important}
html[data-design="2"]:is(#plum1,html):is(#plum2,html):is(#plum3,html):is(#plum4,html) body #layout-root .plot-picker button.active :is(b,small){color:#fff!important}
html[data-design="2"]:is(#plum1,html):is(#plum2,html):is(#plum3,html):is(#plum4,html) body #layout-root .plot-picker button.active b::before{content:none!important}
html[data-design="2"][data-mode="light"]:is(#plum1,html):is(#plum2,html):is(#plum3,html):is(#plum4,html) body #layout-root .plot-picker button.active{background:#e7d5f5!important;border-color:#7d4aaf!important;color:#321b46!important}
html[data-design="2"][data-mode="light"]:is(#plum1,html):is(#plum2,html):is(#plum3,html):is(#plum4,html) body #layout-root .plot-picker button.active :is(b,small){color:#321b46!important}

/* Balanced palette: Moonstone components with approximately midpoint classic-depth surfaces. */
html[data-design="2"][data-mode="dark"] body.nightfall-homeland,
html[data-design="2"][data-mode="dark"] body.nightfall-homeland *{
  --bg:#192739!important;--panel:#223247!important;--raised:#2c4057!important;
  --line:#58738d!important;--text:#f3f7fd!important;--muted:#b9cce0!important;
  --accent:#caa8f1!important;--accent-soft:#caa8f12e!important;--accent-contrast:#281738!important;
  --blue:#8acaff!important;--mint:#69ebc4!important;--violet:#caa8f1!important;
}
html[data-design="2"][data-mode="dark"] body.nightfall-homeland{background:#192739!important;color:#f3f7fd!important}
html[data-design="2"][data-mode="dark"] body.nightfall-homeland .shell{background:#192739!important;color:#f3f7fd!important}
html[data-design="2"][data-mode="dark"] body.nightfall-homeland :is(.production-card .qty,.product-row .qty,.flow-card .qty,.profit,.positive,.num.profit){color:#69ebc4!important}
html[data-design="2"][data-mode="dark"] body.nightfall-homeland :is(.product-row p,.production-card .product-row p,.flow-card small,.layout-legend small){color:#a9c9e6}
html[data-design="2"][data-mode="dark"] body.nightfall-homeland :is(.production-card,.flow-card,.crafting-view-card){border-color:#58738d!important}
html[data-design="2"][data-mode="dark"] body.nightfall-homeland :is(.production-card>h3,.flow-card>h3){border-bottom-color:#58738d70!important}

/* Event dialog: help is a separate, reachable action; close always has its own hit target. */
#event-center-content .event-dialog-head{position:relative!important;padding-right:66px!important}
#event-center-content .event-dialog-close{position:absolute!important;top:10px!important;right:10px!important;z-index:12!important;display:flex!important;align-items:center;justify-content:center;min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;border-radius:12px!important;border:1px solid #b78bd478!important;background:#281d36!important;color:#fff!important;cursor:pointer}
#event-center-content .event-head-help{position:static!important;flex:0 0 44px!important;order:0!important;align-self:flex-start!important;min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important;padding:0!important;z-index:3!important}
@media(max-width:760px){#event-center-content .event-dialog-head{display:flex!important;flex-wrap:wrap!important;align-content:start!important;gap:10px!important;padding:12px 66px 12px 12px!important}#event-center-content .event-dialog-head>div:first-child{flex:1 1 100%!important;min-width:0!important}#event-center-content .event-head-help{position:absolute!important;top:10px!important;right:62px!important}#event-center-content .event-v2-controls{flex:1 1 100%!important;min-width:0!important;flex-wrap:wrap!important}#event-center-content .event-dialog-close{top:10px!important;right:9px!important}#event-center-content .event-dialog-head>div:first-child{padding-right:44px!important}}

/* Responsive recalculation: a direct action when the sidebar Calculate is in Adjust. */
.recalc-note>div{min-width:0}
.recalc-note .recalc-inline-action{display:none!important;width:max-content;max-width:100%;min-height:42px;margin-top:12px;padding:9px 16px;border-radius:10px;cursor:pointer;font-size:14px;font-weight:750}
@media(max-width:1180px){html.aniiland-phone body .recalc-note .recalc-inline-action{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;background:var(--accent,#c69af3)!important;color:var(--accent-contrast,#27143b)!important;border:1px solid var(--accent,#c69af3)!important}}

/* Solid tabbar backing extends behind its buttons and into the iOS safe-area. */
@media(max-width:1180px){html.aniiland-phone body #m-tabbar{background:var(--panel,#223247)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:isolate!important}html.aniiland-phone body #m-tabbar::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--panel,#223247);border-radius:inherit;pointer-events:none}html.aniiland-phone body #m-tabbar button:not(.active){background:var(--panel,#223247)!important}}

/* Mobile Homeland: icon, My RV and Harvest Moon are attached to the sticky
   Planner Settings bar, rather than the global (nonsticky) site header. */
.homeland-mobile-shortcuts{display:none}
@media(max-width:1180px){
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland header.hub-header.homeland-global{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"utilities" "menu" "tools"!important;
    align-items:center!important;justify-content:stretch!important;
    gap:8px 10px!important;padding:10px 12px!important;
    min-height:0!important;height:auto!important;background:var(--bg,#192739)!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-brand-row{
    display:none!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-brand{
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:0!important;min-width:0!important;width:48px!important;height:48px!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-brand img{
    display:block!important;width:44px!important;height:44px!important;flex:0 0 44px!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-brand>span{display:none!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr) minmax(0,1.1fr)!important;
    align-items:center!important;gap:8px!important;min-width:0!important;
    grid-column:1/-1!important;grid-row:1!important;
    box-sizing:border-box!important;width:100%!important;
    padding:8px 12px 6px!important;
    background:var(--panel,#223247)!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts .homeland-mobile-brand{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:48px!important;height:48px!important;min-width:0!important;
    padding:0!important;margin:0!important;overflow:hidden!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts .homeland-mobile-brand img{
    display:block!important;width:44px!important;height:44px!important;flex:0 0 44px!important;object-fit:contain!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts .homeland-mobile-brand>span{display:none!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts :is(#myrv-head-btn,#event-center-btn){
    display:flex!important;align-items:center!important;justify-content:center!important;
    position:static!important;box-sizing:border-box!important;min-width:0!important;
    width:100%!important;max-width:100%!important;min-height:44px!important;
    height:44px!important;max-height:44px!important;margin:0!important;padding:5px 6px!important;
    border:1px solid var(--line,#718caa)!important;border-radius:22px!important;
    background:var(--panel,#223247)!important;color:var(--text,#f3f7fd)!important;
    gap:5px!important;font:750 12px/1.2 'Segoe UI',system-ui,sans-serif!important;
    white-space:nowrap!important;overflow:hidden!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts #myrv-head-btn>span{display:none!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts #myrv-head-btn:after{
    content:'My RV';display:inline!important;flex:none!important;white-space:nowrap!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts #event-center-btn>span{display:none!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts :is(#myrv-head-btn,#event-center-btn) :is(img,svg){
    display:block!important;flex:0 0 27px!important;width:27px!important;height:27px!important;min-width:0!important;object-fit:contain!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts #event-center-progress{
    display:inline-flex!important;justify-content:center!important;align-items:center!important;
    padding:4px 6px!important;min-width:40px!important;max-width:none!important;
    font-size:12px!important;line-height:1.2!important;border-radius:999px!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-utilities{
    grid-area:utilities!important;min-width:0!important;display:flex!important;
    justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;
    padding:0!important;margin:0!important;gap:7px!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-tool-toggle{
    grid-area:menu!important;grid-column:1/-1!important;margin:0!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-nav{
    grid-area:tools!important;grid-column:1/-1!important;min-width:0!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-subnav{display:none!important}
}
@media(max-width:360px){
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland header.hub-header.homeland-global{
    grid-template-columns:minmax(0,1fr)!important;gap:6px!important;padding:8px!important
  }
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-brand{width:40px!important;height:40px!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .hub-header .hub-brand img{width:38px!important;height:38px!important;flex-basis:38px!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts{grid-template-columns:40px minmax(0,1fr) minmax(0,1.1fr)!important;gap:5px!important;padding-inline:8px!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts .homeland-mobile-brand{width:40px!important;height:40px!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts .homeland-mobile-brand img{width:38px!important;height:38px!important;flex-basis:38px!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts :is(#myrv-head-btn,#event-center-btn){gap:3px!important;padding:4px!important}
  html.aniiland-phone:is(#mobile1,html):is(#mobile2,html):is(#mobile3,html):is(#mobile4,html):is(#mobile5,html):is(#mobile6,html) body.nightfall-homeland .homeland-mobile-shortcuts :is(#myrv-head-btn,#event-center-btn) :is(img,svg){width:22px!important;height:22px!important;flex-basis:22px!important}
}


/* Feedback R3: keep classic saturated button contrast on the balanced dark theme.
   The site panels remain Moonstone; only active/action controls receive violet. */
html[data-design="2"][data-mode="dark"]:is(#classic-btn-a,html):is(#classic-btn-b,html):is(#classic-btn-c,html) body.nightfall-homeland :is(
  .shell .setup-mode-switch button.active,
  .shell .segmented button.active,
  .shell .goal-btn.active,
  .shell button.primary,
  .shell .planner-sidebar>.primary,
  #m-tabbar button.active,
  #layout-root .layout-icon-modes button[aria-pressed="true"],
  .recalc-note .recalc-inline-action
){background:#7342ae!important;background-color:#7342ae!important;border-color:#9864ce!important;color:#fff!important;text-shadow:none!important}
html[data-design="2"][data-mode="dark"]:is(#classic-btn-a,html):is(#classic-btn-b,html):is(#classic-btn-c,html) body.nightfall-homeland :is(
  .shell .setup-mode-switch button.active,
  .shell .segmented button.active,
  .shell .goal-btn.active,
  .shell button.primary,
  .shell .planner-sidebar>.primary,
  #m-tabbar button.active,
  #layout-root .layout-icon-modes button[aria-pressed="true"],
  .recalc-note .recalc-inline-action
) :is(span,small,b,strong,svg){color:#fff!important}
html[data-design="2"][data-mode="dark"]:is(#classic-btn-a,html):is(#classic-btn-b,html):is(#classic-btn-c,html) body.nightfall-homeland :is(.shell button.primary,.shell .setup-mode-switch button.active,.shell .segmented button.active,#m-tabbar button.active):hover:not(:disabled){background:#8450c0!important;background-color:#8450c0!important;border-color:#b183e2!important}
/* Upgrade-planning actions: the Important button is gold; the others violet-outline.
   Restore the classic compact action treatment without affecting other UI. */
html[data-design="2"][data-mode="dark"]:is(#classic-btn-a,html):is(#classic-btn-b,html):is(#classic-btn-c,html) body.nightfall-homeland .upgrade-planning-tools{
  background:#152634!important;background-color:#152634!important;border-color:#3a5364!important
}
html[data-design="2"][data-mode="dark"]:is(#classic-btn-a,html):is(#classic-btn-b,html):is(#classic-btn-c,html) body.nightfall-homeland .upgrade-tool-actions .mini-action{
  background:#2c243b!important;background-color:#2c243b!important;
  border:1px solid #74528f!important;color:#e8d0ff!important;font-weight:800!important
}
html[data-design="2"][data-mode="dark"]:is(#classic-btn-a,html):is(#classic-btn-b,html):is(#classic-btn-c,html) body.nightfall-homeland .upgrade-tool-actions .mini-action.important{
  background:#382d12!important;background-color:#382d12!important;
  border-color:#aa801d!important;color:#ffe07a!important
}
html[data-design="2"][data-mode="dark"]:is(#classic-btn-a,html):is(#classic-btn-b,html):is(#classic-btn-c,html) body.nightfall-homeland .upgrade-tool-actions .mini-action:hover{
  background:#46315b!important;background-color:#46315b!important;color:#fff!important
}
html[data-design="2"][data-mode="dark"]:is(#classic-btn-a,html):is(#classic-btn-b,html):is(#classic-btn-c,html) body.nightfall-homeland .upgrade-tool-actions .mini-action.important:hover{
  background:#51401b!important;background-color:#51401b!important;color:#fff2ac!important
}

/* RV costs: content-height modal. The viewport is only a *maximum*, not a
   target size. On short screens, the dialog itself scrolls instead of clipping. */
html body #facility-price-dialog.facility-price-dialog{
  display:block!important;box-sizing:border-box!important;
  height:max-content!important;min-height:0!important;
  width:min(1630px,calc(100vw - 32px))!important;
  max-width:calc(100vw - 24px)!important;
  max-height:calc(100dvh - 32px)!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  margin:auto!important;padding:0!important;overscroll-behavior:contain
}
html body #facility-price-dialog:not([open]){display:none!important}
html body #facility-price-content{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
html body #facility-price-dialog .facility-price-columns{
  align-items:start!important;min-height:0!important;height:auto!important
}
html body #facility-price-dialog .facility-price-column{
  height:max-content!important;min-height:0!important;align-self:start!important
}
html body #facility-price-dialog>.close{
  position:sticky!important;top:10px!important;float:right!important;z-index:20!important;
  margin:10px 10px -40px 0!important
}
@media(max-width:1100px){
  html body #facility-price-dialog.facility-price-dialog{
    width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 20px)!important
  }
  html body #facility-price-dialog .facility-price-column .facility-price-list{
    grid-template-columns:1fr!important
  }
}
@media(max-width:760px){
  html body #facility-price-dialog.facility-price-dialog{
    width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;
    max-height:calc(100dvh - 18px)!important
  }
  html body #facility-price-dialog .facility-price-columns{
    grid-template-columns:minmax(0,1fr)!important
  }
}

/* The older cost popups were darker than the new pastel cards; split the difference. */
html[data-design="2"][data-mode="dark"]:is(#cost-a,html):is(#cost-b,html) body.nightfall-homeland #facility-price-dialog{
  background:#162631!important;background-color:#162631!important;border-color:#3e5869!important
}
html[data-design="2"][data-mode="dark"]:is(#cost-a,html):is(#cost-b,html) body.nightfall-homeland #facility-price-dialog .facility-price-column{
  background:#142531!important;background-color:#142531!important;border-color:#3a5264!important
}
html[data-design="2"][data-mode="dark"]:is(#cost-a,html):is(#cost-b,html) body.nightfall-homeland #facility-price-dialog .facility-price-column-head{
  background:#1a303e!important;background-color:#1a303e!important;border-bottom-color:#3a5264!important
}
html[data-design="2"][data-mode="dark"]:is(#cost-a,html):is(#cost-b,html) body.nightfall-homeland #facility-price-dialog .facility-price-row{
  background:#192c39!important;background-color:#192c39!important;border-color:#3a5264!important
}
html[data-design="2"][data-mode="dark"]:is(#cost-a,html):is(#cost-b,html) body.nightfall-homeland #facility-price-dialog .facility-price-row.important-upgrade{
  background:#262a24!important;background-color:#262a24!important;border-color:#ac851e!important;box-shadow:inset 3px 0 0 #d9b64f!important
}
html[data-design="2"][data-mode="dark"]:is(#cost-a,html):is(#cost-b,html) body.nightfall-homeland #facility-price-dialog .facility-price-totals>span{
  background:#172a36!important;background-color:#172a36!important;border-color:#385368!important
}
html[data-design="2"][data-mode="dark"]:is(#cost-a,html):is(#cost-b,html) body.nightfall-homeland #facility-price-dialog .facility-price-totals>span.important{
  background:#302710!important;background-color:#302710!important;border-color:#987321!important
}

/* Feedback R6: the phone's safe-area inset is *inside* the two-tab dock.
   Previously the dock was positioned ABOVE the inset, leaving live plan
   content visible in the exposed strip under its bottom border. Keep actual
   ad-anchor clearance OUTSIDE the dock so filled mobile ads are not hidden. */
@media(max-width:1180px){
  html.aniiland-phone:is(#dockgap1,html):is(#dockgap2,html):is(#dockgap3,html):is(#dockgap4,html):is(#dockgap5,html):is(#dockgap6,html) body.nightfall-homeland #m-tabbar{
    --m-nav-safe-fill:env(safe-area-inset-bottom,0px);
    box-sizing:border-box!important;
    bottom:var(--ad-anchor-clearance,0px)!important;
    height:calc(72px + var(--m-nav-safe-fill))!important;
    min-height:calc(72px + var(--m-nav-safe-fill))!important;
    padding:4px 8px calc(4px + var(--m-nav-safe-fill))!important;
    align-content:start!important;
  }
}

/* R10: safe panning in the floor planner; movable facilities only in Edit mode. */
#layout-root .layout-zoom-controls{grid-template-columns:minmax(93px,1.3fr) repeat(3,minmax(34px,1fr)) auto;align-items:center}
#layout-root #layout-move-lock{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:36px;padding:7px 8px;border:1px solid #73667f;border-radius:9px;background:#302c38;color:#ebe3ef;font:inherit;font-size:12px;font-weight:750;line-height:1.2;white-space:nowrap;cursor:pointer}
#layout-root #layout-move-lock.is-locked{border-color:#9e77d2;background:#7342ae;color:#fff;box-shadow:0 0 0 1px #9365c4}
#layout-root #layout-move-lock:focus-visible{outline:2px solid #f1ddff;outline-offset:2px}
#layout-root .layout-scroll.is-layout-locked .placed{cursor:grab}
@media(max-width:480px){#layout-root .layout-zoom-controls{gap:5px;grid-template-columns:minmax(84px,1.25fr) repeat(3,minmax(30px,1fr)) auto}#layout-root #layout-move-lock{font-size:11px;padding:7px 5px;min-height:36px}#layout-root .layout-zoom-value{min-width:34px;font-size:11px}}
/* R10: closed Harvest Moon Event Center. The launcher remains clickable for the notice. */
#event-center-btn.event-ended,#event-center-btn.event-ended:hover,#event-center-btn.event-ended:focus-visible{filter:grayscale(1);opacity:.73;background:linear-gradient(135deg,#4b4c58,#333540);color:#eef0f3;border-color:#777983;box-shadow:none}
#event-center-btn.event-ended #event-center-progress{background:#62646e;color:#e5e6ec}
#event-center-dialog.event-finished{width:min(510px,calc(100vw - 24px))!important;max-width:510px!important;height:auto!important;max-height:min(90dvh,680px)!important;overflow:auto!important;padding:0;border:1px solid #62616e;border-radius:17px!important;background:#1b1b25;color:#f3f1f7;inset:0!important;margin:auto!important}
#event-center-dialog.event-finished #event-center-content{overflow:visible!important;height:auto!important;max-height:none!important;display:block!important}
#event-center-dialog .event-ended-shell{display:flex;flex-direction:column;max-width:100%;color:#f3f1f7}
#event-center-dialog .event-ended-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid #ffffff20}
#event-center-dialog .event-ended-header h2{margin:3px 0 0;font-size:1.2rem;line-height:1.3;color:#f3f1f7}
#event-center-dialog .event-ended-header .eyebrow{font-size:.7rem;color:#b4b1bf;letter-spacing:.1em}
#event-center-dialog .event-ended-close{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:9px;border:1px solid #ffffff35;background:#ffffff12;color:#fff;font-size:26px;line-height:1;cursor:pointer}
#event-center-dialog .event-ended-body{text-align:center;padding:24px 24px 28px}
#event-center-dialog .event-ended-symbol{font-size:35px;line-height:1.2;display:inline-block;filter:grayscale(1);opacity:.85}
#event-center-dialog .event-ended-body h3{font-size:1.35rem;margin:12px 0;color:#f8f6fa}
#event-center-dialog .event-ended-body p{margin:0 auto 12px;max-width:390px;line-height:1.55;color:#edeaf2}
#event-center-dialog .event-ended-body small{display:block;max-width:395px;margin:auto;font-size:.85rem;line-height:1.5;color:#b8b3c3}
#event-center-dialog .event-ended-done{margin-top:20px;padding:10px 28px;border-radius:9px;background:#65428c;border:1px solid #8965aa;color:#fff;font-weight:700;cursor:pointer}
@media(max-width:760px){#event-center-dialog.event-finished{width:calc(100vw - 20px)!important;max-width:510px!important;height:auto!important;max-height:90dvh!important;inset:0!important;margin:auto!important}#event-center-dialog .event-ended-body{padding:22px 16px 24px}#event-center-dialog .event-ended-header{padding:13px 15px}}

/* Center the compact ended notice without the old edge-to-edge fullscreen insets. */
#event-center-dialog.event-finished{inset:auto!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;margin:0!important}

/* R15: canvas-local placement lock. Overlay stays in the upper-right of the floor viewport while panning. */
#layout-root .layout-zoom-controls{grid-template-columns:minmax(34px,1fr) minmax(34px,1fr) auto;max-width:240px;gap:7px}
#layout-root .layout-scroll-frame{position:relative;min-width:0;max-width:100%;isolation:isolate}
#layout-root .layout-scroll-frame>.layout-scroll{width:100%}
#layout-root .layout-scroll-frame>#layout-move-lock{position:absolute;right:12px;top:12px;z-index:25;min-width:82px;min-height:38px;padding:7px 12px;background:#302c38;box-shadow:0 4px 16px #0009}
#layout-root .layout-scroll-frame>#layout-move-lock.is-locked{background:#7342ae}
@media(max-width:480px){#layout-root .layout-zoom-controls{grid-template-columns:minmax(32px,1fr) minmax(32px,1fr) auto;max-width:200px}#layout-root .layout-scroll-frame>#layout-move-lock{right:9px;top:9px;font-size:12px;min-width:78px}}


/* ---- experimental/ad-safety.css ---- */
body{padding-bottom:var(--ad-anchor-clearance,0px)}.hub-ad-dismissed{display:none!important}.ad-overlay-blocked .hub-anchor-preview{visibility:hidden!important;pointer-events:none!important}.hub-provider-ad-close{position:fixed!important;bottom:calc(var(--ad-anchor-clearance,80px) + env(safe-area-inset-bottom))!important;right:12px!important;z-index:999999!important;width:40px!important;height:40px!important;border-radius:50%!important;background:#24364f!important;color:#fff!important;border:1px solid #a5b9d6!important;cursor:pointer}.hub-provider-ad-close[hidden]{display:none!important}.hub-anchor-preview{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(970px,100%);height:80px;background:#24364f;color:white;z-index:900;display:grid;place-items:center;padding-right:48px}.hub-anchor-preview button,.hub-rail-preview button{position:absolute;right:6px;top:6px;width:36px;height:36px}.hub-rail-preview{display:none}@media(min-width:1760px){.hub-rail-preview{display:grid;place-items:center;position:fixed;top:220px;width:140px;height:500px;border:1px dashed #8198b9;color:#59718f;z-index:50}.hub-rail-left{left:8px}.hub-rail-right{right:8px}}

html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad){min-height:0!important;height:auto!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;clear:both}html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad):not(.ad-filled){margin-block:0!important}html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad-slot){min-height:0!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important}html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad)[hidden]{display:none!important}.hub-ad>small{display:none!important}.hub-ad.ad-filled{margin-block:20px!important}.hub-ad-slot{text-align:center}

@media(min-width:1760px){html:is(#rails37,html):is(#safe37,html):is(#tools37,html) body .hub-main{width:calc(100% - 360px)!important;max-width:1840px!important;margin-inline:auto!important}}

html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad){display:flex!important;justify-content:center!important;align-items:flex-start!important;gap:16px!important}
html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad)[hidden]{display:none!important}

html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad-slot)[hidden]{display:none!important}



/* Ezoic display slots must have measurable width before showAds runs. */
.hub-ad{width:100%;max-width:100%;box-sizing:border-box;overflow:visible!important}
.hub-ad .hub-ad-slot{display:block;width:min(970px,100%)!important;min-width:0!important;max-width:100%;margin-inline:auto;box-sizing:border-box}
@media(max-width:767px){.hub-ad .hub-ad-slot{width:min(320px,100%)!important}}


/* ---- experimental/accent-consistency.css ---- */
/* Aniiland's shared Moonstone purple. Only dark design 2 is changed.
   Content, status colors and map-specific palettes remain independent. */
html[data-design="2"]:not([data-mode="light"]){
  --accent:#7342ae!important;
  --accent-contrast:#fff!important;
  --accent-soft:#7342ae32!important;
  --violet:#b68bdf!important;
}
/* Homeland sets CSS custom properties on its descendants; bring those to
   the same accent so built-in dialogs/controls never revert to pastel. */
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland,
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland *{
  --accent:#7342ae!important;
  --accent-contrast:#fff!important;
  --accent-soft:#7342ae32!important;
}
/* Main navigation: keep the quiet unselected tabs, use restrained plum on
   the selected tab rather than giving every tab a solid purple fill. */
html[data-design="2"]:not([data-mode="light"]) body .hub-nav a[aria-current="page"]{
  background:linear-gradient(120deg,#7342ae50,#7342ae22)!important;
  border-color:#9864ce!important;
  box-shadow:inset 0 -2px #9864ce,0 3px 13px #0a102433!important;
  color:#fff!important;
}
html[data-design="2"]:not([data-mode="light"]) body .hub-nav a:hover:not([aria-current="page"]){
  background:#7342ae22!important;border-color:#9864ce80!important;
}
/* Primary actions and selected tabs across the hub, Dex, event pages and
   the Homeland sub-navigation. Do not restyle other feature palettes. */
html[data-design="2"]:not([data-mode="light"]) body :is(
  .hub-account-actions .account-register,
  .homeland-subnav>a[aria-current],
  .hero-primary,
  .home27-actions a:first-child,
  .rt-tabs a[aria-current],
  .rt-form-switch button[aria-pressed="true"],
  .egg-tiers button[aria-pressed="true"],
  .color-options button[aria-pressed="true"],
  .home-design-picker a[aria-current],
  .rt-toolbar button.primary,
  .rt-dialog button.primary,
  .ec-modal button.primary,
  .event-toolbar button.primary
){
  background:#7342ae!important;background-color:#7342ae!important;
  border-color:#9864ce!important;color:#fff!important;
  text-shadow:none!important;
}
html[data-design="2"]:not([data-mode="light"]) body :is(
  .hub-account-actions .account-register,
  .homeland-subnav>a[aria-current],
  .hero-primary,
  .home27-actions a:first-child,
  .rt-tabs a[aria-current],
  .rt-form-switch button[aria-pressed="true"],
  .egg-tiers button[aria-pressed="true"],
  .color-options button[aria-pressed="true"],
  .home-design-picker a[aria-current]
):hover{background:#8450c0!important;background-color:#8450c0!important;border-color:#b183e2!important}
html[data-design="2"]:not([data-mode="light"]) body :is(
  .hub-account-actions .account-register,
  .homeland-subnav>a[aria-current],
  .hero-primary,
  .home27-actions a:first-child,
  .rt-tabs a[aria-current],
  .home-design-picker a[aria-current]
) :is(span,b,strong,small,svg){color:inherit!important}
/* Header half-moon selector should follow the same accent when it is on. */
html[data-design="2"]:not([data-mode="light"]) body .mode-half.is-current{background:#7342ae!important;color:#fff!important}

/* Compact worker strategy buttons: maintain their stable data-worker keys. */
.worker-level-segmented{
  grid-template-columns:minmax(0,.65fr) minmax(0,1.15fr) minmax(0,1.35fr)!important;
  gap:3px!important
}
.worker-level-segmented button{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;min-width:0!important;
  font-size:11px!important;line-height:1.16!important;
  font-weight:750!important;letter-spacing:-.015em!important;
  text-align:center!important;white-space:normal!important;
  overflow-wrap:normal!important;word-break:normal!important;
  padding:8px 4px!important
}
.worker-level-segmented button .worker-tier-sub{
  display:block;font:inherit;font-size:10px;line-height:1.12;
  opacity:.95;margin-top:2px;white-space:nowrap
}
@media(max-width:750px){
  .worker-level-segmented button{font-size:10px!important;padding:7px 2px!important}
  .worker-level-segmented button .worker-tier-sub{font-size:9px!important}
}


/* ---- Ezoic anchor and responsive ad presentation ---- */
/* Dynamic display placements start collapsed and only occupy space after a fill. */
.hub-ad[data-ad-empty="1"]{display:none!important}
.hub-ad.ad-filled{display:flex!important;justify-content:center;align-items:center;max-width:100%;box-sizing:border-box;margin-block:20px}
.hub-ad-slot{max-width:100%;text-align:center}

/* A stronger empty-slot rule overrides legacy layout rules that set every .hub-ad to display:flex. */
html:is(#ads37,html):is(#empty37,html) body :is(.hub-ad)[data-ad-empty="1"]{display:none!important}


/* ---- experimental/local-visual-adjustments.css ---- */
/* Aniiland 3.1.8 local visual tune: only UI surfaces, not text, images or video. */
/* Primary dark-mode surfaces ~10% darker; raised/bright surfaces ~15% darker. */
html[data-design="2"]:not([data-mode="light"]) {
  --bg:#151f32;
  --panel:#233047;
  --raised:#2d3e54;
  --line:#536782;
}
html[data-design="2"]:not([data-mode="light"]) body,
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland,
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell {
  --bg:#151f32!important;
  --panel:#233047!important;
  --raised:#2d3e54!important;
  --line:#536782!important;
  background-color:#151f32!important;
}
html[data-design="2"]:not([data-mode="light"]) body .hub-header {
  background:linear-gradient(110deg,#0d1423f0,#151a2eee)!important;
}
html[data-design="2"]:not([data-mode="light"]) .homeland-subnav {
  background:#222f43f5!important;
}
html[data-design="2"]:not([data-mode="light"]) body :is(
  .metric,.production-card,.flow-card,.upgrade-card,.focus-col,.rf-row,.advanced-facility-card,
  .section-card,.facility-card,.content-card,.panel,.workspace,.event-card,.egg-card,
  .rt-creature-card,.rt-toolbar,.event-strategy-card,.event-strategy-hero,.tool-card
) {
  border-color:#4c607c!important;
}
html[data-design="2"]:not([data-mode="light"]) body :is(.metric,.production-card,.flow-card,.upgrade-card,.section-card,.facility-card,.content-card,.panel,.workspace,.rt-toolbar) {
  background-color:var(--panel)!important;
}
html[data-design="2"]:not([data-mode="light"]) body :is(.focus-dialog,.advanced-setup-dialog,.myrv-dialog) {
  background-color:#1d293d!important;
}
html[data-design="2"]:not([data-mode="light"]) body :is(.focus-col,.rf-row,.advanced-facility-card,.rs-row,.focus-note) {
  background-color:#1e2c43!important;
}
html[data-design="2"]:not([data-mode="light"]) body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background-color:#2d3e54!important;
}
html[data-design="2"]:not([data-mode="light"]) body :is(.tool-card,.egg-card,.event-card) {
  background:linear-gradient(150deg,#203047,#151d32)!important;
}
html[data-design="2"]:not([data-mode="light"]) body :is(.metric:first-child,.upgrade-part,.owned-stock-duration) {
  background-color:#24354a!important;
}
/* Recipe Focus header and selected duration do not scroll away with ingredients. */
#focus-dialog[open] { max-height:calc(100dvh - 24px); overflow:hidden; display:flex; flex-direction:column; min-height:0; }
#focus-dialog .advanced-setup-head {flex:0 0 auto!important;min-height:auto!important;overflow:visible!important;align-items:flex-start;}
#focus-dialog .advanced-setup-head>div:first-child {min-width:0;flex:1}
#focus-dialog .advanced-setup-head .advanced-dialog-close {flex:0 0 auto}
#focus-dialog .owned-stock-duration {flex:0 0 auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px 13px;padding:11px 16px;margin:0 20px 10px;max-width:calc(100% - 40px);}
#focus-dialog .owned-stock-duration>b {flex:0 0 auto;}
#focus-dialog .owned-stock-duration>small {flex:1 1 210px;line-height:1.5;}
#focus-dialog .owned-stock-segment {flex:0 1 auto;min-width:0;max-width:100%;}
#focus-dialog #rf-problems {flex:0 1 auto;max-height:24dvh;overflow-y:auto;}
#focus-dialog .focus-grid {flex:1 1 auto;min-height:100px;overflow-y:auto;align-content:start;overscroll-behavior:contain;}
#focus-dialog .focus-col {min-width:0;}
#focus-dialog .advanced-setup-footer {flex:0 0 auto;}
@media(max-width:760px){
 #focus-dialog .advanced-setup-head {padding:13px 16px 10px!important;gap:8px;}
 #focus-dialog .advanced-setup-head h2 {font-size:20px!important;line-height:1.2}
 #focus-dialog .advanced-setup-head p {font-size:12px;line-height:1.45}
 #focus-dialog .owned-stock-duration {margin:0 12px 7px;max-width:calc(100% - 24px);padding:8px 10px;}
 #focus-dialog .owned-stock-duration>small{font-size:11px;flex-basis:100%;}
 #focus-dialog .owned-stock-segment{width:100%;max-width:100%;}
 #focus-dialog .owned-stock-segment button{flex:1;padding:9px 5px;font-size:12px;}
 #focus-dialog .focus-grid{min-height:90px;padding:10px;}
}

/* Local visual V4: sidebar background tracks the full shell/column height.
   Top sticky controls remain scrollable, anchored flush to the actual column. */
@media (min-width:1025px){
 html[data-design="2"] body.nightfall-homeland .shell{
   position:relative!important;isolation:isolate;overflow:visible!important;align-items:stretch!important;
 }
 html[data-design="2"] body.nightfall-homeland .shell::before{
   content:"";position:absolute;left:0;top:0;bottom:0;
   width:320px;z-index:0;pointer-events:none;
   background:#182234;border-right:1px solid #3a4d61;
 }
 html[data-design="2"] body.nightfall-homeland .shell>.planner-sidebar{
   position:sticky!important;align-self:start!important;
   top:calc(var(--homeland-nav-height,62px) + 9px)!important;
   height:auto!important;max-height:calc(100dvh - var(--homeland-nav-height,62px) - 18px)!important;
   overflow-y:auto!important;overscroll-behavior-y:contain;
   z-index:3!important;background:#182234!important;
   border-right:1px solid #3a4d61!important;
   border-radius:0!important;box-shadow:none!important;
 }
 html[data-design="2"] body.nightfall-homeland .shell>main#content{position:relative;z-index:1}
}
@media(min-width:1025px) and (max-width:1380px){
 html[data-design="2"] body.nightfall-homeland .shell::before{width:244px!important}
}
@media(max-width:1024px){
 html[data-design="2"] body.nightfall-homeland .shell::before{content:none!important}
}
/* Darken surfaces by ~8% more, and the brightest text/accent tones by ~20%.
   Do not dim sprites, Aniimo artwork, icons, embedded ads or screenshots. */
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland,
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell{
 --bg:#131c2e!important;
 --panel:#202c41!important;
 --raised:#29384c!important;
 --line:#4e5f76!important;
 --text:#c9ccd6!important;
 --muted:#a7b3c4!important;
 --mint:#96c8aa!important;
 --violet:#b69abc!important;
 color:var(--text)!important;
}
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland,
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell {background-color:var(--bg)!important;}
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell :is(.metric,.production-card,.flow-card,.upgrade-card,.section-card,.facility-card,.content-card,.panel,.workspace) {background-color:#202c41!important;}
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background-color:#29384c!important;color:#c9ccd6!important;}
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell :is(.qty,.profit,.positive,.net-positive,.metric-net,.metric .value.positive){color:#8bc9a7!important;}
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell .production-use-tag.sell-use{color:#9acdb4!important;border-color:#39785e!important;background:#15352e!important;}
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland :is(.production-use-tag.recipe-use,.eyebrow,.sidebar-title){color:#b89cc8!important;}
html[data-design="2"]:not([data-mode="light"]) body.nightfall-homeland .shell :is(.setup-mode-switch button.active,.segmented button.active,.goal-btn.active,.primary){background:#76549c!important;color:#e2d5e6!important;}
/* Recipe Focus 24H / 7D / Until Next RV is separate from the main plan.
   Stay visible at the top of the popup and next to Recipe Focus in the sidebar. */
.sidebar-stock-duration{
 display:flex;flex-direction:column;gap:6px;margin:7px 0 12px;
 padding:10px;border:1px solid #56617b;border-radius:10px;
 background:#243449;color:#d7cee7;
}
.sidebar-stock-duration strong{font-size:11px;font-weight:750;line-height:1.3}
.sidebar-stock-duration small{font-size:10px;line-height:1.4;color:#b6bbce}
.sidebar-stock-duration .owned-stock-segment{display:flex;gap:4px;min-width:0;width:100%}
.sidebar-stock-duration .owned-stock-segment button{
 font-size:10px!important;line-height:1.25!important;padding:7px 4px!important;
 min-height:34px!important;min-width:0!important;flex:1 1 auto!important;
 border:1px solid #52647f!important;border-radius:7px!important;
 color:#dad6e9!important;background:#2f3c53!important;
}
.sidebar-stock-duration .owned-stock-segment button[data-stock-duration="rv"]{flex:1.8 1 auto!important}
.sidebar-stock-duration .owned-stock-segment button[aria-pressed="true"]{
 color:#fff!important;background:#7342ae!important;border-color:#8f65c4!important;
}
#focus-dialog[open]{
 display:flex!important;flex-direction:column!important;
 width:min(1040px,calc(100vw - 18px))!important;
 height:min(790px,calc(100dvh - 18px))!important;
 max-height:calc(100dvh - 18px)!important;
 margin:auto!important;inset:0!important;overflow:hidden!important;
}
#focus-dialog .advanced-setup-head{flex:0 0 auto!important;overflow:visible!important;min-height:0!important}
#focus-dialog>.owned-stock-duration{
 flex:0 0 auto!important;display:flex!important;flex-wrap:wrap;align-items:center;
 max-width:none!important;width:auto!important;
 margin:0 17px 8px!important;padding:9px 12px!important;
 gap:6px 12px;border:1px solid #6b5b8d!important;border-radius:10px!important;
 background:#27384e!important;visibility:visible!important;
}
#focus-dialog>.owned-stock-duration>b{font-size:13px;font-weight:800;white-space:normal;color:#ccb2ed}
#focus-dialog>.owned-stock-duration>small{flex:1 1 160px;font-size:11px;line-height:1.4;color:#a8b6c9}
#focus-dialog>.owned-stock-duration .owned-stock-segment{
 display:flex;flex-wrap:nowrap;gap:4px;max-width:100%;min-width:0;
}
#focus-dialog>.owned-stock-duration .owned-stock-segment button{
 display:inline-flex;justify-content:center;align-items:center;
 width:auto!important;min-height:36px!important;min-width:45px!important;
 padding:7px 10px!important;border-radius:8px!important;
 background:#314560!important;color:#e4dcf0!important;
}
#focus-dialog>.owned-stock-duration .owned-stock-segment button[aria-pressed="true"]{
 background:#7342ae!important;color:#fff!important;border-color:#8f65c4!important;
}
#focus-dialog #rf-problems{flex:0 1 auto;max-height:22dvh;overflow-y:auto}
#focus-dialog .focus-grid{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;align-content:start}
#focus-dialog .advanced-setup-footer{
 flex:0 0 auto!important;display:flex!important;
 padding:11px 16px!important;gap:9px!important;align-items:center!important;
 justify-content:space-between!important;background:#172338!important;
}
#focus-dialog .advanced-setup-footer>div:last-child{display:flex!important;gap:8px!important}
/* Purple RV advisory, same treatment in Simple and Custom Setup. */
html[data-design="2"] body.nightfall-homeland #content .custom-resource-upgrade-warning{
 color:#dbc4fb!important;background:rgba(100,61,139,.20)!important;
 border:1px solid #926abf!important;border-left:4px solid #ab80de!important;
 padding:12px 15px!important;margin:12px 0!important;
 border-radius:10px!important;font-weight:600!important;
}
html[data-design="2"] body.nightfall-homeland #content .custom-resource-upgrade-warning span{color:inherit!important}
@media(max-width:760px){
 #focus-dialog[open]{height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important}
 #focus-dialog .advanced-setup-head{padding:12px 12px 8px!important}
 #focus-dialog .advanced-setup-head p{font-size:11px;line-height:1.3}
 #focus-dialog>.owned-stock-duration{margin:0 9px 7px!important;padding:7px 8px!important;gap:5px!important}
 #focus-dialog>.owned-stock-duration>small{display:none!important}
 #focus-dialog>.owned-stock-duration .owned-stock-segment{width:100%;display:flex;flex:1 1 100%}
 #focus-dialog>.owned-stock-duration .owned-stock-segment button{padding:7px 5px!important;flex:1 1 0!important;min-width:0!important;font-size:11px!important}
 #focus-dialog .advanced-setup-footer>span.hint{display:none!important}
 #focus-dialog .advanced-setup-footer{padding:9px!important}
 #focus-dialog .advanced-setup-footer>div:last-child{width:100%;justify-content:flex-end}
}

/* v6: explicitly surface independently controlled stock duration for every Homeland route. */
#sidebar-stock-duration {display:flex!important;flex-direction:column!important;position:relative;visibility:visible!important;opacity:1!important}
#focus-dialog[open] > .owned-stock-duration {display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:1!important;flex-shrink:0!important}
#focus-dialog[open] > .owned-stock-duration .owned-stock-segment {display:flex!important}
#focus-dialog[open] > .owned-stock-duration .owned-stock-segment button {display:inline-flex!important}

/* Shared Homeland dialog overflow repair (2026-11-04).
   The old flex:0 1 auto / min-height:0 / overflow:auto on dialog headers
   let the header collapse behind the content and hide descriptions.
   Keep headings and controls measurable; scroll only the actual data region. */
body.nightfall-homeland dialog.advanced-setup-dialog[open] > .advanced-setup-head,
body.nightfall-homeland dialog.advanced-setup-dialog[open] > .advanced-setup-toolbar {
  flex:0 0 auto!important;
  min-height:auto!important;
  overflow:visible!important;
}
body.nightfall-homeland dialog.advanced-setup-dialog[open] > .advanced-setup-head > div:first-child {
  flex:1 1 auto;
  min-width:0;
}
body.nightfall-homeland dialog.advanced-setup-dialog[open] > .advanced-setup-head :is(h2,p) {
  height:auto!important;
  max-width:100%;
  white-space:normal!important;
  overflow-wrap:anywhere;
  text-overflow:clip!important;
  line-height:1.35;
}
body.nightfall-homeland dialog.advanced-setup-dialog[open] > .advanced-setup-head > .advanced-dialog-close {
  flex:0 0 auto;
}
body.nightfall-homeland dialog.advanced-setup-dialog[open] > .advanced-setup-content {
  flex:1 1 auto;
  min-height:0!important;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body.nightfall-homeland dialog.advanced-setup-dialog[open] > .advanced-setup-footer {
  flex:0 0 auto!important;
  min-height:auto!important;
}
/* RV Resources has exactly two actions, unlike the three-action Custom Setup.
   The generic phone 3-column grid can strand Save on a separate, tall row. */
body.nightfall-homeland #rv-resources-dialog[open] > .advanced-setup-footer {
  justify-content:flex-end!important;
  align-items:center!important;
  padding:12px 16px!important;
  gap:8px!important;
}
body.nightfall-homeland #rv-resources-dialog[open] > .advanced-setup-footer > div {
  display:flex!important;
  width:auto!important;
  min-width:0;
  flex:0 1 auto;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:9px!important;
}
body.nightfall-homeland #rv-resources-dialog[open] > .advanced-setup-footer > div > button {
  width:auto!important;
  min-width:75px;
  min-height:42px;
  padding:9px 16px!important;
  margin:0!important;
  flex:0 0 auto;
  white-space:normal!important;
}
@media (max-width:560px) {
  body.nightfall-homeland #rv-resources-dialog[open] > .advanced-setup-footer > div {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%!important;
    gap:8px!important;
  }
  body.nightfall-homeland #rv-resources-dialog[open] > .advanced-setup-footer > div > button {
    width:100%!important;
    min-width:0;
  }
}
/* The import confirmation uses the same dialog shell but has no scrollable
   content panel. Allow the complete prompt and its actions to scroll together. */
body.nightfall-homeland dialog.advanced-setup-dialog.myrv-ask[open] {
  display:block!important;
  overflow-y:auto!important;
}
/* Other native popup families scroll themselves; permit translated strings,
   lengthy resource names and small-screen explanatory copy to wrap. */
body.nightfall-homeland :is(
  dialog.info-dialog,dialog.recipe-lock-dialog,dialog.roster-dialog,
  dialog.myrv-dialog,dialog.event-center-dialog,dialog.aniiland-update-dialog
) :is(h1,h2,h3,p,small,label) {
  overflow-wrap:anywhere;
}


/* E Mode Setup: full-width, aligned facility rows. This stylesheet loads after v12.css. */
body.nightfall-homeland .emode-setup-groups {
  display:flex;
  flex-direction:column;
  gap:0;
  border:1px solid rgba(151,125,194,.28);
  border-radius:14px;
  overflow:hidden;
  background:rgba(12,15,26,.22);
}
body.nightfall-homeland .emode-facility-group {
  display:grid;
  grid-template-columns:minmax(150px,190px) minmax(0,1fr);
  align-items:stretch;
  gap:0;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
body.nightfall-homeland .emode-facility-group + .emode-facility-group {
  border-top:1px solid rgba(151,125,194,.2);
}
body.nightfall-homeland .emode-facility-group h3 {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  min-width:0;
  margin:0;
  padding:12px 14px;
  border-right:1px solid rgba(151,125,194,.18);
  background:rgba(105,76,151,.09);
  color:#f0eaff;
  font-size:13px;
  line-height:1.3;
}
body.nightfall-homeland .emode-facility-group h3 small {
  color:#aa9cbd;
  font-size:11px;
  font-weight:600;
  white-space:normal;
}
body.nightfall-homeland .emode-facility-rows {
  display:grid;
  align-content:center;
  gap:0;
  min-width:0;
  padding:2px 10px;
}
body.nightfall-homeland .emode-setup-row {
  display:grid;
  grid-template-columns:30px 76px 76px minmax(210px,1fr) 28px;
  gap:9px;
  align-items:center;
  min-width:0;
  padding:8px 2px;
  border:0;
  border-radius:0;
  background:transparent;
}
body.nightfall-homeland .emode-setup-row + .emode-setup-row {
  border-top:1px solid rgba(151,125,194,.15);
}
body.nightfall-homeland .emode-setup-row > * { min-width:0; }
body.nightfall-homeland .emode-setup-row label {
  display:block;
  min-width:0;
  margin:0;
  color:#aa9cbd;
  font-size:10px;
  font-weight:650;
  letter-spacing:.025em;
}
body.nightfall-homeland .emode-setup-row label > span { display:block;margin:0 0 4px; }
body.nightfall-homeland .emode-number-field select {
  display:block;
  width:100%;
  min-width:0;
  height:34px;
  padding:5px 8px;
  border:1px solid rgba(139,112,178,.36);
  border-radius:8px;
  background:#171522;
  color:#f1eaff;
  font-size:12px;
  font-weight:650;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
body.nightfall-homeland .emode-add-row {
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:34px;
  min-width:0;
  padding:0;
  border:1px solid #765aa0;
  border-radius:8px;
  background:#302342;
  color:#eadcff;
  font-size:19px;
  font-weight:600;
}
body.nightfall-homeland .emode-mode-pill {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:4px;
  width:100%;
  min-width:0;
  padding:3px;
  border:1px solid rgba(139,112,178,.4);
  border-radius:10px;
  background:#15131e;
}
body.nightfall-homeland .emode-mode-pill > .emode-mode-option {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  min-width:0;
  height:34px;
  min-height:34px;
  margin:0;
  padding:0 8px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:#b8afc7;
  font-size:12px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  box-shadow:none;
}
body.nightfall-homeland .emode-mode-option > span { font-size:14px;line-height:1; }
body.nightfall-homeland .emode-mode-option > small { font-size:11px;line-height:1; }
body.nightfall-homeland .emode-mode-pill > .emode-mode-option:hover {
  background:rgba(255,255,255,.08);
  color:#fff;
}
body.nightfall-homeland .emode-mode-pill > .emode-mode-option.active {
  background:#44335d;
  border-color:rgba(190,160,235,.36);
  color:#f3eaff;
  box-shadow:0 1px 4px rgba(0,0,0,.22);
}
body.nightfall-homeland .emode-mode-pill > .emode-mode-option.mode-emode.active {
  background:#563c70;
  color:#fff0ff;
}
body.nightfall-homeland .emode-mode-pill > .emode-mode-option.mode-worker.active {
  background:#294653;
  border-color:rgba(124,190,214,.35);
  color:#e3f7ff;
}
body.nightfall-homeland .emode-row-remove {
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:30px;
  min-width:0;
  padding:0;
  border-radius:8px;
}
body.nightfall-homeland .emode-power-reservation {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:8px 0 12px;
  padding:10px 12px;
  border:1px solid rgba(145,165,195,.3);
  border-radius:10px;
  background:rgba(255,255,255,.035);
}
body.nightfall-homeland .emode-power-reservation > span {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
body.nightfall-homeland .emode-power-reservation small { color:var(--muted); }
body.nightfall-homeland .emode-power-reservation b { font-size:13px;font-variant-numeric:tabular-nums; }
body.nightfall-homeland .emode-power-reservation strong { font-size:12px;color:#b8e4c7; }
body.nightfall-homeland .emode-power-reservation strong.is-insufficient { color:#ffd18b; }
body.nightfall-homeland .emode-reset-button { flex:0 0 auto;white-space:nowrap; }
body.nightfall-homeland .emode-setup-legend {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:10px 0;
}
body.nightfall-homeland .emode-setup-legend > span {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(145,165,195,.22);
  border-radius:8px;
  background:rgba(255,255,255,.025);
}
body.nightfall-homeland .emode-setup-legend b { font-size:13px;color:#e6dcfa; }
body.nightfall-homeland .emode-setup-legend small { font-size:12px;line-height:1.4;color:var(--muted); }
@media(max-width:760px) {
  body.nightfall-homeland .emode-facility-group { grid-template-columns:1fr; }
  body.nightfall-homeland .emode-facility-group h3 {
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 12px;
    border-right:0;
    border-bottom:1px solid rgba(151,125,194,.16);
  }
  body.nightfall-homeland .emode-facility-rows { padding:2px 9px; }
  body.nightfall-homeland .emode-setup-legend { grid-template-columns:1fr; }
  body.nightfall-homeland .emode-setup-row {
    grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) 28px;
    grid-template-areas:"add qty level remove" "mode mode mode mode";
    gap:7px 8px;
    padding:8px 0;
  }
  body.nightfall-homeland .emode-add-row { grid-area:add; }
  body.nightfall-homeland .emode-setup-row .emode-number-field:nth-of-type(1) { grid-area:qty; }
  body.nightfall-homeland .emode-setup-row .emode-number-field:nth-of-type(2) { grid-area:level; }
  body.nightfall-homeland .emode-mode-pill { grid-area:mode; }
  body.nightfall-homeland .emode-row-remove { grid-area:remove; }
}
@media(max-width:440px) {
  body.nightfall-homeland .emode-setup-row { gap:6px; }
  body.nightfall-homeland .emode-mode-pill > .emode-mode-option { gap:4px;padding:0 4px; }
  body.nightfall-homeland .emode-mode-option > small { font-size:10px; }
  body.nightfall-homeland .emode-power-reservation { align-items:flex-start;flex-wrap:wrap; }
  body.nightfall-homeland .emode-power-reservation strong { white-space:normal; }
}
