:root{
  --bg:#f7f8fb; --card:#ffffff; --text:#111827; --muted:#6b7280; --line:#e5e7eb;
  --brand:#ff8a00; --brand2:#111827; --danger:#ef4444; --ok:#16a34a; --shadow:0 18px 45px rgba(17,24,39,.08);
}
*{box-sizing:border-box} body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(180deg,#fff7ed 0,#f7f8fb 260px);color:var(--text)}
.app{width:min(1120px,100%);margin:auto;padding:22px}.hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0 20px;padding:26px;border-radius:28px;background:linear-gradient(135deg,#ff8a00,#ffb347);color:white;box-shadow:var(--shadow)}
h1{font-size:clamp(34px,6vw,58px);line-height:.95;margin:6px 0}.subtext{max-width:720px;opacity:.95}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;margin:0 0 4px;color:inherit;opacity:.78}.grid{display:grid;grid-template-columns:1.25fr .9fr;gap:18px}.card{background:rgba(255,255,255,.92);border:1px solid rgba(229,231,235,.9);border-radius:24px;padding:20px;box-shadow:var(--shadow);backdrop-filter:blur(10px);margin-bottom:18px}.sectionTitle{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.sectionTitle h2{margin:0;font-size:22px}.muted{color:var(--muted);margin:5px 0 0}.split{align-items:center}
form{display:grid;gap:11px} label{font-size:14px;font-weight:750;color:#374151} input,select,textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 14px;font:inherit;background:#fff;color:var(--text)} textarea{min-height:86px;resize:vertical}.radioGroup{display:grid;grid-template-columns:1fr 1fr;gap:10px}.radioGroup label{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.radioGroup input{width:auto}.buttonRow{display:flex;gap:10px;flex-wrap:wrap}button{border:0;border-radius:14px;padding:12px 18px;font-weight:800;cursor:pointer;background:var(--brand2);color:#fff;transition:.2s}button:hover{transform:translateY(-1px)}.secondary,.ghost{background:#fff;color:#111827;border:1px solid var(--line)}.ghost{color:white;background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.45)}.danger{background:var(--danger)}.edit{background:#fff7ed;color:#c2410c;border:1px solid #fdba74}.full{width:100%;margin-top:12px}.status{font-weight:700;color:var(--muted)}.hidden{display:none!important}.preview{margin-top:14px;padding:14px;border-radius:16px;background:#f9fafb;border:1px dashed var(--line);white-space:pre-wrap}
.bookingCards{display:grid;gap:12px}.booking{display:grid;grid-template-columns:120px 1fr auto;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}.datePill{font-weight:900;font-size:20px}.timePill{font-size:13px;color:var(--muted);margin-top:4px}.booking h3{margin:0 0 5px;font-size:18px}.meta{display:flex;gap:8px;flex-wrap:wrap}.chip{display:inline-flex;border-radius:999px;padding:6px 10px;font-size:13px;font-weight:750;background:#f3f4f6;color:#374151}.actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pollCard{border-color:#fed7aa}.pollGrid{display:grid;gap:10px}.pollVoteBox{display:grid;grid-template-columns:1.2fr 1fr auto;gap:12px;align-items:end;margin:12px 0 18px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}.voteChoice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:14px;padding:13px 14px;background:#fff;font-weight:900;cursor:pointer}.choice input{width:auto}.yesChoice{background:#f0fdf4;color:#166534;border-color:#bbf7d0}.noChoice{background:#fef2f2;color:#991b1b;border-color:#fecaca}.pollResultLists{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.resultList{border:1px solid var(--line);border-radius:18px;background:#fff;padding:14px}.resultList h3{margin:0 0 10px;font-size:16px}.nameChips{display:flex;gap:8px;flex-wrap:wrap}.nameChip{border-radius:999px;padding:8px 11px;font-weight:850;font-size:13px}.yesChip{background:#dcfce7;color:#166534}.noChip{background:#fee2e2;color:#991b1b}.yes{background:#dcfce7;color:#166534}.no{background:#fee2e2;color:#991b1b}
@media(max-width:800px){.app{padding:12px}.hero{border-radius:22px;padding:20px;align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}.radioGroup{grid-template-columns:1fr}.booking{grid-template-columns:1fr}.actions{justify-content:flex-start}.pollVoteBox{grid-template-columns:1fr}.pollResultLists{grid-template-columns:1fr}button,input,select,textarea{font-size:16px}.card{padding:16px;border-radius:20px}}

/* Extra mobile polish */
@media(max-width:560px){
  body{background:#f7f8fb}.app{padding:10px}.hero{margin:0 0 12px;border-radius:0 0 26px 26px}.hero h1{font-size:38px}.hero .ghost{width:100%;background:rgba(255,255,255,.22)}
  .card{margin-bottom:12px;border-radius:18px;box-shadow:0 10px 24px rgba(17,24,39,.06)}
  .sectionTitle{flex-direction:column}.buttonRow button{width:100%}.booking{padding:14px}.datePill{font-size:22px}.meta .chip{font-size:12px}.actions button{flex:1}.pollVoteBox button{width:100%}
}

.pollSummary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 12px}
.summaryCard{border-radius:18px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);font-weight:900}
.summaryCard span{text-transform:uppercase;letter-spacing:.08em;font-size:12px}
.summaryCard strong{font-size:28px;line-height:1}
.yesCard{background:#ecfdf3;color:#067647;border-color:#bbf7d0}
.noCard{background:#fef3f2;color:#b42318;border-color:#fecaca}
@media(max-width:560px){.pollSummary{grid-template-columns:1fr}.summaryCard{padding:12px 14px}.summaryCard strong{font-size:24px}}

/* v6: Improved desktop alignment for the daily poll while keeping mobile layout unchanged */
@media (min-width: 801px){
  .pollCard{
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .pollVoteBox{
    grid-template-columns: minmax(280px, 1fr) minmax(240px, .8fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 10px 16px;
    padding: 18px;
  }

  .pollVoteBox label[for="pollPlayer"]{
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 2px;
  }

  #pollPlayer{
    grid-column: 1;
    grid-row: 2;
  }

  .pollVoteBox .voteChoice{
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    grid-template-columns: 1fr 1fr;
  }

  .pollVoteBox button{
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: 420px;
  }

  #pollVoteStatus{
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    align-self: center;
  }

  .pollResultLists{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v7: WhatsApp reminder card */
.whatsappReminderCard{border-color:#fed7aa;background:#fed7aa}
.whatsappReminderBox{display:grid;gap:12px}
#whatsappReminderText{min-height:170px;border-color:#fed7aa;font-size:14px;line-height:1.45}
.whatsappBtn{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;padding:12px 18px;font-weight:900;text-decoration:none;background:linear-gradient(135deg,#ff8a00,#ffb347);color:#fff;border:none;transition:.2s}
.whatsappBtn:hover{transform:translateY(-1px)}
@media(max-width:560px){.whatsappBtn{width:100%}}

/* v8: Fixed desktop alignment for Daily Poll vote controls */
@media (min-width: 801px){
  .pollVoteBox{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 10px 12px;
    align-items: end;
  }

  .pollVoteBox label[for="pollPlayer"]{
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
  }

  #pollPlayer{
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .pollVoteBox .voteChoice{
    grid-column: 2 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
  }

  .pollVoteBox button{
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: none;
  }

  #pollVoteStatus{
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0;
  }
}

/* Keep the vote controls comfortable on medium-width screens */
@media (min-width: 801px) and (max-width: 980px){
  .pollVoteBox{
    grid-template-columns: 1fr;
  }

  #pollPlayer,
  .pollVoteBox .voteChoice,
  .pollVoteBox button,
  #pollVoteStatus{
    grid-column: 1;
  }

  .pollVoteBox .voteChoice{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v9: Make Daily Poll card use the same width as the other desktop cards */
@media (min-width: 801px){
  .pollCard{
    max-width: none;
    width: 100%;
  }
}


/* v10: Live list actions */
.liveListActions{justify-content:flex-end}
@media(max-width:560px){.liveListActions{width:100%}.liveListActions button{width:100%}}


/* Refresh Poll button - compact top-right position */
.pollCard .sectionTitle{
  position:relative;
}

.pollRefreshBtn{
  background:#111827;
  color:#fff;
  border:1px solid rgba(17,24,39,.12);
  border-radius:999px;
  padding:10px 16px;
  font-size:14px;
  font-weight:900;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(17,24,39,.12);
}

.pollRefreshBtn:hover{
  transform:translateY(-1px);
}

@media(max-width:560px){
  .pollCard .sectionTitle{
    display:block;
    padding-right:100px;
    margin-bottom:16px;
  }

  .pollCard .sectionTitle .muted{
    margin-right:-100px;
  }

  .pollRefreshBtn{
    position:absolute;
    top:0;
    right:0;
    width:auto!important;
    min-width:0;
    padding:8px 11px;
    font-size:12px;
    border-radius:999px;
  }
}


/* v12: Orange/white theme consistency */
.card{
  border-color:#fed7aa;
}

.whatsappReminderCard{
  border-color:#fed7aa;
  
}

#whatsappReminderText{
  
  border-color:#fed7aa;
}

.whatsappBtn{
  background:linear-gradient(135deg,#ff8a00,#ffb347);
  color:#fff;
  border:none;
}

.edit,
.secondary,
.pollRefreshBtn,
.liveListActions .secondary{
  background:#fff7ed;
  color:#c2410c;
  border:1px solid #fdba74;
  box-shadow:none;
}

.edit:hover,
.secondary:hover,
.pollRefreshBtn:hover,
.liveListActions .secondary:hover{
  background:#ffedd5;
  transform:translateY(-1px);
}

.danger{
  background:#ef4444;
  color:#fff;
}

.full,
button[type="submit"],
.pollVoteBox button{
  background:#111827;
  color:#fff;
}

.chip{
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fed7aa;
}

/* v13: Three-page app layout */
.pageTabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
  padding:8px;
  border:1px solid #fed7aa;
  border-radius:22px;
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 28px rgba(17,24,39,.06);
  backdrop-filter:blur(10px);
}

.tabBtn{
  background:#fff;
  color:#9a3412;
  border:1px solid #fed7aa;
  border-radius:16px;
  padding:13px 14px;
  font-weight:900;
  box-shadow:none;
}

.tabBtn:hover,
.tabBtn.active{
  background:linear-gradient(135deg,#ff8a00,#ffb347);
  color:#fff;
  border-color:#ffb347;
  transform:translateY(-1px);
}

.appPage{display:none;}
.appPage.active{display:block;}

#homePage{
  display:none;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  gap:18px;
  align-items:start;
}

#homePage.active{display:grid;}
#homePage .card{margin-bottom:0;}
#homePage .pollCard{height:100%;}
#homePage .whatsappReminderCard{height:100%; background:#fff!important;}

.whatsappReminderCard{
  background:#fff!important;
  border-color:#fed7aa!important;
}

@media(max-width:900px){
  #homePage.active{display:block;}
  #homePage .card{margin-bottom:12px;}
}

@media(max-width:560px){
  .pageTabs{
    position:sticky;
    top:0;
    z-index:20;
    gap:7px;
    padding:7px;
    margin:0 0 12px;
    border-radius:18px;
  }
  .tabBtn{
    padding:10px 8px;
    font-size:13px;
  }
}


/* Help side panel */
.helpFloatingBtn{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:80;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#ff8a00,#ffb347);
  color:#fff;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 18px 40px rgba(194,65,12,.28);
}

.helpOverlay{
  position:fixed;
  inset:0;
  z-index:90;
  background:rgba(17,24,39,.38);
  backdrop-filter:blur(3px);
}

.helpPanel{
  position:fixed;
  top:0;
  right:0;
  width:min(430px,92vw);
  height:100vh;
  z-index:100;
  background:#fff;
  border-left:1px solid #fed7aa;
  box-shadow:-22px 0 55px rgba(17,24,39,.18);
  transform:translateX(110%);
  transition:transform .25s ease;
  display:flex;
  flex-direction:column;
}

.helpPanel.open{transform:translateX(0);}

.helpHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:22px 22px 16px;
  border-bottom:1px solid #f3f4f6;
  background:linear-gradient(180deg,#fff7ed,#fff);
}

.helpHeader h2{margin:0;font-size:24px;}

.helpCloseBtn{
  width:40px;
  height:40px;
  border-radius:50%;
  padding:0;
  font-size:26px;
  line-height:1;
  background:#fff;
  color:#9a3412;
  border:1px solid #fed7aa;
  box-shadow:none;
}

.helpContent{
  padding:18px 22px 28px;
  overflow:auto;
}

.helpBlock{
  padding:16px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  margin-bottom:14px;
}

.helpBlock h3{margin:0 0 10px;font-size:18px;}
.helpBlock p{margin:0;color:#4b5563;line-height:1.55;}
.helpBlock ol{margin:0;padding-left:20px;color:#4b5563;line-height:1.6;}
.helpBlock li{margin:6px 0;}
.helpNote{
  margin-top:12px!important;
  padding:10px 12px;
  border-radius:12px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412!important;
  font-weight:700;
}

.faq details{
  border-top:1px solid #f3f4f6;
  padding:12px 0;
}

.faq details:first-of-type{border-top:0;}
.faq summary{cursor:pointer;font-weight:850;color:#111827;}
.faq details p{margin-top:8px;}

body.helpOpen{overflow:hidden;}

@media(max-width:560px){
  .helpFloatingBtn{
    right:14px;
    bottom:14px;
    padding:12px 15px;
  }
  .helpHeader{padding:18px 18px 14px;}
  .helpContent{padding:14px 16px 24px;}
}

/* vHelpFix: robust mobile help drawer so it does not break the page layout */
.helpFloatingBtn{
  position:fixed !important;
  right:22px !important;
  bottom:22px !important;
  z-index:120 !important;
}
.helpOverlay{
  position:fixed !important;
  inset:0 !important;
  z-index:130 !important;
}
.helpPanel{
  position:fixed !important;
  top:0 !important;
  right:0 !important;
  bottom:0 !important;
  left:auto !important;
  width:min(430px,92vw) !important;
  height:100dvh !important;
  z-index:140 !important;
  transform:translateX(110%) !important;
  visibility:hidden;
  pointer-events:none;
}
.helpPanel.open{
  transform:translateX(0) !important;
  visibility:visible;
  pointer-events:auto;
}

@media(max-width:640px){
  .helpFloatingBtn{
    right:14px !important;
    bottom:14px !important;
    padding:11px 14px !important;
    border-radius:999px !important;
    box-shadow:0 12px 28px rgba(17,24,39,.18) !important;
  }

  .helpPanel{
    top:8px !important;
    right:8px !important;
    bottom:8px !important;
    left:8px !important;
    width:auto !important;
    height:auto !important;
    max-height:calc(100dvh - 16px) !important;
    border:1px solid #fed7aa !important;
    border-radius:24px !important;
    transform:translateY(110%) !important;
    overflow:hidden !important;
  }

  .helpPanel.open{
    transform:translateY(0) !important;
  }

  .helpHeader{
    position:sticky !important;
    top:0 !important;
    z-index:2 !important;
    align-items:center !important;
    padding:16px !important;
  }

  .helpHeader h2{
    font-size:20px !important;
    line-height:1.15 !important;
  }

  .helpCloseBtn{
    flex:0 0 38px !important;
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
  }

  .helpContent{
    padding:14px 14px 22px !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .helpBlock{
    padding:14px !important;
    border-radius:16px !important;
  }

  body.helpOpen .app{
    pointer-events:none;
  }

  body.helpOpen .helpPanel,
  body.helpOpen .helpOverlay,
  body.helpOpen .helpFloatingBtn{
    pointer-events:auto;
  }
}


/* Refresh loading animation */
.pollRefreshBtn.isLoading,
.liveRefreshBtn.isLoading,
.pollRefreshBtn:disabled,
.liveRefreshBtn:disabled{
  opacity:.78;
  cursor:not-allowed;
  pointer-events:none;
}

.refreshSpinner{
  width:14px;
  height:14px;
  border:2px solid currentColor;
  border-top-color:transparent;
  border-radius:50%;
  display:inline-block;
  animation:refreshSpin .75s linear infinite;
}

@keyframes refreshSpin{
  to{ transform:rotate(360deg); }
}


.pollRefreshBtn,
.liveRefreshBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

/* v1.0 polish: app footer */
.appFooter {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  padding: 18px 8px 8px;
  font-size: 14px;
}


/* v1.1 mobile Help & FAQ compact button */
.helpFloatingBtn{
  transition: transform .2s ease, box-shadow .2s ease, width .2s ease, padding .2s ease;
}
.helpFloatingBtn:hover{
  transform: translateY(-1px);
}
.helpFloatingBtn.helpIsOpen{
  background:#111827 !important;
  color:#fff !important;
  border-color:#111827 !important;
}

@media(max-width:640px){
  .helpFloatingBtn{
    right:12px !important;
    bottom:12px !important;
    width:auto !important;
    min-width:112px !important;
    max-width:140px !important;
    height:46px !important;
    padding:0 14px !important;
    font-size:15px !important;
    line-height:1 !important;
    gap:6px !important;
    border-radius:999px !important;
    box-shadow:0 10px 24px rgba(17,24,39,.20) !important;
    white-space:nowrap !important;
  }

  .helpFloatingBtn.helpIsOpen{
    min-width:108px !important;
    max-width:128px !important;
  }

  body{
    padding-bottom:18px;
  }

  .footer,
  footer{
    padding-bottom:58px !important;
  }

  .helpPanel{
    transition: transform .28s ease, visibility .28s ease !important;
  }
}

@media(max-width:380px){
  .helpFloatingBtn{
    min-width:96px !important;
    max-width:118px !important;
    height:42px !important;
    padding:0 12px !important;
    font-size:14px !important;
  }
}

/* v1.2 Mobile professional UI polish - keeps existing colour palette */
@media (max-width: 640px){
  html{scroll-behavior:smooth;}
  body{
    background:linear-gradient(180deg,#fff7ed 0,#f7f8fb 210px) !important;
  }
  .app{
    width:100%;
    max-width:480px;
    margin:0 auto;
    padding:10px 10px calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .hero{
    margin:6px 0 12px !important;
    padding:20px 18px !important;
    border-radius:24px !important;
    box-shadow:0 12px 28px rgba(194,65,12,.16) !important;
  }
  .hero h1{
    font-size:34px !important;
    line-height:1.02 !important;
    letter-spacing:-.04em;
    margin:6px 0 10px !important;
  }
  .hero .subtext{
    font-size:15px !important;
    line-height:1.38 !important;
    margin:0;
  }
  .eyebrow{
    font-size:11px !important;
    letter-spacing:.16em !important;
  }

  .pageTabs{
    position:sticky !important;
    top:8px !important;
    z-index:50 !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:6px !important;
    padding:6px !important;
    margin:0 0 12px !important;
    border-radius:20px !important;
    background:rgba(255,255,255,.92) !important;
    box-shadow:0 10px 26px rgba(17,24,39,.08) !important;
    backdrop-filter:blur(14px) !important;
  }
  .tabBtn{
    min-height:42px !important;
    padding:9px 6px !important;
    border-radius:15px !important;
    font-size:12px !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }

  .card{
    padding:16px !important;
    border-radius:22px !important;
    margin-bottom:14px !important;
    box-shadow:0 12px 30px rgba(17,24,39,.07) !important;
  }
  .sectionTitle{
    gap:10px !important;
    margin-bottom:14px !important;
  }
  .sectionTitle h2{
    font-size:24px !important;
    line-height:1.12 !important;
    letter-spacing:-.03em;
  }
  .sectionTitle .muted,
  .muted{
    font-size:15px !important;
    line-height:1.35 !important;
  }

  input,select,textarea{
    min-height:50px !important;
    border-radius:16px !important;
    padding:13px 15px !important;
    font-size:16px !important;
  }
  textarea{min-height:96px !important;}
  form{gap:12px !important;}
  label{font-size:14px !important;}
  button,.whatsappBtn{
    min-height:46px !important;
    border-radius:16px !important;
    font-size:15px !important;
  }

  .radioGroup{
    gap:10px !important;
  }
  .radioGroup label{
    min-height:52px !important;
    border-radius:16px !important;
    padding:13px 14px !important;
  }

  .pollCard .sectionTitle{
    padding-right:96px !important;
  }
  .pollRefreshBtn{
    min-height:38px !important;
    padding:8px 12px !important;
    font-size:12px !important;
    box-shadow:0 8px 18px rgba(194,65,12,.12) !important;
  }
  .pollSummary{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    margin:12px 0 !important;
  }
  .summaryCard{
    min-height:72px !important;
    padding:12px 14px !important;
    border-radius:18px !important;
  }
  .summaryCard strong{
    font-size:28px !important;
  }

  .pollVoteBox{
    padding:14px !important;
    gap:12px !important;
    border-radius:20px !important;
    margin:12px 0 14px !important;
  }
  .voteChoice{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .choice{
    min-height:54px !important;
    padding:12px !important;
    border-radius:16px !important;
  }
  #pollVoteStatus:empty{display:none !important;}

  .pollResultLists{
    gap:12px !important;
  }
  .resultList{
    border-radius:20px !important;
    padding:15px !important;
    min-height:108px !important;
  }
  .resultList h3{
    font-size:17px !important;
    margin-bottom:12px !important;
  }
  .nameChip{
    padding:8px 12px !important;
    font-size:13px !important;
  }

  .whatsappReminderCard .sectionTitle h2{
    font-size:24px !important;
  }
  .whatsappReminderCard{
    margin-bottom:16px !important;
  }

  .liveListActions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .liveRefreshBtn,
  .liveListActions .danger{
    width:100% !important;
  }
  .bookingCards{
    gap:12px !important;
  }
  .booking{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:16px !important;
    border-radius:20px !important;
    box-shadow:0 8px 22px rgba(17,24,39,.04) !important;
  }
  .datePill{
    font-size:22px !important;
    letter-spacing:-.02em;
  }
  .timePill{
    font-size:14px !important;
  }
  .booking h3{
    font-size:19px !important;
    line-height:1.2 !important;
  }
  .meta{
    gap:7px !important;
  }
  .chip{
    font-size:12px !important;
    padding:6px 9px !important;
  }
  .actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    width:100% !important;
  }
  .actions button{
    width:100% !important;
  }

  .helpFloatingBtn{
    height:44px !important;
    min-width:98px !important;
    max-width:116px !important;
    right:12px !important;
    bottom:12px !important;
    font-size:14px !important;
  }
  .appFooter{
    padding:12px 90px 6px 8px !important;
    font-size:12px !important;
    text-align:left !important;
  }
}

@media (max-width: 370px){
  .hero h1{font-size:31px !important;}
  .tabBtn{font-size:11px !important;padding:8px 4px !important;}
  .sectionTitle h2{font-size:22px !important;}
  .pollCard .sectionTitle{padding-right:88px !important;}
  .pollRefreshBtn{padding:7px 10px !important;}
}

/* v1.3: Compact mobile poll controls */
@media(max-width:800px){
  .pollVoteBox{
    padding:12px !important;
    gap:9px !important;
    margin:10px 0 12px !important;
    border-radius:18px !important;
  }

  .pollVoteBox label[for="pollPlayer"]{
    margin-bottom:2px !important;
    font-size:14px !important;
  }

  .pollVoteBox select{
    min-height:46px !important;
    padding:11px 14px !important;
    border-radius:15px !important;
  }

  .voteChoice{
    gap:8px !important;
    margin-top:2px !important;
  }

  .choice{
    min-height:46px !important;
    padding:8px 10px !important;
    border-radius:15px !important;
    font-size:15px !important;
    gap:7px !important;
  }

  .choice input[type="radio"]{
    width:17px !important;
    height:17px !important;
  }

  .pollVoteBox button{
    min-height:46px !important;
    margin-top:4px !important;
    border-radius:15px !important;
  }

  .pollResultLists{
    margin-top:10px !important;
  }

  .resultList{
    min-height:auto !important;
    padding:14px !important;
  }
}

/* v1.4: Duplicate prevention + professional delete confirmation popup */
body.modalOpen{
  overflow:hidden;
}

.confirmOverlay{
  position:fixed;
  inset:0;
  z-index:1400;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(17,24,39,.46);
  backdrop-filter:blur(8px);
}

.confirmDialog{
  width:min(440px,100%);
  background:rgba(255,255,255,.98);
  border:1px solid #fed7aa;
  border-radius:26px;
  padding:24px;
  box-shadow:0 26px 70px rgba(17,24,39,.25);
  animation:confirmPop .18s ease-out;
}

.confirmIcon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#c2410c;
  font-weight:950;
  font-size:22px;
  margin-bottom:14px;
}

.confirmDialog h2{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.1;
}

.confirmDialog p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
  white-space:pre-line;
}

.confirmActions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:22px;
}

.confirmActions button{
  min-width:118px;
}

.primaryConfirm{
  background:linear-gradient(135deg,#ff8a00,#ffb347);
  color:#fff;
}

@keyframes confirmPop{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

@media(max-width:560px){
  .confirmOverlay{
    align-items:flex-end;
    padding:14px;
  }

  .confirmDialog{
    border-radius:24px;
    padding:20px;
  }

  .confirmDialog h2{
    font-size:22px;
  }

  .confirmActions{
    flex-direction:column-reverse;
  }

  .confirmActions button{
    width:100%;
  }
}
