/* White base, with green reserved for actions and selected states. */
:root{color-scheme:light;--cream:#fff;--line:#e6e9e8;--muted:#707b75;--shadow:0 8px 28px #182b2206}
html,body,.topbar,footer,.sidebar{background:#fff}
.panel,.family-card,.auth,.dialog{background:#fff;border-color:var(--line)}
.auth{border-color:var(--line)}
.admin-egg-preview{background:#fff}
.side-note{background:#fff;border-color:var(--line)}
.welcome-art{background:radial-gradient(ellipse,#f1f4f2,transparent 70%)}
.auth-tabs,.incubation,.temperature,.care-insight,.lineage-current,.combat-log{background:#f6f8f7}
.evolution-art{background:#f7f9f8}
.secondary,.dialog-close,.filters button,.motion-controls button{background:#f1f4f2}
.nav-btn .nav-small{background:#f3f5f4}
.nav-btn.active{background:#edf5ee}
.care-button,.stages-controls button,.technique-buttons button,.skill-loadout button,.room-preview-button,.room-care-targets button,.room-demo-moods button,.more-menu button{background:#fff;border:1px solid var(--line)}
.care-button:hover,.technique-buttons button:hover,.more-menu button:hover{background:#f5f8f5}
.care-button.on,.stages-controls button.active,.technique-buttons button.selected,.skill-loadout button.selected,.room-care-targets button.active,.room-demo-moods button.active{background:#edf5eb;border-color:#b7cbb2}
.filters button.active,.motion-controls button.active{background:var(--green);color:#fff}
.bubble,.bubble:after{background:#fff;border-color:var(--line)}
.progress,.stat .progress,.combat-scene .progress{background:#e9eeeb}
.combat-result,.combat-technique{background:#edf5ee}
input,select{background:#fff;border-color:var(--line)}
@media(max-width:767px){
 .sidebar{background:#fff;border-top-color:var(--line);box-shadow:0 -4px 18px #182b2208}
 .dialog-close{background:#f1f4f2}
}
/* The signed-out page contains only the account form. */
body:not(.is-signed-in)>.topbar,body:not(.is-signed-in)>footer{display:none}
body:not(.is-signed-in) #app{max-width:none;padding:0;margin:0}
.welcome.auth-only{display:grid;grid-template-columns:minmax(0,440px);justify-content:center;align-content:center;gap:0;min-height:100svh;padding:32px 20px;box-sizing:border-box}
.auth-only .auth{width:100%;min-width:0;padding:36px;box-sizing:border-box;border-radius:22px;box-shadow:0 8px 36px #182b2205}
.auth-only h1{margin:0 0 28px;text-align:center;font-size:27px;line-height:1.3;letter-spacing:-.7px;color:var(--ink)}
.auth-only .auth-tabs{margin:0 0 26px}
.auth-only .auth-tabs button{min-height:46px;font-size:14px}
.auth-only .field{font-size:13px;margin-bottom:18px}
.auth-only input{font-size:16px;min-height:48px}
.auth-only .primary{justify-content:center;width:100%;min-height:49px;margin-top:10px;font-size:14px}
@media(max-width:480px){.welcome.auth-only{padding:24px 18px}.auth-only .auth{padding:27px 22px}.auth-only h1{font-size:25px}}

/* Individual names are managed on the owned-pet cards. */
.pet-card-name{display:flex;flex-direction:column;align-items:center;gap:4px;margin-bottom:10px}
.pet-card-name h3{max-width:100%;overflow-wrap:anywhere}
.pet-card .pet-rename{min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:10px;background:#f6f8f7;color:var(--green);font-size:12px}
.pet-card .pet-rename:hover{background:#edf5ee}
