/*
 * Discovery / safety / devices Orbit screens (orbit-discovery-*.ts):
 * Pulse, Constellations, Invisible Meetup, Environment, Privacy & Controls,
 * Guardian Circle, My Devices.
 *
 * Builds on the class contract in orbit.css; everything here is `od-`
 * prefixed (plus the in-screen `.orbit-back` arrow). Colours come only from
 * theme tokens (`--brand`, `--tone`, `--glass`, …), so Bright, Dark and
 * Universe all work. Sizes in rem; nothing below .6875rem; controls ≥ 40px.
 */

/* ------------------------------------------------------------ header --- */
.od-head { display: flex; align-items: flex-start; gap: 12px; }
.od-head-text { flex: 1 1 auto; min-width: 0; }
.od-head-text .orbit-title { margin: 0; }
.od-head-text .orbit-sub { margin: 2px 0 0; }
.orbit-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass, var(--surface));
  color: var(--text);
  cursor: pointer;
}
.orbit-back:hover { border-color: var(--brand); }
.orbit-back:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------------------------------------------------------- shared --- */
.od-screen { padding-bottom: 12px; }
.od-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.od-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.od-scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding: 2px; }
.od-scroll-x::-webkit-scrollbar { display: none; }
.od-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.od-btn-row.od-even > * { flex: 1 1 0; }
.od-btn-col { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.od-gap-top { margin-top: 14px; }
.od-label { margin: 0; font-weight: 600; font-size: .85rem; }
.od-big { font-size: 1.2rem; font-weight: 650; color: var(--text); }
.od-error { margin: 4px 0 0; color: var(--danger); font-size: .9rem; }
.od-warn { color: var(--amber, var(--warn)); font-size: .85rem; }
.od-flash { margin: 0; min-height: 1.2em; }
.od-flash:empty { display: none; }
.od-kicker { margin: 0 0 8px; font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--tone, var(--brand)); }
.od-motto { margin: 6px 0 0; font-style: italic; color: var(--text); }
.od-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.od-grow { flex: 1 1 auto; }

.od-banner { display: flex; align-items: center; gap: 12px; }
.od-banner-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.od-banner-text p { margin: 0; }
.od-banner-text strong { color: var(--text); font-size: 1.02rem; }

/* A whole glass card that is a button. */
.od-card-btn { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.od-card-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.od-card-btn > svg { color: var(--tone, var(--brand)); }
.od-card-btn .od-banner > svg:first-child { color: var(--tone, var(--brand)); flex: 0 0 auto; }

.od-round {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass, var(--surface));
  color: var(--text);
  cursor: pointer;
}
.od-round.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.od-round:focus-visible { outline: none; box-shadow: var(--ring); }
.od-tabs-row { display: flex; align-items: center; gap: 10px; }
.od-tabs-row > .seg { flex: 1 1 auto; min-width: 0; }
.od-tabs-row > .od-count-line { flex: 1 1 auto; color: var(--violet, var(--accent)); font-size: 1.05rem; }

/* List rows + switches */
.od-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--glass-border, var(--border));
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
}
.od-row:last-child { border-bottom: 0; }
button.od-row { cursor: pointer; }
button.od-row:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
.od-row > svg:last-child { color: var(--muted); flex: 0 0 auto; }
.od-row-icon { flex: 0 0 auto; display: inline-flex; color: var(--tone, var(--brand)); }
.od-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.od-row-title { font-weight: 600; font-size: 1rem; }
.od-row-sub { color: var(--muted); font-size: .875rem; line-height: 1.35; }
.od-row-value { color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.od-row.is-danger .od-row-title, .od-row.is-danger .od-row-icon { color: var(--danger); }
.od-switch {
  flex: 0 0 auto;
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: var(--glass-border, var(--border));
  transition: background .2s ease;
}
.od-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.od-toggle[aria-checked="true"] .od-switch { background: var(--brand); }
.od-toggle[aria-checked="true"] .od-switch-knob { transform: translateX(20px); }

.od-checklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.od-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.od-checklist li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.od-checklist.od-inline { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--glass-border, var(--border)); }
.od-checklist.od-inline li { align-items: center; font-size: .875rem; }
.od-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.od-help { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border: 0; background: none; cursor: pointer; font: inherit; }

