@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #271f4d;
  --ink-soft: #43386d;
  --muted: #6d7190;
  --muted-soft: #a7acbf;
  --canvas: #fcfdff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-tint: #f5f7fe;
  --line: #e6e9f5;
  --line-strong: #d8dcef;
  --accent: #19b7fa;
  --accent-strong: #2a3acd;
  --accent-soft: #ecf8ff;
  --support: #a23895;
  --support-soft: #f8ecf7;
  --warm: #fbac50;
  --warm-strong: #e54655;
  --warm-soft: #fff3e5;
  --teal: #5b86a6;
  --teal-soft: #edf6fb;
  --danger: #c84a4a;
  --shadow: 0 24px 60px rgba(41, 43, 94, 0.08);
  --shadow-soft: 0 14px 30px rgba(39, 31, 77, 0.05);
  --card-padding: 0.8rem;
  --card-radius: 1.9rem;
  --card-border: 1px solid var(--line);
  --card-shadow: var(--shadow-soft);
  --space-2xs: 0.125rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1.25rem;
  --space-xl: 2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(25, 183, 250, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(162, 56, 149, 0.1), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(251, 172, 80, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--canvas) 100%);
}

a {
  color: inherit;
}

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

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

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

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

code {
  display: block;
  overflow-wrap: anywhere;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  font-size: 0.95rem;
}

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.7rem 1.05rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(230, 234, 244, 0.9);
  border-top: 0;
  border-radius: 0 0 1.7rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.brand-lockup,
.identity-pill,
.event-summary-meta,
.photo-card-actions,
.hero-actions,
.header-actions,
.form-actions,
.site-nav,
.current-uploader-card,
.uploader-group-heading,
.dashboard-hero,
.event-owner-hero,
.owner-grid,
.qr-preview,
.subtle-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.brand-lockup {
  text-decoration: none;
  flex-wrap: nowrap;
}

.brand-logo {
  width: auto;
  height: 3rem;
  filter: drop-shadow(0 10px 20px rgba(42, 58, 205, 0.1));
}

.brand-wordmark {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-link--with-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  color: currentColor;
}

.profile-menu {
  position: relative;
}

.profile-menu[open] {
  z-index: 30;
}

