/* Presenter shell */
.presenter-shell {
  display: grid;
  height: 100dvh;
  min-height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #030912;
}

.presenter-toolbar {
  position: relative;
  z-index: 20;
  display: grid;
  min-height: 64px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 23, 0.95);
}

.presenter-toolbar__left,
.presenter-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.presenter-toolbar__left > div:last-child {
  display: grid;
}

.presenter-toolbar__left strong {
  max-width: 320px;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presenter-toolbar__left small {
  color: var(--muted);
  font-size: 0.68rem;
}

.presenter-toolbar__actions {
  justify-content: flex-end;
}

.icon-btn--toolbar {
  width: 38px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.035);
}

.mode-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.mode-switch button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 0.73rem;
  font-weight: 900;
}

.mode-switch button.is-active {
  color: #fff;
  background: rgba(253, 105, 53, 0.95);
  box-shadow: 0 8px 18px rgba(253, 105, 53, 0.18);
}

.presenter-workspace {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 25vw);
  overflow: hidden;
}

.stage-area {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: clamp(16px, 2vw, 30px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    #050b13;
  background-size: 24px 24px;
}

.stage-mount {
  width: min(100%, calc((100dvh - 160px) * 16 / 9));
  max-height: calc(100dvh - 160px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(151, 188, 218, 0.16);
  border-radius: clamp(10px, 1.2vw, 18px);
  background: var(--bg);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.speaker-notes {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid var(--line);
  background: #09131f;
}

.speaker-notes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.speaker-notes__header > div:first-child {
  display: grid;
}

.speaker-notes__header .section-kicker {
  margin-bottom: 2px;
  font-size: 0.57rem;
}

.speaker-notes__header strong {
  font-size: 0.8rem;
}

.speaker-notes__header > div:last-child {
  display: flex;
  gap: 6px;
}

.tiny-btn {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.62rem;
  font-weight: 800;
}

.tiny-btn.is-active {
  color: var(--orange-2);
  border-color: rgba(253, 105, 53, 0.28);
  background: rgba(253, 105, 53, 0.08);
}

.speaker-notes__body {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 38px);
  scroll-behavior: smooth;
}

.speaker-notes__body p {
  margin: 0;
  font-size: calc(clamp(1.1rem, 1.65vw, 1.72rem) * var(--presenter-text-scale));
  font-weight: 650;
  line-height: 1.75;
  letter-spacing: 0;
}

.notes-breathing-space {
  height: 65vh;
}

.presenter-controls {
  position: relative;
  z-index: 25;
  display: grid;
  min-height: 72px;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(5, 13, 23, 0.97);
}

.control-arrow {
  display: grid;
  width: 45px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.7rem;
}

.control-arrow:hover:not(:disabled) {
  border-color: rgba(253, 105, 53, 0.38);
  background: rgba(253, 105, 53, 0.08);
}

.slide-scrubber {
  display: grid;
  grid-template-columns: 26px minmax(100px, 1fr) 26px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.slide-scrubber input {
  width: 100%;
  accent-color: var(--orange);
}

.control-options {
  display: flex;
  gap: 8px;
}

.control-options label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.control-options select {
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 900;
  outline: 0;
}

.control-options option {
  color: #fff;
  background: #0b1828;
}

.mode-broll .speaker-notes {
  display: none;
}

.mode-broll {
  grid-template-rows: minmax(0, 1fr);
}

.mode-broll .presenter-toolbar,
.mode-broll .presenter-controls {
  display: none;
}

.mode-broll .presenter-workspace {
  grid-template-columns: 1fr;
}

.mode-broll .stage-area {
  padding: 0;
  background: #030912;
}

.mode-broll .stage-mount {
  width: min(100vw, calc(100dvh * 16 / 9));
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mode-broll .slide-content {
  align-items: center;
}

.mode-broll .slide-title,
.mode-broll .slide-subtitle {
  margin-inline: auto;
  text-align: center;
}

.mode-broll .slide-title {
  width: min(94%, 13em);
}

.mode-broll .statement-copy--left {
  margin-inline: auto;
  text-align: center;
}

.mode-broll .slide-kind--overview .slide-content {
  justify-content: center;
}

.mode-broll .slide-kind--overview .slide-title {
  width: min(92%, 10.8em);
  margin-bottom: 0.5em;
  font-size: clamp(2rem, 5.25vw, 5.8rem);
}

.mode-broll .overview-grid {
  width: min(76%, 58em);
  margin: 0 auto;
  gap: 3%;
}

.mode-broll .info-card {
  display: grid;
  min-height: 7.4em;
  align-content: center;
  padding: 4.8% 5%;
  text-align: center;
}

.mode-broll .info-card small {
  margin-bottom: 0.65em;
}

.notes-focus .stage-area {
  display: none;
}

.notes-focus .presenter-workspace {
  grid-template-columns: 1fr;
}

.notes-focus .speaker-notes {
  border-left: 0;
}

.notes-focus .speaker-notes__body {
  width: min(900px, 100%);
  margin-inline: auto;
  padding-top: clamp(40px, 8vh, 100px);
}

.notes-focus .speaker-notes__body p {
  font-size: calc(clamp(1.7rem, 4vw, 3.25rem) * var(--presenter-text-scale));
  line-height: 1.65;
}

/* Slide base */
.slide-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% -20%, rgba(43, 182, 255, 0.08), transparent 45%),
    linear-gradient(180deg, #081523, #050c16);
  isolation: isolate;
}

.slide-frame::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 5.2% 9.2%;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 65%);
}

.slide-frame::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 100% 100%, rgba(43, 182, 255, 0.08), transparent 34%);
  content: "";
}

