/* QUÍMICA V20 · Tema oscuro completo para tabla, ficha atómica y herramientas. */
html[data-theme="dark"] .periodic-workbench {
  --v11-ink: #e5effa;
  --v11-muted: #a9bdd1;
  --v11-line: #304a65;
  --v11-teal: #79ded4;
  --v11-teal-dark: #9ce9e1;
  --v11-soft: #142840;
  --v11-card: #102238;
  color: #e5effa !important;
  border-color: #304861 !important;
  background: #0c1a2b !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] .periodic-workbench .periodic-workbench-head,
html[data-theme="dark"] .periodic-workbench .periodic-app-nav,
html[data-theme="dark"] .periodic-workbench .periodic-view {
  color: #e5effa !important;
  border-color: #304861 !important;
  background: #101f33 !important;
}
html[data-theme="dark"] .periodic-workbench .periodic-workbench-head {
  background: linear-gradient(115deg, #132b44, #102238 62%, #12313a) !important;
}
html[data-theme="dark"] .periodic-workbench .periodic-workbench-head h3,
html[data-theme="dark"] .periodic-workbench .v11-detail-heading h3,
html[data-theme="dark"] .periodic-workbench .v11-tool-heading h3,
html[data-theme="dark"] .periodic-workbench .v11-atom-card-head h5,
html[data-theme="dark"] .periodic-workbench .v11-symbol-line h4,
html[data-theme="dark"] .periodic-workbench .v11-source-panel h6 {
  color: #edf5ff !important;
}
html[data-theme="dark"] .periodic-workbench .periodic-workbench-head p,
html[data-theme="dark"] .periodic-workbench .v11-detail-hint,
html[data-theme="dark"] .periodic-workbench .v11-tool-heading p,
html[data-theme="dark"] .periodic-workbench .v11-detail-number,
html[data-theme="dark"] .periodic-workbench .v11-symbol-line span,
html[data-theme="dark"] .periodic-workbench .v11-model-disclaimer,
html[data-theme="dark"] .periodic-workbench .v11-science-note,
html[data-theme="dark"] .periodic-workbench .v11-config-block p,
html[data-theme="dark"] .periodic-workbench .v11-data-note,
html[data-theme="dark"] .periodic-workbench .v11-source-panel p {
  color: #a9bdd1 !important;
}
html[data-theme="dark"] .periodic-workbench .periodic-kicker,
html[data-theme="dark"] .periodic-workbench .v11-symbol-line > strong { color: #80e0d6 !important; }
html[data-theme="dark"] .periodic-workbench .periodic-head-stats span,
html[data-theme="dark"] .periodic-workbench .v11-head-stat,
html[data-theme="dark"] .periodic-workbench .v11-series-wrap,
html[data-theme="dark"] .periodic-workbench .v11-element-detail,
html[data-theme="dark"] .periodic-workbench .v11-atom-card,
html[data-theme="dark"] .periodic-workbench .v11-property-card,
html[data-theme="dark"] .periodic-workbench .v11-ion-card,
html[data-theme="dark"] .periodic-workbench .v11-quiz-shell,
html[data-theme="dark"] .periodic-workbench .v11-quiz-start,
html[data-theme="dark"] .periodic-workbench .v11-quiz-end,
html[data-theme="dark"] .periodic-workbench .v11-question-card {
  color: #dce8f5 !important;
  border-color: #304861 !important;
  background: #11243a !important;
}
html[data-theme="dark"] .periodic-workbench .v11-element-detail {
  background: linear-gradient(145deg, #10243a, #0d1d30) !important;
}
html[data-theme="dark"] .periodic-workbench .v11-detail-top,
html[data-theme="dark"] .periodic-workbench .v11-tool-heading,
html[data-theme="dark"] .periodic-workbench .v11-detail-tabs {
  border-color: #304861 !important;
  background: #142840 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-element-photo {
  border-color: #36516c !important;
  background: #0b1929 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-element-photo small {
  border-color: #304861 !important;
  color: #a9bdd1 !important;
  background: #12263d !important;
}
html[data-theme="dark"] .periodic-workbench .v11-family-chip,
html[data-theme="dark"] .periodic-workbench .v11-neutral-chip {
  border-color: #35536a !important;
  color: #b8e7e1 !important;
  background: #173447 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-predicted-chip {
  border-color: #765b8d !important;
  color: #ead8f7 !important;
  background: #382a48 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-canvas-wrap {
  border: 1px solid #29485c;
  background: radial-gradient(circle at 50% 45%, #183d50, #0b1a2b 84%) !important;
}
html[data-theme="dark"] .periodic-workbench .v11-canvas-overlay {
  border-color: #45657b !important;
  color: #c1d4e4 !important;
  background: rgba(7, 23, 39, .86) !important;
}
html[data-theme="dark"] .periodic-workbench .v11-model-tag {
  color: #aeece5 !important;
  background: #173b49 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-detail-tabs button {
  color: #a9bdd1 !important;
  background: transparent !important;
}
html[data-theme="dark"] .periodic-workbench .v11-detail-tabs button.is-active {
  color: #dffffa !important;
  background: #1c4654 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-fact-box,
html[data-theme="dark"] .periodic-workbench .v11-config-short,
html[data-theme="dark"] .periodic-workbench .v11-config-value,
html[data-theme="dark"] .periodic-workbench .v11-mini-facts > div,
html[data-theme="dark"] .periodic-workbench .v12-nucleus-stats > div,
html[data-theme="dark"] .periodic-workbench .v13-nucleus-stats > div {
  border-color: #304861 !important;
  background: #172c43 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-fact-box span,
html[data-theme="dark"] .periodic-workbench .v11-config-short > span,
html[data-theme="dark"] .periodic-workbench .v11-mini-facts span,
html[data-theme="dark"] .periodic-workbench .v11-data-label {
  color: #a9bdd1 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-fact-box b,
html[data-theme="dark"] .periodic-workbench .v11-mini-facts b,
html[data-theme="dark"] .periodic-workbench .v11-config-short code,
html[data-theme="dark"] .periodic-workbench .v11-config-value {
  color: #e5f2ff !important;
}
html[data-theme="dark"] .periodic-workbench .v11-fact-box small { color: #93a9c0 !important; }
html[data-theme="dark"] .periodic-workbench .v11-inline-link,
html[data-theme="dark"] .periodic-workbench .v11-source-panel a { color: #80e0d6 !important; }
html[data-theme="dark"] .periodic-workbench .v11-warning-note {
  border-color: #695174 !important;
  color: #e6d6f2 !important;
  background: #30243c !important;
}
html[data-theme="dark"] .periodic-workbench .v11-source-panel hr { border-color: #304861 !important; }
html[data-theme="dark"] .periodic-workbench .v11-controls-row input,
html[data-theme="dark"] .periodic-workbench .v11-controls-row select,
html[data-theme="dark"] .periodic-workbench .v11-compare-selectors select,
html[data-theme="dark"] .periodic-workbench .periodic-controls-v11 input,
html[data-theme="dark"] .periodic-workbench .periodic-controls-v11 select,
html[data-theme="dark"] .periodic-workbench .v12-orbital-select select,
html[data-theme="dark"] .periodic-workbench .v13-orbital-select select {
  border-color: #3a5672 !important;
  color: #e5eff9 !important;
  background: #0b1a2b !important;
  color-scheme: dark;
}
html[data-theme="dark"] .periodic-workbench .v11-clear,
html[data-theme="dark"] .periodic-workbench .v11-small-button,
html[data-theme="dark"] .periodic-workbench .v11-primary-button,
html[data-theme="dark"] .periodic-workbench .v11-answer-option,
html[data-theme="dark"] .periodic-workbench .v12-modebar button,
html[data-theme="dark"] .periodic-workbench .v13-modebar button {
  border-color: #3a5672 !important;
  color: #dce9f6 !important;
  background: #193149 !important;
}
html[data-theme="dark"] .periodic-workbench .v11-clear:hover,
html[data-theme="dark"] .periodic-workbench .v11-small-button:hover,
html[data-theme="dark"] .periodic-workbench .v11-answer-option:hover:not(:disabled) {
  border-color: #6acbc4 !important;
  background: #20445a !important;
}
html[data-theme="dark"] .periodic-workbench .v11-answer-option.is-correct { border-color: #397c60 !important; color: #c3f3d6 !important; background: #15382e !important; }
html[data-theme="dark"] .periodic-workbench .v11-answer-option.is-wrong { border-color: #86534f !important; color: #ffd0c8 !important; background: #412725 !important; }
html[data-theme="dark"] .periodic-workbench .v11-shell-chip,
html[data-theme="dark"] .periodic-workbench .v12-modebar,
html[data-theme="dark"] .periodic-workbench .v13-modebar,
html[data-theme="dark"] .periodic-workbench .v12-orbital-meta,
html[data-theme="dark"] .periodic-workbench .v13-orbital-meta,
html[data-theme="dark"] .periodic-workbench .v12-node-controls,
html[data-theme="dark"] .periodic-workbench .v13-node-controls,
html[data-theme="dark"] .periodic-workbench .v12-model-readout,
html[data-theme="dark"] .periodic-workbench .v13-model-readout,
html[data-theme="dark"] .periodic-workbench .v12-science-note,
html[data-theme="dark"] .periodic-workbench .v13-science-note {
  border-color: #304861 !important;
  color: #bdd0e3 !important;
  background: #142940 !important;
}
html[data-theme="dark"] .periodic-workbench .v12-orbital-meta::after,
html[data-theme="dark"] .periodic-workbench .v13-orbital-meta::after { color: #9fb8cf !important; }
html[data-theme="dark"] .periodic-workbench .v12-nucleus-stats > div,
html[data-theme="dark"] .periodic-workbench .v13-nucleus-stats > div { color: #e0edf9 !important; }
html[data-theme="dark"] .periodic-workbench .v12-nucleus-stats span,
html[data-theme="dark"] .periodic-workbench .v13-nucleus-stats span { color: #a9bdd1 !important; }
html[data-theme="dark"] .periodic-workbench .v11-ion-type.cation { color: #cbd9ff !important; background: #26385b !important; }
html[data-theme="dark"] .periodic-workbench .v11-ion-type.anion { color: #e7d4ff !important; background: #402d53 !important; }
html[data-theme="dark"] .periodic-workbench .v11-ion-type.polyatomic { color: #f2dfb9 !important; background: #4a3b27 !important; }
html[data-theme="dark"] .periodic-workbench .v11-compare-table { color: #dce8f5 !important; background: #102238 !important; }
html[data-theme="dark"] .periodic-workbench .v11-compare-table th,
html[data-theme="dark"] .periodic-workbench .v11-compare-table td { border-color: #304861 !important; color: #dce8f5 !important; background: #12263d !important; }
html[data-theme="dark"] .periodic-workbench .v11-compare-table thead th { color: #eaf4ff !important; background: #1a354e !important; }
html[data-theme="dark"] .periodic-workbench .v11-compare-table tbody tr:nth-child(even) td { background: #172d45 !important; }
html[data-theme="dark"] .periodic-workbench .v11-quiz-icon { color: #82ded5 !important; }
html[data-theme="dark"] .periodic-workbench .v11-quiz-start p,
html[data-theme="dark"] .periodic-workbench .v11-quiz-end p { color: #afc3d7 !important; }
html[data-theme="dark"] .periodic-workbench .v11-element-tile { color: #e4eef9 !important; }
html[data-theme="dark"] .periodic-workbench .v11-element-tile .v11-tile-number,
html[data-theme="dark"] .periodic-workbench .v11-element-tile .v11-tile-name,
html[data-theme="dark"] .periodic-workbench .v11-element-tile .v11-tile-mass { color: #c0d0e2 !important; }
html[data-theme="dark"] .periodic-workbench .v11-series-label { color: #e0edf9 !important; }
html[data-theme="dark"] .periodic-workbench .v11-series-label small { color: #a9bdd1 !important; }
html[data-theme="dark"] .periodic-workbench .v11-data-note,
html[data-theme="dark"] .periodic-workbench .v11-result-count,
html[data-theme="dark"] .periodic-workbench .v11-table-legend,
html[data-theme="dark"] .periodic-workbench .v11-legend-item,
html[data-theme="dark"] .periodic-workbench .v11-legend-note { color: #aebfd2 !important; }
html[data-theme="dark"] .periodic-workbench .v11-series-label { background: #142840 !important; }
html[data-theme="dark"] .periodic-workbench .v11-clear:focus-visible,
html[data-theme="dark"] .periodic-workbench .v11-small-button:focus-visible,
html[data-theme="dark"] .periodic-workbench .v11-answer-option:focus-visible { outline-color: #7fe3d9 !important; }

html[data-theme="dark"] .periodic-workbench .v12-modebar button.is-active,
html[data-theme="dark"] .periodic-workbench .v13-modebar button.is-active {
  border-color: #4c9e9a !important;
  color: #e2fffb !important;
  background: #1b4a55 !important;
  box-shadow: inset 0 0 0 1px rgba(128,224,214,.12) !important;
}
