:root {
  --paper: #fff7f2;
  --paper-soft: #f6e5d7;
  --cream: #fffdf8;
  --ink: #241810;
  --muted: #75604d;
  --gold: #a87918;
  --gold-soft: #e2c275;
  --blush: #ebb3a8;
  --rose: #a74d5b;
  --olive: #123f2d;
  --leaf: #496b50;
  --line: rgba(153, 104, 30, 0.2);
  --shadow: 0 22px 58px rgba(75, 43, 20, 0.14);
  --card: rgba(255, 252, 248, 0.82);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(235, 179, 168, 0.22), transparent 25%),
    radial-gradient(circle at 86% 10%, rgba(226, 194, 117, 0.28), transparent 28%),
    linear-gradient(135deg, #fffdf9 0%, var(--paper) 44%, #f5e0d0 100%);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.26)),
    url("assets/aj-emblem.png") right -12vw top -20vw / min(82vw, 860px) auto no-repeat;
  opacity: 0.36;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(183, 123, 40, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 123, 40, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  opacity: 0.34;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ambient-film,
.villa-film {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.film-layer {
  position: absolute;
  inset: -16%;
  opacity: 0.45;
  background:
    radial-gradient(circle at 14% 18%, rgba(233, 162, 155, 0.36), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(183, 123, 40, 0.22), transparent 24%),
    radial-gradient(circle at 52% 84%, rgba(95, 111, 67, 0.2), transparent 24%);
  filter: blur(24px);
  animation: drift 18s ease-in-out infinite alternate;
}

.film-layer-two {
  opacity: 0.28;
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

.light-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 58%);
  transform: translateX(-70%);
  animation: sweep 10s ease-in-out infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.92), rgba(255, 250, 244, 0.72));
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(183, 123, 40, 0.46);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 10px 24px rgba(116, 75, 31, 0.18);
  object-fit: cover;
}

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

