:root {
  --ink: #19333b;
  --ink-soft: #496067;
  --coral: #ed624f;
  --coral-dark: #d94c3b;
  --cream: #fffaf4;
  --line: #b9c2c2;
  --error: #9f2f2f;
  --success: #246b4d;
}

* {
  box-sizing: border-box;
}

.auth-body {
  margin: 0;
  min-width: 20rem;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(24rem, 43%) 1fr;
  min-height: 100svh;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: color-mix(in srgb, var(--cream) 96%, transparent);
  position: relative;
  z-index: 2;
}

.auth-panel__inner {
  width: min(100%, 29rem);
}

.auth-brand {
  margin-bottom: clamp(2.5rem, 8vh, 5rem);
}

.auth-brand__name {
  align-items: flex-end;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.85;
}

.auth-brand__spark {
  background: repeating-conic-gradient(from 245deg at 50% 100%, var(--coral) 0 7deg, transparent 7deg 22deg);
  display: block;
  height: 1.4rem;
  margin: 0 -1.1rem 2.9rem 1.1rem;
  position: relative;
  transform: rotate(2deg);
  width: 3.2rem;
}

.auth-brand__spark::after {
  background: var(--coral);
  border-radius: 50%;
  bottom: -0.95rem;
  content: "";
  height: 0.6rem;
  left: 1.3rem;
  position: absolute;
  width: 0.6rem;
}

.auth-brand p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 1rem 0 0;
}

.auth-heading {
  margin-bottom: 2rem;
}

.auth-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.auth-heading p {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0.65rem 0 0;
}

.auth-form {
  display: grid;
  gap: 1.25rem;
}

.auth-field {
  display: grid;
  gap: 0.5rem;
}

.auth-field label,
.auth-label-row {
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-label-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.auth-label-row a,
.auth-footer a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.auth-field input:not([type="checkbox"]) {
  appearance: none;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--ink);
  font: inherit;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
}

.auth-field input:not([type="checkbox"]):focus-visible,
.auth-button:focus-visible,
.auth-checkbox input:focus-visible,
.auth-label-row a:focus-visible,
.auth-footer a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 45%, transparent);
  outline-offset: 3px;
}

.field_with_errors {
  display: contents;
}

.field_with_errors input:not([type="checkbox"]) {
  border-color: var(--error);
}

.auth-hint {
  color: var(--ink-soft);
  font-size: 0.78rem;
  justify-self: end;
  margin-top: -1.7rem;
}

.auth-checkbox {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.9rem;
  gap: 0.55rem;
  width: fit-content;
}

.auth-checkbox input {
  accent-color: var(--coral);
  height: 1rem;
  width: 1rem;
}

.auth-button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
  width: 100%;
}

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

.auth-button--primary {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}

.auth-button--primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.auth-button--primary:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.auth-button--secondary {
  background: transparent;
  color: var(--ink);
}

.auth-divider {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  gap: 0.8rem;
  margin: 1.35rem 0;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.auth-footer {
  color: var(--ink-soft);
  margin: 1.5rem 0 0;
  text-align: center;
}

.auth-alert {
  border-left: 4px solid currentColor;
  border-radius: 0.35rem;
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
}

.auth-alert h2 {
  font: inherit;
  font-weight: 700;
  margin: 0;
}

.auth-alert ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.auth-alert--error {
  background: #fff0ee;
  color: var(--error);
}

.auth-alert--success {
  background: #edf8f1;
  color: var(--success);
}

.auth-art {
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 243, 204, 0.92), transparent 22%),
    radial-gradient(circle at 24% 78%, rgba(230, 92, 67, 0.4), transparent 27%),
    linear-gradient(135deg, #825445 0%, #e7b47c 35%, #f4ddad 58%, #6c5351 100%);
  overflow: hidden;
  position: relative;
}

.auth-art::before {
  background: rgba(255, 250, 240, 0.24);
  content: "";
  inset: 0;
  position: absolute;
}

.auth-art__glow {
  background: rgba(255, 239, 195, 0.75);
  border-radius: 50%;
  filter: blur(20px);
  height: 17rem;
  position: absolute;
  right: 8%;
  top: 15%;
  width: 17rem;
}

