/* Colour-only page surfaces. Never recolour scene layers, photos or buttons. */
:root[data-paw-theme]{--paw-page:#fff;--paw-panel:#fff;--paw-soft:#f3f6f1;--paw-field:#fff;--paw-ink:#000;--paw-muted:#333;--paw-line:#cbd5c7;--paw-accent:#496a3e;--cream:#fff;--ink:#000;--muted:#333;--line:#cbd5c7;background:#fff;color-scheme:light}
html[data-paw-theme] body{--cream:#fff!important;--ink:#000!important;--muted:#333!important;--line:#cbd5c7!important;background:#fff!important;color:#000!important;color-scheme:light}
html[data-paw-theme] :is(#game-shell,#game-shell>main,#game-shell>aside,body>main,body>aside,.sidebar,aside nav,.mobilebar,.mobiletop,body>footer,main>header,main>footer,.entry-header,.entry-main,.pageheading){background:#fff!important;color:#000!important}
/* This transparent full-width layer sits above the separate supplied Logo. */
html[data-paw-theme] aside>.mobile-header-tools{background:transparent!important}
html[data-paw-theme] :is(.card,.roomcard,.dashboard-card,.site-updates,.welcome-layout,.welcome-art,.welcome-content,.welcome-updates,.companion-launcher,.health-sync-controls,.visit-history,.week-step-card,.growth-walks,.photo-library,.pet-personality,.home-care-needs,.visitors-card,.pet-vitals){background:#fff!important;color:#000!important}
html[data-paw-theme] :is(.roomtop,.actions,.home-view-controls,.home-status,.home-more,.coat-picker,.sleep-routine,.home-pet-toolbar,.yard-controls-top,.yard-background-label){background:#fff!important;color:#000!important}
html[data-paw-theme] :is(dialog,.modal,.decor-window,.yard-decor-window,.wall-photo-picker,.member-menu,.account-menu,.mobile-more>div,#asset-loading,.asset-loading,.companion-dialog,.invite-photo-card,.shop-product){--paw-panel:#fff;--paw-field:#fff;--paw-ink:#000;--paw-muted:#333;background:#fff!important;color:#000!important;color-scheme:light}
html[data-paw-theme] :is(.decor-body,.decor-commit,.decor-heading,dialog>header,.photo-dialog-heading,.companion-dialog-header,.modal-header){background:#fff!important;color:#000!important}
html[data-paw-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea){background:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important}
html[data-paw-theme] :is(.card,.welcome-art,.welcome-content,.welcome-updates,.pageheading,#admin,dialog,.modal,.decor-window,.yard-decor-window,.wall-photo-picker,.member-menu,.account-menu,.companion-launcher,.companion-dialog) :is(h1,h2,h3,h4,p,label,small,summary,legend,th,td){color:#000!important}
html[data-paw-theme] :is(.dashboard-kicker,.dashboard-date,.dashboard-status,.subtitle,.muted,.roomtag,.home-view-controls p,#homepetstatus,#sleepstatus,.roam-toggle,.sleep-routine label,.home-more>summary,.sleep-routine summary){color:#000!important}
html[data-paw-theme] #admin :is(.admin-banner,.admin-audit,.admin-deletions,.support-admin,.ugc-admin,.admin-coin-pricing,.price-group){background:#fff;color:#000}
html[data-paw-theme] .paw-brand .paw-brand__name{filter:none!important}
html[data-paw-theme] aside .profile{background:#fff!important;color:#000!important}
html[data-paw-theme] aside .profile small{color:#000!important}
/* Never flash the retired bottom-left session card during map startup. */
.map-stage .map-hud:not([data-current-counter]){visibility:hidden!important}

/* The room is a scene surface, never an interface-colour surface. Keep its
   background and clipping even while the independent palette is floating. */
#room{position:relative;isolation:isolate;overflow:hidden}
#room.scene-ready[data-background]:not([data-background=""]){background-image:var(--room-background)!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important}
body.decor-editing:not(.room-focus){overflow:auto}
body.decor-editing:not(.room-focus) #home #room{position:relative!important;inset:auto!important;z-index:0;width:100%!important;height:clamp(420px,calc(100dvh - 200px),900px)!important;max-height:none!important;margin:0!important}
@media(max-width:850px){body.decor-editing:not(.room-focus) #home #room{height:clamp(280px,calc(100dvh - 296px),900px)!important}}
body:not(.decor-editing) #room :is(.wall-frame,.wall-frame-handle)[data-selected=true]{outline:none!important}
html[data-paw-theme] :focus-visible{outline:3px solid var(--paw-accent);outline-offset:3px}

/* Keep the three draggable window headings visually consistent. */
:is(#coin-shop-title,#dog-wardrobe-title,#decor-title){font-size:19.5px;line-height:1.2;font-weight:700;white-space:nowrap}
html[data-paw-theme] :is(.coin-shop .shop-drag,#dog-wardrobe .wear-handle,#decor-window .decor-handle):focus-visible,
html[data-paw-theme] :is(dialog.coin-shop,dialog#dog-wardrobe)[autofocus]:focus-visible{outline:none}
:is(.shop-drag,.wear-handle,.decor-handle):focus-visible > :is(strong,b){text-decoration:underline;text-underline-offset:.18em}


/* Give the space saved by the compact care row to the room scene. */
#home #room:not(.room-stage-expanded){height:clamp(468px,calc(100dvh - 152px),948px)}
#home .roomcard > .actions{
 display:grid;
 grid-template-columns:repeat(10,minmax(0,1fr));
 gap:clamp(2px,.6vw,6px);
 padding:4px 6px;
}
#home .roomcard > .actions > button{
 display:flex;
 align-items:center;
 justify-content:center;
 box-sizing:border-box;
 width:100%;
 min-width:0;
 height:44px;
 min-height:44px;
 padding:1px;
 border-radius:9px;
}
#home .roomcard > .actions > button[hidden]{display:none}
#home .roomcard > .actions > button > svg{display:none}
#home .roomcard > .actions > button::before{
 content:"";
 display:block;
 width:100%;
 max-width:34px;
 aspect-ratio:1;
 background:url("./room-action-icons.svg?v=1") calc(var(--room-icon,0) * 100% / 9) 0 / 1000% 100% no-repeat;
 pointer-events:none;
}
#home .actions > [data-home-motion="drink"]{--room-icon:1}
#home .actions > [data-action="play"]{--room-icon:2}
#home .actions > [data-action="wash"]{--room-icon:3}
#home .actions > [data-action="sleep"]{--room-icon:4}
#home .actions > [data-home-motion="idle"]{--room-icon:5}
#home .actions > [data-home-motion="walk"]{--room-icon:6}
#home .actions > [data-home-motion="curious"]{--room-icon:7}
#home .actions > [data-home-motion="jump"]{--room-icon:8}
#home .actions > [data-home-motion="run"]{--room-icon:9}
@media(max-width:850px){
 #home #room:not(.room-stage-expanded){height:clamp(333px,calc(100dvh - 221px),953px)}
}

dialog.email-friend-success{box-sizing:border-box;width:min(90vw,420px);padding:20px 24px;border:1px solid #ced8c6;border-radius:22px;background:#fff;color:#000;box-shadow:0 18px 60px #15221c40}
dialog.email-friend-success::backdrop{background:#15221c80}
.email-friend-success header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.email-friend-success h2{font:700 21px/1.3 system-ui;margin:0}
.email-friend-success p{font:600 19px/1.5 system-ui;margin:16px 0 20px}
.email-friend-success form .paw-dialog-corner-close{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:0;border:1px solid #ced8c6;border-radius:50%;background:#f5f8ef;color:#314934;font:24px/1 system-ui}
.email-friend-success .email-friend-done{min-height:44px;width:100%;padding:8px;border:1px solid #536f46;border-radius:12px;background:#536f46;color:#fff;font:600 16px system-ui}

.guest-home-actions{background:#fff;color:#000;padding:8px 0}
.guest-home-actions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.guest-home-actions button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:44px;margin:0;padding:4px;border:1px solid #dce3d3;border-radius:12px;background:#f4f7ed;color:#354a33;font:600 clamp(12px,3.5vw,15px)/1.25 system-ui;cursor:pointer}
.guest-home-actions button svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.guest-home-actions p{font:14px/1.5 system-ui;margin:6px 0 0}

/* Acquisition actions keep their own readable colours at every scene hour. */
html[data-paw-theme] dialog.dog-acquire form :is(footer button,.dog-fee-confirm button){box-sizing:border-box;min-height:44px;max-width:100%;padding:10px 16px;border:1px solid #859d7c!important;border-radius:12px;font:600 15px/1.45 system-ui!important;white-space:normal;text-shadow:none!important;filter:none!important;opacity:1!important;color:#314b34!important;-webkit-text-fill-color:#314b34!important;background:#fffef8!important;appearance:none;-webkit-appearance:none}
html[data-paw-theme] dialog.dog-acquire form :is(.dog-next,.dog-confirm):not(:disabled){min-width:160px;color:#fff!important;-webkit-text-fill-color:#fff!important;background:#516d43!important;border-color:#516d43!important}
html[data-paw-theme] dialog.dog-acquire form :is(footer button,.dog-fee-confirm button):disabled{color:#44543e!important;-webkit-text-fill-color:#44543e!important;background:#e4e8dd!important;border-color:#acb89f!important;opacity:1!important;cursor:not-allowed}
html[data-paw-theme] dialog.dog-acquire .dog-next:empty::after{content:attr(aria-label)}

html[data-paw-theme] dialog.dog-acquire form :is(footer button,.dog-fee-confirm button) :is(.paw-money-text,.paw-coin-amount){
 display:inline!important;font:inherit!important;visibility:visible!important;opacity:1!important;
 color:inherit!important;-webkit-text-fill-color:inherit!important
}
