:root {
  --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ink: #2f2926;
  --muted: #706a62;
  --paper: #fbf8f2;
  --panel: #ffffff;
  --linen: #f0e7dc;
  --sage: #aaa095;
  --pine: #23211f;
  --rose: #b8afa3;
  --wine: #2f2926;
  --gold: #b7a27f;
  --clay: #756a5e;
  --line: #ded2c4;
  --soft-line: rgba(222, 210, 196, 0.72);
  --shadow: 0 18px 48px rgba(47, 41, 38, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.72), rgba(251, 248, 242, 0.92)),
    url("assets/couple-rings-date.jpg") center top / cover fixed,
    var(--paper);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

.entry-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 20px 40px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24, 28, 25, 0.66), rgba(24, 28, 25, 0.2), rgba(251, 250, 247, 0.16)),
    url("assets/wedding-still-life.jpg") center center / cover no-repeat;
}

.entry-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0), rgba(251, 250, 247, 0.98));
  pointer-events: none;
}

.entry-admin {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  color: #fff;
  background: rgba(36, 61, 53, 0.58);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.entry-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin-right: auto;
  margin-left: clamp(0px, 6vw, 84px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(36, 61, 53, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.entry-panel h1,
.hero-band h2,
.section-title h2,
.dialog-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
}

.entry-panel h1 {
  max-width: 10ch;
  font-family: var(--font-script);
  font-size: 4.1rem;
  line-height: 0.98;
}

.entry-copy {
  max-width: 34rem;
  margin: 18px 0 26px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.entry-panel .eyebrow {
  color: #ead4aa;
}

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

.stacked-form.wide {
  max-width: 760px;
}

label {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

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

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--pine) 50%) calc(100% - 18px) 52% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--pine) 50%, transparent 50%) calc(100% - 13px) 52% / 7px 7px no-repeat,
    #fff;
  padding-right: 38px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(131, 153, 134, 0.28);
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.primary-button,
.inline-field button,
.ghost-button,
.tab-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.primary-button,
.inline-field button {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--wine);
  box-shadow: 0 10px 22px rgba(47, 41, 38, 0.16);
}

.primary-button:hover,
.inline-field button:hover {
  background: #1f1e1c;
}

.ghost-button {
  color: var(--pine);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.ghost-button:hover {
  background: rgba(131, 153, 134, 0.12);
}

.align-start {
  justify-self: start;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(47, 41, 38, 0.08);
}

.icon-button.small {
  width: 38px;
  height: 38px;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.entry-panel .form-message {
  color: #f2dfbd;
}

.app-shell {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.44), rgba(251, 248, 242, 0.94) 620px),
    linear-gradient(90deg, rgba(36, 61, 53, 0.16), rgba(47, 41, 38, 0.1)),
    url("assets/couple-rings-date.jpg") center top / cover fixed,
    var(--paper);
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  top: 84px;
  bottom: 0;
  z-index: 0;
  width: clamp(210px, 17vw, 330px);
  pointer-events: none;
  opacity: 0.78;
  filter: grayscale(1) brightness(1.03) contrast(1.12);
  background-size: 100% auto, 100% auto;
  background-repeat: repeat-y;
}

.app-shell::before {
  left: 0;
  background-image:
    linear-gradient(90deg, rgba(251, 248, 242, 0.02), rgba(251, 248, 242, 0.46)),
    url("assets/couple-photo-strip-1.jpg");
  background-position: center top;
}

.app-shell::after {
  right: 0;
  background-image:
    linear-gradient(270deg, rgba(251, 248, 242, 0.02), rgba(251, 248, 242, 0.46)),
    url("assets/couple-photo-strip-2.jpg");
  background-position: center top;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(185, 140, 76, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 248, 242, 0.88));
  box-shadow: 0 12px 30px rgba(47, 41, 38, 0.07);
  backdrop-filter: blur(18px);
}

.main-content {
  position: relative;
  z-index: 1;
}

