
/* Antropometría Andina · identidad visual unificada */
:root{
  color-scheme:light;
  --aa-ink:#183746;
  --aa-blue:#31596a;
  --aa-paper:#f3f6f7;
  --aa-panel:#ffffff;
  --aa-soft:#e8eef1;
  --aa-line:#d7e1e5;
  --aa-muted:#657985;
  --aa-accent:#8fcbd5;
}
html{background:var(--aa-paper)}
body{
  background-color:var(--aa-paper)!important;
  color:var(--aa-ink)!important;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
body :where(h1,h2,h3,h4,h5,h6){color:var(--aa-ink)!important}
body :where(p,li,label,small,span,strong,em,output,legend,summary,.subtitle,.note,.description,.muted){color:var(--aa-muted)!important}
body :where(.badge,.tag,.eyebrow,.section-title,.panel-title,.card-title){color:var(--aa-blue)!important}
body :where(p,li,label,small,.subtitle,.note,.description,.muted){color:var(--aa-muted)}
body :where(a){color:var(--aa-blue)}
body :where(header.site-header,body>header,header:not(.viewer-head),.site-header,.topbar,.app-header){
  background:var(--aa-soft)!important;
  color:var(--aa-ink)!important;
  border-color:var(--aa-line)!important;
  box-shadow:0 2px 12px #1837460a;
}
body :where(#sidebar,.sidebar,.panel,.card,.quote-box,.formula-box,.control-panel,.controls-panel,.settings-panel,.tool-panel,.content-card,.info-card,.section-card,.group-card,.modal-content,.settings,.controls){
  background:var(--aa-panel)!important;
  color:var(--aa-ink)!important;
  border-color:var(--aa-line)!important;
  box-shadow:0 5px 18px #1837460a;
}
body :where(.section-title,.panel-title,.card-title,.group-title){color:var(--aa-blue)!important}
body :where(button,.button,.btn,input[type=button],input[type=submit]){
  background:var(--aa-blue);
  color:#fff;
  border-color:var(--aa-blue);
  border-radius:8px;
}
body :where(button:hover,.button:hover,.btn:hover,input[type=button]:hover,input[type=submit]:hover){
  background:#416d7e;
  border-color:#416d7e;
}
body :where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){
  background:#fbfcfd!important;
  color:var(--aa-ink)!important;
  border:1px solid var(--aa-line)!important;
  border-radius:8px;
}
body :where(input[type=range],input[type=checkbox],input[type=radio]){accent-color:var(--aa-blue)}
body :where(table th){background:var(--aa-soft);color:var(--aa-ink)}
body :where(table td){border-color:var(--aa-line)}
body :where(.nav-bar,.toolbar,.actions,.action-bar){border-color:var(--aa-line)}
body :where(.nav-btn,.tab,.chip,.tag,.badge){
  border-color:var(--aa-line);
}
body :where(.nav-btn){background:var(--aa-soft);color:var(--aa-blue)}
body :where(.nav-btn:hover){background:#dce8ec;color:var(--aa-ink)}
/* Neutraliza paneles de contenido que tenían fondos negros inline; no altera canvas ni SVG. */
body div[style*="background:#0c0a09"],
body div[style*="background: #0c0a09"],
body div[style*="background:#141210"],
body div[style*="background: #141210"],
body div[style*="background:#1c1917"],
body div[style*="background: #1c1917"],
body section[style*="background:#0c0a09"],
body section[style*="background: #0c0a09"]{
  background:#fff!important;
  color:var(--aa-ink)!important;
  border-color:var(--aa-line)!important;
}
body :where(.text-muted,.muted,.subtitle,.note){color:var(--aa-muted)!important}
/* El área de dibujo, los lienzos, imágenes y gráficos conservan sus colores funcionales. */
body canvas,body svg,body img{color:initial}
