/* PowerCheck Wizard v2 — Step-by-step UI */

#wizard-v2-mount {
  max-width: 720px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.wizard-card {
  background: var(--pc-bg-card, #ffffff);
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wizard-h2 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--pc-text-heading, #1a202c);
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
}

.wizard-h3 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pc-text-secondary, #4a5568);
  margin: 1rem 0 0.5rem 0;
}

.wizard-sub {
  font-size: 0.92rem;
  color: var(--pc-text-secondary, #4a5568);
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

.wizard-hint {
  font-size: 0.82rem;
  color: var(--pc-text-secondary, #4a5568);
  margin: 0.6rem 0;
  font-weight: 600;
}

.wizard-tip-box {
  background: rgba(255, 107, 53, 0.06);
  border-left: 3px solid var(--pc-accent, #FF6B35);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--pc-text, #2d3748);
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
}

/* ===== Hours control (Step 1) ===== */
.hours-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.5rem 0;
}
.hours-display {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--pc-accent, #FF6B35);
  min-width: 80px;
  text-align: right;
}
.hours-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pc-text-secondary, #4a5568);
  margin-left: 0.25rem;
}

/* ===== Truck type grid (Step 2) ===== */
.truck-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
  margin: 0.5rem 0 1.25rem 0;
}
.truck-type-btn {
  padding: 0.85rem 0.5rem;
  background: var(--pc-bg-card, #ffffff);
  border: 1.5px solid var(--pc-border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pc-text, #2d3748);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 56px;  /* touch target */
}
.truck-type-btn:hover { border-color: var(--pc-accent, #FF6B35); }
.truck-type-btn.selected {
  background: var(--pc-accent, #FF6B35);
  border-color: var(--pc-accent, #FF6B35);
  color: #ffffff;
}

/* ===== Equipment checklist (Step 3) ===== */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--pc-bg-card, #ffffff);
  border: 1.5px solid var(--pc-border, #e2e8f0);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.9rem;
  min-height: 48px;  /* touch target */
}
.checklist-item:hover { border-color: var(--pc-accent, #FF6B35); }
.checklist-item.checked {
  background: rgba(255, 107, 53, 0.05);
  border-color: var(--pc-accent, #FF6B35);
}
.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pc-accent, #FF6B35);
  flex-shrink: 0;
}
.checklist-label {
  flex: 1;
  color: var(--pc-text, #2d3748);
  font-weight: 500;
}
.checklist-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--pc-border, #e2e8f0);
  color: var(--pc-text-secondary, #4a5568);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

/* Quantity stepper on confirm-equipment rows */
.checklist-qty {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pc-text-primary, #1a202c);
}
.checklist-qty .qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: var(--pc-bg-secondary, #f7fafc);
  color: var(--pc-text-primary, #1a202c);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.checklist-qty .qty-btn:hover:not(:disabled) {
  background: var(--pc-accent, #FF6B35);
  color: #ffffff;
}
.checklist-qty .qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.checklist-qty .qty-value {
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.wizard-add-custom { margin: 1rem 0 0.5rem 0; }

/* ===== Device rows (Steps 4-8) ===== */
.device-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem 0;
}
.device-row {
  background: var(--pc-bg-card, #ffffff);
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.device-note {
  font-size: 0.78rem;
  color: var(--pc-text-secondary, #64748b);
  margin: 0.45rem 0 0;
  line-height: 1.4;
  font-style: italic;
}
.device-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.device-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pc-text-heading, #1a202c);
}
.device-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.device-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pc-text-secondary, #4a5568);
  min-width: 130px;
}
.device-value {
  font-size: 0.85rem;
  color: var(--pc-text, #2d3748);
  min-width: 90px;
  text-align: right;
}
.device-value strong {
  color: var(--pc-accent, #FF6B35);
  font-weight: 800;
}

/* ===== Watt badges ===== */
.watt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
}
.watt-badge.neutral {
  background: var(--pc-border, #e2e8f0);
  color: var(--pc-text-secondary, #4a5568);
}
.watt-badge.unconfirmed {
  background: rgba(229, 62, 62, 0.08);
  color: #c53030;
  border: 1px solid rgba(229, 62, 62, 0.3);
}
.watt-badge.confirmed {
  background: rgba(56, 161, 105, 0.08);
  color: #2f855a;
  border: 1px solid rgba(56, 161, 105, 0.3);
}
.watt-check {
  font-size: 1rem;
  margin-right: 0.15rem;
}
.watt-confirm-btn {
  background: var(--pc-accent, #FF6B35);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.2rem 0.5rem;
  height: 22px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  white-space: nowrap;
  line-height: 1;
}
.watt-confirm-btn:hover { background: #e85a25; }
.watt-status {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  line-height: 1.2;
  margin-right: 0.15rem;
  cursor: help;
}
.watt-status-est {
  background: rgba(229, 62, 62, 0.15);
  color: #c53030;
}
.watt-status-confirmed {
  background: rgba(56, 161, 105, 0.15);
  color: #2f855a;
}
.watt-badge.neutral .watt-status-est {
  background: rgba(74, 85, 104, 0.18);
  color: #4a5568;
}
.watt-hint {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  background: #2d3748;
  color: #ffffff;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ===== Navigation buttons ===== */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pc-border, #e2e8f0);
  gap: 0.5rem;
}
.btn-back, .btn-next, .btn-restart {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  min-height: 48px;
}
.btn-back {
  background: transparent;
  color: var(--pc-text-secondary, #4a5568);
  border: 1.5px solid var(--pc-border, #e2e8f0);
}
.btn-back:hover { border-color: var(--pc-text-secondary, #4a5568); }
.btn-next {
  background: var(--pc-accent, #FF6B35);
  color: #ffffff;
}
.btn-next:hover { background: #e85a25; }
.btn-restart {
  background: transparent;
  color: var(--pc-text-secondary, #4a5568);
  text-decoration: underline;
}
.btn-link {
  background: transparent;
  border: none;
  color: var(--pc-accent, #FF6B35);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.4rem 0;
}
.btn-link:hover { text-decoration: underline; }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  #wizard-v2-mount { padding: 0 0.6rem; margin: 0.5rem auto; }
  .wizard-card { padding: 1.1rem 0.9rem; border-radius: 8px; }
  .wizard-h2 { font-size: 1.25rem; }
  .wizard-sub { font-size: 0.88rem; }
  .truck-type-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-grid { grid-template-columns: 1fr; }
  .device-control { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .device-label { min-width: 0; }
  .device-value { text-align: left; }
  .hours-display { font-size: 1.5rem; }
  .btn-next, .btn-back { padding: 0.7rem 1rem; font-size: 0.9rem; }
}

/* ============================================================ */
/* STEP 9 — RESULTS PAGE                                        */
/* ============================================================ */

.results-card {
  padding: 1.25rem 1rem;
}

.results-hero {
  margin: 1rem 0 1.25rem 0;
}

.results-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-stat {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 1rem 0.85rem;
  border: 1px solid #2d3748;
}

.hero-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0aec0;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.hero-stat-value {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
  color: #FF6B35;
  margin-bottom: 0.35rem;
}

.hero-unit {
  font-size: 0.85rem;
  color: #cbd5e0;
  font-weight: 600;
}

.hero-stat-foot {
  font-size: 0.72rem;
  color: #a0aec0;
  line-height: 1.3;
}

.results-section {
  margin: 1.25rem 0;
}

.results-prose {
  font-size: 0.92rem;
  color: var(--pc-text, #2d3748);
  line-height: 1.55;
  margin: 0.4rem 0;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.spec-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--pc-border, #e2e8f0);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--pc-text, #2d3748);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list strong {
  color: #1a202c;
  font-weight: 700;
}

/* Certifications grid */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.cert-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .cert-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cert-grid-3 { grid-template-columns: 1fr; gap: 1rem; }
}
.cert-col {
  background: #f8fafc;
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.cert-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pc-accent, #FF6B35);
  margin-bottom: 0.5rem;
}
.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cert-list li {
  padding: 0.4rem 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--pc-text, #2d3748);
  border-bottom: 1px solid #e2e8f0;
}
.cert-list li:last-child { border-bottom: none; }
.cert-list strong {
  color: #1a202c;
  font-weight: 700;
}

.results-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 8px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}

.results-table th {
  background: #f7fafc;
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 2px solid var(--pc-border, #e2e8f0);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pc-text-secondary, #4a5568);
}

.results-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--pc-border, #e2e8f0);
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table tfoot td {
  background: #f7fafc;
  font-weight: 700;
}

.results-warn {
  background: #fffaf0;
  border: 1px solid #f6ad55;
  color: #7b341e;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.75rem 0;
}

.results-warn .btn-link {
  background: none;
  border: none;
  color: #c05621;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  font-size: inherit;
}

.results-ok {
  background: #f0fff4;
  border: 1px solid #68d391;
  color: #22543d;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin: 0.75rem 0;
  font-weight: 600;
}

.results-cta {
  background: var(--pc-bg-card-alt, #f7fafc);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--pc-border, #e2e8f0);
}

.results-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-cta {
  background: var(--pc-accent, #FF6B35);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
  flex: 1 1 auto;
  min-width: 130px;
  text-align: center;
}

.btn-cta:hover {
  background: #e85a2a;
}

/* ============================================================ */
/* RESULTS CTA — 3-OPTION MODEL (2026-05-27)                    */
/* Save my work (primary)  +  Copy / PDF / mailto (secondary)   */
/* ============================================================ */

.save-card {
  background: linear-gradient(180deg, rgba(255,107,53,0.07), rgba(255,107,53,0.02));
  border: 1px solid rgba(255,107,53,0.45);
  border-radius: 10px;
  padding: 1rem 1rem 0.85rem;
  margin-top: 0.85rem;
}

.save-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pc-text-heading, #1a202c);
  margin-bottom: 0.25rem;
}

.save-card-sub {
  font-size: 0.86rem;
  color: var(--pc-text, #2d3748);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.save-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.save-row input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: #ffffff;
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 7px;
  color: var(--pc-text-heading, #1a202c);
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
}

.save-row input::placeholder {
  color: #94a3b8;
}

.save-row input:focus {
  outline: none;
  border-color: var(--pc-accent, #FF6B35);
  box-shadow: 0 0 0 2px rgba(255,107,53,0.2);
}

.btn-save {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--pc-accent, #FF6B35);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.btn-save:hover:not(:disabled) {
  background: #e85a2a;
}

.btn-save:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 0.85;
}

.save-status {
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
  min-height: 1.1em;
  line-height: 1.4;
}

.save-fineprint {
  font-size: 0.72rem;
  color: var(--pc-text-muted, #64748b);
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

/* Post-save success state */
.save-success {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.85rem;
}

.save-success-title {
  font-size: 1rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 0.35rem;
}

.save-success-sub {
  font-size: 0.86rem;
  color: var(--pc-text, #2d3748);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.save-success-sub #save-success-email {
  font-weight: 600;
  color: var(--pc-text-heading, #1a202c);
  word-break: break-all;
}

.save-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* "or, no signup" divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0.75rem;
  color: var(--pc-text-muted, #64748b);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pc-border, #e2e8f0);
}

.or-divider span {
  white-space: nowrap;
}

/* Secondary CTA row */
.secondary-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-secondary {
  flex: 1 1 calc(33.333% - 0.5rem);
  min-width: 0;
  padding: 0.6rem 0.8rem;
  background: #ffffff;
  color: var(--pc-text, #2d3748);
  border: 1px solid var(--pc-border, #cbd5e0);
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
}

.btn-secondary:hover {
  border-color: #94a3b8;
  background: #f7fafc;
  color: var(--pc-text-heading, #1a202c);
}

.secondary-note {
  font-size: 0.72rem;
  color: var(--pc-text-muted, #64748b);
  margin: 0.55rem 0 0;
  line-height: 1.5;
}

@media (max-width: 540px) {
  .save-row { grid-template-columns: 1fr; }
  .secondary-row { flex-direction: column; }
  .btn-secondary { flex: 1 1 auto; width: 100%; }
}

/* ============================================================ */
/* MOBILE                                                       */
/* ============================================================ */
@media (max-width: 480px) {
  #wizard-v2-mount {
    padding: 0 0.5rem;
    margin-top: 0.5rem;
  }
  .wizard-card { padding: 1rem 0.85rem; }
  .wizard-h2 { font-size: 1.25rem; }
  .hero-stat-value { font-size: 1.4rem; }
  .hero-stat { padding: 0.85rem 0.7rem; }
  .results-hero-grid { gap: 0.5rem; }
  .btn-cta { font-size: 0.85rem; padding: 0.65rem 0.85rem; }
  .results-table { font-size: 0.78rem; }
  .results-table th, .results-table td { padding: 0.45rem 0.5rem; }
}

/* ============================================================ */
/* HIGH-DRAW ADVISORY (>2500W) — see R5 block below for full styles */
/* ============================================================ */

.results-advisory {
  background: #fffaf0;
  border: 1px solid #f6ad55;
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

.results-advisory .wizard-h3 {
  margin-top: 0;
  color: #7b341e;
}

.advisory-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.6rem 0;
}

.advisory-list li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--pc-text, #2d3748);
  border-bottom: 1px dashed rgba(123, 52, 30, 0.15);
}

.advisory-list li:last-child {
  border-bottom: none;
}

/* R4 — Shift-marker slider zone (label ABOVE slider, no overlap into next row) */
.shift-slider-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.shift-marker-track {
  position: relative;
  height: 14px;
  width: 100%;
  pointer-events: none;
}
.shift-marker-tick {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #f6ad55;
  line-height: 1;
  font-weight: 800;
}
.shift-marker-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.62rem;
  color: var(--pc-text-secondary, #64748b);
  white-space: nowrap;
  background: var(--pc-bg-card, #fff);
  padding: 0 0.18rem;
  border-radius: 3px;
}
.shift-slider-wrap input[type="range"] {
  width: 100%;
  border-radius: 4px;
  height: 6px;
}
.device-control + .device-control {
  margin-top: 0.7rem;
}
.device-row .device-note,
.device-row .high-draw-advisory {
  clear: both;
  margin-top: 0.6rem;
}
/* Tighten watt-badge low-draw editable input */
.watt-badge.neutral {
  background: rgba(0,0,0,0.04);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--pc-text-secondary, #4a5568);
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}
.watt-badge.neutral input { font-size: 0.78rem; }

/* ==== R5: SIZE PICKER (S/M/L) ==== */
.device-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.device-header .device-name {
  flex: 1;
  min-width: 140px;
}
.size-picker {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.12rem;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--pc-border, #d4d4d8);
  border-radius: 5px;
}
.size-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--pc-text-secondary, #4a5568);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-width: 22px;
}
.size-btn:hover { background: rgba(255,107,53,0.12); color: var(--pc-text); }
.size-btn.active {
  background: var(--pc-accent, #FF6B35);
  color: #fff;
}

/* ==== R5+: HIGH-DRAW ADVISORY (block layout, mobile-first, no flex acrobatics) ==== */
/* DOM: .high-draw-advisory > .high-draw-body (.high-draw-chip + .high-draw-detail) + .propane-drop-btn? */
.high-draw-advisory {
  display: block;
  margin: 0.5rem 0 0 0 !important;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 193, 7, 0.10);
  border-left: 3px solid #f59e0b;
  border-radius: 3px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--pc-text, #1a1a1a);
}
.high-draw-body {
  display: block;
}
.high-draw-chip {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  color: #c2410c;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  margin: 0 0.5rem 0.35rem 0;
  vertical-align: middle;
}
.high-draw-detail {
  display: inline;
  color: var(--pc-text-secondary, #4a5568);
  font-size: 0.85rem;
}

/* Desktop ≥ 640px: chip + detail inline on one line (chip retains pill), button right-aligned on its own line */
@media (min-width: 640px) {
  .high-draw-advisory {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.85rem;
  }
  .high-draw-body {
    flex: 1 1 0;
    min-width: 0;
  }
  .high-draw-chip {
    margin: 0 0.5rem 0 0;
  }
  .high-draw-detail {
    font-size: 0.85rem;
  }
}

/* =====================================================
   R5-POST: HIGH-DRAW REVIEW MINI-MODAL
   ===================================================== */

/* Overlay — dark dimmed backdrop, fixed full-screen, centers panel */
.pc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: pc-modal-fade 160ms ease-out;
}

@keyframes pc-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal panel — white card, capped width, scrollable on small screens */
.pc-modal {
  background: var(--pc-bg-card, #ffffff);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 1rem;
  animation: pc-modal-slide 180ms ease-out;
}

@keyframes pc-modal-slide {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.pc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.pc-modal-header h2 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--pc-text-heading, #1a202c);
  margin: 0;
}

.pc-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--pc-text-secondary, #64748b);
  cursor: pointer;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  transition: background 120ms ease, color 120ms ease;
}
.pc-modal-close:hover {
  background: #f1f5f9;
  color: var(--pc-text, #1a202c);
}

.pc-modal-sub {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pc-text-secondary, #4a5568);
  margin: 0 0 1rem 0;
}
.pc-modal-sub strong { color: var(--pc-text, #1a202c); }

.pc-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--pc-border, #e2e8f0);
}

/* Lightweight toast used when there is nothing to review */
.pc-modal-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.18);
  z-index: 10000;
  animation: pc-toast-fade 2.2s ease forwards;
}

@keyframes pc-toast-fade {
  0%   { opacity: 0; transform: translateY(-6px); }
  10%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* High-draw row list inside the modal */
.hd-modal-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hd-modal-row {
  border: 1.5px solid var(--pc-border, #e2e8f0);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  transition: border-color 180ms ease, background 180ms ease;
}

.hd-modal-row.confirmed {
  border-color: #10b981;
  background: #ecfdf5;
}

.hd-modal-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--pc-text, #2d3748);
}

.hd-modal-row-head strong {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  color: var(--pc-text-heading, #1a202c);
}

.hd-modal-est {
  font-size: 0.82rem;
  color: var(--pc-text-secondary, #64748b);
  margin-left: auto;
}
.hd-modal-est strong { color: var(--pc-text, #1a202c); font-weight: 700; }

.hd-modal-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hd-modal-input-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--pc-text-secondary, #4a5568);
  font-weight: 600;
}

.hd-modal-watt-input {
  width: 72px;
  padding: 0.32rem 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  text-align: right;
  border: 1.5px solid var(--pc-border, #cbd5e1);
  border-radius: 6px;
  color: var(--pc-text, #1a202c);
  background: #ffffff;
}
.hd-modal-watt-input:focus {
  outline: none;
  border-color: var(--pc-accent, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.hd-modal-input-unit {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pc-text-secondary, #64748b);
}

.hd-modal-or {
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
  padding: 0 0.15rem;
}

.hd-modal-accept-btn {
  background: var(--pc-accent, #FF6B35);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, transform 80ms ease;
}
.hd-modal-accept-btn:hover  { background: #e85d2a; }
.hd-modal-accept-btn:active { transform: translateY(1px); }

.hd-modal-confirmed-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Mobile tweaks: stack the actions, full-width controls */
@media (max-width: 520px) {
  .pc-modal { padding: 1rem 0.9rem 0.85rem; max-height: 94vh; }
  .pc-modal-header h2 { font-size: 1.1rem; }
  .pc-modal-sub { font-size: 0.85rem; }

  .hd-modal-row-head { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .hd-modal-est { margin-left: 0; }

  .hd-modal-row-actions { gap: 0.45rem; }
  .hd-modal-input-label { width: 100%; justify-content: space-between; }
  .hd-modal-watt-input  { flex: 1; min-width: 0; }
  .hd-modal-or          { display: none; }
  .hd-modal-accept-btn  { width: 100%; padding: 0.55rem 0.95rem; }

  .pc-modal-footer { gap: 0.5rem; }
  .pc-modal-footer .btn-back,
  .pc-modal-footer .btn-next { flex: 1; }
}

/* R5-POST: Propane drop-out action on high-draw advisory */
.propane-drop-btn {
  background: #ffffff;
  color: #c2410c;
  border: 1.5px solid #f59e0b;
  border-radius: 6px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.35rem;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.propane-drop-btn:hover {
  background: #f59e0b;
  color: #ffffff;
  border-color: #d97706;
}
.propane-drop-btn:active { transform: translateY(1px); }

/* Mobile: propane button on its own line, full width, label wraps if needed */
.propane-drop-btn {
  display: block;
  margin-top: 0.55rem;
  margin-left: 0;
  width: 100%;
  white-space: normal;
  text-align: center;
}
@media (min-width: 640px) {
  .propane-drop-btn {
    display: inline-block;
    width: auto;
    margin-top: 0;
    margin-left: auto;
    white-space: nowrap;
  }
}
@media (max-width: 520px) {
  .propane-drop-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.3;
  }
}

/* ============================================================
   CUSTOM DEVICE MODAL (R5-post-8) — matches wizard light theme
   ============================================================ */
.pc-custom-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26, 32, 44, 0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: pc-modal-fade 160ms ease-out;
}
.pc-custom-modal {
  background: var(--pc-bg-card, #ffffff);
  color: var(--pc-text, #2d3748);
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 12px;
  width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(26, 32, 44, 0.25);
  animation: pc-modal-slide 180ms ease-out;
}
.pc-custom-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem 0.9rem 1.4rem;
  border-bottom: 1px solid var(--pc-border, #e2e8f0);
}
.pc-custom-modal-header h3 {
  margin: 0;
  font-size: 1.15rem; font-weight: 700;
  color: var(--pc-text-heading, #1a202c);
  letter-spacing: -0.01em;
}
.pc-custom-close {
  background: transparent; border: none; cursor: pointer;
  font-size: 1.25rem; line-height: 1;
  color: var(--pc-text-secondary, #4a5568);
  padding: 0.3rem 0.55rem; border-radius: 6px;
  transition: background 120ms, color 120ms;
}
.pc-custom-close:hover {
  background: var(--pc-bg-secondary, #f7fafc);
  color: var(--pc-text, #2d3748);
}
.pc-custom-modal-body { padding: 1.1rem 1.4rem 0.4rem 1.4rem; }
.pc-custom-label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--pc-text-heading, #1a202c);
  margin: 1rem 0 0.4rem 0;
  letter-spacing: 0.005em;
}
.pc-custom-label:first-child { margin-top: 0; }
.pc-custom-req {
  color: var(--pc-accent, #FF6B35);
  font-weight: 700;
  margin-left: 0.2rem;
}
.pc-custom-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  background: var(--pc-bg-card, #ffffff);
  color: var(--pc-text, #2d3748);
  border: 1.5px solid var(--pc-border, #e2e8f0);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 120ms, box-shadow 120ms;
  font-family: inherit;
}
.pc-custom-input::placeholder {
  color: var(--pc-text-secondary, #4a5568);
  opacity: 0.6;
}
.pc-custom-input:focus {
  outline: none;
  border-color: var(--pc-accent, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
/* Hide number-input spinners across browsers for a cleaner look */
.pc-custom-input[type="number"]::-webkit-outer-spin-button,
.pc-custom-input[type="number"]::-webkit-inner-spin-button,
.pc-custom-badge[type="number"]::-webkit-outer-spin-button,
.pc-custom-badge[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.pc-custom-input[type="number"],
.pc-custom-badge[type="number"] { -moz-appearance: textfield; }

.pc-custom-watts-row {
  display: flex; align-items: center; gap: 0.6rem;
}
.pc-custom-watts-row .pc-custom-input { flex: 1; }
.pc-custom-unit {
  color: var(--pc-text-secondary, #4a5568);
  font-size: 0.9rem; font-weight: 600;
  white-space: nowrap;
}
.pc-custom-hint {
  font-size: 0.78rem;
  color: var(--pc-text-secondary, #4a5568);
  margin-top: 0.4rem; line-height: 1.45;
}
.pc-custom-err {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 0.35rem; min-height: 1em;
  line-height: 1.3;
}
.pc-custom-slider-row {
  display: flex; align-items: center; gap: 0.85rem;
  margin-top: 0.5rem;
}
.pc-custom-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--pc-accent, #FF6B35);
  min-width: 0;
}
.pc-custom-badge {
  width: 70px;
  padding: 0.4rem 0.5rem;
  text-align: center; font-weight: 700;
  background: var(--pc-bg-card, #ffffff);
  color: var(--pc-text-heading, #1a202c);
  border: 1.5px solid var(--pc-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 120ms, box-shadow 120ms;
}
.pc-custom-badge:focus {
  outline: none;
  border-color: var(--pc-accent, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
.pc-custom-modal-footer {
  display: flex; justify-content: flex-end; gap: 0.6rem;
  padding: 1rem 1.4rem 1.1rem 1.4rem;
  border-top: 1px solid var(--pc-border, #e2e8f0);
  margin-top: 0.6rem;
}
/* Live preview block under the pattern selector — tells the user how the
   device will be sized before they confirm. */
.pc-custom-preview {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: var(--pc-bg-secondary, #f7fafc);
  border: 1px solid var(--pc-border, #e2e8f0);
  border-left: 3px solid var(--pc-accent, #FF6B35);
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--pc-text, #2d3748);
  line-height: 1.5;
}
.pc-custom-preview-title {
  color: var(--pc-text-heading, #1a202c);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.pc-custom-preview-line {
  margin-top: 0.15rem;
}
.pc-custom-preview-hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--pc-text-secondary, #4a5568);
  font-style: italic;
}
/* Inline picker bar (the dropdown that appears under the Add link) — match wizard light theme */
.wizard-add-device-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  background: var(--pc-bg-secondary, #f7fafc);
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 8px;
  margin-top: 0.5rem;
}
.wizard-add-device-bar select {
  flex: 1; min-width: 220px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background: var(--pc-bg-card, #ffffff);
  color: var(--pc-text, #2d3748);
  border: 1.5px solid var(--pc-border, #e2e8f0);
  border-radius: 6px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 120ms;
}
.wizard-add-device-bar select:focus {
  outline: none;
  border-color: var(--pc-accent, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
@media (max-width: 480px) {
  .pc-custom-modal { max-width: 100%; border-radius: 10px; }
  .pc-custom-modal-body { padding: 0.95rem 1.05rem 0.4rem 1.05rem; }
  .pc-custom-modal-header { padding: 0.95rem 1.05rem 0.85rem 1.05rem; }
  .pc-custom-modal-footer { padding: 0.9rem 1.05rem; }
  .pc-custom-modal-footer .btn-back,
  .pc-custom-modal-footer .btn-next { flex: 1; }
}

/* ============================================================ */
/* MOBILE LAUNCH FIXES (2026-05-29 beta3)                        */
/* ============================================================ */

/* iOS Safari auto-zooms inputs below 16px. Force 16px on mobile  */
/* viewports so tapping a field does not zoom the page.           */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Equipment results table — scroll hint on mobile.               */
/* The table has min-width:480px so it overflows the wrap on      */
/* narrow viewports. Adding a visible right-edge fade tells the   */
/* user the table is horizontally scrollable.                     */
@media (max-width: 640px) {
  .results-table-wrap {
    position: relative;
    background:
      linear-gradient(to right, white 30%, rgba(255,255,255,0)) 0 0,
      linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.12), rgba(0,0,0,0)) 0 0,
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.12), rgba(0,0,0,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 28px 100%, 28px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  /* beta12: explicit "swipe to see more" pill above the table.        */
  /* The fade gradient alone tested unclear in QA; pair it with text.  */
  .results-table-wrap::before {
    content: "← swipe to see all columns →";
    display: block;
    background: #fff7ed;
    color: #9a3412;
    border-bottom: 1px solid #fed7aa;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    letter-spacing: 0.02em;
    position: sticky;
    top: 0;
    z-index: 1;
  }
}

/* ============================================================ */
/* WATT INPUT — explicit "tap to edit" affordance (2026-05-29)   */
/* ============================================================ */
/* The watt number is a real <input>, not static text. Give it a */
/* visible underline + pencil icon so users see it is editable.  */

.watt-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px dashed currentColor;
  border-radius: 0;
  color: inherit;
  font-weight: 700;
  text-align: right;
  font-family: inherit;
  padding: 0 2px;
  margin: 0;
  cursor: text;
  appearance: textfield;
  -moz-appearance: textfield;
  transition: background 0.12s ease, border-bottom-color 0.12s ease, box-shadow 0.12s ease;
  /* iOS Safari floor — kept above 16 to avoid auto-zoom on focus */
  font-size: 16px;
}
.watt-input.watt-input-low { width: 56px; font-weight: 600; }
.watt-input.watt-input-confirmed { width: 64px; }
.watt-input.watt-input-unconfirmed { width: 64px; }

/* Hide native number spinners so the field reads as plain text  */
.watt-input::-webkit-outer-spin-button,
.watt-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hover — surface the editability before tap                    */
.watt-input:hover {
  background: rgba(255, 107, 53, 0.08);
  border-bottom-color: var(--pc-accent, #FF6B35);
}

/* Focus — clear active state, replaces the dashed underline     */
.watt-input:focus {
  outline: none;
  background: #ffffff;
  border-bottom: 1.5px solid var(--pc-accent, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
  border-radius: 4px;
  color: #2d3748;
}

/* Inline W unit + pencil icon spacing                           */
.watt-unit {
  font-weight: 700;
  margin-left: 1px;
}
.watt-edit-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.78em;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.12s ease;
  user-select: none;
}
.watt-badge:hover .watt-edit-icon {
  opacity: 1;
  transform: scale(1.08);
}

/* Touch-target padding for the badge so the pencil isn't tiny   */
@media (max-width: 640px) {
  .watt-input { padding: 2px 4px; min-height: 28px; }
  .watt-edit-icon { font-size: 0.9em; padding: 2px 4px; }
}

/* ============================================================ */
/* FIND MY SYSTEM CTA (beta5 — 2026-06-01)                       */
/* Prominent CTA on results page that reveals the system-matcher  */
/* panel via showFindSystem(). Active-opt-in (Craig spec).        */
/* ============================================================ */
.results-find-system {
  background: linear-gradient(135deg, #fff5ee 0%, #ffe9d6 100%);
  border: 2px solid var(--pc-accent, #FF6B35);
  padding: 1.1rem 1.15rem;
  border-radius: 10px;
  margin-top: 0.5rem;
}
.results-find-system .wizard-h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--pc-text-heading, #1a202c);
}
.results-find-system .results-prose {
  color: var(--pc-text, #2d3748);
  margin-bottom: 0.75rem;
}
.results-find-system .btn-cta {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .results-find-system { padding: 0.95rem 0.85rem; }
  .results-find-system .btn-cta { padding: 0.95rem 0.75rem; }
}

/* ============================================================ */
/* SYS BUY BUTTONS — Find My System per-card CTAs (beta12)       */
/* ============================================================ */
/* Battery / Inverter buy links inside system-match cards. These */
/* are the primary revenue CTAs so they must look like buttons,  */
/* not tiny text links, and meet 44px tap target on mobile.      */
.sys-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--pc-accent, #FF6B35);
  color: #fff !important;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
  flex: 1 1 auto;
  min-width: 140px;
}
.sys-buy-btn:hover, .sys-buy-btn:focus {
  background: #e85a26;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: #fff !important;
}
.sys-buy-btn:active { transform: translateY(1px); }
@media (max-width: 480px) {
  .sys-buy-btn { font-size: 0.9rem; flex: 1 1 100%; min-width: 100%; }
}

/* ===========================================================
   beta33 — Tutorial coachmark (hybrid banner that collapses to chip)
   Per-step expanded banner with intro/dismiss; once dismissed in a
   session, becomes a small "Tips" chip the user can re-tap to reopen.
   =========================================================== */
.tut-coach {
  position: relative;
  margin: 0 0 1.1rem 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,107,53,0.10), rgba(255,107,53,0.04));
  border: 1px solid rgba(255,107,53,0.35);
  border-left: 3px solid var(--pc-accent, #FF6B35);
  padding: 0.85rem 2.6rem 0.9rem 0.95rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pc-text, #1a202c);
  transition: all 180ms ease;
  overflow: hidden;
}
.tut-coach .tut-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pc-accent, #FF6B35);
  margin: 0 0 0.45rem 0;
}
.tut-coach .tut-head .tut-bulb { font-size: 1rem; line-height: 1; }
.tut-coach ul {
  margin: 0;
  padding-left: 1.1rem;
}
.tut-coach ul li { margin: 0.18rem 0; }
.tut-coach p { margin: 0.15rem 0; }
.tut-coach strong { color: var(--pc-text, #1a202c); }
.tut-coach .tut-close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--pc-text-secondary, #4a5568);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tut-coach .tut-close:hover {
  background: rgba(0,0,0,0.06);
  color: var(--pc-text, #1a202c);
}

/* Collapsed chip state */
.tut-coach.collapsed {
  padding: 0;
  border: none;
  background: transparent;
  margin: 0 0 0.8rem 0;
}
.tut-coach.collapsed > *:not(.tut-chip) { display: none; }
.tut-chip {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,107,53,0.10);
  border: 1px solid rgba(255,107,53,0.35);
  color: var(--pc-accent, #FF6B35);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease;
}
.tut-chip:hover { background: rgba(255,107,53,0.18); }
.tut-coach.collapsed .tut-chip { display: inline-flex; }

@media (max-width: 480px) {
  .tut-coach { font-size: 0.86rem; padding: 0.75rem 2.4rem 0.8rem 0.85rem; }
  .tut-coach .tut-head { font-size: 0.72rem; }
}
