/* FitsCalc Elements R15.2 — native Industrial UI, according to supplied
   FitsCalc Sortament Native reference. Scope restricted to #fc-app.
   Retains periodic element family coloring, scientific tables and JS R14.
   R15/R15.1 overrides are NOT loaded. */
body[data-fc-module="periodic-elements"] {
  background: #e7ebe8;
  color: #000;
  font: 13px/1.45 "Segoe UI", Arial, sans-serif;
}
body[data-fc-module="periodic-elements"] #fc-page-content > .fc-module-header {
  margin-bottom: 16px;
}
body[data-fc-module="periodic-elements"] #fc-app {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 32px;
  font: 13px/1.45 "Segoe UI", Arial, sans-serif;
  color: #000;
  background: transparent;
}
#fc-app :is(input,select,button,textarea) { font-family: "Segoe UI", Arial, sans-serif; }
#fc-app :is(.fc-controls,.fc-card,.fc-workbench,.fc-inset,.fc-r10-science,.fc-r10-context,.fc-r12-quality,.fc-fact,.fc-table-wrapper) {
  border: 1px solid #aab5ae;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  color: #000;
}
#fc-app .fc-controls {
  display: grid;
  grid-template-columns: minmax(180px,1.5fr) minmax(150px,1fr) minmax(180px,1.1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  margin: 0 0 14px;
  background: #f8f9f7;
}
#fc-app .fc-controls:has(#fc-temperature-wrap:not([hidden])) {
  grid-template-columns: minmax(170px,1.3fr) minmax(140px,1fr) minmax(160px,1.1fr) minmax(150px,.9fr) auto;
}
#fc-app :is(.fc-controls label,.fc-fields label) {
  color: #000;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
