:root {
  --bg: #f4f6f8; --card: #ffffff; --ink: #1f2933; --muted: #6b7785; --line: #e3e8ee;
  --brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #f0fdfa; --brand-line: #99f6e4;
  --sel: #14b8a6; --sel-ink: #ffffff; --past: #eef1f4; --weekend: #fafbfc;
  --warn-soft: #fff7ed; --warn-line: #fed7aa; --warn-ink: #9a3412;
  --good-soft: #ecfdf5; --good-line: #a7f3d0; --good-ink: #065f46;
  --err: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419; --card: #182028; --ink: #e6edf3; --muted: #93a1b0; --line: #2a3541;
    --brand: #2dd4bf; --brand-ink: #062a26; --brand-soft: #0f2a28; --brand-line: #1c5b54;
    --sel: #14b8a6; --sel-ink: #04201d; --past: #141b22; --weekend: #1b242d;
    --warn-soft: #2b1d10; --warn-line: #6b3d17; --warn-ink: #fdba74;
    --good-soft: #0d2a20; --good-line: #1d5c45; --good-ink: #6ee7b7;
    --err: #f97066;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 880px; margin: 0 auto; padding: 20px 16px 60px; }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.logo { font-weight: 800; font-size: 20px; color: var(--brand); text-decoration: none; }
.logo span { color: var(--ink); }
h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 6px; }
h2 { font-size: 18px; margin: 0 0 4px; }
.lede { color: var(--muted); margin: 0 0 20px; font-size: 17px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.step { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-right: 8px; flex: none; }
.card-h { display: flex; align-items: center; margin-bottom: 12px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
  background: var(--card); color: var(--ink); }
textarea { min-height: 70px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } h1 { font-size: 24px; } }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 700;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand-line); }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn.big { width: 100%; font-size: 18px; padding: 14px; }
.err { color: var(--err); font-weight: 600; margin-top: 10px; min-height: 1em; }
.muted { color: var(--muted); }
.banner { border-radius: 12px; padding: 16px; margin-bottom: 16px; border: 1px solid; }
.banner.good { background: var(--good-soft); border-color: var(--good-line); color: var(--good-ink); }
.banner.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.banner.info { background: var(--brand-soft); border-color: var(--brand-line); }
.banner .big { font-size: 20px; font-weight: 800; margin: 2px 0 8px; color: var(--ink); }
.meet { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 10px; padding: 12px; margin-top: 10px; word-break: break-word; }
.meet .k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); font-weight: 700; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radios input { margin-top: 4px; }
.radios small { display: block; color: var(--muted); font-size: 13px; }
.copybox { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; }
.copybox input { flex: 1; font-weight: 600; }

/* ---------- time picker grid ---------- */
.pk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pk-bar .range { font-weight: 700; flex: 1; text-align: center; min-width: 140px; }
.pk-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.pk { border-collapse: collapse; width: 100%; min-width: 560px; user-select: none; -webkit-user-select: none; }
table.pk th { font-size: 12px; font-weight: 700; padding: 6px 2px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; }
table.pk th .d { font-size: 16px; display: block; }
table.pk th.wk { color: var(--muted); }
table.pk td { border-top: 1px solid var(--line); height: 26px; padding: 0; }
table.pk td.lbl { font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px; width: 62px; white-space: nowrap; vertical-align: top; }
table.pk tr.half td.lbl { color: transparent; }
table.pk tr.half td { border-top-style: dashed; }
table.pk td.cell { border-left: 1px solid var(--line); cursor: pointer; }
table.pk td.cell.wk { background: var(--weekend); }
table.pk td.cell:hover { background: var(--brand-soft); }
table.pk td.cell.sel { background: var(--sel); }
table.pk td.cell.locked { background: var(--brand-line); cursor: default; }
table.pk td.cell.past { background: var(--past); cursor: default; }
.pk-sum { margin-top: 10px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }

/* ---------- poll answer list ---------- */
.day { margin: 14px 0 6px; font-weight: 800; }
.slot { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; font: inherit; cursor: pointer; }
.slot .box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--line); flex: none; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--sel-ink); }
.slot.on { border-color: var(--sel); background: var(--brand-soft); }
.slot.on .box { background: var(--sel); border-color: var(--sel); }
.slot.new { box-shadow: inset 4px 0 0 var(--warn-line); }
.slot .t { font-weight: 700; flex: 1; }
.slot .who { font-size: 13px; color: var(--muted); text-align: right; }
.slot.all .who { color: var(--good-ink); font-weight: 700; }
.slot:disabled { opacity: .5; cursor: default; }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.person { background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.person.wait { background: transparent; border: 1px dashed var(--line); color: var(--muted); }

/* organizer table */
.grid-scroll { overflow-x: auto; }
table.ans { border-collapse: collapse; font-size: 13px; min-width: 100%; }
table.ans th, table.ans td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; white-space: nowrap; }
table.ans th:first-child, table.ans td:first-child { text-align: left; }
table.ans td.y { background: var(--good-soft); color: var(--good-ink); font-weight: 800; }
table.ans td.n { color: var(--muted); }
table.ans tr.best td { font-weight: 700; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.hidden { display: none !important; }
