:root {
  --ink: #31324a;
  --muted: #6f6f82;
  --paper: #fff7fb;
  --surface: #fffefd;
  --sage: #acd2ba;
  --sage-deep: #6f9b81;
  --rose: #eba8b2;
  --blush: #f8dce5;
  --butter: #f4dfa8;
  --lavender: #cbbbeb;
  --sky: #b8dcf2;
  --clay: #b67889;
  --border: #eadde6;
  --shadow: 0 18px 50px rgba(49, 50, 74, 0.13);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

main {
  display: flex;
  flex-direction: column;
}

#rsvp {
  order: -1;
}

body::selection {
  background: var(--blush);
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 32px;
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid rgba(226, 216, 206, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.header-actions,
.hero-actions,
.compact-actions,
.inline-form {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--surface);
  background: linear-gradient(135deg, var(--rose), var(--sage-deep));
  border-radius: 8px;
  font-size: 0.82rem;
}

.main-nav {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a,
.site-footer a {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
  background: rgba(203, 187, 235, 0.22);
}

.header-actions {
  gap: 10px;
}

.login-status {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-status {
  max-width: 180px;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-status.is-server {
  color: #50745e;
  background: #e8f6ee;
  border-color: #b9dfc7;
}

.storage-status.is-local {
  color: #8c4255;
  background: #ffeaf0;
  border-color: #f1bec9;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 72px);
  isolation: isolate;
  overflow: hidden;
  color: var(--surface);
  background: #31324a;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -2;
}

.hero::before {
  background-image: url("assets/hero-wedding.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(49, 50, 74, 0.82), rgba(92, 72, 99, 0.36) 48%, rgba(255, 247, 251, 0.08)),
    linear-gradient(0deg, rgba(49, 50, 74, 0.52), rgba(49, 50, 74, 0.04) 55%);
}

.hero-content {
  width: min(720px, calc(100% - 40px));
  margin: auto auto 122px max(28px, calc((100% - var(--max-width)) / 2));
  padding-top: 70px;
}

.eyebrow,
.tile-label {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe7f0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  font-weight: 500;
}

h2 {
  font-size: 2.6rem;
  font-weight: 780;
}

h3 {
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions,
.compact-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--surface);
  background: #7d8fc7;
  border: 1px solid #7d8fc7;
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: #6d7fb8;
  border-color: #6d7fb8;
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(120, 151, 168, 0.55);
  outline-offset: 2px;
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--surface);
}

.button-secondary:hover {
  color: var(--ink);
  background: #f6eee5;
  border-color: #f6eee5;
}

.button-ghost {
  color: #6d7fb8;
  background: transparent;
  border-color: rgba(125, 143, 199, 0.42);
}

.button-ghost:hover {
  color: var(--surface);
  background: #7d8fc7;
  border-color: #7d8fc7;
}

.button-small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.hero-strip {
  position: absolute;
  right: max(22px, calc((100% - var(--max-width)) / 2));
  bottom: 22px;
  left: max(22px, calc((100% - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.hero-strip div {
  min-width: 0;
  padding: 18px;
}

.hero-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.hero-strip strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 1.1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding: 88px 24px;
}

.section-light {
  background: var(--paper);
}

.section-white {
  background: var(--surface);
}

.section-accent {
  background:
    linear-gradient(135deg, rgba(203, 187, 235, 0.34), rgba(184, 220, 242, 0.24), rgba(248, 220, 229, 0.34)),
    var(--paper);
}

.section-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.horizontal-heading,
.split-layout,
.travel-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.horizontal-heading {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.info-grid,
.feature-grid,
.card-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-tile,
.feature-grid article,
.gift-card,
.song-card,
.guestbook-card,
.admin-panel,
.login-panel,
.guest-portal,
.progress-card,
.travel-list article,
.summary-card,
.upload-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(49, 50, 74, 0.08);
}

.info-tile,
.feature-grid article,
.travel-list article,
.summary-card {
  padding: 22px;
}

.info-tile p,
.feature-grid p,
.travel-list p,
.gift-card p,
.song-card p,
.guestbook-card p,
.summary-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-left: 4px solid var(--lavender);
  border-radius: 8px;
  background: #fbf6ff;
}

.timeline time {
  color: var(--clay);
  font-weight: 850;
}

.timeline span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.portal-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.login-panel,
.guest-portal,
.admin-panel,
.upload-box {
  padding: 24px;
}

.login-panel.is-logged-in {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
}

.login-panel.is-logged-in h3,
.login-panel.is-logged-in p,
.login-panel.is-logged-in form {
  display: none;
}

.stacked-form {
  display: grid;
  gap: 10px;
}

.inline-form {
  gap: 10px;
  align-items: stretch;
}

label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #d8ccc0;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 2px 0 0;
  color: var(--clay);
  font-weight: 700;
}

.guest-portal h3,
.login-panel h3,
.admin-panel h3 {
  margin-bottom: 10px;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state p {
  max-width: 520px;
  color: var(--muted);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.meal-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.meal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(111, 139, 117, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.guest-meal-row {
  grid-template-columns: 120px minmax(180px, 0.8fr) minmax(0, 1.8fr);
  align-items: start;
}

.guest-attendance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.guest-attendance input {
  width: 18px;
  min-height: 18px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meal-list.is-disabled {
  opacity: 0.55;
}

.side-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.side-bianca {
  color: #884861;
  background: #ffe3ec;
  border-color: #f2b8ca;
}

.side-sebastian {
  color: #4c5f9f;
  background: #e2edff;
  border-color: #b8caee;
}

.side-both {
  color: #5b547f;
  background: #eee5ff;
  border-color: #d4c4f5;
}

.travel-list {
  display: grid;
  gap: 16px;
}

.weather-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.weather-layout .section-heading {
  max-width: 760px;
  margin-bottom: 0;
}

.weather-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(184, 220, 242, 0.44), rgba(248, 220, 229, 0.36)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(49, 50, 74, 0.08);
}

.weather-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.weather-card-heading {
  display: grid;
  max-width: 760px;
  gap: 8px;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.weather-day {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 158px;
  padding: 16px 12px;
  border: 1px solid rgba(125, 143, 199, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.weather-day strong {
  color: var(--ink);
}

.weather-day small {
  color: var(--muted);
  font-size: 0.82rem;
}

.weather-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(49, 50, 74, 0.08);
}

.weather-icon::before {
  font-size: 1.9rem;
  line-height: 1;
}

.weather-icon-sun::before {
  content: "☀";
  color: #d89c22;
}

.weather-icon-cloud::before {
  content: "☁";
  color: #7d8fc7;
}

.weather-icon-rain::before {
  content: "☂";
  color: #5f9cc0;
}

.weather-icon-snow::before {
  content: "❄";
  color: #78aebe;
}

.weather-icon-storm::before {
  content: "⚡";
  color: #9a7ac4;
}

.weather-day p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.weather-icon-sun::before {
  content: "\2600";
}

.weather-icon-cloud::before {
  content: "\2601";
}

.weather-icon-rain::before {
  content: "\2602";
}

.weather-icon-snow::before {
  content: "\2744";
}

.weather-icon-storm::before {
  content: "\26A1";
}

.progress-card {
  align-self: start;
  padding: 18px;
}

.progress-card span {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  background: #eee3d8;
  border-radius: 8px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lavender), var(--sky), var(--rose));
  transition: width 180ms ease;
}

.gift-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.gift-card footer,
.song-card footer,
.guestbook-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.gift-meta,
.song-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.gift-card.reserved {
  border-color: rgba(200, 125, 122, 0.55);
  background: #fff7f5;
}

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

.song-card,
.guestbook-card {
  padding: 18px;
}

.spotify-embed {
  width: 100%;
  height: 82px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
}

.song-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.song-votes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  color: var(--surface);
  background: #8fb8d0;
  border-radius: 8px;
  font-weight: 850;
}

.upload-box {
  display: grid;
  gap: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 8px;
  background: #efe8df;
}

.photo-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--surface);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  font-size: 0.86rem;
}

.photo-card figcaption small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.photo-delete-button {
  width: fit-content;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--surface);
  background: rgba(140, 66, 85, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 850;
}

.photo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.photo-admin-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(49, 50, 74, 0.07);
}

.photo-admin-card img {
  width: 112px;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-admin-card.is-private {
  border-color: rgba(203, 187, 235, 0.72);
}

.photo-admin-card.is-approved {
  border-color: rgba(172, 210, 186, 0.9);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-content {
  margin-top: 22px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-card strong {
  display: block;
  font-size: 1.8rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.admin-page {
  background:
    linear-gradient(135deg, rgba(248, 220, 229, 0.42), rgba(184, 220, 242, 0.24), rgba(203, 187, 235, 0.3)),
    var(--paper);
}

.admin-topbar {
  position: sticky;
  align-items: center;
  min-height: 64px;
  background: rgba(255, 254, 253, 0.96);
}

.admin-main .section:first-child {
  padding-top: 72px;
}

.admin-main .section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.admin-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: start;
}

.admin-page h1 {
  color: var(--ink);
  font-size: 4rem;
}

.admin-actions-top {
  justify-content: flex-end;
  align-self: start;
  margin-top: 0;
}

.admin-jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
}

.admin-jump-grid a {
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(49, 50, 74, 0.06);
}

.admin-jump-grid a:hover {
  background: #f4eeff;
}

.admin-wide-layout {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.admin-two-columns,
.seating-designer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.admin-two-columns > *,
.seating-designer > * {
  min-width: 0;
}

.seating-designer {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.admin-table-wrap {
  margin-top: 26px;
}

.admin-table,
.admin-item {
  display: grid;
  gap: 14px;
}

.admin-row,
.admin-item {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(49, 50, 74, 0.07);
}

.admin-panel {
  display: grid;
  gap: 11px;
}

.admin-form-summary {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(125, 143, 199, 0.22);
  border-radius: 8px;
  background: #f6f1ff;
}

.admin-form-summary span,
.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.compact-admin-item {
  gap: 10px;
}

.guest-overview-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.guest-overview-stats span {
  display: grid;
  gap: 2px;
  min-height: 64px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.guest-overview-stats strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.guest-family-overview {
  display: grid;
  gap: 14px;
}

.guest-family-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(49, 50, 74, 0.07);
}

.guest-family-card header,
.guest-overview-row,
.guest-family-meta {
  display: grid;
  gap: 12px;
  align-items: center;
}

.guest-family-card header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.guest-family-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 12px;
  border: 1px solid rgba(125, 143, 199, 0.18);
  border-radius: 8px;
  background: #fbf8ff;
  color: var(--muted);
  font-size: 0.86rem;
}

.guest-overview-rows {
  display: grid;
  gap: 8px;
}

.guest-overview-row {
  grid-template-columns: minmax(150px, 1fr) auto minmax(132px, 0.8fr) auto;
  padding: 10px 0;
  border-top: 1px solid rgba(234, 221, 230, 0.85);
}

.guest-overview-row:first-child {
  border-top: 0;
}

.guest-overview-row > div span {
  color: var(--muted);
}

.guest-seat-status {
  font-size: 0.86rem;
  font-weight: 750;
}

.compact-row-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.admin-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.admin-row span,
.reservation-line,
.muted {
  display: block;
  color: var(--muted);
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}

.meal-course-panel {
  display: grid;
  gap: 12px;
}

.seat-assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.room-preview {
  overflow: auto;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 36px rgba(49, 50, 74, 0.07);
}

.room-canvas {
  position: relative;
  min-width: 720px;
  overflow: hidden;
  border: 1px solid rgba(125, 143, 199, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.28);
}

.guest-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 96px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px dashed #cbbbeb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.guest-palette.is-drop-target {
  background: #f4eeff;
  border-color: #8f7ad0;
}

.guest-chip {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: grab;
}

.guest-chip:active {
  cursor: grabbing;
}

.guest-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.room-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

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

.table-preview {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 14px;
  border: 2px solid rgba(49, 50, 74, 0.22);
  box-shadow: 0 12px 30px rgba(49, 50, 74, 0.14);
  text-align: center;
  touch-action: none;
  cursor: grab;
}

.table-preview span {
  max-width: 90%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-preview.is-dragging {
  z-index: 5;
  outline: 3px solid rgba(125, 143, 199, 0.4);
  cursor: grabbing;
}

.table-round {
  border-radius: 999px;
}

.table-rect {
  border-radius: 8px;
}

.seat-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 104px;
  min-height: 30px;
  padding: 5px 8px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(49, 50, 74, 0.18);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: normal;
  transform: translate(-50%, -50%);
  cursor: default;
}

.table-preview .seat-dot {
  max-width: none;
  overflow: visible;
  color: var(--ink);
  text-overflow: clip;
  white-space: normal;
}

.table-preview .seat-dot.side-bianca {
  color: #884861;
  background: #ffe3ec;
  border-color: #f2b8ca;
}

.table-preview .seat-dot.side-sebastian {
  color: #4c5f9f;
  background: #e2edff;
  border-color: #b8caee;
}

.table-preview .seat-dot.side-both {
  color: #5b547f;
  background: #eee5ff;
  border-color: #d4c4f5;
}

.seat-dot[draggable="true"] {
  cursor: grab;
}

.seat-dot.is-drop-target {
  outline: 4px solid rgba(125, 143, 199, 0.42);
  outline-offset: 2px;
}

.empty-mini {
  color: var(--muted);
  font-size: 0.92rem;
}

.danger-button {
  color: #8c4255;
  background: #ffeaf0;
  border-color: #f1bec9;
}

.danger-button:hover {
  color: var(--surface);
  background: #b85f76;
  border-color: #b85f76;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  color: var(--muted);
  background: var(--ink);
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .horizontal-heading,
  .split-layout,
  .travel-layout,
  .weather-layout,
  .admin-layout,
  .admin-login-layout,
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .photo-grid,
  .summary-grid,
  .admin-jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .guest-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-family-meta,
  .guest-overview-row {
    grid-template-columns: 1fr;
  }

  .compact-row-actions {
    justify-content: flex-start;
  }

  .admin-two-columns,
  .seating-designer,
  .guest-meal-row {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .seat-assignment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    gap: 10px;
  }

  .brand {
    max-width: 100%;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .storage-status {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 42px 16px 230px;
    padding-top: 34px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 16px;
  }

  .info-grid,
  .feature-grid,
  .card-grid,
  .photo-grid,
  .summary-grid,
  .admin-jump-grid,
  .rsvp-grid,
  .meal-row,
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }

  .weather-card {
    padding: 16px;
  }

  .weather-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .weather-day {
    min-height: 132px;
    padding: 12px 8px;
  }

  .weather-icon {
    width: 44px;
    height: 44px;
  }

  .portal-shell,
  .login-panel,
  .guest-portal,
  .upload-box,
  .admin-panel {
    min-width: 0;
  }

  .photo-admin-card {
    grid-template-columns: 1fr;
  }

  .photo-admin-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .room-canvas {
    min-width: 520px;
  }

  .inline-form {
    flex-direction: column;
  }

  .timeline li {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .header-actions .button,
  .header-actions .login-status {
    flex: 1 1 auto;
  }

  .login-status {
    max-width: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page h1 {
    font-size: 2.7rem;
  }
}
