body:not(.light-theme) #home .hero {
    background: radial-gradient(ellipse at top right, #285a38 0%, transparent 70%), #101d15;
    border: 1px solid #355d43;
    border-radius: 23px;
    position: relative;
    overflow: hidden;
    padding: 23px;
}
#home .hero .big { font-size: clamp(30px, 9vw, 48px); font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
#home .hero .muted { letter-spacing: .055em; }
body:not(.light-theme) #home .hero .muted { color: #b8d2bf; }
#home .grid > .card:nth-child(3), #home .category-accordion { grid-column: 1/-1; }
#home .grid > .card:nth-child(3) { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; }
#home .grid > .card:nth-child(3) .kpi-icon { margin: 0; }
#home .grid > .card:nth-child(3) .mini { grid-column: 2/4; }
#home .grid > .card:nth-child(3) .big { font-size: clamp(15px, 4vw, 22px); margin: 0; }
.history-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px; }
.history-filters .field { margin: 0; min-width: 0; }
.history-filters .search-field { grid-column: 1/-1; }
.history-filters input,.history-filters select,.tools-form input { min-height: 44px; min-width: 0; font-size: 16px; }
.tools-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.tools-form .field { min-width: 0; margin: 0; }
.tools-form output { grid-column: 1/-1; display: block; }
.tools-result-row { border-top: 1px solid rgba(135,175,148,.25); display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; }
.tools-result-row strong { white-space: nowrap; }
#settings .tools-shortcut { margin: 0 0 14px; width: 100%; }
#tools .page-desc { margin-bottom: 14px; }
#tools .tools-back { margin-bottom: 10px; min-height: 44px; }


/* Dashboard and navigation */
:root { font-family: Roboto, system-ui, sans-serif; background: #0a0f0c; }
html:has(.light-theme) { background: #f4f7f4; }
body:not(.light-theme) { background: #0a0f0c; color: #eff6f0; }
header { padding-top: 23px; padding-bottom: 20px; }
.zeca-app-version { color: #a8c2ae; background: #15221a; border-color: #2c4032; }
body:not(.light-theme) #home .hero {
    background: linear-gradient(115deg, #152b1f, #112119 52%, #1d3a28);
    border-color: #395e46;
    box-shadow: 0 12px 26px #0006, inset 0 1px #c6ffcf12;
}
#home .hero::after { content: ''; inset: 0 0 0 57%; width: auto; height: auto; pointer-events: none; transform: none; background: repeating-linear-gradient(135deg, transparent 0 17px, #b0e2bb12 18px 19px); mask-image: linear-gradient(to left,#000,transparent); }
#home .hero .big { position: relative; z-index: 1; }
body:not(.light-theme) .card { background: linear-gradient(150deg,#18231c,#111a14); border-color: #2a3b2f; box-shadow: 0 5px 13px #0004; }
body:not(.light-theme) .primary { background: #67e69a; border-color: #8ceeb1; color: #092516; box-shadow: 0 5px 15px #163c28; }
#home .grid>.card { min-width: 0; }
#home .grid .muted { font-size: 13px; }
#home .mini { font-size: 12px; }
#home .grid .kpi-icon { display: inline-grid; place-items: center; }
.kpi-icon svg,.nav .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
body:not(.light-theme) .kpi-icon { color: #8de6aa; background: #254333; }
body:not(.light-theme) .nav { background: #101a14; border-color: #2d4032; }
body:not(.light-theme) .nav button.active .ico { background: #254731; }
.nav-inner>button { font-size: 11px; white-space: normal; }
body:not(.light-theme) input:not([type=checkbox]):not([type=radio]),body:not(.light-theme) select,body:not(.light-theme) .choice-trigger,body:not(.light-theme) .date-trigger { background: #101912; border-color: #34483a; }
#history .history-modern { border-radius: 17px; }
#history .bet-stats { font-variant-numeric: tabular-nums; }
@media(max-width:360px) { #home .grid>.card { padding: 12px; } #home .grid>.card:nth-child(3) { gap: 4px 7px; } .nav-inner>button { font-size: 10px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .001ms!important; transition-duration: .001ms!important; } }

#history .ledger-head,#history .ledger-summary{display:flex;justify-content:space-between;align-items:center;gap:12px}
#history .ledger-head{margin:8px 0 20px}#history .ledger-head h2{font-size:29px;letter-spacing:-1px;margin:0}
#history .ledger-new{width:auto;background:#7ae5a3;color:#10251a;border:0;border-radius:11px;padding:11px 15px;font-weight:750;min-height:44px}
#history .history-tabs{margin:0 0 12px}#history .ledger-summary{background:linear-gradient(110deg,#173a27,#122419);color:#dbefdf;border:1px solid #345840;border-radius:16px;padding:19px 16px;margin:12px 0}
#history .ledger-summary strong{font-size:clamp(20px,6vw,30px);font-variant-numeric:tabular-nums}
#history .ledger-search{display:block;margin:12px 0 0}#history .ledger-filters{margin:3px 0 12px}
#history .ledger-filters summary{cursor:pointer;font-size:14px;padding:12px 2px;color:inherit}#history .history-filters{padding:0 0 12px}
#history .history-modern{padding:16px;border-radius:17px;margin:10px 0}
#history .bet-title{font-size:17px;line-height:1.35;overflow-wrap:anywhere}
#history .ledger-open .bet-stats{grid-template-columns:1fr 1fr}#history .ledger-open .bet-stats>div:last-child,#history .ledger-done .bet-potential{display:none}
#history .bet-actions button{min-height:42px}#history .bet-stats strong{font-variant-numeric:tabular-nums}