/* Browsers page (/dashboard/identities): running summary + Stop all,
   expiry countdown, row Stop, launch price, drawer live view.
   Theme tokens only, so Light and Dark both follow. */

.br-summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.br-summary b { color: var(--text); font-weight: 600; }
.br-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald-2) 25%, transparent);
  flex: 0 0 auto;
}
.br-summary .br-stop-all { margin-left: auto; }

.br-exp {
  display: block; margin-top: 2px;
  font-size: 11px; font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.idq-h .br-exp { display: inline; margin: 0 0 0 6px; }
.br-exp-warn { color: var(--red); }

.br-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.btn-small.br-stop { color: var(--red); }
.btn-small.br-stop:disabled { opacity: .6; cursor: default; }

.ic-actions { align-items: center; }
.ic-price {
  font-size: 12.5px; color: var(--text-dim);
  margin-right: 4px; white-space: nowrap;
}

.br-live-sec { margin-bottom: 16px; }
.br-live-stage {
  position: relative;
  height: min(60vh, 560px);
  min-height: 260px;
  background: #0B0F0D;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.br-live-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.br-live-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; font-size: 13px;
}

/* Phones: the shared 6-column table grid pushed Created (with the expiry
   countdown) and Connect/Stop past the card's clipped edge, so a running
   browser could not be stopped on mobile. Keep ID, Status, Created and
   the actions; Mode and OS are in the drawer. */
@media (max-width: 720px) {
  #card-identities .thead,
  #card-identities .trow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; min-width: 0; }
  #card-identities .thead > :nth-child(2), #card-identities .trow > :nth-child(2),
  #card-identities .thead > :nth-child(4), #card-identities .trow > :nth-child(4) { display: none; }
  #card-identities .trow > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .br-summary { flex-wrap: nowrap; }
  .br-summary .br-stop-all { white-space: nowrap; }
  .br-summary > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
  .br-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
  .ic-price { width: 100%; text-align: center; margin: 0 0 4px; }
  .ic-actions { flex-wrap: wrap; }
  .br-live-stage { height: 52vh; min-height: 220px; }
}
