/* #789 M2b owner antenna-height claims (antenna-claims.js). Colors come only
 * from the theme variables in style.css so the customizer and dark mode
 * apply. */

/* A .btn's display would otherwise beat the hidden attribute. */
.ac-body [hidden] { display: none !important; }
.ac-hint, .ac-what { margin: 0 0 8px; font-size: 13px; }
/* #789 M3 — the node's current antenna height, above the claim. */
.ac-current { margin: 0 0 8px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ac-current-source { color: var(--text-muted); }
.ac-current-viewer { flex-basis: 100%; color: var(--text-muted); font-size: 12px; }
/* A line focused from code (focusQuietly) after the control that had the
   focus was replaced; keyboard focus still shows its ring. */
.ac-body [tabindex="-1"]:focus:not(:focus-visible), .ac-status[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.ac-expiry { margin: 4px 0 0; font-size: 12px; }
.ac-form, .ac-key-form { margin: 0; }
.ac-modes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.ac-mode { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; cursor: pointer; font-size: 13px; }
.ac-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.ac-label { font-size: 13px; font-weight: 600; flex-basis: 100%; }
.ac-label.ac-disabled { color: var(--text-muted); }
/* #898 — the height and station-details parts of one claim. */
.ac-fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 0 0 8px; padding: 4px 10px 6px; min-width: 0; }
.ac-fieldset-plain { border: 0; padding: 0; }
.ac-fieldset-plain > .ac-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.ac-details [hidden], .ac-form [hidden] { display: none !important; }
.ac-power { border: 0; padding: 0; margin: 6px 0; min-width: 0; }
.ac-power > .ac-label { padding: 0; }
.ac-field-hint { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--text-muted); }
.ac-visibility { margin-left: 2px; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; line-height: 18px; }
.ac-contact-admin .ac-visibility { border-color: var(--warning); }
.ac-replace-note { margin: 4px 0 2px; }
.ac-row .ac-select { min-height: 44px; flex: 1 1 140px; max-width: 320px; box-sizing: border-box; font-size: 16px; }
.ac-mode input { width: 18px; height: 18px; margin: 0; }
/* The public Station block (#898). */
.ac-station { margin: 0 0 10px; font-size: 13px; }
.ac-station-title { margin: 0 0 4px; font-size: 13px; }
.ac-station-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; }
.ac-station-row { display: contents; }
.ac-station-list dt { color: var(--text-muted); }
.ac-station-list dd { margin: 0; overflow-wrap: anywhere; }
.ac-station-note { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }
.ac-row .input { min-height: 44px; min-width: 0; flex: 1 1 140px; max-width: 320px; box-sizing: border-box; font-size: 16px; }

.ac-status, .ac-name-check {
  font-size: 13px;
  margin-top: 6px;
  min-height: 1em;
  color: var(--text-muted);
}
.ac-status[data-kind="success"], .ac-name-check[data-kind="success"] { color: var(--status-green-text); }
.ac-status[data-kind="warn"] { color: var(--status-amber-text); }
.ac-status[data-kind="error"], .ac-name-check[data-kind="error"] { color: var(--danger); }

.ac-code-row { margin: 4px 0 8px; font-size: 13px; }
.ac-code {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text);
}
.ac-steps { margin: 0 0 8px; padding-left: 20px; font-size: 13px; }
.ac-steps li { margin-bottom: 8px; }
.ac-cmd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.ac-cmd {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text);
  overflow-wrap: anywhere;
}
.ac-cmd-row .ac-cmd { flex: 1 1 180px; min-width: 0; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ac-restore { font-size: 13px; margin: 8px 0 0; }

/* Admin queue. */
.ac-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ac-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-filter[aria-pressed="true"] { border-color: var(--accent); color: var(--text); font-weight: 600; }
.ac-list { list-style: none; margin: 0; padding: 0; }
.ac-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ac-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; font-size: 13px; }
.ac-item-name { font-weight: 600; overflow-wrap: anywhere; }
/* The node and proof links are touch targets (44 px). */
a.ac-item-name, .ac-item-proof { display: flex; align-items: center; align-self: flex-start; min-height: 44px; }
.ac-item-status { flex-basis: 100%; margin-top: 0; }
.ac-item-status:empty, .ac-admin-status:empty { display: none; }
/* A decision's result is scrolled into view clear of the fixed bars. */
.ac-item-status, .ac-admin-status {
  scroll-margin-top: 64px;
  scroll-margin-bottom: calc(12px + var(--bottom-nav-reserve, 0px));
}
.ac-item-meta { color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.ac-item-part { overflow-wrap: anywhere; }
.ac-item-part-label { font-weight: 600; }
.ac-item-contact { overflow-wrap: anywhere; padding-left: 6px; border-left: 2px solid var(--border); }
.ac-replaced { margin-left: 2px; color: var(--text-muted); }
.ac-item-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.ac-chip, .ac-flag {
  align-self: flex-start;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 18px;
  color: var(--text);
}
.ac-flag { border-color: var(--warning); }
.ac-empty { padding: 12px 0; color: var(--text-muted); font-size: 13px; }

/* #789 M3 a11y — white text on the legacy --accent is 2.75:1; the owner
   section and the admin queue put their primary actions (Get code, Unlock,
   Approve) on --accent-strong, as #1668 M2 does for white-on-blue. */
.ac-body .btn-primary, .ac-admin .btn-primary { background: var(--accent-strong); color: var(--text-on-accent); }
.ac-body .btn-primary:hover:not(:disabled), .ac-admin .btn-primary:hover:not(:disabled) { background: var(--accent-strong); filter: brightness(0.9); }
/* #898 — Get code is disabled while both parts are on Keep: show it. Owner
   form only; the admin Approve and Unlock buttons keep their look while a
   request is in flight, as before #898 (review PR#908 F7). */
.ac-form .ac-submit:disabled { opacity: 0.5; cursor: not-allowed; }