.brand strong {
  color: #5b3519;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.brand small,
.eyebrow,
.panel-label,
.next-event,
.event-date,
.guest-card span,
.muted-copy,
label span,
legend,
.select-panel span,
.portal-event span,
.portal-event small,
.media-card span {
  color: var(--muted);
}

nav {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  width: min(620px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(133, 91, 34, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow:
    0 18px 48px rgba(75, 43, 20, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.22);
}

nav a,
.chip,
.button,
.install-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

nav a {
  display: grid;
  gap: 4px;
  place-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 6px 2px 5px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #59483b;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

nav a::before {
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  content: "" !important;
  opacity: 0.88;
  -webkit-mask: var(--tab-icon) center / 21px 21px no-repeat;
  mask: var(--tab-icon) center / 21px 21px no-repeat;
}

nav a[href="#home"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5 10.5V20h14v-9.5'/%3E%3Cpath d='M9.5 20v-5h5v5'/%3E%3C/svg%3E");
}

nav a[href="#events"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3Cpath d='M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E");
}

nav a[href="#guestPortal"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h14a2 2 0 0 1 2 2v3a3 3 0 0 0 0 6v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a3 3 0 0 0 0-6V8a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M9 10h6M9 14h6'/%3E%3C/svg%3E");
}

nav a[href="#guests"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9.5' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

nav a[href="#memories"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 15-4.5-4.5L9 18'/%3E%3C/svg%3E");
}

nav a[href="#planner"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3Cpath d='M8 6v12M16 6v12'/%3E%3C/svg%3E");
}

nav a.active {
  border-color: transparent;
  background: #123f2d;
  color: #fffaf2;
  box-shadow: 0 12px 24px rgba(18, 63, 45, 0.24);
}

nav a.active::before {
  opacity: 1;
}

.hero {
  display: grid;
  min-height: calc(100vh - 86px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: clamp(56px, 7vw, 100px) clamp(18px, 4vw, 56px) 48px;
}

.hero-copy {
  max-width: 930px;
}

.hero-emblem-panel {
  display: grid;
  gap: 18px;
  justify-items: center;
  align-self: end;
}

.hero-emblem {
  width: min(100%, 410px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 34px 52px rgba(116, 75, 31, 0.24));
  animation: float 5s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  max-width: 1050px;
  margin-bottom: 22px;
  color: #6a3d18;
  font-size: clamp(4rem, 12vw, 10.2rem);
  line-height: 0.86;
  text-shadow: 0 18px 34px rgba(183, 123, 40, 0.14);
}

h2 {
  margin-bottom: 0;
  color: #6a3d18;
  font-size: clamp(2.2rem, 5.8vw, 5.2rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 14px;
  color: #6a3d18;
  font-size: 1.24rem;
}

.hero-line {
  max-width: 710px;
  color: #654b31;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.6;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.home-pills span {
  padding: 8px 11px;
  border: 1px solid rgba(183, 123, 40, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #6b4a28;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-actions,
.toolbar,
.export-actions,
.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin-top: 22px;
}

.quick-actions a {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(183, 123, 40, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 232, 0.56)),
    radial-gradient(circle at top right, rgba(233, 162, 155, 0.16), transparent 42%);
  box-shadow: 0 16px 38px rgba(116, 75, 31, 0.1);
}

.quick-actions a::after {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(183, 123, 40, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  color: #8b5b20;
  content: ">";
  display: grid;
  font-weight: 900;
  place-items: center;
}

.quick-actions span,
.quick-actions strong,
.quick-actions small {
  display: block;
}

.quick-actions span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.quick-actions strong {
  margin-top: 10px;
  color: #5f351a;
}

.quick-actions small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.home-dashboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

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

.home-stat-grid article,
.pass-banner {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(153, 104, 30, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(75, 43, 20, 0.12);
}

.home-stat-grid article {
  min-height: 132px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 236, 0.74)),
    radial-gradient(circle at top right, rgba(226, 194, 117, 0.2), transparent 45%);
}

.home-stat-grid strong,
.home-stat-grid span,
.home-stat-grid small,
.pass-banner span,
.pass-banner strong,
.pass-banner small,
.pass-banner b {
  display: block;
}

.home-stat-grid strong {
  color: #936115;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.35rem;
  line-height: 0.9;
}

.home-stat-grid span {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.home-stat-grid small {
  margin-top: 4px;
  color: var(--muted);
}

.pass-banner {
  min-height: 132px;
  padding: 22px;
  background:
    radial-gradient(circle at 86% 20%, rgba(226, 194, 117, 0.44), transparent 19%),
    linear-gradient(135deg, #073823, #14513a 64%, #092517);
  color: #fffaf2;
}

.pass-banner::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 250, 242, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  content: "AJ";
  display: grid;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  place-items: center;
}

.pass-banner span,
.pass-banner b {
  color: #f1ca75;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pass-banner strong {
  max-width: 260px;
  margin-top: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 0.95;
}

.pass-banner small {
  max-width: 250px;
  margin-top: 10px;
  color: rgba(255, 250, 242, 0.8);
  line-height: 1.45;
}

.pass-banner b {
  margin-top: 18px;
}

.sync-status {
  margin: 10px 0 0;
  color: var(--olive);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button,
.install-button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.button:hover,
.chip:hover,
nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 123, 40, 0.65);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(116, 75, 31, 0.12);
}

.primary {
  border-color: rgba(18, 63, 45, 0.18);
  background: linear-gradient(135deg, #174b36, #0d3324);
  color: #fffaf0;
  box-shadow: 0 14px 28px rgba(18, 63, 45, 0.18);
}

.ghost {
  border-color: rgba(133, 91, 34, 0.14);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 26px rgba(75, 43, 20, 0.08);
}

.countdown-panel,
.guest-console,
.guest-list-wrap,
.core-panel,
.memory-panel,
.upload-panel,
.portal-card,
.select-panel,
.event-card,
.stat-strip article {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 232, 0.58)),
    radial-gradient(circle at top left, rgba(233, 162, 155, 0.14), transparent 40%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.countdown-panel {
  width: 100%;
  padding: 22px;
  border-radius: 8px;
}

.countdown-grid,
.stat-strip,
.form-grid,
.portal-grid,
.memory-layout,
.core-panels {
  display: grid;
  gap: 14px;
}

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

.countdown-grid div {
  min-width: 0;
  padding: 16px 10px;
  border: 1px solid rgba(183, 123, 40, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.countdown-grid strong {
  display: block;
  color: #9d641f;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.next-event {
  margin: 18px 0 0;
  line-height: 1.5;
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

body.app-flow main > section {
  display: none;
}

body.app-flow main > section.active-screen {
  display: grid;
}

body.app-flow main > section.section.active-screen {
  display: block;
}

body.app-flow #home.active-screen,
body.app-flow #guests.active-screen,
body.app-flow #memories.active-screen,
body.app-flow #planner.active-screen {
  display: grid;
}

body.app-flow #home.active-screen {
  min-height: calc(100vh - 86px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: end;
  border-block: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.5);
}

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

.stat-strip article {
  min-height: 118px;
  border-radius: 8px;
  padding: 18px;
}

.stat-strip strong {
  display: block;
  color: #9d641f;
  font-family: Georgia, serif;
  font-size: 2.6rem;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 28px;
}

.compact {
  margin-bottom: 18px;
}

.event-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(240px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.event-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  scroll-snap-align: start;
}

.event-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.76), rgba(244, 216, 190, 0.52)),
    var(--event-bg);
  opacity: 0.82;
}

.event-card::after {
  position: absolute;
  right: -46px;
  bottom: -58px;
  width: 188px;
  height: 188px;
  border: 1px solid rgba(183, 123, 40, 0.22);
  border-radius: 50%;
  content: "";
}

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-card-top b {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 238, 217, 0.78);
  color: #7d531e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-visual {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 44%, rgba(22, 18, 12, 0.72)),
    var(--event-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.25);
}

.event-visual::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 250, 242, 0.36);
  border-radius: 999px 999px 12px 12px;
  content: "";
  opacity: 0.66;
}

.event-visual::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 246, 222, 0.82) 0 3px, transparent 4px),
    radial-gradient(circle at 46% 22%, rgba(255, 246, 222, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 19%, rgba(255, 246, 222, 0.72) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 12%, rgba(255, 246, 222, 0.22) 12% 13%, transparent 13% 22%, rgba(255, 246, 222, 0.18) 22% 23%, transparent 23% 88%);
  content: "";
  opacity: 0.74;
}

.event-visual span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(12, 51, 35, 0.88);
  color: #fff8eb;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 2px 0 0;
  color: #3d2615;
  font-size: 1.85rem;
  line-height: 0.98;
}

