/* ================================================================== */
/*  EURETINA-branded scheduling — IBM Plex Sans, navy / blue / teal.   */
/* ================================================================== */
:root {
  --paper: #eaf0f8;
  --paper-2: #f4f7fc;
  --card: #ffffff;
  --ink: #1b2440;          /* Euretina navy */
  --navy: #2c314c;
  --muted: #64708a;
  --line: #dbe3f0;
  --line-soft: #eaeff7;

  --brand: #1856ed;        /* Euretina blue */
  --brand-dark: #103fb0;
  --brand-glow: rgba(24, 86, 237, .28);

  --teal: #0f9792;         /* Euretina teal */
  --teal-2: #22c7c0;
  --yellow: #facb2d;       /* Euretina yellow */

  /* availability semantics */
  --yes: #0f9792;   --yes-bg: #d7f0ee;   --yes-ink: #0a5c58;
  --maybe: #d97706; --maybe-bg: #fdecca; --maybe-ink: #8a5300;
  --no: #94a3b8;    --no-bg: #f1f5f9;

  --shadow-sm: 0 1px 2px rgba(20, 34, 66, .06);
  --shadow: 0 2px 6px rgba(20, 34, 66, .06), 0 18px 40px rgba(20, 34, 66, .08);
  --shadow-lg: 0 30px 80px rgba(20, 34, 66, .22);
  --radius: 16px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(24,86,237,.10) 0, transparent 58%),
    radial-gradient(900px 480px at -6% 12%, rgba(15,151,146,.10) 0, transparent 60%),
    var(--paper);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .1px;
}
/* faint grain for depth */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
.wrap, header.top { position: relative; z-index: 1; }

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

.wrap { max-width: 880px; margin: 0 auto; padding: 22px 20px 90px; }
.wrap.wide { max-width: 1040px; }

