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: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}




/* 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}}
