:root {
  color-scheme: light;
  --bg: #f7f1e4;
  --card: #fffefa;
  --ink: #0c2344;
  --muted: #627083;
  --line: #dfe6e8;
  --line-strong: #b7d7df;
  --teal: #008f96;
  --teal-dark: #006c7e;
  --teal-soft: #e7f6f6;
  --sand: #fff5d8;
  --sand-line: #f2d48f;
  --danger: #c9352b;
  --shadow: 0 16px 36px rgba(42, 35, 20, 0.12);
  --shadow-soft: 0 8px 22px rgba(42, 35, 20, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), transparent 28rem),
    linear-gradient(180deg, #f8f1df 0%, #fbf6ea 44%, #f7f1e4 100%);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.event-card,
.identity-card,
.section {
  background: rgba(255, 254, 250, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.event-card {
  position: relative;
  display: grid;
  min-height: 255px;
  overflow: hidden;
  padding: 32px 36px;
  isolation: isolate;
}

.compact-event-card {
  min-height: 0;
  padding-bottom: 14px;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 12%, rgba(164, 222, 238, 0.35), transparent 20rem),
    linear-gradient(100deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 55%, rgba(230, 247, 250, 0.88) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  line-height: 0.95;
}

.event-details {
  display: flex;
  max-width: 930px;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
}

.event-details span,
.title-line,
.manage-links button,
.section-link,
.note-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.note-line {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.45;
}

.plan-line,
.meal-line,
.soft-line,
.updated-line {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.top-utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 8px 0 0;
  border: 1px solid rgba(183, 215, 223, 0.7);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.72);
  box-shadow: var(--shadow-soft);
  padding: 8px;
}

.hero-tour-button {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--teal-dark);
  font-weight: 900;
  padding: 8px 14px;
}

.note-chip {
  min-height: 52px;
  max-width: 100%;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
}

.pool-chip {
  border: 1px solid var(--sand-line);
  background: #fff9e8;
}

.pool-chip .icon {
  color: #f4a100;
}

.weather-chip {
  border: 1px solid #b7d8e7;
  background: #eef9ff;
}

.weather-chip .icon {
  color: #087ba0;
}

.hero-art {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 360px;
  height: 245px;
  pointer-events: none;
}

.pool-arc {
  position: absolute;
  right: -20px;
  bottom: -85px;
  width: 270px;
  height: 205px;
  border: 16px solid #dcc59f;
  border-radius: 55% 0 0 0;
  background:
    radial-gradient(circle at 45% 40%, rgba(255, 255, 255, 0.8) 0 8px, transparent 9px),
    repeating-radial-gradient(circle at 35% 55%, rgba(255, 255, 255, 0.28) 0 5px, rgba(255, 255, 255, 0) 6px 17px),
    linear-gradient(135deg, #35c1d2, #07879b);
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.28);
}

.umbrella {
  position: absolute;
  right: 35px;
  top: 34px;
  width: 126px;
  height: 58px;
  border-radius: 80px 80px 0 0;
  background: conic-gradient(from 0.75turn, #17a7b5, #ecfbff, #17a7b5, #ecfbff, #17a7b5);
  box-shadow: 0 8px 0 rgba(0, 108, 126, 0.12);
}

.umbrella::after {
  content: "";
  position: absolute;
  left: 62px;
  top: 54px;
  width: 4px;
  height: 98px;
  background: #6b7a79;
}

.float-ring {
  position: absolute;
  right: 35px;
  bottom: 14px;
  width: 64px;
  height: 64px;
  border: 15px solid #ff6e7d;
  border-radius: 50%;
  background: transparent;
}

.beach-ball {
  position: absolute;
  right: 142px;
  bottom: 56px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(#ee3f43, #fff 0.22turn, #f9ca32 0.36turn, #fff 0.55turn, #27acd0 0.72turn, #fff 0.86turn, #ee3f43);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.identity-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 22px 28px;
}

.plan-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.plan-switcher > span {
  color: var(--muted);
  font-weight: 900;
}

.plan-switcher select {
  width: min(360px, 72vw);
  min-height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 5px 30px 5px 10px;
  font-size: 0.86rem;
}

.plan-switcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.plan-switcher-actions .text-button {
  padding: 2px 4px;
  font-size: 0.84rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.identity-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.identity-layout p {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 850;
}

.select-wrap {
  position: relative;
  display: grid;
  align-items: center;
}

.select-wrap .icon {
  position: absolute;
  left: 18px;
  z-index: 1;
}

.select-wrap select {
  padding-left: 54px;
}

.identity-help,
.flash,
.empty {
  color: var(--muted);
  line-height: 1.4;
}

.identity-help,
.flash {
  margin: 0;
}

.flash {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--sand);
  color: #725018;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.field-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cfd9de;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  box-shadow: inset 0 1px 2px rgba(12, 35, 68, 0.04);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.custom-family-label {
  margin-top: 4px;
}

.action-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.action-button,
.button,
.mini-button {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), #00838b);
  color: #fff;
  font-weight: 900;
  padding: 13px 18px;
  box-shadow: 0 8px 18px rgba(0, 143, 150, 0.2);
}

.action-button {
  font-size: 1.03rem;
}

.action-button.quiet,
.button.secondary,
.quiet-mini {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--teal-dark);
  box-shadow: none;
}

.button.danger-button {
  border: 1px solid #a8241d;
  background: linear-gradient(135deg, var(--danger), #9f241d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(201, 53, 43, 0.24);
}

.mini-button {
  min-height: 44px;
  border-radius: 10px;
  padding: 9px 14px;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.primary-stack,
.secondary-stack {
  display: grid;
  gap: 16px;
}

.section {
  padding: 24px;
}

.compact-card {
  padding: 24px;
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1.15;
}

.section-title p {
  margin: 6px 0 0 50px;
  color: var(--muted);
  font-weight: 650;
}

.title-line {
  min-height: 34px;
}

.row-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.still-needed {
  position: relative;
  background: rgba(255, 254, 250, 0.98);
}

.meal-vote-card {
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 254, 250, 0.98), rgba(238, 249, 255, 0.92));
}

.meal-vote-note {
  margin: -8px 0 14px;
  color: var(--muted);
  line-height: 1.4;
}

.vote-current {
  width: fit-content;
  border-radius: 999px;
  background: var(--sand);
  color: #7a5206;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.meal-vote-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.meal-vote-option {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.meal-vote-option.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 143, 150, 0.22);
}

.meal-vote-option strong {
  font-size: 0.95rem;
}

.meal-vote-option span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.custom-vote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.section-pulse {
  animation: sectionPulse 2.6s ease-out;
}

.section-pulse::before {
  content: "Still needed";
  position: absolute;
  left: 50%;
  top: -18px;
  z-index: 2;
  transform: translateX(-50%);
  border: 2px solid var(--sand-line);
  border-radius: 999px;
  background: #fff5d8;
  color: #7a5206;
  box-shadow: 0 10px 24px rgba(122, 82, 6, 0.2);
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: sectionPulseLabel 2.6s ease-out;
}

@keyframes sectionPulse {
  0% {
    outline: 0 solid rgba(255, 194, 73, 0);
    outline-offset: 0;
    box-shadow: var(--shadow);
  }
  10% {
    transform: scale(1.015);
    outline: 7px solid rgba(255, 194, 73, 0.9);
    outline-offset: 8px;
    box-shadow:
      0 0 0 9999px rgba(12, 35, 68, 0.16),
      0 24px 70px rgba(0, 143, 150, 0.34),
      0 0 0 2px rgba(0, 143, 150, 0.5);
  }
  36% {
    transform: scale(1);
    outline: 7px solid rgba(0, 143, 150, 0.82);
    outline-offset: 10px;
    box-shadow:
      0 0 0 9999px rgba(12, 35, 68, 0.1),
      0 24px 70px rgba(0, 143, 150, 0.28),
      0 0 0 2px rgba(255, 194, 73, 0.55);
  }
  100% {
    transform: scale(1);
    outline: 0 solid rgba(0, 143, 150, 0);
    outline-offset: 18px;
    box-shadow: var(--shadow);
  }
}

@keyframes sectionPulseLabel {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  10%,
  62% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
}

.simple-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.need-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.need-row:last-child {
  border-bottom: 0;
}

.item-icon,
.preview-icons i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff2d5;
  font-size: 1.45rem;
  font-style: normal;
}

