.poe-content {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 50px;
}

.tool-hero {
  margin-bottom: 30px;
  padding: 8px 2px 30px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
  font-size: 14px;
  color: #a9bdd8;
}

.tool-breadcrumb a {
  color: #4da3ff;
  text-decoration: none;
}

.tool-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.tool-hero-copy {
  max-width: 950px;
}

.tool-kicker,
.panel-kicker {
  color: #318cff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tool-hero h1 {
  margin: 14px 0 12px;
  color: #f3f7ff;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.tool-hero p {
  max-width: 980px;
  margin: 0;
  color: #bfd0e8;
  font-size: 17px;
  line-height: 1.65;
}

.tool-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tool-version,
.tool-action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 150, 195, 0.38);
  border-radius: 14px;
  background: rgba(15, 32, 52, 0.78);
  color: #f1f6ff;
  font: inherit;
}

.tool-version {
  min-width: 64px;
  padding: 0 16px;
}

.tool-action-button {
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.poe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.panel,
.info-panel {
  border: 1px solid rgba(112, 148, 190, 0.22);
  border-radius: 22px;
  background: rgba(12, 27, 45, 0.78);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.panel {
  padding: 28px;
}

.panel-heading,
.device-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel h2 {
  margin: 8px 0 0;
  color: #f3f7ff;
  font-size: 25px;
}

.switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 9px;
  color: #c7d6e9;
  font-size: 14px;
  font-weight: 650;
}

.input-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(117, 153, 197, 0.32);
  border-radius: 13px;
  background: rgba(8, 20, 34, 0.85);
}

.input-unit input {
  width: 100%;
  padding: 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f8fd;
  font: inherit;
}

.input-unit span {
  padding: 0 15px;
  color: #8fa8c6;
}

.section-divider {
  height: 1px;
  margin: 30px 0;
  background: rgba(145, 170, 204, 0.16);
}

.add-device {
  padding: 11px 15px;
  border: 1px solid rgba(61, 145, 244, 0.5);
  border-radius: 12px;
  background: rgba(35, 104, 178, 0.16);
  color: #dcebff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.device-table-header,
.device-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.5fr) 90px 120px 110px 42px;
  gap: 10px;
  align-items: center;
}

.device-table-header {
  margin-top: 24px;
  padding: 0 8px 10px;
  color: #8299b7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.device-row {
  margin-top: 10px;
}

.device-row input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(117, 153, 197, 0.28);
  border-radius: 11px;
  outline: 0;
  background: rgba(8, 20, 34, 0.82);
  color: #f5f8fd;
  font: inherit;
}

.device-total {
  color: #eaf2ff;
  font-weight: 750;
  text-align: right;
}

.remove-device {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 115, 115, 0.28);
  border-radius: 10px;
  background: rgba(150, 45, 45, 0.12);
  color: #ffabab;
  cursor: pointer;
}

.result-panel {
  position: sticky;
  top: 100px;
}

.result-status {
  margin: 24px 0 18px;
  padding: 15px;
  border: 1px solid rgba(70, 150, 240, 0.32);
  border-radius: 13px;
  background: rgba(38, 111, 190, 0.12);
  color: #bcdcff;
  font-weight: 750;
  text-align: center;
}

.result-status.ok {
  border-color: rgba(61, 201, 138, 0.38);
  background: rgba(37, 143, 96, 0.13);
  color: #8ee6b7;
}

.result-status.warning {
  border-color: rgba(245, 183, 67, 0.42);
  background: rgba(174, 113, 25, 0.14);
  color: #ffd485;
}

.result-status.error {
  border-color: rgba(245, 96, 96, 0.42);
  background: rgba(167, 43, 43, 0.15);
  color: #ffaaaa;
}

.result-list {
  display: grid;
  gap: 4px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(142, 167, 200, 0.12);
  color: #aebfd4;
}

.result-row strong {
  color: #f1f6ff;
}

.result-row.emphasized {
  margin-top: 5px;
  color: #dce9f8;
  font-size: 17px;
}

.usage-block {
  margin-top: 28px;
}

.usage-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #b9c9dc;
}

.usage-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(6, 16, 29, 0.85);
}

.usage-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  color: #318cff;
  transition: width 180ms ease;
}

.recommendation {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(7, 19, 33, 0.72);
  color: #b8c9dd;
  line-height: 1.55;
}

.info-panel {
  margin-top: 24px;
  padding: 20px 24px;
  color: #abc0d9;
}

.info-panel strong {
  color: #e9f2ff;
}

.info-panel p {
  margin: 7px 0 0;
  line-height: 1.6;
}

@media (max-width: 1050px) {
  .tool-hero-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .poe-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .poe-content {
    width: min(100% - 24px, 1500px);
  }

  .switch-grid {
    grid-template-columns: 1fr;
  }

  .device-table-header {
    display: none;
  }

  .device-row {
    grid-template-columns: 1fr 80px;
  }

  .device-row input:first-child {
    grid-column: 1 / -1;
  }

  .device-total {
    text-align: left;
  }
}

/* Header an bestehende Toolbox-Tools angleichen */
.tool-hero {
  display: block;
}

.tool-breadcrumb {
  width: 100%;
  margin: 0 0 26px;
}

.tool-hero-row {
  width: 100%;
}

.tool-hero-copy {
  max-width: 980px;
}

.tool-hero-actions {
  margin-left: auto;
}

@media (min-width: 1051px) {
  .tool-hero-row {
    align-items: flex-end;
  }
}
