/* Hashpoint email signup: a slim bar and the Lab block. Uses the
   dashboard's colour tokens (dashboard-*.css loads first). */
.hp-signup-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-btc);
  border-radius: 8px;
}
.hp-signup-text {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}
.hp-signup-text strong { color: var(--text); font-weight: 600; }
.hp-signup-form {
  flex: 1 1 300px;
  max-width: 480px;
  display: flex;
  gap: 8px;
  min-width: 0;
  margin: 0;
}
.hp-signup-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.hp-signup-input::placeholder { color: var(--muted); }
.hp-signup-input[aria-invalid="true"] { border-color: #e5484d; }
.hp-signup-button {
  flex: 0 0 auto;
  padding: 7px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #0b0d12;
  background: var(--accent-btc);
  border: 1px solid var(--accent-btc);
  border-radius: 6px;
  cursor: pointer;
}
.hp-signup-button:hover { filter: brightness(1.08); }
.hp-signup-button:disabled { opacity: 0.6; cursor: progress; }
.hp-signup-input:focus-visible,
.hp-signup-button:focus-visible {
  outline: 2px solid var(--accent-btc);
  outline-offset: 2px;
}
.hp-signup-status {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.hp-signup-status:empty { display: none; }
.hp-signup-status[data-state="ok"] { color: #3fb950; }
.hp-signup-status[data-state="error"] { color: #ff7b72; }
/* Screen-reader-only labels and the bot trap. */
.hp-signup-label,
.hp-signup-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Inside the Lab's block the bar sits on the block's own panel. */
.lab-block .hp-signup-bar { margin: 0; background: none; border: 0; padding: 0; }
.hp-signup-lede { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 420px) {
  .hp-signup-form { flex-wrap: wrap; }
  .hp-signup-input { flex: 1 1 100%; }
  .hp-signup-button { flex: 1 1 100%; }
}
