/* WoWS AI shared appearance tokens. Keep contrast readable in every member-facing page. */
:root{color-scheme:dark;--wows-page:#090c11;--wows-surface:#121823;--wows-surface-2:#0e141e;--wows-border:#293447;--wows-text:#f4f6fa;--wows-muted:#aab6c8;--wows-link:#e0bd70;--wows-input:#0b111b;--wows-control:#182231;--wows-notice:#211d13;--wows-notice-text:#f0dfb7}
:root[data-theme="light"]{color-scheme:light;--wows-page:#f3f5f9;--wows-surface:#ffffff;--wows-surface-2:#f6f8fb;--wows-border:#d5deea;--wows-text:#172033;--wows-muted:#53627a;--wows-link:#805700;--wows-input:#ffffff;--wows-control:#edf1f7;--wows-notice:#fff6df;--wows-notice-text:#533d0c}
:root[data-theme="dark"]{color-scheme:dark}
:root[data-theme="light"] body{background:var(--wows-page)!important;color:var(--wows-text)!important}
:root[data-theme="light"] body :is(header,nav,main,section,article,aside,footer,.shell,.wrap,.box,.card,.panel,.stat,.tile,.side,.content,.item,.metric,.metric-card,.quick,.navitems,.navitems a,.navmenu summary,.globalnav summary,.globalnav-items,.research-menuitems,.research-menuitems a,.bot-health,.day-note,.table-wrap,.list,.callout){border-color:var(--wows-border)}
:root[data-theme="light"] body :is(.shell,.wrap,.box,.card,.panel,.stat,.tile,.side,.content,.item,.metric,.metric-card,.quick,.navitems,.navitems a,.navmenu summary,.globalnav summary,.globalnav-items,.research-menuitems,.research-menuitems a,.bot-health,.day-note,.table-wrap,.list){background-color:var(--wows-surface)!important;color:var(--wows-text)}
:root[data-theme="light"] body :is(h1,h2,h3,h4,strong,b,label,legend,summary,th,td,button,.btn,.pill,.sidetab,.navitems a,.navitems button,.globalnav-items a,.menulogout){color:var(--wows-text)}
:root[data-theme="light"] body :is(p,li,small,.muted,.hint,.detail,.fine,.foot,.footer,.meta,.subtitle,.desc,.label,.sectionhead p,.tiny,.navsep){color:var(--wows-muted)}
:root[data-theme="light"] body :is(input,select,textarea){background:var(--wows-input)!important;color:var(--wows-text)!important;border-color:var(--wows-border)!important}
:root[data-theme="light"] body :is(input,select,textarea)::placeholder{color:#69778d!important;opacity:1}
:root[data-theme="light"] body :is(a){color:var(--wows-link)}
:root[data-theme="light"] body :is(.navitems a:hover,.navitems button:hover,.globalnav-items a:hover,.sidetab:hover,.quick a:hover){background:var(--wows-control)!important;color:var(--wows-link)}
:root[data-theme="light"] body :is(.notice,.banner,.call,.disclosure,.warning){background:var(--wows-notice)!important;color:var(--wows-notice-text)!important;border-color:#e4cf98}
:root[data-theme="light"] body :is(.primary,.submit,.btn.primary){background:#91670d!important;border-color:#91670d!important;color:#fff!important}
:root[data-theme="light"] body :is(.active,.selected,[aria-current="page"]){color:var(--wows-link)}
:root[data-theme="light"] body :is(.market-pill){background:#edf4ff!important;border-color:#c9d8ee;color:#203956}
:root[data-theme="light"] body :is(.market-pill b,.market-pill i){color:#294b75}
:root[data-theme="light"] body :is(.state.done){background:#e3f4e9;color:#17623b}
:root[data-theme="light"] body :is(.state.build){background:#fff2d6;color:#754f00}
:root[data-theme="light"] body :is(.state.next){background:#e9f1fc;color:#294e7a}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto!important}}

/* Workspace-specific contrast corrections: override older fixed dark palette values. */
:root[data-theme="light"] body .banner{background:#fff6df!important;color:#533d0c!important;border-color:#e4cf98!important}
:root[data-theme="light"] body .tag{background:#e8f0fb!important;color:#234c7c!important}
:root[data-theme="light"] body .empty{background:#f8faff!important;color:#53627a!important;border-color:#cbd5e3!important}
:root[data-theme="light"] body .quick a{background:#fff!important;color:#172033!important;border-color:#d5deea!important}
:root[data-theme="light"] body .quick strong{color:#172033!important}
:root[data-theme="light"] body .calcell{background:#fff!important;color:#172033!important;border-color:#d5deea!important}
:root[data-theme="light"] body .calcell .calnum{color:#172033!important}
:root[data-theme="light"] body .calcell.mutedday .calnum{color:#68768b!important}
:root[data-theme="light"] body .calnav button,:root[data-theme="light"] body .cal-today{background:#edf1f7!important;color:#172033!important;border-color:#cbd5e3!important}
:root[data-theme="light"] body .calbook{background:#edf1f7!important;color:#533d0c!important;border-color:#cbd5e3!important}
:root[data-theme="light"] body .calbook.hasnote{background:#fff2d6!important;color:#754f00!important;border-color:#e6cd8b!important}
:root[data-theme="light"] body .day-notes{background:#fff!important;color:#172033!important;border-color:#d5deea!important}
:root[data-theme="light"] body .day-notes textarea,:root[data-theme="light"] body .form-wrap{background:#fff!important;color:#172033!important;border-color:#d5deea!important}
:root[data-theme="light"] body .jfield input,:root[data-theme="light"] body .jfield select,:root[data-theme="light"] body .jfield textarea,:root[data-theme="light"] body #journalForm input,:root[data-theme="light"] body #journalForm select,:root[data-theme="light"] body #journalForm textarea{background:#fff!important;color:#172033!important;border-color:#cbd5e3!important}
:root[data-theme="light"] body .secondary{background:#edf1f7!important;color:#172033!important;border-color:#cbd5e3!important}
:root[data-theme="light"] body .adminShortcut{background:#fff6df!important;color:#644b12!important;border-color:#e4cf98!important}
:root[data-theme="light"] body .navmenu summary,:root[data-theme="light"] body .navitems{background:#fff!important;color:#172033!important;border-color:#d5deea!important}
:root[data-theme="light"] body .navitems a,:root[data-theme="light"] body .navitems .menulogout{background:transparent!important;color:#172033!important}
:root[data-theme="light"] body .navitems a:hover,:root[data-theme="light"] body .navitems button:hover{background:#edf1f7!important;color:#805700!important}
:root[data-theme="light"] body .wows-footer{background:#fff!important;color:#53627a!important;border-color:#d5deea!important}
:root[data-theme="light"] body .wows-footcol b{color:#172033!important}
:root[data-theme="light"] body .wows-footcol a,:root[data-theme="light"] body .wows-footcol span,:root[data-theme="light"] body .wows-copy{color:#53627a!important}
:root[data-theme="light"] body .wows-copy{border-color:#d5deea!important}
:root[data-theme="light"] body .wows-privacy{background:#fff!important;color:#172033!important;border-color:#d5deea!important}
:root[data-theme="light"] body .wows-privacy h2{color:#172033!important}
:root[data-theme="light"] body .wows-privacy p,:root[data-theme="light"] body .wows-privacy small{color:#53627a!important}
:root[data-theme="light"] body .wows-privacy-actions button,:root[data-theme="light"] body .wows-privacy-manage{background:#edf1f7!important;color:#172033!important;border-color:#cbd5e3!important}
:root[data-theme="light"] body .wows-privacy-actions .accept{background:#805700!important;color:#fff!important;border-color:#805700!important}
:root[data-theme="light"] body .wows-privacy-backdrop{background:#17203388!important}
:root[data-theme="light"] body .fine{color:#53627a!important;border-color:#d5deea!important}
:root[data-theme="light"] body .jdelete{background:#fff0f0!important;color:#9d2634!important;border-color:#e8bfc4!important}
:root[data-theme="light"] body .calcell .pnl.loss{color:#b42332!important}
:root[data-theme="light"] body :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #91670d!important;outline-offset:2px}
:root[data-theme="dark"] body :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #e0bd70;outline-offset:2px}

/* WoWS AI premium light appearance: warm editorial canvas, crisp cards, restrained brass accent. */
:root[data-theme="light"]{
 --wows-page:#f0f2f6;--wows-surface:#ffffff;--wows-surface-2:#f7f8fb;
 --wows-border:#dce2eb;--wows-text:#172337;--wows-muted:#58677c;
 --wows-link:#78530a;--wows-input:#ffffff;--wows-control:#edf1f6;
 --wows-notice:#fff7e5;--wows-notice-text:#563f13;
}
:root[data-theme="light"] body{
 background:radial-gradient(ellipse at 15% 0%,#e5ebf5 0,transparent 38%),var(--wows-page)!important;
 color:var(--wows-text)!important;
}
:root[data-theme="light"] body :is(.shell,.wrap,.content,main){color:var(--wows-text)}
:root[data-theme="light"] body :is(.card,.panel,.stat,.tile,.metric,.metric-card,.bot-health,.day-note,.table-wrap,.list,.quick,.form-wrap,.day-notes){
 background:#fff!important;color:#172337!important;border:1px solid #dce2eb!important;
 box-shadow:0 2px 7px #17233708,0 10px 26px #17233706;
}
:root[data-theme="light"] body :is(h1,h2,h3,h4,strong,b,label,legend,summary,th,td,.card-title,.metric-value,.stat-value){color:#172337}
:root[data-theme="light"] body :is(p,li,small,.muted,.hint,.detail,.fine,.foot,.footer,.meta,.subtitle,.desc,.sectionhead p,.tiny,.navsep){color:#58677c}
:root[data-theme="light"] body :is(.navmenu summary,.navitems,.globalnav summary,.globalnav-items,.research-menuitems){
 background:#fff!important;color:#172337!important;border-color:#dce2eb!important;
 box-shadow:0 12px 32px #17233712;
}
:root[data-theme="light"] body :is(.navitems a,.navitems button,.globalnav-items a,.research-menuitems a,.menulogout){
 color:#27364b!important;border-radius:10px;
}
:root[data-theme="light"] body :is(.navitems a:hover,.navitems button:hover,.globalnav-items a:hover,.research-menuitems a:hover,.sidetab:hover,.quick a:hover){
 background:#edf1f6!important;color:#78530a!important;
}
:root[data-theme="light"] body :is(.navitems a[aria-current="page"],.globalnav-items a[aria-current="page"],.active,[aria-current="page"]){
 background:#f8f1df;color:#6b4b0c!important;
}
:root[data-theme="light"] body :is(input,select,textarea){
 background:#fff!important;color:#172337!important;border:1px solid #cbd4e1!important;
 box-shadow:inset 0 1px 2px #17233708;
}
:root[data-theme="light"] body :is(input,select,textarea):focus{
 border-color:#9b741e!important;box-shadow:0 0 0 3px #c79b3030!important;outline:none;
}
:root[data-theme="light"] body :is(input,select,textarea)::placeholder{color:#718096!important;opacity:1}
:root[data-theme="light"] body :is(.primary,.submit,.btn.primary){
 background:#86600f!important;border:1px solid #86600f!important;color:#fff!important;
 box-shadow:0 2px 4px #86600f20;
}
:root[data-theme="light"] body :is(.primary,.submit,.btn.primary):hover{background:#6d4e0d!important;color:#fff!important}
:root[data-theme="light"] body :is(.secondary,.btn:not(.primary)){
 background:#f2f4f8!important;color:#27364b!important;border:1px solid #d6deea!important;
}
:root[data-theme="light"] body :is(.banner,.notice,.call,.disclosure,.warning){
 background:#fff7e5!important;color:#563f13!important;border:1px solid #ead8a8!important;
}
:root[data-theme="light"] body :is(.tag,.pill){
 background:#edf2f9!important;color:#2d496f!important;border:1px solid #d8e2f0;
}
:root[data-theme="light"] body :is(table){border-color:#dce2eb}
:root[data-theme="light"] body :is(th){background:#f3f5f9;color:#3a4b62}
:root[data-theme="light"] body :is(td){border-color:#e5e9f0;color:#27364b}
:root[data-theme="light"] body :is(tr:hover td){background:#f8f9fc}
:root[data-theme="light"] body :is(hr,.divider){border-color:#dce2eb}
:root[data-theme="light"] body :is(a){color:#78530a}
:root[data-theme="light"] body :is(.wows-footer,.wows-privacy){background:#fff!important;color:#27364b!important;border-color:#dce2eb!important}
:root[data-theme="light"] body :is(.wows-footer h2,.wows-footer h3,.wows-footcol b,.wows-privacy h2){color:#172337!important}
:root[data-theme="light"] body :is(.wows-footer p,.wows-footcol a,.wows-footcol span,.wows-copy,.wows-privacy p,.wows-privacy small){color:#58677c!important}
:root[data-theme="light"] body :is(.wows-privacy-actions button,.wows-privacy-manage){background:#f2f4f8!important;color:#27364b!important;border-color:#d6deea!important}
:root[data-theme="light"] body :is(.wows-privacy-actions .accept){background:#86600f!important;color:#fff!important;border-color:#86600f!important}
:root[data-theme="light"] body :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #9b741e!important;outline-offset:2px}