.auth-art__film {
  background: rgba(25, 35, 37, 0.78);
  box-shadow: 0 1.8rem 4rem rgba(28, 27, 25, 0.34);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  left: 3%;
  padding: 2.3rem 1.4rem;
  position: absolute;
  top: 40%;
  transform: rotate(-16deg);
  width: 115%;
}

.auth-art__film::before,
.auth-art__film::after {
  background: repeating-linear-gradient(90deg, transparent 0 1.8rem, rgba(255, 250, 244, 0.88) 1.8rem 2.6rem, transparent 2.6rem 4.4rem);
  content: "";
  height: 0.65rem;
  left: 0;
  position: absolute;
  right: 0;
}

.auth-art__film::before {
  top: 0.55rem;
}

.auth-art__film::after {
  bottom: 0.55rem;
}

.auth-art__film span {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(135deg, #b95f43, #efc07b 48%, #44666a);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.auth-art__film span:nth-child(2) {
  background: linear-gradient(135deg, #4d7374, #e6a65f 52%, #c95642);
}

.auth-art__film span:nth-child(3) {
  background: linear-gradient(135deg, #e7bf82, #5e7477 50%, #2c4246);
}

@media (max-width: 48rem) {
  .auth-layout {
    display: block;
    position: relative;
  }

  .auth-art {
    inset: 0;
    position: fixed;
  }

  .auth-art::after {
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.85), rgba(255, 250, 244, 0.96));
    content: "";
    inset: 0;
    position: absolute;
  }

  .auth-panel {
    background: transparent;
    min-height: 100svh;
    padding: 2rem 1.25rem;
  }

  .auth-panel__inner {
    background: rgba(255, 250, 244, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.2rem;
    box-shadow: 0 1rem 3rem rgba(25, 51, 59, 0.12);
    padding: clamp(1.35rem, 6vw, 2.25rem);
  }

  .auth-brand {
    margin-bottom: 2.5rem;
  }

  .auth-brand__name {
    font-size: clamp(3.25rem, 18vw, 4.6rem);
  }
}

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

[hidden] {
  display: none !important;
}

.organizer-body {
  background: #f5f2ec;
  color: #272522;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-width: 20rem;
}

.organizer-shell {
  background: #fffdf9;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  min-height: 100svh;
}

.organizer-sidebar {
  background: #faf7f1;
  border-right: 1px solid #ebe5dc;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 2rem 1.25rem 1.25rem;
  position: sticky;
  top: 0;
}

.organizer-brand {
  color: #171614;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  padding: 0 0.75rem;
  text-decoration: none;
}

.organizer-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 2.5rem;
}

.organizer-nav__link {
  align-items: center;
  border-radius: 0.55rem;
  color: #4c4a46;
  display: flex;
  font-size: 0.9rem;
  font-weight: 650;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
}

.organizer-nav__link--active {
  background: #ffebe7;
  color: #bd4134;
}

.organizer-nav__link--disabled {
  color: #8b8881;
}

.account-menu {
  margin-top: auto;
  position: relative;
}

.account-menu summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  list-style: none;
  padding: 0.65rem;
}

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

.account-menu summary > span:nth-child(2) {
  display: grid;
  font-size: 0.78rem;
  gap: 0.15rem;
  min-width: 0;
}

.account-menu summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu summary small {
  color: #77736c;
}

.account-menu__avatar {
  align-items: center;
  background: #e6ddd1;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 2.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  height: 2.25rem;
  justify-content: center;
}

.account-menu form {
  background: white;
  border: 1px solid #ded8ce;
  border-radius: 0.5rem;
  bottom: 3.5rem;
  box-shadow: 0 0.8rem 2rem rgba(44, 38, 29, 0.12);
  left: 0;
  padding: 0.35rem;
  position: absolute;
  right: 0;
}

.account-menu__action {
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  color: #8b3027;
  cursor: pointer;
  font: inherit;
  padding: 0.65rem;
  text-align: left;
  width: 100%;
}

.organizer-main {
  margin: 0 auto;
  max-width: 76rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  width: 100%;
}

.flash {
  border-radius: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
}

.flash--notice {
  background: #edf7ef;
  color: #27613c;
}

.flash--alert,
.form-errors {
  background: #fff0ed;
  color: #922e25;
}

.page-heading {
  margin: 0 0 2.75rem;
}

.page-heading--actions,
.event-hero {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.page-heading h1,
.event-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0;
}

