@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Bangers&family=Bricolage+Grotesque:wght@600;700;800&family=Chewy&family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Pacifico&family=Playfair+Display:wght@700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --font-ui: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --wall-title-font: var(--font-ui);
  --ig-bg: #000;
  --ig-surface: #0d0d0f;
  --ig-surface-2: #16161a;
  --ig-elevated: rgba(18, 18, 20, 0.92);
  --ig-text: #f5f5f5;
  --ig-muted: #a8a8a8;
  --ig-soft: #737373;
  --ig-line: #262626;
  --ig-line-soft: rgba(255, 255, 255, 0.09);
  --ig-danger: #ff5a5f;
  --ig-success: #00c781;
  --ig-blue: #0095f6;
  --ig-gradient: linear-gradient(45deg, #feda75 0%, #fa7e1e 24%, #d62976 52%, #962fbf 76%, #4f5bd5 100%);
  --ig-gradient-soft: linear-gradient(135deg, rgba(254, 218, 117, 0.22), rgba(214, 41, 118, 0.18), rgba(79, 91, 213, 0.2));
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --soft-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ig-text);
  background: var(--ig-bg);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

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

button {
  border: 0;
}

a {
  color: inherit;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--ig-bg);
  color: var(--ig-text);
}

.boot-mark {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-page,
.setup-page,
.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(214, 41, 118, 0.14), transparent 30rem),
    radial-gradient(circle at 84% 6%, rgba(250, 126, 30, 0.13), transparent 32rem),
    linear-gradient(180deg, #050505 0%, #0b0b0d 54%, #000 100%);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
}

.auth-visual {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-visual-bg,
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-visual-bg {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02) 45%, rgba(0, 0, 0, 0.7)),
    url("/assets/ig-event-hero.png") left center / cover no-repeat;
  transform: scale(1.02);
  animation: heroBreath 16s ease-in-out infinite alternate;
}

.auth-visual::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at 24% 42%, rgba(255, 255, 255, 0.16), transparent 17rem);
  z-index: 1;
}

.auth-topbar,
.auth-copy {
  position: relative;
  z-index: 2;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ig-text);
}

.brand-symbol {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(214, 41, 118, 0.24);
}

.brand-lockup strong {
  display: block;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.05;
}

.brand-lockup span {
  display: block;
  margin-top: 2px;
  color: var(--ig-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.auth-topbar,
.app-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.live-dot,
.status-pill,
.summary-pills span,
.setup-stats span,
.hero-actions span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ig-line-soft);
  border-radius: 999px;
  color: var(--ig-text);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

.live-dot {
  min-height: 34px;
  padding: 0 13px;
  color: #fff;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ig-gradient);
  box-shadow: 0 0 0 5px rgba(214, 41, 118, 0.13);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  color: #ffd18a;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-copy {
  width: min(100%, 720px);
  animation: riseIn 760ms ease both;
}

.auth-copy h1,
.setup-title h1,
.admin-header h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-copy h1 {
  max-width: 700px;
  font-size: 5.4rem;
  line-height: 0.93;
}

.auth-copy p,
.setup-title p,
.admin-header p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions span {
  min-height: 38px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.story-ring {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ig-gradient);
  padding: 3px;
}

.story-ring img {
  width: 100%;
  height: 100%;
  border: 3px solid #050505;
  border-radius: 50%;
  object-fit: cover;
  background: #171717;
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  border-left: 1px solid var(--ig-line);
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(28px);
}

.login-box {
  width: min(100%, 430px);
  border: 1px solid var(--ig-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.96), rgba(10, 10, 12, 0.96));
  box-shadow: var(--shadow);
  padding: 30px;
  animation: panelIn 680ms ease both;
}

.login-mark {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  margin-bottom: 22px;
  box-shadow: 0 14px 34px rgba(214, 41, 118, 0.28);
}