.event-card p {
  margin-bottom: 0;
  color: #6b5948;
  line-height: 1.5;
}

.event-date {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-meta,
.guest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.event-meta span,
.guest-tag {
  padding: 7px 10px;
  border: 1px solid rgba(183, 123, 40, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #6b4a28;
  font-size: 0.78rem;
  font-weight: 900;
}

.event-detail-button {
  justify-self: start;
  min-height: 38px;
  margin-top: 4px;
  padding: 0 14px;
  border: 1px solid rgba(153, 104, 30, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #5f3e1d;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.event-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  padding: 18px;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(25, 17, 10, 0.42);
  cursor: pointer;
}

.event-detail-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  justify-self: center;
  padding: 20px;
  border: 1px solid rgba(226, 194, 117, 0.4);
  border-radius: 8px;
  background: rgba(255, 249, 243, 0.97);
  box-shadow: 0 28px 80px rgba(31, 18, 8, 0.24);
}

.sheet-close {
  float: right;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(153, 104, 30, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #5f3e1d;
  cursor: pointer;
  font-weight: 900;
}

.event-detail-visual {
  min-height: 170px;
  margin: 14px 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 38%, rgba(18, 63, 45, 0.72)),
    var(--event-bg);
}

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

.event-detail-grid article {
  padding: 12px;
  border: 1px solid rgba(153, 104, 30, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.event-detail-grid span,
.event-detail-grid strong {
  display: block;
}

.event-detail-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-detail-grid strong {
  margin-top: 4px;
  color: var(--ink);
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portal-grid {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start;
}

.select-panel,
.portal-card,
.guest-console,
.guest-list-wrap,
.core-panel,
.memory-panel,
.upload-panel {
  border-radius: 8px;
  padding: 22px;
}

.portal-card h3 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.access-pass-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  margin: -4px -4px 18px;
  padding: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(226, 194, 117, 0.46), transparent 16%),
    linear-gradient(135deg, #073823, #15513a 62%, #092318);
  color: #fff9ed;
  box-shadow: 0 20px 42px rgba(14, 52, 36, 0.22);
}

.access-pass-card::before,
.access-pass-card::after {
  position: absolute;
  left: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.access-pass-card::before {
  top: 58px;
}

.access-pass-card::after {
  bottom: 26px;
}

.access-pass-card span,
.access-pass-card p {
  color: rgba(255, 249, 237, 0.78);
}

.access-pass-card span {
  display: block;
  margin-bottom: 10px;
  color: #f1ca75;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-pass-card h3 {
  max-width: 78%;
  margin: 0;
  color: #fff9ed;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.96;
}

.access-pass-card p {
  max-width: 70%;
  margin: 10px 0 0;
  line-height: 1.5;
}

.pass-seal {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 249, 237, 0.7);
  border-radius: 50%;
  background: linear-gradient(135deg, #f5daa0, #a87918);
  color: #1b3f2f;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  place-items: center;
}

.portal-card h4 {
  margin: 22px 0 12px;
  color: #332215;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.portal-events,
.portal-feed,
.feed-list,
.guest-form,
.upload-panel,
.core-panel {
  display: grid;
  gap: 14px;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.portal-event,
.feed-card,
.guest-card,
.media-card {
  border: 1px solid rgba(183, 123, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-event {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.portal-event-pass {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 235, 0.76)),
    radial-gradient(circle at right top, rgba(226, 194, 117, 0.22), transparent 40%);
}

.portal-event-pass strong,
.portal-event-pass span,
.portal-event-pass small {
  display: block;
}

.portal-event-pass strong {
  margin-top: 5px;
  color: #2a1c12;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1;
}

.portal-event-pass b {
  padding: 7px 10px;
  border-radius: 999px;
  background: #0a432e;
  color: #fffaf2;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-event-pass em {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff0dd;
  color: #8b5b20;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-feed {
  margin: 18px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, 460px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

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

label span,
legend,
.select-panel span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(183, 123, 40, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 14px;
}

textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.check-grid label,
.switch-row {
  border: 1px solid rgba(183, 123, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
}

.check-grid input,
.switch-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
}

.switch-row span {
  margin: 0;
  color: #7a501f;
}

.toolbar {
  margin-bottom: 18px;
}

.chip {
  padding: 0 16px;
  font-size: 0.88rem;
  font-weight: 800;
}

.chip.active {
  border-color: rgba(18, 63, 45, 0.18);
  color: #fffaf0;
  background: #123f2d;
}

.chip.danger {
  border-color: rgba(167, 77, 91, 0.22);
  background: rgba(167, 77, 91, 0.08);
  color: #8d3342;
}

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

.guest-card {
  min-height: 0;
  padding: 14px;
}

.guest-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.guest-card strong {
  display: block;
  margin-bottom: 6px;
  color: #5f351a;
  font-size: 1.08rem;
}

.guest-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(153, 104, 30, 0.1);
}

.guest-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 240, 221, 0.72);
  color: #6f4618;
  list-style: none;
}

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

.guest-details > summary::before {
  content: "+";
  font-weight: 900;
}

.guest-details[open] > summary::before {
  content: "-";
}

.rsvp-details {
  margin-top: 12px;
}

.invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.invite-row input {
  min-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrival-select {
  max-width: 150px;
  min-height: 38px;
}

details {
  margin-top: 14px;
}

summary {
  cursor: pointer;
  color: #8b5b20;
  font-weight: 900;
}

.rsvp-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-select {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
  align-items: center;
}

.mini-select span {
  margin: 0;
}

.memory-stage {
  background:
    linear-gradient(135deg, rgba(233, 162, 155, 0.18), rgba(95, 111, 67, 0.1)),
    rgba(255, 250, 240, 0.44);
}

.memory-layout {
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  align-items: start;
}

.file-drop {
  display: grid;
  gap: 8px;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgba(183, 123, 40, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  padding: 18px;
  text-align: center;
}

.file-drop input {
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
}

.file-drop strong {
  color: #7a501f;
}

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

.media-card {
  overflow: hidden;
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0ddc1;
  object-fit: cover;
}

.media-card div {
  padding: 12px;
}

.media-card strong,
.media-card span {
  display: block;
  overflow-wrap: anywhere;
}

.media-actions {
  margin-top: 12px;
}

.core-room {
  padding-bottom: 120px;
}

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

.planner-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 6px;
}

.planner-tabs .chip {
  flex: 0 0 auto;
}

.planner-panels {
  grid-template-columns: 1fr;
}

.planner-panel {
  display: none;
}

.planner-panel.active {
  display: grid;
}

.planner-overview-grid,
.placeholder-list {
  display: grid;
  gap: 12px;
}

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

.planner-overview-grid article,
.placeholder-list article {
  padding: 14px;
  border: 1px solid rgba(153, 104, 30, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.planner-overview-grid strong,
.planner-overview-grid span,
.placeholder-list strong,
.placeholder-list span {
  display: block;
}

.planner-overview-grid strong {
  color: #936115;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.planner-overview-grid span,
.placeholder-list span {
  color: var(--muted);
}

.core-panel h3 {
  margin-bottom: 4px;
  font-size: 1.8rem;
}

.feed-list {
  max-height: 360px;
  overflow: auto;
}

.feed-card {
  padding: 14px;
}

.feed-card-top,
.delivery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.feed-card p {
  margin-bottom: 8px;
  line-height: 1.55;
}

.editor-card,
.inline-editor {
  display: grid;
  gap: 12px;
}

.inline-editor {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(153, 104, 30, 0.12);
}

.announcement-card {
  display: grid;
  gap: 10px;
}

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

.delivery-row span,
.urgency-pill {
  padding: 6px 9px;
  border: 1px solid rgba(183, 123, 40, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #6b4a28;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.urgency-pill.important {
  border-color: rgba(183, 123, 40, 0.65);
  color: #8b5b20;
}

.urgency-pill.urgent {
  border-color: rgba(184, 94, 96, 0.72);
  color: var(--rose);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.install-button {
  position: fixed;
  right: 18px;
  top: 98px;
  z-index: 20;
  padding: 0 18px;
  box-shadow: var(--shadow);
}

.guest-mode #planner,
.guest-mode #guests,
.guest-mode #guests .guest-console,
.guest-mode #guests .toolbar,
.guest-mode #guests .invite-row,
.guest-mode nav a[href="#guests"],
.guest-mode nav a[href="#planner"],
.guest-mode .hero-actions a[href="#planner"] {
  display: none;
}

.guest-mode #guests .guest-list-wrap {
  max-width: 760px;
}

.guest-mode .guest-list {
  grid-template-columns: 1fr;
}

.guest-home-panel {
  display: grid;
  gap: 14px;
  max-width: 840px;
  margin-top: 22px;
}

.guest-next-card,
.dress-guide-card,
.event-dress-guide,
.event-reminder-card,
.empty-memory-card {
  border: 1px solid rgba(153, 104, 30, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 235, 0.68)),
    radial-gradient(circle at top right, rgba(226, 194, 117, 0.18), transparent 42%);
  box-shadow: 0 16px 42px rgba(75, 43, 20, 0.1);
}

.guest-next-card {
  padding: 18px;
}

.guest-next-card h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 7vw, 4.2rem);
}

.guest-next-card p,
.event-dress-guide p,
.event-reminder-card p {
  margin-bottom: 0;
  color: #654b31;
  line-height: 1.55;
}

.guest-reminder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.guest-reminder-grid span {
  display: block;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(183, 123, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-reminder-grid b {
  display: block;
  color: #7a501f;
  font-size: 0.95rem;
  text-transform: none;
}

.dress-guide-card {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px;
}

.dress-guide-card strong,
.event-dress-guide strong,
.empty-memory-card strong {
  color: #5f351a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.dress-guide-card small,
.empty-memory-card span {
  color: var(--muted);
  line-height: 1.5;
}

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

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

.mini-event-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(153, 104, 30, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  text-align: left;
  box-shadow: 0 12px 28px rgba(75, 43, 20, 0.08);
}

.mini-event-card span,
.mini-event-card strong,
.mini-event-card small {
  display: block;
}

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

.mini-event-card strong {
  margin-top: 6px;
  color: #2a1c12;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.mini-event-card small {
  margin-top: 5px;
  color: var(--muted);
}

.event-guide-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.88rem;
}

.event-dress-guide,
.event-reminder-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px;
}

.event-dress-guide span,
.event-reminder-card span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-card {
  position: relative;
}

.featured-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(18, 63, 45, 0.92);
  color: #fffaf2;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-memory-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-height: 160px;
  place-content: center;
  padding: 22px;
  text-align: center;
}

.pass-banner::after {
  background:
    rgba(255, 255, 255, 0.1)
    url("assets/aj-emblem.png") center / cover no-repeat;
  content: "";
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 3%, 0) scale(1.08);
  }
}

@keyframes sweep {
  0%,
  42% {
    transform: translateX(-72%);
  }
  68%,
  100% {
    transform: translateX(72%);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1100px) {
  .media-grid,
  .guest-list,
  .stat-strip,
  .home-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .intro-band,
  .portal-grid,
  .memory-layout,
  .core-panels {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }

  .hero-emblem-panel {
    align-self: start;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  body::before {
    background-size: 108vw auto;
    background-position: right -34vw top -10vw;
  }

  .topbar {
    padding: 10px 14px;
    gap: 0;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    display: none;
  }

  nav {
    position: fixed;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(133, 91, 34, 0.14);
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow:
      0 16px 44px rgba(79, 48, 24, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
  }

  nav a {
    display: grid;
    gap: 3px;
    place-items: center;
    min-width: 0;
    min-height: 50px;
    padding: 5px 2px 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #5b4a3b;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  nav a::before {
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    content: "" !important;
    opacity: 0.88;
    -webkit-mask: var(--tab-icon) center / 21px 21px no-repeat;
    mask: var(--tab-icon) center / 21px 21px no-repeat;
  }

  nav a[href="#home"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5 10.5V20h14v-9.5'/%3E%3Cpath d='M9.5 20v-5h5v5'/%3E%3C/svg%3E");
  }

  nav a[href="#events"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3Cpath d='M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E");
  }

  nav a[href="#guestPortal"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h14a2 2 0 0 1 2 2v3a3 3 0 0 0 0 6v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a3 3 0 0 0 0-6V8a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M9 10h6M9 14h6'/%3E%3C/svg%3E");
  }

  nav a[href="#guests"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9.5' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  }

  nav a[href="#memories"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 15-4.5-4.5L9 18'/%3E%3C/svg%3E");
  }

  nav a[href="#planner"] {
    --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3Cpath d='M8 6v12M16 6v12'/%3E%3C/svg%3E");
  }

  nav a.active {
    background: #123f2d;
    color: #fffaf2;
    box-shadow: 0 10px 22px rgba(18, 63, 45, 0.24);
  }

  nav a.active::before {
    opacity: 1;
  }

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

  .hero {
    min-height: auto;
    gap: 18px;
    padding: 18px 14px 34px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(3rem, 15vw, 4.8rem);
    line-height: 0.9;
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .hero-emblem {
    width: min(52vw, 206px);
  }

  .hero-line {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 22px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-actions a {
    padding: 14px 48px 14px 14px;
  }

  .home-dashboard {
    gap: 12px;
  }

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

  .home-stat-grid article {
    min-height: 122px;
    padding: 16px;
  }

  .home-stat-grid strong {
    font-size: 2rem;
  }

  .pass-banner {
    min-height: 148px;
    padding: 18px;
  }

  .pass-banner strong {
    max-width: 220px;
    font-size: 1.75rem;
  }

  .pass-banner small {
    max-width: 220px;
  }

  .hero-actions .button {
    min-width: 0;
    padding: 0 10px;
  }

  .guest-mode .hero {
    gap: 14px;
  }

  .guest-mode h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .guest-mode .hero-line {
    margin-bottom: 0;
  }

  .guest-mode .home-pills {
    margin-top: 14px;
  }

  .guest-home-panel {
    gap: 12px;
    margin-top: 16px;
  }

  .guest-next-card {
    padding: 16px;
  }

  .guest-reminder-grid,
  .guest-home-actions,
  .mini-event-list {
    grid-template-columns: 1fr;
  }

  .guest-home-actions .button {
    width: 100%;
  }

  .portal-actions .button,
  .export-actions .button,
  .media-actions .button {
    width: 100%;
  }

  .section {
    min-height: calc(100vh - 146px);
    padding: 30px 14px 44px;
  }

  .select-panel,
  .portal-card,
  .guest-console,
  .guest-list-wrap,
  .core-panel,
  .memory-panel,
  .upload-panel,
  .countdown-panel {
    padding: 18px;
  }

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

  .countdown-grid div {
    padding: 14px 8px;
  }

  .countdown-grid strong {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .check-grid,
  .form-grid.two,
  .media-grid,
  .guest-list,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .event-rail {
    grid-template-columns: repeat(6, minmax(252px, 86vw));
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .event-card {
    min-height: 420px;
  }

  .event-visual {
    min-height: 136px;
  }

  .event-sheet {
    padding: 10px;
  }

  .event-detail-card {
    max-height: 88vh;
    padding: 16px;
  }

  .event-detail-grid,
  .planner-overview-grid,
  .placeholder-list {
    grid-template-columns: 1fr;
  }

  .portal-event-pass {
    grid-template-columns: 1fr;
  }

  .portal-event-pass b {
    justify-self: start;
  }

  .access-pass-card {
    min-height: 178px;
    padding: 18px;
  }

  .access-pass-card h3,
  .access-pass-card p {
    max-width: calc(100% - 70px);
  }

  .pass-seal {
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .mini-select {
    grid-template-columns: 1fr;
  }

  .invite-row,
  .guest-card-top,
  .feed-card-top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .guest-card-top,
  .feed-card-top {
    display: grid;
  }

  .install-button {
    inset: auto 14px calc(84px + env(safe-area-inset-bottom, 0px)) auto;
    width: auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.86rem;
  }
}
