/* Nunito Sans is self-hosted under the SIL Open Font License. */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* EventoParty — "Воздушный праздник" design system. */
:root {
  --blue: #2457ff;
  --blue-deep: #1744dc;
  --blue-soft: #eaf0ff;
  --navy: #111a46;
  --navy-soft: #536184;
  --coral: #ff6868;
  --coral-deep: #e84e5b;
  --coral-soft: #fff0f0;
  --lilac: #b987f2;
  --lilac-soft: #f0eaff;
  --paper: #ffffff;
  --canvas: #f8f7ff;
  --line: #e5e5f2;
  --shadow-sm: 0 8px 24px rgba(37, 43, 96, 0.07);
  --shadow-md: 0 18px 48px rgba(37, 43, 96, 0.1);
  --shadow-lg: 0 28px 80px rgba(37, 43, 96, 0.14);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --event-accent: #5d6de3;
  --font-regular: 400;
  --font-ui: 600;
  --font-strong: 700;
  --font-display: 800;
  color: var(--navy);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
}

html {
  min-width: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body,
.dashboard-body,
.wishlist-body,
.event-body,
.friends-body,
.profile-body,
.settings-body,
.auth-flow-body,
.invite-body {
  color: var(--navy);
  font-weight: var(--font-regular);
  background: transparent;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  isolation: isolate;
  background-color: #fffefe;
}

body::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 9% 4%, rgba(185, 135, 242, 0.24), transparent 28rem),
    radial-gradient(circle at 94% 12%, rgba(36, 87, 255, 0.16), transparent 25rem),
    linear-gradient(145deg, #f3efff 0%, #fffdfd 48%, #f2efff 100%);
  opacity: 0.72;
  animation: page-gradient-breathe 3s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes page-gradient-breathe {
  to {
    opacity: 1;
  }
}

html[data-theme="dark"],
html.theme-dark {
  background: #10152b;
}

html[data-theme="dark"] body,
html.theme-dark body {
  background-color: #10152b;
}

html[data-theme="dark"] body::after,
html.theme-dark body::after {
  background:
    radial-gradient(circle at 9% 4%, rgba(185, 135, 242, 0.13), transparent 28rem),
    radial-gradient(circle at 94% 12%, rgba(74, 111, 255, 0.12), transparent 25rem),
    linear-gradient(145deg, #11172f 0%, #171b35 48%, #11152b 100%);
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
dialog:focus-visible {
  outline: 3px solid rgba(36, 87, 255, 0.34);
  outline-offset: 3px;
}

input,
select,
textarea {
  min-height: 50px;
  border: 1px solid #dfe2ef;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--navy);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(22, 31, 78, 0.025);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

textarea {
  min-height: 120px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c8cce0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(36, 87, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #9ba2b8;
}

label {
  margin: 18px 0 8px;
  color: #28345d;
  font-size: 13px;
  font-weight: var(--font-ui);
}

h1,
h2,
h3,
p,
a,
button,
strong,
span {
  overflow-wrap: anywhere;
}

.event-theme,
.event-role,
.event-status,
.event-counter,
.quantity-badge,
.guest-status,
.app-nav-link,
.app-mobile-nav-link {
  overflow-wrap: normal;
  white-space: nowrap;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-weight: var(--font-display);
  letter-spacing: -0.055em;
}

h2,
h3,
h4 {
  font-weight: var(--font-strong);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 44px;
  align-items: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 27px;
  font-weight: 900;
  font-synthesis: weight;
  letter-spacing: -0.055em;
  white-space: nowrap;
  overflow-wrap: normal;
  background: none;
  -webkit-text-fill-color: initial;
}

.brand-evento {
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
}

.brand-party {
  color: var(--coral);
  -webkit-text-fill-color: var(--coral);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: var(--font-strong);
  letter-spacing: 0.12em;
}

.primary-button,
.secondary-button,
.icon-button,
.event-invite-button,
.friend-add-button,
.friend-remove-button,
.friend-request-button,
.reservation-button,
.rsvp-button,
.notification-button,
.app-menu-toggle {
  min-height: 46px;
  border-radius: 13px;
  transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1b49eb);
  box-shadow: 0 10px 22px rgba(36, 87, 255, 0.22);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #174be9, #123bce);
  box-shadow: 0 13px 26px rgba(36, 87, 255, 0.25);
}

.secondary-button {
  min-height: 46px;
  border-color: #d5d9e9;
  border-radius: 13px;
  color: var(--blue);
  background: #fff;
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: #b8c4f6;
  background: #f5f7ff;
}

.primary-button:disabled,
.secondary-button:disabled,
button:disabled {
  transform: none;
  box-shadow: none;
}

.field-note,
.legal {
  color: #7c849e;
  line-height: 1.55;
}

.form-message,
.dialog-message,
.dashboard-message,
.wishlist-message,
.event-page-message,
.friends-page-message,
.profile-page-message,
.settings-page-message {
  color: #bd3f4c;
}

.form-message.success {
  color: #14714a;
}
.form-message strong { display: block; font-weight: 700; }
.form-message ul { display: grid; gap: 3px; margin: 5px 0 0; padding-left: 20px; }

/* Transient system feedback. Invitations and the notification inbox are separate components. */
.system-toast {
  --toast-accent: var(--danger);
  position: fixed;
  z-index: 10000;
  top: max(24px, env(safe-area-inset-top));
  right: 24px;
  bottom: auto;
  left: auto;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 44px;
  align-items: center;
  width: min(420px, calc(100vw - 48px));
  margin: 0;
  padding: 0;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--navy);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(17, 26, 70, .18);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.system-toast.is-visible { opacity: 1; transform: translateY(0); }
.system-toast.is-leaving { opacity: 0; transform: translateY(-8px); }
.system-toast.tone-success { --toast-accent: #14714a; }
.system-toast.tone-warning { --toast-accent: var(--coral-action); }
.system-toast-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: 16px;
  place-items: center;
  border: 2px solid var(--toast-accent);
  border-radius: 50%;
  color: var(--toast-accent);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.system-toast p { margin: 0; padding: 15px 14px; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.4; }
.system-toast-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--navy-soft);
  background: transparent;
  font: 400 25px/1 Nunito Sans, sans-serif;
}
.system-toast-close:hover { color: var(--navy); background: var(--canvas); }
.system-toast-close:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.system-toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-accent);
  transform-origin: left;
  animation: system-toast-progress 1500ms linear forwards;
}
@keyframes system-toast-progress { to { transform: scaleX(0); } }

@media (max-width: 760px) {
  .system-toast {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    width: auto;
    min-height: 64px;
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-toast { transition: none; }
  .system-toast-progress { animation: none; transform: scaleX(1); }
}

.password-wrap > input { padding-right: 56px; }
.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: var(--navy-soft);
  background: transparent;
  transform: translateY(-50%);
}
.password-visibility-toggle:hover { color: var(--navy); background: var(--canvas); }
.password-visibility-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.password-visibility-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-visibility-toggle .icon-password-hidden,
.password-visibility-toggle[aria-pressed="true"] .icon-password-visible { display: none; }
.password-visibility-toggle[aria-pressed="true"] .icon-password-hidden { display: block; }

/* Authentication */
.page-shell {
  grid-template-columns: minmax(0, 1.16fr) minmax(430px, 0.84fr);
  gap: 18px;
  min-height: 100svh;
  padding: 18px;
}

.hero,
.auth-panel {
  min-height: calc(100svh - 36px);
  border: 1px solid rgba(226, 226, 241, 0.88);
  border-radius: 30px;
}

.hero {
  padding: clamp(34px, 5vw, 68px);
  background:
    radial-gradient(circle at 75% 20%, rgba(185, 135, 242, 0.2), transparent 18rem),
    linear-gradient(145deg, #f4f1ff 0%, #fcfbff 100%);
  box-shadow: var(--shadow-sm);
}

.hero::before,
.hero::after,
.dashboard-hero::before,
.dashboard-hero::after {
  position: absolute;
  z-index: 0;
  content: "";
  transform: rotate(35deg);
  border-radius: 3px;
  background: var(--coral);
}

.hero::before,
.dashboard-hero::before {
  top: 18%;
  right: 36%;
  width: 9px;
  height: 17px;
  box-shadow: 72px 98px 0 var(--blue), -42px 172px 0 var(--lilac), 118px 218px 0 var(--coral);
}

.hero::after,
.dashboard-hero::after {
  right: 8%;
  bottom: 12%;
  width: 8px;
  height: 8px;
  background: var(--lilac);
  box-shadow: -90px -30px 0 var(--coral), 38px -120px 0 var(--blue);
}

.hero-copy {
  max-width: 610px;
  margin-top: clamp(120px, 19vh, 220px);
}

.hero-copy h1 {
  max-width: 650px;
  color: var(--navy);
  font-size: clamp(46px, 4.7vw, 74px);
  line-height: 0.98;
}

.lead {
  max-width: 500px;
  margin-top: 22px;
  color: var(--navy-soft);
  font-size: 17px;
}

.hero-art {
  right: clamp(2px, 2vw, 36px);
  top: 6%;
  width: min(34vw, 470px);
  max-height: 91%;
  filter: drop-shadow(0 26px 30px rgba(76, 53, 149, 0.18));
}

.auth-panel {
  align-items: center;
  padding: clamp(36px, 6vw, 78px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.auth-heading,
.auth-tabs,
.auth-panel form,
.auth-panel .legal {
  width: 100%;
  max-width: 410px;
}

.auth-heading h2 {
  color: var(--navy);
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.05;
}

.auth-heading p:not(.eyebrow) {
  color: #707996;
}

.auth-invite-preview {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(100%, 760px);
  gap: 24px;
  margin: clamp(70px, 10vh, 118px) auto 20px;
}

.auth-invite-preview[hidden] { display: none; }
.has-invite-context .how-it-works,
.has-invite-context .hero-stage { display: none; }
.has-invite-context .hero::before,
.has-invite-context .hero::after { display: none; }
.auth-invite-copy { max-width: 680px; }
.auth-invite-copy h1 { max-width: 700px; margin: 6px 0 14px; color: var(--navy); font-size: clamp(42px, 4.6vw, 68px); line-height: 1; letter-spacing: -.035em; }
.auth-invite-copy > p:last-child { max-width: 620px; margin: 0; color: var(--navy-soft); font-size: 17px; line-height: 1.55; }
.auth-invite-card { overflow: hidden; border: 1px solid var(--line); border-bottom: 4px solid var(--event-accent, var(--blue)); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-md); }
.auth-invite-card.has-error { border-bottom-color: var(--coral-action); }
.auth-invite-cover { display: grid; height: clamp(210px, 27vh, 300px); place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft)); }
.auth-invite-cover img { width: 100%; height: 100%; object-fit: cover; }
.auth-invite-card-body { display: grid; gap: 10px; padding: 24px 28px 26px; }
.auth-invite-theme { justify-self: start; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--event-accent, var(--blue)) 40%, var(--line)); border-radius: 999px; color: var(--navy); background: color-mix(in srgb, var(--event-accent, var(--blue)) 9%, var(--paper)); font-size: 12px; font-weight: 700; line-height: 1.3; }
.auth-invite-card h2 { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: clamp(26px, 3vw, 36px); line-height: 1.14; }
.auth-invite-meta,
.auth-invite-location,
.auth-invite-organizer { margin: 0; color: var(--navy-soft); line-height: 1.45; }
.auth-invite-meta { color: var(--navy); font-weight: 700; }
.auth-invite-location::before { content: "⌖ "; color: var(--purple); }
.auth-invite-organizer { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; }
.auth-invite-trust { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--navy-soft); font-size: 13px; font-weight: 600; }
.auth-invite-trust::before { content: "✓"; display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-weight: 800; }
.has-invite-context .auth-panel { border-top: 4px solid var(--coral-action); }

@media (min-width: 761px) and (max-width: 800px) {
  .has-invite-context .hero { display: block; min-height: auto; margin-bottom: 18px; }
  .has-invite-context .auth-invite-preview { margin-top: 70px; }
  .has-invite-context .auth-panel { min-height: calc(100svh - 36px); }
}

.auth-tabs {
  padding: 5px;
  border-radius: 15px;
  background: #f0f2f8;
}

.tab {
  min-height: 44px;
  border-radius: 11px;
}

.tab.is-active {
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(29, 43, 92, 0.1);
}

.auth-flow-shell,
.invite-shell {
  width: min(100% - 40px, 720px);
  padding: 34px 0 72px;
}

.auth-flow-card,
.invite-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(224, 224, 239, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
}

.auth-flow-card {
  padding: clamp(32px, 6vw, 58px);
}

.auth-flow-card::after,
.invite-card::after {
  position: absolute;
  z-index: 0;
  top: -85px;
  right: -95px;
  width: 270px;
  height: 405px;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background: url("assets/eventoparty-hero-transparent.png") center / contain no-repeat;
}

.auth-flow-card > *,
.invite-card > * {
  position: relative;
  z-index: 1;
}

.auth-flow-icon,
.invite-icon {
  width: 66px;
  height: 66px;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--blue), #765ee5);
  box-shadow: 0 13px 28px rgba(36, 87, 255, 0.22);
}

.invite-card {
  margin-top: 8vh;
  padding: clamp(38px, 7vw, 72px);
}

.invite-back {
  min-height: 50px;
}

.auth-gate {
  background:
    radial-gradient(circle at center, rgba(185, 135, 242, 0.17), transparent 22rem),
    var(--canvas);
}

.auth-gate p {
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
}

/* Shared authenticated layout and navigation */
.dashboard-shell,
.wishlist-shell,
.event-shell,
.event-analytics-shell,
.friends-shell,
.profile-shell,
.settings-shell {
  width: min(100%, 1320px);
  max-width: 1320px;
  margin-inline: auto;
  padding: 22px 42px 90px;
}

.app-header {
  position: sticky;
  z-index: 40;
  top: 14px;
  min-height: 64px;
  padding: 8px 12px 8px 18px;
  border: 1px solid rgba(224, 225, 239, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 11px 30px rgba(38, 43, 92, 0.08);
  backdrop-filter: blur(16px);
}

.app-nav {
  align-self: center;
  gap: 4px;
}

.app-nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1;
}

.app-nav-icon {
  display: none;
}

.app-nav-label {
  display: block;
  white-space: nowrap;
}

.app-nav-link:hover,
.app-nav-link.is-current,
.app-mobile-nav-link:hover,
.app-mobile-nav-link.is-current {
  color: var(--blue);
  background: var(--blue-soft);
}

.account-profile {
  min-height: 44px;
  padding: 3px 8px 3px 4px;
  border-radius: 14px;
}

.account-profile:hover {
  background: #f4f6ff;
}

.account-avatar {
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(25, 34, 75, 0.12);
}

.notification-button,
.app-menu-toggle {
  width: 44px;
  height: 44px;
  border-color: #dfe2ef;
  background: #fff;
}

