/* Handshake scoreboard + promote — registry design */

.board-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.board-stat {
  display: flex;
  flex-direction: column;
  min-width: 88px;
  padding: 10px 12px;
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  background: var(--hp-card);
  color: inherit;
  text-decoration: none;
}

.board-stat b {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.board-stat span {
  font-family: var(--hp-mono);
  font-size: 11px;
  color: var(--hp-muted2);
}

.board-stat.is-active {
  border-color: var(--hp-accent);
  background: var(--hp-accent-tint);
}

.board-stat--ok b { color: #4338ca; }
.board-stat--auth b { color: #b45309; }
.board-stat--down b { color: #b91c1c; }

.board-host-note {
  margin: 0;
  font-size: 13px;
  color: var(--hp-muted);
}

.board-shell .dir-controls {
  align-items: center;
}

.board-promote-cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-accent) !important;
}

.board-pins {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px dashed var(--hp-border2);
  border-radius: 12px;
  background: var(--hp-surface);
}

.board-pins__label,
.board-pins--empty p {
  margin: 0 0 10px;
  font-family: var(--hp-mono);
  font-size: 11.5px;
  color: var(--hp-muted2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.board-pin {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--hp-border);
}

.board-pin__badge {
  grid-row: span 2;
  align-self: center;
  font-family: var(--hp-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 4px 8px;
}

.board-pin__name { font-weight: 600; }
.board-pin__blurb { font-size: 13px; color: var(--hp-muted); }

.board-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hp-border);
  border-radius: 12px;
  background: var(--hp-card);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.board-table th {
  text-align: left;
  font-family: var(--hp-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-muted2);
  padding: 12px 14px;
  border-bottom: 1px solid var(--hp-border);
}

.board-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hp-border);
  vertical-align: top;
}

.board-rank {
  font-family: var(--hp-mono);
  color: var(--hp-muted2);
  width: 3ch;
}

.board-name {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.board-name:hover { color: var(--hp-accent); }

.board-meta {
  font-family: var(--hp-mono);
  font-size: 11px;
  color: var(--hp-faint);
}

.board-clock,
.board-host code {
  font-family: var(--hp-mono);
  font-size: 12px;
}

.board-host--none { color: var(--hp-faint); font-size: 12px; }

.board-host--template {
  color: #92400e;
}

.board-host-tag {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--hp-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 2px 6px;
  vertical-align: middle;
}

.board-status {
  font-size: 12px;
  font-weight: 600;
}

.board-status--local_unprobed,
.board-status--not_probed { color: var(--hp-muted2); }

.board-footnote {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--hp-muted);
}

.promote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.promote-card h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.promote-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--hp-muted);
  line-height: 1.5;
}

.promote-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.promote-form input,
.promote-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  background: var(--hp-card);
  color: var(--hp-text);
}

.promote-hp {
  position: absolute;
  left: -9999px;
}

.promote-flash {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--hp-surface);
  margin-bottom: 18px;
}

.promote-flash--ok {
  background: var(--hp-accent-tint);
}

@media (max-width: 800px) {
  .promote-grid {
    grid-template-columns: 1fr;
  }

  .board-promote-cta {
    margin-left: 0;
  }
}