.od-needs-phone .glow-btn { margin-top: 12px; text-decoration: none; }

.od-online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--callable, var(--good));
  box-shadow: 0 0 0 2px var(--space-mid, var(--bg));
}
.od-online { color: var(--callable, var(--good)); font-weight: 600; font-size: .85rem; }

/* Modal (confirm, "Are you OK?") */
.od-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.od-modal-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.od-modal-card h2 { margin: 0; }
.od-modal-card p { margin: 0; }
.od-countdown { font-size: 2.75rem; font-weight: 700; color: var(--amber, var(--warn)); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- pulse --- */
.od-info strong { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: .95rem; }
.od-info strong svg { color: var(--brand); flex: 0 0 auto; }
.od-info p { margin: 4px 0 0; font-size: .875rem; }
.od-radar-wrap { display: flex; flex-direction: column; gap: 6px; }
.od-radar-wrap > p { margin: 0; }
.od-radar .radar-svg .od-radar-ring { stroke: var(--glass-border, var(--border)); }
.od-radar .radar-svg line { stroke: var(--glass-border, var(--border)); stroke-dasharray: 2 4; }
.od-radar .od-radar-cardinal { fill: var(--muted); font-size: .6875rem; font-weight: 600; }
.od-radar .radar-blip {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 110px;
  padding: 2px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.od-radar .radar-blip:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 12px; }
.od-radar .radar-blip.is-dim { opacity: .45; }
.od-blip-orb { position: relative; display: inline-flex; }
.od-count {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  border: 2px solid var(--space-mid, var(--bg));
  background: var(--tone, var(--brand));
  color: var(--on-brand, var(--bg));
  font-size: .72rem;
  font-weight: 650;
  line-height: 18px;
  text-align: center;
}
.od-blip-label { font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.od-blip-band { font-size: .6875rem; color: var(--muted); }
.od-radar-you {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 1;
  font-weight: 650;
  font-size: .85rem;
  color: var(--text);
  pointer-events: none;
}
.od-nearby-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.od-nearby-head strong { color: var(--text); font-size: 1.1rem; }
.od-nearby-head .orbit-link { display: inline-flex; align-items: center; gap: 4px; }
.od-bubbles { margin-bottom: 10px; }
.od-more { font-weight: 650; }
.od-tools { margin-top: 8px; }
.od-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 96px;
  padding: 8px 4px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.od-tool:focus-visible { outline: none; box-shadow: var(--ring); }
.od-tool[aria-pressed="true"] { background: var(--glass, var(--surface)); }
.od-editor { margin-top: 12px; }
.od-add-row { display: flex; gap: 8px; align-items: center; }
.od-add-row .orbit-field { flex: 1 1 auto; min-width: 0; }

/* ------------------------------------------------------ constellations --- */
.od-sky {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 360 / 540;
  border-radius: 24px;
  border: 1px solid var(--glass-border, var(--border));
  background: color-mix(in srgb, var(--space-mid, var(--bg-2)) 35%, transparent);
  overflow: hidden;
}
.od-sky-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.od-dust { fill: var(--star, var(--muted)); }
.od-you-ring { fill: none; stroke: var(--brand); stroke-opacity: .16; }
.od-you-ring.is-dashed { stroke-opacity: .28; stroke-dasharray: 2 5; }
.od-const line { stroke: var(--tone, var(--brand)); stroke-linecap: round; }
.od-const .od-const-glow { stroke-width: 4; stroke-opacity: .18; }
.od-const .od-const-line { stroke-width: 1; stroke-opacity: .75; }
.od-const .od-const-line.is-dashed { stroke-dasharray: 2 4; }
.od-const.is-on .od-const-line { stroke-width: 1.6; stroke-opacity: 1; }
.od-const.is-faded .od-const-line { stroke-opacity: .25; }
.od-const.is-faded .od-const-glow { stroke-opacity: .08; }
.od-star-halo { fill: var(--tone, var(--brand)); opacity: .18; }
.od-star { fill: var(--tone, var(--brand)); }
.od-const.is-faded .od-star { opacity: .4; }
.od-const.is-faded .od-star-halo { opacity: .06; }
.od-sky-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -30%);
  width: 39%;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.od-sky-node.is-you { pointer-events: none; cursor: default; }
.od-sky-node.is-faded { opacity: .55; }
.od-sky-node:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 14px; }
.od-sky-name { max-width: 100%; font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-sky-sub { max-width: 100%; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-sky-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.od-mini-tag {
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--tone, var(--brand)) 40%, transparent);
  background: var(--glass-strong, var(--surface));
  font-size: .6875rem;
  font-weight: 600;
}
.od-sky-empty {
  position: absolute;
  inset: auto 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.od-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass, var(--surface));
  color: var(--text);
  cursor: pointer;
}
.od-pick.is-active { border-color: var(--tone, var(--text)); color: var(--tone, var(--brand)); background: var(--tone-soft, var(--brand-soft)); }
.od-pick:focus-visible { outline: none; box-shadow: var(--ring); }
.od-swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--tone, var(--brand)); }
.od-link-note { border: 0; background: none; width: 100%; cursor: pointer; font: inherit; text-align: left; min-height: 40px; }

