/* ── 1a Overlay: rules banner, speaker card, reaction dock, bubbles ── */

/* Hide Phase 1 floating controls that are superseded by the 1a overlay */
#callControls,
#principlesToggle,
#memberReminder,
#openCommitmentsPanel,
#tangentPanel,
#agendaBar,
#segmentInfo { display: none !important; }

/* Hide the microphone toggle (meeting mode) — meeting is always on in shared call */
#btnMeeting { display: none !important; }
/* Hide "New meeting" if it somehow still exists */
#rosterNew { display: none !important; }

/* Viewer mode: speaking order stays visible; timer controls stay usable for everyone */
body.viewer-mode #roster {
  display: block !important;
}
body.viewer-mode #roster .roster-focus,
body.viewer-mode #roster .roster-focus-edit { cursor: pointer; }

/* Countdown clock stays above the overlay stack */
#clock {
  top: 10px;
  font-size: clamp(36px, 6.5vw, 76px);
  line-height: 1;
  z-index: 30;
}

/* Shared speaking-order panel — hugs content; never stretch via top+bottom */
#roster {
  box-sizing: border-box;
  height: fit-content;
  width: 300px;
  min-width: 220px;
  max-width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  resize: both;
}
#rosterBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#rosterHead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
#rosterHead .roster-title {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#rosterNow {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #ffcf3f;
  white-space: nowrap;
}
#rosterMinBtn {
  flex: none;
  width: 24px;
  height: 22px;
  padding: 0;
  border: 1px solid #3a4456;
  border-radius: 6px;
  background: #1d2533;
  color: #e7eef8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
#rosterMinBtn:hover { background: #28323f; }
#rosterFocusesBtn,
#rosterResetEmojis {
  flex: none;
  padding: 3px 8px;
  border: 1px solid #3a4456;
  border-radius: 999px;
  background: #1d2533;
  color: #e7eef8;
  font: 600 11px/1.2 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
#rosterFocusesBtn:hover,
#rosterResetEmojis:hover { background: #28323f; }
body.viewer-mode #rosterFocusesBtn,
body.viewer-mode #rosterResetEmojis {
  display: inline-flex !important;
}
#roster.minimized {
  height: fit-content !important;
  width: fit-content !important;
  min-width: 190px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 8px 12px;
  resize: none;
  overflow: hidden;
}
#roster.minimized #rosterHead { margin-bottom: 0; }
#roster.minimized #rosterList,
#roster.minimized #rosterBtns,
#roster.minimized .dock-corner { display: none !important; }
#roster li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 6px;
}
#roster li.mine {
  outline: 1px solid rgba(255, 207, 63, 0.55);
  background: rgba(255, 207, 63, 0.12);
}
#roster .roster-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
#roster .roster-who {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#roster .roster-you {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffcf3f;
}
#roster .roster-emojis {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #d7e3f4;
  white-space: nowrap;
}
#roster .roster-skip {
  flex: none;
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid #3a4456;
  border-radius: 999px;
  background: #1d2533;
  color: #e7eef8;
  font: 600 10px/1.2 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