.need-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.03rem;
}

.need-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.section-link {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 900;
  padding: 8px;
}

.section-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

.plain-group {
  margin-top: 18px;
}

.plain-group:first-of-type {
  margin-top: 0;
}

.plain-group h3 {
  margin: 0 0 9px 10px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.family-response-list,
.plain-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.family-response-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.family-response-list > li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.family-response-list > li:last-child {
  border-bottom: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-start, var(--teal)), var(--avatar-end, #007786));
  color: #fff;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 4px 10px rgba(12, 35, 68, 0.12);
}

.response-name {
  display: flex;
  gap: 8px;
  align-items: center;
}

.you-pill {
  border: 1px solid #c9dfb7;
  border-radius: 999px;
  background: #edf7e7;
  color: #4d7e2b;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 4px 10px;
}

.host-pill {
  border: 1px solid var(--sand-line);
  border-radius: 999px;
  background: var(--sand);
  color: #8a5c05;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
}

.response-sublist {
  margin: 5px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.response-sublist li {
  margin: 3px 0;
  color: var(--ink);
  line-height: 1.35;
}

.response-sublist span {
  font-weight: 900;
}

.summary-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.summary-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.summary-table div:last-child {
  border-bottom: 0;
}

.summary-table strong {
  color: var(--muted);
  font-size: 0.92rem;
}

.covered-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.plain-group li {
  margin: 7px 0;
  line-height: 1.4;
}

.covered-group ul {
  display: grid;
  gap: 6px;
}

.covered-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-color: color-mix(in srgb, var(--avatar-start, var(--teal)) 24%, white);
  background: color-mix(in srgb, var(--avatar-start, var(--teal)) 10%, white);
  padding: 7px 8px;
}

.covered-row strong {
  color: var(--avatar-end, var(--teal-dark));
  font-size: 0.82rem;
  white-space: nowrap;
}

.covered-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-start, var(--teal)), var(--avatar-end, #007786));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
}

