/* Pacing lock: banner shown to attendees in paced mode + presenter release bar */

.paced-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: -8px -8px 16px;
  background: linear-gradient(180deg, #FFF8EA, #FBEFD2);
  border: 1px solid #E8C97A;
  border-radius: 0 0 10px 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  box-shadow: 0 4px 16px -10px rgba(0,0,0,0.18);
}
.paced-banner-icon { font-size: 16px; }
.paced-banner-text { flex: 1; }
.paced-banner-text strong { color: var(--ink); font-weight: 600; }
.paced-banner-close {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.paced-banner-close:hover { background: rgba(0,0,0,0.05); color: var(--ink); }

.paced-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(20,16,14,0.94);
  color: #F7F3EC;
  border-radius: 14px;
  box-shadow: 0 18px 48px -16px rgba(0,0,0,0.55);
  max-width: min(420px, calc(100vw - 32px));
  z-index: 1100;
  animation: pacedToastIn 240ms ease both;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
@keyframes pacedToastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.paced-toast-icon { font-size: 22px; margin-top: 1px; }
.paced-toast-title {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.paced-toast-body {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(247,243,236,0.85);
}

/* Presenter "release the room" bar — bottom-right, opposite the music player */
.release-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(320px, calc(100vw - 32px));
  background: rgba(20,16,14,0.94);
  color: #F7F3EC;
  border-radius: 14px;
  box-shadow: 0 18px 48px -16px rgba(0,0,0,0.55), 0 0 0 1px rgba(247,243,236,0.10);
  z-index: 1050;
  font-family: var(--sans);
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.release-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(247,243,236,0.10);
}
.release-bar-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.7);
}
.release-bar-min {
  background: rgba(247,243,236,0.06);
  color: rgba(247,243,236,0.85);
  border: none;
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.release-bar-body { padding: 12px 14px 14px; }
.release-bar-now {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.release-bar-now-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247,243,236,0.55);
  font-size: 10.5px;
}
.release-bar-now-phase {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: #C7E2BD;
}
.release-bar-go {
  width: 100%;
  padding: 11px 14px;
  background: #C45A2C;
  color: #FFF;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 140ms ease, transform 140ms ease;
}
.release-bar-go:hover { background: #B14E22; transform: translateY(-1px); }
.release-bar-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(247,243,236,0.65);
}
.release-bar-hint em { color: #C7E2BD; font-style: italic; }
.release-bar-jump {
  margin-top: 10px;
  border-top: 1px dashed rgba(247,243,236,0.12);
  padding-top: 10px;
}
.release-bar-jump > summary {
  cursor: pointer;
  font-size: 11.5px;
  color: rgba(247,243,236,0.65);
  list-style: none;
}
.release-bar-jump > summary::-webkit-details-marker { display: none; }
.release-bar-jump > summary:before { content: "▸ "; }
.release-bar-jump[open] > summary:before { content: "▾ "; }
.release-bar-jump-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.release-bar-jump-btn {
  background: rgba(247,243,236,0.08);
  color: rgba(247,243,236,0.85);
  border: none;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-family: var(--sans);
  cursor: pointer;
}
.release-bar-jump-btn:hover { background: rgba(247,243,236,0.15); }

.release-pill {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1050;
  background: rgba(20,16,14,0.92);
  color: #F7F3EC;
  border: none;
  border-radius: 99px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.45);
}
.release-pill:hover { background: rgba(20,16,14,1); }

/* Presenter quiet mode — hides all overlays so the presenter can safely
   screen-share without exposing notes, music, tweaks, etc. Activated by
   Cmd/Ctrl + Shift + H. */
html.presenter-quiet .release-bar,
html.presenter-quiet .release-pill,
html.presenter-quiet .mp,
html.presenter-quiet .mp-pill,
html.presenter-quiet .presenter-badge,
html.presenter-quiet [data-tweaks-panel],
html.presenter-quiet [data-edit-mode-toggle],
html.presenter-quiet .tweaks-pill {
  display: none !important;
}
/* Hide the teleprompter (top-left fixed) in quiet mode regardless of its
   internal collapsed/expanded state. Selectors are deliberately broad
   because the component uses inline styles. */
html.presenter-quiet body > div[style*="position: fixed"][style*="left: 12px"],
html.presenter-quiet body > div[style*="position: fixed"][style*="left:12px"],
html.presenter-quiet body > button[title*="speaker notes" i] {
  display: none !important;
}
html.presenter-quiet:before {
  content: "QUIET MODE · ⌘⇧H to exit";
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  background: rgba(20,16,14,0.92);
  color: #F7F3EC;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 99px;
  z-index: 2147483646;
  pointer-events: none;
}
