:root {
  color-scheme: light;
  --ink: #192a3d;
  --muted: #52637a;
  --line: #d9e0e8;
  --surface: #fff;
  --canvas: #f4f6f9;
  --accent: #ffde7d;
  --accent-hover: #f7cd57;
  --danger: #9f3037;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.35rem, 5vw, 4rem); font-weight: 750; max-width: 15ch; }
h2 { font-size: 1.45rem; }
:focus-visible { outline: 3px solid #426c9d; outline-offset: 3px; }
.container { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 760; font-size: 1.25rem; letter-spacing: -.04em; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 2rem; height: 2rem; font-size: 1.05rem; border-radius: .55rem; background: var(--accent); }
.intro { padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.intro p { color: var(--muted); max-width: 60ch; overflow-wrap: anywhere; }
.intro h1 + p { margin-top: .9rem; font-size: 1.06rem; }
.intro .eyebrow { display: inline-block; margin-bottom: .75rem; color: var(--ink); background: #fff0bf; border-radius: 2rem; padding: .2rem .65rem; font-size: .75rem; font-weight: 700; }
.meeting-description { margin-top: .6rem; white-space: pre-wrap; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); align-items: start; gap: 1.1rem; }
.card { min-width: 0; padding: clamp(1rem, 3vw, 1.7rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1.15rem; box-shadow: 0 2px 5px #192a3d0a; }
.card-header { margin-bottom: 1.25rem; }
.card-header p, .hint, .names { margin-top: .35rem; color: var(--muted); }
.field { display: grid; align-content: start; gap: .4rem; font-size: .9rem; font-weight: 670; min-width: 0; }
.field + .field { margin-top: .9rem; }
.optional { font-size: .8rem; font-weight: 500; color: var(--muted); margin-inline-start: .2em; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]), select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .56rem .68rem;
  border: 1px solid #bac7d6;
  border-radius: .55rem;
  background: white;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 450;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; border: 1px solid transparent; border-radius: .6rem; min-height: 2.8rem; padding: .55rem .88rem; font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.3; text-decoration: none; cursor: pointer; }
.button.small { min-height: 2.35rem; padding-block: .4rem; }
.button.primary { background: var(--accent); border-color: #edc968; }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: var(--surface); border-color: #bac7d6; }
.button.secondary:hover { background: #eef3f8; }
.button.danger { background: #fff; border-color: #e8c8ca; color: var(--danger); }
.button.danger:hover { background: #fce9ea; }
.button:disabled { opacity: .65; cursor: wait; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.timezone { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
.slot-entry { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: end; gap: .55rem; }
.slot-entry .field { margin: 0; }
.slot-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.empty { padding: 1.25rem .8rem; text-align: center; border: 1px dashed #bac7d6; border-radius: .65rem; color: var(--muted); background: var(--canvas); }
.slot-row, .result-row { border: 1px solid var(--line); border-radius: .65rem; padding: .65rem .75rem; overflow-wrap: anywhere; }
.slot-row, .result-summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.slot-row { padding-block: .4rem; }
.icon-button { min-width: 2rem; min-height: 2rem; padding: .15rem; background: #edf2f7; font-size: 1.15rem; }
.icon-button:hover { background: #dce7f1; }
.count { flex: 0 0 auto; font-size: .85rem; font-weight: 700; border-radius: 2rem; padding: .15rem .5rem; background: #edf2f7; }
.count.best { background: #ffecaf; }
.names { font-size: .875rem; }
.share-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .5rem; margin: 0 0 .9rem; }
.response-form + .share-field { margin-top: 1.25rem; }
.hint { font-size: .875rem; }
.text-link { display: inline-block; margin-top: .85rem; text-underline-offset: 3px; font-weight: 650; }
.choices { display: grid; gap: .5rem; min-inline-size: 0; border: 0; margin: 1rem 0 0; padding: 0; }
.choice { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: .65rem; padding: .6rem .72rem; cursor: pointer; overflow-wrap: anywhere; }
.choice:has(:checked) { border-color: #dba927; background: #fff7dc; }
.choice input { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: #35485c; flex: 0 0 auto; }
.error { color: var(--danger); margin-top: .6rem; }
.notice, .confirmation { border: 1px solid #e8c8ca; border-radius: .65rem; background: #fff3f3; color: var(--danger); margin: 1rem 0; padding: .65rem .9rem; }
.confirmation { color: #1d573e; background: #eaf7ee; border-color: #a6d8b8; }
.site-footer { color: var(--muted); font-size: .85rem; margin-top: 2.5rem; padding: 1rem 0 1.6rem; border-top: 1px solid var(--line); }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 1; background: white; padding: .45rem .7rem; }

@media (max-width: 51rem) {
  .editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 25rem) {
  .container { width: calc(100% - 1.5rem); }
  .slot-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .slot-entry .button { justify-self: start; grid-column: span 2; }
}
.poll-type { max-width: 17rem; margin-bottom: .75rem; }
.sort-field { max-width: 15rem; }
#editor > .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: var(--canvas);
  padding: .75rem 0 max(.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
:root { scroll-padding-bottom: 5.5rem; }
