/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 960px;
  /* Heatmap palette */
  --heat-0: #ffffff;
  --heat-1: #fef9c3;
  --heat-2: #d9f99d;
  --heat-3: #86efac;
  --heat-4: #22c55e;
  --heat-5: #15803d;
}

html {
  font-family: var(--font-stack);
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--green-600);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ─── Header / Nav ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

nav#main-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  background: var(--green-50);
  color: var(--green-700);
  text-decoration: none;
}
.nav-coffee {
  background: var(--green-50) !important;
  color: var(--green-700) !important;
}
.nav-coffee::before {
  content: "\2615 ";
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 8px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ─── Main Content ─── */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ─── Footer ─── */
footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 24px 16px;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p {
  color: var(--gray-500);
  font-size: 0.85rem;
}
footer nav { display: flex; gap: 16px; }
footer nav a {
  color: var(--gray-500);
  font-size: 0.85rem;
}
footer nav a:hover { color: var(--green-600); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-stack);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--green-500);
  color: #fff;
}
.btn-primary:hover { background: var(--green-600); }
.btn-primary:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-secondary:hover { background: var(--gray-200); }

.btn-outline {
  background: #fff;
  color: var(--green-600);
  border: 1.5px solid var(--green-500);
}
.btn-outline:hover { background: var(--green-50); }

.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
}
.btn-danger:hover { background: #fee2e2; }

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group small {
  display: block;
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-stack);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
textarea { resize: vertical; min-height: 80px; }

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--green-500); }
.toggle input:checked + .toggle-slider::after { transform: translateX(20px); }

/* ─── Cards ─── */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero h1 span { color: var(--green-500); }
.hero p {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto 32px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.feature-card {
  text-align: center;
  padding: 20px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}
.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 32px 0 24px; }
  .features { grid-template-columns: 1fr; }
}

/* ─── Create Poll Form ─── */
.create-form {
  max-width: 560px;
  margin: 0 auto;
}
.create-form h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gray-900);
}

/* Mini Calendar */
.mini-cal {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
}
.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--gray-50);
}
.mini-cal-header button {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: background 0.15s;
}
.mini-cal-header button:hover { background: var(--gray-200); }
.mini-cal-header span { font-weight: 600; font-size: 0.95rem; }
.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 8px 8px;
  gap: 2px;
}
.mini-cal-grid .day-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  padding: 4px 0;
}
.mini-cal-grid .day-cell {
  text-align: center;
  padding: 0;
  width: 100%;
  aspect-ratio: 1;
  border: none;
  background: none;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
  min-width: 32px;
  min-height: 32px;
}
.mini-cal-grid .day-cell:hover { background: var(--green-50); }
.mini-cal-grid .day-cell.selected {
  background: var(--green-500);
  color: #fff;
  font-weight: 600;
}
.mini-cal-grid .day-cell.today {
  border: 2px solid var(--green-500);
}
.mini-cal-grid .day-cell.disabled {
  color: var(--gray-300);
  cursor: not-allowed;
}
.mini-cal-grid .day-cell.disabled:hover { background: none; }
.selected-dates {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}
.date-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-600);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0 0 2px;
}

/* Time window */
.time-row {
  display: flex;
  gap: 12px;
  align-items: end;
}
.time-row .form-group { flex: 1; }