.brand-button {
  display: inline-grid;
  grid-template-columns: 42px auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    var(--pine);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-button strong,
.brand-button small {
  display: block;
}

.brand-button strong {
  font-family: var(--font-script);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.brand-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tabbar {
  justify-self: center;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.tab-button svg,
.logout-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-button.is-active {
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    var(--pine);
  box-shadow: 0 8px 18px rgba(36, 61, 53, 0.18);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.user-chip {
  max-width: min(300px, 28vw);
  min-height: 46px;
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(185, 140, 76, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(47, 41, 38, 0.06);
}

.user-chip svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(36, 61, 53, 0.1);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-chip span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.user-chip small,
.user-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.user-chip strong {
  font-size: 0.88rem;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.main-content {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 48px) 64px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero-band {
  position: relative;
  min-height: clamp(430px, 58vh, 620px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(18px, 4vw, 64px);
  margin: -34px calc(-1 * clamp(16px, 4vw, 48px)) 28px;
  padding: clamp(28px, 5vw, 54px);
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.hero-band::before,
.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-band::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(18, 17, 16, 0.76), rgba(18, 17, 16, 0.34) 26%, rgba(18, 17, 16, 0.03) 53%, rgba(18, 17, 16, 0.34)),
    linear-gradient(180deg, rgba(251, 248, 242, 0.02), rgba(36, 31, 28, 0.1)),
    #cfcfcb url("assets/hero-dog-countdown.png") center center / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.18) 5%, #000 18%, #000 82%, rgba(0, 0, 0, 0.18) 95%, transparent 100%),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.2) 7%, #000 22%, #000 70%, rgba(0, 0, 0, 0.2) 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.18) 5%, #000 18%, #000 82%, rgba(0, 0, 0, 0.18) 95%, transparent 100%),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.2) 7%, #000 22%, #000 70%, rgba(0, 0, 0, 0.2) 90%, transparent 100%);
  mask-composite: intersect;
}

.hero-band::after {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(251, 248, 242, 0) 42%, rgba(251, 248, 242, 0.22) 72%, rgba(251, 248, 242, 0.64) 100%),
    linear-gradient(180deg, rgba(251, 248, 242, 0.52), rgba(251, 248, 242, 0) 24%, rgba(251, 248, 242, 0) 68%, rgba(251, 248, 242, 0.94));
}

.hero-band h2,
.section-title h2 {
  font-size: 2.8rem;
  line-height: 1.05;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  max-width: min(360px, 100%);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.hero-band h2 {
  max-width: 15ch;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.02;
}

.hero-band .eyebrow {
  color: #f2d8a2;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.hero-subline {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.55;
}

.countdown-card {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  min-width: 0;
  margin-left: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(20, 18, 17, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.countdown-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 10px;
}

.countdown-values span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(36, 61, 53, 0.32);
}

.countdown-values strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
}

.countdown-values small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.allergy-alert {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  margin: -8px 0 22px;
  padding: 16px;
  border: 1px solid rgba(47, 41, 38, 0.28);
  border-left: 6px solid #2f2926;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(251, 248, 242, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 34px rgba(47, 41, 38, 0.12);
}

.allergy-alert strong {
  display: block;
  margin-bottom: 3px;
}

.allergy-alert p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.alert-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2f2926;
  font-weight: 900;
}

.home-vertical-stack {
  display: grid;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

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

.panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 247, 0.94));
  box-shadow: 0 14px 34px rgba(44, 35, 28, 0.08);
}

.gift-panel {
  position: relative;
  align-content: start;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  border-color: var(--soft-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 247, 0.94));
}

.gift-panel::after {
  content: none;
}

.gift-panel > * {
  position: relative;
  z-index: 1;
}

.gift-panel .large-text {
  max-width: 28ch;
  font-size: 0.95rem;
  line-height: 1.45;
}

.panel-header.with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.panel-header h3,
.section-title h3 {
  margin: 0;
  font-size: 1.22rem;
}

.large-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.address-list {
  display: grid;
  gap: 12px;
}

.address-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(185, 140, 76, 0.24);
  border-radius: var(--radius);
  background: rgba(251, 248, 242, 0.72);
}

.location-card {
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 10px;
}

.location-card-image {
  width: 100%;
  height: 100%;
  min-height: 150px;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  background: var(--linen);
}

.location-card-body {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 6px 4px;
}

.address-card span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.address-card strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.35;
}