.notification-button {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.notification-button:hover,
.notification-button[aria-expanded="true"] {
  border-color: transparent;
  background: var(--blue-soft);
}

.notification-panel,
.app-mobile-menu {
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.notification-panel {
  top: calc(100% + 14px);
  border-color: #e0e2ee;
}

.notification-heading {
  padding: 19px 20px 15px;
}

.notification-item.is-unread {
  background: #f0f4ff;
}

.notification-content {
  min-height: 64px;
  padding: 16px 20px;
}

.notification-content p {
  overflow-wrap: anywhere;
}

.app-live-notification {
  position: fixed;
  z-index: 80;
  top: 96px;
  right: max(20px, calc((100vw - 1320px) / 2 + 42px));
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #dfe3f3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.app-live-notification-link { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; color: inherit; text-decoration: none; }
.app-live-notification-link:hover { background: #f7f8ff; }
.app-live-notification-link.is-achievement { background: linear-gradient(135deg, #fff 0%, #f6f2ff 100%); }
.app-live-notification-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--blue-soft); }
.app-live-notification-copy { display: grid; min-width: 0; gap: 4px; }
.app-live-notification-copy strong { color: var(--navy); }
.app-live-notification-copy span { overflow-wrap: anywhere; color: var(--navy-soft); font-size: 13px; line-height: 1.4; }

@keyframes notification-bell-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
}

.notification-button.has-new-notification .notification-icon { display: inline-block; transform-origin: 50% 12%; animation: notification-bell-ring .65s ease-in-out; }

/* Dashboard */
.dashboard-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  min-height: 420px;
  margin-top: 30px;
  border: 1px solid rgba(224, 222, 241, 0.92);
  border-radius: 34px;
  color: var(--navy);
  background:
    radial-gradient(circle at 78% 12%, rgba(185, 135, 242, 0.2), transparent 18rem),
    linear-gradient(135deg, #f5f1ff 0%, #fff 72%);
  box-shadow: var(--shadow-md);
}

.dashboard-hero-copy {
  padding: clamp(42px, 5vw, 68px);
}

.dashboard-hero .eyebrow {
  color: var(--blue);
}

.dashboard-hero h1 {
  max-width: 700px;
  color: var(--navy);
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: 0.99;
}

.dashboard-hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--navy-soft);
}

.dashboard-actions .dashboard-create {
  color: #fff;
  border-color: transparent;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(36, 87, 255, 0.2);
}

.dashboard-actions .dashboard-create:hover {
  color: #fff;
  background: var(--blue-deep);
}

.dashboard-actions .dashboard-wishlist-link {
  color: var(--blue);
  border-color: #c8d2fc;
  background: #fff;
}

.dashboard-actions .dashboard-wishlist-link:hover {
  color: var(--blue-deep);
  border-color: var(--blue);
  background: var(--blue-soft);
}

.dashboard-hero-art img {
  right: clamp(8px, 3vw, 48px);
  bottom: -46px;
  width: min(100%, 410px);
  filter: drop-shadow(0 24px 25px rgba(64, 45, 126, 0.2));
}

.dashboard-dot.dot-coral {
  background: var(--coral);
}

.dashboard-dot.dot-blue {
  border-color: rgba(36, 87, 255, 0.22);
}

.events-section,
.birthdays-section {
  margin-top: 54px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(27px, 3vw, 34px);
}

.event-counter,
.quantity-badge {
  color: #596999;
  background: #eeedff;
}

.event-tabs {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.event-tab {
  min-height: 42px;
  border-radius: 11px;
}

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

.event-card,
.birthday-card,
.empty-state {
  border-color: rgba(225, 226, 239, 0.94);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.event-card {
  min-height: 278px;
  padding: 24px;
  border-radius: 24px;
}

.event-card::before {
  height: 6px;
  background: linear-gradient(90deg, var(--blue), #6d67e8);
}

.event-card.theme-birthday::before {
  background: linear-gradient(90deg, var(--coral), #ff9a85);
}

.event-card.theme-wedding::before {
  background: linear-gradient(90deg, var(--lilac), #8065e8);
}

.event-card h3 {
  min-height: 2.2em;
  color: var(--navy);
}

.event-card-footer {
  margin-top: auto;
}

.event-invite-button {
  min-height: 44px;
  padding: 0 14px;
}

.event-open,
.section-link,
.product-link,
.profile-summary-card a,
.auth-back-link,
.auth-text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.birthday-card {
  border-radius: 22px;
}

.birthday-date {
  background: linear-gradient(145deg, var(--blue), #705de4);
  box-shadow: 0 9px 20px rgba(36, 87, 255, 0.18);
}

.birthday-person {
  min-height: 44px;
  margin: -4px;
  padding: 4px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: color 170ms ease, background-color 170ms ease;
}

.birthday-person:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.empty-state,
.wishlist-empty,
.items-empty,
.friends-empty,
.profile-empty,
.guest-empty,
.birthday-empty,
.request-empty {
  border-color: #d9d9ed;
  background: rgba(255, 255, 255, 0.66);
}

.empty-icon {
  border-radius: 17px;
  color: var(--blue);
  background: var(--blue-soft);
}

/* Shared page intros */
.wishlist-top,
.friends-top,
.settings-top {
  margin-top: 44px;
}

.wishlist-top h1,
.friends-top h1,
.settings-top h1,
.profile-hero-copy h1 {
  color: var(--navy);
  line-height: 1;
}

.wishlist-top > div > p:not(.eyebrow),
.friends-top > div > p:not(.eyebrow),
.settings-top > p:not(.eyebrow) {
  color: var(--navy-soft);
}

/* Wishlists and gifts */
.wishlist-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
}

.wishlist-sidebar,
.friend-search,
.friend-request-panel,
.settings-card,
.settings-session-card,
.profile-hero-card,
.profile-summary-card,
.event-fact,
.guest-card,
.wish-item,
.event-gift-card {
  border-color: rgba(224, 225, 238, 0.94);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.profile-status-row {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
}

.profile-user-status {
  min-width: 0;
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.profile-user-status::before {
  color: var(--purple);
  content: "“";
  font-weight: var(--font-display);
}

.profile-user-status::after {
  color: var(--purple);
  content: "”";
  font-weight: var(--font-display);
}

.profile-status-edit {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font: inherit;
  font-size: 14px;
  font-weight: var(--font-ui);
  cursor: pointer;
  transition: color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.profile-status-edit:hover {
  color: var(--paper);
  background: var(--blue);
  transform: translateY(-1px);
}

.profile-status-edit:active { transform: translateY(1px); }

.profile-status-dialog textarea {
  min-height: 112px;
  margin-top: 8px;
}

.profile-status-helper {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--navy-soft);
  font-size: 13px;
  line-height: 1.45;
}

.profile-status-helper span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-ui);
}

.profile-status-actions {
  position: static;
  margin-bottom: -38px;
}

.profile-page-message.is-success { color: var(--blue-deep); }

.wishlist-sidebar {
  position: sticky;
  top: 104px;
  border-radius: 24px;
}

.wishlist-nav {
  min-height: 62px;
  border-radius: 15px;
}

.wishlist-nav:hover,
.wishlist-nav.is-selected {
  background: var(--blue-soft);
}

.wishlist-empty {
  border-radius: 30px;
}

.items-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.wish-item {
  min-height: 184px;
  border-radius: 24px;
}

.wish-item-image {
  min-height: 184px;
  background: linear-gradient(145deg, #efebff, #f9f7ff);
}

.wish-item h3,
.event-gift-body h3 {
  color: var(--navy);
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.event-gift-card {
  border-radius: 24px;
}

.event-gift-image {
  background: linear-gradient(145deg, #eeebff, #f8f6ff);
}

.event-product-link {
  min-height: 46px;
  border-radius: 13px;
}

/* Event and RSVP */
.event-hero-detail {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 200px;
  min-height: 410px;
  margin-top: 30px;
  border: 1px solid rgba(224, 222, 240, 0.94);
  border-radius: 34px;
  color: var(--navy);
  background:
    linear-gradient(90deg, rgba(248, 245, 255, 0.98) 0 57%, rgba(248, 245, 255, 0.55) 72%, rgba(248, 245, 255, 0.08) 100%),
    url("assets/eventoparty-hero-transparent.png") calc(100% - 28px) 44% / 310px auto no-repeat,
    #f8f5ff;
  box-shadow: var(--shadow-md);
}

.event-hero-main {
  position: relative;
  z-index: 2;
}

.event-hero-detail .event-theme,
.event-hero-detail .event-role {
  color: #415584;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 12px rgba(38, 43, 92, 0.06);
}

.event-hero-detail h1 {
  max-width: 660px;
  color: var(--navy);
  font-size: clamp(42px, 5vw, 66px);
}

.event-description {
  max-width: 630px;
  color: var(--navy-soft);
}

.event-date-poster {
  position: relative;
  z-index: 2;
  width: 174px;
  height: 205px;
  color: var(--event-accent);
  box-shadow: 0 20px 42px rgba(43, 47, 100, 0.16);
}

.event-date-poster span {
  color: var(--event-accent);
  font-size: 68px;
}

.event-rsvp {
  max-width: 520px;
  border-color: #e1e3ef;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-sm);
}

.event-rsvp > p {
  color: var(--navy);
}

.event-rsvp small {
  color: #77809d;
}

.rsvp-button {
  border: 0;
  color: #fff;
  background: var(--blue);
}

.rsvp-button + .rsvp-button {
  background: var(--coral);
}

.rsvp-button:hover {
  transform: translateY(-1px);
  background: var(--blue-deep);
}

.rsvp-button + .rsvp-button:hover {
  background: var(--coral-deep);
}

.rsvp-button.is-selected {
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 0 0 4px rgba(36, 87, 255, 0.16);
}

.rsvp-button + .rsvp-button.is-selected {
  background: var(--coral-deep);
  box-shadow: 0 0 0 4px rgba(255, 104, 104, 0.17);
}

.event-owner-actions .event-share,
.event-owner-actions .event-analytics-link,
.event-owner-actions .event-edit,
.event-owner-actions .event-cancel,
.event-owner-actions .event-delete {
  min-height: 48px;
  border-radius: 13px;
}

.event-owner-actions .event-share {
  color: #fff;
  border-color: var(--coral);
  background: var(--coral);
}

.event-owner-actions .event-share:hover { border-color: var(--coral-deep); background: var(--coral-deep); }

.event-owner-actions .event-share-link,
.event-owner-actions .event-analytics-link,
.event-owner-actions .event-edit {
  color: var(--blue);
  border-color: #cbd3f7;
  background: #fff;
}
.event-owner-actions .event-analytics-link { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; text-align: center; text-decoration: none; }

.event-owner-actions .event-cancel,
.event-owner-actions .event-delete {
  color: #b2404c;
  border-color: #f0c8cd;
  background: #fff7f8;
}

.event-owner-actions .event-cancel:hover,
.event-owner-actions .event-delete:hover {
  color: #fff;
  border-color: var(--coral-deep);
  background: var(--coral-deep);
}

.event-owner-actions .event-cancel.is-restore {
  color: #19734b;
  border-color: #b9dfcd;
  background: #f1fbf6;
}

.event-hero-detail.is-cancelled {
  background:
    linear-gradient(90deg, rgba(244, 244, 248, 0.98) 0 60%, rgba(244, 244, 248, 0.66) 100%),
    url("assets/eventoparty-hero-transparent.png") calc(100% - 28px) 44% / 310px auto no-repeat,
    #f2f2f5;
}

.event-info-layout {
  gap: 18px;
}

.event-fact {
  border-radius: 22px;
}

.event-map-wrap {
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.event-guests,
.event-gifts-grid {
  gap: 16px;
}

.guest-card {
  border-radius: 21px;
}

.guest-copy h3 {
  color: var(--navy);
}

/* Friends */
.friends-top {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 440px);
}

.friend-search {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.friend-request-panel,
.friend-card {
  border-radius: 23px;
}

.friend-card {
  background: rgba(255, 255, 255, 0.95);
}

.friend-card-body h3 {
  color: var(--navy);
}

.friend-add-button {
  background: var(--blue);
}

.friend-remove-button {
  color: #b2404c;
  border-color: #f0c8cd;
  background: #fff7f8;
}

.friend-request-button {
  color: var(--blue);
  border-color: #ccd5f8;
  background: #f6f8ff;
}

/* Profile and settings */
.profile-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
}

.profile-hero-card::after {
  position: absolute;
  right: -36px;
  bottom: -116px;
  width: 260px;
  height: 390px;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background: url("assets/eventoparty-hero-transparent.png") center / contain no-repeat;
}

.profile-hero-card > * {
  position: relative;
  z-index: 1;
}

.profile-hero-avatar,
.profile-avatar-preview {
  border-color: #fff;
  box-shadow: 0 16px 36px rgba(46, 44, 97, 0.15);
}

.profile-summary-card {
  border-radius: 22px;
}

.profile-hero-card.is-birthday {
  border-color: color-mix(in srgb, var(--purple) 34%, var(--line));
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--coral) 15%, transparent), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--purple-soft) 72%, #fff), #fff 62%);
}

.profile-hero-card.is-birthday::before {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 1;
  content: "🎉  ✨  🎈";
  font-size: 24px;
  letter-spacing: 8px;
  opacity: 0.78;
}

.profile-birthday {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--purple-deep);
  background: var(--purple-soft);
  font-size: 13px;
  font-weight: var(--font-ui);
  line-height: 1.4;
}

.profile-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.profile-stat-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 46px auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}
.profile-stat-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); box-shadow: var(--shadow-md); }
.profile-stat-card:focus-visible { outline: 3px solid rgba(36,87,255,.3); outline-offset: 3px; }
.profile-content-section { scroll-margin-top: 24px; }

.profile-stat-icon {
  display: grid;
  width: 46px;
  height: 46px;
  grid-row: 1;
  place-items: center;
  border-radius: 15px;
  color: var(--blue);
  background: var(--blue-soft);
}

.profile-stat-card:nth-child(2) .profile-stat-icon,
.profile-stat-card:nth-child(3) .profile-stat-icon { color: var(--purple); background: var(--purple-soft); }
.profile-stat-icon .ui-icon { width: 22px; height: 22px; }
.profile-stat-card strong { color: var(--navy); font-size: 24px; font-weight: var(--font-display); }
.profile-stat-card > span:last-child { min-width: 0; color: var(--navy-soft); font-size: 13px; font-weight: var(--font-ui); line-height: 1.35; overflow-wrap: anywhere; }

.profile-pinned-showcase {
  margin-top: 42px;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--purple) 20%, var(--line));
  border-radius: 30px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--purple-soft) 58%, #fff), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow-sm);
}

.profile-section-intro {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--navy-soft);
  font-size: 14px;
  line-height: 1.5;
}

.profile-event-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--event-accent) 24%, var(--line));
  border-radius: 24px;
  color: inherit;
  background: color-mix(in srgb, var(--event-accent) 5%, #fff);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.profile-event-card:hover { border-color: color-mix(in srgb, var(--event-accent) 52%, var(--line)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.profile-event-card:active { transform: translateY(1px); }
.profile-event-cover { position: relative; height: 180px; overflow: hidden; background: var(--blue-soft); }
.profile-event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.profile-event-card:hover .profile-event-cover img { transform: scale(1.025); }
.profile-event-theme { position: absolute; top: 14px; left: 14px; max-width: calc(100% - 28px); padding: 7px 10px; border-radius: 999px; color: var(--navy); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-sm); font-size: 12px; font-weight: var(--font-strong); line-height: 1.3; }
.profile-event-body { display: grid; gap: 10px; padding: 19px 20px 22px; }
.profile-event-top { display: flex; min-height: 28px; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.profile-event-role { color: var(--navy-soft); font-size: 12px; font-weight: var(--font-ui); }
.profile-event-body h3 { margin: 0; color: var(--navy); font-size: 21px; font-weight: var(--font-strong); line-height: 1.22; overflow-wrap: anywhere; }
.profile-event-body .event-meta { margin: 0; }

.profile-gift-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.profile-gift-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--purple) 18%, var(--line));
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.profile-gift-card > img { display: block; width: 100%; height: 150px; background: var(--purple-soft); object-fit: cover; }
.profile-gift-copy { display: grid; gap: 7px; padding: 16px 17px 18px; }
.profile-gift-copy small { color: var(--purple-deep); font-size: 12px; font-weight: var(--font-ui); overflow-wrap: anywhere; }
.profile-gift-copy h3 { margin: 0; color: var(--navy); font-size: 18px; font-weight: var(--font-strong); line-height: 1.25; overflow-wrap: anywhere; }
.profile-gift-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; color: var(--purple-deep); font-size: 13px; font-weight: var(--font-ui); text-decoration: none; }
.profile-gift-link:hover { text-decoration: underline; }

.profile-collection-details {
  margin-top: 18px;
  padding: 0 20px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-collection-details > summary,
.profile-details-summary {
  min-height: 58px;
  cursor: pointer;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: var(--font-ui);
}

.profile-collection-details > summary { display: flex; align-items: center; padding: 0; }
.profile-collection-details > .profile-content-grid { margin-top: 4px; }
.profile-manage-link { display: inline-flex; min-height: 46px; grid-column: 1 / -1; align-items: center; justify-content: center; color: var(--purple-deep); font-size: 14px; font-weight: var(--font-ui); text-decoration: none; }

.profile-secondary-details {
  width: 100%;
  padding: 0 30px 30px;
  interpolate-size: allow-keywords;
  transition: width 180ms ease, padding 180ms ease, border-radius 180ms ease, box-shadow 180ms ease;
}
.profile-secondary-details:not([open]) {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow: none;
}

.profile-details-summary { display: flex; align-items: center; justify-content: flex-start; gap: 10px; list-style: none; }
.profile-details-summary::-webkit-details-marker { display: none; }
.profile-details-summary::after {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  margin-left: auto;
  padding: 0 11px;
  border-radius: 999px;
  content: "Показать";
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: var(--font-ui);
}
.profile-secondary-details[open] > .profile-details-summary::after { content: "Свернуть"; }
.profile-secondary-details:not([open]) > .profile-details-summary { min-height: 52px; }
.profile-secondary-details:not([open]) .profile-details-title { font-size: 18px; }
.profile-details-summary > span:first-child { display: grid; gap: 4px; }
.profile-details-summary .eyebrow { margin: 0; font-size: 11px; }
.profile-details-title { color: var(--navy); font-size: 24px; font-weight: var(--font-display); line-height: 1.15; }
.profile-wishlist-collection-details .profile-details-title,
.profile-achievements-section .profile-details-title,
.profile-notifications-section .profile-details-title { color: var(--navy); }

@supports selector(details::details-content) {
  .profile-collection-details::details-content,
  .profile-secondary-details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size 180ms ease, content-visibility 180ms allow-discrete, opacity 140ms ease;
  }

  .profile-collection-details[open]::details-content,
  .profile-secondary-details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}
.profile-notifications-section { border: 1px solid var(--line); border-radius: 28px; background: rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-sm); }

