/* DWOJE 4.7 — unified screen-level palette, no old mauve/fuchsia cards. */
:root{--bg:#f4e8d8!important;--surface:#fff8ee!important;--panel:#f7eddf!important;--panel2:#e8d6c0!important;--line:#d6bea5!important;--txt:#3e4030!important;--muted:#736858!important;--gold:#b97750!important;--rose:#b97750!important;--rose2:#9f6744!important;--mint:#a1a783!important;--radius:20px!important;color-scheme:light!important}
html,body{background:#f4e8d8!important;color:#3e4030!important;color-scheme:light!important}
body{background:linear-gradient(180deg,#f5ebde,#eadbc8 100%)!important}
.hero,.card,.message-card,.soft-callout,.household-quick,.daily-tracks,.path-card,.game-panel,.game-select,.truth-card,.budget-card,.shopping-line,.finance-kpi,.goal-card,.modal,.modal-card,.checkrow,.cloud-form,.cloud-meter span,.cloud-panel,.memory-card,.ritual-card,.d4-product,.d4-sheet,.d4-lesson,.d45-story-panel{color:#3e4030!important;border-color:#d6bea5!important}
.card,.message-card,.daily-tracks,.game-panel,.game-select,.shopping-line,.finance-kpi,.goal-card,.cloud-form,.cloud-meter span,.budget-card,.soft-callout,.memory-card,.ritual-card,.d4-product{background:#fff8ee!important;box-shadow:0 5px 20px rgba(88,62,37,.08)!important}
.hero,.household-quick,.truth-card,.d4-featured{background:linear-gradient(130deg,#f3e5d1,#e8d4ba)!important}
.music-dock,.music-panel,#dwoje3Layer .d3-sheet,#dwoje3Layer .d3-card,.d4-sheet,.d45-library-sheet{background:#f7ebdb!important;color:#3e4030!important;border-color:#d3b899!important}
.nav-drawer,.rail,.nav-drawer-head,.nav-drawer-body,#navDrawer{background:#f2e5d4!important;color:#41432f!important;border-color:#d5bda3!important}
.nav-drawer-link,.nav-drawer-link:hover,.nav-drawer-link.active,.nav button,.nav button.active{color:#41432f!important}
.nav-drawer-link:hover,.nav-drawer-link.active,.nav button.active{background:#e6d4be!important}
.cloud-meter span,.pill,.sync-tag,.sync-tag.cloud-ok{background:#ece3d0!important;color:#445235!important;border:1px solid #c8b496!important}
#cloudBadge.cloud-ok{color:#445235!important;background:#e1e8d3!important;border-color:#a4b18b!important}
.card h2,.card h3,.card strong,.game-panel h3,.game-select b,.truth-card p,.message-card p,.soft-callout b,.d4-product h3,.d4-detail h2{color:#41442f!important}
.card p,.game-select small,.cloud-form p,.message-card small,.d4-note,.d4-intro p,.muted,.small{color:#71614e!important}
.btn,.d4-btn,#bottomNav button.active{border-radius:15px!important}
.btn.gold,.btn.primary,.d4-btn:not(.secondary){background:#697348!important;border-color:#697348!important;color:#fff9ee!important}
.btn.secondary,.btn.ghost,.d4-btn.secondary,.choice{background:#f8eddd!important;border-color:#cbb195!important;color:#564938!important}
#bottomNav{background:#f7ecde!important;border-color:#d6bea5!important}
#bottomNav button{border-radius:16px!important}
#bottomNav button.active{background:#e2e8d2!important;color:#495b3e!important}
/* consistent softly rounded icon chips throughout the app */
.card-icon,.game-select>span,.nav-drawer-link>.ico,.d4-emoji,.d4-hero-symbol,.music-mark,.d3-card>.ico,.d3-menu-link>.ico,.d45-promo-icon{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:48px!important;height:48px!important;min-width:48px!important;flex:0 0 48px!important;
 border-radius:18px!important;background:#ece1cf!important;border:1px solid #cfb79a!important;
 color:#68734b!important;box-shadow:none!important;font-size:23px!important;line-height:1!important
}
.d4-emoji,.d4-hero-symbol{width:59px!important;height:59px!important;border-radius:21px!important}
.dwoje-line-icon{width:24px!important;height:24px!important;stroke:currentColor!important;stroke-width:1.8!important;fill:none!important;stroke-linecap:round;stroke-linejoin:round}
.nav-drawer-link>.ico .dwoje-line-icon,.game-select>span .dwoje-line-icon,.card-icon .dwoje-line-icon{width:26px!important;height:26px!important}
.brand-emblem{width:164px!important;height:66px!important;max-width:164px!important;background:transparent!important;border:0!important}
.brand-emblem img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.d4-brand img{width:112px!important;height:53px!important;object-fit:contain!important;border-radius:0!important}
input,select,textarea,#content input,#content select,#content textarea{background:#fffbf5!important;color:#3e4030!important;border-color:#c8b49b!important}
/* Remove residual dark colors from dynamically generated popups */
#dwoje3Layer .d3-banner,#dwoje3Layer .d3-presets,#dwoje3Layer .d3-item,#dwoje3Layer .d3-panel,#dwoje3Layer .d3-preset,#dwoje3Layer .d3-card{background:#f5ead9!important;color:#41432f!important;border-color:#ceb597!important}
#dwoje3Layer .d3-preset small,#dwoje3Layer .d3-item p,#dwoje3Layer .d3-muted{color:#756552!important}
#dwoje3Layer .d3-close,#dwoje3Layer .d3-btn{background:#6b754a!important;color:#fff9ee!important}
.d45-story-panel,.d4-note.long,.d4-info-block{background:#f9efe2!important;border:1px solid #ddc3a4!important;border-radius:20px!important;padding:18px!important}
.d45-story-panel h2,.d45-story-panel h3,.d4-info-block h3{color:#474a32!important}
.d45-story-panel p,.d4-note.long p,.d4-info-block p{color:#635541!important;line-height:1.78!important}
@media(max-width:720px){.brand-emblem{width:130px!important;height:56px!important}.card-icon,.game-select>span,.nav-drawer-link>.ico{width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important;border-radius:16px!important}}