.address-actions,
.thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(36, 61, 53, 0.18);
  border-radius: 999px;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.mini-button:hover {
  background: rgba(125, 148, 125, 0.14);
}

.gift-present-link {
  width: fit-content;
  display: inline-grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.gift-present-box {
  width: 86px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 41, 38, 0.18);
  border-radius: 8px;
  color: #2f2926;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(224, 217, 207, 0.72)),
    #d7d0c5;
  box-shadow: 0 12px 24px rgba(47, 41, 38, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gift-present-box svg {
  width: 56px;
  height: 56px;
  fill: rgba(47, 41, 38, 0.05);
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift-present-text {
  color: var(--ink);
  font-size: 0.9rem;
}

.gift-present-link:hover .gift-present-box {
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(192, 184, 174, 0.82)),
    #beb7ad;
  box-shadow: 0 16px 28px rgba(47, 41, 38, 0.16);
}

.section-block {
  margin-top: 30px;
}

.section-title {
  display: grid;
  gap: 0;
  margin-bottom: 16px;
}

.section-title.compact {
  margin-top: 22px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-panel {
  align-content: start;
}

.news-panel .news-list {
  overflow: visible;
  padding-right: 0;
}

.news-panel .news-item {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.news-panel .news-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.featured-post {
  margin-bottom: 18px;
}

.home-vertical-stack .featured-post {
  margin-bottom: 0;
}

.featured-post-list {
  display: grid;
  gap: 12px;
}

.featured-post-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(185, 140, 76, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 244, 233, 0.94));
  box-shadow: 0 14px 32px rgba(47, 41, 38, 0.08);
}

.featured-post-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(185, 140, 76, 0.12);
}

.featured-post-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.featured-post-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}

.featured-post-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.news-item {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-left: 5px solid var(--rose);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 252, 247, 0.96));
  box-shadow: 0 10px 22px rgba(47, 41, 38, 0.05);
}

.news-item h4 {
  margin: 0;
  font-size: 1.05rem;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

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

.star-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(185, 140, 76, 0.34);
  border-radius: 999px;
  color: var(--clay);
  background: rgba(251, 248, 242, 0.9);
  font-weight: 850;
}

.star-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.star-button.is-active {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}

.star-button.is-active svg {
  fill: currentColor;
}

.allergy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.program-section {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 247, 0.95));
  box-shadow: 0 14px 34px rgba(44, 35, 28, 0.08);
}

.program-section .empty-state {
  max-width: 620px;
}

.program-timeline {
  position: relative;
  display: grid;
  gap: 34px;
  max-width: 620px;
  padding: 12px 0 12px 42px;
}

.home-vertical-stack .program-timeline {
  max-width: none;
}

.program-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17px;
  width: 1px;
  background: rgba(47, 41, 38, 0.62);
}

.program-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.program-icon {
  position: absolute;
  top: -2px;
  left: -41px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 140, 76, 0.38);
  border-radius: 50%;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 16px rgba(47, 41, 38, 0.08);
}

.program-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.program-item time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1;
}

.program-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.program-item strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.15;
}

.program-item span {
  color: var(--muted);
  line-height: 1.4;
}

.couple-gallery-section {
  margin-top: 34px;
}

.couple-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: clamp(16px, 4vw, 34px);
  align-items: start;
  justify-content: center;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 242, 0.78));
  box-shadow: 0 14px 34px rgba(44, 35, 28, 0.08);
}

.couple-photo {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(47, 41, 38, 0.14);
  border-radius: var(--radius);
  background: #151312;
  box-shadow: 0 18px 38px rgba(47, 41, 38, 0.12);
}

