@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/prata-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/prata-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f4ee;
  --paper: #ffffff;
  --ink: #2e3a31;
  --ink-soft: #65715f;
  --sage: #5b7f5f;
  --sage-pale: #e2ebdd;
  --rose: #a95a6e;
  --rose-soft: #eec6ce;
  --rose-pale: #f7e5e8;
  --line: #e8dfd3;
  --busy: #9b4a40;
  --focus: #a95a6e;
  --beige: #eee5d6;
  --display: 'Prata', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

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

input[type='text'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='url'],
input[type='number'],
input[type='date'],
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.15s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
}

textarea {
  resize: vertical;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sage-pale) 0%, var(--sage-pale) 50%, color-mix(in srgb, var(--sage-pale) 50%, var(--beige)) 80%, var(--bg) 100%);
  padding: 40px 16px 44px;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.hero-names {
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage);
}

.hero-date {
  font-size: clamp(44px, 11vw, 104px);
  letter-spacing: -0.01em;
}

.hero-date span {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-top: 6px;
}

.hero-countdown {
  margin: 18px 0 0;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rose-pale);
  font-weight: 600;
  font-size: 15px;
}

.hero-branch {
  position: absolute;
  right: max(-40px, calc(50% - 560px));
  bottom: -14px;
  width: clamp(160px, 34vw, 280px);
  height: auto;
  animation: sway 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transform-origin: 8% 96%;
}

.hero-branch .stem {
  fill: none;
  stroke: var(--sage);
  stroke-width: 3;
  stroke-linecap: round;
}

.hero-branch .leaf {
  fill: var(--sage);
  opacity: 0.85;
}

.hero-branch .leaf-alt {
  opacity: 0.55;
}

.hero-branch .bloom {
  fill: var(--rose-soft);
}

.hero-branch .bloom-core {
  fill: var(--rose);
}

@keyframes sway {
  from {
    transform: rotate(-9deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-branch {
    animation: none;
  }
}

.app {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: -22px 0 28px;
  padding: 5px;
  background: var(--paper);
  border-radius: 999px;
  border: 1px solid var(--line);
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  background: none;
  cursor: pointer;
}

.tab[aria-current='page'] {
  background: var(--sage);
  color: var(--paper);
}

.app-footer {
  max-width: 880px;
  margin: -48px auto 0;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

.app-footer[hidden] {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  background: var(--rose-soft);
  border-color: var(--rose-soft);
  color: var(--ink);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--rose-soft) 80%, var(--rose));
  border-color: color-mix(in srgb, var(--rose-soft) 80%, var(--rose));
}

.button-small {
  padding: 8px 14px;
  font-size: 14px;
}

.button-danger {
  justify-self: start;
  margin-top: 36px;
  color: var(--busy);
  border-color: currentColor;
  background: none;
}

.login {
  max-width: 380px;
  margin: 48px auto 0;
  display: grid;
  gap: 10px;
}

.login-title {
  font-size: 30px;
  margin-bottom: 14px;
}

.login label {
  font-weight: 600;
  font-size: 14px;
}

.form-error {
  margin: 0;
  min-height: 1.5em;
  color: var(--busy);
  font-size: 14px;
}

.add-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.filters {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.chip[aria-pressed='true'] {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--paper);
}

.chip-count {
  font-size: 12px;
  opacity: 0.7;
}

.venues {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--line);
}

.venues li + li {
  border-top: 1px solid var(--line);
}

.venue {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 18px 20px;
  text-decoration: none;
  transition: background 0.15s;
}

.venue:hover {
  background: color-mix(in srgb, var(--rose-pale) 35%, transparent);
}

.venue-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.venue-thumb {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--sage-pale);
}

.venue-thumb-empty {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 34px;
  color: var(--sage);
  background: linear-gradient(135deg, var(--sage-pale), var(--rose-pale));
}

.venue-muted .venue-thumb {
  filter: grayscale(1);
}

.venue-muted {
  opacity: 0.55;
}

.venue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.venue-name {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
}