.profile-menu summary {
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-menu__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

.profile-menu__avatar {
  width: 2.85rem;
  height: 2.85rem;
}

.profile-menu__avatar.avatar--icon {
  color: var(--muted-soft);
}

.profile-menu__avatar .avatar__icon {
  width: 78%;
  height: 78%;
}

.profile-menu__panel {
  position: absolute;
  top: calc(100% - 0.2rem);
  right: -0.15rem;
  min-width: 12rem;
  padding: 0.55rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.profile-menu__panel::before {
  content: "";
  position: absolute;
  top: -0.42rem;
  right: 1.15rem;
  width: 0.8rem;
  height: 0.8rem;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: rotate(45deg);
}

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-radius: 0.95rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.profile-menu__item:hover {
  background: var(--surface-tint);
}

.profile-menu__item svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  flex: 0 0 auto;
}

.profile-menu__item--button {
  appearance: none;
}

.profile-menu__separator {
  height: 1px;
  margin: 0.35rem 0;
  background: var(--line);
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.88rem 1.2rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 58%, var(--support) 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(42, 58, 205, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.button-with-icon svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.button-danger {
  background: var(--danger);
  color: white;
}

.button-small {
  padding: 0.72rem 1rem;
}

.button-hero {
  padding: 1.7rem 3.9rem;
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 24px 46px rgba(42, 58, 205, 0.22);
}

.eyebrow,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.muted-copy,
.field-hint,
.section-heading p,
.photo-card figcaption,
.photo-card-meta,
.event-summary-meta,
.auth-link {
  color: var(--muted);
}

.flash {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: none;
}

trix-toolbar {
  margin-bottom: 0.3rem;
}

trix-toolbar .trix-button-row {
  gap: 0.45rem;
  flex-wrap: wrap;
}

trix-toolbar .trix-button-group {
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

trix-toolbar .trix-button-group:not(:first-child) {
  margin-left: 0;
}

trix-toolbar .trix-button {
  border-bottom: 0;
  background: transparent;
}

trix-toolbar .trix-button:not(:first-child) {
  border-left: 1px solid var(--line);
}

trix-toolbar .trix-button.trix-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

trix-editor {
  border: 1px solid var(--line);
  border-radius: 1.9rem;
  min-height: 16rem;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

trix-editor:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(25, 183, 250, 0.12);
}

.flash-notice {
  background: #ebfaf6;
  border: 1px solid #bde9dc;
}

.flash-alert {
  background: #fff0ef;
  border: 1px solid #f5c9c7;
}

.card,
.empty-state,
.auth-card,
.event-summary-card,
.event-owner-hero,
.event-hero,
.hero-shell,
.owner-grid > .card {
  background: var(--surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
}

.card,
.auth-card,
.event-summary-card,
.owner-grid > .card,
.event-owner-hero,
.event-hero,
.hero-shell,
.profile-card,
.subtle-banner {
  padding: var(--card-padding);
}

.stack,
.field,
.gallery-section,
.uploader-group,
.photo-grid,
.profile-page,
.dashboard-page,
.event-page,
.event-list,
.auth-links,
.oauth-row,
.qr-card,
.stat-stack {
  display: grid;
  gap: 1rem;
}

.auth-card .form-actions {
  justify-content: flex-end;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
input[type="file"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-field input {
  width: auto;
}

.landing-page {
  padding-top: 1.4rem;
  display: grid;
  gap: 4.5rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  padding: 1.8rem;
}

.landing-hero {
  position: relative;
}

.hero-shell--landing {
  padding: 3.25rem 3rem 2.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.94) 100%);
}

.landing-hero .hero-shell--landing {
  align-items: center;
}

.hero-shell h1,
.event-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: 0;
}

.hero-copy {
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 34rem;
}

.hero-copy--wide {
  max-width: 42rem;
}

.hero-copy-block {
  display: grid;
  align-content: center;
  gap: 1.15rem;
}

.landing-hero .hero-actions {
  width: 100%;
  justify-content: center;
}

.hero-brand-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  min-height: 100%;
  padding: 1.5rem;
  border-radius: 1.9rem;
  background:
    radial-gradient(circle at top, rgba(25, 183, 250, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 248, 255, 0.88) 100%);
  border: 1px solid rgba(230, 233, 245, 0.92);
}

.hero-brand-panel__logo {
  width: min(100%, 24rem);
  height: auto;
  filter: drop-shadow(0 20px 36px rgba(42, 58, 205, 0.12));
}

.hero-brand-panel__tag {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-proof-line {
  grid-column: 1 / -1;
  margin-bottom: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  padding-top: 0.45rem;
  margin-top: 0.1rem;
  line-height: 1.5;
}

.content-grid,
.story-grid {
  display: grid;
  gap: 1rem;
}

.content-card,
.story-card,
.cta-card,
.simple-step {
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: none;
}

.landing-section {
  display: grid;
  gap: 1.4rem;
  padding: 0;
}

.landing-section--story,
.landing-section--cta {
  margin-top: 0.35rem;
}

.section-heading {
  max-width: 46rem;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.7vw, 2.9rem);
  line-height: 1.02;
  margin-bottom: 0.8rem;
}

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

.steps-grid,
.event-type-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.story-card,
.content-card {
  padding: 1.4rem;
}

.story-card h3,
.content-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.section-heading p:last-child,
.content-card p:last-child,
.story-card p:last-child {
  margin-bottom: 0;
}

.simple-step--large {
  flex: 1 1 240px;
  min-height: 100%;
}

.event-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.75rem;
  background:
    linear-gradient(135deg, rgba(45, 162, 245, 0.07) 0%, rgba(179, 57, 208, 0.07) 72%, rgba(254, 165, 89, 0.09) 100%),
    rgba(255, 255, 255, 0.96);
}

.simple-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem;
  align-items: start;
}

.simple-step p {
  margin-bottom: 0;
}

.simple-step__number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--support-soft) 100%);
  color: var(--accent-strong);
  font-weight: 600;
}

.subtle-banner svg,
.empty-state svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--accent-strong);
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 8rem);
  padding-top: 2rem;
}

.auth-card {
  width: min(560px, 100%);
  padding: 2rem 2rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 100%);
}

.auth-links {
  margin-top: 0.5rem;
}

.auth-link {
  text-decoration: none;
  font-weight: 500;
}

.oauth-row {
  margin-top: 0.5rem;
}

.oauth-button {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 600;
  background: var(--surface-strong);
  cursor: pointer;
}

.dashboard-hero,
.event-owner-hero {
  justify-content: space-between;
}