.couple-photo img {
  width: 100%;
  height: min(74vh, 760px);
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.couple-photo.wide img {
  object-position: center;
}

.couple-photo.tall img {
  object-position: center top;
}

.meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.empty-state {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.empty-state.compact-empty {
  min-height: 54px;
  padding: 12px;
}

.upload-panel {
  margin-bottom: 24px;
}

.upload-feedback {
  display: block;
}

.upload-feedback.is-success {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(125, 148, 125, 0.34);
  border-radius: var(--radius);
  color: var(--pine);
  background: linear-gradient(90deg, rgba(240, 249, 241, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 26px rgba(36, 61, 53, 0.08);
}

.upload-feedback-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
}

.upload-feedback-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-feedback strong,
.upload-feedback small {
  display: block;
}

.upload-feedback small {
  margin-top: 2px;
  color: var(--muted);
}

.upload-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

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

.gallery-load-more {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px 0 4px;
  color: var(--muted);
}

.gallery-load-more small {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.load-more-button {
  min-width: 0;
}

.photo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.photo-open-button,
.moderation-image-button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-open-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--linen);
}

.photo-open-button:hover img,
.moderation-image-button:hover img {
  filter: brightness(0.92);
}

.photo-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.photo-body strong {
  overflow-wrap: anywhere;
}

.photo-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.photo-caption-form {
  display: grid;
  gap: 7px;
  padding-top: 6px;
}

.photo-caption-form button {
  justify-self: start;
}

.message-center {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.thread-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.thread-sidebar .eyebrow {
  margin-bottom: 10px;
}

.new-thread-button {
  width: 100%;
}

.new-thread-button.is-active {
  outline: 3px solid rgba(185, 140, 76, 0.24);
}

.message-compose {
  margin-bottom: 0;
}

.thread-detail-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.thread-list,
.thread-summary-list {
  display: grid;
  gap: 12px;
}

.thread-summary {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  text-align: left;
  box-shadow: 0 8px 18px rgba(47, 41, 38, 0.05);
}

.thread-summary:hover,
.thread-summary.is-active {
  border-color: rgba(47, 41, 38, 0.42);
  background: rgba(255, 252, 247, 0.98);
}

.thread-summary.is-active {
  box-shadow: 0 0 0 3px rgba(47, 41, 38, 0.11), 0 12px 24px rgba(47, 41, 38, 0.07);
}

.thread-summary.has-reply:not(.is-approved) {
  border-left: 5px solid var(--sage);
}

.thread-summary-top {
  display: grid;
  gap: 10px;
  align-items: start;
}

.thread-summary-top > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.thread-summary-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.thread-summary .status-pill {
  justify-self: start;
  max-width: 100%;
  min-height: 28px;
  white-space: normal;
  line-height: 1.2;
}

.thread-summary strong,
.thread-summary-preview {
  overflow-wrap: anywhere;
}

.thread-summary-preview {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.message-empty-panel {
  display: grid;
  gap: 8px;
  min-height: 260px;
  align-content: center;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.message-empty-panel h3,
.message-empty-panel p {
  margin: 0;
}

.thread-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 252, 247, 0.94));
  box-shadow: 0 12px 26px rgba(47, 41, 38, 0.07);
}

.thread-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.thread-head h4 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.status-pill {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(185, 140, 76, 0.32);
  border-radius: 999px;
  color: var(--clay);
  background: rgba(251, 248, 242, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.approved {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
}

.status-pill.answered {
  color: #244237;
  background: rgba(125, 148, 125, 0.18);
  border-color: rgba(125, 148, 125, 0.42);
}

.status-pill.waiting {
  color: var(--clay);
  background: rgba(251, 248, 242, 0.9);
}

.message-list {
  display: grid;
  gap: 12px;
  padding: 4px 0;
}

.thread-message {
  max-width: min(520px, 86%);
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border-radius: 18px;
  background: rgba(240, 231, 220, 0.72);
}

.thread-message.is-mine {
  justify-self: end;
  color: #fff;
  background: var(--pine);
  border-bottom-right-radius: 5px;
}

.thread-message.is-other {
  justify-self: start;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--soft-line);
  border-bottom-left-radius: 5px;
}

.thread-message strong {
  font-size: 0.78rem;
  opacity: 0.82;
}

.thread-message p {
  margin: 0;
  color: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
}

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

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

.program-edit-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) 100px minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(251, 248, 242, 0.62);
}

.program-edit-row label {
  display: grid;
  gap: 6px;
}

.seat-summary {
  margin-bottom: 28px;
  border-color: rgba(185, 140, 76, 0.34);
}

.seating-guest-view {
  display: grid;
  gap: 18px;
}

.seating-spotlight {
  border-color: rgba(125, 148, 125, 0.38);
}

.public-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.public-table-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 26px rgba(47, 41, 38, 0.08);
}

