/* DWOJE 5.0 – readable UI across all previously styled panels */
:root{color-scheme:light!important;--txt:#343c2e!important;--muted:#635b4b!important}
body,main,.main,.app,.card,.soft-callout,.cloud-form,.identity-strip,.cloud-meter span,.d4-sheet,.d45-library-sheet,.d4-detail,.d45-story-panel,.d49-resource,.game-panel,.message-card{color:#343c2e!important}
#content .card p,#content .card h2,#content .card h3,#content .card small,#content .card .eyebrow,
#content .soft-callout,#content .cloud-form,#content .cloud-form p,#content .cloud-meter span,
#content .identity-strip,#content .identity-strip strong,#content .identity-strip small,
#content .game-panel p,#content .message-card p,#content .answer,#content .answer b,
#cloudPanel,#cloudPanel .eyebrow,#cloudPanel .small,#cloudPanel .muted{color:#38412f!important}
#content .eyebrow,.card .eyebrow,#content .overline,#content .date-badge{color:#69754f!important}
#content .muted,#content .small.muted,#content .finance-kpi small,#content .game-select small{color:#625c4d!important}
#content input:not([type=checkbox]):not([type=radio]):not([type=range]),
#content select,#content textarea,#dwojeAuthTop input{
 background:#fffdf7!important;color:#303e2e!important;border:1.5px solid #a9b195!important;
 -webkit-text-fill-color:#303e2e!important;opacity:1!important;color-scheme:light!important
}
#content input::placeholder,#content textarea::placeholder,#dwojeAuthTop input::placeholder{color:#6b695b!important;opacity:1!important}
#content label,#dwojeAuthTop label{color:#414b34!important;font-weight:650}
#content .btn.gold,#content .btn:not(.secondary):not(.ghost),#dwojeAuthTop button.primary,
#content .seg button.active,#content .d4-btn{background:#596b45!important;color:#fffef8!important;-webkit-text-fill-color:#fffef8!important;border-color:#4e5e3d!important}
#content .btn.gold *,#content .btn:not(.secondary):not(.ghost) *,#content .seg button.active *{color:#fffef8!important}
#content .btn.secondary,#content .btn.ghost,#content .choice,#content .seg button:not(.active){background:#f5ead9!important;color:#3d4e36!important;border-color:#b5bba1!important}
#content .pill,.top-actions .pill,.sync-tag,.account-quick .btn{color:#36452f!important;-webkit-text-fill-color:#36452f!important}
#content .game-select.selected{background:#e1e9d4!important;color:#35452c!important;border-color:#7f936c!important}
#content .d4-lesson summary,#content .d49-resource summary,#content .d49-resource strong,#content .d4-product h3{color:#39492e!important}
#content .d4-practice,#content .d49-action,#content .d49-resource-body{color:#3f4335!important}
/* Top account button and actual sign-in form */
#dwojeAuthTopTrigger{min-height:42px;border-radius:14px;background:#5d6d49!important;color:#fffefa!important;-webkit-text-fill-color:#fffefa!important;border:1px solid #526141!important;font-weight:750;white-space:normal;text-align:center}
#dwojeAuthTop[hidden],#dwojeAuthTop form[hidden],#dwojeAuthTopStatus[hidden]{display:none!important}
#dwojeAuthTop{display:block;position:relative;background:#f8efdf;color:#35422e!important;border:1.5px solid #acb89c;border-radius:19px;padding:20px 18px;margin:5px 0 16px;box-shadow:0 12px 28px rgba(60,73,49,.1);max-width:680px}
#dwojeAuthTop header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px}
#dwojeAuthTop h2{font:500 25px/1.2 Georgia,serif;margin:2px 0 5px;color:#39472e!important}
#dwojeAuthTop p{font-size:13px;line-height:1.65;color:#5c634f!important;margin:5px 0 12px}
#dwojeAuthTop .auth-eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#947354!important}
#dwojeAuthTop form{display:grid;gap:10px}
#dwojeAuthTop label{font-size:12px}
#dwojeAuthTop input{width:100%;min-width:0;min-height:47px;padding:12px 13px;border-radius:12px;font-size:16px}
#dwojeAuthTop button{cursor:pointer;min-height:42px;border-radius:12px;font-weight:650;border:1px solid #c3baa6;background:#fff8eb;color:#3e4f38}
#dwojeAuthTop button.primary{margin-top:4px;font-size:15px}
#dwojeAuthTop button[disabled]{opacity:.65}
#dwojeAuthTop .auth-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
#dwojeAuthTopStatus{padding:12px 13px;border-radius:12px;line-height:1.5;background:#e9e7d7;color:#3e513a;font-size:13px;margin:10px 0 0}
#dwojeAuthTopStatus[data-kind='error']{background:#f3dfd2;color:#783e31;border:1px solid #d9a995}
#dwojeAuthTopStatus[data-kind='success']{background:#e4ecd9;color:#365533;border:1px solid #afc49b}
@media(max-width:560px){.top-actions{gap:6px;max-width:100%}.top-actions .pill{font-size:12px;padding:8px 10px}.topbar{align-items:flex-start}.top-actions #dwojeAuthTopTrigger{order:-1;width:100%}#dwojeAuthTop{padding:18px 13px}}

/* DWOJE 5.1 contrast fix */
#content .card,#content .soft-callout,#content .game-card,#content .path-card,#content .game-select,#content .home-games-shortcut,#content .cloud-meter span,#content .cloud-form,#content .message-card,#content .finance-kpi,#content .choice{color:#33452f!important;-webkit-text-fill-color:#33452f!important}
#content .card :is(p,small,strong,label,span,h2,h3,h4),#content .soft-callout :is(p,small,strong,label,span,h2,h3,h4),#content .game-select :is(p,small,strong,span),#content .path-card :is(p,small,strong,span),#dwoje3Layer .d3-card :is(p,small,strong,span){color:#35452f!important;-webkit-text-fill-color:#35452f!important}
#content .hero,#content .hero *{color:#36432d!important;-webkit-text-fill-color:#36432d!important}
#content .btn.gold,#content .btn:not(.secondary):not(.ghost),#content .seg button.active,#dwojeAuthTop button.primary,#dwojeAuthTopTrigger{color:white!important;-webkit-text-fill-color:white!important}
#content .btn.gold *,#content .btn:not(.secondary):not(.ghost) *,#content .seg button.active *{color:white!important;-webkit-text-fill-color:white!important}
#dwojeAuthTop :is(label,p,small,strong,h2,span){color:#35452f!important;-webkit-text-fill-color:#35452f!important}
/* DWOJE 5.2 – spójny nagłówek, kolory i symbol */
.dwoje-line-icon{width:23px!important;height:23px!important;display:block!important;fill:none!important;stroke:#687851!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.dwoje-line-icon path,.dwoje-line-icon circle,.dwoje-line-icon rect{fill:none!important;stroke:currentColor!important}
.card-icon .dwoje-line-icon,.d4-emoji .dwoje-line-icon,.music-mark .dwoje-line-icon{width:28px!important;height:28px!important;max-width:100%!important;max-height:100%!important}
#content .message-card,#content .message-card p,#content .message-card .question,#content .message-card .eyebrow,#content .answer,#content .answer b,#content .answer p,#content .callout,#content .callout b{color:#354631!important;-webkit-text-fill-color:#354631!important}
#content .message-card{background:#fff8eb!important;border:1px solid #cbb69d!important}#content .answer{background:#eaf0df!important;border:1px solid #b8c6a3!important;padding:14px!important;border-radius:15px!important}
#dwojeAnswerResult .d52-reveal strong{font:600 21px/1.3 Georgia,serif;color:#52653e!important}#dwojeAnswerResult .d52-reveal>p{font-size:13px;margin:14px 0 0!important;color:#606f50!important}
#dwojeAnswerResult .d52-wait{background:#e9efdf!important;border:1px solid #c5ceb8!important;padding:13px;border-radius:14px;font-size:13px;line-height:1.65;color:#3f5237!important}
.topbar{background:#f8efe1!important;border:1px solid #e0cbb4!important;border-radius:18px!important;padding:12px!important;display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:9px!important;align-items:center!important}
.topbar .nav-hamburger{grid-column:1!important;grid-row:1!important;min-width:40px!important;width:40px!important;height:40px!important;border-radius:12px!important}
.topbar .top-left{grid-column:2!important;grid-row:1!important;min-width:0!important}
.topbar .top-actions{grid-column:1/-1!important;grid-row:2!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;justify-content:space-between!important}
.topbar .top-actions .pill{width:auto!important;max-width:100%!important;min-height:39px!important;margin:0!important}
.topbar .top-actions #dwojeAuthTopTrigger{width:auto!important;flex:1 1 auto!important;order:0!important}
.topbar .top-actions #profileSwitch{flex:1 1 auto!important;min-width:120px!important}
.topbar .top-actions .settings{flex:0 0 41px!important;width:41px!important;height:41px!important;display:grid!important;place-items:center!important}
.topbar .page-head{font-size:clamp(21px,5vw,30px)!important;line-height:1.16!important;color:#39482f!important}.topbar .overline{font-size:9px!important;color:#7b7853!important}
.hero,.hero *{color:#394831!important;-webkit-text-fill-color:#394831!important}.hero{background:linear-gradient(140deg,#f5e4cc,#e9dec3)!important}
.hero .big-days,.hero .big-days *{color:#596b48!important;-webkit-text-fill-color:#596b48!important}
.brand-emblem,.brand-emblem img{background:none!important;box-shadow:none!important;filter:none!important}.brand-emblem img{width:100%!important;height:100%!important;object-fit:contain!important}
#content .card:not(.hero) :is(h2,h3,h4,strong,p,small,span),#content .soft-callout :is(h2,h3,strong,p,small,span),#content .game-panel :is(h2,h3,p,small),#content .household-quick :is(b,span,p){color:#354631!important;-webkit-text-fill-color:#354631!important}
#content .btn:not(.secondary):not(.ghost),#content .btn:not(.secondary):not(.ghost) *{color:#fffdf6!important;-webkit-text-fill-color:#fffdf6!important}
@media(max-width:560px){.topbar{margin-bottom:14px!important}.topbar .top-actions{max-width:none!important;overflow:visible!important}.brand-emblem{max-height:75px!important}}