#roster .roster-skip:hover { background: #28323f; }
#roster .roster-skip.is-skip {
  background: #3f2a1a;
  border-color: #b45309;
  color: #fdba74;
}
#roster li.skip .roster-who { text-decoration: line-through; }
body.viewer-mode #roster .roster-skip { display: inline-flex !important; }
#roster .roster-focus {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-left: 22px;
  cursor: pointer;
  font-size: 12px;
  color: #d7e3f4;
}
#roster .roster-focus.empty { color: #8fa0b8; font-style: italic; }
#roster .roster-focus-text {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
#roster .roster-focus-edit {
  flex: none;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  opacity: 0.75;
}
#roster .roster-focus-edit:hover { opacity: 1; }
#roster .roster-focus-input,
#ov-speaker-card .speaker-title-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid #ffcf3f;
  border-radius: 4px;
  background: #1b2330;
  color: #f4f4f4;
  font: inherit;
  -webkit-user-select: text;
  user-select: text;
}
#ov-speaker-card .speaker-title {
  cursor: pointer;
}
#ov-speaker-card .speaker-title.empty {
  color: #94a3b8;
  font-weight: 600;
  font-style: italic;
}
#ov-speaker-card .speaker-title-input {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  font-size: 22px;
  padding: 4px 8px;
}
.focus-bullet-list {
  margin: 0;
  padding: 0 0 0 1.15em;
  list-style: disc;
}
.focus-bullet-list li {
  margin: 0 0 4px;
  padding: 0;
  display: list-item;
  overflow-wrap: anywhere;
}
.focus-bullet-list.compact {
  font-size: 12px;
  line-height: 1.35;
}
.focus-bullet-list.compact li { margin-bottom: 2px; }
#ov-speaker-card .focus-bullet-list {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
#ov-focuses-screen .focus-bullet-list {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.focus-add-bullet,
.focus-bullet-save,
.focus-bullet-cancel,
.focus-bullet-remove {
  border-radius: 6px;
  cursor: pointer;
  font: 600 11px/1.2 system-ui, sans-serif;
}
.focus-add-bullet {
  padding: 3px 8px;
  border: 1px dashed #94a3b8;
  background: transparent;
  color: #64748b;
}
.focus-add-bullet:hover { background: rgba(148,163,184,.15); color: #334155; }
#roster .focus-add-bullet { color: #c5d0e0; border-color: #64748b; }
.focus-bullet-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.focus-bullet-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.focus-bullet-mark { flex: none; color: #64748b; }
.focus-bullet-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  font: 600 14px/1.35 system-ui, -apple-system, sans-serif;
}
.focuses-card .focus-bullet-editor,
.focuses-card .focus-bullet-row {
  min-width: 0;
  width: 100%;
}
.focuses-card .focus-bullet-input {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  width: 100%;
  min-width: 0;
}
.focus-bullet-remove {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
}
.focus-bullet-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.focus-bullet-save, .focus-bullet-cancel {
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
}
.focus-bullet-save { background: #1e293b; border-color: #1e293b; color: #fff; }
#roster .focus-bullet-input {
  background: #1b2330;
  color: #f4f4f4;
  border-color: #ffcf3f;
}
.focuses-absent {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font: 700 11px/1.2 system-ui, sans-serif;
}
.focuses-skip {
  flex: none;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: 600 11px system-ui, sans-serif;
  cursor: pointer;
}
.focuses-skip:hover { background: #f8fafc; }
.focuses-card.is-skip { opacity: 0.72; }
.focuses-focus-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

@keyframes twRise {
  0%   { transform: translateY(0) scale(.5); opacity: 0 }
  10%  { transform: translateY(-30px) scale(1.05); opacity: 1 }
  75%  { opacity: 1 }
  100% { transform: translateY(calc(var(--rise) * -1)) scale(.9); opacity: 0 }
}
@keyframes twSway {
  0%   { transform: translateX(-12px) rotate(-7deg) }
  100% { transform: translateX(12px) rotate(7deg) }
}
@keyframes twPop {
  0%   { transform: scale(1) }
  40%  { transform: scale(1.35) }
  100% { transform: scale(1) }
}

/* Rules toggle — local per person; host and viewers both see it */
#ov-rules-toggle {
  position: fixed; top: 14px; right: 16px; z-index: 31;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,.94);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(34,43,56,.18);
  font: 600 13px/1 system-ui, -apple-system, sans-serif;
  color: #334155; cursor: pointer;
  user-select: none;
}
body.viewer-mode #ov-rules-toggle { display: flex !important; }
body.viewer-mode #ov-rules-toggle.hidden,
#ov-rules-toggle.hidden { display: none !important; }
#ov-rules-toggle .sw {
  width: 36px; height: 20px; border-radius: 10px;
  background: #cbd5e1; position: relative; transition: background .2s;
}
#ov-rules-toggle .sw.on { background: #dc2626; }
#ov-rules-toggle .sw::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
#ov-rules-toggle .sw.on::after { transform: translateX(16px); }

#ov-focuses-toggle {
  position: fixed; top: 14px; right: 178px; z-index: 31;
  display: flex; align-items: center;
  padding: 8px 14px;
  background: rgba(255,255,255,.94);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(34,43,56,.18);
  font: 600 13px/1 system-ui, -apple-system, sans-serif;
  color: #334155; cursor: pointer;
  user-select: none;
}
body.viewer-mode #ov-focuses-toggle { display: flex !important; }

/* Reveal pill when the banner is hidden locally */
#ov-rules-show {
  position: fixed; top: 14px; right: 16px;
  z-index: 31;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f1f5f9;
  font: 600 13px/1 system-ui, -apple-system, sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  cursor: pointer;
  user-select: none;
}
#ov-rules-show.hidden { display: none; }
body.viewer-mode #ov-rules-show { display: inline-flex; }
body.viewer-mode #ov-rules-show.hidden { display: none; }

/* Stack so the speaker card always sits below the rules banner */
#ov-sky-stack {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(1120px, calc(100vw - 340px));
  max-width: calc(100vw - 24px);
  z-index: 28;
  pointer-events: none;
  box-sizing: border-box;
  transition: top .3s ease;
}
#ov-sky-stack > * { pointer-events: auto; }