.public-table-card.is-my-table {
  border-color: rgba(185, 140, 76, 0.74);
  box-shadow: 0 18px 38px rgba(185, 140, 76, 0.16);
}

.table-medallion {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    var(--pine);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.public-table-card h3,
.mini-heading h4,
.admin-table-head h4 {
  margin: 0;
}

.seat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.seat-name {
  min-height: 36px;
  display: grid;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(240, 231, 220, 0.58);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.seat-name.is-me {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
}

.seat-name.is-empty {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border-style: dashed;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-tile {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--pine);
}

.stat-tile:nth-child(2) {
  background: var(--wine);
}

.stat-tile:nth-child(3) {
  background: #756a5e;
}

.stat-tile:nth-child(4) {
  background: #6f6a62;
}

.stat-tile:nth-child(5) {
  background: #8f6d3c;
}

.stat-tile strong {
  font-size: 1.7rem;
}

.stat-tile span {
  font-size: 0.88rem;
}

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

.wide-panel {
  grid-column: 1 / -1;
}

.moderation-list,
.guest-id-list,
.guest-table,
.guest-chip-list {
  display: grid;
  gap: 12px;
}

.disclosure-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
}

.disclosure-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.disclosure-button.is-open svg {
  transform: rotate(180deg);
}

.collapsible-list.is-collapsed {
  display: none;
}

.table-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 0.6fr) auto minmax(120px, 1fr);
  gap: 12px;
  align-items: end;
}

.seating-admin-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.seat-bank {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

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

.guest-chip {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(125, 148, 125, 0.36);
  border-radius: 999px;
  color: var(--pine);
  background: rgba(247, 252, 247, 0.96);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.guest-chip:hover {
  border-color: var(--sage);
  background: rgba(125, 148, 125, 0.14);
}

.table-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.admin-table-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 244, 0.94));
  box-shadow: 0 12px 24px rgba(47, 41, 38, 0.07);
}

.admin-table-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.danger-icon {
  color: #2f2926;
}

.table-drop-zone {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 68px 14px 16px;
  border: 1px dashed rgba(185, 140, 76, 0.5);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center 38%, rgba(185, 140, 76, 0.18), transparent 118px),
    rgba(251, 248, 242, 0.78);
}

.table-drop-zone.is-drag-over {
  border-color: var(--wine);
  background: rgba(47, 41, 38, 0.08);
}

.table-center {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 118px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #fff;
  background: var(--pine);
  font-family: var(--font-display);
  text-align: center;
}

.seat-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
}

.seat-chip {
  position: relative;
  min-height: 44px;
  display: grid;
  align-items: center;
  border-radius: 999px;
  text-align: center;
}

.seat-chip.is-empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}

.seat-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(47, 41, 38, 0.2);
  border-radius: 50%;
  color: #fff;
  background: #2f2926;
  line-height: 1;
}

.quick-seat {
  display: grid;
  gap: 6px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(47, 41, 38, 0.08);
}

.editor-toolbar .meta {
  margin-left: auto;
}

.add-table-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px 0 12px;
  border: 1px solid rgba(185, 140, 76, 0.36);
  border-radius: 999px;
  color: #fff;
  background: var(--pine);
  font-weight: 850;
}

.add-table-button span,
.canvas-add-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pine);
  background: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.table-create-drawer {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(185, 140, 76, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(47, 41, 38, 0.08);
}

.visual-table-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) auto minmax(160px, 0.7fr);
  gap: 12px;
  align-items: end;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.segmented-control label {
  min-height: 38px;
  display: grid;
  place-items: center;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}

.segmented-control input:checked + span {
  color: #fff;
  background: var(--wine);
}

.table-options {
  display: grid;
  gap: 10px;
}

.rect-options {
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  grid-column: 1 / -2;
}

.round-options {
  grid-template-columns: minmax(140px, 220px);
}

.visual-table-form[data-mode="round"] .rect-options,
.visual-table-form[data-mode="rect"] .round-options {
  display: none;
}

.visual-editor-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.editor-sidebar {
  display: grid;
  gap: 14px;
}