.login-box h2,
.form-panel h2,
.admin-panel h2,
.post-editor h2 {
  margin: 0 0 18px;
  font-size: 1.42rem;
  line-height: 1.1;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.field label {
  color: var(--ig-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.field-label {
  color: var(--ig-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.input-shell {
  width: 100%;
  border: 1px solid var(--ig-line);
  border-radius: 8px;
  background: #050505;
  color: var(--ig-text);
  min-height: 44px;
  outline: none;
}

.field input,
.field select,
.field textarea {
  padding: 11px 12px;
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.field input[type="color"] {
  min-height: 44px;
  padding: 5px;
  cursor: pointer;
}

.input-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--ig-muted);
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.input-shell input {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin: -2px 0 16px;
  color: var(--ig-muted);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.remember-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--ig-pink);
  cursor: pointer;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input-shell:focus-within {
  border-color: rgba(214, 41, 118, 0.76);
  background: #0c0c0f;
  box-shadow: 0 0 0 4px rgba(214, 41, 118, 0.16);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease,
    border-color 170ms ease,
    color 170ms ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-wide {
  width: 100%;
}

.btn-primary {
  color: #fff;
  background: var(--ig-gradient);
  box-shadow: 0 16px 36px rgba(214, 41, 118, 0.22);
}

.btn-accent {
  color: #fff;
  background: #ed4956;
  box-shadow: 0 16px 36px rgba(237, 73, 86, 0.22);
}

.btn-secondary {
  color: var(--ig-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ig-line);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.muted {
  color: var(--ig-muted);
}

.error {
  min-height: 20px;
  color: #ff8a8f;
  font-weight: 800;
  font-size: 0.9rem;
}

.setup-page,
.admin-page {
  padding: 22px;
}

.app-header {
  width: min(100%, 1380px);
  max-width: 1380px;
  margin: 0 auto 46px;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.nav-links button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ig-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ig-text);
  text-decoration: none;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links .active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.setup-grid {
  width: min(100%, 1380px);
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 0.92fr);
  gap: 70px;
  align-items: start;
}

.setup-title {
  position: sticky;
  top: 24px;
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 72px;
}

.setup-title h1 {
  max-width: 720px;
  font-size: 6.2rem;
  line-height: 0.9;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.setup-stats {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.setup-stats span,
.summary-pills span {
  min-height: 42px;
  padding: 0 14px;
  color: var(--ig-muted);
}

.setup-stats strong,
.summary-pills strong {
  color: var(--ig-text);
}

.form-panel {
  width: 100%;
  display: grid;
  gap: 16px;
}

.form-panel > form,
.admin-panel,
.post-editor {
  width: 100%;
  border: 1px solid var(--ig-line);
  border-radius: var(--radius);
  background: rgba(13, 13, 15, 0.94);
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 0;
  margin-bottom: -2px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.status-pill {
  min-height: 32px;
  padding: 0 12px;
  color: #fff;
  background: rgba(0, 199, 129, 0.13);
  border-color: rgba(0, 199, 129, 0.32);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.projector-controls {
  margin: 18px 0 6px;
  padding: 0;
  border: 1px solid var(--ig-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 41, 118, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.projector-controls summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.projector-controls summary::-webkit-details-marker {
  display: none;
}

.projector-controls summary h2 {
  margin: 0;
  font-size: 1.05rem;
}

.projector-controls summary .eyebrow {
  margin-bottom: 6px;
}

.dropdown-cue {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--ig-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-cue::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ig-text);
  border-bottom: 2px solid var(--ig-text);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 170ms ease;
}

.projector-controls[open] .dropdown-cue::before {
  transform: translateY(2px) rotate(225deg);
}

.projector-control-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--ig-line);
}

.panel-heading.compact {
  padding: 0;
  margin: 0 0 16px;
}

.panel-heading.compact h2 {
  font-size: 1.05rem;
}

.control-row {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
}

.control-row.two-axis {
  grid-template-columns: 118px 1fr 1fr;
}

.control-row label {
  color: var(--ig-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.control-row output {
  min-width: 46px;
  color: var(--ig-text);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.control-row input[type="range"] {
  accent-color: #d62976;
  width: 100%;
}

.preset-grid,
.source-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.preset-chip,
.source-toggle {
  min-height: 60px;
  border: 1px solid var(--ig-line);
  border-radius: 8px;
  background: #050505;
  color: var(--ig-text);
  cursor: pointer;
  text-align: left;
  padding: 11px;
  font-weight: 850;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease;
}

.preset-chip:hover,
.source-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.preset-chip span {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 9px;
  background: var(--chip);
}

.preset-chip.active {
  border-color: rgba(214, 41, 118, 0.86);
  box-shadow: 0 0 0 3px rgba(214, 41, 118, 0.14);
}

.source-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.source-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.source-toggle span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.source-toggle:has(input:checked) {
  border-color: rgba(0, 149, 246, 0.74);
  background: rgba(0, 149, 246, 0.08);
}

.source-toggle:has(input:checked) span {
  background: var(--ig-blue);
}

.source-toggle:has(input:disabled) {
  opacity: 0.48;
  cursor: not-allowed;
}

.form-actions {
  padding-top: 4px;
}

.dashboard-pills {
  width: min(100%, 1380px);
  margin: 0 auto 18px;
}

.dashboard-grid,
.user-home {
  width: min(100%, 1380px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.dashboard-panel .panel-heading {
  padding: 0;
  margin: 0 0 16px;
  align-items: center;
}

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

.data-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--ig-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.data-row strong,
.data-row span,
.data-row small {
  display: block;
}

.data-row span,
.data-row small {
  color: var(--ig-muted);
  line-height: 1.35;
}

.data-row small {
  max-width: 620px;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.row-actions .btn {
  min-height: 34px;
  padding: 0 11px;
}

.row-actions .danger {
  color: #ff9aa0;
  border-color: rgba(255, 90, 95, 0.26);
}

.user-home {
  min-height: 72vh;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
}

.user-home-copy h1 {
  max-width: 720px;
  margin: 8px 0 16px;
  font-family: var(--font-display);
  font-size: 5.3rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.user-home-copy p {
  max-width: 560px;
  color: var(--ig-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.event-picker-backdrop[hidden] {
  display: none;
}

.event-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.event-picker {
  width: min(100%, 940px);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
}

.preview-wall {
  min-height: 390px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: var(--theme-text, #fff);
  background: var(--theme-bg);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.text-font-editorial {
  --projector-font: var(--font-display);
}

.text-font-instagram {
  --projector-font: var(--font-ui);
}

.text-font-bricolage {
  --projector-font: "Bricolage Grotesque", var(--font-ui);
  --projector-title-weight: 800;
}

.text-font-playfair {
  --projector-font: "Playfair Display", Georgia, serif;
  --projector-title-weight: 900;
}

.text-font-pacifico {
  --projector-font: "Pacifico", cursive;
  --projector-title-weight: 400;
  --wall-title-weight: 400;
}

.text-font-bangers {
  --projector-font: "Bangers", Impact, fantasy;
  --projector-title-weight: 400;
  --wall-title-weight: 400;
}

.text-font-chewy {
  --projector-font: "Chewy", system-ui, sans-serif;
  --projector-title-weight: 400;
  --wall-title-weight: 400;
}

.text-font-baloo {
  --projector-font: "Baloo 2", system-ui, sans-serif;
  --projector-title-weight: 800;
}

.text-font-serif {
  --projector-font: "Palatino Linotype", Palatino, Georgia, serif;
}

.text-font-mono {
  --projector-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.preview-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.16), transparent 12rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22));
}

.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 850;
}

.preview-copy,
.preview-hashtag {
  position: absolute;
  z-index: 3;
}

.preview-copy {
  inset: 0;
  pointer-events: none;
}

.preview-wall h3 {
  position: absolute;
  left: var(--projector-title-x, 5%);
  top: var(--projector-title-y, 22%);
  transform: translateY(-50%);
  margin: 0;
  max-width: 72%;
  font-size: var(--projector-title-size, 46px);
  line-height: 0.94;
  font-family: var(--projector-font, var(--font-display));
  font-weight: var(--projector-title-weight, 700);
  letter-spacing: 0;
  color: var(--projector-title-color, #fff);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.preview-wall p {
  position: absolute;
  left: var(--projector-subtitle-x, 5%);
  top: var(--projector-subtitle-y, 48%);
  transform: translateY(-50%);
  margin: 0;
  max-width: 350px;
  color: var(--projector-subtitle-color, var(--theme-muted, rgba(255, 255, 255, 0.72)));
  font-size: var(--projector-subtitle-size, 16px);
  font-family: var(--font-ui);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.preview-wall [data-preview-text] {
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border-radius: 6px;
  outline: 1px solid transparent;
  outline-offset: 7px;
  transition:
    filter 160ms ease,
    outline-color 160ms ease,
    background 160ms ease;
}

.preview-wall [data-preview-text]:hover,
.preview-wall [data-preview-text]:focus-visible {
  outline-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.preview-wall [data-preview-text].is-dragging {
  cursor: grabbing;
  outline-color: rgba(214, 41, 118, 0.9);
}

.preview-wall [data-preview-text].is-editing {
  cursor: text;
  user-select: text;
  outline-color: rgba(254, 218, 117, 0.9);
  background: rgba(0, 0, 0, 0.22);
}

.preview-resize-handle {
  position: absolute;
  z-index: 24;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(254, 218, 117, 0.95), rgba(214, 41, 118, 0.95), rgba(79, 91, 213, 0.95));
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  cursor: nwse-resize;
  opacity: 0.78;
  transform: translate(-50%, -50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.preview-resize-handle::before,
.preview-resize-handle::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(-45deg);
  transform-origin: right center;
}

.preview-resize-handle::after {
  right: 4px;
  bottom: 8px;
  width: 4px;
}

.preview-wall:not(:hover) .preview-resize-handle:not(:focus-visible):not(.is-resizing) {
  opacity: 0.34;
}

.preview-resize-handle:hover,
.preview-resize-handle:focus-visible,
.preview-resize-handle.is-resizing {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42),
    0 0 0 5px rgba(214, 41, 118, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.preview-hashtag {
  left: var(--projector-hashtag-x, 50%);
  top: var(--projector-hashtag-y, 92%);
  transform: translate(-50%, -50%);
  padding: 7px 14px;
  border: 1px solid rgba(255, 219, 115, 0.5);
  border-radius: 999px;
  color: var(--projector-hashtag-color, #ffe58b);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  font-family: var(--projector-font, var(--font-display));
  font-size: var(--projector-hashtag-size, 18px);
  font-weight: var(--projector-title-weight, 850);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.preview-photo-stack {
  position: absolute;
  right: 36px;
  bottom: 36px;
  width: 230px;
  height: 270px;
}

.preview-photo {
  position: absolute;
  width: 168px;
  aspect-ratio: 0.78;
  padding: 9px 9px 40px;
  background: #fff;
  color: #141414;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

.preview-photo div {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.preview-photo-one {
  right: 0;
  bottom: 0;
  transform: rotate(7deg);
}

.preview-photo-one div {
  background-image: url("/assets/sample-3.png");
}

.preview-photo-two {
  left: 0;
  top: 0;
  transform: rotate(-8deg);
}

.preview-photo-two div {
  background-image: url("/assets/sample-1.png");
}

.admin-page {
  color: var(--ig-text);
}

.admin-shell {
  width: min(100%, 1500px);
  max-width: 1500px;
  margin: 0 auto;
}

.admin-header {
  align-items: start;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--ig-line);
}

.admin-identity {
  display: grid;
  gap: 18px;
}

.admin-header h1 {
  max-width: 960px;
  font-size: 4.5rem;
  line-height: 0.94;
}

.admin-header p {
  margin-top: -4px;
  font-size: 1rem;
}

.admin-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ig-line);
}

.story-rail {
  min-width: 0;
  display: flex;
  gap: 17px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.story-bubble {
  width: 76px;
  display: grid;
  justify-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.story-ring {
  width: 66px;
  height: 66px;
}

.story-bubble strong {
  width: 76px;
  overflow: hidden;
  color: var(--ig-text);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 20px;
}

.admin-left {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

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

.source-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--ig-line);
}

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

.source-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ig-muted);
  background: rgba(255, 255, 255, 0.06);
}

.source-icon.on {
  color: #fff;
  background: var(--ig-gradient);
}

.source-row strong {
  display: block;
  margin-bottom: 4px;
}

.source-row small {
  color: var(--ig-muted);
  line-height: 1.38;
}

.guest-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  background:
    linear-gradient(135deg, rgba(0, 149, 246, 0.18), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(255, 48, 108, 0.18), transparent 34%),
    #050506;
  color: var(--ig-text);
}

.guest-hero {
  min-height: 100vh;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.guest-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guest-admin-return {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ig-text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.guest-admin-return:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.guest-hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 8% auto;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  background: url("/assets/ig-event-hero.png") center / cover no-repeat;
  border-radius: 28px;
  opacity: 0.84;
  transform: rotate(3deg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
}

.guest-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding-bottom: 8vh;
}

.guest-copy h1,
.guest-success h1 {
  margin: 8px 0;
  font-size: 5.2rem;
  line-height: 0.92;
}

.guest-copy p {
  color: #ffe58b;
  font-size: 1.4rem;
  font-weight: 900;
}

.guest-panel {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.38);
  border-left: 1px solid var(--ig-line);
  backdrop-filter: blur(18px);
}

.guest-form,
.guest-closed,
.guest-success {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-action {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ig-text);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 170ms ease,
    background 170ms ease,
    transform 170ms ease;
}

.photo-action:hover {
  border-color: rgba(0, 149, 246, 0.68);
  background: rgba(0, 149, 246, 0.1);
  transform: translateY(-1px);
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-action svg {
  width: 34px;
  height: 34px;
  color: var(--ig-blue);
}

.photo-action span,
.guest-hint,
.guest-closed p,
.guest-success p {
  color: var(--ig-muted);
  line-height: 1.42;
}

.guest-preview img {
  width: 100%;
  max-height: 280px;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

.guest-hint {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}

.guest-closed,
.guest-success {
  justify-items: start;
  padding: 28px;
  border: 1px solid var(--ig-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.moderation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 16px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ig-line);
}

.segmented button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  background: transparent;
  color: var(--ig-muted);
  font-weight: 850;
  cursor: pointer;
}

.segmented button.active {
  color: #000;
  background: #fff;
}

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

.admin-card {
  background: #0d0d0f;
  border: 1px solid var(--ig-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.admin-card.hidden {
  opacity: 0.54;
}

.admin-card-media {
  position: relative;
  overflow: hidden;
  background: #111;
}

.admin-card-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #111;
  transition: transform 400ms ease;
}

.admin-card:hover .admin-card-media img {
  transform: scale(1.03);
}

.source-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  backdrop-filter: blur(12px);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-card-body {
  padding: 13px;
}

.card-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.author-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ig-gradient);
  border: 2px solid #0d0d0f;
  font-size: 0.78rem;
  font-weight: 900;
  object-fit: cover;
}

.card-author strong,
.admin-card-body strong {
  display: block;
  line-height: 1.15;
}

.card-author .muted {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
}

.admin-card-body p {
  margin: 11px 0 13px;
  color: #d8d8d8;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ig-text);
  font-weight: 850;
  cursor: pointer;
  transition:
    background 170ms ease,
    transform 170ms ease,
    color 170ms ease;
}

.card-actions button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
}

.card-actions button.danger {
  background: rgba(255, 90, 95, 0.13);
  color: #ff9ca0;
}

.wall-page {
  min-height: 100vh;
  color: var(--theme-text, #fffaf3);
  background: var(--theme-bg);
  overflow: hidden;
  position: relative;
}

.wall-page::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: var(--frame-width, 1px) solid var(--frame-line, rgba(255, 255, 255, 0.34));
  box-shadow: var(--frame-shadow, none);
  pointer-events: none;
  z-index: 8;
}

.wall-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(
    --frame-texture,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px)
  );
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.5), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.wall-topline {
  position: relative;
  z-index: 4;
  min-height: 24vh;
  padding: 48px 72px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.wall-title {
  max-width: 920px;
}

.wall-title h1 {
  position: fixed;
  left: var(--projector-title-x, 5%);
  top: var(--projector-title-y, 22%);
  z-index: 6;
  max-width: 62vw;
  transform: translateY(-50%);
  margin: 0;
  font-family: var(--projector-font, var(--wall-title-font, var(--font-display)));
  font-size: var(--projector-title-size, var(--wall-title-size, 6.5rem));
  font-weight: var(--wall-title-weight, 900);
  line-height: var(--wall-title-line, 0.88);
  letter-spacing: 0;
  text-transform: var(--wall-title-transform, none);
  color: var(--projector-title-color, var(--wall-title-color, currentColor));
  text-shadow: var(--wall-title-shadow, none);
  text-wrap: balance;
}

.wall-title p {
  position: fixed;
  left: var(--projector-subtitle-x, 5%);
  top: var(--projector-subtitle-y, 48%);
  z-index: 6;
  max-width: 42vw;
  transform: translateY(-50%);
  margin: 0;
  font-size: var(--projector-subtitle-size, 1.25rem);
  color: var(--projector-subtitle-color, var(--theme-muted, rgba(255, 255, 255, 0.72)));
  font-family: var(--font-ui);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.48);
}

.wall-meta {
  position: fixed;
  left: var(--projector-hashtag-x, 50%);
  top: var(--projector-hashtag-y, 92%);
  bottom: auto;
  z-index: 22;
  min-width: 0;
  max-width: calc(100vw - 48px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  color: var(--theme-text, #fff);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.wall-hashtag {
  color: var(--projector-hashtag-color, currentColor);
  font-size: var(--projector-hashtag-size, 1.6rem);
  font-weight: 900;
  font-family: var(--projector-font, var(--font-display));
  letter-spacing: 0;
}

.wall-qr {
  position: fixed;
  left: 42px;
  bottom: 42px;
  z-index: 24;
  width: 176px;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px;
  color: #111;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.wall-qr-code {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  padding: 7px;
  background: #fff;
  border-radius: 10px;
}

.wall-qr-code img,
.wall-qr-code canvas,
.wall-qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wall-qr strong,
.wall-qr span {
  display: block;
  text-align: center;
}

.wall-qr strong {
  font-size: 0.86rem;
  line-height: 1.1;
}

.wall-qr span {
  max-width: 148px;
  overflow: hidden;
  color: #555;
  font-size: 0.66rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-count {
  display: none;
}

.wall-stage {
  position: absolute;
  inset: 24vh 4vw 9vh;
  z-index: 3;
  animation: stageDrift 26s ease-in-out infinite alternate;
}

.don-decor {
  display: none;
}

.empty-wall {
  position: absolute;
  inset: 34vh auto auto 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 18px 22px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.empty-wall.hidden {
  opacity: 0;
  pointer-events: none;
}

.wall-escape {
  position: absolute;
  right: 44px;
  bottom: 44px;
  z-index: 20;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(248, 231, 176, 0.8);
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(248, 231, 176, 0.18);
  border-radius: 50%;
  text-decoration: none;
  opacity: 0.035;
  transition:
    opacity 180ms ease,
    background 180ms ease,
    width 180ms ease,
    border-radius 180ms ease;
}

.wall-escape::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.wall-escape span {
  position: absolute;
  opacity: 0;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wall-escape:hover,
.wall-escape:focus-visible {
  width: 68px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0.72;
  outline: 0;
}

.wall-escape:hover::before,
.wall-escape:focus-visible::before {
  display: none;
}

.wall-escape:hover span,
.wall-escape:focus-visible span {
  position: static;
  opacity: 1;
}

.polaroid {
  --rotate: 0deg;
  --paper-top: #fffdf7;
  --paper-mid: #f8f0dd;
  --paper-bottom: #eadcbf;
  --paper-edge: rgba(191, 141, 47, 0.58);
  --paper-ink: #21170f;
  position: absolute;
  width: clamp(156px, 14.6vw, 238px);
  min-height: clamp(232px, 20.5vw, 342px);
  padding: clamp(10px, 0.85vw, 14px) clamp(10px, 0.85vw, 14px) clamp(62px, 4.6vw, 78px);
  color: var(--paper-ink);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.58), transparent 34%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(180deg, var(--paper-top) 0%, var(--paper-mid) 58%, var(--paper-bottom) 100%);
  border: 1px solid rgba(255, 246, 218, 0.92);
  border-radius: 2px;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.46),
    0 10px 18px rgba(0, 0, 0, 0.28),
    0 0 0 2px var(--paper-edge),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -18px 40px rgba(149, 103, 31, 0.08);
  transform: translate3d(0, 26px, 0) rotate(var(--rotate)) scale(0.92);
  opacity: 0;
  overflow: visible;
  animation:
    photoDrop 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
    photoFloat 7s ease-in-out infinite alternate;
}

.polaroid::before,
.polaroid::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.polaroid::before {
  inset: 7px;
  border: 1px solid rgba(140, 95, 23, 0.2);
  border-radius: 1px;
  box-shadow: inset 0 0 24px rgba(96, 62, 14, 0.08);
}

.polaroid::after {
  inset: auto 14px 11px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28), transparent 68%);
  filter: blur(12px);
  opacity: 0.42;
  transform: translateY(26px);
  z-index: -1;
}

.polaroid.pinned {
  outline: 0;
  box-shadow:
    0 30px 82px rgba(0, 0, 0, 0.52),
    0 0 0 2px rgba(255, 231, 160, 0.86),
    0 0 32px rgba(244, 184, 96, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.polaroid.removing {
  animation: photoLift 520ms ease forwards;
  pointer-events: none;
}

.polaroid-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1px;
  background: #090909;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.54),
    0 14px 22px rgba(48, 31, 10, 0.16),
    inset 0 0 0 1px rgba(0, 0, 0, 0.26);
}

.polaroid-media-frame::before,
.polaroid-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.polaroid-media-frame::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 30%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12));
  mix-blend-mode: screen;
}

.polaroid-media-frame::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 28px rgba(0, 0, 0, 0.22);
}

.polaroid-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
  filter: saturate(1.06) contrast(1.03);
}

.polaroid-caption {
  position: absolute;
  left: clamp(15px, 1.2vw, 20px);
  right: clamp(15px, 1.2vw, 20px);
  bottom: clamp(15px, 1.4vw, 22px);
  min-height: 42px;
}

.polaroid-caption strong {
  display: inline;
  margin-right: 5px;
  color: #21170f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 900;
}

.polaroid-handle {
  color: #9b927f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 850;
}

.polaroid-caption p {
  margin: 5px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #574b3b;
  font-size: 0.82rem;
  line-height: 1.25;
}

.source-mark {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 246, 214, 0.9);
  color: #1c1307;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.theme-don {
  --theme-bg:
    radial-gradient(circle at 76% 24%, rgba(212, 175, 55, 0.22), transparent 22%),
    radial-gradient(circle at 28% 80%, rgba(126, 87, 26, 0.2), transparent 30%),
    linear-gradient(135deg, #070605 0%, #17100a 48%, #2a1a0b 100%);
  --theme-text: #f8e7b0;
  --theme-muted: rgba(248, 231, 176, 0.74);
  --frame-line: #d4af37;
  --frame-width: 28px;
  --frame-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.72),
    inset 0 0 0 12px rgba(255, 229, 146, 0.22),
    inset 0 0 42px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 234, 174, 0.65);
  --frame-texture:
    radial-gradient(circle at 18% 28%, rgba(255, 225, 148, 0.08), transparent 18%),
    radial-gradient(circle at 85% 78%, rgba(255, 225, 148, 0.08), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  --wall-title-font: var(--font-display);
  --wall-title-size: 6.8rem;
  --wall-title-weight: 900;
  --wall-title-line: 0.82;
  --wall-title-transform: uppercase;
  --wall-title-color: #f8e7b0;
  --wall-title-shadow:
    0 2px 0 #6b4715,
    0 7px 24px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(212, 175, 55, 0.22);
}

.theme-don.wall-page {
  padding: 0;
  background: #040302 url("/assets/don-frame-aishu-4k.png") center center / 100% 100% no-repeat;
}

.theme-don.wall-page::before,
.theme-don.wall-page::after,
.theme-don .don-decor {
  display: none;
}

.theme-don .wall-topline {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  min-height: 0;
  padding: 0;
  pointer-events: none;
}

.theme-don .wall-title {
  display: none;
}

.theme-don .wall-meta {
  position: fixed;
  top: var(--projector-hashtag-y, 92%);
  bottom: auto;
  left: var(--projector-hashtag-x, 50%);
  transform: translateX(-50%);
  min-width: 0;
  width: max-content;
  max-width: 42vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  color: #fff0ad;
  text-align: center;
  border: 1px solid rgba(255, 219, 115, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(12, 7, 2, 0.92), rgba(66, 36, 5, 0.66)),
    radial-gradient(circle at 50% 0%, rgba(255, 212, 98, 0.28), transparent 68%);
  opacity: 1;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.6),
    inset 0 0 18px rgba(255, 202, 84, 0.14);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.96);
}

.theme-don .wall-hashtag {
  color: var(--projector-hashtag-color, #ffe58b);
  font-family: var(--projector-font, "Palatino Linotype", Palatino, Georgia, serif);
  font-size: var(--projector-hashtag-size, 1.45rem);
  font-weight: 900;
  line-height: 1;
}

.theme-don .wall-count {
  display: none;
}

.theme-don .wall-stage {
  inset: 30vh 18.5vw 9.2vh 19vw;
  z-index: 4;
  animation: none;
}

.theme-don .empty-wall {
  top: 46%;
  background: rgba(0, 0, 0, 0.46);
  color: #e9c36c;
  border-color: rgba(233, 195, 108, 0.28);
}

.theme-don .polaroid {
  --paper-top: #fff8df;
  --paper-mid: #f2e5c7;
  --paper-bottom: #d9c08b;
  --paper-edge: rgba(224, 174, 66, 0.82);
  width: clamp(172px, 14vw, 286px);
  min-height: clamp(254px, 20vw, 412px);
  padding: clamp(12px, 0.9vw, 16px) clamp(12px, 0.9vw, 16px) clamp(62px, 4.7vw, 88px);
  border: 1px solid rgba(255, 235, 174, 0.98);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.72),
    0 10px 22px rgba(0, 0, 0, 0.48),
    0 0 0 3px rgba(190, 134, 28, 0.86),
    0 0 0 4px rgba(255, 239, 176, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -24px 44px rgba(138, 82, 7, 0.12);
}

.theme-don .polaroid::before {
  border-color: rgba(116, 73, 12, 0.24);
  box-shadow:
    inset 0 0 26px rgba(96, 58, 8, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-don .polaroid-media-frame {
  border: 1px solid rgba(92, 55, 8, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 28px rgba(56, 33, 8, 0.24),
    inset 0 0 0 1px rgba(255, 222, 144, 0.2);
}

.theme-don .polaroid-caption {
  bottom: clamp(16px, 1.3vw, 22px);
}

.theme-don .polaroid-caption strong {
  color: #180f05;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.theme-don .polaroid-caption p {
  margin-top: 4px;
  color: #5a4630;
  font-size: 0.8rem;
  font-family: var(--font-ui);
}

.theme-don .polaroid-handle {
  color: #9a8664;
}

.theme-don .source-mark {
  top: 9px;
  left: 9px;
  color: #0e0a05;
  background: linear-gradient(135deg, #fff3bb, #d79b2f);
  font-size: 0.62rem;
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.theme-don .wall-escape {
  right: 1.4vw;
  bottom: 1.4vw;
  color: #e9c36c;
  opacity: 0.025;
}

.theme-birthday.wall-page,
.theme-gender-reveal.wall-page,
.theme-wedding.wall-page,
.theme-graduation.wall-page,
.theme-corporate.wall-page,
.preview-wall.theme-don,
.preview-wall.theme-birthday,
.preview-wall.theme-gender-reveal,
.preview-wall.theme-wedding,
.preview-wall.theme-graduation,
.preview-wall.theme-corporate {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

.theme-birthday.wall-page {
  background: #090406 url("/assets/frame-birthday-premium.png") center center / 100% 100% no-repeat;
}

.theme-gender-reveal.wall-page {
  background: #fff4f9 url("/assets/frame-gender-reveal-premium.png") center center / 100% 100% no-repeat;
}

.theme-wedding.wall-page {
  background: #f6f0e9 url("/assets/frame-wedding-premium.png") center center / 100% 100% no-repeat;
}

.theme-graduation.wall-page {
  background: #060c1d url("/assets/frame-graduation-premium.png") center center / 100% 100% no-repeat;
}

.theme-corporate.wall-page {
  background: #06080b url("/assets/frame-corporate-premium.png") center center / 100% 100% no-repeat;
}

.preview-wall.theme-don {
  background: #040302 url("/assets/don-frame-aishu-4k.png") center center / 100% 100% no-repeat;
}

.preview-wall.theme-birthday {
  background: #090406 url("/assets/frame-birthday-premium.png") center center / 100% 100% no-repeat;
}

.preview-wall.theme-gender-reveal {
  background: #fff4f9 url("/assets/frame-gender-reveal-premium.png") center center / 100% 100% no-repeat;
}

.preview-wall.theme-wedding {
  background: #f6f0e9 url("/assets/frame-wedding-premium.png") center center / 100% 100% no-repeat;
}

.preview-wall.theme-graduation {
  background: #060c1d url("/assets/frame-graduation-premium.png") center center / 100% 100% no-repeat;
}

.preview-wall.theme-corporate {
  background: #06080b url("/assets/frame-corporate-premium.png") center center / 100% 100% no-repeat;
}

.theme-birthday.wall-page::before,
.theme-birthday.wall-page::after,
.theme-gender-reveal.wall-page::before,
.theme-gender-reveal.wall-page::after,
.theme-wedding.wall-page::before,
.theme-wedding.wall-page::after,
.theme-graduation.wall-page::before,
.theme-graduation.wall-page::after,
.theme-corporate.wall-page::before,
.theme-corporate.wall-page::after {
  display: none;
}

.theme-birthday {
  --theme-bg:
    radial-gradient(circle at 20% 10%, rgba(255, 214, 102, 0.24), transparent 23%),
    radial-gradient(circle at 82% 18%, rgba(232, 77, 122, 0.22), transparent 22%),
    linear-gradient(135deg, #4f1428 0%, #9e2a4f 48%, #f0a3aa 100%);
  --theme-text: #fffaf3;
  --theme-muted: rgba(255, 250, 243, 0.76);
  --frame-line: rgba(255, 250, 243, 0.42);
}

.theme-gender-reveal {
  --theme-bg:
    radial-gradient(circle at 18% 18%, rgba(255, 155, 200, 0.3), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(120, 214, 255, 0.24), transparent 28%),
    linear-gradient(145deg, #fff4f8 0%, #f7dce8 48%, #dcefff 100%);
  --theme-text: #2d2030;
  --theme-muted: rgba(45, 32, 48, 0.7);
  --frame-line: rgba(45, 32, 48, 0.24);
}

.theme-wedding {
  --theme-bg:
    radial-gradient(circle at 18% 18%, rgba(185, 139, 75, 0.18), transparent 24%),
    linear-gradient(135deg, #f6f0e7 0%, #dac6a7 45%, #8b6a44 100%);
  --theme-text: #211a15;
  --theme-muted: rgba(33, 26, 21, 0.68);
  --frame-line: rgba(33, 26, 21, 0.28);
}

.theme-graduation {
  --theme-bg:
    radial-gradient(circle at 86% 14%, rgba(96, 165, 250, 0.22), transparent 24%),
    linear-gradient(135deg, #071426 0%, #17345c 55%, #f3d58c 100%);
  --theme-text: #f8fbff;
  --theme-muted: rgba(248, 251, 255, 0.72);
  --frame-line: rgba(248, 251, 255, 0.3);
}

.theme-corporate {
  --theme-bg:
    linear-gradient(90deg, rgba(15, 118, 110, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, #f7f9f6 0%, #d8e6df 48%, #14211f 100%);
  --theme-text: #14211f;
  --theme-muted: rgba(20, 33, 31, 0.7);
  --frame-line: rgba(20, 33, 31, 0.24);
}

@keyframes heroBreath {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-10px, 0, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes photoDrop {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--rotate)) scale(1);
  }
}

@keyframes photoLift {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--rotate)) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -34px, 0) rotate(var(--rotate)) scale(0.94);
  }
}

@keyframes photoFloat {
  from {
    margin-top: 0;
  }
  to {
    margin-top: -10px;
  }
}

@keyframes stageDrift {
  from {
    transform: translate3d(-0.8vw, 0, 0);
  }
  to {
    transform: translate3d(0.8vw, -0.8vh, 0);
  }
}

@media (max-width: 1180px) {
  .auth-copy h1 {
    font-size: 4.4rem;
  }

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

  .setup-title {
    position: static;
    min-height: auto;
    padding-bottom: 0;
  }

  .setup-title h1 {
    font-size: 4.8rem;
  }
}

@media (max-width: 920px) {
  .auth-page,
  .admin-grid,
  .dashboard-grid,
  .user-home,
  .guest-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 64vh;
    padding: 30px;
  }

  .auth-panel {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--ig-line);
  }

  .guest-hero,
  .guest-panel {
    min-height: auto;
  }

  .guest-panel {
    border-left: 0;
    border-top: 1px solid var(--ig-line);
  }

  .auth-copy h1,
  .setup-title h1,
  .admin-header h1 {
    font-size: 3.4rem;
  }

  .admin-left {
    position: static;
  }

  .admin-summary,
  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-pills {
    justify-content: flex-start;
  }

  .wall-topline {
    min-height: 21vh;
    flex-direction: column;
    gap: 10px;
    padding: 32px 28px 0;
  }

  .wall-title {
    max-width: 100%;
  }

  .wall-title h1 {
    font-size: 4rem;
  }

  .wall-meta {
    text-align: left;
  }

  .wall-stage {
    inset: 31vh 2vw 2vh;
  }

  .wall-qr {
    left: 20px;
    bottom: 20px;
    width: 146px;
    padding: 10px;
  }

  .wall-qr-code {
    width: 106px;
    height: 106px;
  }

  .polaroid {
    width: clamp(122px, 35vw, 210px);
  }
}

@media (max-width: 640px) {
  .setup-page,
  .admin-page {
    padding: 16px;
  }

  .auth-visual {
    min-height: 58vh;
    padding: 22px;
  }

  .auth-copy h1,
  .setup-title h1,
  .admin-header h1,
  .user-home-copy h1 {
    font-size: 2.72rem;
  }

  .auth-copy p,
  .setup-title p {
    font-size: 1rem;
  }

  .auth-panel {
    padding: 18px;
  }

  .login-box,
  .form-panel > form,
  .admin-panel,
  .post-editor,
  .guest-closed,
  .guest-success {
    padding: 20px;
  }

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

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

  .guest-hero,
  .guest-panel {
    padding: 18px;
  }

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

  .photo-action {
    min-height: 96px;
  }

  .guest-copy h1,
  .guest-success h1 {
    font-size: 2.55rem;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a,
  .nav-links button {
    padding: 0 12px;
  }

  .preview-wall {
    min-height: 340px;
  }

  .preview-wall h3 {
    max-width: 100%;
    font-size: 2.35rem;
  }

  .preview-photo-stack {
    right: 20px;
    bottom: 22px;
    width: 190px;
    height: 210px;
    opacity: 0.74;
  }

  .preview-photo {
    width: 132px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
