/* All pages, in the Centre for Digital Habits design system's tokens. */
:root {
  /* The Christmas theme's colours; public/themes.js sets another theme's. */
  --blue: #002147; --green: #002147; --ink: #002147; --ink-soft: #2e3f5c; --ink-muted: #56627a;
  --cream: #fbf6ec; --red: #c41e2e; --gold: #d9a441; --mint: #ffe1ad; --mist: #e3e9f2; --haze: #fdebc8;
  --sand: #f3ead8; --tab-track: #ece5d6; --rule: rgba(0, 33, 71, .15); --card-border: rgba(0, 33, 71, .14); --bar: #00142b;
  --white: #ffffff; --error: #b4432e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }
button, select, input { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--green); }
a:hover { color: var(--red); }
.page { max-width: 760px; margin: 0 auto; }
.wide { max-width: 960px; }

.band { background: var(--blue); color: var(--cream); padding: 24px 20px 64px; }
.band .page { display: flex; flex-direction: column; gap: 32px; }
.band .lang-row { display: flex; justify-content: flex-end; }
.eyebrow { font: 500 clamp(19px, 2.6vw, 24px)/1.35 var(--sans); color: var(--mint); max-width: 36ch; text-wrap: balance; }
/* The poll's line over the title, and its slanted title. */
.tagline { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.tagline::before, .tagline::after { content: ""; width: 28px; height: 1px; background: var(--mint); }
.band h1.slant { font-style: italic; letter-spacing: -0.02em; }
.band h1 { font-size: clamp(40px, 8vw, 64px); line-height: 1.02; letter-spacing: -0.03em; margin-top: 14px; }
.band .intro { margin: 20px 0 0; font-size: 18px; line-height: 1.55; max-width: 44ch; white-space: pre-line; }

.select { position: relative; display: inline-block; }
.select select {
  font: 600 15px/1.2 var(--sans); padding: 10px 38px 10px 14px; border-radius: 10px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none; min-width: 180px;
}
.select::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); pointer-events: none;
}
.select.on-green select { background: transparent; color: var(--cream); border-color: rgba(245, 241, 234, .55); min-width: 0; font-size: 14px; }
.select.on-green select option { color: var(--ink); }
.select.on-green::after { color: var(--cream); }

.body { padding: 48px 20px 92px; }
.body .page { display: flex; flex-direction: column; gap: 28px; }
.as { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: 15px; color: var(--ink-soft); }
.body h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.help { font-size: 16px; color: var(--ink-soft); }
.who { display: flex; flex-direction: column; gap: 16px; }
.who .select select { width: 100%; max-width: 360px; font-size: 16px; padding: 13px 40px 13px 14px; }
.self { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }

.input {
  display: block; width: 100%; border: 2px solid var(--card-border); border-radius: 10px; background: #fff;
  padding: 13px 15px; font: 400 18px/1.4 var(--sans); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--green); }
.self .input { flex: 1 1 220px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 2px solid var(--green); background: var(--green); color: var(--cream);
  font: 600 16px/1 var(--sans); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: filter .15s, background-color .15s, color .15s;
}
.btn:hover { filter: brightness(1.15); color: var(--cream); }
.btn.outline { background: transparent; color: var(--green); }
.btn.outline:hover { background: var(--green); color: var(--cream); filter: none; }
.btn.compact { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; filter: none; }
.x { border: 0; background: transparent; cursor: pointer; color: var(--ink-muted); font-size: 18px; padding: 2px 8px; }

.dates { display: flex; flex-direction: column; gap: 10px; }
.date-row {
  background: #fff; border: 2px solid var(--card-border);
  border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
}
.date-row .when { display: flex; align-items: center; gap: 16px; flex: 1 1 220px; }
/* A round, slightly tilted date, like a stamp. */
.cal {
  flex: none; width: 68px; height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cream); border: 2px solid var(--green);
  box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px var(--gold); transform: rotate(-4deg);
}
.cal b { font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.cal span { font: 26px/1 var(--serif); color: var(--ink); }
.when .long { font-size: 17px; font-weight: 600; display: block; }
.when .sub { font-size: 15px; color: var(--ink-muted); }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 9999px; background: var(--tab-track); flex: 0 1 auto; }
.seg button {
  min-height: 44px; padding: 0 16px; border-radius: 9999px; border: 0; cursor: pointer; white-space: nowrap;
  font: 600 15px/1 var(--sans); background: transparent; color: var(--ink); transition: background-color .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(27, 61, 74, .16); }
.seg button[aria-pressed="true"][data-vote="y"] { background: var(--green); color: var(--cream); box-shadow: none; }
.seg button[aria-pressed="true"][data-vote="n"] { background: #dcd8d1; color: #4d5a5f; }
.seg button[aria-pressed="true"]::before { content: "✓ "; }
.status { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rule); padding-top: 24px; }
.status b { font-size: 16px; font-weight: 600; }
.status b.done { color: var(--green); }
.status b.error { color: var(--error); }
.status span { font-size: 15px; color: var(--ink-muted); }