.profile-invite-events { display: grid; gap: 12px; margin-top: 20px; }
.profile-invite-event { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.profile-invite-event div { display: grid; min-width: 0; gap: 4px; }
.profile-invite-event strong { color: var(--navy); font-size: 16px; font-weight: var(--font-strong); overflow-wrap: anywhere; }
.profile-invite-event span { color: var(--navy-soft); font-size: 13px; }
.profile-invite-event .primary-button { width: auto; min-width: 124px; margin: 0; }
.profile-invite-empty,
.profile-invite-loading { padding: 24px; border: 1px dashed var(--line); border-radius: 18px; color: var(--navy-soft); text-align: center; }
.profile-invite-empty strong { color: var(--navy); }
.profile-invite-empty p { margin: 8px 0 16px; line-height: 1.5; }
.profile-invite-empty .primary-button { display: inline-flex; width: auto; margin: 0; text-decoration: none; }

.profile-achievements-section {
  padding: 30px;
  border: 1px solid rgba(220, 220, 238, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.profile-achievements-section.profile-secondary-details[open] { padding: 0 30px 30px; }

.profile-achievement-intro {
  max-width: 700px;
  margin: 10px 0 0;
  color: #6d7692;
  font-size: 13px;
  line-height: 1.55;
}

.profile-pinned-achievements {
  margin-top: 26px;
}

.profile-pinned-achievements > h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 15px;
}

.achievement-pinned-grid,
.achievement-grid {
  display: grid;
  gap: 14px;
}

.achievement-pinned-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.achievement-groups {
  display: grid;
  gap: 30px;
  margin-top: 26px;
}

.achievement-status-group {
  min-width: 0;
}

.achievement-status-heading,
.achievement-rarity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.achievement-status-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7f0;
}

.achievement-status-heading h3,
.achievement-rarity-heading h4 {
  margin: 0;
  color: var(--navy);
}

.achievement-status-heading h3 {
  font-size: 18px;
}

.achievement-status-count,
.achievement-rarity-heading span {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  border-radius: 999px;
  color: #66708d;
  background: #f0f1f7;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.achievement-rarity-group {
  margin-top: 18px;
}

.achievement-rarity-heading {
  margin-bottom: 10px;
}

.achievement-rarity-heading h4 {
  color: var(--achievement-accent, #8993af);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.achievement-rarity-group.rarity-common { --achievement-accent: #7e9aaf; }
.achievement-rarity-group.rarity-rare { --achievement-accent: #5579d9; }
.achievement-rarity-group.rarity-epic { --achievement-accent: #8b68c8; }
.achievement-rarity-group.rarity-legendary { --achievement-accent: #d49b4d; }
.achievement-rarity-group.rarity-secret { --achievement-accent: #8e94a5; }

.achievement-empty {
  margin: 16px 0 0;
  padding: 18px;
  border-radius: 16px;
  color: #7a839d;
  background: #f7f7fb;
  font-size: 12px;
}

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

.achievement-card {
  --achievement-accent: #8993af;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 274px;
  flex-direction: column;
  padding: 19px;
  overflow: hidden;
  border: 1px solid #e3e5ef;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 26px rgba(45, 48, 109, 0.055);
}

.achievement-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--achievement-accent);
}

.achievement-card.rarity-common { --achievement-accent: #7e9aaf; }
.achievement-card.rarity-rare { --achievement-accent: #5579d9; }
.achievement-card.rarity-epic { --achievement-accent: #8b68c8; }
.achievement-card.rarity-legendary { --achievement-accent: #d49b4d; }
.achievement-card.rarity-locked { --achievement-accent: #b8becc; }

.achievement-card.is-locked {
  background: rgba(248, 248, 252, 0.9);
}

.achievement-card-top,
.achievement-progress-label,
.achievement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.achievement-icon {
  display: inline-grid;
  width: 49px;
  height: 49px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--achievement-accent) 12%, white);
  font-size: 25px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--achievement-accent) 18%, white);
}

.achievement-card.is-locked .achievement-icon {
  filter: grayscale(0.55);
  opacity: 0.76;
}

.achievement-rarity {
  color: var(--achievement-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.achievement-copy {
  margin-top: 16px;
}

.achievement-copy h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.18;
}

.achievement-copy p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: #737c98;
  font-size: 12px;
  line-height: 1.48;
}

.achievement-progress {
  margin-top: auto;
  padding-top: 18px;
}

.achievement-progress-label {
  align-items: flex-end;
  color: #747d98;
  font-size: 10px;
  line-height: 1.3;
}

.achievement-progress-label span {
  overflow-wrap: anywhere;
}

.achievement-progress-label strong {
  flex: 0 0 auto;
  color: #34415f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.achievement-progress-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ebf2;
}

.achievement-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--achievement-accent);
}

.achievement-meta {
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 12px;
  color: #8991a8;
  font-size: 9px;
  line-height: 1.35;
}

.achievement-pin {
  min-height: 36px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid #d8deef;
  border-radius: 11px;
  color: #53658e;
  background: #f8f9fd;
  font-size: 11px;
  font-weight: var(--font-ui);
}

.achievement-pin:hover,
.achievement-pin:focus-visible,
.achievement-pin.is-pinned {
  color: var(--blue);
  border-color: #bfcaf0;
  background: var(--blue-soft);
}

.achievement-pin:disabled {
  cursor: wait;
  opacity: 0.6;
}

.achievement-card.is-compact {
  min-height: 154px;
  padding: 15px;
}

.achievement-card.is-compact .achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 21px;
}

.achievement-card.is-compact .achievement-copy {
  margin-top: 12px;
}

.achievement-card.is-compact .achievement-copy h3 {
  font-size: 14px;
}

.achievement-card.is-compact .achievement-copy p,
.achievement-card.is-compact .achievement-meta {
  display: none;
}

.profile-wishlist-item {
  border: 1px solid #e8e8f2;
  background: #f8f7ff;
}

.profile-feed-card.is-unread::before {
  background: var(--coral);
}

.settings-card {
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.settings-session-card {
  border-radius: 24px;
}

.file-input::file-selector-button {
  min-height: 38px;
  border-radius: 11px;
  color: var(--blue);
  background: var(--blue-soft);
}

.checkbox-row input {
  min-height: 20px;
}

/* Dialogs */
.app-dialog {
  width: min(94vw, 590px);
  max-height: min(90vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(228, 228, 239, 0.92);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(20, 25, 68, 0.3);
}

.app-dialog::backdrop {
  background: rgba(21, 25, 59, 0.48);
  backdrop-filter: blur(7px);
}

.app-dialog form {
  max-height: min(calc(90vh - 2px), 818px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #a8afc2 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  padding: 38px;
}

.app-dialog form::-webkit-scrollbar {
  width: 10px;
}

.app-dialog form::-webkit-scrollbar-track {
  margin-block: 12px;
  background: transparent;
}

.app-dialog form::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #a8afc2;
  background-clip: padding-box;
}

.app-dialog h2 {
  padding-right: 38px;
  color: var(--navy);
  font-size: clamp(27px, 5vw, 34px);
}

.dialog-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #5f6989;
  background: #f1f3f9;
}

.dialog-close:hover {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

@media (max-width: 1120px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-nav {
    display: flex;
  }

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

  .app-header-actions {
    grid-column: auto;
  }

  .app-menu-toggle {
    display: none !important;
  }

  .app-nav-link {
    padding-inline: 8px;
    font-size: 11px;
  }

  .account-profile-copy {
    display: none;
  }
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  }

  .hero-copy {
    margin-top: 16vh;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-art {
    width: 42vw;
    opacity: 0.75;
  }

  .dashboard-shell,
  .wishlist-shell,
  .event-shell,
  .event-analytics-shell,
  .friends-shell,
  .profile-shell,
  .settings-shell {
    padding-inline: 26px;
  }

  .event-hero-detail {
    background:
      linear-gradient(90deg, rgba(248, 245, 255, 0.98) 0 68%, rgba(248, 245, 255, 0.5) 100%),
      url("assets/eventoparty-hero-transparent.png") calc(100% - 8px) 50% / 270px auto no-repeat,
      #f8f5ff;
  }

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

  .achievement-pinned-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body {
    padding-bottom: 84px;
  }

  .page-shell {
    display: block;
    padding: 0;
  }

  body:not([data-auth-page="protected"]) {
    padding-bottom: 0;
  }

  .hero {
    display: block;
    min-height: 250px;
    margin: 12px;
    padding: 25px;
    border-radius: 26px;
  }

  .hero-copy {
    display: none;
  }

  .hero-art {
    top: -52px;
    right: 4px;
    width: 230px;
    max-height: 330px;
    opacity: 1;
  }

  .auth-panel {
    width: calc(100% - 24px);
    min-height: auto;
    margin: -52px 12px 12px;
    padding: 34px 24px 30px;
    border-radius: 26px;
  }

  .mobile-brand {
    display: none;
  }

  .dashboard-shell,
  .wishlist-shell,
  .event-shell,
  .event-analytics-shell,
  .friends-shell,
  .profile-shell,
  .settings-shell {
    padding: 14px 16px 34px;
  }

  .app-header {
    top: 8px;
    min-height: 58px;
    padding: 6px 8px 6px 13px;
    border-radius: 18px;
    backdrop-filter: none;
  }

  .app-header .brand {
    font-size: 24px;
  }

  .app-header-actions {
    grid-column: auto;
  }

  .app-menu-toggle,
  .app-mobile-menu {
    display: none !important;
  }

  .app-nav {
    display: grid;
    position: fixed;
    z-index: 60;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    min-height: 66px;
    padding: 6px;
    border: 1px solid rgba(218, 220, 235, 0.96);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 17px 42px rgba(31, 37, 82, 0.18);
    backdrop-filter: blur(18px);
  }

  .app-nav-link {
    display: flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 16px;
    font-size: clamp(8px, 2.3vw, 9px);
    white-space: normal;
  }

  .app-nav-icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
  }

  .app-nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .app-nav-label {
    max-width: 100%;
    overflow-wrap: normal;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .app-nav-link.is-current {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(36, 87, 255, 0.22);
  }

  .notification-panel {
    top: 76px;
    right: 12px;
    left: 12px;
    max-height: calc(100svh - 174px);
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 22px;
    border-radius: 28px;
  }

  .dashboard-hero-copy {
    padding: 34px 25px 20px;
  }

  .dashboard-hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .dashboard-hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .dashboard-hero-art {
    min-height: 220px;
    margin-top: -10px;
  }

  .dashboard-hero-art img {
    right: 50%;
    bottom: -32px;
    width: 270px;
    transform: translateX(50%);
  }

  .events-section,
  .birthdays-section {
    margin-top: 42px;
  }

  .events-grid,
  .birthday-grid,
  .event-guests,
  .event-gifts-grid,
  .friends-grid,
  .profile-content-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    min-height: 0;
  }

  .event-card h3 {
    min-height: 0;
  }

  .event-tab {
    min-height: 44px;
  }

  .wishlist-top,
  .friends-top,
  .settings-top {
    margin-top: 30px;
  }

  .wishlist-top h1,
  .friends-top h1,
  .settings-top h1 {
    font-size: clamp(38px, 11vw, 46px);
  }

  .wishlist-layout {
    grid-template-columns: 1fr;
  }

  .wishlist-sidebar {
    position: static;
  }

  .wishlist-list {
    scrollbar-width: thin;
  }

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

  .wish-item {
    min-height: 164px;
  }

  .wish-item-image {
    min-height: 164px;
  }

  .event-hero-detail {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 32px 24px 210px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(248, 245, 255, 0.98) 0 67%, rgba(248, 245, 255, 0.34) 100%),
      url("assets/eventoparty-hero-transparent.png") 50% calc(100% + 102px) / 250px auto no-repeat,
      #f8f5ff;
  }

  .event-hero-detail h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .event-date-poster {
    display: none;
  }

  .event-owner-actions,
  .rsvp-actions {
    flex-direction: column;
  }

  .event-owner-actions > *,
  .rsvp-button {
    width: 100% !important;
  }

  .event-info-layout {
    grid-template-columns: 1fr;
  }

  .friends-top {
    grid-template-columns: 1fr;
  }

  .friend-search {
    padding: 20px;
  }

  .profile-hero-card {
    border-radius: 27px;
  }

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

  .profile-secondary-details,
  .profile-achievements-section.profile-secondary-details[open] {
    padding: 0 22px 24px;
  }

  .settings-card {
    border-radius: 27px;
  }

  .app-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    border-radius: 24px;
  }

  .app-dialog form {
    max-height: calc(100svh - 22px);
    padding: 31px 20px 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 220px;
  }

  .hero-art {
    top: -65px;
    width: 215px;
  }

  .auth-panel {
    margin-top: -42px;
  }

  .auth-heading h2 {
    font-size: 32px;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .dashboard-actions .primary-button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
  }

  .event-tabs {
    display: flex;
    width: 100%;
  }

  .event-tab {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .event-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .event-invite-button {
    width: 100%;
  }

  .wish-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .wish-item-image {
    width: 118px;
    min-height: 100%;
  }

  .wish-item-body {
    padding: 17px 15px;
  }

  .friend-search-row {
    flex-direction: column;
  }

  .friend-search-row .primary-button {
    width: 100%;
  }

  .profile-hero-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 17px;
  }

  .profile-hero-avatar {
    width: 82px;
    height: 82px;
    border-radius: 23px;
  }

  .profile-hero-copy h1 {
    font-size: 32px;
  }

  .profile-hero-card.is-birthday::before {
    top: 10px;
    right: 10px;
    font-size: 17px;
    letter-spacing: 3px;
  }

  .profile-birthday {
    display: flex;
    width: fit-content;
    margin-top: 12px;
  }

  .profile-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-stat-card {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    padding: 10px 6px;
    text-align: center;
  }

  .profile-stat-icon {
    width: 40px;
    height: 40px;
  }

  .profile-stat-card > span:last-child {
    font-size: 12px;
  }

  .profile-gift-showcase {
    grid-template-columns: 1fr;
  }

  .profile-pinned-showcase {
    margin-top: 32px;
    padding: 22px 18px;
    border-radius: 25px;
  }

  .profile-event-cover {
    height: 170px;
  }

  .profile-invite-event {
    grid-template-columns: 1fr;
  }

  .profile-invite-event .primary-button {
    width: 100%;
  }

  .profile-wishlist-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .profile-achievements-section {
    padding: 22px 18px;
    border-radius: 25px;
  }

  .profile-achievements-section.profile-secondary-details[open] {
    padding: 0 18px 22px;
  }

  .profile-secondary-details:not([open]) {
    width: 100%;
    padding: 10px 14px;
  }

  .profile-details-title {
    font-size: 21px;
  }

  .achievement-pinned-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .achievement-card,
  .achievement-card.is-compact {
    min-height: 0;
  }

  .profile-wishlist-item a {
    grid-column: 1 / -1;
  }

  .settings-card {
    padding: 22px 18px;
  }

  .avatar-settings {
    align-items: center;
  }

  .profile-avatar-preview {
    width: 88px;
    height: 88px;
  }

  .auth-flow-shell,
  .invite-shell {
    width: min(100% - 24px, 720px);
    padding-top: 20px;
  }

  .auth-flow-card,
  .invite-card {
    padding: 28px 20px;
    border-radius: 25px;
  }

  .auth-flow-card::after,
  .invite-card::after {
    opacity: 0.07;
  }
}

@media (max-width: 820px) {
  .event-date-poster {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 94px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    justify-self: stretch;
    gap: 10px;
    margin-top: 4px;
    padding: 14px 16px;
    transform: none;
    border-radius: 22px;
  }

  .event-date-poster span { flex: 0 0 auto; font-size: 44px; }
  .event-date-poster strong { min-width: 0; max-width: none; margin-top: 0; font-size: 17px; text-align: left; }
  .event-date-poster small { flex: 0 0 auto; margin: 0 0 0 auto; font-size: 12px; }
}

/* Visual audit: shared interaction and dialog language. */
.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.primary-button,
.secondary-button,
.icon-button,
.item-action,
.reservation-button,
.event-poll-vote,
.event-poll-delete,
.event-poll-add-option,
.achievement-pin,
.photo-download,
.photo-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.icon-button:active:not(:disabled),
.item-action:active:not(:disabled),
.reservation-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.dialog-heading {
  display: grid;
  gap: 6px;
  margin: 0 44px 24px 0;
}

.dialog-heading .eyebrow,
.dialog-heading h2,
.dialog-heading p {
  margin: 0;
}

.dialog-heading > p:last-child {
  color: var(--navy-soft);
  line-height: 1.55;
}

.dialog-intro { margin: 8px 0 20px; color: var(--navy-soft); line-height: 1.55; }

.event-editor-dialog {
  width: min(96vw, 780px);
}

.event-form-section {
  min-width: 0;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #e7e9f5;
  border-radius: 20px;
  background: #fbfbff;
}

.event-form-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}

.event-form-section h3 span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
}

.event-form-section:nth-of-type(2) h3 span { background: var(--coral-action); }
.event-form-section:nth-of-type(3) h3 span { background: var(--purple); }

.dialog-actions {
  position: sticky;
  bottom: -38px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px -38px -38px;
  padding: 18px 38px;
  border-top: 1px solid #e7e9f5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 28px rgba(26, 36, 74, 0.06);
  backdrop-filter: blur(12px);
}

.dialog-actions > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.dialog-actions > :only-child { margin-left: auto; }

.dialog-actions .primary-button,
.dialog-actions .secondary-button,
.dialog-actions .dialog-message {
  width: auto;
  margin: 0;
}

.dialog-actions .dialog-message {
  max-width: 330px;
  text-align: right;
}

