:root {
  --ink: #24180f;
  --panel: #2c2118;
  --panel-line: rgba(244, 232, 210, 0.14);
  --cream: #f6f0e4;
  --stage: #e6d7c2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--cream);
  background: var(--ink);
}

#page-scale {
  container-name: app;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  width: var(--page-width, 100%);
  min-height: calc(100dvh / var(--page-zoom, 1));
  padding-bottom: calc(88px / var(--page-zoom, 1));
  transform: scale(var(--page-zoom, 1));
  transform-origin: top left;
}

body.is-locked #page-scale {
  width: 100%;
  min-height: 100dvh;
  padding-bottom: 0;
  transform: none;
}

.topbar,
.picker-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.topbar {
  padding: 16px 28px 12px;
}

.brand,
.picker-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.brand {
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.brand-note,
.picker-head p {
  margin: 0;
  color: #d9c7ae;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.picker {
  padding: 0 28px 16px;
  border-bottom: 1px solid var(--panel-line);
}

.picker-head h2 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.sample-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 8px;
}

.sample {
  flex: 0 0 auto;
  width: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.sample img {
  display: block;
  width: 68px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.sample.is-active {
  border-color: #e4c48a;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 190px);
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 20px 40px;
  background-color: var(--stage);
  background-image:
    linear-gradient(30deg, rgba(74, 46, 24, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(74, 46, 24, 0.06) 87.5%),
    linear-gradient(150deg, rgba(74, 46, 24, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(74, 46, 24, 0.06) 87.5%),
    linear-gradient(30deg, rgba(74, 46, 24, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(74, 46, 24, 0.06) 87.5%),
    linear-gradient(150deg, rgba(74, 46, 24, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(74, 46, 24, 0.06) 87.5%);
  background-size: 46px 80px;
  background-position: 0 0, 0 0, 23px 40px, 23px 40px;
}

.stage-note {
  margin: 0;
  max-width: 420px;
  color: #6d5844;
  font-size: 0.86rem;
  text-align: center;
}

.reset-layout {
  padding: 8px 14px;
  color: #3c2718;
  background: transparent;
  border: 1px solid rgba(60, 39, 24, 0.35);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.invite {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(48, 28, 12, 0.28);
  --ink: #f6edd9;
  --muted: #e6d3ae;
  --accent: #e4c48a;
  --panel: transparent;
}

.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer {
  position: absolute;
  z-index: 2;
  margin: 0;
  max-width: 88%;
  color: var(--ink);
  text-align: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.layer.is-selected {
  z-index: 4;
  outline: 1px dashed var(--accent);
  outline-offset: 7px;
}

.layer.is-dragging {
  cursor: grabbing;
}

.handle {
  position: absolute;
  right: -11px;
  bottom: -11px;
  width: 16px;
  height: 16px;
  border: 2px solid #2c2118;
  border-radius: 50%;
  background: #e4c48a;
  cursor: nwse-resize;
  display: none;
}

.layer.is-selected .handle {
  display: block;
}

.layer-panel {
  z-index: 1;
  width: 76%;
  height: 70%;
  background: var(--panel);
  border-radius: 18px;
}

.invite:not(.is-masked) .layer-panel {
  display: none;
}

.layer-photo,
.photo-slot {
  width: 74px;
  height: 74px;
}

.invite.is-photo .layer-photo,
.invite.is-photo .photo-slot {
  width: 112px;
  height: 112px;
}

.layer-photo img,
.photo-slot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  pointer-events: none;
}

.photo-slot {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.kicker,
.family,
.message,
.when,
.where,
.quote,
.rsvp,
.names {
  margin: 0;
}

.kicker,
.family,
.where,
.rsvp {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.name {
  font-family: "Great Vibes", "Cormorant Garamond", cursive;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 0.95;
}

.amp {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}

.message,
.quote {
  max-width: 28ch;
  font-weight: 300;
  font-size: 0.86rem;
  line-height: 1.35;
}

.when {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
}

.is-empty {
  display: none;
}

.editor {
  padding: 22px 22px 48px;
  background: var(--panel);
  border-left: 1px solid var(--panel-line);
}

.editor label,
.photos-field > p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  color: #d9c7ae;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.editor input,
.editor textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
}

.editor textarea {
  resize: vertical;
}

.upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid #e4c48a;
  border-radius: 999px;
  color: #f6edd9;
  cursor: pointer;
}

.upload input {
  display: none;
}

.photo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-list img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-list button {
  margin-left: auto;
  padding: 6px 10px;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

@container app (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .editor {
    border-left: 0;
    border-top: 1px solid var(--panel-line);
  }

  .topbar,
  .picker {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.topbar {
  align-items: center;
  flex-wrap: wrap;
}

.brand-block {
  display: grid;
  gap: 2px;
}

.app-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-menu button,
.mycard-tools > button,
.card-chip,
.mycard-empty button,
.save-card,
#cancel-card,
#add-pay,
.remove-pay,
.sheet-head button,
.pay-item button {
  font: inherit;
  cursor: pointer;
}

.app-menu button,
.card-chip,
.mycard-tools > button {
  border: 1px solid rgba(244, 232, 210, 0.28);
  background: transparent;
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
}

.app-menu button.is-active,
.card-chip.is-active {
  background: #e7c27a;
  color: #24180f;
  border-color: transparent;
}

#view-simulator[hidden],
.mycard-view[hidden],
.create-view[hidden] {
  display: none !important;
}

.mycard-view {
  min-height: calc(100vh - 84px);
}

.mycard-toolbar,
.create-view {
  padding: 8px 28px 0;
}

.mycard-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.mycard-toolbar h2,
.form-head h2,
.pay-editor h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

.mycard-tools,
.card-switch,
.form-actions,
.pay-editor-head,
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mycard-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.mycard-empty button,
.save-card {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #e7c27a;
  color: #24180f;
}

.glass-scene {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 48px 16px 64px;
  overflow: hidden;
}

.glass-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 10, 14, 0.28), rgba(18, 10, 14, 0.5)),
    #3a2a31 center / cover no-repeat;
  transform: scale(1.04);
}

.glass-card {
  position: relative;
  width: min(460px, 100%);
  padding: 18px 16px 16px;
  border-radius: 28px;
  color: #1c140f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(255, 186, 140, 0.35),
    0 0 28px rgba(255, 110, 170, 0.55),
    0 0 64px rgba(255, 150, 70, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(1.35);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 29px;
  padding: 1.5px;
  background: linear-gradient(135deg, #ff9ad5, #ffe0b0, #ff7d62, #d7b4ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.glass-head h3 {
  margin: 2px 0 16px;
  text-align: center;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  vertical-align: 3px;
  border-radius: 50%;
  background: #1d9bf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.3 8.1l1.1-1.1 2 2 4.9-4.9 1.1 1.1z'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.glass-profile {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.glass-avatar {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
}

.glass-avatar img,
.avatar-fallback,
.avatar-kind {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  object-fit: cover;
  background: #2a211c;
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.avatar-kind {
  background: rgba(20, 12, 8, 0.46);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.stat-row p {
  margin: 0;
}

.stat-row strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat-row span {
  display: block;
  margin-top: 3px;
  color: rgba(28, 20, 15, 0.72);
  font-size: 0.68rem;
  line-height: 1.2;
}

.paid-done {
  display: grid;
  place-items: center;
}

.done-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f8f4e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.3 8.1l1.1-1.1 2 2 4.9-4.9 1.1 1.1z'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  box-shadow: 0 0 0 0 rgba(47, 184, 98, 0.45);
  animation: breathe 2.2s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(47, 184, 98, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(47, 184, 98, 0);
  }
}

.glass-dates {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.glass-dates p,
.glass-sheet p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 0.92rem;
}

.glass-dates span {
  color: rgba(28, 20, 15, 0.68);
}

.glass-dates b {
  white-space: nowrap;
}

.action-stage {
  display: grid;
  margin-top: 16px;
}

.action-face {
  grid-area: 1 / 1;
  animation: dissolve 10s ease-in-out infinite;
}

.face-colors {
  display: grid;
  gap: 8px;
  align-content: center;
  animation-delay: -5s;
}

.glass-card.is-held .action-face {
  animation: none;
}

.glass-card.is-held .face-pay {
  opacity: 1;
  pointer-events: auto;
}

.glass-card.is-held .face-colors {
  opacity: 0;
  pointer-events: none;
}

@keyframes dissolve {
  0%, 40% { opacity: 1; pointer-events: auto; }
  50%, 90% { opacity: 0; pointer-events: none; }
  100% { opacity: 1; pointer-events: auto; }
}

.color-face-title {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 20, 15, 0.62);
}

.color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.color-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.color-code i {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 1px solid rgba(28, 20, 15, 0.18);
}

.color-code b {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.glass-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-btn,
.msg-btn {
  border: 0;
  border-radius: 12px;
  background: #26292f;
  color: white;
  padding: 12px 8px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.pay-btn.is-open,
.msg-btn.is-open {
  outline: 2px solid #e7c27a;
  outline-offset: 2px;
}

.glass-sheet {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
}

.glass-sheet h4,
.invite-lead {
  margin: 0 0 8px;
}

.invite-body {
  display: block !important;
  margin-top: 8px !important;
  white-space: pre-wrap;
}

.pay-copy {
  padding: 8px 0;
  border-top: 1px solid rgba(28, 20, 15, 0.12);
  user-select: text;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pay-item p {
  margin: 0;
}

.pay-method,
.pay-number {
  font-weight: 600;
}

.pay-actions button,
.sheet-head button,
#add-pay,
.remove-pay,
#cancel-card {
  border: 1px solid rgba(28, 20, 15, 0.2);
  background: white;
  color: #1c140f;
  border-radius: 999px;
  padding: 6px 10px;
}

.sheet-head {
  justify-content: space-between;
  margin-bottom: 4px;
}

.sheet-head h4 {
  margin: 0;
}

.sheet-empty {
  margin: 8px 0 0;
}

.create-view {
  padding-bottom: 48px;
}

.card-form {
  width: min(760px, 100%);
  margin: 12px auto 0;
  padding: 22px;
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  background: #2c2118;
}

.form-head p,
.remain-line,
.form-error {
  color: rgba(246, 240, 228, 0.78);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kind-pick {
  margin: 0 0 14px;
  border: 0;
  padding: 0;
}

.kind-pick legend {
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.kind-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kind-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  cursor: pointer;
}

.kind-options input {
  width: auto;
  margin: 0;
  accent-color: #e7c27a;
}

.card-form label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
}

.card-form .kind-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
}

.card-form input:not([type="radio"]),
.card-form textarea {
  width: 100%;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--cream);
  background: #24180f;
  font: inherit;
}

.remain-line {
  margin: 14px 0;
}

.couple-preview {
  display: block;
  width: 120px;
  height: 120px;
  margin: 12px 0;
  object-fit: cover;
  border-radius: 18px;
}

.pay-editor {
  margin: 8px 0 16px;
}

.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

.invite-field {
  margin-top: 8px;
}

.form-actions {
  margin-top: 16px;
}

.form-error {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #ffb4a8;
}

@container app (max-width: 720px) {
  .form-grid,
  .pay-row,
  .glass-profile {
    grid-template-columns: 1fr;
  }

  .glass-avatar {
    margin: 0 auto;
  }

  .mycard-toolbar,
  .create-view {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100dvh / var(--page-zoom, 1));
  overflow: auto;
  padding: 22px 14px 28px;
  border-right: 1px solid var(--panel-line);
  background: #1a120e;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.side-label {
  margin: 0 0 8px;
  color: rgba(246, 240, 228, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-heading .side-label {
  margin: 0;
}

.eye-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(244, 232, 210, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.eye-btn[aria-pressed="true"] {
  border-color: transparent;
  background: #e7c27a;
  color: #24180f;
}

.eye-btn svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
}

.eye-btn .eye-shut,
.eye-btn[aria-pressed="true"] .eye-open {
  display: none !important;
}

.eye-btn[aria-pressed="true"] .eye-shut {
  display: block !important;
}

.sidebar .app-menu {
  flex-direction: column;
  align-items: stretch;
}

.sidebar .app-menu button {
  text-align: left;
  border-radius: 12px;
}

.moderator-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.moderator-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.moderator-empty {
  color: rgba(246, 240, 228, 0.62);
}

.moderator-list button,
.slide-tools button {
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
}

.moderator-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.moderator-form input {
  min-width: 0;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--cream);
  background: #24180f;
  font: inherit;
}

.moderator-form button {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #e7c27a;
  color: #24180f;
  font: inherit;
  cursor: pointer;
}

.shell-main {
  min-width: 0;
}

.cards-head,
.guest-board {
  padding: 16px 22px 0;
}

.guest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guest-head input {
  width: min(280px, 100%);
  border: 1px solid rgba(244, 232, 210, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  background: #24180f;
  color: var(--cream);
  font: inherit;
}

.guest-head input::placeholder {
  color: rgba(246, 240, 228, 0.45);
}

.cards-head h2,
.guest-board h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
}

.cards-head p,
.guest-empty {
  margin: 4px 0 0;
  color: rgba(246, 240, 228, 0.7);
}

.card-rail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 14px 22px 8px;
}

.card-slide {
  flex: 0 0 420px;
  scroll-snap-align: start;
}

.card-slide.is-selected .glass-card {
  box-shadow:
    0 0 0 2px #e7c27a,
    0 0 28px rgba(255, 110, 170, 0.55),
    0 0 64px rgba(255, 150, 70, 0.35);
}

.card-rail .glass-scene {
  min-height: 0;
  display: block;
  padding: 0;
  overflow: visible;
}

.card-rail .glass-bg {
  border-radius: 28px;
}

.card-rail .glass-card {
  width: 100%;
}

.glass-category,
.glass-couple {
  margin: 0;
  text-align: center;
}

.glass-category {
  color: rgba(28, 20, 15, 0.62);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.glass-couple {
  margin: -8px 0 12px;
  color: rgba(28, 20, 15, 0.72);
  font-size: 0.92rem;
}

.slide-tools {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 6px 0;
}

.slide-tools [data-topup],
.slide-tools [data-forward] {
  color: #e7c27a;
}

.topup-form {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.topup-form[hidden] {
  display: none;
}

.topup-form input {
  width: 140px;
  border: 1px solid rgba(244, 232, 210, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--cream);
  background: #24180f;
  font: inherit;
}

.topup-form button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: #e7c27a;
  color: #24180f;
  font: inherit;
  cursor: pointer;
}

.topup-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.topup-list li {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(231, 194, 122, 0.16);
  color: #e7c27a;
  font-size: 0.82rem;
}

.guest-board {
  padding-bottom: 36px;
}

.guest-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.grand-total {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(231, 194, 122, 0.45);
  border-radius: 18px;
  background: #34261b;
}

.grand-total p,
.grand-total span {
  margin: 0;
  color: rgba(246, 240, 228, 0.7);
}

.grand-total strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.grand-total dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.grand-total div {
  display: grid;
  gap: 2px;
}

.grand-total dt {
  color: rgba(246, 240, 228, 0.62);
  font-size: 0.75rem;
}

.grand-total dd {
  margin: 0;
  font-weight: 600;
}

.summary-open {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #e7c27a;
  color: #24180f;
  font: inherit;
  cursor: pointer;
}

.wedding-note {
  margin: 12px 0 0;
  color: rgba(246, 240, 228, 0.72);
}

.wedding-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.wedding-form label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
}

.wedding-form input,
.wedding-form textarea {
  width: 100%;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #24180f;
  color: var(--cream);
  font: inherit;
}

.wedding-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.wedding-form .summary-open {
  margin-top: 0;
}

.color-wheel {
  display: grid;
  gap: 8px;
}

.color-wheel-title {
  margin: 0;
  font-size: 0.84rem;
}

.color-wheel .wedding-note,
.login-intro .wedding-note {
  margin: 0;
}

.login-intro {
  display: grid;
  gap: 10px;
}

.clear-photo {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: #e7c27a;
  font: inherit;
  cursor: pointer;
}

.color-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.color-pick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-pick input[type="color"] {
  width: 48px;
  height: 42px;
  flex: 0 0 48px;
  padding: 3px;
  border-radius: 12px;
  cursor: pointer;
}

.color-pick .color-hex {
  width: auto;
  min-width: 0;
  font-family: Consolas, "Segoe UI", monospace;
  letter-spacing: 0.04em;
}

.summary-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 10, 8, 0.72);
}

.summary-sheet[hidden] {
  display: none;
}

.summary-card {
  width: min(680px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 18px;
  border-radius: 24px;
  background: #2c2118;
  border: 1px solid var(--panel-line);
}

.summary-head,
.summary-table section p,
.summary-grand p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.summary-head h2,
.summary-table h3,
.summary-grand h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

.summary-head button {
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
}

.summary-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.summary-table section,
.summary-grand {
  padding: 12px 14px;
  border-radius: 16px;
  background: #24180f;
}

.summary-table h3,
.summary-grand h3 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-table p,
.summary-grand p {
  margin: 4px 0;
}

.summary-grand {
  margin-top: 12px;
  border: 1px solid rgba(231, 194, 122, 0.45);
}

.category-block {
  grid-column: 1 / -1;
  padding: 14px 14px 8px;
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background: #2c2118;
}

.category-block h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.category-block h3 span {
  color: #e7c27a;
  font-family: Outfit, sans-serif;
  font-size: 0.85rem;
}

.category-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guest-table {
  overflow-x: auto;
}

.guest-row {
  display: grid;
  grid-template-columns: 36px max-content max-content max-content max-content max-content;
  align-items: center;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  padding: 8px 0;
}

.guest-row + .guest-row {
  border-top: 1px solid rgba(244, 232, 210, 0.1);
}

.guest-columns {
  color: rgba(246, 240, 228, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guest-sn {
  color: rgba(246, 240, 228, 0.7);
}

.contact-btn {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 7px;
  background: #e7c27a;
  color: #24180f;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.contact-btn.is-off {
  opacity: 0.35;
}

.guest-phone {
  color: rgba(246, 240, 228, 0.78);
  font-size: 0.78rem;
  white-space: nowrap;
}

.category-block button {
  min-width: max-content;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.category-block button.is-active {
  color: #e7c27a;
}

@container app (max-width: 800px) {
  #page-scale {
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .sidebar .app-menu button,
  .moderator-form button {
    padding: 8px;
    font-size: 0.78rem;
  }

  .cards-head,
  .guest-board,
  .card-rail {
    padding-left: 12px;
    padding-right: 12px;
  }
}

body.is-locked .sidebar,
body.is-locked .shell-main,
body.is-locked .zoom-dock {
  display: none;
}

body.is-guest #page-scale,
body.is-guest.is-locked #page-scale {
  grid-template-columns: minmax(0, 1fr);
}

body.is-guest .sidebar {
  display: none;
}

body.is-phone:not(.is-guest) #page-scale {
  grid-template-columns: minmax(0, 1fr);
}

body.is-phone:not(.is-guest) .sidebar {
  position: relative;
  height: auto;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 16px 28px;
  align-items: start;
  padding: 16px 22px 6px;
}

body.is-phone:not(.is-guest) .brand-block,
body.is-phone:not(.is-guest) .staff-session,
body.is-phone:not(.is-guest) .account-admin {
  grid-column: 1 / -1;
}

body.is-phone:not(.is-guest) .sidebar .app-menu {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

body.is-phone:not(.is-guest) .sidebar .app-menu button,
body.is-phone:not(.is-guest) .summary-open,
body.is-phone:not(.is-guest) .moderator-form button,
body.is-phone:not(.is-guest) .staff-session p,
body.is-phone:not(.is-guest) .account-list small,
body.is-phone:not(.is-guest) .moderator-list span {
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

body.is-phone:not(.is-guest) .moderators,
body.is-phone:not(.is-guest) .account-admin {
  display: grid;
  align-content: start;
  gap: 10px;
}

body.is-phone:not(.is-guest) .moderator-list,
body.is-phone:not(.is-guest) .account-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

body.is-phone:not(.is-guest) .moderator-form,
body.is-phone:not(.is-guest) .account-form {
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  align-items: center;
}

body.is-phone:not(.is-guest) .moderator-form {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: auto;
  background:
    radial-gradient(circle at top, rgba(231, 194, 122, 0.2), transparent 46%),
    #24180f;
}

.login-gate.has-photo {
  place-items: end center;
  padding-bottom: 36px;
}

.login-hero {
  position: absolute;
  inset: 0 0 12% 0;
  pointer-events: none;
}

.login-hero[hidden] {
  display: none !important;
}

.login-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 100%);
}

.login-gate.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(36, 24, 15, 0.18) 38%, #24180f 78%);
}

.login-stage {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  justify-items: stretch;
}

.login-welcome {
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.05;
  color: #f6f0e4;
  text-shadow: 0 8px 28px rgba(36, 24, 15, 0.8);
}

.login-welcome[hidden] {
  display: none !important;
}

.zoom-dock {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(231, 194, 122, 0.45);
  border-radius: 999px;
  background: rgba(26, 18, 14, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.zoom-dock button {
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

#zoom-label {
  min-width: 52px;
  font-size: 0.78rem;
}

#zoom-in,
#zoom-out {
  background: #e7c27a;
  color: #24180f;
  font-weight: 600;
}

.login-gate[hidden],
#moderator-auth[hidden],
.auth-fields[hidden],
.auth-tabs[hidden],
.staff-session[hidden],
.guest-session[hidden],
.account-admin[hidden] {
  display: none !important;
}

.login-card {
  width: 100%;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 28px 22px 22px;
  border: 1px solid rgba(231, 194, 122, 0.35);
  border-radius: 28px;
  background: #1a120e;
}

.login-card h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 2.6rem;
}

.login-lead {
  margin: 0;
  color: rgba(246, 240, 228, 0.72);
  font-size: 0.92rem;
}

.role-options,
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.role-options label,
.auth-tabs button,
.login-submit,
.staff-session button,
.guest-session button {
  font: inherit;
  cursor: pointer;
}

.role-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(244, 232, 210, 0.28);
  border-radius: 14px;
  background: transparent;
  color: var(--cream);
}

.role-options label:has(input:checked) {
  border-color: transparent;
  background: #e7c27a;
  color: #24180f;
}

.role-options input {
  accent-color: #24180f;
}

.auth-tabs button,
.login-submit,
.staff-session button,
.guest-session button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: transparent;
  color: var(--cream);
}

.auth-tabs button {
  border: 1px solid rgba(244, 232, 210, 0.28);
}

.auth-tabs button.is-active,
.login-submit,
.staff-session button,
.guest-session button {
  background: #e7c27a;
  color: #24180f;
}

.auth-fields {
  display: grid;
  gap: 10px;
}

.auth-fields label,
.login-card .form-error {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}

.auth-fields input {
  width: 100%;
  border: 1px solid rgba(244, 232, 210, 0.28);
  border-radius: 12px;
  padding: 11px 12px;
  background: #24180f;
  color: var(--cream);
  font: inherit;
}

.staff-session,
.guest-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staff-session {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.staff-session p,
.guest-session p {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cards-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.guest-session {
  flex: 0 0 auto;
}

.guest-session button,
.staff-session button {
  white-space: nowrap;
}

.account-admin {
  display: grid;
  gap: 8px;
}

.account-note,
.account-list,
.account-admin .form-error {
  margin: 0;
}

.account-note,
.account-empty {
  color: rgba(246, 240, 228, 0.62);
  font-size: 0.78rem;
}

.account-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}

.account-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.account-list span {
  min-width: 0;
  display: grid;
}

.account-list small {
  color: rgba(246, 240, 228, 0.62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-list button,
.account-form button {
  border: 0;
  border-radius: 10px;
  background: #e7c27a;
  color: #24180f;
  font: inherit;
  cursor: pointer;
}

.account-list button {
  padding: 4px 8px;
  background: transparent;
  color: var(--cream);
}

.account-form {
  display: grid;
  gap: 6px;
}

.account-form input {
  min-width: 0;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--cream);
  background: #24180f;
  font: inherit;
}

.account-form button {
  padding: 8px 10px;
}