.updates-list {
  display: grid;
  gap: 10px;
}

.update-message {
  padding: 11px 12px;
  border-radius: 14px;
  background: #f3f8f8;
}

.update-message div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.update-message p {
  margin: 5px 0 0;
  line-height: 1.42;
}

.updates-list time {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.manage-card {
  padding-bottom: 20px;
}

.manage-links {
  display: grid;
  gap: 6px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 850;
  text-align: left;
  padding: 8px 4px;
}

.danger-text {
  color: var(--danger);
}

.host-guide {
  margin-top: 12px;
  border: 1px solid #d6edf0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2fbfb, #fffdf7);
  padding: 14px;
}

.host-guide strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.host-guide p {
  margin: 4px 0 9px;
  color: var(--muted);
  line-height: 1.38;
}

.host-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}

.inline-link {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font: inherit;
  font-weight: 850;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.needed-preview {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: 18px;
  border: 1px solid #eadfc8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdf7, #fff5df);
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.preview-icons {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  gap: 5px;
}

.preview-icons i {
  width: 32px;
  height: 32px;
  border: 1px solid #f0d39c;
  font-size: 1rem;
}

.manage-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
}

.manage-panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.manage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.manage-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.compact-add {
  min-height: 34px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.88rem;
}

.manage-list,
.template-list {
  display: grid;
  gap: 4px;
  margin: 8px 0 14px;
}

.manage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.manage-item-main {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.manage-item-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-item-main span {
  color: var(--muted);
  font-size: 0.82rem;
}

.manage-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.manage-actions .text-button {
  padding: 3px 4px;
  font-size: 0.88rem;
}

.template-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  padding: 7px 10px;
  font-size: 0.9rem;
}

.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--sand);
  color: #ef9f00;
}

