/* Presenter Console — docked right-side panel for the presenter view */

.pc {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(310px, calc(100vw - 24px));
  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: 1040;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(247,243,236,0.10);
}
.pc-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.6);
  margin-bottom: 2px;
}
.pc-phase {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #C7E2BD;
  line-height: 1.1;
}
.pc-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;
}
.pc-min:hover { background: rgba(247,243,236,0.12); }

.pc-section {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(247,243,236,0.08);
}
.pc-section:last-child { border-bottom: none; flex: 1; overflow-y: auto; }

.pc-section-hi {
  background: rgba(196, 90, 44, 0.10);
}
.pc-release {
  width: 100%;
  padding: 12px 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;
}
.pc-release:hover { background: #B14E22; transform: translateY(-1px); }

.pc-jump-more {
  margin-top: 12px;
  border-top: 1px dashed rgba(247,243,236,0.12);
  padding-top: 10px;
}
.pc-jump-more > summary {
  cursor: pointer;
  font-size: 11.5px;
  color: rgba(247,243,236,0.65);
  list-style: none;
}
.pc-jump-more > summary::-webkit-details-marker { display: none; }
.pc-jump-more > summary:before { content: "▸ "; }
.pc-jump-more[open] > summary:before { content: "▾ "; }

.pc-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.55);
  margin-bottom: 8px;
}

/* Segmented persona switcher */
.pc-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(247,243,236,0.06);
  padding: 4px;
  border-radius: 10px;
}
.pc-seg {
  background: transparent;
  border: none;
  color: rgba(247,243,236,0.7);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background 140ms ease, color 140ms ease;
}
.pc-seg:hover { color: #F7F3EC; }
.pc-seg.is-active {
  background: #C45A2C;
  color: #FFF;
  font-weight: 600;
}

.pc-help {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(247,243,236,0.6);
}
.pc-help em { color: #C7E2BD; font-style: italic; }

.pc-action-primary {
  width: 100%;
  padding: 10px 12px;
  background: #1F4D2E;
  color: #FFF;
  border: 1px solid rgba(247,243,236,0.15);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 140ms ease, transform 140ms ease;
}
.pc-action-primary:hover { background: #2A6541; transform: translateY(-1px); }

.pc-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(247,243,236,0.75);
  cursor: pointer;
  user-select: none;
}
.pc-toggle input { margin: 0; cursor: pointer; }

.pc-phase-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pc-phase-btn {
  background: rgba(247,243,236,0.07);
  color: rgba(247,243,236,0.78);
  border: none;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 140ms ease;
}
.pc-phase-btn:hover { background: rgba(247,243,236,0.16); }
.pc-phase-btn.is-active {
  background: #C7E2BD;
  color: #0E1F14;
  font-weight: 600;
}

.pc-pill {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1040;
  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);
}
.pc-pill:hover { background: rgba(20,16,14,1); }

/* When the console is mounted, give the app a right-margin so its content
   doesn't sit behind the dock. On narrow screens the console becomes a pill
   you can open on demand instead. */
@media (min-width: 920px) {
  body:has(.pc) .app { padding-right: 340px; }
}

/* Quiet mode hides the console too (same as everything else) */
html.presenter-quiet .pc,
html.presenter-quiet .pc-pill {
  display: none !important;
}
html.presenter-quiet .app { padding-right: 0 !important; }