/* ------------------------------------------------------------- meetup --- */
.od-intro { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.od-intro p { margin: 0; }
.od-ring { position: relative; width: 100%; height: 380px; }
.od-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.od-ring-circle { fill: none; stroke: var(--brand); stroke-opacity: .2; }
.od-ring-line { stroke: var(--tone, var(--brand)); stroke-width: 2; stroke-dasharray: 4 6; stroke-opacity: .8; }
.od-ring-line.is-waiting { stroke-opacity: .3; }
.od-ring-venue {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -60%);
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.od-ring-venue strong { color: var(--text); font-size: 1rem; }
.od-ring-venue span { font-size: .8rem; }
.od-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: var(--orbit-glow, none);
}
.od-pin svg { transform: rotate(45deg); }
.od-ring-person {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.od-ring-person.is-waiting { opacity: .75; }
.od-time-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--tone, var(--brand)) 60%, transparent);
  background: var(--glass-strong, var(--surface));
}
.od-time-name { font-size: .8rem; font-weight: 600; color: var(--text); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-time-val { display: inline-flex; align-items: center; gap: 4px; font-size: .95rem; font-weight: 650; color: var(--tone, var(--brand)); }
.od-ring-person.is-waiting .od-time-val { font-size: .75rem; color: var(--muted); }
.od-best { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.od-confirmed { margin-top: 14px; }
.od-confirmed .od-row-title { display: flex; align-items: center; gap: 6px; margin: 0; }
.od-here {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass, var(--surface));
  color: var(--text);
  font-size: .9rem;
}
.od-here svg { color: var(--brand); flex: 0 0 auto; }

/* -------------------------------------------------------- environment --- */
.od-place { display: flex; align-items: flex-start; gap: 10px; }
.od-place > svg { color: var(--brand); flex: 0 0 auto; margin-top: 4px; }
.od-weather { align-self: flex-start; margin-top: 6px; }
.od-vibe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--brand) 70%, transparent);
  background: color-mix(in srgb, var(--violet, var(--accent)) 14%, transparent);
  box-shadow: var(--orbit-glow-strong, none);
  text-align: center;
  color: var(--brand);
}
.od-vibe strong { font-size: 1.6rem; color: var(--text); }
.od-vibe span { font-size: .9rem; padding: 0 20px; }
.od-now-line { stroke-dasharray: 3 4; }
.od-now-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }

/* ------------------------------------------------------------ privacy --- */
.od-score { color: var(--tone, var(--brand)); }
.od-pill { align-self: flex-start; margin-top: 6px; }
.od-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass, var(--surface));
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.od-radio > svg { color: var(--muted); flex: 0 0 auto; }
.od-radio.is-on { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--orbit-glow, none); }
.od-radio.is-on .od-row-sub, .od-radio.is-on > svg { color: var(--brand); }
.od-radio:focus-visible { outline: none; box-shadow: var(--ring); }
.od-radio-dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  position: relative;
}
.od-radio.is-on .od-radio-dot { border-color: var(--brand); }
.od-radio.is-on .od-radio-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand);
}