/* ─── Poll Created Modal ─── */
.poll-created-info {
  background: var(--green-50);
  border: 1.5px solid var(--green-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.poll-created-info h3 {
  color: var(--green-800);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.link-box input {
  flex: 1;
  background: #fff;
  font-size: 0.85rem;
}
.link-box .btn { white-space: nowrap; }
.admin-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #92400e;
  margin-top: 10px;
}

/* ─── Availability Grid ─── */
.grid-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 60vh;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
  position: relative;
  /* Firefox visible scrollbars */
  scrollbar-width: thin;
  scrollbar-color: #aaa #f1f1f1;
}
/* WebKit visible scrollbars */
.grid-container::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.grid-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}
.grid-container::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 5px;
}
.grid-container::-webkit-scrollbar-thumb:hover {
  background: #888;
}
/* Scroll shadow hint on the right edge */
.grid-container.has-scroll-right {
  border-right: 3px solid var(--gray-200);
  box-shadow: inset -12px 0 8px -8px rgba(0,0,0,0.06);
}
.availability-grid {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
}
.availability-grid th,
.availability-grid td {
  text-align: center;
  white-space: nowrap;
}
.availability-grid thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: 8px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
  min-width: 64px;
}
.availability-grid thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  box-shadow: 2px 0 4px rgba(0,0,0,0.04);
}
.availability-grid tbody td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  padding: 2px 10px 2px 4px;
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--gray-200);
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  box-shadow: 2px 0 4px rgba(0,0,0,0.04);
}
.availability-grid .slot-cell {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 2px;
}
.availability-grid .slot-btn {
  width: 100%;
  height: 100%;
  min-width: 40px;
  min-height: 40px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
  position: relative;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.availability-grid .slot-btn:hover {
  border-color: var(--green-400);
}
.availability-grid .slot-btn:active {
  background: var(--green-100);
}
.availability-grid .slot-btn.selected {
  background: var(--green-400) !important;
  border-color: var(--green-500) !important;
}
.availability-grid .slot-btn.selected:hover,
.availability-grid .slot-btn.selected:active {
  background: var(--green-500) !important;
}

/* Hour divider row */
.availability-grid .hour-divider td {
  border-top: 2px solid var(--gray-200);
}

/* Heatmap cells */
.availability-grid .slot-btn.heat-0 { background: var(--heat-0); }
.availability-grid .slot-btn.heat-1 { background: var(--heat-1); border-color: #fef08a; }
.availability-grid .slot-btn.heat-2 { background: var(--heat-2); border-color: #bef264; }
.availability-grid .slot-btn.heat-3 { background: var(--heat-3); border-color: var(--green-300); }
.availability-grid .slot-btn.heat-4 { background: var(--heat-4); border-color: var(--green-600); color: #fff; }
.availability-grid .slot-btn.heat-5 { background: var(--heat-5); border-color: var(--green-800); color: #fff; }

/* Confirmed slot */
.availability-grid .slot-btn.confirmed {
  background: var(--green-600);
  border-color: var(--green-800);
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

/* Tooltip */
.grid-tooltip {
  position: fixed;
  z-index: 200;
  background: var(--gray-800);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  max-width: 220px;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.15s;
}
.grid-tooltip.visible { opacity: 1; }

/* ─── Best Times ─── */
.best-times {
  margin-bottom: 24px;
}
.best-times h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.best-time-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.best-time-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}
.best-time-count {
  font-size: 0.85rem;
  color: var(--green-700);
  font-weight: 500;
}
.best-time-item .btn { margin-left: auto; }

/* ─── Respond Section ─── */
.respond-section {
  margin-bottom: 24px;
}
.respond-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.respond-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.respond-bar .form-group { margin-bottom: 0; flex: 1; min-width: 180px; }

.tz-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tz-info select {
  min-height: 36px;
  padding: 4px 8px;
  font-size: 0.85rem;
  max-width: 340px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
}

/* ─── Responses List ─── */
.responses-list {
  margin-top: 24px;
}
.responses-list h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.response-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.85rem;
  margin: 0 6px 6px 0;
}
.response-chip .delete-response {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 1.1rem;
  padding: 0 0 0 2px;
  line-height: 1;
}
.response-chip .delete-response:hover { color: #dc2626; }

/* ─── Reviews Page ─── */
.reviews-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.aggregate-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}
.aggregate-big {
  text-align: center;
}
.aggregate-big .big-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-600);
  line-height: 1;
}
.aggregate-big .big-label {
  font-size: 0.8rem;
  color: var(--gray-500);
}
.rating-bars { flex: 1; min-width: 200px; }
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}
.rating-bar-row span:first-child {
  width: 14px;
  text-align: right;
  color: var(--gray-600);
}
.rating-bar-track {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--green-500);
  border-radius: 4px;
  transition: width 0.3s;
}
.rating-bar-row span:last-child {
  width: 24px;
  color: var(--gray-500);
  font-size: 0.75rem;
}

.stars { color: #f59e0b; letter-spacing: 1px; }
.stars-input {
  display: flex;
  gap: 4px;
  margin: 4px 0;
}
.stars-input button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--gray-300);
  padding: 2px;
  min-width: 36px;
  min-height: 36px;
  transition: color 0.1s;
}
.stars-input button.active { color: #f59e0b; }
.stars-input button:hover { color: #f59e0b; }

.review-card {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.review-card:last-child { border-bottom: none; }
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.review-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.review-date {
  font-size: 0.8rem;
  color: var(--gray-400);
}
.review-comment {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.review-form {
  margin-top: 32px;
}
.review-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ─── Stats Page ─── */
.stats-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.stats-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  text-align: center;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-600);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.chart-section {
  margin-bottom: 32px;
}
.chart-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.chart-wrap {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow-x: auto;
}
.chart-wrap canvas {
  width: 100%;
  height: 200px;
  display: block;
}

@media (max-width: 640px) {
  .stats-summary { grid-template-columns: 1fr; }
}

/* ─── About Page ─── */
.about-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-page section {
  margin-bottom: 28px;
}
.about-page section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
}
.about-page p, .about-page li {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.about-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* ─── Timezone Select ─── */
.tz-select-wrap {
  position: relative;
}
.tz-select-wrap input[type="text"] {
  width: 100%;
}
.tz-dropdown {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1.5px solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  display: none;
}
.tz-dropdown.open {
  display: block;
}
.tz-dropdown-item {
  padding: 8px 12px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.tz-dropdown-item:hover,
.tz-dropdown-item.highlighted {
  background: var(--green-50);
  color: var(--green-700);
}
.tz-dropdown-item:last-child {
  border-bottom: none;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--gray-500);
}

.error-msg {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #dc2626;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.success-msg {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--green-800);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--gray-400);
}
.empty-state p { margin-bottom: 8px; }

/* Calendar confirm modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.confirm-modal-inner {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.confirm-modal-inner h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.confirm-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.confirm-links a,
.confirm-links button {
  min-height: 44px;
}

/* Poll header */
.poll-header {
  margin-bottom: 24px;
}
.poll-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.poll-header p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Heatmap legend */
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 12px 0;
}
.heatmap-legend-block {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--gray-200);
}