/* ---------- guided stepper ---------- */
.stepper {
  display: flex; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 7px; box-shadow: var(--shadow); margin-bottom: 18px; overflow-x: auto;
}
.step {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 12px; border-radius: 11px; border: 0; background: transparent;
  color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; font-family: inherit;
}
.step .n { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #eef2f9; color: var(--muted); flex: none; transition: background .15s, color .15s; }
.step:hover { color: var(--ink); }
.step.done { color: var(--teal); }
.step.done .n { background: var(--teal); color: #fff; }
.step.active { background: linear-gradient(135deg, var(--brand), #2f6bff); color: #fff; box-shadow: 0 6px 16px var(--brand-glow); }
.step.active .n { background: rgba(255,255,255,.25); color: #fff; }
@media (max-width: 640px) { .step .t { display: none; } .step { flex: 0 0 auto; } }

.create-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.create-main .card { margin-top: 0; margin-bottom: 18px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; }

.summary-rail { position: sticky; top: 18px; }
.summary-rail .card { margin-top: 0; padding: 20px; }
.summary-rail h3 { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.sumrow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sumrow span:first-child { color: var(--muted); }
.sumrow span:last-child { font-weight: 600; text-align: right; color: var(--ink); }
.summary-rail .btn-primary { width: 100%; margin-top: 16px; justify-content: center; }
@media (max-width: 820px) {
  .create-grid { grid-template-columns: 1fr; }
  .summary-rail { position: static; order: -1; }
}

/* ---------- brand header ---------- */
header.top {
  display: flex; align-items: center; gap: 14px;
  max-width: 880px; margin: 0 auto; padding: 26px 20px 8px;
}
header.top .brand-logo { height: 40px; width: auto; display: block; }
header.top .brand-sep { width: 1px; height: 30px; background: var(--line); }
.logo-text { font-weight: 600; font-size: 16px; letter-spacing: -.1px; color: var(--navy); }
.logo-text small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: .2px; }
/* legacy square logo (unused fallback) */
.logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
}

/* ---------- cards & type ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-top: 18px;
}
.card, .day-block { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h1 { font-size: 28px; font-weight: 600; letter-spacing: -.5px; margin: 4px 0 6px; line-height: 1.15; }
h2 {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--brand); margin: 0 0 14px;
}
h2 em, h2 .hint { text-transform: none; letter-spacing: normal; }
h2 em { font-style: normal; color: var(--ink); }
.sub { color: var(--muted); margin: 0 0 6px; }

label { display: block; font-weight: 600; font-size: 13.5px; margin: 16px 0 6px; color: var(--navy); }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }

input[type=text], input[type=email], input[type=date], input[type=time], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 11px; background: #fcfdff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364708a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px var(--brand-glow);
}
textarea { min-height: 88px; resize: vertical; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }

.opt-row {
  display: grid; grid-template-columns: 1.1fr 0.8fr 0.8fr 1.15fr auto auto; gap: 8px; align-items: end;
  margin-bottom: 10px;
}
.opt-row .field-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.opt-row select { padding: 11px 30px 11px 12px; font-size: 14px; }
/* reclaim space: drop the native calendar/clock picker icons */
.opt-row input[type=date]::-webkit-calendar-picker-indicator,
.opt-row input[type=time]::-webkit-calendar-picker-indicator { display: none; }
.opt-row input[type=date], .opt-row input[type=time] { padding-right: 10px; }
@media (max-width: 620px) {
  .opt-row { grid-template-columns: 1fr 1fr; }
  .opt-row .icon-x { justify-self: end; }
}

/* ---- per-row "Timezone check" rolling switch ---- */
.tzcheck { position: relative; display: flex; flex-direction: column; align-items: center; }
.tzcheck-knob {
  width: 36px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line);
  background: linear-gradient(#ffffff, #eaf0f8); color: var(--muted);
  display: grid; place-items: center; cursor: ns-resize; touch-action: none;
  -webkit-user-select: none; user-select: none; font-size: 15px; line-height: 1;
}
.tzcheck-knob:hover { border-color: var(--brand); color: var(--brand); }
.tzcheck-knob.active { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.tzcheck-knob .kb-ticks { font-size: 9px; letter-spacing: 2px; line-height: .9; }
.tz-popout {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-lg); padding: 12px 14px; z-index: 40; text-align: center;
}
.tz-popout::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: #fff;
  filter: drop-shadow(0 1px 0 var(--line));
}
.tz-popout-zone { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 3px; line-height: 1.25; }
.tz-popout-date { font-size: 13px; font-weight: 600; color: var(--navy); }
.tz-popout-time { font-size: 22px; font-weight: 800; letter-spacing: .3px; margin-top: 2px; }
.tz-popout-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
@media (max-width: 620px) { .tz-popout { min-width: 150px; } }

/* ---------- buttons ---------- */
button {
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; border-radius: 11px; padding: 12px 20px;
  transition: transform .06s, background .15s, box-shadow .15s, border-color .15s, color .15s;
}
button:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #2f6bff); color: #fff;
  box-shadow: 0 6px 18px var(--brand-glow);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-dark), #245bf0); }
.btn-primary:disabled { opacity: .55; cursor: progress; }
.btn-ghost { background: #e7edfb; color: var(--brand); }
.btn-ghost:hover { background: #dbe6fc; }
.btn-soft { background: #eef2f8; color: var(--navy); border: 1.5px solid var(--line); }
.btn-soft:hover { background: #e4ebf5; }
.btn-danger-soft { background: #fdeaea; color: #b42323; padding: 6px 12px; font-size: 13px; }
.icon-x { background: none; color: var(--muted); padding: 8px 10px; font-size: 18px; line-height: 1; }
.icon-x:hover { color: #b42323; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }

.note {
  margin-top: 14px; padding: 13px 15px; border-radius: 12px; font-size: 14px;
  background: var(--maybe-bg); color: var(--maybe-ink); border: 1px solid #f4d68a;
}
.error { background: #fdeaea; color: #991b1b; border-color: #f4b4b4; }
.success { background: var(--yes-bg); color: var(--yes-ink); border-color: #a6ddd8; }

/* ---------- share / success panel ---------- */
.linkbox { display: flex; gap: 8px; margin: 8px 0; }
.linkbox input { font-size: 13px; background: var(--paper-2); }

/* ---------- name chips (required participants) ---------- */
.name-add { display: flex; gap: 8px; margin-top: 6px; }
.name-add input { flex: 1; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: #eef3ff; color: var(--brand); border: 1.5px solid #cfddff;
}
.chip-x {
  background: rgba(24,86,237,.12); color: var(--brand); border-radius: 50%;
  width: 20px; height: 20px; padding: 0; font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.chip-x:hover { background: var(--brand); color: #fff; }
.chip.required { background: #fff7dd; color: #7a5c00; border-color: #f2dc8a; }

/* ---------- session length picker ---------- */
.dur-picker { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.dur-chip {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
}
.dur-chip:hover { border-color: var(--brand); }
.dur-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 12px var(--brand-glow); }
.dur-custom { display: inline-flex; align-items: center; gap: 6px; }
.dur-custom input { width: 90px; padding: 9px 11px; }

.gen-row { display: flex; gap: 8px; margin-top: 6px; }
.gen-row input { flex: 1; }
@media (max-width: 560px) { .gen-row { flex-direction: column; } .gen-row .btn-primary { width: 100%; } }
.opts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

/* max slots */
.max-slots { display: inline-flex; align-items: center; gap: 8px; }
.max-slots input { width: 74px; padding: 8px 10px; text-align: center; }

/* mode tabs */
.mode-tabs { display: flex; gap: 5px; margin-top: 12px; background: #e9eef6; padding: 5px; border-radius: 13px; flex-wrap: wrap; }
.mode-tab { flex: 1 1 auto; background: transparent; color: var(--muted); border-radius: 9px; padding: 10px 12px; font-size: 14px; white-space: nowrap; }
.mode-tab:hover { color: var(--ink); }
.mode-tab.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.mode-panel { margin-top: 4px; }

/* calendar */
.calendar { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 8px; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 700; color: var(--navy); }
.cal-nav { background: #eef2f8; color: var(--navy); border-radius: 9px; padding: 6px 14px; font-size: 18px; line-height: 1; }
.cal-nav:hover { background: #e2e9f4; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 2px 0 4px; text-transform: uppercase; letter-spacing: .4px; }
.cal-cell { aspect-ratio: 1 / 1; border: 1.5px solid transparent; border-radius: 10px; background: #f5f8fe; color: var(--ink); font-weight: 600; font-size: 14px; position: relative; display: grid; place-items: center; padding: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
.cal-grid { touch-action: none; }
.cal-cell.empty { background: transparent; }
.cal-cell.past { opacity: .3; cursor: not-allowed; }
.cal-cell:not(.past):not(.empty):hover { border-color: var(--brand); }
.cal-cell.sel { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 12px var(--brand-glow); }
.cal-dot { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.cal-cell.sel .cal-dot { background: #fff; }
.cal-controls { display: flex; gap: 8px; align-items: end; margin-top: 14px; flex-wrap: wrap; }
.cal-controls > div { flex: 1; min-width: 92px; }
.cal-controls .btn-primary { flex: 0 0 auto; }
.cal-range { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.cal-range .icon-x { align-self: end; }
.cal-copy { display: flex; gap: 8px; align-items: end; margin-bottom: 10px; }
.cal-copy > div { flex: 1; min-width: 120px; }
.clipboard-bar {
  background: #eef3ff; border: 1px solid #cfddff; color: var(--navy);
  border-radius: 11px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 12px;
}
.link-btn { background: none; padding: 0 2px; color: var(--brand); font-weight: 700; text-decoration: underline; font-size: 13.5px; }

/* same-day colour bar on each block row */
.opt-row { border-left: 4px solid var(--day-color, transparent); padding-left: 10px; border-radius: 8px; transition: border-color .2s; }

hr.sep { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
footer.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; }

/* ---------- voting page polish ---------- */
.poll-header .eyebrow { color: var(--teal); }
.poll-header h1 { font-size: 27px; margin-top: 2px; }

.best-banner {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: linear-gradient(120deg, #0f9792, #17b3ac 55%, #1856ed);
  color: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 12px 30px rgba(15,151,146,.28);
}
.best-banner .bb-ic { font-size: 26px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.best-banner .bb-main { flex: 1; }
.best-banner .bb-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .85; }
.best-banner .bb-when { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.best-banner .bb-count { background: rgba(255,255,255,.18); border-radius: 999px; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.best-banner .bb-count strong { font-size: 17px; }

/* ---------- results grid ---------- */
.poll-meta { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.poll-meta strong { color: var(--ink); }
.badge-required {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: #7a5c00; background: #fff3ce; border: 1px solid #f0d987; border-radius: 999px;
  padding: 3px 9px; margin-left: 6px; vertical-align: middle;
}

.grid-scroll { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; }
table.grid { border-collapse: collapse; width: 100%; min-width: 480px; }
table.grid th, table.grid td {
  border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
  padding: 11px 13px; text-align: center;
}
table.grid th:last-child, table.grid td:last-child { border-right: none; }
table.grid tr:last-child td { border-bottom: none; }
table.grid thead th { position: sticky; top: 0; background: var(--paper-2); font-size: 13px; white-space: nowrap; }
table.grid th.name-col, table.grid td.name-col {
  text-align: left; position: sticky; left: 0; background: #fff; min-width: 150px; font-weight: 600;
  border-right: 2px solid var(--line);
}
table.grid thead th.name-col { background: var(--paper-2); }
.opt-head .date { font-weight: 700; }
.opt-head .time { font-weight: 500; color: var(--muted); font-size: 12px; }
.opt-head.best { background: #fff6d6 !important; box-shadow: inset 0 -3px 0 var(--yellow); }
.opt-head.best .crown { color: #9a7400; font-size: 11px; font-weight: 700; display: block; text-transform: uppercase; letter-spacing: .5px; }
.opt-head.ruledout { opacity: .5; }
.opt-head.ruledout .date { text-decoration: line-through; }

.cell-yes { background: var(--yes-bg); color: var(--yes-ink); font-weight: 800; }
.cell-no { color: #cbd5e1; }
.cell-ifneedbe { background: var(--maybe-bg); color: var(--maybe-ink); font-weight: 800; }
.totals td { background: var(--paper-2); font-weight: 700; }
.totals .name-col { background: var(--paper-2); }
.tcount { font-size: 15px; }
.ifn { color: var(--maybe); font-weight: 500; font-size: 12px; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.muted-note { color: var(--muted); font-size: 13px; margin-top: 16px; }
.comment { font-size: 12px; color: var(--muted); font-style: italic; }

/* ================================================================== */
/*  Voting: day-grouped, drag-to-paint chips                          */
/* ================================================================== */
.vote-days { display: grid; gap: 14px; margin-top: 10px; }
.day-block { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.day-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 15px; background: linear-gradient(180deg, #f6f9fe, #eef3fb);
  border-bottom: 1px solid var(--line);
}
.day-title { font-weight: 700; font-size: 15px; color: var(--navy); }
.day-quick { display: flex; gap: 6px; }
.day-btn {
  padding: 7px 13px; font-size: 12.5px; font-weight: 600; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
}
.day-btn.day-yes:hover { background: var(--yes-bg); color: var(--yes-ink); border-color: var(--yes); }
.day-btn.day-no:hover { background: var(--no-bg); color: #475569; border-color: #b7c1d1; }

.slot-chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 14px 15px; touch-action: pan-y; }
.slot-chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 50px; padding: 9px 15px; border-radius: 13px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 600; font-size: 15px; cursor: pointer;
  -webkit-user-select: none; user-select: none; touch-action: none;
  transition: background .14s, border-color .14s, color .14s, transform .08s, box-shadow .14s;
}
.slot-chip .chip-mark {
  width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; flex: 0 0 auto; transition: background .14s, color .14s, transform .18s;
}
.slot-chip.state-no { color: var(--muted); background: var(--no-bg); }
.slot-chip.state-no .chip-mark { background: #dbe3ee; color: #93a1b5; }
.slot-chip.state-yes { background: var(--yes-bg); border-color: var(--yes); color: var(--yes-ink); box-shadow: 0 4px 14px rgba(15,151,146,.18); }
.slot-chip.state-yes .chip-mark { background: var(--yes); color: #fff; transform: scale(1.06); }
.slot-chip.state-ifneedbe { background: var(--maybe-bg); border-color: var(--maybe); color: var(--maybe-ink); }
.slot-chip.state-ifneedbe .chip-mark { background: var(--maybe); color: #fff; }
.slot-chip:active { transform: scale(.97); }
.slot-chip.painting { box-shadow: 0 0 0 3px var(--brand-glow); }

/* "drag to mark" helper hint */
.drag-hint {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted);
  background: #eef3ff; border: 1px solid #d6e2ff; border-radius: 999px; padding: 5px 12px; margin: 2px 0 4px;
}
.drag-hint svg { width: 15px; height: 15px; }

.no-slots-left {
  text-align: center; padding: 26px; border: 1.5px dashed var(--line); border-radius: 14px;
  color: var(--muted); background: var(--paper-2);
}

/* ================================================================== */
/*  Modals                                                            */
/* ================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(20, 30, 60, .5); backdrop-filter: blur(4px);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 460px; background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 28px 26px; border: 1px solid var(--line);
  animation: pop .32s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal h2 { color: var(--brand); }
.modal h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
.modal .modal-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 14px;
}
.modal-icon.warn { background: var(--maybe-bg); }
.modal-icon.who { background: #e7eeff; }
.modal p { color: var(--muted); margin: 0 0 4px; }
.name-picker { display: grid; gap: 9px; margin: 18px 0 6px; }
.name-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fcfdff; color: var(--ink); font-size: 16px; font-weight: 600;
}
.name-pick:hover { border-color: var(--brand); background: #f5f8ff; transform: translateX(2px); }
.name-pick .req-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9a7400; background: #fff3ce; border: 1px solid #f0d987; border-radius: 999px; padding: 2px 8px; }
.name-pick.other { font-weight: 500; color: var(--muted); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.modal-actions .btn-primary, .modal-actions .btn-soft { flex: 1; justify-content: center; text-align: center; }

/* ---------- voting results grid: refined ---------- */
.grid-scroll { box-shadow: var(--shadow-sm); }
table.grid thead th { background: linear-gradient(180deg, #f6f9fe, #eef3fb); font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--navy); padding-top: 12px; padding-bottom: 12px; }
table.grid tbody tr:hover td { background: #f8fbff; }
table.grid tbody tr:hover td.name-col { background: #f8fbff; }
table.grid td { transition: background .12s; }
.opt-head .date { font-size: 13px; }
.cell-yes, .cell-ifneedbe { border-radius: 0; }
.totals td { border-top: 2px solid var(--line); }
.badge-required { box-shadow: 0 1px 2px rgba(20,34,66,.08); }

/* legend as soft pills */
.legend { gap: 10px; margin-top: 14px; }
.legend span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 600; color: var(--navy); }
.legend .dot { width: 11px; height: 11px; }

/* availability card breathing room */
.vote-days { gap: 16px; }
.drag-hint { background: #eef3ff; border-color: #d6e2ff; }

/* ---------- confirmed time + add-to-calendar ---------- */
.confirmed-card { border-color: #a6ddd8; box-shadow: 0 12px 30px rgba(15,151,146,.12); }
.confirmed-card h1 { color: var(--yes-ink); margin-top: 2px; }
.cal-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cal-btns a { text-decoration: none; }

/* ---------- mobile polish ---------- */
@media (max-width: 620px) {
  /* stack name/email (and similar pairs) full-width so nothing clips */
  .row { flex-direction: column; gap: 2px; }
  /* tighter, clearly-separated time-block rows */
  .opt-row { gap: 6px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
  .opt-row .field-label { margin-bottom: 2px; }
  .opt-row input, .opt-row select { padding: 9px 10px; font-size: 14px; }
  .opt-row .tzcheck { align-self: end; }
  /* smaller, less obtrusive tour button clear of the submit button */
  .tour-fab { width: 40px; height: 40px; font-size: 18px; right: 14px; bottom: 14px; opacity: .9; }
  .cal-btns a { flex: 1; text-align: center; }
}

/* legend shown above the slots */
.legend-top { margin: 2px 0 10px; }

/* attendees Yes/No choice */
.attend-choice { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.attend-opt {
  flex: 1 1 220px; text-align: left; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fcfdff; color: var(--ink); font-weight: 600; font-size: 15px;
}
.attend-opt:hover { border-color: var(--brand); }
.attend-opt.on { border-color: var(--brand); background: #eef3ff; color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }

/* weekday next to a block's date */
.opt-dow { color: var(--teal); font-weight: 700; text-transform: none; letter-spacing: 0; }

/* missing-info modal list */
.miss-list { margin: 8px 0 0; padding-left: 20px; color: var(--ink); }
.miss-list li { margin: 5px 0; }