.event-owner-hero {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem 1.8rem;
}

.event-owner-hero__content {
  max-width: 40rem;
}

.event-owner-hero__aside {
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}

.hero-actions {
  justify-content: flex-end;
}

.hero-actions .button,
.hero-actions .button_to {
  display: inline-flex;
  align-items: center;
}

.hero-actions .button-with-icon {
  gap: 0.5rem;
}

.hero-actions .button-with-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  max-width: 0.95rem;
  max-height: 0.95rem;
  flex: none;
}

.event-owner-hero__share-url {
  max-width: min(320px, 100%);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-owner-hero__footer {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(228, 235, 245, 0.92);
}

.event-editor-page {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.event-form {
  gap: 0.9rem;
}

.card-frame {
  display: grid;
  gap: 0.9rem;
}

.card-frame__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.1rem;
}

.card-frame__main,
.card-frame__body,
.card-frame__info {
  min-width: 0;
}

.card-frame__main {
  flex: 1 1 auto;
}

.card-frame__aside {
  flex: none;
  align-self: start;
}

.card-frame__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: 0.65rem;
  border-top: 1px solid rgba(228, 235, 245, 0.92);
}

.card-frame__info p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.event-form__option {
  gap: 0.5rem;
}

.event-form__option span {
  color: var(--muted);
  font-size: 0.85rem;
}

.card-frame__actions {
  justify-content: flex-end;
  margin-left: auto;
}

.event-form__identity {
  padding: 0;
  min-width: 0;
}

.event-form__identity-main {
  display: grid;
  gap: 0.125rem;
  justify-items: stretch;
}

.field--inline-title,
.field--inline-subtitle,
.field--inline-date {
  gap: 0;
}

.field--inline-title,
.field--inline-subtitle {
  width: 100%;
}

.field--inline-title input,
.field--inline-subtitle input {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.field--inline-title input {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 4.2vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
}

.field--inline-subtitle input {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  display: block;
}

.field--inline-date {
  inline-size: fit-content;
  max-inline-size: 100%;
}

.schedule-inline {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-sm);
  inline-size: fit-content;
  max-inline-size: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.schedule-inline__row {
  display: contents;
}

.schedule-inline__inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  align-items: center;
}

.schedule-inline__row label {
  grid-column: 1;
  align-self: center;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.schedule-inline__row > .schedule-inline__inputs,
.schedule-inline__row > input,
.schedule-inline__row > select,
.schedule-inline__row > .schedule-inline__timezone {
  grid-column: 2;
}

.schedule-inline__row input,
.schedule-inline__row select {
  field-sizing: content;
  inline-size: auto;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: var(--space-2xs) 0;
  font-size: 0.78rem;
  font-weight: 400;
  border: 0;
  border-bottom: 1px solid rgba(216, 220, 239, 0.9);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.schedule-inline__row input:focus,
.schedule-inline__row select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field--inline-title input:focus,
.field--inline-subtitle input:focus {
  outline: none;
}

.event-form__body {
  display: grid;
  gap: 0.2rem;
}

.event-form__body .field {
  gap: 0.2rem;
}

.event-form__body textarea {
  min-height: 14rem;
}

.event-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.event-form__section {
  padding: 1.35rem;
  gap: 1rem;
}

.event-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.event-summary-card {
  min-height: 220px;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, var(--event-glow, rgba(45, 162, 245, 0.12)), transparent 40%),
    var(--event-background, linear-gradient(135deg, #ffffff 0%, #f6fbff 45%, #fff9f3 100%));
}

.event-summary-card h2 {
  font-size: 1.4rem;
  line-height: 1.06;
}

.event-summary-meta {
  color: var(--muted);
  font-weight: 600;
}

.event-summary-schedule {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.event-schedule__zone {
  color: var(--muted);
}

.event-page {
  display: grid;
  gap: 1.25rem;
  background:
    radial-gradient(circle at top left, var(--event-glow, rgba(45, 162, 245, 0.1)), transparent 32%),
    var(--event-background, linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #fffaf5 100%));
  border-radius: 2.2rem;
  padding: 1.45rem;
  border: 1px solid rgba(228, 235, 245, 0.9);
}

.event-print-sheet {
  display: none;
}

.event-hero {
  display: grid;
  gap: 1.1rem;
  padding: 1.7rem;
}

.event-hero__content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.event-hero__title-row h1 {
  max-width: none;
  margin-bottom: 0;
}

.event-hero__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem 1.1rem;
}

.event-hero__identity {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.event-date__summary {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}

.event-hero__lede {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.event-hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.2rem;
  flex-wrap: wrap;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(228, 235, 245, 0.92);
}

.event-hero__status {
  flex: 1 1 22rem;
  justify-content: flex-start;
}

.event-hero__actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.identity-card,
.upload-card {
  background: rgba(255, 255, 255, 0.94);
}

.upload-card__actions {
  justify-content: flex-end;
}

.upload-card__actions .button {
  margin-left: auto;
}

.upload-card__actions .form-status {
  margin-right: 0;
}

.upload-dropzone {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1.4rem;
  border: 1px dashed var(--event-accent-strong, var(--accent-strong));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.92) 100%);
  cursor: pointer;
}

.upload-dropzone.is-uploading {
  cursor: progress;
  opacity: 0.82;
  pointer-events: none;
}

.upload-dropzone__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--event-accent-strong, var(--ink));
  border: 1px solid rgba(230, 219, 207, 0.85);
}

.upload-dropzone svg {
  width: 1rem;
  height: 1rem;
}

.upload-progress {
  display: grid;
  gap: 0.35rem;
  width: min(22rem, 100%);
}

.upload-progress__track {
  width: 100%;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(222, 228, 241, 0.92);
}

.upload-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--event-accent-strong, var(--accent-strong));
  transition: width 160ms ease-out;
}

