/* Caller host display-link controls and status ownership. */
.display-link-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.header-display-controls .display-link-actions {
  grid-template-columns: auto auto auto;
  gap: 0.4rem;
}

.caller-sync-status {
  min-height: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.caller-sync-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.caller-sync-reconnect {
  min-height: 1.45rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 800 0.68rem/1 "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  white-space: nowrap;
}

.caller-sync-reconnect:hover,
.caller-sync-reconnect:focus-visible {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.caller-sync-status::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.caller-sync-status[data-tone="success"] {
  color: #047857;
}

.caller-sync-status[data-tone="warning"] {
  color: #b45309;
}

body.dark-mode .caller-sync-status[data-tone="success"] {
  color: #6ee7b7;
}

body.dark-mode .caller-sync-status[data-tone="warning"] {
  color: #fcd34d;
}

.display-link-status {
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.header-display-controls .display-link-status {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.display-link-status[data-tone="success"] {
  color: #047857;
}

.display-link-status[data-tone="warning"] {
  color: #b45309;
}

body.dark-mode .display-link-status[data-tone="success"] {
  color: #6ee7b7;
}

body.dark-mode .display-link-status[data-tone="warning"] {
  color: #fcd34d;
}

/* The session launcher keeps its primary action on its own row. */
.display-window-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.display-window-actions > button {
  min-width: 0;
  min-height: 2.8rem;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.display-window-actions > .primary {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .header-display-controls .display-link-actions {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.65fr);
  }
}