.editor-sidebar .panel {
  padding: 18px;
}

.table-inspector {
  display: grid;
  gap: 14px;
}

.inspector-grid,
.side-editor {
  display: grid;
  gap: 10px;
}

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

.inspector-grid label:first-child {
  grid-column: 1 / -1;
}

.side-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(251, 248, 242, 0.76);
}

.side-editor label.is-disabled {
  color: var(--muted);
  opacity: 0.6;
}

.seat-assignment,
.assigned-list {
  display: grid;
  gap: 8px;
}

.assign-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.45fr);
  gap: 8px;
}

.assigned-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--soft-line);
}

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

.inline-remove {
  position: static;
}

.editor-canvas-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.canvas-help {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.seating-canvas {
  position: relative;
  height: min(72vh, 760px);
  min-height: 620px;
  overflow: auto;
  border: 1px solid rgba(185, 140, 76, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(36, 61, 53, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 61, 53, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(185, 140, 76, 0.15), transparent 240px),
    rgba(255, 252, 247, 0.92);
  background-size: 32px 32px, 32px 32px, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 18px 42px rgba(47, 41, 38, 0.09);
}

.canvas-add-button {
  position: sticky;
  top: 16px;
  left: 16px;
  z-index: 8;
  border: 1px solid rgba(185, 140, 76, 0.38);
  box-shadow: 0 10px 24px rgba(47, 41, 38, 0.16);
}

.table-layer {
  position: relative;
  width: 1500px;
  height: 980px;
}

.editor-empty-state {
  position: absolute;
  top: 120px;
  left: 120px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.group-outline {
  position: absolute;
  z-index: 1;
  border: 2px dashed rgba(185, 140, 76, 0.78);
  border-radius: 12px;
  background: rgba(185, 140, 76, 0.06);
  pointer-events: none;
}

.editor-table {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid rgba(36, 61, 53, 0.56);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 231, 220, 0.8));
  box-shadow: 0 18px 30px rgba(47, 41, 38, 0.14);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.editor-table.is-round {
  border-radius: 50%;
}

.editor-table.is-rect {
  border-radius: 7px;
}

.editor-table.is-grouped {
  border-color: rgba(185, 140, 76, 0.84);
}

.editor-table.is-selected {
  outline: 3px solid rgba(47, 41, 38, 0.38);
  outline-offset: 5px;
}

.editor-table.is-drag-over,
.editor-seat.is-drag-over {
  outline: 3px solid rgba(47, 41, 38, 0.45);
  outline-offset: 3px;
}

.editor-table-name {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 28px);
  display: grid;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}

.table-select-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(36, 61, 53, 0.22);
  border-radius: 999px;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 900;
}

.editor-table.is-selected .table-select-toggle {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
}

.editor-table-name strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.editor-table-name span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.editor-seat {
  position: absolute;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(36, 61, 53, 0.22);
  border-radius: 50%;
  color: var(--pine);
  background: #fff;
  box-shadow: 0 8px 18px rgba(47, 41, 38, 0.14);
  font-size: 0.74rem;
  font-weight: 900;
}

.editor-seat.is-filled {
  color: #fff;
  background: var(--wine);
  border-color: rgba(255, 255, 255, 0.4);
}