.compact-card .icon-badge {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.is-hidden {
  display: none !important;
}

.secondary-details {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px 12px;
}

.secondary-details summary,
.optional-details summary,
.food-picker summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}

.plan-picker select {
  margin-top: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 35, 68, 0.45);
  padding: 12px;
}

.sheet {
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(223, 230, 232, 0.7);
}

.sheet-head h2 {
  margin: 0;
}

.sheet-head p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.sheet-body {
  overflow: auto;
  padding: 16px 20px 20px;
}

.response-sheet {
  width: min(620px, 100%);
}

.close-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f0f5f5;
  color: var(--ink);
  font-size: 1.5rem;
}

form {
  display: grid;
  gap: 13px;
}

.response-form {
  gap: 14px;
}

.response-block {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(223, 230, 232, 0.9);
  border-radius: 18px;
  background: #fffdf8;
  padding: 14px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.host-picks,
.status-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pick-button {
  display: block;
}

.pick-button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pick-button span {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: center;
  font-weight: 800;
}

.pick-button input:checked + span {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), #00838b);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 143, 150, 0.18);
}

.time-stepper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
}

.step-button {
  min-width: 58px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
}

.time-stepper input {
  text-align: center;
  font-weight: 900;
}

.optional-details,
.food-picker {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.meal-picker {
  position: relative;
}

.meal-suggestion-panel {
  display: none;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  padding: 10px;
}

.meal-picker:focus-within .meal-suggestion-panel {
  display: flex;
}

.meal-suggestion-panel button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-dark);
  padding: 7px 10px;
  font-weight: 850;
}

.optional-details label {
  margin-top: 12px;
}

.response-food {
  display: grid;
  gap: 13px;
}

.response-form.is-not-coming .response-food {
  display: none;
}

.not-coming-note,
.not-coming-warning {
  display: none;
  margin: 0;
  border-radius: 14px;
  padding: 11px 13px;
  line-height: 1.38;
}

.response-form.is-not-coming .not-coming-note {
  display: block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
}

.response-form.is-not-coming[data-has-food="true"] .not-coming-warning {
  display: block;
  border: 1px solid var(--sand-line);
  background: var(--sand);
  color: #725018;
  font-weight: 800;
}

.selected-food-area {
  display: grid;
  gap: 8px;
}

.selected-food-area > span {
  color: var(--muted);
  font-weight: 900;
}

.selected-food-list {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px dashed #cbdcdf;
  border-radius: 14px;
  background: #fff;
  padding: 9px;
}

.selected-food-chip {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  padding: 8px 11px;
  font-weight: 850;
}

.suggestion-section {
  display: grid;
  gap: 8px;
}

.suggestion-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 950;
}

.suggestion-section.emphasis {
  border-radius: 16px;
  background: #fff8e7;
  padding: 11px;
}

.food-group {
  margin-top: 12px;
}

.food-group h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.food-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.food-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 800;
}

.food-chip.pool-snacks {
  background: #edf8f5;
}

.food-chip.dinner,
.food-chip.sides {
  background: #fff4d8;
}

.food-chip.dessert {
  background: #f8edf5;
}

.food-chip.drinks,
.food-chip.supplies {
  background: #eef3ff;
}