.image-preview {
  display: grid;
  overflow: hidden;
  min-height: 150px;
  margin: 0 0 18px;
  place-items: center;
  border: 1px dashed #cbd1e5;
  border-radius: 18px;
  color: var(--navy-soft);
  background: linear-gradient(145deg, #f2f5ff, #faf6ff);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-cover-preview { aspect-ratio: 16 / 7; }
.event-accent-picker {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.event-accent-picker summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.event-accent-picker summary::-webkit-details-marker { display: none; }
.event-accent-picker summary::after { margin-left: 2px; color: #8991aa; content: "⌄"; font-size: 18px; line-height: 1; transform: translateY(-2px); }
.event-accent-picker[open] summary::after { content: "⌃"; transform: translateY(2px); }
.event-accent-picker summary small { margin-left: auto; color: var(--navy-soft); font-size: 12px; font-weight: 600; }
.event-accent-dot { width: 18px; height: 18px; flex: 0 0 18px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(17,26,70,.16); }
.event-accent-grid { display: grid; grid-template-columns: repeat(10, 30px); gap: 9px; padding: 2px 14px 14px; }
.event-accent-swatch { width: 30px; min-height: 30px; padding: 0; border: 3px solid #fff; border-radius: 9px; background: var(--swatch-color); box-shadow: 0 0 0 1px rgba(17,26,70,.16); }
.event-accent-swatch:hover { transform: translateY(-1px); }
.event-accent-swatch:focus-visible { outline: 3px solid rgba(36,87,255,.28); outline-offset: 2px; }
.event-accent-swatch.is-active { box-shadow: 0 0 0 2px var(--navy); }
.gift-image-preview { aspect-ratio: 1; min-height: 0; }
.gift-image-preview img.is-placeholder { object-fit: contain; padding: 28px; }

.item-dialog { width: min(94vw, 720px); }
.item-editor-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }

.decision-dialog {
  width: min(92vw, 480px);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 170ms ease, transform 170ms ease, display 170ms allow-discrete, overlay 170ms allow-discrete;
}

.app-dialog {
  transition: opacity 170ms ease, transform 170ms ease, display 170ms allow-discrete, overlay 170ms allow-discrete;
}

.app-dialog::backdrop { transition: background-color 170ms ease, display 170ms allow-discrete, overlay 170ms allow-discrete; }

.decision-dialog.is-open { opacity: 1; transform: none; }
.decision-dialog-form { text-align: center; }
.decision-dialog-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; border-radius: 18px; color: var(--purple); background: var(--purple-soft); }
.decision-dialog-icon .ui-icon { width: 28px; height: 28px; }
.decision-dialog.tone-danger .decision-dialog-icon { color: var(--danger); background: var(--danger-soft); }
.decision-dialog.tone-to .decision-dialog-icon { color: var(--coral-action); background: var(--coral-soft); }
.decision-dialog-copy { margin: 10px auto 0; color: var(--navy-soft); line-height: 1.55; }
.decision-dialog .dialog-actions { position: static; margin-top: 24px; margin-bottom: -38px; }
.copy-dialog-input { margin-top: 22px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.copy-dialog-status.success { color: #21845a; }

.invite-method {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e6e8f3;
  border-radius: 18px;
  background: #fbfbff;
}

.invite-method .eyebrow { margin-top: 0; }

.event-gift-card { position: relative; }
.event-gift-card.is-reserved { opacity: 1; filter: none; }
.event-gift-card.is-reserved .event-gift-image { opacity: 0.78; }
.gift-reservation-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 10px; border-radius: 999px; color: var(--purple-deep); background: var(--purple-soft); font-size: 12px; font-weight: 700; }

.event-product-link,
.comment-reply-toggle,
.comment-thread-toggle,
.photo-download {
  color: var(--purple);
}

.empty-state-action { margin-top: 14px; }
.event-meta,
.event-wishlist-summary { display: flex; align-items: center; gap: 8px; }
.items-empty { display: grid; min-height: 220px; place-items: center; padding: 30px; text-align: center; border: 1px dashed #d8daea; border-radius: 20px; background: #fbfbff; }
.items-empty h3 { margin: 0; color: var(--navy); font-size: 20px; }
.items-empty p { max-width: 420px; margin: 8px 0 0; color: var(--navy-soft); }

.app-live-notification {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.app-live-notification.is-visible { opacity: 1; transform: none; visibility: visible; }
.app-live-notification::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.app-live-notification.is-party::before { background: var(--purple); }
.app-live-notification.is-to::before { background: var(--coral-action); }
.app-live-notification-close { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 10px; color: var(--navy-soft); background: transparent; cursor: pointer; }
.app-live-notification-close:hover { color: var(--navy); background: #f1f3fa; }
.app-live-notification-link { padding-right: 48px; }

@starting-style {
  .app-dialog[open] { opacity: 0; transform: translateY(8px) scale(0.985); }
}

@media (max-width: 680px) {
  .event-editor-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .app-dialog form { padding: 24px 22px; }
  .event-form-section { padding: 18px; }
  .item-editor-layout { grid-template-columns: 1fr; }
  .gift-image-preview { width: min(100%, 240px); margin-inline: auto; }
  .dialog-actions { bottom: -22px; margin: 24px -22px -22px; padding: 16px 22px; }
  .dialog-actions,
  .dialog-actions > div { align-items: stretch; flex-direction: column-reverse; }
  .dialog-actions .primary-button,
  .dialog-actions .secondary-button { width: 100%; }
  .dialog-actions .dialog-message { max-width: none; text-align: left; }
  .decision-dialog .dialog-actions { margin-bottom: -22px; }
}

@media (max-width: 350px) {
  .dashboard-hero-art {
    min-height: 240px;
    margin-top: 0;
    overflow: hidden;
  }

  .dashboard-hero-art img {
    bottom: -18px;
    width: 205px;
  }
}

/* EventToParty community release */
.brand-party {
  color: #7444d8;
  -webkit-text-fill-color: #7444d8;
}

.brand-event {
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
}

.brand { white-space: nowrap; letter-spacing: -0.055em; }

.brand-to {
  color: var(--coral);
  -webkit-text-fill-color: var(--coral);
}

.auth-loading-animation {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
}

.auth-loading-animation svg {
  width: 100% !important;
  height: 100% !important;
}

.auth-loading-fallback {
  font-size: 48px;
  animation: event-gift-bounce 1s ease-in-out infinite alternate;
}

@keyframes event-gift-bounce {
  to { transform: translateY(-8px) rotate(4deg); }
}

.app-nav-icon.icon-events-mask,
.app-nav-icon.icon-wishlists-mask {
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.app-nav-icon.icon-events-mask {
  -webkit-mask-image: url("assets/events_ic.svg");
  mask-image: url("assets/events_ic.svg");
}

.app-nav-icon.icon-wishlists-mask {
  -webkit-mask-image: url("assets/wishlists_ic.svg");
  mask-image: url("assets/wishlists_ic.svg");
}

.page-shell {
  align-items: start;
}

.hero {
  min-height: calc(100svh - 36px);
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: min(680px, calc(100svh - 110px));
}

.hero-stage .hero-copy {
  margin-top: clamp(100px, 15vh, 170px);
}

.hero-stage .hero-art {
  top: 0;
}

.auth-panel {
  position: sticky;
  top: 18px;
  height: calc(100svh - 36px);
}

.how-it-works {
  position: relative;
  z-index: 3;
  padding: 50px 0 8px;
  border-top: 0;
}

.how-it-works > header {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.how-it-works h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -0.055em;
}

.how-it-works > header > p:last-child,
.how-step > p {
  color: var(--navy-soft);
  font-size: 16px;
  line-height: 1.5;
}

.how-it-works > header > p:last-child { font-size: 18px; }

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

.how-step {
  min-width: 0;
}

.how-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple);
  font-size: 29px;
}

.how-step-title > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #ff7e62);
}

.how-step:nth-child(2) .how-step-title > span {
  background: linear-gradient(135deg, var(--coral-action), #ef5d66);
}

.how-step:first-child .how-step-title > span { background: linear-gradient(135deg, var(--blue), #4d78ff); }
.step-event { color: var(--blue); }
.step-to { color: var(--coral-action); }
.step-party { color: var(--purple); }
.how-step h3 { margin: 18px 0 8px; color: var(--navy); font-size: 21px; }
.how-step > p { min-height: 4.5em; margin: 0; font-size: 15px; }

.how-mock {
  min-height: 190px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #e5e2f0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.mock-cover {
  height: 112px;
  margin: -9px -9px 13px;
  overflow: hidden;
  border-radius: 14px;
  background: #dff8ef;
}

.mock-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.how-mock small,
.how-mock > strong { display: block; margin-top: 8px; }
.how-mock small { color: #626d8f; font-size: 13px; line-height: 1.45; }
.how-mock > strong { font-size: 15px; }
.how-share-mock > div { display: flex; gap: 6px; margin: 14px 0; padding: 8px; border-radius: 11px; background: #f6f3ff; }
.how-share-mock span { min-width: 0; overflow: hidden; color: #68718e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mock-copy { margin-left: auto; padding: 5px 7px; border-radius: 8px; color: #fff !important; background: #9151ec; font-size: 10px !important; }
.how-share-mock p { color: #6d7695; font-size: 14px; text-align: center; }
.how-party-mock .mock-tabs { display: flex; gap: 9px; margin: 15px 0; color: #5d6888; font-size: 11px; }
.how-party-mock .mock-tabs span:first-child { color: var(--coral); }
.how-party-mock p { padding: 8px; border-radius: 10px; background: #f7f5ff; font-size: 13px; }
.mock-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock-photos span { display: grid; min-height: 48px; place-items: center; border-radius: 9px; background: #f2edff; font-size: 22px; }
.how-step ul { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; color: #596785; font-size: 14px; line-height: 1.4; list-style: none; }
.how-step li::before { margin-right: 8px; color: var(--purple); content: "✓"; font-weight: 800; }
.how-step:first-child li::before { color: var(--blue); }
.how-step:nth-child(2) li::before { color: var(--coral-action); }

.how-summary {
  position: relative;
  margin-top: 46px;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #153ba9 0%, var(--blue) 40%, #6843c7 100%);
  box-shadow: 0 24px 58px rgba(40, 55, 159, 0.24);
}

.how-summary::before,
.how-summary::after { position: absolute; border-radius: 50%; content: ""; pointer-events: none; }
.how-summary::before { top: -80px; right: -50px; width: 220px; height: 220px; background: rgba(255, 112, 91, 0.24); }
.how-summary::after { bottom: -100px; left: 24%; width: 190px; height: 190px; background: rgba(184, 139, 255, 0.2); }
.how-summary-head,
.how-summary-benefits,
.how-summary-proof { position: relative; z-index: 1; }
.how-summary-head { max-width: 790px; margin: 0 auto; text-align: center; }
.how-summary-head .eyebrow { margin-bottom: 12px; color: #dfe6ff; }
.how-summary h3 { margin: 0; color: #fff; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -0.045em; }
.how-summary-head > p:last-child { max-width: 670px; margin: 18px auto 0; color: #e9ecff; font-size: 18px; line-height: 1.55; }
.how-summary-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.how-benefit { min-width: 0; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); }
.how-benefit > span { display: inline-flex; min-height: 30px; align-items: center; padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 700; }
.how-benefit.benefit-to > span { background: var(--coral-action); }
.how-benefit.benefit-party > span { background: var(--purple); }
.how-benefit strong { display: block; margin-top: 16px; color: #fff; font-size: 19px; line-height: 1.25; }
.how-benefit p { margin: 9px 0 0; color: #e5e8ff; font-size: 14px; line-height: 1.55; }
.how-summary-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 26px; color: #f4f5ff; font-size: 14px; font-weight: 600; }

.event-cover-fields {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 18px 0 0;
  padding: 16px;
  border: 2px solid var(--event-accent);
  border-radius: 16px;
}

.event-cover-fields legend { padding: 0 6px; color: var(--navy); font-size: 14px; font-weight: 600; }
.event-cover-fields label { margin-top: 8px; }
.event-cover-fields .event-cover-preview,
.event-cover-fields input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.image-source-fields { min-width: 0; margin: 20px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.image-source-fields legend { padding: 0 6px; color: var(--navy); font-weight: 700; }
.image-source-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; }
.image-source-options label { display: flex; min-height: 46px; align-items: center; gap: 9px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.image-source-options label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.image-source-options input { width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--blue); }
.image-source-options span { color: var(--navy); font-size: 14px; font-weight: 700; }
.event-cover-source-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
.image-source-fields [data-image-source] > label,
.event-cover-fields [data-image-source] > label { margin-top: 8px; }
.field-divider { display: block; margin: 10px 0 0; color: #8b94ae; font-size: 12px; text-align: center; }
.event-cover-fields .event-cover-preview { border-color: var(--event-accent); }
.event-cover-reset { width: auto; min-height: 38px; margin-top: 12px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--event-accent) 45%, #fff); border-radius: 11px; color: var(--navy); background: color-mix(in srgb, var(--event-accent) 9%, #fff); font-size: 13px; font-weight: 600; }
.event-cover-reset:hover { background: color-mix(in srgb, var(--event-accent) 15%, #fff); }

.event-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0 0 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border-color: color-mix(in srgb, var(--event-accent) 28%, var(--line));
  background: linear-gradient(155deg, color-mix(in srgb, var(--event-accent) 9%, #fff) 0%, rgba(255,255,255,.98) 54%, color-mix(in srgb, var(--event-accent) 4%, #fff) 100%);
}

.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card:focus-visible { outline: 3px solid rgba(36, 87, 255, 0.3); outline-offset: 3px; }
.event-card::before { display: none; }
.event-card-cover { display: grid; height: 180px; place-items: center; overflow: hidden; border-bottom: 4px solid var(--event-accent); border-radius: 24px 24px 0 0; background: linear-gradient(135deg, #eee7ff, #fff0ed); font-size: 64px; }
.event-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-card-top,
.event-card > h3,
.event-card > .event-meta,
.event-card-footer { margin-right: 22px; margin-left: 22px; }
.event-card-top { margin-top: 18px; }
.event-card > h3 { margin-top: 18px; margin-bottom: 13px; }
.event-card-footer { align-items: center; flex-direction: row; justify-content: flex-start; color: var(--blue); }
.event-card-stats { display: flex; width: fit-content; max-width: 100%; min-width: 0; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 16px; }
.event-card-stat { display: inline-flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 6px; color: #66708f; font-size: 12px; font-weight: 700; line-height: 1.35; }
.event-card-stat .ui-icon { width: 17px; height: 17px; flex: 0 0 auto; }

.events-overview { min-width: 0; }
.events-controls { min-width: 0; }
.event-month-calendar { width: min(100%, 376px); margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-sm); }
.event-month-calendar[hidden] { display: none; }
.event-calendar-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.event-calendar-header .eyebrow { margin-bottom: 3px; }
.event-calendar-header h3 { margin: 0; color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.25; }
.event-calendar-today-label { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--blue-deep); background: var(--blue-soft); font-size: 11px; font-weight: 700; }
.event-calendar-weekdays,
.event-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.event-calendar-weekdays { margin-top: 15px; color: var(--navy-soft); font-size: 11px; font-weight: 600; text-align: center; }
.event-calendar-grid { gap: 5px 2px; margin-top: 7px; }
.event-calendar-day { display: grid; min-width: 0; min-height: 36px; place-items: center; color: var(--navy-soft); font-size: 12px; font-weight: 600; }
.event-calendar-day.is-outside { visibility: hidden; }
.event-calendar-date { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; }
.event-calendar-date > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: inherit; background: #fff; }
.event-calendar-day.has-events { color: var(--navy); font-weight: 700; }
.event-calendar-day.is-today .event-calendar-date { outline: 2px solid var(--blue); outline-offset: 2px; }
.event-calendar-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; color: var(--navy-soft); font-size: 11px; font-weight: 600; }
.event-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.event-calendar-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.event-calendar-legend i.is-today { outline: 2px solid var(--blue); outline-offset: 1px; }
.event-calendar-legend i.has-event { background: conic-gradient(var(--coral) 0 50%, var(--purple) 50% 100%); }

@media (min-width: 901px) {
  .events-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 376px); align-items: stretch; gap: clamp(28px, 4vw, 56px); }
  .events-controls { display: flex; flex-direction: column; align-items: flex-start; }
  .events-controls .section-heading { width: 100%; }
  .events-overview .event-month-calendar { display: flex; width: 100%; height: 100%; min-height: 0; flex-direction: column; margin-top: 0; padding: 10px 14px; }
  .events-overview .event-calendar-header { align-items: center; }
  .events-overview .event-calendar-header .eyebrow,
  .events-overview .event-calendar-legend { display: none; }
  .events-overview .event-calendar-header h3 { font-size: 17px; }
  .events-overview .event-calendar-today-label { padding: 4px 8px; font-size: 10px; }
  .events-overview .event-calendar-weekdays { margin-top: 6px; font-size: 10px; }
  .events-overview .event-calendar-grid { flex: 1; grid-auto-rows: minmax(18px, 1fr); gap: 1px 2px; margin-top: 3px; }
  .events-overview .event-calendar-day { min-height: 18px; font-size: 10px; }
  .events-overview .event-calendar-date { width: 18px; height: 18px; }
  .events-overview .event-calendar-date > span { width: 14px; height: 14px; }
  .events-overview .event-calendar-day.is-today .event-calendar-date { outline-width: 1.5px; outline-offset: 1px; }
}

/* Full calendar view for dashboard events. */
.events-overview { display: block; }
.events-controls { width: 100%; }
.events-controls .section-heading { width: 100%; justify-content: flex-start; text-align: left; }
.event-mode-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.event-view-switch,
.event-mode-controls .event-tabs { display: inline-flex; box-sizing: border-box; max-width: 100%; flex: 0 0 auto; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.event-view-button,
.event-mode-controls .event-tab { min-height: 40px; padding: 0 15px; border: 0; border-radius: 11px; color: var(--navy-soft); background: transparent; box-shadow: none; font-size: 14px; font-weight: var(--font-ui); transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.event-view-button:hover,
.event-mode-controls .event-tab:hover { color: var(--blue); background: var(--blue-soft); }
.event-view-button.is-active,
.event-mode-controls .event-tab.is-active { color: #fff; background: var(--blue); box-shadow: none; }
.event-calendar-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); gap: 18px; margin-top: 22px; }
.event-calendar-view[hidden] { display: none; }
.event-calendar-view .event-month-calendar { width: 100%; margin: 0; padding: 0; overflow: hidden; border-radius: 24px; }
.event-calendar-view .event-calendar-header { min-height: 74px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.event-calendar-month-controls { display: flex; align-items: center; gap: 9px; }
.event-calendar-month-controls h3 { min-width: 170px; text-align: center; }
.event-calendar-today-button { min-height: 40px; padding: 0 14px; border: 1px solid #cfd5eb; border-radius: 12px; color: var(--blue); background: #fff; font-size: 13px; font-weight: var(--font-ui); }
.event-calendar-today-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.event-calendar-nav { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: #fff; font-size: 25px; line-height: 1; }
.event-calendar-nav:hover { color: var(--blue); border-color: #c8d2fc; background: var(--blue-soft); }
.event-calendar-view .event-calendar-weekdays { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); background: #fafaff; font-size: 11px; }
.event-calendar-view .event-calendar-grid { gap: 0; margin: 0; }
.event-calendar-view .event-calendar-day { display: flex; min-height: 118px; min-width: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; padding: 9px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; color: var(--navy); background: #fff; text-align: left; }
.event-calendar-view button.event-calendar-day:hover { background: #f8faff; }
.event-calendar-view .event-calendar-day:nth-child(7n) { border-right: 0; }
.event-calendar-view .event-calendar-day.is-outside { visibility: visible; color: #a9afc1; background: #fafaff; }
.event-calendar-view .event-calendar-date { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 12px; font-weight: var(--font-strong); }
.event-calendar-view .event-calendar-day.is-today .event-calendar-date { color: var(--blue); outline: 2px solid var(--blue); outline-offset: 1px; }
.event-calendar-view .event-calendar-day.is-selected { background: #f0f4ff; box-shadow: inset 0 0 0 2px rgba(36,87,255,.42); }
.event-calendar-view .event-calendar-day.is-selected .event-calendar-date { color: #fff; background: var(--blue); outline: none; }
.event-calendar-events { display: grid; min-width: 0; gap: 4px; }
.event-calendar-event { display: block; overflow: hidden; padding: 5px 6px 5px 14px; border-radius: 7px; color: var(--navy); background: color-mix(in srgb, var(--calendar-event-accent) 11%, #fff); font-size: 10px; font-weight: var(--font-ui); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.event-calendar-event::before { position: absolute; width: 6px; height: 6px; margin: 3px 0 0 -10px; border-radius: 50%; content: ''; background: var(--calendar-event-accent); }
.event-calendar-more { color: var(--blue); font-size: 10px; font-weight: var(--font-strong); }
.event-day-agenda { min-width: 0; padding: 22px 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); }
.event-day-agenda-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 0 4px 17px; border-bottom: 1px solid var(--line); }
.event-day-agenda-heading { min-width: 0; }
.event-day-agenda-header h3 { margin: 0; color: var(--navy); font-size: 24px; }
.event-day-agenda-header p { margin: 4px 0 0; color: var(--navy-soft); font-size: 13px; }
.event-day-create { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 13px; color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(36,87,255,.22); font-size: 26px; font-weight: var(--font-ui); line-height: 1; }
.event-day-create:hover { background: var(--blue-deep); }
.event-day-agenda-list { display: grid; gap: 10px; margin-top: 16px; }
.event-day-card { display: grid; grid-template-columns: 72px minmax(0,1fr) 18px; align-items: center; gap: 12px; min-height: 98px; padding: 12px; border: 1px solid color-mix(in srgb, var(--calendar-event-accent) 28%, var(--line)); border-radius: 16px; color: inherit; background: color-mix(in srgb, var(--calendar-event-accent) 7%, #fff); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.event-day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.event-day-cover { display: grid; width: 72px; height: 72px; place-items: center; overflow: hidden; border-radius: 13px; color: var(--calendar-event-accent); background: color-mix(in srgb, var(--calendar-event-accent) 15%, #fff); font-size: 27px; }
.event-day-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-day-copy { display: grid; min-width: 0; gap: 6px; }
.event-day-copy strong { overflow-wrap: anywhere; color: var(--navy); font-size: 14px; line-height: 1.25; }
.event-day-meta { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px; }
.event-day-time { color: var(--calendar-event-accent); font-size: 12px; font-weight: var(--font-strong); }
.event-day-meta small { width: fit-content; padding: 3px 7px; border-radius: 999px; color: var(--calendar-event-accent); background: #fff; font-size: 10px; font-weight: var(--font-strong); }
.event-day-stats { display: flex; min-width: 0; align-items: center; gap: 13px; color: var(--navy-soft); }
.event-day-stat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: var(--font-ui); line-height: 1; }
.event-day-stat svg { width: 15px; height: 15px; flex: 0 0 auto; }
.event-day-chevron { color: var(--navy-soft); font-size: 24px; }
.event-day-agenda-empty { margin-top: 16px; padding: 28px 18px; border-radius: 16px; color: var(--navy-soft); background: #f8f7ff; font-size: 13px; line-height: 1.5; text-align: center; }
.event-view-button:focus-visible,
.event-mode-controls .event-tab:focus-visible,
.event-calendar-today-button:focus-visible,
.event-calendar-nav:focus-visible,
.event-calendar-day:focus-visible,
.event-day-create:focus-visible,
.event-day-card:focus-visible { outline: 3px solid rgba(36,87,255,.32); outline-offset: 2px; }

html[data-theme="dark"] .event-view-switch,
html[data-theme="dark"] .event-mode-controls .event-tabs,
html.theme-dark .event-view-switch,
html.theme-dark .event-mode-controls .event-tabs { border-color: #343b60; background: #171d38; box-shadow: 0 14px 34px rgba(0,0,0,.24); }
html[data-theme="dark"] .event-view-button,
html[data-theme="dark"] .event-mode-controls .event-tab,
html.theme-dark .event-view-button,
html.theme-dark .event-mode-controls .event-tab { color: #aeb7d7; }
html[data-theme="dark"] .event-view-button:hover,
html[data-theme="dark"] .event-mode-controls .event-tab:hover,
html.theme-dark .event-view-button:hover,
html.theme-dark .event-mode-controls .event-tab:hover { color: #dce4ff; background: #252e54; }
html[data-theme="dark"] .event-view-button.is-active,
html[data-theme="dark"] .event-mode-controls .event-tab.is-active,
html.theme-dark .event-view-button.is-active,
html.theme-dark .event-mode-controls .event-tab.is-active { color: #fff; background: #416cff; }
html[data-theme="dark"] .event-calendar-view .event-month-calendar,
html[data-theme="dark"] .event-day-agenda,
html.theme-dark .event-calendar-view .event-month-calendar,
html.theme-dark .event-day-agenda { border-color: #343b60; background: #171d38; box-shadow: 0 18px 42px rgba(0,0,0,.28); }
html[data-theme="dark"] .event-calendar-view .event-calendar-header,
html[data-theme="dark"] .event-calendar-view .event-calendar-weekdays,
html[data-theme="dark"] .event-day-agenda-header,
html.theme-dark .event-calendar-view .event-calendar-header,
html.theme-dark .event-calendar-view .event-calendar-weekdays,
html.theme-dark .event-day-agenda-header { border-color: #343b60; }
html[data-theme="dark"] .event-calendar-view .event-calendar-weekdays,
html.theme-dark .event-calendar-view .event-calendar-weekdays { color: #9da7ca; background: #141a33; }
html[data-theme="dark"] .event-calendar-month-controls h3,
html[data-theme="dark"] .event-day-agenda-header h3,
html.theme-dark .event-calendar-month-controls h3,
html.theme-dark .event-day-agenda-header h3 { color: #f3f5ff; }
html[data-theme="dark"] .event-calendar-today-button,
html[data-theme="dark"] .event-calendar-nav,
html.theme-dark .event-calendar-today-button,
html.theme-dark .event-calendar-nav { color: #b9c7ff; border-color: #424b74; background: #202746; }
html[data-theme="dark"] .event-calendar-today-button:hover,
html[data-theme="dark"] .event-calendar-nav:hover,
html.theme-dark .event-calendar-today-button:hover,
html.theme-dark .event-calendar-nav:hover { color: #fff; border-color: #5678ff; background: #29345f; }
html[data-theme="dark"] .event-calendar-view .event-calendar-day,
html.theme-dark .event-calendar-view .event-calendar-day { color: #e8ebfa; border-color: #303757; background: #171d38; }
html[data-theme="dark"] .event-calendar-view button.event-calendar-day:hover,
html.theme-dark .event-calendar-view button.event-calendar-day:hover { background: #202746; }
html[data-theme="dark"] .event-calendar-view .event-calendar-day.is-outside,
html.theme-dark .event-calendar-view .event-calendar-day.is-outside { color: #626b8d; background: #13182f; }
html[data-theme="dark"] .event-calendar-view .event-calendar-day.is-selected,
html.theme-dark .event-calendar-view .event-calendar-day.is-selected { background: #202c55; box-shadow: inset 0 0 0 2px #5577ff; }
html[data-theme="dark"] .event-calendar-event,
html.theme-dark .event-calendar-event { color: #f0f2ff; background: color-mix(in srgb, var(--calendar-event-accent) 24%, #171d38); }
html[data-theme="dark"] .event-day-agenda-header p,
html.theme-dark .event-day-agenda-header p { color: #9da7ca; }
html[data-theme="dark"] .event-day-card,
html.theme-dark .event-day-card { border-color: color-mix(in srgb, var(--calendar-event-accent) 42%, #343b60); background: color-mix(in srgb, var(--calendar-event-accent) 14%, #202746); }
html[data-theme="dark"] .event-day-copy strong,
html.theme-dark .event-day-copy strong { color: #f3f5ff; }
html[data-theme="dark"] .event-day-copy small,
html.theme-dark .event-day-copy small { background: #171d38; }
html[data-theme="dark"] .event-day-cover,
html.theme-dark .event-day-cover { background: color-mix(in srgb, var(--calendar-event-accent) 22%, #171d38); }
html[data-theme="dark"] .event-day-stats,
html.theme-dark .event-day-stats { color: #b8c1df; }
html[data-theme="dark"] .event-day-chevron,
html.theme-dark .event-day-chevron { color: #aeb7d7; }
html[data-theme="dark"] .event-day-agenda-empty,
html.theme-dark .event-day-agenda-empty { color: #aeb7d7; background: #202746; }
html[data-theme="dark"] #events-eyebrow,
html.theme-dark #events-eyebrow { color: var(--blue); }
html[data-theme="dark"] .event-day-create,
html.theme-dark .event-day-create { color: #fff; background: #416cff; }

@media (max-width: 1000px) {
  .event-calendar-view { grid-template-columns: 1fr; }
  .event-day-agenda-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .events-controls .section-heading { flex-direction: column; gap: 16px; }
  .event-mode-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .event-view-switch,
  .event-mode-controls .event-tabs { width: fit-content; max-width: 100%; flex: 0 0 auto; }
  .event-view-button,
  .event-mode-controls .event-tab { min-width: 0; flex: 0 0 auto; padding-inline: 12px; }
  .event-calendar-view .event-calendar-header { align-items: stretch; flex-direction: column-reverse; }
  .event-calendar-month-controls { justify-content: space-between; }
  .event-calendar-month-controls h3 { min-width: 0; font-size: 18px; }
  .event-calendar-view .event-calendar-day { min-height: 68px; padding: 6px 4px; }
  .event-calendar-view .event-calendar-date { width: 24px; height: 24px; }
  .event-calendar-event { padding: 0; color: transparent; background: transparent; font-size: 0; }
  .event-calendar-event::before { position: static; display: block; width: 7px; height: 7px; margin: 0; }
  .event-calendar-events { display: flex; max-width: 100%; flex-wrap: wrap; gap: 3px; }
  .event-calendar-more { font-size: 8px; }
  .event-day-agenda-list { grid-template-columns: 1fr; }
  .event-day-card { grid-template-columns: 64px minmax(0,1fr) 14px; gap: 10px; min-height: 90px; padding: 10px; }
  .event-day-cover { width: 64px; height: 64px; border-radius: 12px; }
}

.event-body { background: transparent; }
.event-body::after {
  background:
    radial-gradient(circle at 9% 4%, color-mix(in srgb, var(--event-accent) 26%, transparent), transparent 28rem),
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--event-accent) 18%, transparent), transparent 25rem),
    linear-gradient(145deg, color-mix(in srgb, var(--event-accent) 10%, #fff) 0%, #fffdfd 48%, color-mix(in srgb, var(--event-accent) 8%, #fff) 100%);
}
html[data-theme="dark"] .event-body::after,
html.theme-dark .event-body::after {
  background:
    radial-gradient(circle at 9% 4%, color-mix(in srgb, var(--event-accent) 24%, transparent), transparent 28rem),
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--event-accent) 16%, transparent), transparent 25rem),
    linear-gradient(145deg, color-mix(in srgb, var(--event-accent) 12%, #11172f) 0%, #171b35 48%, color-mix(in srgb, var(--event-accent) 8%, #11152b) 100%);
}
.event-hero-detail { isolation: isolate; border-top: 4px solid var(--event-accent); background-color: color-mix(in srgb, var(--event-accent) 7%, #f8f5ff); }
.event-card .event-theme,
.event-hero-detail .event-theme { border: 1px solid color-mix(in srgb, var(--event-accent) 48%, #fff); }
.event-hero-cover { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 52%; height: 100%; object-fit: cover; }
.event-hero-detail.has-cover::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, color-mix(in srgb, var(--event-accent) 10%, #fff) 0 45%, color-mix(in srgb, var(--event-accent) 7%, rgba(255,255,255,.88)) 60%, color-mix(in srgb, var(--event-accent) 3%, transparent) 100%); }
.event-dialog-cancel { width: 100%; min-height: 48px; margin-top: 12px; }

.event-community-section { margin-top: 48px; }
.event-comment-form,
.event-photo-form,
.event-ticket-form { max-width: none; margin-top: 20px; padding: 22px; border: 1px solid #e2e3f0; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.event-comment-form { position: relative; z-index: 1; margin-top: 16px; }
.event-comment-form .primary-button,
.event-photo-form .primary-button,
.event-ticket-form .primary-button { width: auto; padding: 0 20px; }
.event-comments { display: grid; max-height: 560px; gap: 16px; margin-top: 20px; padding: 2px 10px 2px 2px; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.event-comments:focus-visible { border-radius: 18px; outline: 3px solid rgba(36,87,255,.28); outline-offset: 3px; }
.event-comment-thread { padding: 20px; border: 1px solid #e3e4f0; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.event-comment-head { display: flex; align-items: center; gap: 10px; }
.event-comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.event-comment-author { display: grid; gap: 3px; }
.event-comment-author time { color: #8991aa; font-size: 11px; }
.event-comment-body { margin: 14px 0; overflow-wrap: anywhere; color: var(--navy-soft); line-height: 1.55; white-space: pre-wrap; }
.comment-reactions { display: flex; flex-wrap: wrap; gap: 7px; }
.comment-reaction,
.comment-reply-toggle,
.comment-thread-toggle { min-height: 36px; padding: 0 10px; border: 1px solid #e0e3ef; border-radius: 11px; color: #5c6888; background: #fff; font-weight: 600; }
.comment-reaction.is-active { color: var(--blue); border-color: #b9c5ff; background: var(--blue-soft); }
.comment-thread-toggle { margin-top: 14px; color: var(--blue); }
.event-comment-replies { display: grid; gap: 12px; margin: 14px 0 0 28px; padding-left: 16px; border-left: 2px solid #e5e8f7; }
.event-comment.is-reply { padding-top: 12px; }
.comment-reply-form { display: flex; max-width: none; gap: 9px; margin-top: 12px; }
.comment-reply-form textarea { min-width: 0; }
.comment-reply-form .secondary-button { min-height: 44px; }

.event-invite-share { width: 100%; min-height: 46px; margin-top: 18px; border-radius: 13px; }
.event-invite-list-label { margin: 24px 0 10px; color: var(--navy); font-size: 14px; font-weight: 700; }
.event-invite-friend-list { display: grid; max-height: 330px; gap: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.event-invite-friend-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #e2e4f0; border-radius: 17px; background: #fbfaff; }
.event-invite-friend-avatar { width: 48px; height: 48px; border-radius: 50%; background: #ececff; object-fit: cover; }
.event-invite-friend-name { min-width: 0; overflow-wrap: anywhere; color: var(--navy); }
.event-invite-send { width: auto; min-width: 108px; min-height: 42px; margin: 0; padding: 0 14px; border-radius: 12px; }

input[type="file"] { padding: 7px; border-radius: 14px; color: var(--navy-soft); background: #f7f8ff; }
input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--font-ui);
  line-height: normal;
  letter-spacing: normal;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--blue-deep); }

.event-location-picker { margin-top: 10px; padding: 12px; border: 1px solid #e1e4f1; border-radius: 18px; background: #f8f8ff; }
.event-location-picker-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; color: #7a839f; font-size: 12px; }
.event-location-picker-actions .secondary-button { min-height: 42px; flex: 0 0 auto; padding: 0 16px; border-radius: 13px; }
.event-location-map { display: grid; width: 100%; height: 250px; place-items: center; overflow: hidden; border: 1px solid #dfe3f1; border-radius: 15px; background: #eef0f8; }
.event-location-map-status { margin: 0; padding: 20px; color: #77809b; text-align: center; }
.event-location-map-status.is-error,
.event-location-status.is-error { color: #b53c4d; }
.event-location-status { margin: 10px 2px 0; }

.event-photo-retention { margin: 16px 0 0; padding: 13px 16px; border-radius: 14px; color: #6e608f; background: #f2edff; line-height: 1.45; }
.event-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.event-photo-card { overflow: hidden; border: 1px solid #e1e3ef; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.event-photo-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.event-photo-meta { padding: 13px 15px 0; overflow-wrap: anywhere; }
.event-photo-actions { display: flex; gap: 8px; padding: 12px 15px 16px; }
.event-photo-actions .secondary-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; text-decoration: none; }
.event-photo-actions .danger { color: #b53c4d; }

/* Private event tickets */
.event-tickets-heading { align-items: flex-end; }
.event-tickets-heading > div { min-width: 0; }
.event-tickets-section .eyebrow { color: var(--blue); }
.event-tickets-intro { max-width: 650px; margin: 8px 0 0; color: var(--navy-soft); line-height: 1.5; }
.event-ticket-form .field-note { margin: 9px 0 0; }
.event-tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.event-ticket-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid color-mix(in srgb, var(--event-accent) 24%, var(--line)); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.event-ticket-preview { display: grid; min-height: 154px; place-items: center; overflow: hidden; color: var(--navy); background: color-mix(in srgb, var(--event-accent) 8%, #fff); text-decoration: none; }
.event-ticket-preview:focus-visible { outline: 3px solid color-mix(in srgb, var(--event-accent) 34%, transparent); outline-offset: -4px; }
.event-ticket-preview img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .18s ease; }
.event-ticket-preview:hover img { transform: scale(1.025); }
.event-ticket-preview.is-pdf { align-content: center; gap: 9px; padding: 24px; }
.event-ticket-preview.is-pdf small { color: var(--navy-soft); font-size: 12px; font-weight: 600; }
.event-ticket-pdf-icon { display: inline-grid; width: 66px; height: 78px; place-items: center; border: 2px solid color-mix(in srgb, var(--event-accent) 55%, #fff); border-radius: 13px; color: var(--blue); background: #fff; font-size: 16px; font-weight: 800; box-shadow: var(--shadow-sm); }
.event-ticket-copy { display: grid; min-width: 0; gap: 5px; padding: 16px 17px 0; }
.event-ticket-copy span { overflow-wrap: anywhere; }
.event-ticket-copy strong { display: block; min-width: 0; overflow: hidden; color: var(--navy); font-size: 15px; overflow-wrap: normal; text-overflow: ellipsis; white-space: nowrap; }
.event-ticket-copy span { color: var(--navy-soft); font-size: 12px; line-height: 1.45; }
.event-ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 14px 17px 18px; }
.event-ticket-actions .secondary-button { display: inline-flex; width: auto; min-height: 44px; align-items: center; justify-content: center; margin: 0; padding: 0 13px; text-decoration: none; }
.event-ticket-actions .danger { color: var(--danger); border-color: #efc5cd; background: var(--danger-soft); }

/* Event page hierarchy and compact secondary tools */
.event-overview { display: grid; gap: 22px; }
.event-owner-actions { display: flex; align-items: center; gap: 10px; }
.event-owner-actions .event-share { width: auto; }
.event-participant-actions { display: flex; margin-top: 16px; }
.event-calendar-button { width: auto; min-height: 46px; margin: 0; }
.event-calendar-options { display: grid; gap: 10px; margin-top: 22px; }
.event-calendar-option { display: inline-flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; margin: 0; text-align: center; text-decoration: none; }
.event-calendar-dialog .field-note { margin-top: 16px; }
.event-overflow-wrap { position: relative; z-index: 4; flex: 0 0 auto; }
.event-hero-main:has(.event-rsvp:not([hidden])) #event-report-wrap { margin-top:14px; }
#event-report-wrap { width:max-content; }
#event-report-menu { right:auto;left:0; }
.event-overflow-wrap:has(.event-overflow-menu:not([hidden])) { z-index: 30; }
.event-overflow-trigger {
  display: inline-grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  place-items: center;
  padding: 0 0 5px;
  border: 0;
  border-radius: 13px;
  color: #848b9d;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1;
  cursor: pointer;
}
.event-overflow-trigger:hover,
.event-overflow-trigger:focus-visible,
.event-overflow-trigger[aria-expanded="true"] { color: #60687b; background: transparent; }
.event-overflow-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--event-accent) 28%, transparent); outline-offset: 2px; }
.event-overflow-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 210px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #dde0e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 31, 64, .2);
}
.event-overflow-menu[hidden] { display: none; }
.event-overflow-menu a,
.event-overflow-menu button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.event-overflow-menu a:hover,
.event-overflow-menu button:hover,
.event-overflow-menu a:focus-visible,
.event-overflow-menu button:focus-visible { outline: 0; background: #f2f3f7; }
.event-overflow-menu .danger { color: var(--danger); }
.event-overflow-menu .danger:hover,
.event-overflow-menu .danger:focus-visible { color: var(--danger); background: var(--danger-soft); }

.event-hub-section,
.event-community-hub { margin-top: 48px; padding: 30px; border: 1px solid color-mix(in srgb, var(--event-accent) 18%, var(--line)); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.event-hub-heading { margin-bottom: 22px; }
.event-hub-heading p:last-child { max-width: 660px; margin: 8px 0 0; color: var(--navy-soft); line-height: 1.5; }
.event-hub-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.event-hub-tab,
.event-community-tab {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #e0e2eb;
  border-radius: 15px;
  color: var(--navy-soft);
  background: #f7f8fb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.event-hub-tab strong,
.event-community-tab strong { display: inline-grid; min-width: 26px; height: 26px; place-items: center; padding: 0 7px; border-radius: 999px; color: #747c91; background: #e9ebf1; font-size: 12px; }
.event-hub-tab:hover,
.event-community-tab:hover { border-color: color-mix(in srgb, var(--event-accent) 34%, #dfe2eb); background: color-mix(in srgb, var(--event-accent) 5%, #fff); }
.event-hub-tab.is-active,
.event-community-tab.is-active { color: var(--navy); border-color: color-mix(in srgb, var(--event-accent) 50%, #d6d9e4); background: color-mix(in srgb, var(--event-accent) 11%, #fff); box-shadow: inset 0 -3px 0 var(--event-accent); }
.event-hub-tab.is-active strong,
.event-community-tab.is-active strong { color: #fff; background: var(--event-accent); }
.event-hub-tab:focus-visible,
.event-community-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--event-accent) 30%, transparent); outline-offset: 2px; }
.event-hub-panels { margin-top: 18px; }
.event-hub-panel,
.event-community-panel { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.event-hub-panel { margin-top: 0; }
.event-hub-panel[hidden],
.event-community-panel[hidden] { display: none; }
.event-hub-panel.is-panel-entering,
.event-community-panel.is-panel-entering { animation: event-panel-enter 160ms ease-out both; }
@keyframes event-panel-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.event-panel-heading { margin-bottom: 18px; }
.event-panel-heading h3,
.event-hub-panel .section-heading h3 { margin: 3px 0 0; color: var(--navy); font-family: var(--font-display); font-size: 24px; line-height: 1.15; }
.event-inline-add { width: auto; min-height: 44px; margin: 0; padding: 0 16px; }
.event-community-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.event-community-tab { white-space: nowrap; }
.event-community-panel .event-comments { margin-top: 0; }
.event-photo-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.event-photo-panel-heading .event-photo-retention { flex: 1; margin: 0; }

.event-comment-thread { position: relative; overflow: visible; }
.event-comment { position: relative; }
.event-comment-head { position: relative; }
.comment-overflow-wrap { z-index: 6; margin-left: auto; }
.comment-overflow-trigger { width: 44px; min-width: 44px; height: 44px; padding-bottom: 5px; border-color: transparent; background: transparent; font-size: 16px; letter-spacing: .5px; }
.comment-overflow-menu { top: calc(100% + 4px); min-width: 168px; }
.comment-edit-form { display: grid; gap: 10px; margin: 12px 0 14px; }
.comment-edit-form textarea { width: 100%; min-height: 96px; resize: vertical; }
.comment-edit-actions { display: flex; justify-content: flex-end; gap: 9px; }
.comment-edit-actions .primary-button,
.comment-edit-actions .secondary-button { width: auto; min-height: 44px; margin: 0; padding: 0 16px; }
.event-comment.is-editing .comment-reactions { display: none; }

@media (max-width: 900px) {
  .event-hub-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-photo-panel-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .event-cover-source-options { grid-template-columns:1fr; }
  .event-hub-section,
  .event-community-hub { margin-top: 32px; padding: 18px; border-radius: 22px; }
  .event-hub-heading { margin-bottom: 16px; }
  .event-hub-tab,
  .event-community-tab { min-height: 50px; padding: 0 12px; }
  .event-community-tab { gap: 6px; padding: 0 8px; font-size: 12px; }
  .event-tickets-heading { width: 100%; align-items: stretch; flex-direction: column; }
  .event-tickets-heading > div { width: 100%; }
  .event-expenses-heading { align-items: flex-start; }
  .event-inline-add,
  .event-expenses-heading .primary-button { width: 100%; }
  .event-owner-actions { display: flex; flex-direction: row; align-items: center; }
  .event-participant-actions { flex-direction: column; }
  .event-participant-actions > * { width: 100% !important; }
  .event-owner-actions > .event-share { width: min(100%, 240px); }
  .event-owner-actions > .event-overflow-wrap { width: auto; }
  .event-comments { padding-right: 5px; }
}

@media (max-width: 380px) {
  .event-hub-section,
  .event-community-hub { padding: 14px; }
  .event-hub-tabs { gap: 7px; }
  .event-hub-tab { padding: 0 10px; font-size: 13px; }
  .event-community-tab { gap: 5px; padding: 0 6px; font-size: 11px; }
  .event-community-tab strong { min-width: 24px; height: 24px; padding: 0 6px; }
  .event-overflow-menu { max-width: calc(100vw - 34px); }
  .comment-edit-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-edit-actions .primary-button,
  .comment-edit-actions .secondary-button { width: 100%; }
}

@media (max-width: 1000px) {
  .event-tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .event-tickets { grid-template-columns: minmax(0, 1fr); }
}

/* Wishlist controls: visibility, priority, event protection and manual ordering. */
.wishlist-context,
.wish-item-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wishlist-context { margin-top: 12px; }

.wishlist-visibility,
.wishlist-event-chip,
.gift-priority {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--font-strong);
  line-height: 1.2;
}

.wishlist-visibility { color: var(--purple-deep); background: var(--purple-soft); }
.wishlist-visibility.visibility-private { color: #59637d; background: #eef0f5; }
.wishlist-event-chip { color: var(--blue-deep); background: var(--blue-soft); }
.wishlist-event-chip.is-surprise { color: var(--purple-deep); background: #f0e9ff; }
.wishlist-event-chip.is-cancelled { text-decoration: line-through; opacity: 0.65; }
.wishlist-event-note { color: var(--navy-soft); font-size: 13px; }

.gift-priority.priority-dream { color: #9b2f55; background: #ffe8f0; }
.gift-priority.priority-happy { color: var(--purple-deep); background: var(--purple-soft); }
.gift-priority.priority-idea { color: #5d6782; background: #eef0f5; }

.wish-item { transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease; }
.wish-item.is-dragging { opacity: 0.5; }
.wish-item.is-drag-target { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(116, 68, 216, 0.14); }
.wish-item-drag-hint { color: #8a91a7; cursor: grab; font-size: 13px; font-weight: var(--font-ui); line-height: 1.35; }
.wish-item h3 { margin-top: 7px; }
.wish-item-usage { width: 100%; margin-top: 11px; padding: 9px 10px; border-radius: 12px; color: #65708e; background: #f6f5fb; font-size: 12px; line-height: 1.4; }
.wish-item-usage p { margin: 0; }
.wish-item-usage p + p { margin-top: 4px; }
.wish-item-actions { flex-wrap: wrap; align-items: center; }
.wish-item-topline { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; }
.wish-item-overflow-trigger {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  padding: 0 0 5px;
  border: 0;
  border-radius: 12px;
  color: #858c9e;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1;
  cursor: pointer;
}
.wish-item-overflow-trigger:hover,
.wish-item-overflow-trigger[aria-expanded="true"] { color: #60687b; background: transparent; }
.wish-item-overflow-trigger:focus-visible { outline: 3px solid rgba(93, 109, 227, .24); outline-offset: 1px; }
.wish-item-overflow-menu {
  position: fixed;
  z-index: 2147482000;
  display: grid;
  width: max-content;
  min-width: 176px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #dde0e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 31, 64, .2);
}
.wish-item-overflow-menu[hidden] { display: none; }
.wish-item-overflow-menu button { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 0 12px; border: 0; border-radius: 9px; color: var(--navy); background: transparent; font: inherit; font-size: 14px; font-weight: 650; text-align: left; cursor: pointer; }
.wish-item-overflow-menu button:hover:not(:disabled),
.wish-item-overflow-menu button:focus-visible { outline: 0; background: #f2f3f7; }
.wish-item-overflow-menu .danger { color: var(--danger); }
.wish-item-overflow-menu .danger:hover:not(:disabled),
.wish-item-overflow-menu .danger:focus-visible { background: var(--danger-soft); }
.wish-item-overflow-menu button:disabled { opacity: .4; cursor: not-allowed; }
.item-order-action { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid #d9dcef; border-radius: 9px; color: var(--purple); background: #fff; font-size: 16px; }
.item-order-action:hover:not(:disabled) { border-color: var(--purple); background: var(--purple-soft); }
.item-order-action:disabled,
.item-action:disabled { opacity: 0.4; cursor: not-allowed; }
.item-submit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
#item-lock-note { padding: 10px 12px; border-radius: 12px; color: var(--purple-deep); background: var(--purple-soft); }
#transfer-dialog .primary-button { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); }
.wishlist-surprise-control { display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; padding: 14px; border: 1px solid #ddd4f2; border-radius: 15px; background: #faf8ff; cursor: pointer; }
.wishlist-surprise-control input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--purple); }
.wishlist-surprise-control span,
.wishlist-surprise-control strong,
.wishlist-surprise-control small { display: block; }
.wishlist-surprise-control strong { color: var(--navy); font-size: 14px; }
.wishlist-surprise-control small { margin-top: 4px; color: var(--navy-soft); font-size: 12px; font-weight: var(--font-regular); line-height: 1.45; }
.wishlist-surprise-control:has(input:disabled) { cursor: not-allowed; opacity: 0.62; }

@media (max-width: 680px) {
  .event-editor-dialog form,
  .event-form-section,
  .event-cover-fields { min-width: 0; max-width: 100%; }
  .image-source-options { grid-template-columns: minmax(0, 1fr); }
  .wishlist-layout { grid-template-columns: minmax(0, 1fr); }
  .wishlist-sidebar,
  .wishlist-content,
  .wishlist-details-header,
  .wishlist-tools,
  .items-grid,
  .wish-item,
  .wish-item-body { min-width: 0; max-width: 100%; }
  .item-submit-actions { width: 100%; flex-direction: column-reverse; }
  .item-submit-actions .primary-button,
  .item-submit-actions .secondary-button { width: 100%; }
  .wish-item-drag-hint { display: none; }
  .wishlist-context { align-items: flex-start; flex-direction: column; }
}

/* Account-scoped first-run guidance and contextual help. */
.tutorial-layer { position: fixed; inset: 0; z-index: 2147483000; }
.tutorial-spotlight { position: fixed; border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 4px rgba(36,87,255,.45), 0 0 0 9999px rgba(13,20,52,.62), 0 16px 40px rgba(13,20,52,.25); pointer-events: none; transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease; }
.tutorial-card { position: fixed; z-index: 1; max-width: calc(100vw - 24px); padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; color: var(--navy); background: #fff; box-shadow: 0 24px 64px rgba(13,20,52,.28); }
.tutorial-card h2 { margin: 7px 0 0; font-size: 23px; line-height: 1.2; }
.tutorial-card > p { margin: 10px 0 0; color: var(--navy-soft); line-height: 1.5; }
.tutorial-counter { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tutorial-dots { display: flex; gap: 6px; margin-top: 18px; }
.tutorial-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d9deef; }
.tutorial-dots .is-current { width: 22px; border-radius: 999px; background: var(--blue); }
.tutorial-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.tutorial-actions button { width: auto; min-height: 44px; margin: 0; }
.tutorial-skip { margin-right: auto !important; padding: 0; border: 0; color: var(--navy-soft); background: transparent; font-weight: 600; }
.tutorial-skip:hover { color: var(--navy); }
.info-trigger { position: relative; display: inline-grid; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: -9px -9px -9px 0; padding: 0; place-items: center; vertical-align: middle; border: 0; border-radius: 50%; color: var(--blue); background: transparent; font-size: 0; cursor: help; }
.info-trigger::before { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #cdd4e8; border-radius: 50%; background: #fff; content: "i"; font-size: 13px; font-weight: 800; line-height: 1; }
.info-trigger:hover::before { border-color: var(--blue); background: var(--blue-soft); }
.info-trigger:focus-visible { outline: 3px solid rgba(36,87,255,.28); outline-offset: 2px; }
.info-tooltip { position: fixed; z-index: 2147483647; inset: auto; margin: 0; padding: 12px 14px; border: 1px solid #dfe3f0; border-radius: 13px; color: var(--navy); background: #fff; box-shadow: 0 14px 38px rgba(13,20,52,.2); font: 600 13px/1.45 "Nunito Sans", sans-serif; }
.tutorial-help-button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; place-items: center; border: 1px solid #dfe3f0; border-radius: 50%; color: var(--blue); background: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
.tutorial-help-button:hover { border-color: var(--blue); background: var(--blue-soft); }

@media (max-width: 760px) {
  .tutorial-card { max-height: calc(100dvh - 24px); overflow: auto; padding: 20px; border-radius: 22px; }
  .tutorial-card h2 { font-size: 20px; }
  .tutorial-actions { flex-wrap: wrap; }
  .tutorial-skip { order: 3; width: 100% !important; margin: 2px 0 0 !important; }
  .tutorial-actions .secondary-button,
  .tutorial-actions .primary-button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-spotlight { transition: none; }
}

/* Shared event expenses */
.event-expenses-heading { align-items: flex-end; }
.event-expenses-heading > div { min-width: 0; }
.event-expenses-intro { max-width: 620px; margin: 8px 0 0; color: var(--navy-soft); line-height: 1.5; }
.event-expenses-heading .primary-button { width: auto; min-height: 46px; flex: 0 0 auto; margin: 0; padding: 0 18px; border-radius: 13px; background: var(--purple); }
.event-expenses-heading .primary-button:hover { background: var(--purple-deep); }
.event-expenses { display: grid; gap: 18px; margin-top: 20px; }
.event-expense-card { min-width: 0; padding: 26px; border: 1px solid #e3def1; border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.98), #fbf9ff); box-shadow: var(--shadow-sm); }
.event-expense-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.event-expense-card-title { min-width: 0; }
.event-expense-split-label { display: block; margin-top: 6px; color: var(--navy-soft); font-size: 12px; font-weight: 600; }
.event-expense-card h3,
.event-expense-card h4 { margin: 0; overflow-wrap: anywhere; color: var(--navy); }
.event-expense-card h3 { margin-top: 5px; font-size: 23px; line-height: 1.25; }
.event-expense-card h4 { font-size: 15px; }
.event-expense-kicker { display: block; color: var(--purple); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.event-expense-total { flex: 0 0 auto; color: var(--navy); font-size: 25px; white-space: nowrap; }
.event-expense-total.is-optional { color: var(--navy-soft); font-size: 14px; }
.event-expense-note { margin: 14px 0 0; overflow-wrap: anywhere; color: var(--navy-soft); line-height: 1.55; white-space: pre-wrap; }
.event-expense-receipt-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.event-expense-receipt-heading span { color: #858da6; font-size: 12px; }
.event-expense-receipts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.event-expense-receipt { display: block; min-width: 0; overflow: hidden; border: 1px solid #ded8ed; border-radius: 15px; background: #f3effb; }
.event-expense-receipt:focus-visible { outline: 3px solid rgba(116,68,216,.3); outline-offset: 3px; }
.event-expense-receipt img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .18s ease; }
.event-expense-receipt:hover img { transform: scale(1.03); }
.event-expense-no-receipt { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 14px; color: #777f99; background: #f5f3fa; font-size: 13px; }
.event-expense-personal { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--purple-soft); }
.event-expense-personal-amount { display: grid; gap: 3px; }
.event-expense-personal-amount span { color: #6f6389; font-size: 12px; }
.event-expense-personal-amount strong { color: var(--purple-deep); font-size: 25px; }
.event-expense-status { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 11px; border-radius: 999px; color: #745c16; background: #fff1bd; font-size: 12px; font-weight: 700; text-align: center; }
.event-expense-status.status-reported { color: #6f4a10; background: #ffe5aa; }
.event-expense-status.status-confirmed { color: #1c704b; background: #dff7e9; }
.event-expense-payment { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 18px; border: 1px solid #e1dced; border-radius: 18px; background: #fff; }
.event-expense-payment-copy { display: grid; min-width: 0; gap: 4px; }
.event-expense-payment-copy span,
.event-expense-payment-copy small { color: #767f99; font-size: 12px; }
.event-expense-payment-copy strong { overflow-wrap: anywhere; color: var(--navy); font-size: 18px; }
.event-expense-payment .secondary-button { width: auto; min-height: 42px; flex: 0 0 auto; margin: 0; padding: 0 15px; border-color: #d5c8ee; color: var(--purple-deep); }
.event-expense-participants { display: grid; gap: 10px; margin-top: 22px; padding: 18px; border: 1px solid #e3deee; border-radius: 20px; background: #fff; }
.event-expense-private-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.event-expense-private-note { color: #81778f; font-size: 11px; }
.event-expense-participant { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border-radius: 15px; background: #f8f7fc; }
.event-expense-participant > img { width: 42px; height: 42px; border-radius: 50%; background: #ece8f4; object-fit: cover; }
.event-expense-participant-copy { display: grid; min-width: 0; gap: 3px; }
.event-expense-participant-copy strong,
.event-expense-participant-copy span { overflow-wrap: anywhere; }
.event-expense-participant-copy span { color: #747c95; font-size: 12px; }
.event-expense-participant-actions { display: flex; gap: 7px; }
.event-expense-participant-actions .primary-button,
.event-expense-participant-actions .secondary-button { width: auto; min-height: 38px; margin: 0; padding: 0 12px; border-radius: 11px; }
.event-expense-participant-actions .primary-button { background: var(--purple); }
.event-expense-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.event-expense-card-actions .primary-button,
.event-expense-card-actions .secondary-button { width: auto; min-height: 44px; margin: 0; padding: 0 16px; border-radius: 13px; }
.event-expense-card-actions .primary-button { background: var(--purple); }
.event-expense-self-pay { display: grid; min-width: 190px; gap: 6px; margin: 0; }
.event-expense-self-pay span { color: var(--navy-soft); font-size: 12px; font-weight: 600; }
.event-expense-self-pay input { margin: 0; text-align: right; }
.event-expense-card-actions .danger { color: var(--danger); border-color: #efc5cd; background: var(--danger-soft); }
.event-expense-waiting,
.event-expense-confirmed { margin: 0; color: #786227; line-height: 1.45; }
.event-expense-confirmed { color: #1f704c; font-weight: 600; }
.event-expense-dialog { width: min(94vw, 760px); }
.event-expense-member-fields { margin: 20px 0 0; padding: 16px; border: 1px solid #e1dced; border-radius: 18px; }
.event-expense-member-fields legend { padding: 0 6px; color: var(--navy); font-size: 14px; font-weight: 700; }
.event-expense-member-fields > .field-note { margin-top: 0; }
.event-expense-split-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.event-expense-split-mode { display: flex; min-width: 0; align-items: flex-start; gap: 10px; margin: 0; padding: 13px; border: 1px solid #e3e0ed; border-radius: 14px; background: #fbfaff; cursor: pointer; }
.event-expense-split-mode:has(input:checked) { border-color: #bda8ea; background: var(--purple-soft); box-shadow: 0 0 0 1px #bda8ea; }
.event-expense-split-mode input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--purple); }
.event-expense-split-mode span { display: grid; min-width: 0; gap: 4px; }
.event-expense-split-mode strong { overflow-wrap: anywhere; color: var(--navy); font-size: 14px; line-height: 1.3; }
.event-expense-split-mode small { overflow-wrap: anywhere; color: #767d95; font-size: 11px; line-height: 1.4; }
.event-expense-share-preview { margin-top: 13px; padding: 13px 15px; border-radius: 14px; color: #604b8c; background: var(--purple-soft); font-size: 13px; line-height: 1.45; }
.event-expense-dialog input[type="file"]::file-selector-button { background: var(--purple); }

@media (max-width: 760px) {
  .event-expense-split-modes { grid-template-columns: 1fr; }
  .event-expense-self-pay { width: 100%; }
}
.action-party { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); }
.action-party:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--purple-deep), #462194); }

/* Event polls */
.event-polls-heading { align-items: flex-end; }
.event-poll-owner-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.event-poll-owner-controls .primary-button,
.event-poll-owner-controls .secondary-button { width: auto; min-height: 46px; margin: 0; padding: 0 18px; border-radius: 13px; }
.event-polls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.event-poll-card { min-width: 0; padding: 24px; border: 1px solid #e2e4f0; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); }
.event-poll-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.event-poll-card-copy { min-width: 0; }
.event-poll-card h3,
.event-poll-result-card h3 { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 21px; line-height: 1.25; }
.event-poll-meta { margin: 8px 0 0; overflow-wrap: anywhere; color: var(--navy-soft); font-size: 12px; line-height: 1.45; }
.event-poll-delete { min-height: 36px; flex: 0 0 auto; padding: 0 11px; border: 1px solid #f0c8cd; border-radius: 11px; color: #b2404c; background: #fff7f8; font-weight: 600; }
.event-poll-delete:hover { color: #fff; border-color: var(--coral-deep); background: var(--coral-deep); }
.event-poll-choices { display: grid; gap: 9px; margin-top: 20px; }
.event-poll-choice { display: flex; min-height: 48px; align-items: center; gap: 11px; margin: 0; padding: 10px 13px; border: 1px solid #e2e5f2; border-radius: 14px; color: var(--navy); background: #fbfbff; font-weight: 600; cursor: pointer; }
.event-poll-choice:has(input:checked) { border-color: #aebcff; background: var(--blue-soft); }
.event-poll-choice input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 auto; accent-color: var(--blue); }
.event-poll-choice span { min-width: 0; overflow-wrap: anywhere; }
.event-poll-custom { display: grid; gap: 8px; }
.event-poll-custom-text { margin: 0; }
.event-poll-vote { width: auto; min-height: 44px; margin-top: 16px; padding: 0 18px; border-radius: 13px; }
.event-poll-option-fields { margin: 20px 0 0; padding: 16px; border: 1px solid #dfe3f1; border-radius: 18px; }
.event-poll-option-fields legend { padding: 0 6px; color: var(--navy); font-size: 14px; font-weight: 700; }
.event-poll-option-inputs { display: grid; gap: 10px; }
.event-poll-option-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.event-poll-option-row input { margin: 0; }
.event-poll-option-remove { min-height: 44px; border: 1px solid #e0e3ef; border-radius: 12px; color: #8b5260; background: #fff7f8; font-size: 22px; }
.event-poll-add-option { width: auto; min-height: 42px; margin: 12px 0 0; padding: 0 15px; border-radius: 12px; }
.event-poll-check { display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.event-poll-check input { width: 21px; height: 21px; min-height: 21px; accent-color: var(--blue); }
.event-poll-results-dialog { width: min(94vw, 760px); }
.event-poll-results-list { display: grid; gap: 16px; margin-top: 22px; }
.event-poll-result-card { padding: 20px; border: 1px solid #e2e4f0; border-radius: 20px; background: #fbfbff; }
.event-poll-result-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e5f0; }
.event-poll-result-top { display: flex; justify-content: space-between; gap: 20px; }
.event-poll-result-top strong { overflow-wrap: anywhere; }
.event-poll-result-top span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.event-poll-result-voters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.event-poll-voter { display: inline-flex; min-width: 0; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 999px; color: var(--navy-soft); background: #fff; font-size: 12px; }
.event-poll-voter img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

html[data-theme="dark"] .event-poll-card,
html[data-theme="dark"] .event-poll-result-card,
html.theme-dark .event-poll-card,
html.theme-dark .event-poll-result-card { color: #e8ebfa; border-color: #343b60; background: #171d38; box-shadow: 0 18px 42px rgba(0,0,0,.28); }
html[data-theme="dark"] .event-poll-card h3,
html[data-theme="dark"] .event-poll-result-card h3,
html[data-theme="dark"] .event-poll-result-top strong,
html.theme-dark .event-poll-card h3,
html.theme-dark .event-poll-result-card h3,
html.theme-dark .event-poll-result-top strong { color: #f3f5ff; }
html[data-theme="dark"] .event-poll-meta,
html.theme-dark .event-poll-meta { color: #aeb7d7; }
html[data-theme="dark"] .event-poll-choice,
html.theme-dark .event-poll-choice { color: #e8ebfa; border-color: #3b4368; background: #202746; }
html[data-theme="dark"] .event-poll-choice:hover,
html.theme-dark .event-poll-choice:hover { border-color: #65558f; background: #282e50; }
html[data-theme="dark"] .event-poll-choice:has(input:checked),
html.theme-dark .event-poll-choice:has(input:checked) { border-color: #9575d7; background: #332a55; }
html[data-theme="dark"] .event-poll-custom-text,
html.theme-dark .event-poll-custom-text { color: #f3f5ff; border-color: #424b74; background: #141a33; }
html[data-theme="dark"] .event-poll-result-row,
html.theme-dark .event-poll-result-row { border-color: #343b60; }
html[data-theme="dark"] .event-poll-result-top span,
html.theme-dark .event-poll-result-top span { color: #d8c7ff; background: #332a55; }
html[data-theme="dark"] .event-poll-voter,
html.theme-dark .event-poll-voter { color: #c5cce4; background: #202746; }
html[data-theme="dark"] #event-poll-results,
html[data-theme="dark"] .event-poll-add-option,
html.theme-dark #event-poll-results,
html.theme-dark .event-poll-add-option { color: #d8c7ff; border-color: #65558f; background: #202746; }
html[data-theme="dark"] #event-poll-results:hover,
html[data-theme="dark"] .event-poll-add-option:hover,
html.theme-dark #event-poll-results:hover,
html.theme-dark .event-poll-add-option:hover { color: #fff; border-color: #9575d7; background: #332a55; }

/* Owner-only event analytics */
.event-analytics-body { color: var(--navy); }
.event-analytics-hero,
.event-analytics-section { margin-top: 28px; padding: 32px; border: 1px solid rgba(225,226,240,.9); border-radius: 28px; background: rgba(255,255,255,.93); box-shadow: var(--shadow-sm); }
.event-analytics-hero { overflow: hidden; background: radial-gradient(circle at 90% 10%, rgba(180,131,245,.2), transparent 18rem), linear-gradient(135deg, #fff, #f8f5ff); }
.event-analytics-back { display: inline-block; margin-bottom: 24px; color: var(--blue); font-weight: 600; text-decoration: none; }
.event-analytics-hero h1 { margin: 6px 0 12px; font-size: clamp(38px, 6vw, 62px); letter-spacing: -.04em; }
.event-analytics-event-title { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 24px; font-weight: 700; }
.event-analytics-event-date { margin: 7px 0 0; color: var(--navy-soft); }
.event-analytics-funnel { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr) 24px) minmax(150px, 1fr); align-items: stretch; gap: 7px; margin-top: 20px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-gutter: stable; }
.event-analytics-stage { min-width: 150px; padding: 17px; border: 1px solid #e3e5f1; border-radius: 20px; background: #fbfbff; }
.event-analytics-stage-top { display: flex; align-items: baseline; gap: 7px; }
.event-analytics-stage-top strong { color: var(--blue); font-size: 30px; }
.event-analytics-stage-top span { color: var(--navy); font-weight: 700; }
.event-analytics-arrow { display: grid; place-items: center; color: #9b70eb; font-size: 22px; }
.event-analytics-guest-list { display: grid; max-height: 134px; gap: 7px; margin-top: 13px; overflow-y: auto; padding-right: 4px; }
.event-analytics-guest { display: flex; min-width: 0; align-items: center; gap: 7px; color: var(--navy-soft); font-size: 12px; }
.event-analytics-guest img { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.event-analytics-guest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-analytics-empty { color: #959db3; font-size: 12px; }
.event-analytics-reminder { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: #fff2f1; }
.event-analytics-reminder strong { color: var(--coral-deep); font-size: 24px; }
.event-analytics-reminder .primary-button { width: auto; min-height: 44px; margin: 0; padding: 0 18px; border-radius: 13px; background: var(--coral); }
.event-analytics-gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.event-analytics-metric { display: grid; gap: 4px; padding: 20px; border-radius: 19px; background: #f7f5ff; }
.event-analytics-metric strong { color: var(--blue); font-size: 34px; }
.event-analytics-metric span { color: var(--navy-soft); }
.event-analytics-progress { height: 14px; margin-top: 22px; overflow: hidden; border-radius: 999px; background: #e9eaf3; }
.event-analytics-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #8e49ee); transition: width .25s ease; }
.event-analytics-progress-label { margin: 9px 0 0; color: var(--navy); font-weight: 700; }
.event-analytics-popular { display: grid; gap: 5px; margin-top: 20px; padding: 18px 20px; border: 1px solid #e2e4ef; border-radius: 18px; }
.event-analytics-popular span,
.event-analytics-popular small,
.event-analytics-privacy { color: var(--navy-soft); }
.event-analytics-popular strong { overflow-wrap: anywhere; font-size: 20px; }
.event-analytics-privacy { margin: 16px 0 0; font-size: 13px; }
.event-analytics-activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.event-analytics-activity-grid article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 12px; padding: 20px; border-radius: 20px; background: #f8f7ff; }
.event-analytics-activity-grid article > span { grid-row: 1 / 3; font-size: 30px; }
.event-analytics-activity-grid strong { font-size: 28px; }
.event-analytics-activity-grid small { color: var(--navy-soft); }

@media (max-width: 1180px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-step > p { min-height: 0; }
  .how-summary-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-shell { display: flex; flex-direction: column; padding: 0; }
  .hero { order: 2; width: calc(100% - 24px); min-height: auto; margin: 0 12px 12px; padding: 25px; overflow: hidden; }
  .hero-stage { min-height: 320px; }
  .hero-stage .hero-copy { display: block; margin-top: 70px; }
  .hero-stage .hero-copy h1 { max-width: 75%; font-size: 38px; }
  .hero-stage .lead { max-width: 78%; font-size: 14px; }
  .hero-stage .hero-art { top: -54px; right: -38px; width: 240px; opacity: .72; }
  .how-it-works { padding-top: 34px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-summary { padding: 28px 20px; border-radius: 24px; }
  .how-summary-head > p:last-child { font-size: 16px; }
  .how-summary-benefits { grid-template-columns: 1fr; }
  .how-summary-proof { align-items: flex-start; flex-direction: column; }
  .auth-panel { position: static; order: 1; width: calc(100% - 24px); height: auto; min-height: auto; margin: 12px; padding: 34px 24px 30px; }
  .has-invite-context .hero { order: 1; margin-top: 12px; }
  .has-invite-context .auth-panel { order: 2; margin-top: 0; }
  .auth-invite-preview { gap: 18px; margin: 48px auto 0; }
  .auth-invite-copy h1 { font-size: 38px; }
  .auth-invite-copy > p:last-child { font-size: 15px; }
  .auth-invite-cover { height: 190px; }
  .auth-invite-card-body { padding: 20px; }
  .auth-invite-card h2 { font-size: 26px; }
  .auth-panel .mobile-brand { display: none; }
  .event-card-cover { height: 170px; }
  .event-accent-grid { grid-template-columns: repeat(5, 30px); }
  .event-photos { grid-template-columns: 1fr; }
  .event-tickets-heading { align-items: flex-start; }
  .event-tickets { grid-template-columns: 1fr; }
  .event-ticket-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-ticket-actions .secondary-button { width: 100%; }
  .comment-reply-form { flex-direction: column; }
  .event-comment-replies { margin-left: 8px; padding-left: 10px; }
  .app-live-notification { top: 14px; right: 16px; }
  .event-location-picker-actions { align-items: stretch; flex-direction: column; }
  .event-location-picker-actions .secondary-button { width: 100%; }
  .event-location-map { height: 220px; }
  .event-invite-friend-card { grid-template-columns: 44px minmax(0, 1fr); }
  .event-invite-friend-avatar { width: 44px; height: 44px; }
  .event-invite-send { grid-column: 1 / -1; width: 100%; }
  .event-hero-cover { width: 100%; opacity: .34; }
  .event-hero-detail.has-cover::after { background: linear-gradient(180deg, color-mix(in srgb, var(--event-accent) 10%, rgba(255,255,255,.98)) 0 54%, color-mix(in srgb, var(--event-accent) 5%, rgba(255,255,255,.52)) 100%); }
  .event-polls-heading { align-items: stretch; }
  .event-poll-owner-controls { display: grid; grid-template-columns: 1fr; }
  .event-poll-owner-controls .primary-button,
  .event-poll-owner-controls .secondary-button { width: 100%; }
  .event-polls { grid-template-columns: 1fr; }
  .event-poll-card { padding: 20px; border-radius: 21px; }
  .event-expenses-heading { align-items: stretch; flex-direction: column; }
  .event-expenses-heading .primary-button { width: 100%; margin-top: 16px; }
  .event-expense-card { padding: 20px; border-radius: 22px; }
  .event-expense-card-heading,
  .event-expense-private-heading,
  .event-expense-payment { align-items: stretch; flex-direction: column; }
  .event-expense-total { font-size: 22px; }
  .event-expense-receipts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-expense-personal { align-items: flex-start; flex-direction: column; }
  .event-expense-payment .secondary-button { width: 100%; }
  .event-expense-participant { grid-template-columns: 42px minmax(0, 1fr); }
  .event-expense-participant-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .event-expense-participant-actions .primary-button,
  .event-expense-participant-actions .secondary-button { width: 100%; }
  .event-expense-card-actions { align-items: stretch; flex-direction: column; }
  .event-expense-card-actions .primary-button,
  .event-expense-card-actions .secondary-button { width: 100%; }
  .event-analytics-hero,
  .event-analytics-section { padding: 24px 18px; border-radius: 24px; }
  .event-analytics-funnel { grid-template-columns: repeat(4, 150px 20px) 150px; }
  .event-analytics-reminder { align-items: stretch; flex-direction: column; }
  .event-analytics-reminder .primary-button { width: 100%; }
  .event-analytics-gift-grid,
  .event-analytics-activity-grid { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .profile-secondary-details:not([open]) > .profile-details-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    padding: 4px 0;
  }

  .profile-secondary-details:not([open]) .profile-details-summary .eyebrow {
    display: none;
  }

  .profile-secondary-details:not([open]) .profile-details-summary::after {
    min-height: 28px;
    grid-column: 1 / -1;
    justify-content: center;
    margin-left: 0;
  }

  .profile-secondary-details:not([open]) .event-counter {
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  body::after {
    animation: none !important;
    transform: none;
  }
}

/* Event / To / Party semantic color and typography polish. */
:root {
  --purple: #7444d8;
  --purple-deep: #5b2fbd;
  --purple-soft: #f0eaff;
  --coral-action: #cc3347;
  --coral-action-deep: #aa2639;
  --danger: #b4233a;
  --danger-deep: #92172c;
  --danger-soft: #fff1f3;
}

/* A calmer, reusable type scale for product screens. */
.eyebrow {
  font-size: 12px;
  font-weight: var(--font-strong);
  letter-spacing: 0.09em;
}

.app-nav-link {
  font-size: 14px;
  font-weight: 600;
}

.account-profile-copy > small,
.event-owner-public-id,
.user-public-id {
  font-size: 12px;
}

label {
  font-size: 14px;
  font-weight: 600;
}

.field-note,
.profile-summary-card p,
.event-poll-meta,
.event-analytics-privacy {
  font-size: 13px;
}

.legal {
  font-size: 12px;
}

.primary-button,
.secondary-button,
.event-invite-button,
.friend-add-button,
.friend-remove-button,
.friend-request-button,
.reservation-button,
.rsvp-button {
  font-size: 15px;
  font-weight: 600;
}

/* Four deliberate weight roles: regular copy, UI, strong labels and display. */
.text-button,
.back-link,
.product-link,
.item-action,
.event-open,
.event-product-link,
.event-fact a,
.event-analytics-back,
.header-link,
.section-link,
.auth-text-button,
.auth-back-link,
.notification-mark-all,
.app-mobile-nav-link,
.profile-summary-card a,
.guest-friend-action,
.event-tab,
.comment-thread-toggle {
  font-weight: var(--font-ui);
}

.wish-item-source,
.event-date-poster small,
.gift-reservation-status,
.event-wishlist-summary,
.product-preview p,
.account-profile-copy > small,
.event-owner-public-id,
.user-public-id,
.profile-public-id {
  font-weight: var(--font-ui);
}

.event-counter,
.quantity-badge,
.event-theme,
.event-role,
.event-status,
.guest-status,
.sidebar-label,
.event-fact span,
.birthday-date span,
.birthday-distance,
.birthday-person,
.notification-badge,
.achievement-status-count,
.achievement-rarity-heading span,
.achievement-rarity-heading h4,
.achievement-rarity {
  font-weight: var(--font-strong);
}

.event-date-poster span {
  font-weight: var(--font-display);
}

.dashboard-hero {
  min-height: 360px;
}

.dashboard-hero-copy {
  padding: clamp(40px, 4.2vw, 58px);
}

.dashboard-hero h1 {
  max-width: 650px;
  font-size: clamp(44px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.wishlist-top,
.friends-top,
.settings-top {
  margin-top: 38px;
}

.wishlist-top h1,
.friends-top h1,
.settings-top h1 {
  font-size: clamp(42px, 3.5vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.profile-hero-copy h1 {
  font-size: clamp(40px, 3.35vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.event-hero-detail h1 {
  font-size: clamp(44px, 3.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.event-analytics-hero h1 {
  font-size: clamp(42px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading h2,
.wishlist-details-header h2,
.friend-result-section h2 {
  font-size: clamp(28px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.event-card h3 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.wish-item h3,
.event-gift-body h3,
.friend-card-body h3 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.event-fact span,
.wish-item-source,
.quantity-badge,
.birthday-distance,
.birthday-date span {
  font-size: 12px;
}

.guest-copy h3 {
  font-size: 16px;
}

.friend-public-id,
.friend-birthday,
.product-link,
.item-action,
.profile-summary-card a,
.profile-feed-time {
  font-size: 13px;
}

.notification-content strong {
  font-size: 14px;
}

.notification-content p {
  font-size: 13px;
}

.notification-meta {
  font-size: 12px;
}

.profile-achievement-intro {
  font-size: 15px;
  line-height: 1.55;
}

.achievement-status-heading h3 {
  font-size: 20px;
}

.achievement-rarity-heading h4,
.achievement-rarity,
.achievement-progress-label,
.achievement-progress-label strong,
.achievement-meta {
  font-size: 12px;
}

.achievement-copy p {
  font-size: 14px;
  line-height: 1.5;
}

.achievement-pin {
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
}

.profile-wishlist-item strong {
  font-size: 14px;
}

.profile-wishlist-item small {
  font-size: 12px;
}

/* Section accents follow the Event / To / Party product model. */
.friends-body .eyebrow,
.birthdays-section .eyebrow,
.event-guests-section .eyebrow,
#event-invite-dialog .eyebrow,
#analytics-guests .eyebrow {
  color: var(--coral-action);
}

.wishlist-body .eyebrow,
.event-wishlist-section .eyebrow,
.event-polls-section .eyebrow,
#event-comments-section .eyebrow,
#event-photos-section .eyebrow,
.profile-achievements-section .eyebrow,
#profile-wishlists-section .eyebrow,
#analytics-gifts .eyebrow,
#analytics-activity .eyebrow {
  color: var(--purple);
}

#profile-wishlist-collections .profile-details-summary .eyebrow { color: var(--blue); }
#achievements .profile-details-summary .eyebrow { color: var(--coral-action); }
#profile-notifications-section .profile-details-summary .eyebrow { color: var(--purple); }

/* Party actions: wishes, gifts and shared event activity. */
.wishlist-body .create-wishlist,
.wishlist-body .add-item,
#wishlist-dialog .primary-button,
#item-dialog .primary-button,
.reservation-button:not(.cancel),
#event-poll-create,
.event-poll-vote,
#event-poll-submit,
#event-comment-form > .primary-button,
#event-photo-form > .primary-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 10px 22px rgba(116, 68, 216, 0.22);
}

.wishlist-body .create-wishlist:hover,
.wishlist-body .add-item:hover,
#wishlist-dialog .primary-button:hover,
#item-dialog .primary-button:hover,
.reservation-button:not(.cancel):hover,
#event-poll-create:hover,
.event-poll-vote:hover,
#event-poll-submit:hover,
#event-comment-form > .primary-button:hover,
#event-photo-form > .primary-button:hover {
  background: linear-gradient(135deg, #6535cb, #4b239f);
  box-shadow: 0 13px 26px rgba(116, 68, 216, 0.25);
}

.dashboard-actions .dashboard-wishlist-link,
#event-poll-results,
.event-poll-add-option,
.event-invite-share,
.comment-reply-form .secondary-button {
  color: var(--purple);
  border-color: #cfc0ef;
  background: #fff;
}

.dashboard-actions .dashboard-wishlist-link:hover,
#event-poll-results:hover,
.event-poll-add-option:hover,
.comment-reply-form .secondary-button:hover {
  color: var(--purple-deep);
  border-color: var(--purple);
  background: var(--purple-soft);
}

.wishlist-nav:hover,
.wishlist-nav.is-selected {
  color: var(--purple);
  background: var(--purple-soft);
}

.wishlist-nav.is-selected strong,
.wishlist-body .product-link,
.wishlist-body .section-link {
  color: var(--purple);
}

.wishlist-body .quantity-badge,
.event-wishlist-section .event-counter {
  color: var(--purple-deep);
  background: var(--purple-soft);
}

.event-poll-choice:has(input:checked) {
  border-color: #b8a2e9;
  background: var(--purple-soft);
}

.event-poll-choice input,
.event-poll-check input {
  accent-color: var(--purple);
}

.achievement-pin:hover,
.achievement-pin:focus-visible,
.achievement-pin.is-pinned {
  color: var(--purple);
  border-color: #c9b8ee;
  background: var(--purple-soft);
}

/* To actions: invitations and consent-based social connections. */
.event-owner-actions .event-share,
.event-invite-send,
.friend-add-button,
.action-to,
#analytics-remind {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--coral-action), var(--coral-action-deep));
  box-shadow: 0 10px 22px rgba(232, 78, 91, 0.2);
}

.event-owner-actions .event-share:hover,
.event-invite-send:hover,
.friend-add-button:hover,
.action-to:hover,
#analytics-remind:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #b72a3d, #8f1e31);
}

.event-owner-actions .event-share {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--event-accent) 70%, #111a46),
    color-mix(in srgb, var(--event-accent) 52%, #111a46));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--event-accent) 25%, transparent);
}

.event-owner-actions .event-share:hover {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--event-accent) 62%, #111a46),
    color-mix(in srgb, var(--event-accent) 44%, #111a46));
  box-shadow: 0 13px 26px color-mix(in srgb, var(--event-accent) 30%, transparent);
}

.event-invite-share {
  color: var(--coral-action);
  border-color: #f2bbc0;
  background: #fff;
}

.event-invite-share:hover {
  color: var(--coral-action-deep);
  border-color: var(--coral-action);
  background: var(--coral-soft);
}

.birthdays-section .section-link,
.friends-body .section-link,
.guest-friend-action {
  color: var(--coral-action);
}

#rsvp-going {
  color: var(--purple-deep);
  border-color: #c9b8ee;
  background: rgba(116, 68, 216, 0.13);
}

#rsvp-going:hover {
  color: var(--purple-deep);
  border-color: var(--purple);
  background: rgba(116, 68, 216, 0.22);
}

#rsvp-going.is-selected {
  color: #fff;
  border-color: var(--purple);
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 8px 20px rgba(116, 68, 216, 0.22);
}

#rsvp-declined {
  color: var(--coral-action-deep);
  border-color: rgba(204, 51, 71, 0.35);
  background: rgba(204, 51, 71, 0.11);
}

#rsvp-declined:hover {
  color: var(--coral-action-deep);
  border-color: var(--coral-action);
  background: rgba(204, 51, 71, 0.19);
}

#rsvp-declined.is-selected {
  color: #fff;
  border-color: var(--coral-action);
  background: linear-gradient(135deg, var(--coral-action), var(--coral-action-deep));
  box-shadow: 0 8px 20px rgba(204, 51, 71, 0.22);
}

.event-participation-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--font-strong);
}

.participation-going {
  color: var(--purple-deep);
  background: var(--purple-soft);
}

.participation-declined {
  color: var(--coral-action-deep);
  background: rgba(204, 51, 71, 0.11);
}

.participation-pending {
  color: #626b82;
  background: #eef0f5;
}

.event-rsvp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

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

.event-rsvp-filter {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #d9ddea;
  border-radius: 999px;
  color: #5d6782;
  background: #f1f3f7;
  font-size: 13px;
  font-weight: var(--font-ui);
}

.event-rsvp-filter span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: var(--font-strong);
}

.event-rsvp-filter:hover,
.event-rsvp-filter.is-active {
  color: var(--blue-deep);
  border-color: rgba(36, 87, 255, 0.35);
  background: var(--blue-soft);
}

.event-rsvp-filter.filter-all {
  color: var(--blue-deep);
  border-color: rgba(36, 87, 255, 0.28);
  background: rgba(36, 87, 255, 0.1);
}

.event-rsvp-filter.filter-all:hover,
.event-rsvp-filter.filter-all.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.event-rsvp-filter.filter-owner {
  color: var(--navy);
  border-color: color-mix(in srgb, var(--navy-soft) 34%, var(--line));
  background: #eef0f5;
}

.event-rsvp-filter.filter-owner:hover,
.event-rsvp-filter.filter-owner.is-active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.event-rsvp-filter.filter-going {
  color: var(--purple-deep);
  border-color: rgba(116, 68, 216, 0.28);
  background: rgba(116, 68, 216, 0.1);
}

.event-rsvp-filter.filter-going:hover,
.event-rsvp-filter.filter-going.is-active {
  color: #fff;
  border-color: var(--purple);
  background: var(--purple);
}

.event-rsvp-filter.filter-declined {
  color: var(--coral-action-deep);
  border-color: rgba(204, 51, 71, 0.28);
  background: rgba(204, 51, 71, 0.09);
}

.event-rsvp-filter.filter-declined:hover,
.event-rsvp-filter.filter-declined.is-active {
  color: #fff;
  border-color: var(--coral-action);
  background: var(--coral-action);
}

.event-rsvp-filter.filter-pending:hover,
.event-rsvp-filter.filter-pending.is-active {
  color: #fff;
  border-color: #69728a;
  background: #69728a;
}

.event-rsvp-filter.is-active span,
.event-rsvp-filter.filter-owner:hover span,
.event-rsvp-filter.filter-going:hover span,
.event-rsvp-filter.filter-declined:hover span,
.event-rsvp-filter.filter-pending:hover span {
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
}

#rsvp-going:disabled,
#rsvp-declined:disabled {
  opacity: 0.58;
  box-shadow: none;
}

/* Destructive actions remain separate from the friendly coral brand role. */
.secondary-button.danger,
.icon-button.danger,
.event-delete,
.friend-remove-button,
.action-danger,
.event-poll-delete,
.item-delete {
  color: var(--danger);
  border-color: #efc5cc;
  background: var(--danger-soft);
}

.secondary-button.danger:hover,
.icon-button.danger:hover,
.event-delete:hover,
.friend-remove-button:hover,
.action-danger:hover,
.event-poll-delete:hover,
.item-delete:hover {
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
}

@media (max-width: 1120px) {
  .app-nav-link {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .app-nav-link {
    font-size: clamp(10px, 2.7vw, 11px);
  }

  .dashboard-hero h1,
  .event-hero-detail h1 {
    font-size: clamp(38px, 10.5vw, 42px);
    line-height: 1.08;
  }

  .wishlist-top h1,
  .friends-top h1,
  .settings-top h1 {
    font-size: clamp(36px, 10vw, 40px);
    line-height: 1.08;
  }

  .profile-hero-copy h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .event-analytics-hero h1 {
    font-size: clamp(36px, 10vw, 40px);
  }

  .section-heading h2,
  .wishlist-details-header h2,
  .friend-result-section h2 {
    font-size: clamp(26px, 7.4vw, 28px);
  }

  .dashboard-hero-copy > p:not(.eyebrow),
  .wishlist-top > div > p:not(.eyebrow),
  .friends-top > div > p:not(.eyebrow),
  .settings-top > p:not(.eyebrow),
  .event-description {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .achievement-card,
  .achievement-card.is-compact {
    padding: 18px;
  }

  .achievement-copy h3 {
    font-size: 18px;
  }
}

/* User-selected dark appearance. */
html[data-theme="dark"] { --navy:#f2f5ff;--navy-soft:#aeb8d2;--paper:#171d31;--canvas:#0d1221;--line:#303950;--blue-soft:#1c2d62;--coral-soft:#40232d;--lilac-soft:#30264b;--shadow-sm:0 8px 24px rgba(0,0,0,.22);--shadow-md:0 18px 48px rgba(0,0,0,.3);--shadow-lg:0 28px 80px rgba(0,0,0,.4);color-scheme:dark;background:#0d1221; }
html[data-theme="dark"] body,
html[data-theme="dark"] :where(.dashboard-body,.wishlist-body,.event-body,.friends-body,.profile-body,.settings-body,.feedback-body) { color:var(--navy);background:radial-gradient(circle at 10% 4%,rgba(137,86,207,.16),transparent 28rem),radial-gradient(circle at 94% 12%,rgba(36,87,255,.14),transparent 25rem),linear-gradient(145deg,#0d1221,#12182a 52%,#0d1221); }
html[data-theme="dark"] :where(.app-header,.settings-card,.settings-session-card,.admin-card,.admin-summary article,.feedback-card,.event-card,.wishlist-card,.wish-item,.profile-card,.profile-hero,.event-panel,.event-fact,.event-comment,.event-photo-card,.notification-panel,.app-mobile-menu,.app-dialog,.decision-dialog,.items-empty) { color:var(--navy);border-color:var(--line);background-color:var(--paper);box-shadow:var(--shadow-sm); }
html[data-theme="dark"] :where(input,select,textarea) { color:var(--navy);border-color:var(--line);background:#11182a; }
html[data-theme="dark"] :where(input,textarea)::placeholder { color:#7f8aa8; }
html[data-theme="dark"] :where(.secondary-button,.app-nav-link,.app-mobile-nav-link,.event-overflow-menu button,.event-overflow-menu a) { color:var(--navy);border-color:var(--line);background-color:#1a2237; }
html[data-theme="dark"] :where(.admin-bar,.theme-choice,.notification-item,.admin-moderation-context,.product-preview) { border-color:var(--line);background:#11182a; }
html[data-theme="dark"] :where(.admin-moderation-quote,.admin-page-row,.admin-feature-row,.admin-inbox-item) { border-color:var(--line);background-color:transparent; }
html[data-theme="dark"] a:not(.primary-button):not(.secondary-button) { color:#8fabff; }
html[data-theme="dark"] .event-hero-detail::after { background:linear-gradient(90deg,rgba(8,12,24,.94),rgba(8,12,24,.5),transparent); }
html[data-theme="dark"] .event-hero-detail { border-color:#303950; border-top-color:var(--event-accent); }
html[data-theme="dark"] img { filter:brightness(.92); }
html[data-theme="dark"] .app-dialog::backdrop { background:rgba(2,5,13,.7); }

/* Complete dark surface and contrast pass for legacy product components. */
html[data-theme="dark"] :where(h1,h2,h3,h4,strong,label,legend,.event-fact strong,.wishlist-nav strong,.profile-stat-card strong,.friend-card-body h3,.guest-copy h3) { color:#f4f6ff; }
html[data-theme="dark"] :where(p,small,.field-note,.sidebar-empty,.wishlist-nav span,.event-map-status,.profile-summary-card p,.settings-session-card p,.friend-birthday,.friend-public-id,.event-wishlist-summary) { color:#b6bfd6; }
html[data-theme="dark"] .dashboard-hero { color:var(--navy);border-color:#303950;background:radial-gradient(circle at 78% 12%,rgba(129,82,196,.18),transparent 18rem),linear-gradient(135deg,#171d31,#11182a 72%); }
html[data-theme="dark"] .dashboard-hero-copy > p:not(.eyebrow) { color:#c2cadf; }
html[data-theme="dark"] .dashboard-actions .dashboard-wishlist-link { color:#b9c8ff;border-color:#3a4663;background:#1a2237; }
html[data-theme="dark"] :where(.event-tabs,.event-filter,.profile-filter,.theme-choice) { border-color:#35405a;background:#11182a;box-shadow:none; }
html[data-theme="dark"] :where(.event-tab,.event-filter button,.profile-filter button) { color:#aeb8d2;background:transparent; }
html[data-theme="dark"] :where(.event-tab.is-active,.event-tab[aria-selected="true"],.event-filter button.is-active,.event-filter button[aria-pressed="true"],.profile-filter button.is-active) { color:#fff;background:var(--blue); }
html[data-theme="dark"] :where(.event-counter,.quantity-badge,.event-theme,.event-role,.event-status,.guest-status,.profile-birthday) { color:#c7d2ef;background:#232d48; }
html[data-theme="dark"] :where(.empty-state,.birthday-card,.wishlist-sidebar,.wishlist-empty,.wish-item,.friend-search,.friend-request-panel,.friend-card,.profile-hero-card,.profile-summary-card,.profile-stat-card,.profile-pinned-showcase,.profile-content-section,.event-fact,.event-map-wrap,.guest-card,.event-gift-card,.event-community-card,.event-organization-card,.event-plan-card,.event-poll-card,.event-expense-card,.event-ticket-card) { color:var(--navy);border-color:#303950;background:#171d31;box-shadow:var(--shadow-sm); }
html[data-theme="dark"] .wishlist-nav { color:#b6bfd6; }
html[data-theme="dark"] .wishlist-nav:hover,
html[data-theme="dark"] .wishlist-nav.is-selected { color:#d5dcff;background:#232d48; }
html[data-theme="dark"] .wishlist-nav.is-selected strong { color:#aebeff; }
html[data-theme="dark"] :where(.wish-item-body,.event-gift-body,.friend-card-body) { background:#171d31; }
html[data-theme="dark"] :where(.wish-item-description,.event-gift-description,.gift-reservation-status,.profile-feed-item,.friend-request-list,.friend-empty) { color:#b6bfd6;border-color:#303950;background:#11182a; }
html[data-theme="dark"] :where(.friend-remove-button,.friend-request-button,.dialog-close,.tutorial-help-button) { color:#c8d3f3;border-color:#3a4663;background:#1a2237; }
html[data-theme="dark"] .profile-hero-card.is-birthday { border-color:#4c3d68;background:radial-gradient(circle at 82% 18%,rgba(255,104,104,.09),transparent 28%),linear-gradient(135deg,#201a34,#171d31 62%); }
html[data-theme="dark"] :where(.profile-hero-avatar,.profile-avatar-preview) { border-color:#303950;background:#11182a; }
html[data-theme="dark"] :where(.profile-pinned-showcase,.profile-content-section) { background:#141b2e; }
html[data-theme="dark"] .event-map-wrap { background:#141b2e; }
html[data-theme="dark"] .event-map-status.is-error { color:#ff9aa4; }
html[data-theme="dark"] :where(.event-fact span,.sidebar-label,.wish-item-source,.profile-public-id,.public-id-line,.email-verification-status) { color:#9ca8c6; }
html[data-theme="dark"] :where(.tutorial-card,.info-tooltip) { color:var(--navy);border-color:#3a4663;background:#171d31;box-shadow:var(--shadow-lg); }
html[data-theme="dark"] .tutorial-card > p { color:#b6bfd6; }
html[data-theme="dark"] .tutorial-spotlight { border-color:#8faaff; }
html[data-theme="dark"] :where(.app-live-notification,.app-live-notification-link) { color:var(--navy);border-color:#3a4663;background:#171d31; }
html[data-theme="dark"] :where(.rsvp-button,.comment-reaction,.comment-reply-toggle,.event-overflow-trigger) { color:#c8d3f3;border-color:#3a4663;background:#1a2237; }
html[data-theme="dark"] :where(.rsvp-button.is-active,.rsvp-button[aria-pressed="true"],.comment-reaction.is-active) { color:#fff;border-color:var(--blue);background:#263b7b; }
html[data-theme="dark"] .event-rsvp { color:#dbe2f4;border-color:#303950;background:#171d31;box-shadow:var(--shadow-sm); }
html[data-theme="dark"] .event-rsvp > p { color:#f2f5ff; }
html[data-theme="dark"] .event-rsvp small { color:#aab4cc; }
html[data-theme="dark"] #rsvp-going { color:#d9ccff;border-color:#514169;background:#272039; }
html[data-theme="dark"] #rsvp-going:hover { color:#fff;border-color:#8067bd;background:#382b5d; }
html[data-theme="dark"] #rsvp-declined { color:#ffc2c8;border-color:#75404a;background:#3b222b; }
html[data-theme="dark"] #rsvp-declined:hover { color:#fff;border-color:#a65361;background:#522934; }
html[data-theme="dark"] #rsvp-going.is-selected,
html[data-theme="dark"] #rsvp-going[aria-pressed="true"] { color:#fff;border-color:var(--purple);background:linear-gradient(135deg,var(--purple),var(--purple-deep)); }
html[data-theme="dark"] #rsvp-declined.is-selected,
html[data-theme="dark"] #rsvp-declined[aria-pressed="true"] { color:#fff;border-color:var(--coral-action);background:linear-gradient(135deg,var(--coral-action),var(--coral-action-deep)); }
html[data-theme="dark"] .wish-item-usage,
html[data-theme="dark"] .request-empty,
html[data-theme="dark"] .friends-empty { color:#b6bfd6;border-color:#35405a;background:#11182a; }
html[data-theme="dark"] :where(.item-order-action,.wish-item-overflow-trigger,.icon-button) { color:#c8d3f3;border-color:#3a4663;background:#1a2237; }
html[data-theme="dark"] :where(.item-order-action:hover:not(:disabled),.wish-item-overflow-trigger:hover,.wish-item-overflow-trigger[aria-expanded="true"],.icon-button:hover) { color:#fff;border-color:#56678e;background:#232d48; }
html[data-theme="dark"] .public-id-line strong { color:#b9c8ff;background:#232d48; }
html[data-theme="dark"] .event-hero-detail .event-theme,
html[data-theme="dark"] .event-hero-detail .event-role { color:#c7d2ef;background:#232d48;box-shadow:none; }
html[data-theme="dark"] .event-date-poster { color:#aebeff;border-color:#3a4663;background:#171d31;box-shadow:0 20px 42px rgba(0,0,0,.28); }
html[data-theme="dark"] .event-date-poster small { color:#aeb8d2; }
html[data-theme="dark"] .wish-item-usage p { color:#b6bfd6; }
html[data-theme="dark"] .icon-button.danger { color:#ff9aa4;border-color:#533541;background:#2a1d2a; }

@media (max-width:480px) {
  .app-header .brand { font-size:20px; }
  .app-header-actions { gap:4px; }
  .app-header-actions :where(.tutorial-help-button,.notification-trigger,.account-profile-button) { width:38px;min-width:38px;height:38px; }
  html[data-theme="dark"] .event-hero-detail::after { background:linear-gradient(90deg,rgba(8,12,24,.95),rgba(8,12,24,.72) 72%,rgba(8,12,24,.48)); }
}

/* Dark-theme follow-up: colored collections, cards and form choices. */
html[data-theme="dark"] body,
html[data-theme="dark"] :where(.dashboard-body,.wishlist-body,.event-body,.friends-body,.profile-body,.settings-body,.feedback-body) {
  background:
    radial-gradient(circle at 8% 5%,rgba(137,86,207,.28),transparent 31rem),
    radial-gradient(circle at 94% 14%,rgba(36,87,255,.24),transparent 29rem),
    radial-gradient(circle at 55% 88%,rgba(255,104,104,.11),transparent 32rem),
    linear-gradient(145deg,#0d1221,#151b30 52%,#0d1221);
}
html[data-theme="dark"] .event-card { color:var(--navy);border-color:color-mix(in srgb,var(--event-accent) 42%,#303950);background:#171d31;box-shadow:var(--shadow-sm); }
html[data-theme="dark"] .event-card-cover { background:linear-gradient(135deg,#26213d,#18233d); }
html[data-theme="dark"] :where(.event-card-cover img,.profile-event-cover img,.profile-gift-card > img,.wish-item-image,.event-gift-image) { filter:brightness(.74) saturate(.86); }
html[data-theme="dark"] img[data-gift-placeholder="true"] { background:#050817; filter:none; }
html[data-theme="dark"] .event-card-footer { border-color:#303950; }
html[data-theme="dark"] :where(.event-card .event-meta,.event-card-stat,.event-card .event-role) { color:#b6bfd6; }
html[data-theme="dark"] .event-rsvp-filter { color:#c2cadf;border-color:#3a4663;background:#1a2237; }
html[data-theme="dark"] .event-rsvp-filter span { color:#d8def1;background:#2a3552; }
html[data-theme="dark"] .event-rsvp-filter.filter-owner { color:#dce3f7;border-color:#4a5672;background:#202940; }
html[data-theme="dark"] .event-rsvp-filter.filter-owner:hover,
html[data-theme="dark"] .event-rsvp-filter.filter-owner.is-active { color:#101626;border-color:#f2f5ff;background:#f2f5ff; }
html[data-theme="dark"] :where(.profile-event-card,.profile-gift-card,.profile-wishlist-item,.profile-collection-details,.profile-notifications-section,.profile-invite-event) { color:var(--navy);border-color:#303950;background:#171d31;box-shadow:var(--shadow-sm); }
html[data-theme="dark"] .profile-event-card { background:#171d31; }
html[data-theme="dark"] .profile-event-theme { color:#d9e1f6;background:#232d48; }
html[data-theme="dark"] :where(.profile-event-role,.profile-event-body .event-meta,.profile-gift-copy small,.profile-wishlist-item small) { color:#b6bfd6; }
html[data-theme="dark"] :where(.profile-achievements-section,.achievement-card,.achievement-card.is-locked) { color:var(--navy);border-color:#303950;background:#171d31;box-shadow:var(--shadow-sm); }
html[data-theme="dark"] .achievement-status-heading { border-color:#303950; }
html[data-theme="dark"] :where(.achievement-status-count,.achievement-rarity-heading span,.achievement-empty) { color:#b6bfd6;background:#11182a; }
html[data-theme="dark"] .achievement-icon { background:color-mix(in srgb,var(--achievement-accent) 20%,#171d31);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--achievement-accent) 35%,#303950); }
html[data-theme="dark"] :where(.achievement-copy p,.achievement-progress-label,.achievement-meta,.profile-achievement-intro) { color:#b6bfd6; }
html[data-theme="dark"] .achievement-progress-label strong { color:#e7ebf8; }
html[data-theme="dark"] .achievement-progress-track { background:#2a334b; }
html[data-theme="dark"] .achievement-pin { color:#c8d3f3;border-color:#3a4663;background:#1a2237; }
html[data-theme="dark"] .image-source-options label { color:#c8d3f3;border-color:#3a4663;background:#1a2237; }
html[data-theme="dark"] .image-source-options label:has(input:checked) { color:#fff;border-color:#6684ff;background:#263b7b; }
html[data-theme="dark"] .image-source-options span { color:inherit; }
html[data-theme="dark"] :where(button:disabled,.secondary-button:disabled) { color:#8490ad;border-color:#303950;background:#171d31; }
html[data-theme="dark"] .theme-choice { border-color:#303950;background:#11182a; }
html[data-theme="dark"] .app-header > .app-nav { border-color:transparent;background:transparent;box-shadow:none; }
html[data-theme="dark"] .app-header { border-color:rgba(143,171,255,.15);background:rgba(13,18,33,.7);box-shadow:0 12px 34px rgba(2,5,13,.28);backdrop-filter:blur(18px) saturate(125%); }
html[data-theme="dark"] .app-header .app-nav-link:not(.is-current) { color:#aeb8d2;border-color:transparent;background:transparent;box-shadow:none; }

@media (max-width:760px) {
  html[data-theme="dark"] .app-header { backdrop-filter:none; }
  html[data-theme="dark"] .app-header > .app-nav {
    top:auto;
    right:10px;
    bottom:max(10px,env(safe-area-inset-bottom));
    left:10px;
    border-color:rgba(143,171,255,.16);
    background:rgba(13,18,33,.72);
    box-shadow:0 14px 36px rgba(2,5,13,.3);
    backdrop-filter:blur(18px) saturate(125%);
  }
  html[data-theme="dark"] .app-nav-link:not(.is-current) {
    color:#aeb8d2;
    border-color:transparent;
    background:transparent;
    box-shadow:none;
  }
}

/* More visible, still soft page atmosphere in the light appearance. */
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) :where(.dashboard-body,.wishlist-body,.event-body,.event-analytics-body,.friends-body,.profile-body,.settings-body,.feedback-body) {
  background:
    radial-gradient(circle at 8% 5%,rgba(185,135,242,.24),transparent 31rem),
    radial-gradient(circle at 94% 14%,rgba(36,87,255,.15),transparent 29rem),
    radial-gradient(circle at 55% 88%,rgba(255,104,104,.09),transparent 32rem),
    linear-gradient(145deg,#f4efff 0%,#fffdfd 48%,#f2f0ff 100%);
}

/* Complete dark treatment for creation, editing and confirmation windows. */
html[data-theme="dark"] :where(.event-form-section,.image-source-fields,.event-cover-fields,.event-accent-picker,.image-preview,.product-preview,.event-month-calendar,.event-ticket-form,.dialog-actions) {
  color:var(--navy);
  border-color:#303950;
  background:#11182a;
  box-shadow:none;
}
html[data-theme="dark"] .image-preview { background:linear-gradient(145deg,#11182a,#1a2237); }
html[data-theme="dark"] .dialog-actions { background:rgba(17,24,42,.96);box-shadow:0 -12px 28px rgba(0,0,0,.18); }
html[data-theme="dark"] :where(.dialog-heading > p:last-child,.dialog-intro,.event-accent-picker summary small,.image-preview,.field-divider) { color:#b6bfd6; }
html[data-theme="dark"] :where(.event-accent-picker summary,.event-form-section h3) { color:#f4f6ff; }
html[data-theme="dark"] :where(.event-accent-dot,.event-accent-swatch) { border-color:#303950;box-shadow:0 0 0 1px #56617a; }
html[data-theme="dark"] :where(.event-overflow-menu,.wish-item-overflow-menu) { color:var(--navy);border-color:#303950;background:#171d31;box-shadow:var(--shadow-lg); }
html[data-theme="dark"] :where(.event-overflow-menu a:hover,.event-overflow-menu button:hover:not(:disabled),.wish-item-overflow-menu button:hover:not(:disabled),.wish-item-overflow-menu button:focus-visible) { background:#232d48; }
html[data-theme="dark"] .event-overflow-menu a:hover,
html[data-theme="dark"] .event-overflow-menu button:hover:not(:disabled),
html[data-theme="dark"] .event-overflow-menu a:focus-visible,
html[data-theme="dark"] .event-overflow-menu button:focus-visible,
html[data-theme="dark"] .wish-item-overflow-menu button:hover:not(:disabled),
html[data-theme="dark"] .wish-item-overflow-menu button:focus-visible { color:#fff;background:#26314c; }
html[data-theme="dark"] .event-overflow-menu .danger:hover,
html[data-theme="dark"] .event-overflow-menu .danger:focus-visible,
html[data-theme="dark"] .wish-item-overflow-menu .danger:hover:not(:disabled),
html[data-theme="dark"] .wish-item-overflow-menu .danger:focus-visible { color:#ffc2c8;background:#4a2630; }
html[data-theme="dark"] input[type="file"]::file-selector-button { color:#dce4ff;border-color:#405075;background:#263b7b; }
html[data-theme="dark"] .profile-secondary-action:hover,
html[data-theme="dark"] .profile-secondary-action:focus-visible,
html[data-theme="dark"] .profile-secondary-action:active:not(:disabled) { color:#fff;border-color:#6684ff;background:#263b7b; }
html[data-theme="dark"] .achievement-card.is-locked { color:#c5cde1;border-color:#2b344b;background:#11182a;box-shadow:none; }
html[data-theme="dark"] .achievement-card.is-locked .achievement-icon { background:#1a2237;box-shadow:inset 0 0 0 1px #303950; }
html[data-theme="dark"] .achievement-card.is-locked :where(.achievement-copy p,.achievement-progress-label,.achievement-meta) { color:#98a4bf; }
html[data-theme="dark"] .secondary-button:not(.danger):not(.action-danger):hover,
html[data-theme="dark"] .secondary-button:not(.danger):not(.action-danger):focus-visible,
html[data-theme="dark"] .secondary-button:not(.danger):not(.action-danger):active:not(:disabled) { color:#fff;border-color:#6684ff;background:#263b7b; }
html[data-theme="dark"] .secondary-button.action-danger:hover,
html[data-theme="dark"] .secondary-button.action-danger:focus-visible,
html[data-theme="dark"] .secondary-button.action-danger:active:not(:disabled) { color:#ffc2c8;border-color:#75404a;background:#4a2630; }
html[data-theme="dark"] :where(.event-hub-section,.event-community-hub,.event-plan-section,.event-comment-form,.event-photo-form,.event-ticket-form,.event-comment-thread) { color:var(--navy);border-color:#303950;background:#171d31;box-shadow:var(--shadow-sm); }
html[data-theme="dark"] :where(.event-hub-tab,.event-community-tab,.comment-thread-toggle,.guest-friend-action,.event-product-link) { color:#c4cce0;border-color:#3a4663;background:#1a2237; }
html[data-theme="dark"] :where(.event-hub-tab:hover,.event-community-tab:hover,.event-hub-tab.is-active,.event-community-tab.is-active,.comment-thread-toggle:hover,.guest-friend-action:hover,.event-product-link:hover) { color:#fff;border-color:color-mix(in srgb,var(--event-accent) 55%,#3a4663);background:#26314c; }
html[data-theme="dark"] :where(.event-hub-tab strong,.event-community-tab strong) { color:#c4cce0;background:#2a334b; }
html[data-theme="dark"] :where(.event-counter,.gift-reservation-badge,.gift-priority.priority-dream,.gift-priority.priority-happy,.gift-priority.priority-idea) { color:#d5dcf0;background:#2a334b; }
html[data-theme="dark"] .gift-priority.priority-dream { color:#ffb0c8;background:#492634; }
html[data-theme="dark"] .guest-friend-action:disabled { color:#8995b0;border-color:#303950;background:#11182a; }
html[data-theme="dark"] .event-counter,
html[data-theme="dark"] .gift-reservation-badge,
html[data-theme="dark"] .gift-priority.priority-happy,
html[data-theme="dark"] .gift-priority.priority-idea { color:#d5dcf0;background:#2a334b; }
html:not([data-theme="dark"]) .event-body {
  background:
    radial-gradient(circle at 8% 6%,color-mix(in srgb,var(--event-accent,#5d6de3) 25%,transparent),transparent 31rem),
    radial-gradient(circle at 94% 16%,color-mix(in srgb,var(--event-accent,#5d6de3) 15%,transparent),transparent 29rem),
    radial-gradient(circle at 54% 90%,color-mix(in srgb,var(--event-accent,#5d6de3) 9%,transparent),transparent 32rem),
    linear-gradient(145deg,#f7f5ff,#fffdfd 50%,#f4f2ff);
}
html[data-theme="dark"] .event-body {
  background:
    radial-gradient(circle at 8% 6%,color-mix(in srgb,var(--event-accent,#5d6de3) 34%,transparent),transparent 31rem),
    radial-gradient(circle at 94% 16%,color-mix(in srgb,var(--event-accent,#5d6de3) 24%,transparent),transparent 29rem),
    radial-gradient(circle at 54% 90%,color-mix(in srgb,var(--event-accent,#5d6de3) 13%,transparent),transparent 32rem),
    linear-gradient(145deg,#0d1221,#151b30 52%,#0d1221);
}
html[data-theme="dark"] .event-ticket-pdf-icon { color:#aebeff;border-color:#4a5672;background:#11182a;box-shadow:none; }
html[data-theme="dark"] .event-location-picker { color:#c4cce0;border-color:#303950;background:#11182a; }
html[data-theme="dark"] .event-expense-member-fields { color:#c4cce0;border-color:#303950;background:#11182a; }
html[data-theme="dark"] .event-expense-split-mode { color:#c4cce0;border-color:#3a4663;background:#171d31; }
html[data-theme="dark"] .event-expense-split-mode strong { color:#f4f6ff; }
html[data-theme="dark"] .event-expense-split-mode small { color:#aab4cc; }
html[data-theme="dark"] .event-expense-split-mode:has(input:checked) { border-color:#6f5aa3;background:#30264b;box-shadow:0 0 0 1px #6f5aa3; }
html[data-theme="dark"] .event-expense-share-preview { color:#d5c8ff;border:1px solid #514169;background:#272039; }
html[data-theme="dark"] .event-location-picker-actions { color:#aab4cc; }
html[data-theme="dark"] .event-location-map { color:#aab4cc;border-color:#303950;background:#171d31; }
html[data-theme="dark"] .event-location-map-status,
html[data-theme="dark"] .event-location-status { color:#aab4cc; }
html[data-theme="dark"] .wishlist-surprise-control { color:#c4cce0;border-color:#303950;background:#171d31; }
html[data-theme="dark"] .wishlist-surprise-control strong { color:#f4f6ff; }
html[data-theme="dark"] .wishlist-surprise-control small { color:#aab4cc; }
html[data-theme="dark"] .event-hub-tab.is-active,
html[data-theme="dark"] .event-community-tab.is-active { color:#fff;border-color:color-mix(in srgb,var(--event-accent) 60%,#3a4663);background:#26314c; }
html[data-theme="dark"] .event-hub-tab.is-active strong,
html[data-theme="dark"] .event-community-tab.is-active strong { color:#fff;background:var(--event-accent); }
html[data-theme="dark"] .event-hub-tab:hover,
html[data-theme="dark"] .event-community-tab:hover,
html[data-theme="dark"] .event-hub-tab:focus-visible,
html[data-theme="dark"] .event-community-tab:focus-visible { color:#fff;border-color:color-mix(in srgb,var(--event-accent) 55%,#3a4663);background:#26314c; }
html[data-theme="dark"] #event-poll-results,
html[data-theme="dark"] .event-poll-add-option,
html[data-theme="dark"] .comment-reply-form .secondary-button { color:#d5c8ff;border-color:#514169;background:#1a2237; }
html[data-theme="dark"] .event-photo-retention { color:#c8bced;background:#272039; }
html[data-theme="dark"] .secondary-button.danger { color:#ffb8c1;border-color:#75404a;background:#4a2630; }
.event-hero-detail.has-cover .event-hero-cover { width:100%; }
.event-hero-detail.has-cover::after {
  background:linear-gradient(90deg,rgba(248,247,255,.96) 0%,rgba(248,247,255,.9) 28%,rgba(248,247,255,.72) 50%,rgba(248,247,255,.36) 72%,rgba(248,247,255,.08) 100%);
}
html[data-theme="dark"] .event-hero-detail.has-cover::after {
  background:linear-gradient(90deg,rgba(8,12,24,.97) 0%,rgba(8,12,24,.92) 28%,rgba(8,12,24,.76) 50%,rgba(8,12,24,.4) 72%,rgba(8,12,24,.1) 100%);
}
