/* GFI Live Polling — shared styles. Colors, fonts and shapes match the GFI design. */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}
a { color: #2B7B10; text-decoration: none; }
a:hover { color: #23640D; }
button { font-family: inherit; }
textarea { font-family: inherit; }
.serif { font-family: 'Lora', Georgia, serif; }

@keyframes gfiPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes gfiIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gfiPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes gfiSpin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ============================ AUDIENCE ============================ */
.aud-wrap {
  min-height: 100vh;
  background: #F3F8F2;
  display: flex;
  justify-content: center;
  padding: 40px 0 40px;
}
.aud-card {
  width: 100%;
  max-width: 430px;
  margin: 0 16px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(17,24,39,.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}
.aud-header {
  padding: 18px 22px;
  border-bottom: 1px solid #F3F4F6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.aud-header img { height: 26px; width: auto; }
.aud-status {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.aud-status.live { color: #2B7B10; background: #E8F1E7; }
.aud-status.standby { color: #9CA3AF; background: #F3F4F6; }
.aud-event {
  padding: 6px 22px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF;
}
.aud-panel { flex: 1; display: flex; flex-direction: column; padding: 8px 22px 24px; animation: gfiIn .35s ease; }
.aud-center {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 30px;
}
.aud-center.in { animation: gfiIn .4s ease; }
.aud-center.pop { animation: gfiPop .35s ease; }

.wait-ring {
  width: 64px; height: 64px; border-radius: 50%; background: #E8F1E7;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.wait-dot { width: 12px; height: 12px; border-radius: 50%; background: #379E14; animation: gfiPulse 1.6s ease-in-out infinite; }
.aud-center h2 { font-family: 'Lora', serif; font-weight: 600; font-size: 22px; margin: 0 0 8px; color: #14210E; }
.aud-center p { margin: 0; color: #6B7280; font-size: 15px; line-height: 1.5; max-width: 260px; }

.confirm-ring {
  width: 72px; height: 72px; border-radius: 50%; background: #379E14;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(55,158,20,.28);
}
.confirm-summary {
  margin-top: 18px; padding: 14px 16px; background: #F3F8F2; border: 1px solid #E8F1E7;
  border-radius: 14px; font-size: 15px; color: #233C1B; font-weight: 600; max-width: 300px; line-height: 1.4;
}
.link-btn { margin-top: 18px; background: none; border: none; color: #2B7B10; font-weight: 700; font-size: 14px; cursor: pointer; }

.q-chip {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px;
}
.q-chip.mc { color: #2B7B10; background: #E8F1E7; }
.q-chip.rank { color: #1617A6; background: #E7E7F1; }
.q-chip.text { color: #A64716; background: #F8F3F2; }
.aud-panel h1 {
  font-family: 'Lora', serif; font-weight: 600; font-size: 23px; line-height: 1.3;
  margin: 14px 0 4px; color: #14210E; text-wrap: pretty;
}
.aud-hint { margin: 0 0 18px; color: #9CA3AF; font-size: 13px; font-weight: 600; }

.opt-list { display: flex; flex-direction: column; gap: 10px; }
.mc-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 16px; border-radius: 14px; font-size: 16px; cursor: pointer; transition: all .15s;
  border: 2px solid #E5E7EB; background: #fff; color: #374151; font-weight: 600;
}
.mc-opt.sel {
  border: 2px solid #2B7B10; background: #F3F8F2; color: #14210E; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(43,123,16,.10);
}
.mc-letter {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 13px; background: #F3F4F6; color: #9CA3AF;
}
.mc-opt.sel .mc-letter { background: #2B7B10; color: #fff; }

.rank-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border-radius: 14px;
  background: #fff; cursor: grab; user-select: none; transition: box-shadow .15s, transform .05s;
  border: 2px solid #E5E7EB;
}
.rank-item.drag {
  border: 2px solid #1617A6; box-shadow: 0 12px 28px rgba(22,23,166,.22);
  transform: scale(1.02); cursor: grabbing; position: relative; z-index: 5;
}
.rank-num {
  width: 26px; height: 26px; flex: none; border-radius: 8px; background: #E7E7F1; color: #1617A6;
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.rank-label { flex: 1; line-height: 1.35; font-weight: 600; color: #14210E; }

.aud-textarea {
  width: 100%; min-height: 120px; resize: none; padding: 16px; border: 2px solid #E5E7EB;
  border-radius: 14px; font-size: 16px; color: #14210E; outline: none; line-height: 1.4;
}
.aud-textarea:focus { border-color: #2B7B10; }
.aud-count { text-align: right; font-size: 12px; color: #9CA3AF; margin-top: 6px; font-weight: 600; }

.submit-btn {
  margin-top: 24px; width: 100%; padding: 16px; border-radius: 14px; border: none; font-size: 16px;
  font-weight: 800; cursor: pointer; transition: all .15s;
  background: #2B7B10; color: #fff; box-shadow: 0 6px 16px rgba(43,123,16,.25);
}
.submit-btn:disabled { background: #E5E7EB; color: #9CA3AF; cursor: not-allowed; box-shadow: none; }

/* ============================ PRESENTER ============================ */
.pre-wrap {
  min-height: 100vh; background: #13210E; color: #fff;
  display: flex; flex-direction: column; padding: 44px 56px 44px;
}
.pre-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.pre-brand { display: flex; align-items: center; gap: 20px; }
.pre-brand img { height: 38px; width: auto; }
.pre-divider { width: 1px; height: 34px; background: rgba(255,255,255,.18); }
.pre-event { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; color: #CFE3C4; }
.pre-headright { display: flex; align-items: center; gap: 22px; }
.pre-live { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; letter-spacing: .05em; color: #8FE06A; }
.pre-live .dot { width: 11px; height: 11px; border-radius: 50%; background: #4FB81F; animation: gfiPulse 1.4s ease-in-out infinite; }
.pre-count { text-align: right; }
.pre-count .n { font-size: 44px; font-weight: 900; line-height: 1; }
.pre-count .l { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8BA57C; }

.pre-body { flex: 1; display: flex; flex-direction: column; padding-top: 30px; }
/* When a question is live, reserve a right gutter so the corner QR never overlaps results. */
.pre-body.has-qr { padding-right: 180px; }
.pre-prompt {
  font-family: 'Lora', serif; font-weight: 600; font-size: 46px; line-height: 1.18;
  margin: 0 0 34px; max-width: 1400px; text-wrap: pretty;
}
.pre-standby { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pre-standby .sdot { width: 16px; height: 16px; border-radius: 50%; background: #4FB81F; margin-bottom: 26px; animation: gfiPulse 1.6s ease-in-out infinite; }
.pre-standby h1 { font-family: 'Lora', serif; font-weight: 600; font-size: 52px; margin: 0 0 20px; color: #fff; }
.pre-standby p { font-size: 22px; color: #9DBB8C; margin: 0 0 40px; }
.join-box {
  display: flex; align-items: center; gap: 34px;
  padding: 26px 40px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.04);
}
.join-box .label { font-size: 16px; color: #8BA57C; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.join-box .url { font-size: 34px; font-weight: 900; color: #fff; }
.qr-img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 8px; display: block; }
.qr-badge {
  position: fixed; right: 40px; bottom: 34px; background: #fff; padding: 10px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); text-align: center;
}
.qr-badge img { width: 108px; height: 108px; display: block; }
.qr-badge .cap { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #2B7B10; margin-top: 6px; }

/* MC bars */
.bars { display: flex; flex-direction: column; gap: 22px; }
.bar-row { display: flex; align-items: center; gap: 26px; }
.bar-label { width: 340px; font-size: 24px; line-height: 1.25; color: #D7E7CE; font-weight: 600; }
.bar-label.win { color: #fff; font-weight: 800; }
.bar-track { flex: 1; height: 56px; background: rgba(255,255,255,.07); border-radius: 12px; overflow: hidden; position: relative; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 12px; transition: width .7s cubic-bezier(.22,1,.36,1); background: rgba(79,184,31,.55); }
.bar-fill.win { background: linear-gradient(90deg,#4FB81F,#82D94E); }
.bar-nums { width: 150px; text-align: right; }
.bar-nums .p { font-size: 34px; font-weight: 900; }
.bar-nums .c { font-size: 19px; color: #8BA57C; font-weight: 700; margin-left: 10px; }

/* Rank rows */
.rrows { display: flex; flex-direction: column; gap: 16px; }
.rrow { display: flex; align-items: center; gap: 24px; background: rgba(255,255,255,.05); border-radius: 14px; padding: 16px 24px; }
.rrow .badge { width: 52px; height: 52px; flex: none; border-radius: 12px; background: #1617A6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; }
.rrow .rlabel { flex: 1; font-size: 28px; font-weight: 700; }
.rrow .rtrack { flex: 1; max-width: 420px; height: 16px; background: rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.rrow .rfill { height: 100%; border-radius: 8px; background: linear-gradient(90deg,#4FB81F,#82D94E); transition: width .7s cubic-bezier(.22,1,.36,1); }
.rrow .ravg { width: 190px; text-align: right; font-size: 16px; color: #9DBB8C; font-weight: 700; }
.rrow .ravg b { font-size: 26px; font-weight: 900; color: #fff; margin-left: 8px; }

/* Text cards */
.tcols { columns: 3; column-gap: 22px; }
@media (max-width: 1100px) { .tcols { columns: 2; } }
.tcard {
  break-inside: avoid; margin-bottom: 22px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08); border-left: 4px solid #4FB81F; border-radius: 12px;
  padding: 22px 24px; font-size: 24px; line-height: 1.35; font-weight: 600; color: #EAF4E4; animation: gfiPop .3s ease;
}

/* ============================ ADMIN ============================ */
.adm-wrap { min-height: 100vh; background: #F9FAFB; padding: 40px 0 60px; }
.adm-container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.adm-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 22px; border-bottom: 1px solid #E5E7EB; margin-bottom: 8px;
}
.adm-brand { display: flex; align-items: center; gap: 18px; }
.adm-brand img { height: 30px; width: auto; }
.adm-brand .divider { width: 1px; height: 30px; background: #E5E7EB; }
.adm-brand .title { font-family: 'Lora', serif; font-weight: 600; font-size: 19px; color: #14210E; }
.adm-brand .sub { font-size: 13px; color: #9CA3AF; font-weight: 600; }
.adm-headright { display: flex; align-items: center; gap: 14px; }
.adm-total { text-align: right; }
.adm-total .n { font-size: 26px; font-weight: 900; color: #14210E; line-height: 1; }
.adm-total .l { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; }
.btn-green {
  display: inline-flex; align-items: center; gap: 8px; background: #2B7B10; color: #fff; border: none;
  padding: 12px 20px; border-radius: 12px; font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(43,123,16,.25);
}
.btn-green:hover { background: #23640D; }
.btn-ghost { background: none; border: none; color: #9CA3AF; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-ghost:hover { color: #6B7280; }

.adm-section { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.adm-section h2 { font-family: 'Lora', serif; font-weight: 600; font-size: 17px; color: #374151; margin: 0; letter-spacing: .02em; }
.adm-section .right { display: flex; align-items: center; gap: 16px; }

.q-list { display: flex; flex-direction: column; gap: 12px; }
.q-card { display: flex; align-items: stretch; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #E5E7EB; box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.q-card.live { border: 1px solid #B1D3AD; box-shadow: 0 8px 22px rgba(55,158,20,.12); }
.q-stripe { width: 8px; align-self: stretch; border-radius: 8px 0 0 8px; background: #D1D5DB; }
.q-main { flex: 1; padding: 18px 20px; min-width: 0; }
.q-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.q-badge { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.q-badge.mc { color: #2B7B10; background: #E8F1E7; }
.q-badge.rank { color: #1617A6; background: #E7E7F1; }
.q-badge.text { color: #A64716; background: #F8F3F2; }
.q-badge.st-live { color: #2B7B10; background: #E8F1E7; }
.q-badge.st-closed { color: #A64716; background: #F8F3F2; }
.q-badge.st-draft { color: #6B7280; background: #F3F4F6; }
.q-prompt { font-family: 'Lora', serif; font-weight: 600; font-size: 17px; color: #14210E; line-height: 1.35; text-wrap: pretty; }
.q-opts { margin-top: 8px; font-size: 13px; color: #9CA3AF; font-weight: 600; }
.q-side { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-left: 1px solid #F3F4F6; }
.q-count { text-align: center; min-width: 56px; }
.q-count .n { font-size: 24px; font-weight: 900; color: #14210E; line-height: 1; }
.q-count .l { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9CA3AF; }
.reorder { display: flex; flex-direction: column; gap: 4px; }
.reorder button { width: 26px; height: 22px; border: 1px solid #E5E7EB; background: #fff; border-radius: 6px; cursor: pointer; color: #6B7280; display: flex; align-items: center; justify-content: center; padding: 0; }
.reorder button:hover:not(:disabled) { background: #F3F4F6; }
.reorder button:disabled { opacity: .35; cursor: default; }
.btn-open { min-width: 92px; background: #2B7B10; color: #fff; border: 2px solid #2B7B10; padding: 10px 14px; border-radius: 11px; font-weight: 800; font-size: 14px; cursor: pointer; }
.btn-open:hover { background: #23640D; }
.btn-close { min-width: 92px; background: #fff; color: #A64716; border: 2px solid #E3D0CC; padding: 10px 14px; border-radius: 11px; font-weight: 800; font-size: 14px; cursor: pointer; }
.btn-close:hover { background: #F8F3F2; }
.icon-btn { width: 34px; height: 34px; border: 1px solid #E5E7EB; background: #fff; border-radius: 9px; cursor: pointer; color: #6B7280; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #F3F4F6; color: #374151; }
.icon-btn.danger:hover { background: #F8F3F2; color: #A64716; border-color: #E3D0CC; }
.adm-note { margin-top: 22px; font-size: 13px; color: #9CA3AF; line-height: 1.5; }

/* Text moderation list (admin) */
.mod-block { margin-top: 26px; }
.mod-block h3 { font-family: 'Lora', serif; font-weight: 600; font-size: 15px; color: #374151; margin: 0 0 10px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mod-card { background: #fff; border: 1px solid #E5E7EB; border-left: 4px solid #4FB81F; border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.mod-card.is-hidden { opacity: .55; border-left-color: #9CA3AF; }
.mod-card .txt { flex: 1; font-size: 14px; color: #14210E; line-height: 1.4; font-weight: 600; word-break: break-word; }
.mod-card .hide-btn { flex: none; background: none; border: none; cursor: pointer; color: #9CA3AF; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.mod-card .hide-btn:hover { color: #A64716; }
.mod-card.is-hidden .hide-btn { color: #2B7B10; }

/* Events bar (admin) */
.evt-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 14px 16px; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.evt-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.evt-right { display: flex; align-items: center; gap: 14px; }
.evt-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9CA3AF; }
.evt-select { max-width: 360px; padding: 9px 12px; border: 2px solid #E5E7EB; border-radius: 10px; font-size: 15px; font-weight: 700; color: #14210E; background: #fff; font-family: inherit; outline: none; cursor: pointer; }
.evt-select:focus { border-color: #2B7B10; }
.evt-select:disabled { color: #9CA3AF; cursor: default; }

/* Past events (admin) */
.past-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: 0 1px 2px rgba(17,24,39,.04); margin-bottom: 12px; overflow: hidden; }
.past-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.past-info { min-width: 0; }
.past-name { font-family: 'Lora', serif; font-weight: 600; font-size: 17px; color: #14210E; }
.past-meta { margin-top: 4px; font-size: 13px; color: #9CA3AF; font-weight: 600; }
.past-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.past-body { padding: 2px 20px 20px; border-top: 1px solid #F3F4F6; }

/* Final-results rendering in the admin (light theme) — bars / rank averages / text cards */
.res-q { padding: 18px 0; border-bottom: 1px solid #F3F4F6; }
.res-q:last-child { border-bottom: none; }
.res-count { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; color: #6B7280; background: #F3F4F6; }
.res-q .q-prompt { margin-top: 4px; margin-bottom: 14px; }
.res-bars { display: flex; flex-direction: column; gap: 10px; }
.res-bar-row { display: flex; align-items: center; gap: 16px; }
.res-bar-label { width: 240px; font-size: 15px; font-weight: 600; color: #374151; line-height: 1.3; }
.res-bar-label.win { color: #14210E; font-weight: 800; }
.res-bar-track { flex: 1; height: 30px; background: #F3F4F6; border-radius: 8px; overflow: hidden; position: relative; }
.res-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: rgba(55,158,20,.35); transition: width .5s ease; }
.res-bar-fill.win { background: linear-gradient(90deg,#2B7B10,#4FB81F); }
.res-bar-nums { width: 92px; text-align: right; }
.res-bar-nums .p { font-size: 18px; font-weight: 900; color: #14210E; }
.res-bar-nums .c { font-size: 13px; font-weight: 700; color: #9CA3AF; margin-left: 8px; }
.res-rrows { display: flex; flex-direction: column; gap: 8px; }
.res-rrow { display: flex; align-items: center; gap: 14px; background: #F9FAFB; border: 1px solid #F3F4F6; border-radius: 10px; padding: 10px 14px; }
.res-rbadge { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #1617A6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; }
.res-rlabel { flex: 1; font-size: 15px; font-weight: 700; color: #14210E; }
.res-rtrack { flex: 1; max-width: 260px; height: 12px; background: #E7E7F1; border-radius: 6px; overflow: hidden; }
.res-rfill { height: 100%; border-radius: 6px; background: linear-gradient(90deg,#2B7B10,#4FB81F); transition: width .5s ease; }
.res-ravg { width: 150px; text-align: right; font-size: 13px; font-weight: 700; color: #9CA3AF; }
.res-ravg b { font-size: 18px; font-weight: 900; color: #14210E; margin-left: 6px; }
.res-tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.res-tcard { background: #F9FAFB; border: 1px solid #E5E7EB; border-left: 4px solid #4FB81F; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #14210E; word-break: break-word; }

/* Modal (create/edit) */
.modal-back { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; box-shadow: 0 24px 60px rgba(17,24,39,.25); padding: 26px 28px; }
.modal h2 { font-family: 'Lora', serif; font-weight: 600; font-size: 20px; margin: 0 0 18px; color: #14210E; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: #374151; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 2px solid #E5E7EB; border-radius: 10px; font-size: 15px; color: #14210E; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: #2B7B10; }
.type-pick { display: flex; gap: 8px; }
.type-pick button { flex: 1; padding: 10px; border: 2px solid #E5E7EB; background: #fff; border-radius: 10px; font-weight: 800; font-size: 13px; cursor: pointer; color: #6B7280; }
.type-pick button.on { border-color: #2B7B10; background: #F3F8F2; color: #2B7B10; }
.opt-rows { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; gap: 8px; }
.opt-row input { flex: 1; }
.opt-row button { flex: none; width: 40px; border: 2px solid #E5E7EB; background: #fff; border-radius: 10px; cursor: pointer; color: #9CA3AF; font-size: 18px; }
.opt-row button:hover { border-color: #E3D0CC; color: #A64716; }
.add-opt { margin-top: 8px; background: none; border: none; color: #2B7B10; font-weight: 800; font-size: 13px; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.btn-cancel { background: #fff; color: #6B7280; border: 2px solid #E5E7EB; padding: 10px 18px; border-radius: 11px; font-weight: 800; font-size: 14px; cursor: pointer; }
.btn-cancel:hover { background: #F3F4F6; }
.form-err { color: #A64716; font-size: 13px; font-weight: 700; margin: 8px 0 0; }

/* ============================ LOGIN ============================ */
.login-wrap { min-height: 100vh; background: #F3F8F2; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(17,24,39,.10); padding: 34px 30px; width: 100%; max-width: 380px; text-align: center; }
.login-card img { height: 30px; margin-bottom: 18px; }
.login-card h1 { font-family: 'Lora', serif; font-weight: 600; font-size: 22px; margin: 0 0 6px; color: #14210E; }
.login-card p { margin: 0 0 20px; color: #6B7280; font-size: 14px; }
.login-card input { width: 100%; padding: 14px 16px; border: 2px solid #E5E7EB; border-radius: 12px; font-size: 16px; outline: none; text-align: center; }
.login-card input:focus { border-color: #2B7B10; }
.login-card button { width: 100%; margin-top: 14px; padding: 14px; border: none; border-radius: 12px; background: #2B7B10; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.login-card button:hover { background: #23640D; }
.login-err { color: #A64716; font-size: 14px; font-weight: 700; margin-top: 14px; min-height: 20px; }

/* Small screens for presenter (fallback so demoing on a laptop still works) */
@media (max-width: 720px) {
  .pre-wrap { padding: 24px 20px; }
  .pre-prompt { font-size: 30px; }
  .pre-standby h1 { font-size: 32px; }
  .bar-label { width: 150px; font-size: 16px; }
  .bar-nums { width: 90px; }
  .bar-nums .p { font-size: 22px; }
  .join-box { flex-direction: column; gap: 18px; }
  .join-box .url { font-size: 22px; }
}
