/* The phone has a fixed content width on desktop. Use the same control sizes in both layouts. */
.app-body-devices {
  --manager-hit: 44px;
  --manager-primary-face: 30px;
  --manager-secondary-face: 28px;
  --manager-action-width: 84px;
  --manager-ink: #44394f;
  --manager-action: #674894;
  --manager-line: #e9e3ef;
}
.app-body-devices .manager-page-heading,
.manager-bluetooth-row,
.manager-ring-heading,
.manager-connection-row,
.manager-ring-state .ring-remote-control,
.manager-battery-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}
.app-body-devices .manager-page-heading { margin: 0 0 6px; }
.manager-page-heading h2 { margin: 0; text-align: start; font-size: 21px; line-height: 1.35; }
.app-body-devices .manager-ring-card,
.app-body-devices .manager-bluetooth-card,
.app-body-devices .lifecycle-group {
  padding: 10px 12px 2px;
  margin: 0 0 8px;
  border: 1px solid #eae5ef;
  border-radius: 14px;
  color: var(--manager-ink);
  background: #fff;
  box-shadow: none;
}
.app-body-devices .manager-bluetooth-card { padding: 0 12px; }
.manager-bluetooth-row { grid-template-columns: 18px minmax(0, 1fr) auto; }
.manager-radio-icon { display: flex; color: var(--manager-action); }
.manager-bluetooth-row > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.app-body-devices .manager-bluetooth-card h3 { margin: 0; font-size: 15px; line-height: 21px; }
.app-window .app-body-devices .manager-bluetooth-card p { margin: 0; color: #72667d; font-size: 12px; line-height: 18px; }
.app-body-devices .lifecycle-section { margin: 14px 0 6px; }
.app-body-devices .lifecycle-section h3 { margin: 0; font-size: 13px; line-height: 18px; font-weight: 550; }

.manager-ring-heading { grid-template-columns: 44px minmax(0, 1fr) auto; }
.manager-ring-identity { min-width: 0; }
.app-body-devices .manager-ring-card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 21px; overflow-wrap: anywhere; }
.manager-ring-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 7px;
  margin-top: 2px;
  color: #71657e;
  font-size: 12px;
  line-height: 18px;
}
.manager-ring-meta .device-color-label,
.manager-ring-note { margin: 0; font-size: inherit; line-height: inherit; }
.managed-device-id { white-space: nowrap; font-variant-numeric: tabular-nums; }
.manager-ring-note { min-width: 0; overflow-wrap: anywhere; }
.manager-ring-state { margin-top: 6px; padding: 0 10px 7px; border-radius: 9px; background: #f8f6fa; }
.manager-battery-row { border-bottom: 1px solid var(--manager-line); }
.manager-reconnect-row { display: flex; align-items: center; color: #695d75; font-size: 12px; }
.manager-ring-state .device-battery-info { justify-content: flex-start; gap: 1px 4px; }
.manager-ring-state .device-battery-label,
.manager-ring-state .device-battery-info strong,
.manager-ring-state .device-battery-hint { font-size: 12px; line-height: 16px; }
.manager-ring-state .device-battery-label { color: #6e617a; }
.manager-ring-state .device-battery-info strong { font-weight: 550; }
.manager-ring-state .device-battery-icon { width: 16px; height: 11px; }
.manager-ring-state .device-battery-hint { white-space: normal; }

.manager-connection-row,
.manager-ring-state .ring-remote-control { grid-template-columns: minmax(0, 1fr) var(--manager-action-width); margin: 0; }
.manager-ring-state .hardware-status { gap: 4px; align-items: baseline; padding: 0; border: 0; background: none; }
.manager-ring-state .hardware-status-label,
.manager-ring-state .ring-control-state { font-size: 14px; line-height: 20px; font-weight: 550; }
.manager-ring-state .ring-control-state { color: #54495e; }
.manager-ring-state .ring-control-state.is-unconfirmed { color: #905114; }
.manager-ring-state .ring-remote-control:not(:has(button)) { min-height: 30px; }
.manager-clock-readings {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--manager-line);
  font-size: 12px;
  line-height: 17px;
}
.manager-clock-readings > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; align-items: baseline; }
.manager-clock-readings dt { color: #72667d; }
.manager-clock-readings dd { margin: 0; text-align: end; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.manager-clock-warning { display: block; color: #915818; }

/* Inset the painted face inside the button. Its entire box receives pointer and keyboard input. */
.app-window .app-body-devices :is(.manager-scan, .device-battery-refresh, .ring-remote-control button) {
  --face-height: var(--manager-secondary-face);
  --face-bg: #fff;
  --face-border: #d5c9e1;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  min-height: var(--manager-hit);
  padding: 0 6px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--manager-action);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 18px;
  white-space: nowrap;
}
.app-body-devices :is(.manager-scan, .device-battery-refresh, .ring-remote-control button)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc((var(--manager-hit) - var(--face-height)) / 2) 0;
  background: var(--face-bg);
  border: 1px solid var(--face-border);
  border-radius: 7px;
  pointer-events: none;
}
.app-window .app-body-devices button.manager-scan {
  --face-height: var(--manager-primary-face);
  --face-bg: #7054a4;
  --face-border: transparent;
  padding-inline: 12px;
  color: white;
}
.app-window .app-body-devices .ring-remote-control button { --face-bg: #eee7f5; --face-border: #dfd3eb; }
.app-body-devices .device-battery-refresh svg { width: 14px; height: 14px; }
.app-body-devices .connection-switch {
  justify-self: end;
  width: var(--manager-hit);
  height: var(--manager-hit);
  padding: 0;
}
.app-body-devices .connection-switch::before { inset: 12px 0 12px auto; width: 34px; }
.app-body-devices .connection-switch i { position: absolute; right: 16px; width: 16px; height: 16px; margin: 0; }
.app-body-devices .connection-switch[aria-checked="true"] i { right: 2px; margin: 0; }
.app-body-devices .manager-ring-actions,
.app-body-devices .lifecycle-group .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
.app-body-devices :is(.manager-find, .manager-ring-actions .btn, .lifecycle-group .actions .btn, .lifecycle-add) {
  width: auto;
  min-width: 44px;
  min-height: var(--manager-hit);
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: var(--manager-action);
  font-size: 13px;
  font-weight: 550;
  line-height: 18px;
}
.app-body-devices .manager-find { padding: 0 2px; white-space: nowrap; }
.app-body-devices .lifecycle-add { display: block; margin: 2px auto 8px; }
.manager-ring-card[data-finding] .manager-find { color: #7054a4; opacity: 1; }
.app-body-devices button:focus-visible { outline: 2px solid #8064b4; outline-offset: -2px; }
.app-body-devices button:enabled:active { filter: brightness(.86); }
@media (prefers-reduced-motion:no-preference) {
  .manager-ring-card[data-finding] .device-photo { animation: ring-haptic .2s linear infinite; }
}
@media (hover: hover) {
  .app-window .app-body-devices .manager-scan:hover:enabled { --face-bg: #604590; }
  .app-body-devices :is(.device-battery-refresh, .ring-remote-control button):hover:enabled::before { background: #e9e1f1; }
  .app-body-devices :is(.manager-find, .manager-ring-actions .btn, .lifecycle-group .actions .btn, .lifecycle-add):hover:enabled { text-decoration: underline; }
}
.nearby-ring-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-block-size: min(54vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nearby-ring-list li + li { border-top: 1px solid #ebe6f0; }
.nearby-ring {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 10px 2px;
  border: 0;
  background: transparent;
  color: #453b52;
  text-align: start;
  cursor: pointer;
}
.nearby-ring-identity { min-width: 0; }
.nearby-ring-identity strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.nearby-ring-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-top: 4px;
  color: #71657e;
  font-size: 12px;
  line-height: 18px;
}
.nearby-ring-meta > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.nearby-ring-meta > :last-child { font-variant-numeric: tabular-nums; }
.nearby-ring-connect {
  padding: 5px 12px;
  border-radius: 8px;
  background: #f0eaf9;
  color: #60428d;
  font-size: 14px;
  font-weight: 550;
  line-height: 20px;
}
.nearby-ring:focus-visible { outline: 2px solid #8064b4; outline-offset: -2px; border-radius: 8px; }
.nearby-ring:active .nearby-ring-connect { background: #e2d6f3; }
@media (hover: hover) {
  .nearby-ring:hover .nearby-ring-connect { background: #e2d6f3; }
}

.manager-real-mark{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:14px;background:#f0e8f8;color:#6a527e}
.manager-source{font-size:.75rem;font-weight:650;color:#654981}
.manager-simulator-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.manager-simulator-actions .lifecycle-add{margin:0}
.manager-ring-actions{flex-wrap:wrap}
