.baza-day-clock {
 display:inline-block;
 margin:6px 0 2px;
 padding:4px 8px;
 border:1px solid var(--border,#4d6478);
 border-radius:5px;
 font-weight:700;
 font-variant-numeric:tabular-nums;
}
.baza-day-clock[data-phase="open"] { color:#a6f5c7; background:#154631 }
.baza-day-clock[data-phase="late"] { color:#ffd1ba; background:#533024 }
#attack .attack-section-divider[data-send-group] {
 padding:10px 12px;
 border:1px solid var(--ax-border);
 border-left:5px solid var(--ax-sub);
 border-radius:6px;
 background:var(--ax-panel);
 color:var(--ax-ink);
 opacity:1;
}
#attack .attack-section-divider[data-send-group="0"] { border-left-color:var(--ax-accent) }
#attack .attack-section-divider[data-send-group="1"] { border-left-color:var(--ax-late) }
#attack .attack-section-divider[data-send-group="2"] { margin-top:22px; border-left-color:var(--ax-warning) }

body.theme-worklight {
 color-scheme:light;
 --bg:#e9eef4; --surface:#fff; --panel:#fff; --sub:#f0f4f8;
 --ink:#162838; --text:#162838; --muted:#43596b; --border:#a9bbc9;
 --accent:#175e95; --danger:#99283b;
}
body.theme-graphite {
 color-scheme:dark;
 --bg:#111316; --surface:#1b1e23; --panel:#1b1e23; --sub:#252a30;
 --ink:#f6f7f8; --text:#f6f7f8; --muted:#ccd2d8; --border:#646f7c;
 --accent:#ffd875; --danger:#ff9a99;
}
body:is(.theme-worklight,.theme-graphite) { background:var(--bg)!important; color:var(--ink)!important }
body:is(.theme-worklight,.theme-graphite) :is(.top,.panel,.vcard,.metric,dialog,.pkx-toolbar,.pkx-nav-primary,.do-focus,.ix-dialog,.do-quick) {
 background:var(--surface)!important; color:var(--ink)!important; border-color:var(--border)!important;
}
body:is(.theme-worklight,.theme-graphite) :is(.baza-day-card,.do-plan,.do-candidate,.cd-home-value,.cd-home-event,.ix-unit-tile,.ix-stat,.pkx-mobile-more,#pkxMobileNav) {
 background:var(--sub)!important; color:var(--ink)!important; border-color:var(--border)!important;
}
body:is(.theme-worklight,.theme-graphite) :is(p,label,small,.small,.ix-muted,.cd-home-label,.cd-home-hint) { color:var(--muted) }
body:is(.theme-worklight,.theme-graphite) :is(h1,h2,h3,h4,strong) { color:inherit }
body:is(.theme-worklight,.theme-graphite) :is(input,select,textarea) {
 background:var(--surface)!important; color:var(--ink)!important; border-color:var(--border)!important;
}
body:is(.theme-worklight,.theme-graphite) :is(.ghost,.tab,.baza-nav-toggle,.baza-nav-group>.baza-section-side button,.baza-nav-group>.baza-sync-side-links button) {
 background:var(--sub)!important; color:var(--ink)!important; border-color:var(--border)!important;
}
body:is(.theme-worklight,.theme-graphite) #dashboard .pkx-nav-primary .tab { color:var(--ink)!important; background:var(--sub)!important }
body.theme-worklight :is(button.active,.baza-parent-active,.baza-section-tabs button.active,#dashboard .pkx-nav-primary .tab.active,#dashboard .pkx-nav-primary .tab.baza-parent-active) {
 background:var(--accent)!important; color:#fff!important;
}
body.theme-graphite :is(button.active,.baza-parent-active,.baza-section-tabs button.active,#dashboard .pkx-nav-primary .tab.active,#dashboard .pkx-nav-primary .tab.baza-parent-active) {
 background:var(--accent)!important; color:#17140c!important;
}
body:is(.theme-worklight,.theme-graphite) #intel {
 --ix-card:var(--surface); --ix-line:var(--border); --ix-text:var(--ink); --ix-sub:var(--muted);
 background:var(--bg); color:var(--ink);
}
body:is(.theme-worklight,.theme-graphite) #intel :is(button,.ix-row.selected,.ix-row:hover) { background:var(--sub)!important; color:var(--ink)!important }
body:is(.theme-worklight,.theme-graphite) :is(.do-excel th,.do-excel td):not(.do-szl) {
 background:var(--surface)!important; color:var(--ink)!important; border-color:var(--border)!important;
}
body:is(.theme-worklight,.theme-graphite) .do-excel :is(th,td).do-szl { background:#f3dc83!important; color:#211800!important }
body.theme-worklight :is(.ix-link,.do-village-link) { color:#124d7c!important }
body.theme-worklight :is(.do-warning,.ix-warning,.error) { color:#843715!important }
body.theme-worklight .baza-day-clock[data-phase="open"] { color:#114c2a; background:#def4e5 }
body.theme-worklight .baza-day-clock[data-phase="late"] { color:#7c2713; background:#ffe7db }
body.theme-graphite #attack {
 --ax-bg:var(--bg); --ax-panel:var(--surface); --ax-tint:var(--sub);
 --ax-ink:var(--ink); --ax-sub:var(--muted); --ax-border:var(--border);
}
body.theme-graphite :is(.baza-day-card,.do-plan,.do-excel) { font-size:14px }
@media(max-width:1179px) {
 .top .themebar { display:block!important }
 .top .themebar label { display:flex; align-items:center; gap:4px; margin:0; font-size:11px }
 .top .themebar select { padding:3px; max-width:140px }
}
#budgetResult { overflow-x:auto }
.noble-cost-table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums }
.noble-cost-table :is(th,td) { padding:7px 9px; text-align:right; border-bottom:1px solid var(--border,#4d6478); white-space:nowrap }
.noble-cost-table :is(th,td):first-child { text-align:left }
.baza-day-actions { flex-wrap:wrap }
.baza-day-actions .baza-day-clock { margin:0 auto 0 0 }
