.swpf-esp32-wizard {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.swpf-esp32-wizard .wizard-header {
  margin-bottom: 24px;
}

.swpf-esp32-wizard .wizard-step {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #285ea8;
  font-weight: 700;
  margin-bottom: 12px;
}

.swpf-esp32-wizard h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.swpf-esp32-wizard .wizard-lead {
  font-size: 1.05rem;
  color: #495057;
}

.swpf-esp32-wizard .wizard-card {
  background: #fff;
  border: 1px solid #d9e2f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(20, 40, 80, 0.06);
  margin-bottom: 20px;
}

.swpf-esp32-wizard .wizard-flow-list {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.9;
}

.swpf-esp32-wizard .wizard-illustration,
.swpf-esp32-wizard .pairing-visual-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.swpf-esp32-wizard .device-box {
  min-width: 180px;
  text-align: center;
  padding: 22px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fbff 0%, #edf4ff 100%);
  border: 2px solid #b7cbe6;
  font-size: 1.2rem;
  font-weight: 700;
}

.swpf-esp32-wizard .device-box.large {
  min-width: 240px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.swpf-esp32-wizard .wireless-line {
  width: 180px;
  height: 0;
  border-top: 4px dashed #80a6d6;
  position: relative;
}

.swpf-esp32-wizard .wireless-line.connected-line {
  border-top-style: solid;
  border-top-width: 10px;
  border-top-color: #1fa55b;
}

.swpf-esp32-wizard .code-card {
  text-align: center;
}

.swpf-esp32-wizard .code-label {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 12px;
}

.swpf-esp32-wizard .pairing-code {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #173f72;
  line-height: 1;
  margin: 10px 0 16px;
}

.swpf-esp32-wizard .code-note,
.swpf-esp32-wizard .pairing-detail {
  color: #5c6670;
}

.swpf-esp32-wizard .pairing-status {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.swpf-esp32-wizard .pairing-status.waiting {
  color: #b26a00;
}

.swpf-esp32-wizard .pairing-status.connected {
  color: #198754;
}

.swpf-esp32-wizard .wizard-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.swpf-esp32-wizard .button.is-disabled,
.swpf-esp32-wizard .button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.swpf-esp32-wizard .mqtt-placeholder-card {
  text-align: center;
  padding: 48px 24px;
}

.swpf-esp32-wizard .mqtt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: #eef6ff;
  border: 3px solid #a8c9ef;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #24558f;
}

@media (max-width: 768px) {
  .swpf-esp32-wizard .wizard-illustration,
  .swpf-esp32-wizard .pairing-visual-card,
  .swpf-esp32-wizard .wizard-actions {
    flex-direction: column;
  }

  .swpf-esp32-wizard .wireless-line {
    width: 0;
    height: 80px;
    border-top: 0;
    border-left: 4px dashed #80a6d6;
  }

  .swpf-esp32-wizard .wireless-line.connected-line {
    border-left-style: solid;
    border-left-width: 10px;
    border-top: 0;
  }

  .swpf-esp32-wizard .pairing-code {
    font-size: 2.6rem;
    letter-spacing: 0.16em;
  }
}


.swpf-dev-accordion {
  margin-top: 20px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  background: #f7faff;
  overflow: hidden;
}

.swpf-dev-accordion summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: #234;
  list-style: none;
}

.swpf-dev-accordion summary::-webkit-details-marker {
  display: none;
}

.swpf-dev-accordion summary::after {
  content: "＋";
  float: right;
  font-weight: 700;
}

.swpf-dev-accordion[open] summary::after {
  content: "－";
}

.swpf-dev-accordion-body {
  padding: 0 16px 16px 16px;
  color: #334;
}

.swpf-dev-accordion-body h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.swpf-dev-accordion-body pre {
  background: #eef3f8;
  border-radius: 8px;
  padding: 10px 12px;
  overflow-x: auto;
}

.swpf-dev-accordion-body code {
  font-family: monospace;
}

.swpf-esp32-guide h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.swpf-esp32-guide h3 {
  margin: 18px 0 10px;
  font-size: 1.05rem;
}

.swpf-esp32-guide pre {
  overflow-x: auto;
  background: #0f172a;
  color: #e5eefc;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.92rem;
}

.swpf-esp32-guide code {
  word-break: break-word;
}

.swpf-esp32-guide .wizard-actions-left {
  justify-content: flex-start;
}

.swpf-esp32-guide .button,
.swpf-esp32-wizard .button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.swpf-esp32-guide .button:not(.button--primary),
.swpf-esp32-wizard .button:not(.button--primary) {
  background: #f4f6f8;
  border: 1px solid #b8c5d6;
}

.swpf-esp32-guide .button--primary,
.swpf-esp32-wizard .button--primary {
  background: #0d6efd;
  color: #fff;
  border: 1px solid #0d6efd;
}

.wizard-guide-link-card {
  background: #f8fbff;
}

.wizard-flow {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.9;
}