/* Rules banner — readable sentence cards, not tiny chips */
#ov-rules,
#ov-rules-banner {
  position: relative;
  top: auto; left: auto;
  transform: none;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 12px 16px 14px;
  background: rgba(10, 12, 20, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  white-space: normal;
  overflow: visible;
  font: 400 clamp(12px, 1.05vw, 15px)/1.4 system-ui, -apple-system, sans-serif;
  color: #f1f5f9;
  box-sizing: border-box;
}
#ov-rules.hidden,
#ov-rules-banner.hidden { display: none; }
#ov-rules .rules-head,
#ov-rules-banner .rules-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
#ov-rules .rules-label,
#ov-rules-banner .rules-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fca5a5;
}
#ov-rules .rules-hide,
#ov-rules-banner .rules-hide {
  flex: none;
  width: 28px; height: 28px;
  margin: 0; padding: 0;
  border: 0; border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  font: 600 20px/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
#ov-rules .rules-hide:hover,
#ov-rules-banner .rules-hide:hover { background: rgba(255,255,255,.16); }
#ov-rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#ov-rules-list .rule,
#ov-rules-banner .rule {
  display: block;
  min-width: 0;
  padding: 8px 10px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
  color: #f1f5f9;
}
#ov-rules .rule-n,
#ov-rules-banner .rule-n {
  font-weight: 700; color: #cbd5e1; font-size: 0.92em; margin-right: 4px;
}

/* Speaker card — lives in #ov-sky-stack so it clears the rules banner */
#ov-speaker-card {
  position: relative; top: auto; left: auto; transform: none;
  width: 580px; max-width: 100%;
  padding: 16px 22px 14px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(34,43,56,.22);
  z-index: 27;
  font-family: system-ui, -apple-system, sans-serif;
  display: flex; flex-direction: column; gap: 10px;
}
#ov-speaker-card .speaker-header {
  display: flex; align-items: center; gap: 12px;
}
#ov-speaker-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex: none;
}
#ov-speaker-card .speaker-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #dc2626;
}
#ov-speaker-card .speaker-title {
  font-weight: 700; font-size: 22px; line-height: 1.2;
  color: #1e293b;
}
#ov-speaker-card .tally-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid #f1f5f9; padding-top: 10px; min-height: 28px;
}
#ov-speaker-card .tally-label {
  font-size: 12px; color: #64748b;
}
#ov-speaker-card .tally-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 7px; border-radius: 999px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 13px; font-weight: 700; color: #334155;
}
#ov-speaker-card .tally-pill .te { font-size: 16px; }
#ov-speaker-card .no-reactions {
  font-size: 12px; color: #94a3b8;
}

/* Bubble layer */
#ov-bubbles {
  position: fixed; inset: 0; pointer-events: none; z-index: 26;
}
#ov-bubbles .bub {
  position: absolute;
}
#ov-bubbles .bub-inner {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
#ov-bubbles .bub-circle {
  position: relative; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(34,43,56,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
#ov-bubbles .bub-badge {
  position: absolute; right: -6px; bottom: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  font-family: system-ui, -apple-system, sans-serif;
}
#ov-bubbles .bub-name {
  padding: 1px 7px; border-radius: 999px;
  background: rgba(34,43,56,.8); color: #fff;
  font-size: 11px; white-space: nowrap;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Reaction dock */
#ov-dock,
body.viewer-mode #ov-dock {
  display: flex !important;
}
#ov-dock {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 4px;
  padding: 12px 14px;
  box-sizing: border-box;
  height: fit-content;
  min-width: 108px;
  max-width: calc(100vw - 24px);
  background: rgba(34,43,56,.92);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 29;
  user-select: none;
  touch-action: none;
}
#ov-dock .dock-grip {
  position: absolute;
  top: 2px; left: 18px; right: 18px;
  height: 10px;
  cursor: grab;
}
#ov-dock .dock-grip::after {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin: 3px auto 0;
  border-radius: 2px;
  background: rgba(255,255,255,.28);
}
#ov-dock .rx-btn {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  flex: 0 0 88px;
  width: 88px;
  max-width: 88px;
  padding: 8px 4px 7px;
  border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
  font-family: system-ui, -apple-system, sans-serif;
  transition: background 120ms ease;
}
#ov-dock .rx-btn:hover { background: rgba(255,255,255,.12); }
#ov-dock .rx-btn:active { transform: scale(.92); }
#ov-dock .rx-btn .rx-emoji { font-size: 30px; line-height: 1; }
#ov-dock .rx-btn .rx-label {
  font-size: 11.5px; color: #fff;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