.venue-address {
  color: var(--ink-soft);
  font-size: 14px;
}

.venue-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 14px;
}

.pill,
.date-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status-planned {
  background: var(--beige);
}
.status-called {
  background: var(--rose-pale);
}
.status-visit {
  background: color-mix(in srgb, var(--sage) 30%, var(--paper));
}
.status-visited {
  background: color-mix(in srgb, var(--rose-soft) 55%, var(--paper));
}
.status-favorite {
  background: var(--rose);
  color: var(--paper);
}
.status-booked {
  background: var(--ink);
  color: var(--paper);
}
.status-rejected {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.date-badge {
  padding-left: 0;
  font-weight: 600;
}
.date-unknown {
  color: var(--ink-soft);
}
.date-free {
  color: var(--sage);
}
.date-busy {
  color: var(--busy);
}

.hearts {
  color: var(--rose);
  letter-spacing: 2px;
}

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.progress-track {
  flex: 1;
  max-width: 220px;
  height: 5px;
  border-radius: 99px;
  background: var(--sage-pale);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: calc(var(--value, 0) * 100%);
  background: var(--sage);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.chips-cities .chip {
  font-weight: 600;
}

.chips-cities .chip[aria-pressed='true'] {
  background: var(--rose);
  border-color: var(--rose);
}

.city-group + .city-group {
  margin-top: 32px;
}

.city-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 26px;
  margin: 0 4px 12px;
}

.city-count {
  white-space: nowrap;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery-stage {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sage-pale);
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-open img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  object-fit: cover;
}

.gallery-actions {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.gallery-actions > * {
  pointer-events: auto;
}

.gallery-badge,
.gallery-action {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  backdrop-filter: blur(8px);
}

.gallery-badge {
  background: var(--rose);
  color: var(--paper);
}

.gallery-action {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  cursor: pointer;
}

.gallery-action:last-child {
  margin-left: auto;
}

.gallery-action:disabled {
  opacity: 0.6;
  cursor: progress;
}

.gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.gallery-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sage-pale);
  cursor: pointer;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb[aria-pressed='true'] {
  border-color: var(--rose);
}

.gallery-add {
  display: grid;
  place-items: center;
  border: 2px dashed var(--rose-soft);
  background: none;
  color: var(--rose);
  font-size: 28px;
  line-height: 1;
}

.gallery-add:focus-within,
.gallery-empty:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.gallery-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  border: 2px dashed var(--rose-soft);
  border-radius: 24px;
  text-align: center;
  cursor: pointer;
  background: color-mix(in srgb, var(--rose-pale) 30%, transparent);
}

.gallery-empty-title {
  font-family: var(--display);
  font-size: 22px;
}

.gallery-empty-hint {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 6px;
}

label[aria-disabled='true'] {
  cursor: progress;
  opacity: 0.7;
}

.gallery-status {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.lightbox {
  max-width: min(96vw, 1600px);
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: none;
  cursor: zoom-out;
}

.lightbox::backdrop {
  background: rgb(20 30 24 / 0.86);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 18px;
  object-fit: contain;
}

.lightbox-hint {
  margin: 8px 0 0;
  text-align: center;
  color: #f4e6e9;
  font-size: 13px;
}

.net-status {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 10;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 10px 18px;
  border-radius: 18px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 24px rgb(38 57 45 / 0.25);
}

.net-status[data-status='syncing'] {
  background: var(--sage);
}

.net-status[hidden] {
  display: none;
}

.install-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--sage-pale);
}

.install-hint p {
  margin: 0;
  font-size: 14px;
}

.gallery-waiting {
  cursor: default;
  color: var(--ink-soft);
}

.save-state[data-state='local'] {
  color: var(--rose);
  font-weight: 600;
}

select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
}

.stat {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

.stat-value {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-soft);
}

.stat-alert .stat-value {
  color: var(--busy);
}

