/* Stronger definition for the light workspace; dark and print palettes keep their own rules. */
@media screen {
html:not([data-theme="dark"]) :is(.app-shell,.modal-overlay){--text:#1c392b;--muted:#576f60;--border:#d5e2d9;--shadow:0 6px 24px #174d380d;color:var(--text)}
html:not([data-theme="dark"]) .app-shell>.topbar{
background:linear-gradient(112deg,transparent 12%,#ffffff57 30%,transparent 53%),radial-gradient(ellipse at 75% -70%,#ffffffb3,transparent 65%),linear-gradient(180deg,#e7f7ee 0%,#d9eee2 44%,#c5e3d2 52%,#cde8d8 100%);
border-bottom-color:#9fc6af;box-shadow:inset 0 1px 0 #ffffffe0,inset 0 -1px 0 #ffffff80,0 5px 20px #174d3820}
html:not([data-theme="dark"]) .topbar :is(.date-pill,.user-text small){color:#496e57}
html:not([data-theme="dark"]) .topbar :is(.sidebar-toggle,.header-tool){color:#2f6346;border-color:#a6c7b2;background:#f5fbf7b8}
html:not([data-theme="dark"]) .topbar .user-wrap{border-color:#accbb7}
html:not([data-theme="dark"]) .topbar .avatar{color:#2e6445;border-color:#adcdb8}
html:not([data-theme="dark"]) .global-search-field>input{background:#fbfefce8;border-color:#accbb7;color:#264c36}
html:not([data-theme="dark"]) .global-search-field>input::placeholder{color:#617f6a}
html:not([data-theme="dark"]) .global-search-field>.icon{color:#577d63}
html:not([data-theme="dark"]) .subscription-stats .stat-card{
background:linear-gradient(125deg,#ffffff75 0%,#ffffff12 32%,transparent 54%),radial-gradient(ellipse at 80% -40%,#ffffffa6,transparent 68%),linear-gradient(180deg,#ddf4e6 0%,#cdebd9 44%,#bbdfc9 53%,#cce9d7 100%);
border-color:#9cc5ad;box-shadow:0 5px 17px #174d3817,inset 0 1px 0 #ffffffeb,inset 0 -1px 0 #80b69733}
html:not([data-theme="dark"]) .subscription-stats .stat-top>span:first-child{color:#3c654d;font-weight:600}
html:not([data-theme="dark"]) .subscription-stats .stat-value{color:#174d38}
html:not([data-theme="dark"]) .subscription-stats .stat-value small{color:#496e57}
html:not([data-theme="dark"]) .subscription-stats .stat-icon{background:linear-gradient(160deg,#ffffff,#e7f6ec);border-color:#9fc7ae;color:#2e744d;box-shadow:inset 0 1px 0 #fff,0 2px 5px #174d380b}
html:not([data-theme="dark"]) .app-shell :is(.panel,.account-card,.stat-card,.settings-panel){border-color:#ccdcd1;box-shadow:0 5px 22px #174d380c}
html:not([data-theme="dark"]) .app-shell .subscription-stats .stat-card{border-color:#9cc5ad;box-shadow:0 5px 17px #174d3817,inset 0 1px 0 #ffffffeb,inset 0 -1px 0 #80b69733}
html:not([data-theme="dark"]) .app-shell .account-card{
background:linear-gradient(125deg,#ffffff75 0%,#ffffff12 32%,transparent 54%),radial-gradient(ellipse at 80% -40%,#ffffffa6,transparent 68%),linear-gradient(180deg,#ddf4e6 0%,#cdebd9 44%,#bbdfc9 53%,#cce9d7 100%);
border-color:#9cc5ad;box-shadow:0 5px 17px #174d3817,inset 0 1px 0 #ffffffeb,inset 0 -1px 0 #80b69733}
html:not([data-theme="dark"]) .app-shell .account-card:not(.selected){background:linear-gradient(125deg,#ffffffb8,transparent 65%),linear-gradient(180deg,#f5fcf8 0%,#edf8f1 44%,#e2f0e7 53%,#edf7f0 100%);border-color:#c3dbcb;box-shadow:0 4px 13px #174d380a,inset 0 1px 0 #fff}
html:not([data-theme="dark"]) .app-shell .account-card.selected{border-color:#489365;box-shadow:0 0 0 2px #70b58b66,0 5px 17px #174d381a,inset 0 1px 0 #ffffffeb}
html:not([data-theme="dark"]) .app-shell .account-card-top{color:#456e54}
html:not([data-theme="dark"]) .app-shell .account-icon{background:linear-gradient(160deg,#fff,#e7f6ec);border-color:#9fc7ae;box-shadow:inset 0 1px 0 #fff}
html:not([data-theme="dark"]) .app-shell .account-card>strong{color:#174d38}
html:not([data-theme="dark"]) .app-shell .account-card>strong small{color:#496e57}
html:not([data-theme="dark"]) .app-shell :is(.panel-heading h2,.page-head h1,.settings-row strong){color:#1e3f2d}
html:not([data-theme="dark"]) .app-shell :is(.btn.ghost,.range-filters label,.legend,.table-footer,.page-tip,.mini-label,.panel-heading p,.page-head p,.row-note,.settings-row small,.field-hint,.ledger-summary>span){color:#536f5d}
html:not([data-theme="dark"]) .app-shell :is(.nav-link,.settings-nav button){color:#4a6955}
html:not([data-theme="dark"]) .app-shell .field>span{color:#4b6c56}
html:not([data-theme="dark"]) .app-shell .nav-link.active{color:#fff}
html:not([data-theme="dark"]) .app-shell .count-badge{background:#dfefe4;border-color:#b9d5c3;color:#2f6848}
html:not([data-theme="dark"]) .app-shell :is(.search-input input,.range-filters input,.btn.secondary){border-color:#bdcfc2}
html:not([data-theme="dark"]) .app-shell .search-input input{background:#fbfdfb}
html:not([data-theme="dark"]) .app-shell .search-input input::placeholder{color:#687e6e;opacity:1}
html:not([data-theme="dark"]) .app-shell .search-input>.icon{color:#66816f}
html:not([data-theme="dark"]) .app-shell .segmented{background:#eaf2ec}
html:not([data-theme="dark"]) .app-shell .segmented button{color:#526e5c}
html:not([data-theme="dark"]) .app-shell .segmented button.selected{color:#246744;box-shadow:0 1px 5px #174d3817}
html:not([data-theme="dark"]) .app-shell :is(.subscription-table,.ledger-table) thead th{color:#355d46;font-weight:700;background:#e6f0e9;border-bottom-color:#c8dacd}
html:not([data-theme="dark"]) .app-shell .subscription-table thead th.month-cell{font-weight:650}
html:not([data-theme="dark"]) .app-shell .subscription-table thead th.current-month{background:#d6ebde;color:#1d6743}
html:not([data-theme="dark"]) .app-shell .subscription-table td.current-month{background:#eef7f1}
html:not([data-theme="dark"]) .app-shell .subscription-table tfoot td{background:#edf5ef;color:#284c37;border-top-color:#c8dacd}
html:not([data-theme="dark"]) .app-shell .subscription-table :is(.member-link,.phone-cell){color:#284d37}
html:not([data-theme="dark"]) .app-shell .subscription-table td.seq{color:#657f6d}
html:not([data-theme="dark"]) .app-shell .balance-pill.owed{color:#946226}
html:not([data-theme="dark"]) .app-shell .balance-pill.settled{color:#35724f}
html:not([data-theme="dark"]) .app-shell .legend-dot.unpaid{background:#789b85}
html:not([data-theme="dark"]) .app-shell .table-footer b{color:#315d42}
html:not([data-theme="dark"]) .modal-overlay :is(.field>span,.member-metric-label,.member-contact,.member-metric-value small,.member-balance-note,.statement-head p,.statement-filters label){color:#587662}
html:not([data-theme="dark"]) .member-window-bar{background:#d5eadd;border-bottom-color:#b6d2c0;color:#2a563b}
html:not([data-theme="dark"]) .member-metric{background:linear-gradient(120deg,#edf7f0,#f5faf6);border-color:#c7dccd}
html:not([data-theme="dark"]) .member-statement-card .statement-table th{background:#e6f0e9;color:#355d46;font-weight:700}
}