#ov-dock .rx-btn .rx-count {
  position: absolute; top: 3px; right: 10px;
  min-width: 20px; height: 20px; padding: 0 5px;
  box-sizing: border-box; border-radius: 999px;
  background: #fff; color: #1e293b;
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: twPop .3s ease;
}
#ov-dock .dock-reset {
  flex: 0 0 auto;
  align-self: center;
  margin: 2px 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: 600 11px/1.2 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
#ov-dock .dock-reset:hover { background: rgba(255,255,255,.16); }
body.viewer-mode #ov-dock .dock-reset { display: inline-flex !important; }

/* Easy-to-grab corner resize handles (dock + roster) */
.dock-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  pointer-events: auto;
  box-sizing: border-box;
}
.dock-corner.nw { top: 0; left: 0; cursor: nwse-resize; }
.dock-corner.ne { top: 0; right: 0; cursor: nesw-resize; }
.dock-corner.sw { bottom: 0; left: 0; cursor: nesw-resize; }
.dock-corner.se { bottom: 0; right: 0; cursor: nwse-resize; }
.dock-corner::before,
.dock-corner::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.38);
  border-radius: 1px;
}
.dock-corner.nw::before { top: 3px; left: 3px; width: 10px; height: 2px; }
.dock-corner.nw::after  { top: 3px; left: 3px; width: 2px; height: 10px; }
.dock-corner.ne::before { top: 3px; right: 3px; width: 10px; height: 2px; }
.dock-corner.ne::after  { top: 3px; right: 3px; width: 2px; height: 10px; }
.dock-corner.sw::before { bottom: 3px; left: 3px; width: 10px; height: 2px; }
.dock-corner.sw::after  { bottom: 3px; left: 3px; width: 2px; height: 10px; }
.dock-corner.se::before { bottom: 3px; right: 3px; width: 10px; height: 2px; }
.dock-corner.se::after  { bottom: 3px; right: 3px; width: 2px; height: 10px; }
#roster .dock-corner::before,
#roster .dock-corner::after { background: rgba(255,207,63,.45); }
.dock-corner:hover::before,
.dock-corner:hover::after { background: rgba(255,255,255,.85); }
#roster .dock-corner:hover::before,
#roster .dock-corner:hover::after { background: #ffcf3f; }

/* Tangent prompt */
#ov-tangent-prompt {
  position: fixed; right: 28px; bottom: 80px;
  width: 290px; padding: 14px 16px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 30;
  font-family: system-ui, -apple-system, sans-serif;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity .3s, transform .3s;
}
#ov-tangent-prompt.hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
#ov-tangent-prompt .tp-header {
  display: flex; gap: 10px; align-items: flex-start;
}
#ov-tangent-prompt .tp-emoji { font-size: 26px; line-height: 1; }
#ov-tangent-prompt .tp-title { font-weight: 700; font-size: 15px; color: #1e293b; }
#ov-tangent-prompt .tp-hint { font-size: 12.5px; color: #64748b; }
#ov-tangent-prompt .tp-actions { display: flex; gap: 8px; }
#ov-tangent-prompt .tp-actions button {
  padding: 6px 16px; border-radius: 6px; font: 600 13px system-ui, sans-serif;
  cursor: pointer; border: 1px solid #e2e8f0;
}
#ov-tangent-prompt .tp-actions .btn-explore {
  background: #f8fafc; color: #334155;
}
#ov-tangent-prompt .tp-actions .btn-park {
  background: #1e293b; color: #fff; border-color: #1e293b;
}

/* Member picker modal */
#ov-member-picker {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,14,22,.85);
  display: flex; align-items: center; justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
}
#ov-member-picker.hidden { display: none; }
#ov-member-picker .picker-card {
  background: #fff; border-radius: 12px; padding: 28px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  max-width: 360px; width: 90vw;
  text-align: center;
}
#ov-member-picker h3 {
  margin: 0 0 6px; font-size: 18px; color: #1e293b;
}
#ov-member-picker p {
  margin: 0 0 18px; font-size: 13px; color: #64748b;
}
#ov-member-picker .member-list {
  display: flex; flex-direction: column; gap: 6px;
}
#ov-member-picker .member-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff; cursor: pointer; font: 400 15px system-ui, sans-serif;
  color: #1e293b; transition: background .15s;
}
#ov-member-picker .member-btn:hover { background: #f8fafc; }
#ov-member-picker .member-btn .m-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
#ov-member-picker .member-btn .m-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#ov-member-picker .member-btn .m-name { font-weight: 600; }
#ov-member-picker .member-btn .m-co { color: #64748b; margin-left: 4px; }