.upload-progress__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.upload-card__actions .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(228, 235, 245, 0.92);
}

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

.avatar--icon {
  color: var(--event-accent-strong, var(--ink));
}

.avatar__icon {
  width: 65%;
  height: 65%;
  fill: currentColor;
}

.avatar__icon path,
.avatar__icon circle,
.avatar__icon polygon {
  fill: currentColor;
}

.avatar__icon rect[fill="none"] {
  fill: none;
}

.event-page .avatar-small {
  width: 2rem;
  height: 2rem;
}

.event-page .avatar-medium {
  width: 2.4rem;
  height: 2.4rem;
}

.event-page .avatar__icon {
  width: 50%;
  height: 50%;
}

.avatar-small {
  width: 2.75rem;
  height: 2.75rem;
}

.avatar-medium {
  width: 3.2rem;
  height: 3.2rem;
}

.avatar-large {
  width: 5.2rem;
  height: 5.2rem;
}

.uploader-name {
  font-size: 1.28rem;
  font-weight: 600;
}

.gallery-section {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.gallery-section__heading {
  max-width: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.gallery-section__heading h2 {
  margin-bottom: 0;
}

.gallery-section__heading p {
  margin: 0;
  text-align: right;
}

.uploader-group {
  display: grid;
  gap: 0.3rem;
  padding: 0.4rem 0 0.25rem;
  border: 1px solid rgba(228, 235, 245, 0.92);
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.uploader-group-heading {
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.uploader-group .identity-pill {
  gap: 0.45rem;
}

.uploader-group .identity-pill h3,
.uploader-group .identity-pill p,
.uploader-group-heading > p {
  margin: 0;
}

.uploader-group .identity-pill p {
  font-size: 0.68rem;
  line-height: 1.1;
  color: var(--muted-soft);
}

.photo-grid {
  display: grid;
  gap: 0.1rem;
  grid-template-columns: repeat(auto-fill, minmax(172px, max-content));
  justify-content: start;
}

.photo-card {
  display: grid;
  gap: 0.35rem;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: 0;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.45rem;
}

.photo-card--gallery {
  gap: 0.18rem;
}

.photo-card--gallery figcaption {
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.photo-card figcaption,
.photo-card-meta,
.photo-card-actions {
  padding: 0.55rem 0.65rem;
}

.photo-card figcaption {
  padding: 0;
}

.photo-card-actions {
  padding-top: 0;
}

.empty-state {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 2.4rem 1.2rem;
}

.empty-state svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.markdown-body {
  line-height: 1.7;
  color: #3d4654;
}

.rich-text-body,
.trix-content {
  line-height: 1.7;
  color: #3d4654;
}

.rich-text-body h2,
.rich-text-body h3,
.markdown-body h2,
.markdown-body h3 {
  margin-top: 1.2rem;
}

.rich-text-body ul,
.rich-text-body ol,
.markdown-body ul,
.markdown-body ol {
  padding-left: 1.2rem;
}

.qr-preview {
  display: block;
  flex: none;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  line-height: 0;
}

.qr-preview--hero {
  padding: 0.85rem;
}

.qr-preview--inline {
  display: grid;
  justify-self: end;
  align-self: start;
  padding: 0;
  width: 4.5rem;
  height: 4.5rem;
}

.qr-preview img {
  width: min(260px, 100%);
}

.qr-preview svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

@media print {
  @page {
    size: auto;
    margin: 0.7in;
  }

  body {
    background: white;
  }

  .site-header,
  .event-hero,
  .upload-card,
  .gallery-section,
  .event-hero__footer {
    display: none !important;
  }

  main,
  .event-page,
  .event-hero {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: white;
  }

  .event-page {
    display: block;
  }

  .event-print-sheet {
    display: grid;
    align-content: start;
    gap: 0.28in;
    min-height: calc(100vh - 1.4in);
    text-align: left;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .event-print-sheet h1 {
    margin: 0;
    max-width: none;
    font-size: 32pt;
    line-height: 0.96;
    letter-spacing: -0.05em;
  }

  .event-print-sheet__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.3in;
    width: 100%;
  }

  .event-print-sheet__identity {
    display: grid;
    align-content: start;
    gap: 0.14in;
    min-width: 0;
  }

  .event-print-sheet__lede {
    margin: 0;
    font-size: 15pt;
    line-height: 1.35;
    color: var(--ink-soft);
  }

  .event-print-sheet__date {
    margin: 0;
    font-size: 12pt;
    line-height: 1.35;
    color: var(--muted);
  }

  .event-print-sheet__body {
    width: 100%;
    font-size: 11.5pt;
    line-height: 1.5;
    color: var(--ink-soft);
  }

  .event-print-sheet__qr {
    display: grid;
    place-items: center;
    width: min(3.8in, 42vw);
    height: min(3.8in, 42vw);
    max-width: 100%;
    max-height: 100%;
  }

  .event-print-sheet__qr svg {
    display: block;
    width: 100%;
    height: 100%;
  }
}

.profile-card {
  justify-content: space-between;
}

.stat-stack {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
}

.stat-stack span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-stack svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--muted-soft);
  flex: none;
}

.narrow-page {
  width: min(720px, calc(100% - 2rem));
}

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

@media (max-width: 880px) {
  .hero-shell,
  .owner-grid {
    grid-template-columns: 1fr;
  }

  .event-owner-hero__aside {
    justify-items: start;
  }

  .event-owner-hero {
    grid-template-columns: 1fr;
  }

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

  .story-grid,
  .content-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .event-hero__header {
    grid-template-columns: 1fr;
  }

  .event-date__summary {
    white-space: normal;
  }

  .event-print-sheet__header {
    grid-template-columns: 1fr;
  }

  .event-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .field--inline-date {
    min-width: 100%;
    justify-self: stretch;
    inline-size: auto;
  }

  .card-frame__header {
    flex-direction: column;
  }

  .schedule-inline {
    inline-size: auto;
    max-inline-size: none;
    grid-template-columns: 1fr;
  }

  .schedule-inline__row {
    display: grid;
    gap: var(--space-xs);
  }

  .schedule-inline__row label,
  .schedule-inline__inputs {
    grid-column: auto;
  }

  .schedule-inline__row > .schedule-inline__inputs,
  .schedule-inline__row > input,
  .schedule-inline__row > select,
  .schedule-inline__row > .schedule-inline__timezone {
    grid-column: auto;
  }

  .schedule-inline__inputs {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .card-frame__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-frame__actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  main,
  .site-header {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-shell h1,
  .event-hero h1 {
    font-size: 2.6rem;
  }

  .hero-shell--landing,
  .cta-card {
    padding: 1.4rem;
  }

  .event-editor-page {
    width: min(100% - 1rem, 1100px);
  }

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

  .field--inline-title input {
    font-size: 2.4rem;
  }

  .field--inline-subtitle input {
    font-size: 1.05rem;
  }

  .field--inline-date {
    width: 100%;
    justify-self: start;
    min-width: 0;
  }

  .field--inline-date input {
    text-align: left;
  }

  .hero-brand-panel {
    padding: 1.25rem;
  }

  .hero-brand-panel__logo {
    width: min(100%, 18rem);
  }

  .cta-card {
    flex-direction: column;
  }

}