.slide-frame--orange {
  background:
    radial-gradient(circle at 50% -10%, rgba(253, 105, 53, 0.15), transparent 46%),
    linear-gradient(180deg, #0b1724, #050c16);
}

.slide-frame--red,
.slide-frame--danger {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 95, 103, 0.12), transparent 44%),
    linear-gradient(180deg, #11151f, #070b12);
}

.slide-frame--positive {
  background:
    radial-gradient(circle at 50% -10%, rgba(72, 213, 151, 0.12), transparent 44%),
    linear-gradient(180deg, #0a1920, #050c13);
}

.slide-frame--purple {
  background:
    radial-gradient(circle at 50% -10%, rgba(178, 139, 255, 0.14), transparent 44%),
    linear-gradient(180deg, #0d1523, #060b14);
}

.slide-header,
.slide-footer {
  position: absolute;
  right: 4.8%;
  left: 4.8%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(205, 220, 233, 0.7);
  font-size: clamp(0.42rem, 0.77vw, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.slide-header {
  top: 4.2%;
}

.slide-footer {
  bottom: 3.8%;
  color: rgba(159, 181, 201, 0.42);
  letter-spacing: 0.04em;
}

.slide-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.slide-brand b {
  display: grid;
  width: 2em;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.55em;
  color: #fff;
  background: var(--orange);
  font-size: 0.82em;
}

.slide-label {
  color: var(--orange-2);
}

.slide-content {
  position: absolute;
  inset: 11% 6% 9%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-title {
  width: min(92%, 10.5em);
  margin: 0 0 0.42em;
  color: var(--orange);
  font-size: clamp(1.65rem, 4.55vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.slide-title--center {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.slide-subtitle {
  width: min(78%, 46em);
  margin: 0 0 3.5%;
  color: #b5c6d5;
  font-size: clamp(0.7rem, 1.55vw, 1.48rem);
  line-height: 1.55;
}

.slide-subtitle--center {
  margin-inline: auto;
  text-align: center;
}

.slide-ambient i {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.3;
  filter: blur(0.2px);
}

.slide-ambient i:nth-child(1) {
  top: 20%;
  left: 4%;
  width: 0.42%;
  aspect-ratio: 1;
  box-shadow: 0 0 14px var(--blue);
}

.slide-ambient i:nth-child(2) {
  top: 43%;
  right: 5.4%;
  width: 0.35%;
  aspect-ratio: 1;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
}

.slide-ambient i:nth-child(3) {
  right: -11%;
  bottom: -20%;
  width: 35%;
  aspect-ratio: 1;
  border: 1px solid rgba(43, 182, 255, 0.12);
  background: transparent;
  box-shadow: 0 0 0 4vw rgba(43, 182, 255, 0.018), 0 0 0 8vw rgba(43, 182, 255, 0.012);
}

.slide-ambient i:nth-child(4) {
  bottom: 10%;
  left: -12%;
  width: 28%;
  aspect-ratio: 1;
  border: 1px solid rgba(253, 105, 53, 0.09);
  background: transparent;
}

.center-copy {
  margin: 0.6em auto 0;
  color: var(--muted);
  font-size: clamp(0.65rem, 1.35vw, 1.25rem);
  text-align: center;
}

.statement-copy {
  width: min(82%, 45em);
  margin: 3% auto 0;
  color: #e4edf4;
  font-size: clamp(0.85rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.statement-copy--left {
  width: min(82%, 42em);
  margin-left: 0;
  text-align: left;
}

.empty-copy {
  color: var(--muted);
  font-style: italic;
}