/* The host's page */
.host { padding: 56px 20px 92px; background: linear-gradient(180deg, #fdf0d5 0, var(--cream) 320px); min-height: 100vh; }
.host .page { display: flex; flex-direction: column; gap: 48px; }
.host-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.host-head h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.host-head .summary { font-size: 17px; color: var(--ink-soft); display: block; margin-top: 8px; }
.host h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.block { display: flex; flex-direction: column; gap: 16px; }
.card { background: #fff; border: 2px solid var(--card-border); border-radius: 14px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { border-bottom: 1px solid var(--rule); }
th.name, td.name { text-align: left; padding: 12px 18px; white-space: nowrap; }
th.name { font-size: 13px; font-weight: 600; color: var(--green); }
td.name { font-weight: 600; }
th.col { padding: 12px 10px; text-align: center; min-width: 92px; }
th.col .wd { display: block; font: 600 13px/1.4 var(--mono); color: var(--ink-muted); }
th.col .day { display: block; font: 500 20px/1.1 var(--serif); }
th.col .time { display: block; font-size: 12px; font-weight: 400; color: var(--ink-muted); }
td.cell { text-align: center; padding: 8px; }
td.cell span { display: inline-grid; place-items: center; min-width: 40px; height: 32px; border-radius: 6px; font-weight: 600; }
td.cell .y { background: var(--green); color: var(--cream); }
td.cell .m { background: var(--mist); color: var(--ink); }
td.cell .n { color: var(--ink-muted); }
td.cell .none { color: var(--rule); }
.best-col { background: var(--haze); }
tr.sum td { border-bottom: 0; }
tr.sum .yes { display: block; font: 500 24px/1.1 var(--serif); }
tr.sum .maybe { display: block; font-size: 13px; color: var(--ink-muted); min-height: 1em; }
.best { display: inline-block; margin-top: 6px; border-radius: 9999px; padding: 3px 10px; font-size: 12px; font-weight: 600; background: var(--green); color: var(--cream); }
.add-date { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.field { display: block; font-size: 15px; font-weight: 600; }
.field .input { margin-top: 8px; }
.add-date .field { flex: 0 1 220px; }
.shared { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: var(--mist); border-radius: 14px; }
.shared b { display: block; }
.shared span { font-size: 15px; color: var(--ink-soft); }
.add-guest { display: flex; gap: 10px; }
.add-guest .input { flex: 1; }
.guest-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.guest-row .gname { font-weight: 600; flex: 1 1 140px; }
.guest-row .gstatus { color: var(--ink-muted); font-size: 15px; flex: 1 1 140px; }
.guest-row .acts { display: flex; gap: 8px; align-items: center; }
.text-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.text-card textarea { min-height: 96px; resize: vertical; }
.text-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.text-actions span { font-size: 15px; color: var(--ink-muted); }

@media (max-width: 600px) {
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 8px; }
}

/* The name picker: a button and a list, in place of a <select>. */
.picker { position: relative; display: inline-block; }
.picker.wide { display: block; max-width: 360px; }
.picker-btn {
  font: 600 15px/1.2 var(--sans); padding: 10px 14px; border-radius: 10px; min-width: 180px; min-height: 44px;
  border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; text-align: left; transition: border-color .2s;
}
.picker.wide .picker-btn { width: 100%; font-size: 16px; padding: 13px 14px; min-height: 48px; }
.picker-btn:hover { border-color: var(--ink-muted); }
.picker-btn .chev { width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
.picker-btn[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
.picker-shade { position: fixed; inset: 0; z-index: 20; border: 0; padding: 0; background: transparent; cursor: default; }
.picker-list {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; z-index: 21; padding: 6px; background: #fff;
  border: 2px solid var(--card-border); border-radius: 14px; box-shadow: 0 10px 28px rgba(27, 61, 74, .16); display: flex; flex-direction: column;
}
.picker-list button {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 10px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; text-align: left; white-space: nowrap; font: 400 15px/1.2 var(--sans); color: var(--ink);
  transition: background-color .15s;
}
.picker-list button:hover { background: var(--cream); }
.picker-list button[aria-current="true"] { background: var(--haze); font-weight: 600; }
.picker-list button.last { color: var(--ink-soft); border-top: 1px solid var(--rule); margin-top: 4px; border-top-left-radius: 0; border-top-right-radius: 0; }
.picker-list .check { flex: none; width: 16px; font-weight: 600; color: var(--green); }

/* The invitation's head: words on the left, two photos on the right. */
.band.invite { overflow: hidden; }
.band.invite .page { max-width: 960px; }
.invite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; }
.invite-words { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.invite-words h1 { font-size: clamp(44px, 9vw, 72px); line-height: 1; margin-top: 0; }
.invite-words .intro { margin-top: 6px; }
.facts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 17px; line-height: 1.5; }
.facts > span { display: flex; align-items: center; gap: 10px; }
.facts svg { flex: none; }
.facts a { color: var(--cream); text-underline-offset: 3px; }
.polaroids { flex: 0 1 420px; position: relative; height: 340px; min-width: 300px; }
.polaroids figure {
  margin: 0; position: absolute; width: 58%; background: #fff; padding: 8px 8px 0; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
/* A red bauble pinning each photo. */
.polaroids figure::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #c41e2e 60%, #8d1420); box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}
.garland { display: block; width: calc(100% + 40px); max-width: 1000px; margin: -24px -20px 0; height: auto; overflow: visible; }
.band.invite .page { gap: 20px; }
.polaroids figure:nth-child(1) { left: 0; top: 18px; transform: rotate(-5deg); }
.polaroids figure:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); }
.polaroids figure:only-child { left: 20%; }
.polaroids img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 65%; display: block; border-radius: 2px; }
.polaroids figcaption { font: 500 17px/1 var(--serif); color: var(--ink); text-align: center; padding: 10px 0 12px; }
@media (max-width: 600px) { .polaroids { min-width: 0; width: 100%; height: 300px; } }

.body.invite .page { max-width: 960px; }
.steps-col { max-width: 620px; display: flex; flex-direction: column; gap: 44px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-no { font: 500 13px/1.6 var(--mono); letter-spacing: .02em; color: var(--ink-muted); }
.price { font-size: 16px; font-weight: 600; color: var(--green); }
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.answer {
  text-align: left; cursor: pointer; min-height: 72px; padding: 18px 20px; border-radius: 14px; font: 600 18px/1.3 var(--sans);
  transition: background-color .2s, color .2s, border-color .2s; background: #fff; color: var(--ink); border: 1px solid var(--rule);
}
.answer[aria-pressed="true"] { background: var(--green); color: var(--cream); border-color: var(--green); }
.answer[aria-pressed="true"]::before { content: "✓  "; white-space: pre; }
.menus { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.menu {
  text-align: left; cursor: pointer; padding: 24px; border-radius: 14px; display: flex; flex-direction: column; gap: 14px;
  font-family: var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; background: #fff;
  border: 2px solid rgba(27, 61, 74, .08); box-shadow: 0 1px 2px rgba(27, 61, 74, .04);
}
.menu[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 1px 3px rgba(27, 61, 74, .16); }
.menu .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.menu .name { font: 500 24px/1.2 var(--serif); letter-spacing: -0.01em; }
.menu .pill { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 9999px; background: var(--mist); color: var(--ink); white-space: nowrap; }
.menu[aria-pressed="true"] .pill { background: var(--green); color: var(--cream); }
.menu[aria-pressed="true"] .pill::before { content: "✓ "; }
.menu .sub { font: 600 13px/1.5 var(--mono); color: var(--green); }
.menu .dishes { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.menu .dish { display: flex; flex-direction: column; gap: 2px; }
.menu .dish b { font-weight: 600; color: var(--ink); }
.note-field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.note-field textarea { min-height: 80px; resize: vertical; }
.people { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.people li { background: #fff; border: 1px solid var(--card-border); border-radius: 9999px; padding: 6px 14px; font-size: 15px; }
.preview-bar { background: var(--ink); color: var(--cream); font-size: 14px; padding: 10px 20px; }

/* The host's page: numbers, then sections that fold. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat.main { background: var(--mist); border-color: transparent; }
.stat.over b { color: var(--error); }
.stat b { font: 500 34px/1.1 var(--serif); letter-spacing: -0.02em; font-weight: 500; }
.stat span { font-size: 15px; color: var(--ink-soft); }
.fold { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--rule); padding-top: 20px; }
.fold > .fold-head { display: flex; flex-direction: column; gap: 4px; }
.fold h2 button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent;
  cursor: pointer; text-align: left; font: inherit; letter-spacing: inherit; color: var(--ink);
}
.fold h2 .arrow { display: inline-flex; width: 20px; justify-content: center; font: 600 16px/1 var(--sans); color: var(--green); transition: transform .2s; }
.fold h2 button[aria-expanded="true"] .arrow { transform: rotate(90deg); }
.fold .fold-help { font-size: 15px; color: var(--ink-muted); }
.fold-body { display: flex; flex-direction: column; gap: 16px; }
.fold-body[hidden] { display: none; }
/* A closed section is only its heading: the next one comes up close under it. */
.host .page > .fold:has(> .fold-body[hidden]) + .fold { margin-top: -28px; }
.fold:has(> .fold-body[hidden]) { padding-bottom: 0; }
.menu-editors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.menu-editor { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.menu-editor .top { display: flex; justify-content: space-between; align-items: center; margin: -8px -8px -4px 0; }
.menu-editor .top span { font: 600 13px/1.5 var(--mono); color: var(--green); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dish-list { display: flex; flex-direction: column; gap: 8px; }
.dish-list > span { font-size: 15px; font-weight: 600; }
.dish-row { display: flex; gap: 4px; align-items: center; }
.dish-row .input { flex: 1; min-width: 0; margin-top: 0; }
.x.big { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.link-btn { align-self: flex-start; border: 0; background: transparent; padding: 8px 0; cursor: pointer; font: 600 15px/1.4 var(--sans); color: var(--green); }
.add-menu { min-height: 160px; border: 1px solid var(--rule); border-radius: 14px; background: transparent; cursor: pointer; font: 600 16px/1.4 var(--sans); color: var(--green); transition: background-color .2s; }
.add-menu:hover { background: #fff; }
.rsvp-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) minmax(90px, 1fr) minmax(110px, 1.2fr) auto; align-items: center; gap: 12px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rsvp-row .gname { font-weight: 600; font-size: 16px; }
.rsvp-row .gmenu { font-size: 15px; color: var(--ink-soft); }
.rsvp-row .gmenu small { display: block; font-size: 13px; color: var(--ink-muted); }
.rsvp-row .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.status-pill { display: inline-flex; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 9999px; white-space: nowrap; color: var(--ink-muted); }
.status-pill.yes { background: var(--green); color: var(--cream); }
.status-pill.no { background: var(--sand, #e9e4da); }
.empty { margin: 0; padding: 16px 0; color: var(--ink-muted); font-size: 16px; }
.photo-list { display: flex; flex-wrap: wrap; gap: 18px; }
.photo-item { width: 180px; display: grid; gap: 8px; }
.photo-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.photo-item .input { padding: 8px 12px; font-size: 15px; }
.file-label { cursor: pointer; align-self: flex-start; }
.file-label input { display: none; }
@media (max-width: 700px) {
  .rsvp-row { grid-template-columns: 1fr auto; }
  .rsvp-row .gmenu, .rsvp-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .pair { grid-template-columns: 1fr; }
}

/* The poll's week view. */
.view-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--tab-track); flex: none; }
.view-tabs button { min-height: 40px; padding: 0 16px; border-radius: 9999px; border: 0; cursor: pointer; white-space: nowrap; font: 600 14px/1 var(--sans); background: transparent; color: var(--ink); transition: background-color .2s; }
.view-tabs button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(27, 61, 74, .16); }
.q-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.q-head > div:first-child { display: flex; flex-direction: column; gap: 8px; flex: 1 1 320px; }
.weeks-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.weeks { min-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.week-days, .week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week-days span { text-align: center; font-size: 13px; font-weight: 600; color: var(--green); }
.week { display: flex; flex-direction: column; gap: 8px; }
.week > span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.day { min-height: 72px; border-radius: 14px; padding: 8px 6px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--rule); }
.day.has { background: #fff; border-color: var(--card-border); box-shadow: 0 1px 2px rgba(27, 61, 74, .04); }
.day .num-row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 0 2px; }
.day .num { font: 500 22px/1 var(--serif); color: var(--ink-muted); }
.day.has .num { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.day .mon { font-size: 12px; color: var(--ink-muted); }
.slot { display: flex; flex-direction: column; gap: 4px; }
.slot > span { font-size: 12px; font-weight: 600; color: var(--ink-soft); padding: 0 2px; }
.slot .cnt { font-weight: 400; color: var(--ink-muted); }
.slot button {
  min-height: 36px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--rule); cursor: pointer;
  font: 600 13px/1.1 var(--sans); transition: background-color .2s, color .2s; background: #fff; color: var(--ink);
}
.slot button[aria-pressed="true"]::before { content: "✓ "; }
.slot button[aria-pressed="true"][data-vote="y"] { background: var(--green); color: var(--cream); border-color: var(--green); }
.slot button[aria-pressed="true"][data-vote="m"] { background: var(--mist); border-color: var(--ink-muted); }
.slot button[aria-pressed="true"][data-vote="n"] { background: #e7e4df; color: #4d5a5f; border-color: #c4c0b9; }

/* The host's theme buttons. */
.theme-field { display: flex; flex-direction: column; gap: 8px; }
.theme-field > span { font-size: 15px; font-weight: 600; }
.theme-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.theme-tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 10px; cursor: pointer;
  font: 500 14px/1 var(--sans); color: var(--ink); background: transparent; border: 2px solid var(--card-border);
}
.theme-tabs button[aria-pressed="true"] { background: #fff; border-color: var(--green); }
.theme-tabs .swatch { width: 18px; height: 18px; border-radius: 6px; }

/* Host page: the guest list, as a table — one line a guest at every width.
   Column widths are variables: a heading's edge drags them (host.html), and
   their defaults fit the 960px page. Narrower than that, the table scrolls
   sideways with the names pinned on the left. */
.g-row { display: grid; grid-template-columns: var(--w-name, 132px) var(--w-st, 146px) var(--w-menu, 128px) var(--w-note, 190px) auto 36px; grid-template-areas: "name st menu note seg x"; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--rule); width: max-content; min-width: 100%; }
.g-row .gname { grid-area: name; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-row .gname .gn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-row .gname small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-st { grid-area: st; }
.g-menu { grid-area: menu; }
.g-note { grid-area: note; min-width: 0; }
.g-row .g-x { grid-area: x; width: 36px; height: 34px; font-size: 18px; }
.g-row .g-seg, .g-seg-head { grid-area: seg; }
.g-none { font-size: 14px; color: var(--ink-muted); padding-left: 14px; }

/* Controls in a row. */
.ctl { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: auto; height: 34px; padding: 0 12px; border: 2px solid var(--card-border); border-radius: 10px; background: #fff; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; appearance: none; -webkit-appearance: none; transition: border-color .15s, background-color .15s; }
.ctl:hover { border-color: var(--ink-muted); }
.ctl.center { justify-content: center; }
.ctl.on { background: var(--green); border-color: var(--green); color: var(--cream); }
.ctl.muted { color: var(--ink-muted); }
.ctl.done { color: var(--green); font-weight: 600; }
/* The host's note: one line, fading at the edge if long; clicked, it opens over
   the row (wider, wrapped, as tall as the text) and closes again when left. */
.g-note-wrap { position: relative; height: 34px; }
.g-note-input { position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0; padding: 7px 10px; border: 2px solid var(--card-border); border-radius: 10px; background: #fff; color: var(--ink); font: 400 14px/1.3 var(--sans); resize: none; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
.g-note-input:hover { border-color: var(--ink-muted); }
.g-note-input:focus { z-index: 20; width: max(100%, 300px); max-height: 50vh; overflow-y: auto; white-space: pre-wrap; outline: none; border-color: var(--green); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); -webkit-mask-image: none; mask-image: none; }

/* Channel, sent and the guest's link: one joined control. */
.g-seg { display: inline-flex; align-items: stretch; height: 34px; border: 2px solid var(--card-border); border-radius: 10px; background: #fff; }
.g-seg > * + * { border-left: 1px solid var(--card-border) !important; }
.g-seg .ctl { border: 0; border-radius: 0; height: 30px; background: transparent; }
.g-seg .ctl:hover { background: var(--sand); }
.g-seg > :first-child, .g-seg > :first-child .ctl { border-radius: 8px 0 0 8px; }
.g-seg > :last-child { border-radius: 0 8px 8px 0; }
.g-seg .ctl.done { background: transparent; }
.g-seg > .ch-wrap, .g-seg-head .ch-col { width: var(--w-ch, 80px); flex: none; }
.g-seg .ch-btn { width: 100%; }
/* A chosen channel is just its logo (the name shows on hover); none chosen says Kanal?. */
.g-seg .ch-btn.picked { justify-content: center; gap: 6px; }
.g-seg .ch-btn.picked svg:first-child { width: 18px; height: 18px; }
.sent-btn, .g-seg-head .sent-col { width: var(--w-sent, 120px); }
.copy-btn, .g-seg-head .copy-col { width: var(--w-copy, 92px); }

/* Pick lists (answer, menu, channel): a button and a short list under it. */
.ch-wrap { position: relative; display: flex; min-width: 0; }
.ch-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pick .pick-btn { width: 100%; min-width: 0; }
.chev-inline { flex: none; opacity: .7; }
.ch-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 21; min-width: 100%; padding: 6px; background: #fff; border: 2px solid var(--card-border); border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); display: flex; flex-direction: column; }
.ch-menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; white-space: nowrap; font: 400 14px/1.2 var(--sans); color: var(--ink); }
.ch-menu button:hover, .ch-menu button[aria-current="true"] { background: var(--mist); }
.ch-menu button[aria-current="true"] { font-weight: 600; }
.ch-menu button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.yes { background: var(--green); }
.dot.maybe { background: var(--gold); }
.dot.none { box-shadow: inset 0 0 0 2px var(--card-border); }
.dot.no { background: var(--ink-muted); opacity: .45; }
.ctl.on .dot.yes { background: var(--cream); }

/* Headings: click to sort (as in the planner), drag the edge to resize. */
.g-head { padding: 4px 0; }
.g-th { position: relative; display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 0; border: 0; background: transparent; cursor: pointer; font: 600 13px/1.2 var(--sans); color: var(--ink-muted); text-align: left; white-space: nowrap; user-select: none; }
.g-head > .g-th { width: 100%; }
.g-row.g-head .g-th { overflow: visible; }
.g-th > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.g-th:hover, .g-th[aria-sort="ascending"], .g-th[aria-sort="descending"] { color: var(--ink); }
.g-th svg { opacity: .6; flex: none; }
.g-head .g-st, .g-head .g-menu, .g-head .g-note { padding-left: 14px; }
.g-seg-head { display: flex; padding: 0 2px; }
.g-seg-head .ch-col, .g-seg-head .sent-col { padding-left: 12px; }
.g-seg-head .copy-col { position: relative; }
.col-resize { position: absolute; top: 0; bottom: 0; right: -5px; width: 9px; cursor: col-resize; touch-action: none; z-index: 1; }
.col-resize::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: 1px; background: var(--rule); }
.col-resize:hover::after, .resizing .col-resize::after { background: var(--green); width: 2px; left: 3px; }
body.resizing, body.resizing * { cursor: col-resize !important; user-select: none !important; }

/* While scrolling a long list the find box and the headings stay at the top;
   their background reaches the window's edges so nothing shows past them. */
.g-tools { position: sticky; top: 0; z-index: 15; display: flex; justify-content: flex-end; padding: 8px 0; margin-bottom: -8px; background: var(--cream); }
.g-head { position: sticky; top: 52px; z-index: 14; background: var(--cream); border-bottom: 1px solid var(--ink); }
.g-tools, .g-head { box-shadow: 0 0 0 100vmax var(--cream); clip-path: inset(0 -100vmax); }
.g-search { position: relative; display: flex; align-items: center; width: 220px; }
.g-search svg { position: absolute; left: 12px; color: var(--ink-muted); pointer-events: none; }
.g-search input { width: 100%; height: 36px; padding: 0 10px 0 34px; border: 2px solid var(--card-border); border-radius: 10px; background: #fff; font: 400 14px/1 var(--sans); color: var(--ink); }
.g-search input:focus { outline: none; border-color: var(--green); }

/* Narrower than the table: it scrolls sideways under a finger or trackpad, the
   names stay put on the left, and the headings scroll with the rows. */
@media (max-width: 1000px) {
  .g-table { overflow-x: auto; margin: 0 -20px; padding: 0 20px; overscroll-behavior-x: contain; }
  .g-head { position: static; box-shadow: none; clip-path: none; }
  .g-row .gname { position: sticky; left: -20px; z-index: 3; background: var(--cream); padding: 0 6px 0 20px; margin-left: -20px; width: calc(100% + 20px); align-self: stretch; margin-block: -5px; box-shadow: 6px 0 6px -6px rgba(0, 0, 0, .18); }
  .g-row:not(.g-head) .gname { display: flex; flex-direction: column; justify-content: center; }
}

/* A pasted list of names, waiting to be added. */
.pasted { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin-bottom: 8px; border-radius: 12px; background: var(--mist); font-size: 15px; }
.pasted .muted { color: var(--ink-muted); }

/* The undo note after removing a guest. */
#undo { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); }
.undo-note { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 12px; background: var(--ink); color: var(--cream); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); font: 500 15px/1.2 var(--sans); }
.undo-note button { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--cream); color: var(--ink); cursor: pointer; font: 600 14px/1 var(--sans); }
.undo-note .close { width: 36px; padding: 0; background: transparent; color: var(--cream); font-size: 18px; }

/* The language switch (lang-picker.js), as in To-Do. */
/* Lined up with the right edge of the page's content (960px wide), not the window's corner. */
.lang-corner { position: absolute; top: var(--lang-top, 24px); right: max(20px, calc((100% - 960px) / 2)); z-index: 40; }
.lang-picker { position: relative; }
.lp-trigger { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--card-border); border-radius: 8px; background: #fff; color: var(--ink); font: 400 15px/1.25 var(--sans); cursor: pointer; }
.lp-trigger:hover { border-color: var(--ink-muted); }
.lp-trigger[aria-expanded="true"] { border-color: var(--green); }
.lp-chevron { flex: none; color: var(--ink-muted); }
.lp-flag { display: inline-flex; width: 21px; height: 14px; flex: none; border-radius: 3px; overflow: hidden; }
.lp-flag svg { display: block; width: 100%; height: 100%; }
.lp-dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: max(100%, 12.5rem); padding: 12px 12px 10px; background: #fff; border: 1px solid var(--card-border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.lp-section-label { font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; line-height: 1.2; }
.lp-option { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font: 400 15px/1.25 var(--sans); color: var(--ink); }
.lp-current, .lp-switch:hover { background: var(--mist); }
.lp-switch { cursor: pointer; }
.lp-divider { height: 1px; background: var(--card-border); margin: 12px 0 10px; }


/* Host page, compact (design of 2026-11-07): the host link as a band under the
   title, cards with tight grids, menus and the question nested under RSVP
   questions, photos inside the invitation. */
.host .page { gap: 28px; }
.host-band { padding: 10px 12px 10px 16px; background: var(--sand); border-radius: 12px; }
.host-band b { font: 600 13px/1.2 var(--sans); }
.host-band b span { font-weight: 400; color: var(--ink-soft); }
.host-band code { font: 400 13px/1.4 var(--mono); overflow-wrap: anywhere; }
.hcard { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; border-radius: 12px; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; }
.hcard .field, .sub-panel .field { display: flex; flex-direction: column; gap: 4px; font: 600 13px/1.2 var(--sans); color: var(--ink-soft); }
.hcard .field .input, .sub-panel .field .input { margin-top: 0; min-height: 40px; padding: 8px 12px; font: 400 15px/1.3 var(--sans); }
.hcard textarea.input { min-height: 0; resize: vertical; }
.small-label { font: 600 13px/1.2 var(--sans); color: var(--ink-soft); }
.small-label span { font-weight: 400; }
.photos-field { display: flex; flex-direction: column; gap: 8px; }
.photo-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.photo-row .photo-item { width: 120px; gap: 6px; }
.photo-row .photo-item img { width: 120px; height: 120px; border-radius: 10px; }
.photo-row .photo-item .input { padding: 6px 10px; font-size: 14px; }
.photo-add { position: relative; width: 120px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--card-border); border-radius: 10px; font: 600 13px/1.2 var(--sans); color: var(--ink-soft); cursor: pointer; }
.photo-add:hover { border-color: var(--green); color: var(--green); }
.photo-add span { font-size: 24px; font-weight: 400; }
.photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.block-toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.block-toggles button { padding: 12px 14px; }
.block-toggles b { font: 500 17px/1.2 var(--serif); }
.block-toggles button span span { font-size: 13px; }
.sub-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-left: 3px solid var(--green); background: rgba(255, 255, 255, .45); border-radius: 0 12px 12px 0; }
.sub-panel .menus { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.delete-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }

/* Guest list, grouped and quiet: a heading per answer; a row is plain text until
   it is hovered or tabbed into, then its controls show. */
.g-group { display: flex; gap: 8px; align-items: baseline; width: max-content; min-width: 100%; padding: 20px 0 8px; border-bottom: 2px solid var(--ink); font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.g-group span + span { font-weight: 500; }
.g-row:not(.g-head):hover { background: rgba(0, 0, 0, .025); }
.g-row:not(.g-head) .ctl, .g-row:not(.g-head) .g-seg, .g-row:not(.g-head) .g-note-input { border-color: transparent; background: transparent; }
.g-row:not(.g-head) .g-seg > * + * { border-left-color: transparent !important; }
.g-row:not(.g-head) .chev-inline { opacity: 0; transition: opacity .15s; }
.g-row:not(.g-head):is(:hover, :focus-within) .ctl, .g-row:not(.g-head):is(:hover, :focus-within) .g-note-input { border-color: var(--card-border); background: #fff; }
.g-row:not(.g-head):is(:hover, :focus-within) .g-seg { border-color: var(--card-border); background: #fff; }
.g-row:not(.g-head):is(:hover, :focus-within) .g-seg .ctl { border-color: transparent; background: transparent; }
.g-row:not(.g-head):is(:hover, :focus-within) .g-seg > * + * { border-left-color: var(--card-border) !important; }
.g-row:not(.g-head):is(:hover, :focus-within) .chev-inline { opacity: .7; }
.g-row:not(.g-head) .ctl.on { color: var(--ink); font-weight: 600; }
.g-row .ctl.on .dot.yes { background: var(--green); }
.g-row:not(.g-head) .copy-btn { color: var(--ink-muted); }
.g-row:not(.g-head):hover .copy-btn { color: var(--ink); }
.g-note-input:focus { background: #fff !important; border-color: var(--green) !important; }
.stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { padding: 12px 16px; gap: 2px; border-radius: 12px; }
.stat b { font-size: 26px; line-height: 1.1; }
.stat span { font-size: 14px; }

/* The host link band: copy it, or email it to yourself (the primary action). */
.host-band { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.band-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.band-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.band-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.band-mail { display: flex; gap: 8px; flex-wrap: wrap; }
.band-mail .input { flex: 1 1 240px; max-width: 360px; min-height: 40px; padding: 8px 12px; font-size: 15px; }
.band-note { margin: 0; font-size: 14px; font-weight: 600; color: var(--green); }
.band-note.error { color: var(--error); }

/* Guest page: email yourself your own link, under the status line. */
.mail-me { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 0; border: 0; background: transparent; cursor: pointer; font: 600 15px/1.3 var(--sans); color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mail-me:hover { color: var(--red); }
.guest-mail { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.guest-mail .input { flex: 1 1 220px; max-width: 340px; min-height: 42px; padding: 8px 12px; font-size: 15px; }
.status .mail-sent { color: var(--green); font-weight: 600; }
.status .mail-error { color: var(--error); }
/* Time and place: when on one row, where on the next. */
.hgrid.hgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .hgrid.hgrid-3 { grid-template-columns: minmax(0, 1fr); } }
.as b { color: var(--ink); font-weight: 600; }
.as .link-btn, .who .link-btn { padding: 4px 0; font-size: 15px; }

/* One row above the guest list: add a name on the left, search on the right. */
.g-tools { justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 8px 0; margin-bottom: 0; }
.g-tools .add-guest { display: flex; gap: 8px; flex: 0 1 380px; min-width: 0; }
.g-tools .add-guest .input { flex: 1; min-width: 0; height: 40px; min-height: 40px; padding: 0 12px; font-size: 15px; }
.g-tools .add-guest .btn { height: 40px; min-height: 40px; }
.g-tools .g-search input { height: 40px; }
.g-head { top: 56px; }
@media (max-width: 640px) { .g-tools .add-guest, .g-tools .g-search { flex: 1 1 100%; width: 100%; } }
/* The unnamed link column has no edges of its own; Sendt's edge shows only on hover. */
.g-seg-head .sent-col .col-resize::after { background: transparent; }
.g-seg-head .sent-col .col-resize:hover::after { background: var(--green); }
.g-tools .add-guest { flex: 1 1 420px; max-width: 620px; }

/* The table is as wide as its widest row (or the page), and every row, heading
   and group line stretches to that width, so the lines all end in one place. */
.g-table { width: max-content; min-width: 100%; }
.g-table > .g-row, .g-table > .g-group { width: auto; min-width: 0; }
@media (max-width: 1000px) {
  /* Here the table scrolls sideways itself: it stays page-wide, its one column the widest row. */
  .g-table { width: auto; display: grid; grid-template-columns: max-content; }
}

/* Adding a guest: a spinner on the button, then the new row lights up once. */
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.g-row.just-added { animation: just-added 2.4s ease-out; }
@keyframes just-added { 0%, 35% { background: var(--haze); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
.g-tools .add-guest { flex: 0 1 420px; max-width: 420px; }
/* A narrower channel column: tighter spacing so "Kanal?" still fits. */
.g-seg .ch-btn { padding: 0 6px 0 8px; gap: 2px; }
.g-seg .ch-btn .ch-label { gap: 6px; }
@media (max-width: 700px) { .lang-corner { top: 16px; } }

/* Pick lists: the focused item (where the arrow keys are) gets the hover background, not the
   gold focus ring, since opening a list moves focus there even after a mouse click. The
   current choice is the bold one. */
.ch-menu button:focus-visible { outline: none; background: var(--mist); }
.ch-menu button[aria-current="true"]:not(:hover):not(:focus) { background: transparent; }

/* Question cards (host page and create screen). */
.block-toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.block-toggles button { display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 14px; background: #fff; border: 2px solid var(--card-border); font: inherit; color: var(--ink); }
.block-toggles button[aria-pressed="true"] { border-color: var(--green); }
.block-toggles .box { flex: none; width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--cream); background: #fff; border: 2px solid var(--card-border); }
.block-toggles button[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); }
.block-toggles b { display: block; }
.block-toggles span span { font-size: 14px; color: var(--ink-soft); }
.block-toggles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.block-toggles button { padding: 12px 14px; border-radius: 12px; }
.block-toggles b { font: 500 17px/1.2 var(--serif); }
.block-toggles button span span { font-size: 13px; }

/* The host's own questions (host page), and a guest's answers opened under their row. */
.q-list { display: flex; flex-direction: column; gap: 8px; }
.q-row { display: flex; gap: 6px; align-items: center; }
.q-row .input { flex: 1; min-height: 40px; padding: 8px 12px; font-size: 15px; }
.q-list .link-btn { align-self: flex-start; padding: 4px 0; }
.gname.has-answers { cursor: pointer; }
.gname.has-answers small { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.gname.has-answers:hover small { color: var(--ink); }
.g-answers { margin: 0; padding: 10px 14px 14px; background: rgba(255, 255, 255, .6); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 6px 16px; font-size: 14px; }
.g-answers dt { color: var(--ink-muted); }
.g-answers dd { margin: 0; color: var(--ink); white-space: pre-wrap; }

/* The date and time picker (date-pick.js): a button that says the time in words, and a card
   with the month, an hour and a minute column, and the time zone — as in the hub and Mail. */
.dp-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px; border: 2px solid var(--card-border); border-radius: 10px; background: #fff; color: var(--ink); font: 400 16px/1.3 var(--sans); text-align: left; cursor: pointer; }
/* In a form field it is the same size as the text boxes beside it. */
.field .dp-trigger { padding: 13px 15px; font-size: 18px; line-height: 1.4; }
.hcard .field .dp-trigger, .sub-panel .field .dp-trigger { min-height: 40px; padding: 8px 12px; font: 400 15px/1.3 var(--sans); }
.dp-trigger:hover { border-color: var(--ink-muted); }
.dp-trigger[aria-expanded="true"] { border-color: var(--green); }
.dp-trigger.empty { color: var(--ink-muted); }
.dp-trigger svg { flex: none; color: var(--ink-muted); }
.dp-pop { position: fixed; z-index: 60; background: #fff; border: 2px solid var(--card-border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .16); padding: 12px; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 16px); font-family: var(--sans); color: var(--ink); }
.dp-body { display: flex; gap: 10px; }
.dp-month { width: 252px; display: flex; flex-direction: column; gap: 6px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; }
.dp-head b { font: 600 15px/1 var(--serif); }
.dp-nav { display: inline-flex; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.dp-nav:hover { background: var(--mist); color: var(--ink); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-wd { padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--ink-muted); }
.dp-day { height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 400 14px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.dp-day:hover { background: var(--mist); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--card-border); }
.dp-day.on { background: var(--green); color: var(--cream); font-weight: 600; }
.dp-day:disabled { color: var(--rule); cursor: default; background: transparent; }
.dp-col { display: flex; flex-direction: column; gap: 2px; max-height: 262px; overflow-y: auto; padding-left: 8px; border-left: 1px solid var(--rule); scrollbar-width: thin; }
.dp-col button { min-width: 44px; height: 30px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 400 14px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.dp-col button:hover { background: var(--mist); }
.dp-col button.on { background: var(--green); color: var(--cream); font-weight: 600; }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--rule); }
.dp-zone-btn { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font: 400 13px/1.2 var(--sans); cursor: pointer; }
.dp-zone-btn b { color: var(--ink); font-weight: 600; font-size: 14px; }
.dp-zone-btn:hover { background: var(--mist); }
.dp-zones { width: 340px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.dp-search { width: 100%; height: 38px; padding: 0 12px; border: 2px solid var(--card-border); border-radius: 10px; font: 400 15px/1 var(--sans); }
.dp-search:focus { outline: none; border-color: var(--green); }
.dp-zone-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; }
.dp-zone-list button { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 400 14px/1.2 var(--sans); text-align: left; cursor: pointer; }
.dp-zone-list button small { color: var(--ink-muted); }
.dp-zone-list button:hover, .dp-zone-list button.on { background: var(--mist); }
.dp-zone-list button.on { font-weight: 600; }
.dp-zone-list p { margin: 8px 10px; color: var(--ink-muted); font-size: 14px; }
@media (max-width: 560px) {
  .dp-body { flex-wrap: wrap; }
  .dp-month { width: 100%; }
  .dp-col { flex-direction: row; max-height: none; overflow-x: auto; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--rule); width: 100%; }
}

/* Google Sheet panel on the host page. */
.sheet-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.sheet-steps li { display: flex; flex-direction: column; gap: 8px; }
.sheet-email { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-email code { font: 400 14px/1.3 var(--mono); padding: 8px 10px; border-radius: 8px; background: var(--mist); color: var(--ink); overflow-wrap: anywhere; }
.sheet-form { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-form .input { flex: 1 1 280px; min-height: 40px; padding: 8px 12px; font-size: 15px; margin-top: 0; }
.sheet-status, .sheet-when, .sheet-error { margin: 0; font-size: 15px; }
.sheet-when { color: var(--ink-muted); }
.sheet-error { color: var(--error); margin-top: 10px; }
.sheet-status + .sheet-when, .sheet-status + .sheet-error { margin-top: 6px; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Host page opened without a key and nobody signed in. */
.sign-in-needed { max-width: 560px; margin: 48px auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sign-in-needed h2 { margin: 0; font: 600 24px/1.2 var(--serif); }
.sign-in-needed p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.band-text > span { font-size: 14px; color: var(--ink-muted); }
.sheet-own { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.sheet-own span { flex: 1 1 260px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.sheet-other { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sheet-other summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.sheet-other[open] summary { margin-bottom: 14px; }
.sheet-own + .sheet-when, .sheet-own + .sheet-error { margin-top: 10px; }
