
.ais-impedance-app {
  max-width: 1180px;
  margin: 1rem auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
}
.ais-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: end;
  margin-bottom: 14px;
}
.ais-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ais-field input,
.ais-field select {
  min-width: 260px;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  color: #222;
}
.ais-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ais-buttons button {
  padding: 8px 12px;
  border: 1px solid #777;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.ais-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ais-side {
  width: 300px;
  min-width: 260px;
}
.ais-panel {
  border: 1px solid #c8c8c8;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}
.ais-panel-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.ais-plots {
  flex: 1 1 auto;
  min-width: 0;
}
.ais-plots canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 8px;
  margin-bottom: 12px;
}
.ais-param-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.ais-param-row input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #bbb;
  border-radius: 5px;
}
.ais-status {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #444;
}
.ais-status.error {
  color: #9b1c1c;
  font-weight: 600;
}
@media (max-width: 980px) {
  .ais-main {
    flex-direction: column;
  }
  .ais-side {
    width: 100%;
  }
}


/* Stronger specificity to avoid theme overrides */
#ais-impedance-app .ais-buttons button,
#ais-impedance-app button {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
  opacity: 1 !important;
}
#ais-impedance-app .ais-buttons button:hover,
#ais-impedance-app button:hover {
  background: #333 !important;
  color: #fff !important;
}
#ais-impedance-app input,
#ais-impedance-app select {
  background: #fff !important;
  color: #111 !important;
  opacity: 1 !important;
}


/* apply row */
#ais-impedance-app .ais-apply-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