#fc-app :is(input[type="search"], input[type="number"],select,textarea) {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #718078;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  color: #000;
  font: 14px/1.4 "Segoe UI", Arial, sans-serif;
}
#fc-app input[type="range"] { accent-color: #365c76; }
#fc-app :is(.fc-primary,.fc-quiet,.fc-tab) {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #718078;
  border-radius: 3px;
  background: #eef1ee;
  box-shadow: none;
  color: #000;
  font: 600 13px/1.4 "Segoe UI", Arial, sans-serif;
}
#fc-app .fc-primary:not(.fc-tab) { background: #365c76; color: #fff; border-color: #365c76; }
#fc-app :is(.fc-primary,.fc-quiet,.fc-tab):hover:not(:disabled) { filter: brightness(.96); }
#fc-app :is(button,input,select,textarea,[tabindex="0"]):focus-visible {
  outline: 2px solid #1674a1;
  outline-offset: 2px;
}
#fc-app .fc-card { padding: 16px; }
#fc-app .fc-top {
  display: grid;
  grid-template-columns: minmax(0,2.65fr) minmax(285px,.95fr);
  gap: 14px;
  align-items: start;
}
#fc-app :is(.fc-card-heading,.fc-workbench-heading) { margin-bottom: 12px; }
#fc-app :is(.fc-card-heading h2,.fc-workbench-heading h2,#fc-selected h2) {
  margin: 0 0 4px;
  color: #000;
  font: 600 18px/1.3 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
}
#fc-app :is(.fc-card-heading p,.fc-workbench-heading p,.fc-small,.fc-note,.fc-muted,.fc-selected-top p,.fc-footer) {
  color: #4c5853;
  font-size: 12px;
  line-height: 1.45;
}
#fc-app #fc-count { color: #000; font: 600 13px "Segoe UI",Arial,sans-serif; }
#fc-app :is(.fc-inset h3,.fc-r10-science h3,.fc-section-heading h3) {
  color: #000;
  font: 600 16px/1.35 "Segoe UI",Arial,sans-serif;
}
#fc-app .fc-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #aab5ae;
  border-radius: 3px;
  padding: 8px;
  margin: 10px 0 0;
  background: #fff;
  box-shadow: none;
}
#fc-app .fc-periodic { min-width: 760px; gap: 4px; }
#fc-app .fc-element {
  border-radius: 2px;
  box-shadow: none;
  transition: border-color .1s;
}
#fc-app .fc-element:hover { transform: none; box-shadow: 0 0 0 1px #365c76 inset; }
#fc-app .fc-element.fc-current { border-color: #25485c; box-shadow: 0 0 0 1px #25485c; }
#fc-app .fc-big-symbol {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border: 1px solid #aab5ae;
  border-radius: 3px;
  background: #eef1ee;
  color: #25485c;
  box-shadow: none;
}
#fc-app .fc-facts { gap: 8px; }
#fc-app .fc-fact { padding: 10px; }
#fc-app .fc-fact span { color: #4c5853; font: 400 12px/1.3 "Segoe UI",Arial,sans-serif; }
#fc-app .fc-fact strong { color: #000; font: 600 13px/1.4 "Segoe UI",Arial,sans-serif; }
#fc-app .fc-workbench { padding: 16px; margin-top: 14px; }
#fc-app .fc-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid #aab5ae;
}
#fc-app .fc-tab { flex: 0 0 auto; white-space: nowrap; }
#fc-app .fc-tab[aria-selected="true"] {
  background: #25485c;
  border-color: #25485c;
  color: #fff;
  border-radius: 3px;
}
#fc-app :is(.fc-inset,.fc-r10-science,.fc-r10-context) { padding: 14px; }
#fc-app .fc-r10-tag {
  display: inline-block;
  border: 1px solid #aab5ae;
  border-radius: 3px;
  background: #f8f9f7;
  color: #25485c;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
}
#fc-app .fc-r10-metadata { gap: 8px; }
#fc-app .fc-r12-quality > summary {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: #eef1ee;
  border-radius: 2px;
}
#fc-app .fc-r12-quality-content { padding: 12px; }
#fc-app .fc-table-wrapper { overflow-x: auto; max-width: 100%; }
#fc-app .fc-fact-table {
  min-width: 585px;
  width: 100%;
  border: 1px solid #aab5ae;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  color: #000;
  font: 13px/1.4 "Segoe UI",Arial,sans-serif;
}
#fc-app .fc-fact-table :is(th,td) {
  padding: 8px 10px;
  border: 1px solid #aab5ae;
  background: #fff;
  color: #000;
  font: 13px/1.4 "Segoe UI",Arial,sans-serif;
  vertical-align: top;
}
#fc-app .fc-fact-table thead th { font-weight: 600; background: #fff; position: static; text-transform: none; letter-spacing: normal; }
#fc-app .fc-fact-table tbody th { font-weight: 600; }
#fc-app .fc-fact-table tbody tr:nth-child(even) :is(th,td) { background: #fff; }
#fc-app .fc-fact-table tbody tr:hover :is(th,td) { background: #f8f9f7; }
#fc-app #fc-formula {
  background: #f8f9f7;
  border: 1px solid #aab5ae;
  border-radius: 3px;
  padding: 10px;
  color: #000;
  font: 13px/1.5 Consolas,monospace;
  overflow-wrap: anywhere;
}
#fc-app .fc-atom-graphic {
  display: block;
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 12px auto;
  border: 1px solid #aab5ae;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}
#fc-app .fc-footer { border-top: 1px solid #aab5ae; padding-top: 14px; }
@media (max-width: 1200px) {
  #fc-app .fc-top { grid-template-columns: minmax(0,1fr); }
  #fc-app .fc-controls, #fc-app .fc-controls:has(#fc-temperature-wrap:not([hidden])) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 700px) {
  #fc-app .fc-controls, #fc-app .fc-controls:has(#fc-temperature-wrap:not([hidden])) {
    grid-template-columns: minmax(0,1fr);
  }
  #fc-app .fc-controls > button { width: 100%; }
  #fc-app .fc-card, #fc-app .fc-workbench { padding: 12px; }
  #fc-app .fc-periodic { min-width: 760px; }
  #fc-app .fc-fields, #fc-app .fc-fields-3, #fc-app .fc-calc-grid, #fc-app .fc-atom-grid { grid-template-columns: minmax(0,1fr); }
  #fc-app .fc-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 400px) {
  #fc-app .fc-facts { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #fc-app .fc-element { transition: none; }
}