.page-heading p:not(.eyebrow),
.event-hero p {
  color: #68645d;
  line-height: 1.55;
  margin: 0.7rem 0 0;
}

.eyebrow {
  color: #777169;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
}

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

.button--primary:hover {
  background: var(--coral-dark);
}

.button--secondary {
  background: white;
  border-color: #d9d4cc;
  color: #312f2b;
}

.button--danger {
  background: transparent;
  border-color: #bd4134;
  color: #a4382f;
}

.back-link {
  color: #4d4943;
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  text-decoration: none;
}

.event-group + .event-group {
  margin-top: 3.5rem;
}

.event-group__heading {
  align-items: center;
  border-bottom: 1px solid #e6e0d7;
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.event-group__heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin: 0;
}

.event-group__heading > span {
  background: #efeae2;
  border-radius: 999px;
  color: #615d56;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
}

.event-list {
  display: grid;
}

.event-row {
  align-items: center;
  border-bottom: 1px solid #eee8df;
  color: inherit;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 10rem minmax(0, 1fr) auto auto;
  padding: 1rem 0;
  text-decoration: none;
}

.event-row:hover strong {
  color: var(--coral-dark);
}

.event-row__image {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ded4c4, #eee6db);
  border-radius: 0.4rem;
  display: flex;
  font-family: Georgia, serif;
  font-size: 2.5rem;
  justify-content: center;
  overflow: hidden;
}

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

.event-row__details {
  display: grid;
  gap: 0.4rem;
}

.event-row__details strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.event-row__details span {
  color: #6d6962;
  font-size: 0.8rem;
}

.event-row__theme {
  background: #f2eee7;
  border-radius: 999px;
  color: #68645e;
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
}

.event-row__arrow {
  font-size: 1.25rem;
}

.empty-state {
  align-items: center;
  border: 1px dashed #d7d0c5;
  border-radius: 0.65rem;
  display: flex;
  flex-direction: column;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.empty-state > span:first-child {
  font-size: 2rem;
}

.empty-state h3 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  margin: 0.75rem 0 0;
}

.empty-state p {
  color: #726e67;
  margin: 0.45rem 0 1rem;
}

.empty-state--compact {
  padding: 2rem 1.5rem;
}

.event-form {
  display: grid;
  gap: 1.25rem;
}

.form-errors {
  border-left: 4px solid currentColor;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.form-errors h2 {
  font: inherit;
  font-weight: 800;
  margin: 0;
}

.form-errors ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.form-section {
  background: white;
  border: 1px solid #e5dfd6;
  border-radius: 0.75rem;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.section-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  width: 100%;
}

.section-heading > span:first-child {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.section-heading h2,
.section-heading strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  margin: 0;
}

.section-heading p,
.section-heading small {
  color: #706c65;
  display: block;
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  margin: 0.3rem 0 0;
}

.section-heading--actions .button {
  margin-left: auto;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 750;
}

.form-field input:not([type="radio"]):not([type="hidden"]),
.form-field textarea {
  background: #fffefb;
  border: 1px solid #cbc5bc;
  border-radius: 0.45rem;
  color: inherit;
  font: inherit;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.form-field input[type="file"] {
  border-style: dashed !important;
  padding: 0.8rem !important;
}

.form-field textarea {
  min-height: 4.7rem;
  resize: vertical;
}

.field-hint {
  color: #777169;
  font-size: 0.75rem;
  margin: 0;
}

.field_with_errors {
  display: contents;
}

.field_with_errors input,
.field_with_errors textarea {
  border-color: #ae3d34 !important;
}

.cover-preview {
  border-radius: 0.45rem;
  margin-top: 0.5rem;
  max-height: 16rem;
  object-fit: cover;
  width: 100%;
}

.theme-picker {
  min-inline-size: 0;
}

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

.theme-card {
  border: 1px solid #d9d2c9;
  border-radius: 0.55rem;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  overflow: hidden;
  padding: 0 0 0.8rem;
  position: relative;
}

.theme-card input {
  accent-color: var(--coral);
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
}

.theme-card:has(input:checked) {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--coral) 18%, transparent);
}

.theme-card strong {
  padding: 0 0.75rem;
}

.theme-card__preview {
  height: 6rem;
}

