.battery-tool {
  padding-top: 2.5rem;
}

.battery-copy {
  max-width: min(1180px, 94vw);
}

.strong-note {
  color: var(--text);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.tool-sidebar {
  display: grid;
  gap: 1rem;
}

.tool-main {
  display: grid;
  gap: 1rem;
}

.tool-card,
.result-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
}

.file-drop {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(136, 190, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.file-drop input {
  margin-top: 0.4rem;
}

.file-drop-title {
  font-weight: 500;
  color: var(--text);
}

.file-drop-body,
.tool-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.mapping-box {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mapping-title {
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 500;
}

.mapping-grid,
.field-grid {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  color: var(--text);
  font-size: 0.92rem;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
}

.tooltip-button {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(136, 190, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font: 600 0.78rem "Space Grotesk", sans-serif;
  line-height: 1;
  cursor: help;
}

.tooltip-button:hover,
.tooltip-button:focus-visible {
  border-color: rgba(136, 190, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.field input,
.field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 9, 15, 0.45);
  color: var(--text);
  font: 400 0.95rem "Space Grotesk", sans-serif;
}

.checkbox-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  color: var(--text);
}

.battery-actions {
  margin-top: 1rem;
}

.battery-actions-top {
  margin-top: 0;
  margin-bottom: 1rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.kpi-card {
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.35rem;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.kpi-value {
  font-size: 1.25rem;
  color: var(--text);
}

.plot-frame {
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 17, 0.55);
}

.plot-frame.compact {
  min-height: 320px;
}

@media (max-width: 1080px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}