/* ----------------------------------------------------------- guardian --- */
.od-circle { position: relative; height: 340px; }
.od-circle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  pointer-events: none;
}
.od-guardian {
  position: absolute;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: center;
}
.od-guardian strong { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.od-guardian .person { position: relative; width: 64px; height: 64px; }
.od-guardian.is-empty { opacity: .75; cursor: pointer; }
.od-guardian.is-empty:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 14px; }
.od-empty-seat { border-style: dashed; color: var(--brand); background: var(--glass, var(--surface)); }
.od-seat-0 { left: 50%; top: 0; transform: translateX(-50%); }
.od-seat-1 { left: 2%; top: 150px; }
.od-seat-2 { right: 2%; top: 150px; }
.od-circle-centre {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  width: 170px;
}
.od-circle-centre p { margin: 0; }
.od-elapsed { font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.od-progress-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.od-pct { min-width: 44px; text-align: right; font-weight: 600; }
.od-sos {
  position: relative;
  height: 70px;
  border-radius: 35px;
  border: 1px solid color-mix(in srgb, var(--live, var(--danger)) 75%, transparent);
  background: color-mix(in srgb, var(--live, var(--danger)) 14%, transparent);
  overflow: hidden;
  touch-action: none;
}
.od-sos-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-left: 60px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
}
.od-sos-knob {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 60px;
  height: 60px;
  min-height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--live, var(--danger));
  color: var(--on-brand, var(--bg));
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 calc(18px * var(--glow-scale, 1)) color-mix(in srgb, var(--live, var(--danger)) 55%, transparent);
}
.od-sos-knob.is-returning { transition: transform .25s ease; }
.od-sos-knob:focus-visible { outline: none; box-shadow: var(--ring); }

/* --------------------------------------------------------- my devices --- */
.od-devices { position: relative; width: 100%; height: 420px; }
.od-devices-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.od-link-line { stroke: var(--brand); stroke-width: 2; }
.od-link-line.is-paired { stroke: var(--violet, var(--accent)); stroke-dasharray: 5 6; }
.od-link-line.is-offline { stroke: var(--muted); stroke-dasharray: 5 6; }
.od-link-line.is-slot { stroke: var(--muted); stroke-width: 1.2; stroke-opacity: .45; stroke-dasharray: 5 6; }
.od-device {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -40%);
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.od-device.is-centre { cursor: default; transform: translate(-50%, -50%); width: 140px; }
.od-device.is-slot { opacity: .6; }
.od-device:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 14px; }
.od-device strong { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.od-device-bubble {
  --tone: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--tone) 60%, transparent);
  background: color-mix(in srgb, var(--tone) 12%, var(--glass-strong, var(--surface)));
  color: var(--tone);
  box-shadow: 0 0 calc(16px * var(--glow-scale, 1)) color-mix(in srgb, var(--tone) 30%, transparent);
}
.od-device-bubble.is-lg { width: 96px; height: 96px; }
.od-device-bubble[data-status="online"] { --tone: var(--brand); }
.od-device-bubble[data-status="paired"] { --tone: var(--violet, var(--accent)); }
.od-device-bubble[data-status="slot"] { border-style: dashed; }
.od-status { font-size: .75rem; font-weight: 600; color: var(--muted); }
.od-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.od-status.is-online { color: var(--good); }
.od-status.is-paired { color: var(--violet, var(--accent)); }
.od-status.is-slot::before { display: none; }
.od-device-extra { position: absolute; right: 8px; bottom: 4px; font-size: .8rem; }
.od-action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 104px;
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.od-action-tile > svg { color: var(--tone, var(--brand)); }
.od-action-tile > span { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; font-weight: 600; font-size: .95rem; }
.od-action-tile > span svg { color: var(--muted); flex: 0 0 auto; }
.od-action-tile:focus-visible { outline: none; box-shadow: var(--ring); }

@media (max-width: 380px) {
  .od-ring { height: 340px; }
  .od-ring-person { width: 88px; }
  .od-devices { height: 380px; }
  .od-device { width: 100px; }
  .od-vibe { width: 190px; height: 190px; }
  .od-seat-1 { left: 0; }
  .od-seat-2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .od-sos-knob.is-returning, .od-switch, .od-switch-knob { transition: none; }
}
