.live-poll-layout {
  display: grid;
  grid-template-columns: minmax(210px, .48fr) minmax(0, 1.52fr);
  gap: clamp(30px, 4vw, 76px);
  align-items: center;
}

.live-qr {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: clamp(18px, 1.8vw, 34px);
  border-top: 8px solid var(--orange);
  background: white;
  color: var(--navy);
  box-shadow: 22px 22px 0 rgba(17,45,98,.08);
  text-align: center;
}

.navy .live-qr,
.dark .live-qr,
.teal .live-qr { box-shadow: 22px 22px 0 rgba(255,180,68,.22); }

.live-qr-kicker {
  margin: 0 0 .7em;
  font: 700 clamp(11px, .8vw, 16px)/1 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

.live-qr img {
  width: min(100%, clamp(175px, 15.8vw, 305px));
  aspect-ratio: 1;
  object-fit: contain;
  background: white;
}

.live-qr-code {
  margin: .55em 0 .15em;
  font: 700 clamp(28px, 2.75vw, 52px)/1 var(--heading);
  letter-spacing: .16em;
}

.live-qr-url {
  max-width: 26ch;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: 600 clamp(10px, .72vw, 14px)/1.3 var(--ui);
}

.live-question {
  min-width: 0;
}

.live-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(14px, 1.4vw, 26px);
  color: var(--muted);
  font: 700 clamp(11px, .82vw, 16px)/1 var(--ui);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.navy .live-meta,
.dark .live-meta,
.teal .live-meta { color: rgba(255,255,255,.65); }

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.live-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(112,128,154,.12);
}

[data-live-status-value="open"] .live-status::before,
.live-status[data-state="open"]::before {
  background: #45b98a;
  box-shadow: 0 0 0 5px rgba(69,185,138,.15);
}

[data-live-status-value="closed"] .live-status::before,
.live-status[data-state="closed"]::before {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255,180,68,.15);
}

.live-options {
  display: grid;
  gap: clamp(11px, 1vw, 19px);
}

.live-options.four { grid-template-columns: repeat(2, 1fr); }

.live-option {
  position: relative;
  min-height: clamp(110px, 13.5vh, 190px);
  overflow: hidden;
  padding: clamp(17px, 1.6vw, 30px);
  border-top: 6px solid var(--orange);
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(17,45,98,.08);
}

.live-option::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: var(--result-width, 0%);
  height: 7px;
  background: var(--teal);
  transition: width .55s cubic-bezier(.2,.75,.25,1);
}

.live-option strong {
  display: block;
  font: 700 clamp(30px, 3vw, 58px)/.95 var(--heading);
  color: var(--navy);
}

.live-option > span:not(.live-result) {
  display: block;
  margin-top: 8px;
  font-size: clamp(14px, 1.05vw, 20px);
}

[data-live-state="revealed"] .live-option {
  padding-right: clamp(88px, 8.8vw, 165px);
}

.live-result {
  position: absolute;
  top: clamp(17px, 1.6vw, 30px);
  right: clamp(17px, 1.6vw, 30px);
  display: grid;
  justify-items: end;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.live-result b {
  font: 700 clamp(28px, 2.7vw, 52px)/1 var(--heading);
  color: var(--teal);
}

.live-result small {
  margin-top: 4px;
  color: var(--muted);
  font: 600 clamp(10px, .72vw, 14px)/1 var(--ui);
}

[data-live-state="revealed"] .live-result {
  opacity: 1;
  transform: translateY(0);
}

.dilemma-live-layout {
  display: grid;
  grid-template-columns: minmax(185px, .34fr) minmax(0, 1.66fr);
  gap: clamp(24px, 3vw, 58px);
  align-items: center;
}

.dilemma-live-layout .live-qr {
  padding: clamp(14px, 1.3vw, 25px);
}

.dilemma-live-layout .live-qr img {
  width: min(100%, clamp(150px, 12.2vw, 235px));
}

.dilemma-live-layout .live-qr.qr-only {
  width: min(100%, clamp(190px, 15vw, 270px));
  justify-self: center;
  padding: clamp(10px, 1vw, 18px);
}

.dilemma-live-layout .live-qr.qr-only img {
  width: 100%;
}

.dilemma-live-layout .choices { gap: clamp(14px, 1.7vw, 32px); }

.dilemma-live-layout .choice {
  min-height: clamp(215px, 28vh, 365px);
  padding: clamp(22px, 2.3vw, 44px);
  cursor: default;
}

.dilemma-live-layout .choice:hover { transform: none; }

.dilemma-live-layout .choice-time {
  font-size: clamp(54px, 5.6vw, 108px);
}

.dilemma-live-layout .choice-label {
  font-size: clamp(22px, 1.9vw, 36px);
}

.choice-live-result {
  position: absolute;
  right: clamp(20px, 2vw, 38px);
  top: clamp(20px, 2vw, 38px);
  display: grid;
  justify-items: end;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.choice-live-result b {
  font: 700 clamp(34px, 3.6vw, 70px)/1 var(--heading);
  color: var(--orange);
}

.choice-live-result small {
  color: rgba(255,255,255,.6);
  font: 600 clamp(10px, .72vw, 14px)/1 var(--ui);
}

[data-live-state="revealed"] .choice-live-result {
  opacity: 1;
  transform: translateY(0);
}

.choice::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: var(--result-width, 0%);
  height: 9px;
  background: var(--orange);
  transition: width .55s cubic-bezier(.2,.75,.25,1);
}

.tool-options { grid-template-columns: repeat(2, 1fr); }

.tool-options .live-option {
  min-height: clamp(92px, 12vh, 165px);
  padding: clamp(14px, 1.3vw, 26px) clamp(16px, 1.5vw, 30px);
  border-top-width: 5px;
}

.tool-options .live-option strong { font-size: clamp(22px, 2vw, 40px); }

.tool-options .live-option > span:not(.live-result) {
  margin-top: 5px;
  font-size: clamp(13px, .95vw, 19px);
}

.tool-options .live-option:last-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: clamp(56px, 7vh, 96px);
}