.joined-edge {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 74px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.joined-edge.top {
  top: -12px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.joined-edge.right {
  top: 50%;
  right: -12px;
  transform: translate(50%, -50%) rotate(90deg);
}

.joined-edge.bottom {
  bottom: -12px;
  left: 50%;
  transform: translate(-50%, 50%);
}

.joined-edge.left {
  top: 50%;
  left: -12px;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.table-resize-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 8px 16px rgba(47, 41, 38, 0.22);
  cursor: nwse-resize;
}

.moderation-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.moderation-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.moderation-image-button {
  width: 116px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  overflow: hidden;
}

.moderation-item img {
  width: 116px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--linen);
}

.moderation-body {
  display: grid;
  gap: 8px;
}

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

.photo-lightbox {
  width: min(980px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(20, 18, 17, 0.94);
  box-shadow: var(--shadow);
}

.photo-lightbox::backdrop {
  background: rgba(18, 15, 13, 0.72);
  backdrop-filter: blur(6px);
}

.photo-lightbox figure {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
}

.photo-lightbox img {
  width: 100%;
  max-height: calc(100vh - 128px);
  object-fit: contain;
  border-radius: 6px;
}

.photo-lightbox figcaption {
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  line-height: 1.45;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  color: #fff;
  background: rgba(20, 18, 17, 0.62);
  border-color: rgba(255, 255, 255, 0.24);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 18, 17, 0.58);
  transform: translateY(-50%);
}

.lightbox-nav:hover:not(:disabled) {
  background: rgba(20, 18, 17, 0.82);
}

.lightbox-nav:disabled {
  cursor: default;
  opacity: 0.22;
}

.lightbox-nav svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.danger-button,
.approve-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.approve-button {
  color: #fff;
  background: var(--pine);
}

.danger-button {
  color: #fff;
  background: #2f2926;
}

.guest-row,
.guest-id-row {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.guest-row:last-child,
.guest-id-row:last-child {
  border-bottom: 0;
}

.guest-row strong,
.guest-id-row strong {
  overflow-wrap: anywhere;
}

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

.alias-pill {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--pine);
  background: rgba(131, 153, 134, 0.16);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.admin-dialog {
  width: min(440px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-dialog::backdrop {
  background: rgba(36, 31, 28, 0.52);
  backdrop-filter: blur(5px);
}

.admin-dialog form {
  padding: 24px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 16px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--pine);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .app-shell::before,
  .app-shell::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .tabbar {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
  }

  .two-columns,
  .message-center,
  .admin-layout,
  .admin-stats,
  .upload-form,
  .couple-gallery,
  .program-edit-row,
  .seating-admin-grid,
  .table-create-form,
  .visual-editor-layout,
  .visual-table-form {
    grid-template-columns: 1fr;
  }

  .thread-sidebar {
    position: static;
  }

  .rect-options {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-toolbar .meta {
    width: 100%;
    margin-left: 0;
  }

  .canvas-help {
    flex-direction: column;
  }

  .hero-band {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }

  .countdown-card {
    width: 100%;
  }

  .seat-bank {
    position: static;
  }
}

@media (max-width: 620px) {
  .entry-screen {
    place-items: end center;
    padding-top: 84px;
  }

  .entry-panel {
    margin-left: 0;
    padding: 24px;
  }

  .entry-panel h1 {
    font-size: 3.1rem;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }

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

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .user-chip {
    max-width: min(100%, 260px);
  }

  .topbar-actions .ghost-button {
    min-height: 42px;
    padding: 0 12px;
  }

  .tab-button {
    padding: 0 12px;
  }

  .featured-post-card {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .tab-button span {
    font-size: 0.92rem;
  }

  .tab-button svg {
    width: 16px;
    height: 16px;
  }

  .main-content {
    padding-top: 22px;
  }

  .hero-band {
    margin-right: calc(-1 * clamp(16px, 4vw, 48px));
    margin-left: calc(-1 * clamp(16px, 4vw, 48px));
    padding: 24px;
    min-height: 460px;
    background-position: center top;
  }

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

  .hero-band h2 {
    font-size: 2.45rem;
  }

  .hero-copy {
    max-width: 100%;
  }

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

  .program-timeline {
    gap: 28px;
    padding-left: 26px;
  }

  .program-item {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }

  .program-item time {
    font-size: 1.08rem;
  }

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

  .location-card-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
  }

  .couple-photo img,
  .couple-photo.tall img {
    min-height: 340px;
  }

  .allergy-alert {
    grid-template-columns: 42px 1fr;
  }

  .allergy-alert .primary-button {
    grid-column: 1 / -1;
  }

  .editor-toolbar {
    align-items: stretch;
  }

  .editor-toolbar button {
    flex: 1 1 150px;
  }

  .segmented-control,
  .assign-row,
  .inspector-grid,
  .side-editor,
  .rect-options {
    grid-template-columns: 1fr;
  }

  .seating-canvas {
    min-height: 560px;
  }

  .panel {
    padding: 18px;
  }

  .moderation-item {
    grid-template-columns: 86px 1fr;
  }

  .moderation-item img {
    width: 86px;
    height: 76px;
  }
}