/* Connection status — stacked above #placeLabel so they never overlap */
#placeLabel { top: 72px; left: 16px; }
#ov-conn-status {
  position: fixed; top: 14px; left: 16px; z-index: 32;
  padding: 5px 10px 6px;
  border-radius: 10px;
  font: 600 11px system-ui, sans-serif;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  max-width: min(280px, calc(100vw - 32px));
}
#ov-conn-status .conn-row {
  display: flex; align-items: center; gap: 6px;
}
#ov-conn-status .conn-who {
  margin: 0; padding: 0;
  border: 0; background: transparent;
  color: inherit; cursor: pointer;
  font: 600 11px/1.3 system-ui, sans-serif;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#ov-conn-status.connected { background: rgba(34,197,94,.15); color: #16a34a; }
#ov-conn-status.offline { background: rgba(234,179,8,.15); color: #ca8a04; }
#ov-conn-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
}
#ov-conn-status.connected .dot { background: #16a34a; }
#ov-conn-status.offline .dot { background: #ca8a04; }

@media (max-width: 1100px) {
  #ov-sky-stack {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 768px) {
  #ov-sky-stack {
    top: 50px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
  #ov-speaker-card { width: 100%; padding: 12px 14px; }
  #ov-speaker-card .speaker-title { font-size: 17px; }
  #ov-dock .rx-btn { flex: 0 0 88px; width: 88px; padding: 6px 2px; }
  #ov-dock .rx-btn .rx-emoji { font-size: 24px; }
  #ov-dock .rx-btn .rx-label { font-size: 9px; white-space: normal; }
  #ov-rules,
  #ov-rules-banner {
    padding: 10px 12px; gap: 6px;
    max-height: 36vh; overflow-x: hidden; overflow-y: auto;
  }
  #ov-rules-list { grid-template-columns: 1fr; }
  #ov-tangent-prompt { width: 240px; right: 10px; bottom: 70px; }
  #ov-focuses-toggle { top: 54px; right: 16px; }
}

/* Reset-emojis confirmation */
#ov-confirm-reset-emojis {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(10,14,22,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: system-ui, -apple-system, sans-serif;
}
#ov-confirm-reset-emojis.hidden { display: none; }
#ov-confirm-reset-emojis .confirm-card {
  width: min(420px, 100%);
  padding: 24px 26px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
#ov-confirm-reset-emojis h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  color: #1e293b;
}
#ov-confirm-reset-emojis p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
}
#ov-confirm-reset-emojis .confirm-actions {
  display: flex; justify-content: flex-end; gap: 8px;
}
#ov-confirm-reset-emojis .confirm-actions button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font: 600 13px system-ui, sans-serif;
  cursor: pointer;
}
#ov-confirm-reset-emojis .confirm-actions .danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
#ov-confirm-reset-emojis .confirm-actions .danger:hover { background: #b91c1c; }

/* Focuses screen */
#ov-focuses-screen {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(10,14,22,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  font-family: system-ui, -apple-system, sans-serif;
}
#ov-focuses-screen.hidden { display: none; }
#ov-focuses-screen .focuses-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
#ov-focuses-screen .focuses-panel-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
#ov-focuses-screen h2 {
  flex: 1;
  margin: 0;
  font-size: 22px;
  color: #1e293b;
}
#ov-focuses-close {
  flex: none;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: 600 13px system-ui, sans-serif;
  cursor: pointer;
}
#ov-focuses-close:hover { background: #f8fafc; }
#ov-focuses-list,
.focuses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.focuses-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: rgba(248,250,252,.9);
  border: 1px solid #e2e8f0;
}
.focuses-card.is-hot {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,.2);
}
.focuses-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.focuses-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.focuses-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.focuses-name { font-weight: 700; font-size: 15px; color: #1e293b; }
.focuses-co { font-size: 12px; color: #64748b; }
.focuses-hot {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font: 700 11px/1.2 system-ui, sans-serif;
}
.focuses-emojis {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.focuses-focus {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.focuses-focus-text {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  cursor: pointer;
}
.focuses-focus.empty .focuses-focus-text {
  color: #94a3b8;
  font-style: italic;
  font-weight: 600;
}
.focuses-edit {
  flex: none;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: 600 12px system-ui, sans-serif;
  cursor: pointer;
}
.focuses-edit:hover { background: #f8fafc; }
.focuses-focus-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: 700 18px/1.35 system-ui, sans-serif;
}