.food-chip.selected {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.more-ideas {
  border: 0;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.more-ideas summary {
  width: fit-content;
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 950;
  padding: 6px 0;
}

.more-ideas .suggestion-section {
  margin-top: 10px;
}

.custom-food-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.response-form .form-actions {
  position: sticky;
  bottom: -20px;
  z-index: 2;
  margin: 2px -20px -20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 20px 18px;
}

.response-form textarea {
  min-height: 82px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-label input {
  width: 22px;
  min-height: 22px;
}

.sheet-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.schedule-panel {
  display: grid;
  gap: 14px;
}

.schedule-list {
  display: grid;
  gap: 8px;
}

.schedule-plan {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
}

.schedule-plan.is-active {
  border-color: var(--line-strong);
  background: var(--teal-soft);
}

.schedule-plan strong {
  font-size: 0.98rem;
}

.schedule-plan span {
  color: var(--muted);
  font-size: 0.86rem;
}

.schedule-plan em {
  width: fit-content;
  margin-top: 3px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  padding: 3px 7px;
  text-transform: uppercase;
}

.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
}

.tour-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
}

.tour-spotlight {
  position: fixed;
  left: var(--spot-left, 50vw);
  top: var(--spot-top, 30vh);
  z-index: 1;
  width: var(--spot-width, 160px);
  height: var(--spot-height, 120px);
  border: 3px solid rgba(0, 143, 150, 0.9);
  border-radius: 24px;
  box-shadow:
    0 0 0 9999px rgba(12, 35, 68, 0.58),
    0 0 0 8px rgba(255, 254, 250, 0.95),
    0 22px 70px rgba(12, 35, 68, 0.24);
  opacity: 0;
  pointer-events: none;
  transition:
    left 180ms ease,
    top 180ms ease,
    width 180ms ease,
    height 180ms ease,
    opacity 140ms ease;
}

.tour-spotlight.is-ready {
  opacity: 1;
}

.tour-highlight {
  position: relative;
  z-index: 1;
  outline: 4px solid rgba(255, 194, 73, 0.9);
  outline-offset: 8px;
  box-shadow: 0 18px 52px rgba(12, 35, 68, 0.22);
}

.tour-card {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 22px;
  pointer-events: auto;
}

.tour-count {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tour-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.tour-card p:not(.tour-count) {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.tour-actions > div {
  display: flex;
  gap: 10px;
}

.tour-actions .button {
  min-height: 46px;
  padding-inline: 16px;
}

@media (max-width: 920px) {
  .page {
    padding: 16px;
  }

  .event-card {
    min-height: 0;
    padding: 26px;
  }

  .compact-event-card {
    padding-bottom: 12px;
  }

  .hero-art {
    opacity: 0.32;
    transform: scale(0.85);
    transform-origin: right bottom;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .identity-layout {
    grid-template-columns: 1fr;
    gap: 9px;
  }

}

@media (max-width: 620px) {
  .page {
    padding: 10px;
  }

  .event-card,
  .identity-card,
  .section {
    border-radius: 16px;
  }

  .event-card {
    padding: 18px 16px;
  }

  .compact-event-card {
    padding-bottom: 8px;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .event-details {
    display: grid;
    gap: 7px;
    font-size: 0.92rem;
  }

  .note-line {
    margin-top: 10px;
    font-size: 0.92rem;
  }

  .hero-tour-button {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 0.84rem;
  }

  .top-utility-bar {
    justify-content: stretch;
    margin-top: 8px;
    padding: 7px;
  }

  .top-utility-bar .hero-tour-button {
    flex: 1 1 0;
    justify-content: center;
  }

  .note-chip {
    width: 100%;
    align-items: flex-start;
    border-radius: 18px;
  }

  .hero-art {
    display: none;
  }

  .identity-card,
  .section {
    padding: 14px;
  }

  .identity-card {
    gap: 8px;
    margin-top: 10px;
  }

  .identity-layout p {
    font-size: 0.98rem;
  }

  .identity-help,
  .empty,
  .section-note {
    font-size: 0.82rem;
  }

  .action-grid {
    gap: 8px;
    margin: 10px 0 30px;
  }

  .content-grid {
    gap: 12px;
  }

  .content-grid::before {
    content: "Start here ↓";
    display: block;
    justify-self: center;
    margin: -14px 0 2px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fffefa;
    color: var(--teal-dark);
    box-shadow: var(--shadow-soft);
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .content-grid::before {
    grid-column: 1 / -1;
  }

  .action-button {
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.92rem;
    padding: 10px 14px;
  }

  .primary-stack,
  .secondary-stack {
    gap: 10px;
  }

  .section-title {
    margin-bottom: 11px;
  }

  .section-title h2 {
    font-size: 1.18rem;
  }

  .section-title p {
    margin: 4px 0 0 40px;
    font-size: 0.82rem;
  }

  .simple-list,
  .family-response-list,
  .summary-table {
    border-radius: 12px;
  }

  .meal-vote-card {
    margin-bottom: 16px;
  }

  .meal-vote-note {
    margin: -4px 0 10px;
    font-size: 0.82rem;
  }

  .meal-vote-options {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .meal-vote-option {
    min-height: 48px;
    padding: 8px 10px;
  }

  .custom-vote-row {
    grid-template-columns: 1fr;
  }

  .need-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px 10px;
  }

  .need-row .mini-button {
    grid-column: auto;
    width: auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .item-icon,
  .preview-icons i {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .need-row h3 {
    font-size: 0.92rem;
  }

  .need-row p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .plain-group {
    margin-top: 12px;
  }

  .plain-group h3 {
    margin: 0 0 6px 6px;
    font-size: 0.72rem;
  }

  .family-response-list > li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    align-items: start;
  }

  .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
  }

  .response-name {
    gap: 5px;
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .host-pill,
  .you-pill {
    padding: 2px 7px;
    font-size: 0.66rem;
  }

  .response-sublist {
    margin-top: 4px;
    padding-left: 0;
    list-style: none;
  }

  .response-sublist li {
    margin: 2px 0;
    font-size: 0.8rem;
    line-height: 1.26;
  }

  .section-link {
    margin-top: 9px;
    padding: 6px;
    font-size: 0.84rem;
  }

  .summary-table div {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .covered-details {
    margin-top: 6px;
    padding-top: 6px;
  }

  .covered-group {
    margin-top: 8px;
  }

  .covered-group h3 {
    margin: 0 0 4px 4px;
    font-size: 0.68rem;
  }

  .covered-group ul {
    gap: 3px;
  }

  .covered-row {
    grid-template-columns: 10px minmax(0, 1.2fr) minmax(72px, 0.8fr);
    gap: 5px;
    border: 0;
    border-radius: 7px;
    padding: 4px 6px;
    font-size: 0.76rem;
  }

  .covered-dot {
    width: 8px;
    height: 8px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .covered-row strong {
    overflow: hidden;
    font-size: 0.7rem;
    text-overflow: ellipsis;
  }

  .update-message {
    padding: 9px 10px;
  }

  .update-message p,
  .updates-list time {
    font-size: 0.82rem;
  }

  .needed-preview {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .preview-icons {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .host-picks,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .status-picks {
    grid-template-columns: 1fr 1fr;
  }

  .modal-backdrop {
    padding: 8px;
  }

  .sheet {
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  .sheet-head {
    padding: 16px 16px 10px;
  }

  .sheet-body {
    padding: 14px 16px 16px;
  }

  .response-form .form-actions {
    bottom: -16px;
    margin: 2px -16px -16px;
    padding: 12px 16px 16px;
  }

  .custom-food-row {
    grid-template-columns: 1fr;
  }

  .tour-spotlight {
    border-width: 2px;
    border-radius: 18px;
    box-shadow:
      0 0 0 9999px rgba(12, 35, 68, 0.5),
      0 0 0 5px rgba(255, 254, 250, 0.95),
      0 14px 42px rgba(12, 35, 68, 0.22);
  }

  .tour-highlight {
    outline-width: 3px;
    outline-offset: 5px;
  }

  .tour-card {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    width: calc(100vw - 16px);
    max-height: 33dvh;
    overflow: auto;
    border-radius: 18px;
    padding: 12px;
  }

  .tour-count {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .tour-card h2 {
    font-size: 1.08rem;
  }

  .tour-card p:not(.tour-count) {
    margin-top: 5px;
    font-size: 0.84rem;
    line-height: 1.32;
  }

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

  .tour-actions > div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .tour-actions .button {
    min-height: 38px;
    border-radius: 11px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .identity-card,
  .action-grid,
  .manage-card,
  .mini-button,
  .text-button,
  .section-link,
  .hero-art {
    display: none !important;
  }

  .event-card,
  .section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
