.happ-setup:has(.fx-happ-guide) > :not(.fx-happ-guide) { display: none !important; }
.fx-happ-guide h2 { margin: 0 0 12px; }
.fx-happ-guide p { color: #bfb4c6; line-height: 1.65; font-size: 16px; }
.fx-happ-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.fx-happ-steps > section { min-width: 0; border: 1px solid #44384f; border-radius: 12px; padding: 20px; background: #0b090e; }
.fx-happ-steps h3 { font-size: 20px; line-height: 1.4; margin: 0 0 16px; }
.fx-happ-steps label { display: block; font-size: 15px; margin-bottom: 12px; color: #cfc6d5; }
.fx-happ-steps select { width: 100%; min-height: 48px; padding: 10px; font-size: 16px; color: #fff; background: #211827; border: 1px solid #9871ac; border-radius: 8px; }
.fx-happ-guide .primary { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px; white-space: normal; text-align: center; line-height: 1.5; font-size: 14px; }
.fx-happ-guide [hidden] { display: none !important; }
.fx-happ-guide button:disabled { opacity: .45; cursor: not-allowed; }
.fx-happ-guide [data-extra] { display: block; color: #b9eaff; margin-top: 16px; font-size: 15px; text-decoration: underline; line-height: 1.5; }
.fx-happ-help { margin-top: 24px; border-top: 1px solid #44384f; padding-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fx-happ-help button { border: 1px solid #d04aff; border-radius: 8px; padding: 14px 18px; color: #eed8ff; background: #22132c; font-size: 16px; cursor: pointer; }
.fx-happ-help span { color: #bfb4c6; font-size: 14px; max-width: 440px; line-height: 1.5; }
.fx-happ-guide :focus-visible { outline: 2px solid #7edfff; outline-offset: 4px; }
@media(max-width: 1000px) { .fx-happ-steps { grid-template-columns: 1fr; } }

/* Compact rows: readable instructions, aligned actions, no stretched cards. */
.fx-happ-guide { max-width: 1100px; margin: 0 auto; }
.fx-happ-guide h2 { font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
.fx-happ-guide p { margin: 0; font-size: 15px; line-height: 1.6; }
.fx-happ-steps { grid-template-columns: 1fr; gap: 12px; }
.fx-happ-steps > section { display: grid; grid-template-columns: minmax(0,1fr) 290px; column-gap: 28px; row-gap: 8px; padding: 22px; border-color: #39303f; background: #0e0b12; }
.fx-happ-steps h3 { grid-column: 1; margin: 0; font-size: 18px; }
.fx-happ-steps p, .fx-happ-steps label, .fx-happ-steps details { grid-column: 1; margin: 0; }
.fx-happ-steps label { line-height: 1.6; }
.fx-happ-steps select, .fx-happ-steps .primary { grid-column: 2; grid-row: 1 / span 2; align-self: center; box-sizing: border-box; }
.fx-happ-guide .primary { border-radius: 9px; font-size: 14px; letter-spacing: .2px; font-weight: 650; text-transform: none; text-decoration: none; box-shadow: none; }
.fx-happ-guide [data-download] { color: #eddaff; background: #281832; border: 1px solid #795092; }
.fx-happ-guide [data-download]:hover { background: #362040; }
.fx-happ-guide [data-extra] { grid-column: 2; margin-top: 0; font-size: 13px; line-height: 1.5; color: #c9b2dc; }
.fx-happ-steps > section:nth-child(2) > p:last-child { font-size: 13px; color: #968a9f; }
.fx-happ-guide details { font-size: 14px; line-height: 1.6; }
.fx-happ-guide summary { color: #dbb3f4; cursor: pointer; width: fit-content; }
.fx-happ-guide details p { margin-top: 10px; font-size: 14px; }
.fx-happ-help { margin-top: 20px; padding-top: 20px; }
.fx-happ-help button { background: transparent; border-color: #6e4a80; font-size: 14px; text-transform: none; letter-spacing: 0; box-shadow: none; }
.fx-happ-help span { font-size: 13px; color: #968a9f; }
@media(max-width: 1050px) {
  .fx-happ-steps > section { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .fx-happ-steps select, .fx-happ-steps .primary, .fx-happ-guide [data-extra] { grid-column: 1; grid-row: auto; }
  .fx-happ-steps .primary, .fx-happ-steps select { margin-top: 4px; }
}
@media(max-width: 540px) { .fx-happ-guide h2 { font-size: 21px; } .fx-happ-help { gap: 12px; } .fx-happ-help button { width: 100%; } }

/* Connection verification panel, scoped to the HAPP guide. */
.fx-happ-guide [data-connection-check] { margin-top: 16px; padding: 22px; display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 12px 28px; border: 1px solid #594065; border-radius: 12px; background: linear-gradient(120deg,#1b1023,#0e0b12 75%); }
.fx-happ-guide [data-connection-check] h3 { grid-column: 1; margin: 0; color: #f4eafa; font-size: 18px; line-height: 1.4; }
.fx-happ-guide [data-connection-check] > p { grid-column: 1; font-size: 14px; color: #bfb4c6; line-height: 1.65; }
.fx-happ-guide [data-connection-check] > a { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: center; display: block; padding: 14px 18px; border: 1px solid #b736f3; border-radius: 9px; color: #eed8ff; background: #2a1538; text-decoration: none; font-size: 14px; font-weight: 650; }
.fx-happ-guide [data-connection-check] > a:hover { background: #3c1c50; border-color: #dc85ff; }
.fx-happ-guide [data-connection-check] details { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid #3d2b48; }
.fx-happ-guide [data-connection-check] details p { max-width: 850px; }
@media(max-width: 700px) { .fx-happ-guide [data-connection-check] { padding: 18px; grid-template-columns: 1fr; gap: 12px; } .fx-happ-guide [data-connection-check] > a { grid-column: 1; grid-row: auto; } }