.guest-add {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.guest-add .button {
  justify-self: start;
}

.guest-add-row,
.guest-editor-fields,
.task-editor-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.guest-side + .guest-side,
.phase + .phase {
  margin-top: 32px;
}

.guest-group h3 {
  font-size: 18px;
  margin: 16px 4px 8px;
}

.guest-list,
.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.guest + .guest,
.task + .task {
  border-top: 1px solid var(--line);
}

.guest-row,
.task-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.guest-name {
  font-weight: 600;
}

.guest-household {
  font-size: 13px;
  color: var(--ink-soft);
}

.guest-badges {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.rsvp-pending {
  background: var(--beige);
  color: var(--ink-soft);
}

.rsvp-yes {
  background: var(--sage);
  color: var(--paper);
}

.rsvp-no {
  background: var(--line);
  color: var(--ink-soft);
  text-decoration: line-through;
}

.badge-child {
  background: var(--rose-pale);
}

.guest[data-expanded='true'],
.task[data-expanded='true'] {
  background: color-mix(in srgb, var(--rose-pale) 25%, var(--paper));
}

.guest-editor,
.task-editor {
  display: grid;
  gap: 14px;
  padding: 4px 16px 16px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check-line input,
.task-check {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--sage);
  flex: 0 0 auto;
}

.guest-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.button-quiet-danger {
  color: var(--busy);
  background: none;
}

.button-quiet-danger[data-armed='true'] {
  background: var(--busy);
  border-color: var(--busy);
  color: var(--paper);
  white-space: normal;
}

.phase-current .city-title {
  color: var(--rose);
}

.phase-now {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--paper);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
}

.task-line {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding-left: 16px;
}

.task-line .task-check {
  margin-top: 14px;
}

.task-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.task-title {
  font-weight: 600;
}

.task[data-done='true'] .task-title {
  color: var(--ink-soft);
  text-decoration: line-through;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.task-overdue {
  color: var(--busy);
  font-weight: 600;
}

textarea.task-notes {
  field-sizing: content;
  min-height: 80px;
  white-space: pre-wrap;
}

.task-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hint-button {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rose-soft);
  border-radius: 50%;
  background: var(--paper);
  color: var(--rose);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.hint-button:hover {
  background: var(--rose-pale);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.sheet {
  width: min(760px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(38 57 45 / 0.3);
}

.sheet::backdrop {
  background: rgb(38 57 45 / 0.45);
}

.sheet-body {
  padding: 0 24px 28px;
}

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -24px 18px;
  padding: 18px 24px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.sheet-head h2 {
  font-size: 24px;
}

.sheet-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.vendors {
  display: grid;
  gap: 10px;
}

.vendors .stats {
  margin-bottom: 14px;
}

.vendor-category {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.vendor-category > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.vendor-category > summary::-webkit-details-marker {
  display: none;
}

.vendor-category > summary::after {
  content: '+';
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--rose);
  font-size: 22px;
  line-height: 1;
}

.vendor-category[open] > summary::after {
  content: '−';
}

.vendor-category-title {
  font-family: var(--display);
  font-size: 20px;
}

.vendor-category-caption {
  font-size: 13px;
  color: var(--ink-soft);
}

.vendor-category-done .vendor-category-caption {
  color: var(--sage);
  font-weight: 600;
}

.vendor-category-done {
  border-color: color-mix(in srgb, var(--sage) 45%, var(--line));
}

.vendor-category .guest-list {
  margin: 0 12px;
}

.vendor-category .task-add {
  margin: 10px 12px 14px;
}

.vendor-badge.vendor-candidate {
  background: var(--beige);
}

.vendor-badge.vendor-contacted,
.vendor-badge.vendor-meeting {
  background: var(--rose-pale);
}

.vendor-badge.vendor-chosen {
  background: var(--rose);
  color: var(--paper);
}

.vendor-badge.vendor-booked {
  background: var(--ink);
  color: var(--paper);
}

.vendor-badge.vendor-rejected {
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.radio-chip.vendor-chosen input:checked + span {
  background: var(--rose);
}

.radio-chip.vendor-booked input:checked + span {
  background: var(--ink);
}

.radio-chip.vendor-rejected input:checked + span {
  background: var(--line);
  color: var(--ink);
}

.vendor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vendor-questions {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--rose-pale);
}

.vendor-questions summary {
  font-weight: 600;
  cursor: pointer;
}

.vendor-questions ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.guest-summary {
  margin-bottom: 24px;
}

.drink-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.drink-summary .field-label {
  width: 100%;
  margin-bottom: 2px;
}

.drink-badge {
  background: var(--rose-pale);
}

.panel {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.panel:first-child {
  margin-top: 0;
}

.panel > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  cursor: pointer;
  list-style: none;
}

.panel > summary::-webkit-details-marker {
  display: none;
}

.panel > summary::after {
  content: '+';
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--rose);
  font-size: 22px;
  line-height: 1;
}

.panel[open] > summary::after {
  content: '−';
}

.panel-title {
  font-weight: 600;
}

.panel-caption {
  font-size: 13px;
  color: var(--ink-soft);
}

.panel .stats {
  margin: 12px 0 10px;
}

.name-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.name-column h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
}

.name-column ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 4px;
}

.name-column li span:first-child {
  margin-right: 8px;
}

.name-count {
  display: inline-block;
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--beige);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.name-empty {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.badge-need {
  background: var(--sage-pale);
}

.guest-checks {
  display: grid;
  gap: 10px;
}

.drag-hint {
  margin: -4px 4px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.guest-line {
  display: flex;
  align-items: stretch;
}

.guest-line .guest-row {
  flex: 1;
  min-width: 0;
  padding-left: 4px;
}

.drag-handle {
  flex: 0 0 auto;
  width: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.invite {
  margin: 6px;
  padding: 2px 0 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rose-pale) 55%, var(--paper));
  box-shadow: inset 3px 0 0 var(--rose-soft);
}

.guest-list > .invite + .guest,
.guest-list > .guest + .invite,
.guest-list > .invite + .invite {
  border-top: 0;
}

.invite-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  padding: 10px 16px 6px 44px;
  border: 0;
  background: none;
  color: var(--rose);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.invite-unassigned {
  background: var(--beige);
  box-shadow: inset 3px 0 0 var(--line);
}

.invite-unassigned .invite-head {
  margin: 0;
  color: var(--ink-soft);
  cursor: default;
}

.invite-head:disabled {
  cursor: default;
}

.invite-envelope-line {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.invite-link-icon {
  font-size: 14px;
}

.invite-link-icon.is-pending {
  opacity: 0.35;
}

.invite[data-expanded='true'] > .invite-head {
  border-bottom: 1px dashed var(--rose-soft);
}

.invite-panel {
  display: grid;
  gap: 14px;
  margin: 0 10px 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
}

.invite-envelope {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.invite-envelope .field {
  justify-self: stretch;
}

.invite-envelope-preview {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
}

.invite-panel-row {
  display: grid;
  gap: 4px;
}

.invite-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.invite-link-text {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.invite-members {
  list-style: none;
  margin: 0;
  padding: 0;
}

.invite-members .guest + .guest {
  border-top: 1px dashed var(--rose-soft);
}

.guest.dragging {
  opacity: 0.35;
}

.drag-ghost {
  position: fixed;
  z-index: 50;
  margin: 0;
  list-style: none;
  pointer-events: none;
  background: var(--paper);
  border: 1px solid var(--rose-soft);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgb(38 57 45 / 0.2);
  opacity: 0.95;
}

.drag-ghost .guest-editor {
  display: none;
}

.guest[data-drop='before'] {
  box-shadow: inset 0 3px 0 var(--sage);
}

.guest[data-drop='after'] {
  box-shadow: inset 0 -3px 0 var(--sage);
}

.guest[data-drop='join'] {
  background: color-mix(in srgb, var(--sage-pale) 70%, var(--paper));
  box-shadow: inset 0 0 0 2px var(--sage);
  border-radius: 12px;
}

.empty {
  padding: 48px 20px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--rose-soft);
  border-radius: 18px;
  color: var(--ink-soft);
}

.empty p {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}

.editor {
  display: grid;
  gap: 22px;
}

.editor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 0;
  background: var(--bg);
}

.back {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.back::before {
  content: '‹ ';
}

.save-state {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: right;
}

.save-state[data-state='saved'] {
  color: var(--sage);
}

input.editor-name {
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 40px);
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

.radio-group,
.rating,
.question-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.radio-group legend,
.rating legend,
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  padding: 0;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.radio-chip {
  position: relative;
  cursor: pointer;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.radio-chip span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.radio-chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.radio-chip input:checked + span {
  border-color: transparent;
  font-weight: 600;
  background: var(--sage);
  color: var(--paper);
}

.status-planned input:checked + span,
.date-unknown input:checked + span {
  background: var(--beige);
  color: var(--ink);
}
.status-called input:checked + span {
  background: var(--rose-pale);
}
.status-visit input:checked + span {
  background: color-mix(in srgb, var(--sage) 30%, var(--paper));
}
.status-visited input:checked + span {
  background: color-mix(in srgb, var(--rose-soft) 55%, var(--paper));
}
.status-favorite input:checked + span {
  background: var(--rose);
  color: var(--paper);
}
.status-booked input:checked + span {
  background: var(--ink);
  color: var(--paper);
}
.status-rejected input:checked + span {
  background: var(--line);
}
.date-free input:checked + span {
  background: var(--sage);
  color: var(--paper);
}
.date-busy input:checked + span {
  background: var(--busy);
  color: var(--paper);
}

.radio-chip.status-planned,
.radio-chip.status-called,
.radio-chip.status-visit,
.radio-chip.status-visited,
.radio-chip.status-favorite,
.radio-chip.status-booked,
.radio-chip.status-rejected,
.radio-chip.date-unknown,
.radio-chip.date-free,
.radio-chip.date-busy {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.field {
  display: block;
  min-width: 0;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-suffix {
  color: var(--ink-soft);
  font-size: 14px;
  white-space: nowrap;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.rating legend {
  width: 100%;
}

.rating-heart {
  border: 0;
  background: none;
  padding: 2px 4px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--line);
  transition: color 0.15s, transform 0.15s;
}

.rating-heart[aria-pressed='true'] {
  color: var(--rose);
}

.rating-heart:active {
  transform: scale(0.88);
}

.questions {
  display: grid;
  gap: 24px;
}

.questions-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}

.questions-head h2 {
  font-size: 28px;
}

.questions-total {
  flex: 1;
  max-width: 320px;
}

.question-group legend {
  font-family: var(--display);
  font-size: 20px;
  padding: 0;
  margin-bottom: 10px;
}

.question {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.question[data-done='true'] {
  border-color: color-mix(in srgb, var(--sage) 45%, var(--line));
  background: color-mix(in srgb, var(--sage-pale) 45%, var(--paper));
}

.question-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.question-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--sage);
}

.question[data-done='true'] .question-check span {
  color: var(--ink-soft);
}

textarea.question-note {
  min-height: 42px;
  font-size: 15px;
  background: transparent;
  field-sizing: content;
}

.notes textarea {
  field-sizing: content;
  min-height: 120px;
}

.memo {
  display: grid;
  gap: 36px;
}

.memo-block h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.memo-script {
  margin: 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--rose-pale);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.6;
  max-width: 68ch;
}

.memo-steps,
.memo-tips {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 10px;
  max-width: 70ch;
}

.memo-steps li::marker {
  font-family: var(--display);
  color: var(--rose);
}

.memo-tips li::marker {
  color: var(--sage);
}

.memo-hint {
  margin: -4px 0 18px;
  color: var(--ink-soft);
  max-width: 70ch;
}

.memo-group {
  margin-bottom: 20px;
}

.memo-group h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.memo-group ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
  max-width: 70ch;
}

.memo-group li::marker {
  content: '♡  ';
  color: var(--rose);
}

.layouts {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.layout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-settings {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.chip-quiet {
  color: var(--ink-soft);
}

.chip-quiet[aria-expanded='true'] {
  background: var(--beige);
}

.seat-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 4px 10px;
}

.seat-summary p {
  margin: 0;
  font-weight: 600;
}

.seat-hint {
  margin: 0 4px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.seat-bar {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  background: var(--rose-pale);
  border: 1px solid var(--rose-soft);
  box-shadow: 0 6px 18px rgb(46 58 49 / 0.12);
}

.seat-bar p {
  margin: 0;
  font-size: 14px;
}

.seat-notice {
  color: var(--busy);
  font-weight: 600;
}

.pool-list,
.pool-members,
.table-guests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pool-list {
  margin-top: 12px;
}

.pool-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1.5px dashed var(--line);
}

.pool-all {
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.seat-guest {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.seat-chip {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.side-groom {
  background: var(--sage-pale);
  border-color: color-mix(in srgb, var(--sage) 45%, var(--sage-pale));
}

.side-bride {
  background: var(--rose-pale);
  border-color: var(--rose-soft);
}

.side-both {
  background: var(--beige);
  border-color: color-mix(in srgb, var(--ink-soft) 30%, var(--beige));
}

.seat-chip[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}

.seat-hint p {
  margin: 0;
}

.seat-hint .side-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.side-legend .seat-chip {
  display: inline-block;
  cursor: default;
}

.seat-guest-declined .seat-chip {
  text-decoration: line-through;
  color: var(--ink-soft);
}

.seat-remove {
  margin-left: -4px;
  padding: 2px 9px 2px 4px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.hall {
  margin-top: 16px;
  padding: 18px 14px 10px;
  border: 2px solid var(--beige);
  border-radius: 20px;
  background: linear-gradient(var(--paper), color-mix(in srgb, var(--paper) 70%, var(--bg)));
}

.hall-head {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hall-floor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 10px;
}

.hall-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.hall-aisle {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg, var(--sage-pale) 0 6px, transparent 6px 12px);
}

.hall-aisle span {
  writing-mode: vertical-rl;
  color: var(--sage);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hall-entrance {
  margin: 14px auto 0;
  width: max-content;
  padding: 2px 18px;
  border-top: 3px solid var(--rose-soft);
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hall-add {
  padding: 12px;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  background: none;
  color: var(--sage);
  font-weight: 600;
  cursor: pointer;
}

.hall-head .hall-add {
  width: min(100%, 320px);
}

.hall-table {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.hall-table-head {
  width: min(100%, 420px);
}

.hall-table[data-fits='true'] {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-pale);
  cursor: pointer;
}

.hall-table[data-fits='false'] {
  opacity: 0.55;
}

.table-top {
  --size: 104px;
  --seat: 22px;
  position: relative;
  display: grid;
  place-content: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--sage-pale);
  text-align: center;
}

.hall-table-head .table-top {
  --size: auto;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px 10px;
  border-radius: 12px;
  background: var(--rose-pale);
}

.table-name {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.2;
}

.table-count {
  font-size: 12px;
  color: var(--ink-soft);
}

.hall-table[data-state='full'] .table-count {
  color: var(--sage);
  font-weight: 600;
}

.hall-table[data-state='over'] .table-count {
  color: var(--busy);
  font-weight: 700;
}

.seat-ring {
  position: absolute;
  inset: 0;
}

.seat-spot {
  --radius: calc(var(--size) / 2 + 3px);
  position: absolute;
  left: calc(50% + var(--dx) * var(--radius));
  top: calc(50% + var(--dy) * var(--radius));
}

.seat {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--seat);
  height: var(--seat);
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  background: var(--paper);
  color: var(--sage);
  font: 700 10px/1 var(--body);
  transform: translate(-50%, -50%);
}

.seat-taken {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--paper);
}

.seat-pinned {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.seat-mine {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--rose-soft);
}

button.seat-target {
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--sage-pale);
}

button.seat-target:hover,
button.seat-target:focus-visible {
  transform: translate(-50%, -50%) scale(1.18);
}

.seat-label {
  display: none;
}

.seat-pin {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-right: 5px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
}

.seat-chip[aria-pressed='true'] .seat-pin {
  background: var(--paper);
  color: var(--ink);
}

.hall-table-head .seat-ring {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.hall-table-head .seat-spot {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hall-table-head .seat {
  position: static;
  transform: none;
}

.hall-table-head button.seat-target:hover,
.hall-table-head button.seat-target:focus-visible {
  transform: scale(1.18);
}

.hall-table-round .table-top {
  margin: 14px 0 6px;
}

@media (min-width: 900px) {
  .table-top {
    --size: 150px;
    --seat: 26px;
  }
  .hall-table-round .table-top {
    margin: 48px 0 42px;
  }
  .seat {
    font-size: 11px;
  }
  .seat-label {
    display: block;
    position: absolute;
    left: calc(var(--dx) * 56px);
    top: calc(var(--dy) * 32px);
    width: 78px;
    transform: translate(-50%, -50%);
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    pointer-events: none;
  }
  .seat-label-pinned {
    color: var(--ink);
    font-weight: 600;
  }
  .hall-table-head .seat-label {
    position: static;
    width: 64px;
    transform: none;
  }
}

.table-couple {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
}

.table-guests {
  justify-content: center;
}

.table-guests .seat-guest {
  max-width: 100%;
}

.table-guests .seat-chip {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-seat {
  max-width: 100%;
  white-space: normal;
}

.table-gear {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.table-gear[aria-expanded='true'] {
  background: var(--beige);
}

.table-settings input,
.table-settings select {
  width: 100%;
  min-width: 0;
}

.table-settings {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .hero {
    padding-top: 28px;
  }
  .hero-branch {
    opacity: 0.55;
  }
  .add-form {
    flex-wrap: wrap;
  }
  .add-form input {
    flex: 1 1 100%;
  }
  .add-form .button {
    flex: 1 1 auto;
  }
  .sheet {
    width: 100vw;
    max-width: 100vw;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
  .sheet-body {
    padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  }
  .sheet-head {
    margin: 0 -16px 16px;
    padding: 16px 16px 12px;
  }
  .install-hint {
    flex-direction: column;
    align-items: flex-start;
  }
  .tabs {
    gap: 0;
  }
  .tab {
    flex: 1 1 auto;
    padding: 8px 5px;
    font-size: 12.5px;
    text-align: center;
  }
  .hall {
    padding: 14px 8px 8px;
  }
  .hall-floor {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 6px;
  }
  .hall-table {
    padding: 12px 6px;
  }
  .table-top {
    --size: 100px;
  }
  .venue {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .venue-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
  .venue-thumb-empty {
    font-size: 26px;
  }
  .gallery-stage,
  .gallery-empty {
    border-radius: 18px;
  }
  .gallery-open img {
    aspect-ratio: 4 / 3;
  }
  .venue-head {
    flex-direction: column;
    gap: 6px;
  }
  .fields {
    padding: 16px;
  }
  .memo-script {
    font-size: 18px;
    padding: 18px;
  }
}

.rsvp-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0;
}

.rsvp-detail dt {
  margin-bottom: 2px;
}

.rsvp-detail dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.legacy-groups ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.studio-sheet {
  width: min(1100px, calc(100vw - 32px));
  height: 92vh;
  max-height: 92vh;
}

.studio-sheet .sheet-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 0;
}

.studio-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
}

@media (max-width: 560px) {
  .studio-sheet {
    width: 100vw;
  }
}

.game-admin section {
  margin-bottom: 24px;
}

.game-table,
.game-table tbody {
  display: block;
}

.game-table {
  font-size: 14px;
}

.game-table tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.game-table td {
  min-width: 0;
  overflow-wrap: anywhere;
}

.game-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.game-actions .button {
  padding: 6px 14px;
  font-size: 13px;
}
