/* Biomedical Watch V1.0 — dark-only medical theme and compact language control */
:root{
  color-scheme:dark;
  --bw-page:#081421;
  --bw-page-2:#0d2034;
  --bw-surface:#12263b;
  --bw-surface-soft:#17314b;
  --bw-surface-pastel:#1b3a58;
  --bw-text:#eef7ff;
  --bw-muted:#b9cbe0;
  --bw-border:#315373;
  --bw-head:#1d456b;
  --bw-head-text:#ffffff;
  --bw-accent:#4ab3ff;
  --bw-shadow:0 12px 34px rgba(0,0,0,.25)
}
html,body{
  min-height:100%;
  background:linear-gradient(145deg,var(--bw-page),var(--bw-page-2)) fixed!important;
  color:var(--bw-text)!important
}
body,.s06-body,.s06-shell,.s09-shell,.s06-main,.main{
  background:transparent!important;
  color:var(--bw-text)!important
}
.s06-sidebar{
  background:color-mix(in srgb,var(--bw-surface) 92%,var(--bw-page))!important;
  border-right:1px solid var(--bw-border)!important
}
.s06-nav,.s06-group summary,.s06-submenu a,.s06-section-title,.s06-brand{color:var(--bw-text)!important}
.s06-nav.active,.s06-nav:hover,.s06-submenu a.active{
  background:var(--bw-surface-pastel)!important;
  color:var(--bw-accent)!important
}
.bw-disease-panel,.bw-filter-panel,.bw-card,.s06-table-panel,.bw-v98-filter-card,.bw-v98-table-card,
.s10-centres-empty,.page-header,.s10-pagebar,.bw-research-header{
  background:var(--bw-surface)!important;
  border-color:var(--bw-border)!important;
  box-shadow:var(--bw-shadow)!important;
  color:var(--bw-text)!important
}
.bw-disease-panel,.bw-pipeline,.bw-summary{
  background:linear-gradient(145deg,var(--bw-surface),var(--bw-surface-pastel))!important
}
h1,h2,h3,h4,.bw-card-title,.s06-table-head h2,.bw-filter-grid label>span,.bw-disease-form label>span,label>span,strong{
  color:var(--bw-text)!important
}
p,.eyebrow,.s10-eyebrow,.s10-muted,.bw-card-title span,.bw-summary-grid span{color:var(--bw-muted)!important}
input,select,textarea{
  background:var(--bw-surface)!important;
  color:var(--bw-text)!important;
  border-color:var(--bw-border)!important
}
.s06-table thead th,.bw-science-table thead th,.bw-v98-table thead th{
  background:var(--bw-head)!important;
  color:var(--bw-head-text)!important;
  border-color:color-mix(in srgb,var(--bw-head) 75%,white)!important;
  font-weight:800!important
}
.s06-table tbody td,.bw-science-table tbody td{
  color:var(--bw-text)!important;
  border-color:var(--bw-border)!important;
  background:var(--bw-surface)!important
}
.s06-table tbody tr:nth-child(even) td,.bw-science-table tbody tr:nth-child(even) td{background:var(--bw-surface-soft)!important}
.s06-table tbody tr:hover td,.bw-science-table tbody tr:hover td{background:var(--bw-surface-pastel)!important}
.bw-toolbar-stack{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:0 0 auto}
.bw-preferences{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.bw-pref-group{display:inline-flex;padding:3px;background:var(--bw-surface-soft);border:1px solid var(--bw-border);border-radius:999px}
.bw-pref-btn{
  border:0;
  background:transparent;
  color:var(--bw-muted);
  min-width:38px;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer
}
.bw-pref-btn:hover{color:var(--bw-text);background:rgba(255,255,255,.06)}
.bw-pref-btn[aria-pressed="true"]{
  background:var(--bw-surface-pastel);
  color:var(--bw-accent);
  box-shadow:0 2px 9px rgba(0,0,0,.2)
}
.bw-global-preferences{position:fixed;right:20px;top:16px;z-index:1200}
.bw-update-button{width:auto!important;min-width:210px}
.bw-reset{white-space:nowrap!important;min-width:110px!important;text-align:center!important}
@media(max-width:760px){
  .bw-research-header{align-items:flex-start!important}
  .bw-toolbar-stack{align-items:stretch;width:100%}
  .bw-preferences{justify-content:flex-start}
  .bw-update-button{width:100%!important}
  .bw-global-preferences{position:static;margin:12px}
}