.tool-options .live-option:last-child > span:not(.live-result) { margin-top: 0; }

.tool-options .live-option:last-child .live-result {
  top: 50%;
  transform: translateY(calc(-50% + 8px));
}

[data-live-state="revealed"] .tool-options .live-option:last-child .live-result {
  transform: translateY(-50%);
}

.priority-options .live-option {
  min-height: clamp(76px, 9vh, 122px);
  padding: clamp(13px, 1.1vw, 21px) clamp(15px, 1.4vw, 26px);
  border-top-width: 4px;
}

.priority-options .live-option strong {
  font-size: clamp(21px, 1.8vw, 34px);
}

.priority-options .live-option > span:not(.live-result) {
  margin-top: 3px;
  font-size: clamp(13px, .92vw, 18px);
}

.priority-options .live-result {
  top: 50%;
  transform: translateY(calc(-50% + 8px));
}

[data-live-state="revealed"] .priority-options .live-result {
  transform: translateY(-50%);
}

.live-error {
  position: absolute;
  z-index: 45;
  left: 50%;
  bottom: 30px;
  max-width: 70%;
  padding: 12px 18px;
  background: #9d3128;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  font: 600 clamp(12px, .82vw, 16px)/1.35 var(--ui);
  transition: opacity .2s ease, transform .2s ease;
}

.live-error.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.presenter-panel {
  position: absolute;
  z-index: 90;
  top: 50%;
  right: clamp(30px, 4vw, 76px);
  width: min(480px, 37%);
  max-height: 82%;
  overflow: auto;
  padding: clamp(24px, 2.2vw, 42px);
  border-top: 8px solid var(--orange);
  background: rgba(7,26,45,.98);
  color: white;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(-50% + 14px));
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.presenter-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%);
  transition-delay: 0s;
}

.presenter-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.presenter-panel h2 {
  margin: 0;
  color: white;
  font-size: clamp(28px, 2.4vw, 46px);
  letter-spacing: -.03em;
}

.presenter-panel-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
  font: 700 18px/1 var(--ui);
}

.presenter-session {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin: 24px 0;
  padding: 19px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.presenter-session span,
.presenter-target span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.55);
  font: 700 11px/1 var(--ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.presenter-target p {
  margin: 9px 0 0;
  color: rgba(255,255,255,.66);
  font: 500 14px/1.45 var(--ui);
}

.presenter-session strong {
  font: 700 clamp(28px, 2.4vw, 46px)/1 var(--heading);
  letter-spacing: .16em;
  color: var(--orange);
}

.presenter-panel button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: white;
  cursor: pointer;
  font: 700 13px/1 var(--ui);
}

.presenter-panel button:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.presenter-panel button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.presenter-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  color: rgba(255,255,255,.65);
  font: 600 13px/1.35 var(--ui);
}

.presenter-message {
  min-height: 1.4em;
  margin: 15px 0 0;
  color: #ffb7ad;
  font: 600 13px/1.35 var(--ui);
}

@media print {
  .presenter-panel,
  .live-error { display: none !important; }
}