.theme-card--wedding .theme-card__preview {
  background: radial-gradient(circle at 70% 35%, #f9e9dd 0 9%, transparent 10%), linear-gradient(135deg, #526b4f, #d8c8ad 48%, #f5ece0);
}

.theme-card--birthday .theme-card__preview {
  background: radial-gradient(circle at 25% 30%, #ef6655 0 8%, transparent 9%), radial-gradient(circle at 70% 65%, #55a1a5 0 7%, transparent 8%), linear-gradient(135deg, #ffe4eb, #fff3c7);
}

.theme-card--party .theme-card__preview {
  background: radial-gradient(circle at 50% 30%, #fae19b 0 8%, transparent 9%), linear-gradient(135deg, #171b2f, #68415f 55%, #b47c4b);
}

.mission-list {
  display: grid;
  gap: 0.8rem;
}

.mission-card {
  align-items: center;
  border: 1px solid #ddd7ce;
  border-radius: 0.55rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1rem;
}

.mission-card__order {
  align-items: center;
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.mission-card__order button {
  background: #f5f1eb;
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;
  height: 1.7rem;
  width: 1.8rem;
}

.mission-card__order span {
  color: #777169;
  font-size: 0.72rem;
  font-weight: 800;
}

.mission-card__fields {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(10rem, 0.75fr) minmax(14rem, 1.25fr);
}

.mission-card__fields textarea {
  min-height: 2.85rem;
}

.mission-card__remove {
  background: transparent;
  border: 0;
  color: #a13c33;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mission-reference-field { grid-column: 1 / -1; }
.mission-reference-preview { border-radius: 0.5rem; height: 8rem; object-fit: cover; width: 8rem; }
.mission-reference [hidden] { display: none; }
.mission-reference-unavailable { color: var(--error); font-size: 0.85rem; }

.mission-empty {
  color: #706b64;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 2.5rem 1rem 1rem;
  text-align: center;
}

.mission-empty span {
  font-size: 0.8rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.event-hero {
  border-bottom: 1px solid #e5dfd6;
  padding-bottom: 2rem;
}

.event-hero__cover {
  border-radius: 0.55rem;
  height: 7rem;
  object-fit: cover;
  width: 10rem;
}

.event-hero > div {
  flex: 1;
}

.workspace-section {
  margin-top: 2.5rem;
}

.mission-summary {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mission-summary li {
  background: white;
  border: 1px solid #e5dfd6;
  border-radius: 0.5rem;
  overflow: hidden;
}

.mission-summary__link {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
}

.mission-summary__link:hover,
.mission-summary__link:focus-visible {
  background: #faf7f1;
}

.mission-summary__text {
  flex: 1;
}

.mission-summary strong,
.mission-summary__text > span {
  display: block;
}

.mission-summary__text > span {
  color: #716d65;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.mission-summary__count {
  color: #716d65;
  font-size: 0.8rem;
  white-space: nowrap;
}

.mission-summary__arrow {
  color: #716d65;
  font-size: 1.5rem;
  line-height: 1;
}

.mission-gallery {
  margin: 0 auto;
  max-width: 76rem;
}

.mission-gallery__breadcrumbs {
  align-items: center;
  color: #716d65;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.mission-gallery__breadcrumbs a {
  color: inherit;
}

.mission-gallery__header {
  align-items: flex-start;
  border-bottom: 1px solid #e5dfd6;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 1.5rem;
}

.mission-gallery__header h1 {
  margin: 0.3rem 0;
}

.mission-gallery__prompt,
.mission-gallery__count {
  color: #716d65;
  margin: 0.4rem 0;
}

.mission-gallery__count {
  font-size: 0.85rem;
}

.mission-gallery__toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0;
}

.mission-gallery__toolbar form {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.mission-gallery__toolbar label {
  color: #716d65;
  font-size: 0.85rem;
}

.mission-gallery__toolbar select {
  background: white;
  border: 1px solid #d8d1c7;
  border-radius: 0.4rem;
  color: #282620;
  min-height: 2.75rem;
  padding: 0.4rem 2rem 0.4rem 0.7rem;
}

.mission-gallery__grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 1px;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.mission-gallery__grid > li {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  padding: 2px;
}

.mission-photo-card {
  background: #eee9e0;
  border: 0;
  border-radius: 0.15rem;
  cursor: zoom-in;
  display: block;
  height: 100%;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.mission-photo-card:focus-visible {
  outline: 3px solid #8b6842;
  outline-offset: 3px;
}

.mission-photo-card__image {
  display: block;
  height: 100%;
  width: 100%;
}

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

.mission-photo-card__fallback {
  align-items: center;
  color: #716d65;
  display: flex;
  font-size: 0.85rem;
  height: 100%;
  justify-content: center;
  min-height: 5rem;
  padding: 1rem;
}

.mission-gallery__empty {
  margin-top: 1rem;
}

.mission-gallery__pagination {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.mission-photo-dialog {
  background: transparent;
  border: 0;
  max-height: min(92vh, 58rem);
  max-width: min(92vw, 68rem);
  overflow: visible;
  padding: 0;
  width: 100%;
}

.mission-photo-dialog::backdrop {
  background: rgb(25 23 20 / 78%);
}

.mission-photo-dialog__surface {
  background: #fffdfa;
  border-radius: 0.65rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.8fr);
  max-height: min(92vh, 58rem);
  overflow: hidden;
  position: relative;
}

.mission-photo-dialog__close {
  align-items: center;
  background: white;
  border: 1px solid #e5dfd6;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  font-size: 1.5rem;
  height: 2.75rem;
  line-height: 1;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 2.75rem;
  z-index: 1;
}

.mission-photo-dialog__image-wrap {
  align-items: center;
  background: #201e1a;
  display: flex;
  justify-content: center;
  min-height: 18rem;
  min-width: 0;
}

.mission-photo-dialog__image-wrap img {
  max-height: min(92vh, 58rem);
  max-width: 100%;
  object-fit: contain;
}

.mission-photo-dialog__details {
  align-self: center;
  padding: 2rem;
  overflow-wrap: anywhere;
}

.mission-photo-dialog__details h2 {
  margin-top: 0.35rem;
}

.mission-photo-dialog__details p:not(.eyebrow) {
  color: #625e56;
  line-height: 1.5;
}

@media (max-width: 52rem) {
  .mission-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-gallery__header {
    display: block;
  }

  .mission-gallery__header > .button {
    display: inline-flex;
    margin-top: 1rem;
  }

  .mission-photo-dialog__surface {
    display: block;
    overflow-y: auto;
  }

  .mission-photo-dialog__image-wrap {
    max-height: 65vh;
  }

  .mission-photo-dialog__image-wrap img {
    max-height: 65vh;
  }

  .mission-photo-dialog__details {
    padding: 1.25rem;
  }
}

.danger-zone {
  border-top: 1px solid #e5dfd6;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

@media (max-width: 52rem) {
  .organizer-shell {
    display: block;
  }

  .organizer-sidebar {
    align-items: center;
    border-bottom: 1px solid #e5dfd6;
    border-right: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: auto;
    padding: 0.75rem 1rem;
    z-index: 10;
  }

  .organizer-brand {
    font-size: 1.35rem;
    padding: 0;
  }

  .organizer-nav {
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .organizer-nav__link {
    min-height: 2.4rem;
    padding: 0.5rem 0.65rem;
  }

  .organizer-nav__link--disabled {
    display: none;
  }

  .account-menu {
    margin: 0;
  }

  .account-menu summary > span:nth-child(2) {
    display: none;
  }

  .account-menu form {
    bottom: auto;
    left: auto;
    min-width: 8rem;
    right: 0;
    top: 3rem;
  }

  .organizer-main {
    padding: 2rem 1.25rem 3rem;
  }

  .event-row {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
  }

  .event-row__theme {
    display: none;
  }

  .mission-card__fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 38rem) {
  .page-heading--actions,
  .event-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
  }

  .page-heading--actions .button {
    width: 100%;
  }

  .event-row {
    gap: 0.8rem;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  }

  .event-row__details strong {
    font-size: 1.05rem;
  }

  .event-row__details span {
    font-size: 0.72rem;
  }

  .form-grid,
  .theme-options {
    grid-template-columns: 1fr;
  }

  .section-heading--actions {
    flex-wrap: wrap;
  }

  .section-heading--actions .button {
    margin-left: 2.35rem;
    width: calc(100% - 2.35rem);
  }

  .mission-card {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mission-card__remove {
    grid-column: 2;
    justify-self: start;
  }

  .form-actions .button {
    flex: 1;
  }
}
