.oa-form-wrap,
.oa-gallery-grid,
.oa-wall,
.oa-print-sheet {
  --oa-border: #e5e7eb;
  --oa-muted: #6b7280;
  --oa-paper: #fffdf8;
  --oa-surface: #ffffff;
  --oa-ink: #1f2937;
  --oa-accent: #111827;
  --oa-accent-soft: rgba(17, 24, 39, 0.06);
  --oa-font-family: "Segoe Print", "Bradley Hand", "Hiragino Maru Gothic ProN", "Yu Gothic", cursive;
  --oa-font-size: 1.05rem;
}

.oa-form-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.oa-form-header {
  margin-bottom: 1.2rem;
}

.oa-form-header h2 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.oa-intro,
.oa-campaign-copy,
.oa-policy-box,
.oa-locked-box,
.oa-alert {
  margin-bottom: 1rem;
}

.oa-policy-box,
.oa-locked-box,
.oa-alert {
  padding: 1rem 1.15rem;
  border: 1px solid var(--oa-border);
  border-radius: 18px;
  background: #fff;
}

.oa-alert--success {
  border-color: #86efac;
  background: #f0fdf4;
}

.oa-alert--error {
  border-color: #fca5a5;
  background: #fef2f2;
}

.oa-policy-examples,
.oa-field__help,
.oa-live-preview__tip,
.oa-quota-note,
.oa-section-heading p {
  color: var(--oa-muted);
  font-size: 0.95rem;
}

.oa-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.oa-composer__editor,
.oa-composer__preview {
  min-width: 0;
}

.oa-composer__preview {
  position: sticky;
  top: 24px;
}

.oa-mobile-nav {
  display: none;
}

.oa-message-form {
  display: grid;
  gap: 1rem;
}

.oa-editor-section {
  padding: 1rem;
  border: 1px solid var(--oa-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.oa-editor-section--submit {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,0.9));
}

.oa-section-heading {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.oa-section-heading h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.oa-section-heading p {
  margin: 0;
}

.oa-section-step {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--oa-accent);
  color: #fff;
  font-weight: 700;
  flex: 0 0 34px;
}

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

.oa-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.oa-field--full {
  grid-column: 1 / -1;
}

.oa-message-form label {
  font-weight: 600;
}

.oa-message-form input[type="text"],
.oa-message-form input[type="url"],
.oa-message-form input[type="file"],
.oa-message-form input[type="color"],
.oa-message-form select,
.oa-message-form textarea {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--oa-border);
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.oa-message-form input:focus,
.oa-message-form select:focus,
.oa-message-form textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.oa-message-form input[type="color"] {
  min-height: 54px;
  padding: 0.35rem;
}

.oa-message-form input[type="file"] {
  padding: 0.85rem;
}

.oa-message-form textarea {
  min-height: 180px;
  resize: vertical;
}

.oa-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
}

.oa-consent input {
  margin-top: 0.2rem;
}

.oa-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.oa-swatch {
  position: relative;
  display: inline-flex;
}

.oa-swatch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.oa-swatch__dot {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--oa-swatch);
  border: 2px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.oa-swatch input:checked + .oa-swatch__dot {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12);
}

.oa-live-preview {
  padding: 1rem;
  border: 1px solid var(--oa-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.oa-live-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.oa-live-preview__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oa-muted);
}

.oa-live-preview__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.oa-preview-scrollback {
  border: 0;
  border-radius: 999px;
  background: var(--oa-accent-soft);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.oa-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.oa-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
}

.oa-live-preview__canvas {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248,250,252,1), rgba(255,255,255,1));
  padding: 0.6rem;
}

.oa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background: var(--oa-paper);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  isolation: isolate;
}

.oa-card::before,
.oa-card::after {
  pointer-events: none;
}

.oa-card--empty {
  background: #fff;
  border-style: dashed;
  box-shadow: none;
}

.oa-card--paper {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2)),
    repeating-linear-gradient(180deg, #fffefb 0px, #fffefb 26px, #f8f3e7 27px, #fffefb 28px);
}

.oa-card--floral {
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.14), transparent 30%),
    #fffdf8;
}

.oa-card--gallery {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), transparent),
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(255,255,255,0)),
    #ffffff;
}

.oa-card--stamp::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(190, 24, 93, 0.35);
  border-radius: 22px;
}

.oa-card--ribbon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  width: 76px;
  height: 86px;
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.85), rgba(251, 146, 60, 0.72));
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  opacity: 0.22;
}

.oa-card--circle::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 2px solid rgba(14, 116, 144, 0.22);
  border-radius: 999px;
}

.oa-card--diamond::before {
  content: "";
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 2px solid rgba(124, 58, 237, 0.2);
  border-radius: 24px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.oa-card--heart::before {
  content: "❤";
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-size: 180px;
  line-height: 1;
  color: rgba(244, 63, 94, 0.08);
}

.oa-card__image {
  min-height: 0;
  flex: 0 0 auto;
}

.oa-card__img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.oa-card__content {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.2rem 1.2rem;
  color: var(--oa-ink, #1f2937);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}

.oa-card__message {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: var(--oa-font-size, 1.05rem);
  font-family: var(--oa-font-family);
  letter-spacing: 0.01em;
  transform: rotate(-0.45deg);
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
  border-radius: 14px;
}

.oa-card__footer {
  margin-top: 1rem;
  font-weight: 600;
  font-size: clamp(0.9rem, calc(var(--oa-font-size, 1.05rem) * 0.82), 1.02rem);
  font-family: var(--oa-font-family);
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
  border-radius: 14px;
}

.oa-card.is-focus-message .oa-card__message,
.oa-card.is-focus-image .oa-card__image,
.oa-card.is-focus-writer .oa-card__footer,
.oa-card.is-focus-card .oa-card__content {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22);
  background: rgba(255, 251, 235, 0.82);
}

.oa-card--align-center .oa-card__message,
.oa-card--align-center .oa-card__footer {
  text-align: center;
}

.oa-card--align-right .oa-card__message,
.oa-card--align-right .oa-card__footer {
  text-align: right;
}

.oa-card--align-left .oa-card__message,
.oa-card--align-left .oa-card__footer {
  text-align: left;
}

.oa-card--layout-image-left,
.oa-card--layout-image-right {
  flex-direction: row;
}

.oa-card--layout-image-left .oa-card__image,
.oa-card--layout-image-right .oa-card__image {
  width: 42%;
  min-height: 100%;
}

.oa-card--layout-image-left .oa-card__img,
.oa-card--layout-image-right .oa-card__img {
  max-height: none;
  min-height: 100%;
}

.oa-card--layout-image-left .oa-card__content,
.oa-card--layout-image-right .oa-card__content {
  width: 58%;
}

.oa-card--layout-image-right .oa-card__image {
  order: 2;
}

.oa-card--layout-image-right .oa-card__content {
  order: 1;
}

.oa-card--layout-image-bottom .oa-card__image {
  order: 2;
}

.oa-card--layout-image-bottom .oa-card__content {
  order: 1;
}

.oa-card--layout-focus-text .oa-card__image {
  max-height: 100px;
  opacity: 0.9;
}

.oa-card--layout-focus-text .oa-card__content {
  padding-top: 1.45rem;
  padding-bottom: 1.45rem;
}

.oa-card--no-image .oa-card__content {
  width: auto;
}

.oa-live-preview .oa-card {
  max-width: 100%;
}

.oa-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.oa-submit-button.button {
  min-height: 48px;
  padding-inline: 1.45rem;
  border-radius: 999px;
  font-size: 1rem;
}

.oa-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.oa-wall {
  position: relative;
  min-height: 340px;
}

.oa-wall__item {
  display: none;
}

.oa-wall__item.is-active {
  display: block;
}

.oa-order-tokens {
  margin-top: 2rem;
}

.oa-token-list {
  padding-left: 1.2rem;
}

@media (max-width: 980px) {
  .oa-composer {
    grid-template-columns: 1fr;
  }

  .oa-composer__preview {
    position: static;
    order: -1;
  }

  .oa-live-preview {
    padding: 0.9rem;
  }
}

@media (max-width: 767px) {
  .oa-form-wrap {
    max-width: 100%;
  }

  .oa-policy-box,
  .oa-locked-box,
  .oa-alert,
  .oa-editor-section,
  .oa-live-preview {
    border-radius: 18px;
  }

  .oa-mobile-nav {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    margin-bottom: 0.9rem;
    position: sticky;
    top: 8px;
    z-index: 5;
  }

  .oa-mobile-nav__button {
    border: 1px solid var(--oa-border);
    background: rgba(255,255,255,0.96);
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 600;
  }

  .oa-form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .oa-editor-section {
    padding: 0.9rem;
  }

  .oa-section-heading {
    gap: 0.7rem;
    margin-bottom: 0.85rem;
  }

  .oa-section-step {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 0.9rem;
  }

  .oa-message-form input[type="text"],
  .oa-message-form input[type="url"],
  .oa-message-form input[type="file"],
  .oa-message-form input[type="color"],
  .oa-message-form select,
  .oa-message-form textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .oa-message-form textarea {
    min-height: 180px;
  }

  .oa-swatch__dot {
    width: 40px;
    height: 40px;
  }

  .oa-live-preview__header {
    flex-direction: column;
    align-items: stretch;
  }

  .oa-preview-scrollback {
    width: 100%;
  }

  .oa-card {
    min-height: 250px;
    border-radius: 22px;
  }

  .oa-card__content {
    padding: 1rem;
  }

  .oa-card__message {
    font-size: 1rem;
    line-height: 1.75;
  }

  .oa-card--layout-image-left,
  .oa-card--layout-image-right {
    flex-direction: column;
  }

  .oa-card--layout-image-left .oa-card__image,
  .oa-card--layout-image-right .oa-card__image,
  .oa-card--layout-image-left .oa-card__content,
  .oa-card--layout-image-right .oa-card__content {
    width: auto;
  }

  .oa-card--layout-image-right .oa-card__image {
    order: 0;
  }

  .oa-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .oa-submit-button.button {
    width: 100%;
    justify-content: center;
  }

  .oa-quota-note {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .oa-submit-modal__dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    padding: 1rem 0.9rem;
    border-radius: 18px;
  }

  .oa-submit-modal__actions,
  .oa-thanks-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .oa-thanks-card {
    padding: 1.05rem 0.9rem;
    border-radius: 20px;
  }
}

@media print {
  body.wp-admin .wrap > *:not(.oa-print-sheet):not(h1) {
    display: none !important;
  }

  .oa-print-sheet {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8mm;
  }

  .oa-card--print {
    min-height: 128mm;
    break-inside: avoid;
    box-shadow: none;
  }
}


body.oa-modal-open {
  overflow: hidden;
}

.oa-submit-modal[hidden] {
  display: none !important;
}

.oa-submit-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.oa-submit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
}

.oa-submit-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: 1.2rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.oa-submit-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.oa-submit-modal__eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oa-muted);
}

.oa-submit-modal__dialog h3 {
  margin: 0 0 0.45rem;
}

.oa-submit-modal__lead {
  margin: 0 0 1rem;
  color: var(--oa-muted);
}

.oa-submit-modal__preview {
  margin-bottom: 1rem;
}

.oa-submit-modal__preview .oa-card {
  box-shadow: none;
}

.oa-submit-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.oa-thanks-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}

.oa-thanks-card {
  padding: 1.3rem;
  border: 1px solid var(--oa-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,0.96));
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.oa-thanks-card__icon {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

.oa-thanks-card__eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oa-muted);
}

.oa-thanks-card__title {
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.oa-thanks-card__campaign {
  margin: 0 0 0.8rem;
  font-weight: 700;
}

.oa-thanks-card__message {
  margin: 0 auto 1rem;
  max-width: 48rem;
  line-height: 1.85;
}

.oa-thanks-card__notice {
  display: grid;
  gap: 0.2rem;
  margin: 0 auto 1rem;
  max-width: 44rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--oa-muted);
}

.oa-thanks-card__notice strong {
  color: var(--oa-accent);
}

.oa-thanks-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.oa-submit-modal__summary {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.oa-submit-modal__summary-title {
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.oa-submit-modal__summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.9rem;
  margin: 0;
}

.oa-submit-modal__summary-grid > div {
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.oa-submit-modal__summary-grid dt {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--oa-muted);
}

.oa-submit-modal__summary-grid dd {
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
}

@media (max-width: 767px) {
  .oa-submit-modal__summary-grid {
    grid-template-columns: 1fr;
  }

  .oa-submit-modal__dialog {
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    padding-bottom: 1.1rem;
  }

  .oa-submit-modal__close {
    top: 8px;
    right: 8px;
  }
}

/* v0.9.0 cute JP-friendly refresh */
.oa-form-wrap,
.oa-gallery-grid,
.oa-wall,
.oa-print-sheet {
  --oa-border: #eadff1;
  --oa-muted: #6e6480;
  --oa-paper: #fffdfb;
  --oa-surface: #ffffff;
  --oa-ink: #2d2340;
  --oa-accent: #1d2b49;
  --oa-accent-soft: rgba(29, 43, 73, 0.08);
  --oa-peach: #fff1f3;
  --oa-lilac: #f7f2ff;
  --oa-yellow: #fff8db;
  --oa-pink: #f471b5;
}

.oa-form-wrap {
  padding: 10px 0 18px;
}

.oa-form-header h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: 0.01em;
}

.oa-form-header,
.oa-policy-box,
.oa-locked-box,
.oa-alert {
  position: relative;
}

.oa-policy-box,
.oa-locked-box,
.oa-alert,
.oa-editor-section,
.oa-live-preview,
.oa-thanks-card,
.oa-submit-modal__dialog {
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.08), transparent 24%),
    #fff;
}

.oa-policy-box {
  border: 1px solid #f4c7d9;
  box-shadow: 0 10px 28px rgba(214, 101, 142, 0.08);
}

.oa-policy-box p:first-child strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.oa-policy-box p:first-child strong::before {
  content: "✿";
  color: var(--oa-pink);
}

.oa-editor-section {
  border: 1px solid #efe5f5;
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(46, 35, 64, 0.06);
}

.oa-editor-section--submit {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 25%),
    radial-gradient(circle at bottom left, rgba(244, 114, 182, 0.1), transparent 28%),
    linear-gradient(180deg, #fffdfa, #fff6fb);
}

.oa-section-heading {
  margin-bottom: 1.15rem;
}

.oa-section-step {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  background: linear-gradient(180deg, #13213f, #1b2c56);
  box-shadow: 0 10px 20px rgba(19, 33, 63, 0.18);
}

.oa-section-heading h3 {
  font-size: 1.18rem;
}

.oa-message-form label {
  font-size: 0.98rem;
  color: #241b37;
}

.oa-message-form input[type="text"],
.oa-message-form input[type="url"],
.oa-message-form input[type="file"],
.oa-message-form input[type="color"],
.oa-message-form select,
.oa-message-form textarea {
  border-color: #e8deef;
  background: linear-gradient(180deg, #fffefe, #fff9fd);
}

.oa-message-form input::placeholder,
.oa-message-form textarea::placeholder {
  color: #a08fae;
}

.oa-message-form input:focus,
.oa-message-form select:focus,
.oa-message-form textarea:focus {
  border-color: #e798bf;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.14);
}

.oa-field__help {
  line-height: 1.7;
}

.oa-swatch-list {
  gap: 0.75rem;
}

.oa-swatch__dot {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(45, 35, 64, 0.08);
}

.oa-swatch input:checked + .oa-swatch__dot {
  box-shadow: 0 0 0 5px rgba(244, 114, 182, 0.14);
}

.oa-submit-button.button,
.oa-thanks-card__actions .button,
.oa-submit-modal__actions .button.button-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #22315a, #f471b5);
  box-shadow: 0 14px 28px rgba(244, 114, 182, 0.22);
}

.oa-submit-modal__actions .button:not(.button-primary),
.oa-preview-scrollback {
  border: 1px solid #eadff1;
  background: #fff7fb;
  color: #473a5d;
}

.oa-mobile-nav__button,
.oa-preview-chip {
  border-color: #eadff1;
  background: linear-gradient(180deg, #ffffff, #fff8fc);
}

.oa-live-preview {
  border-color: #eee2f5;
  box-shadow: 0 18px 45px rgba(46, 35, 64, 0.1);
}

.oa-live-preview__eyebrow,
.oa-submit-modal__eyebrow,
.oa-thanks-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.08em;
}

.oa-live-preview__eyebrow::before,
.oa-submit-modal__eyebrow::before,
.oa-thanks-card__eyebrow::before {
  content: "✦";
  color: var(--oa-pink);
}

.oa-live-preview__title {
  color: #2b2141;
}

.oa-live-preview__canvas {
  padding: 0.8rem;
  background: linear-gradient(180deg, #fffafd, #fff);
  border: 1px dashed #eadff1;
}

.oa-card {
  border-color: rgba(45, 35, 64, 0.08);
}

.oa-card.is-focus-message .oa-card__message,
.oa-card.is-focus-image .oa-card__image,
.oa-card.is-focus-writer .oa-card__footer,
.oa-card.is-focus-card .oa-card__content {
  box-shadow: 0 0 0 5px rgba(255, 221, 87, 0.36);
  background: rgba(255, 251, 235, 0.9);
}

.oa-submit-modal__dialog {
  border: 1px solid #efe3f4;
}

.oa-submit-modal__summary {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f0e6f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffafd, #fff);
}

.oa-submit-modal__summary-title {
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #2b2141;
}

.oa-submit-modal__summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.oa-submit-modal__summary-grid dt {
  font-size: 0.82rem;
  color: #8a7c99;
  margin-bottom: 0.16rem;
}

.oa-submit-modal__summary-grid dd {
  margin: 0;
  font-weight: 700;
  color: #2b2141;
}

@media (max-width: 767px) {
  .oa-editor-section {
    border-radius: 24px;
  }

  .oa-mobile-nav {
    top: 10px;
    padding-inline: 2px;
  }

  .oa-mobile-nav__button {
    box-shadow: 0 8px 18px rgba(46, 35, 64, 0.06);
  }

  .oa-section-step {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .oa-submit-modal__summary-grid {
    grid-template-columns: 1fr;
  }
}


/* v0.9.0 moderated playful gallery */
.oa-gallery-stage {
  display: grid;
  gap: 1.2rem;
}

.oa-gallery-stage__intro {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,245,251,0.96));
  border: 1px solid rgba(224, 195, 220, 0.55);
  border-radius: 24px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 14px 36px rgba(192, 120, 169, 0.08);
}

.oa-gallery-stage__eyebrow {
  font-size: 0.84rem;
  font-weight: 700;
  color: #b05388;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oa-gallery-stage__title {
  margin: 0.3rem 0 0.45rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
}

.oa-gallery-stage__lead {
  margin: 0;
  color: #6d5871;
  line-height: 1.8;
}

.oa-gallery-board {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.oa-gallery-board__item {
  width: min(100%, 220px);
  transform: translateY(var(--oa-card-lift, 0px)) rotate(var(--oa-card-rotate, 0deg)) scale(var(--oa-card-scale, 1));
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  cursor: pointer;
  outline: none;
  filter: saturate(0.98);
}

.oa-gallery-board__item:hover,
.oa-gallery-board__item:focus-visible {
  transform: translateY(calc(var(--oa-card-lift, 0px) - 6px)) rotate(var(--oa-card-rotate, 0deg)) scale(calc(var(--oa-card-scale, 1) + 0.03));
  filter: saturate(1.06);
}

.oa-gallery-board__item .oa-card {
  min-height: 210px;
  box-shadow: 0 18px 26px rgba(64, 43, 70, 0.12), 0 5px 0 rgba(255,255,255,0.88) inset;
}

.oa-gallery-board__item:nth-child(4n) {
  margin-top: 18px;
}

.oa-gallery-board__item:nth-child(5n) {
  width: min(100%, 250px);
}

.oa-gallery-board__item:nth-child(6n) {
  margin-top: -10px;
}

.oa-gallery-empty {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,241,247,0.96));
  border: 1px dashed rgba(194, 140, 177, 0.55);
  border-radius: 26px;
  padding: 2rem 1.25rem;
  text-align: center;
}

.oa-gallery-empty__emoji {
  font-size: 2rem;
  margin-bottom: 0.45rem;
}

.oa-gallery-empty__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.oa-gallery-empty__lead {
  margin: 0.5rem auto 0;
  max-width: 38rem;
  color: #6d5871;
}

.oa-gallery-lightbox[hidden] {
  display: none;
}

.oa-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 28px);
}

.oa-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(191, 124, 179, 0.18), transparent 28%), rgba(37, 22, 41, 0.62);
  backdrop-filter: blur(10px);
}

.oa-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 820px);
  max-height: min(92vh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.9rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(253,247,251,0.98));
  border: 1px solid rgba(223, 188, 213, 0.78);
  border-radius: 32px;
  box-shadow: 0 34px 80px rgba(31, 16, 33, 0.24);
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
}

.oa-gallery-lightbox__dialog::before,
.oa-gallery-lightbox__dialog::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 20px;
  background: linear-gradient(180deg, rgba(255, 239, 171, 0.92), rgba(245, 218, 137, 0.82));
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(126, 96, 36, 0.16);
  opacity: 0.85;
}

.oa-gallery-lightbox__dialog::before {
  top: 14px;
  left: 32px;
  transform: rotate(-7deg);
}

.oa-gallery-lightbox__dialog::after {
  top: 18px;
  right: 78px;
  transform: rotate(8deg);
}

.oa-gallery-lightbox__chrome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.2rem 0.25rem 0;
}

.oa-gallery-lightbox__meta {
  min-width: 0;
}

.oa-gallery-lightbox__close {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(212, 173, 200, 0.9);
  background: linear-gradient(135deg, rgba(185, 140, 255, 0.92), rgba(255, 181, 121, 0.96));
  color: #2a1329;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(167, 108, 151, 0.24);
}

.oa-gallery-lightbox__close:hover,
.oa-gallery-lightbox__close:focus-visible {
  transform: translateY(-1px) scale(1.03);
}

.oa-gallery-lightbox__hint {
  font-size: 0.8rem;
  font-weight: 800;
  color: #b05289;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oa-gallery-lightbox__title {
  margin: 0.2rem 0 0.28rem;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  color: #4f2749;
}

.oa-gallery-lightbox__sub {
  margin: 0;
  color: #7a6277;
  line-height: 1.7;
  font-size: 0.95rem;
}

.oa-gallery-lightbox__body {
  overflow: auto;
  padding: 0.3rem 0.25rem 0.35rem;
}

.oa-gallery-lightbox__body .oa-card {
  width: min(100%, 620px);
  margin: 0 auto;
  transform: rotate(0deg) !important;
  min-height: 0;
  box-shadow: 0 24px 42px rgba(64, 43, 70, 0.16), 0 2px 0 rgba(255,255,255,0.92) inset;
}

.oa-gallery-lightbox__body .oa-card,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-left,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-right,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-bottom,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-focus-text {
  flex-direction: column;
}

.oa-gallery-lightbox__body .oa-card .oa-card__image,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-left .oa-card__image,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-right .oa-card__image,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-bottom .oa-card__image,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-focus-text .oa-card__image {
  width: 100%;
  min-height: 0;
  max-height: none;
  order: 0;
}

.oa-gallery-lightbox__body .oa-card .oa-card__img,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-left .oa-card__img,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-right .oa-card__img,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-bottom .oa-card__img,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-focus-text .oa-card__img {
  width: 100%;
  height: auto;
  max-height: min(42vh, 360px);
  min-height: 0;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(255, 247, 252, 0.95), rgba(250, 240, 247, 0.95));
  border-radius: 18px 18px 0 0;
}

.oa-gallery-lightbox__body .oa-card .oa-card__content,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-left .oa-card__content,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-right .oa-card__content {
  width: auto;
  min-width: 0;
}

body.oa-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .oa-gallery-board {
    justify-content: center;
    gap: 0.85rem;
  }

  .oa-gallery-board__item,
  .oa-gallery-board__item:nth-child(5n) {
    width: min(100%, 170px);
  }

  .oa-gallery-board__item .oa-card {
    min-height: 180px;
  }

  .oa-gallery-lightbox__dialog {
    width: min(96vw, 820px);
    max-height: min(94vh, 920px);
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 24px;
  }

  .oa-gallery-lightbox__dialog::before,
  .oa-gallery-lightbox__dialog::after {
    width: 62px;
    height: 16px;
  }

  .oa-gallery-lightbox__dialog::before {
    left: 18px;
  }

  .oa-gallery-lightbox__dialog::after {
    right: 62px;
  }

  .oa-gallery-lightbox__chrome {
    gap: 0.75rem;
    padding-top: 0.25rem;
  }

  .oa-gallery-lightbox__title {
    font-size: 1.06rem;
  }

  .oa-gallery-lightbox__sub {
    font-size: 0.88rem;
  }

  .oa-gallery-lightbox__close {
    width: 40px;
    height: 40px;
  }

  .oa-gallery-lightbox__body .oa-card {
    width: 100%;
  }

  .oa-gallery-lightbox__body .oa-card .oa-card__img {
    max-height: 34vh;
  }
}


/* v0.9.2 thanks button polish + stable gallery media */
.oa-thanks-card__actions {
  margin-top: 1.15rem;
  gap: 0.9rem;
}

.oa-thanks-card__actions .oa-button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.9rem 1.3rem !important;
  border-radius: 999px !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent !important;
  box-shadow: 0 14px 30px rgba(93, 64, 125, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.oa-thanks-card__actions .oa-button:hover,
.oa-thanks-card__actions .oa-button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow: 0 18px 36px rgba(93, 64, 125, 0.18);
}

.oa-thanks-card__actions .oa-button::before {
  font-size: 1rem;
  line-height: 1;
}

.oa-thanks-card__actions .oa-button--gallery {
  background: linear-gradient(135deg, #6f6cff, #f471b5) !important;
  color: #fff !important;
}

.oa-thanks-card__actions .oa-button--gallery::before {
  content: "🖼️";
}

.oa-thanks-card__actions .oa-button--write {
  background: linear-gradient(135deg, #fff8e8, #ffe9f4) !important;
  border-color: #f3d7e7 !important;
  color: #5f3f69 !important;
}

.oa-thanks-card__actions .oa-button--write::before {
  content: "✍️";
}

.oa-thanks-card__actions .oa-button--home {
  background: #fff !important;
  border-color: #eadff1 !important;
  color: #4b3d60 !important;
}

.oa-thanks-card__actions .oa-button--home::before {
  content: "🏠";
}

.oa-gallery-board__item .oa-card,
.oa-wall .oa-card {
  flex-direction: column !important;
}

.oa-gallery-board__item .oa-card__image,
.oa-wall .oa-card__image {
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 248, 252, 0.98), rgba(250, 241, 247, 0.98));
  border-bottom: 1px solid rgba(223, 188, 213, 0.35);
}

.oa-gallery-board__item .oa-card__img,
.oa-wall .oa-card__img {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  background: #fff;
}

.oa-gallery-board__item .oa-card__content,
.oa-wall .oa-card__content {
  width: auto !important;
  min-width: 0;
}

.oa-wall {
  display: grid;
}

.oa-wall__item .oa-card {
  max-width: min(100%, 760px);
  margin: 0 auto;
}

.oa-wall__item .oa-card__image {
  aspect-ratio: 16 / 10;
}

.oa-wall__item .oa-card__message {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.oa-gallery-board__item .oa-card__message {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oa-gallery-board__item .oa-card__footer {
  margin-top: 0.8rem;
}

.oa-gallery-lightbox__dialog {
  width: min(96vw, 900px);
  max-height: min(92vh, 980px);
  border-radius: 34px;
  padding: clamp(16px, 2vw, 26px);
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.10), transparent 24%),
    radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(253,247,251,0.98));
}

.oa-gallery-lightbox__chrome {
  align-items: center;
  padding-top: 0.35rem;
}

.oa-gallery-lightbox__meta {
  max-width: calc(100% - 64px);
}

.oa-gallery-lightbox__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.oa-gallery-lightbox__hint::before {
  content: "💌";
}

.oa-gallery-lightbox__body {
  padding: 0.4rem 0.25rem 0.35rem;
}

.oa-gallery-lightbox__body .oa-card {
  width: min(100%, 720px);
  overflow: hidden;
}

.oa-gallery-lightbox__body .oa-card__image {
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 247, 252, 0.95), rgba(250, 240, 247, 0.95));
}

.oa-gallery-lightbox__body .oa-card__img {
  width: 100%;
  height: auto;
  max-height: min(44vh, 420px);
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  background: #fff;
}

.oa-gallery-lightbox__body .oa-card__content {
  padding: 1.15rem 1.2rem 1.25rem;
}

.oa-gallery-lightbox__body .oa-card__message {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.9;
}

.oa-gallery-lightbox__body .oa-card__footer {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

@media (max-width: 767px) {
  .oa-thanks-card__actions .oa-button {
    width: 100%;
  }

  .oa-gallery-board__item,
  .oa-gallery-board__item:nth-child(5n) {
    width: min(100%, 180px);
  }

  .oa-gallery-board__item .oa-card__image {
    aspect-ratio: 1 / 1;
  }

  .oa-wall__item .oa-card__image {
    aspect-ratio: 4 / 3;
  }

  .oa-gallery-lightbox__dialog {
    border-radius: 26px;
    padding: 0.95rem;
  }

  .oa-gallery-lightbox__body .oa-card__img {
    max-height: 32vh;
    border-radius: 18px;
  }

  .oa-gallery-lightbox__body .oa-card__content {
    padding: 1rem;
  }
}


/* v0.9.3 carousel wall + stable gallery cards */
.oa-gallery-board__item .oa-card,
.oa-wall__item .oa-card,
.oa-gallery-lightbox__body .oa-card,
.oa-gallery-lightbox__body .oa-card.oa-card--lightbox {
  min-height: auto;
}

.oa-gallery-board__item .oa-card,
.oa-wall__item .oa-card,
.oa-gallery-lightbox__body .oa-card {
  display: flex;
  flex-direction: column;
}

.oa-gallery-board__item .oa-card.oa-card--layout-image-left,
.oa-gallery-board__item .oa-card.oa-card--layout-image-right,
.oa-wall__item .oa-card.oa-card--layout-image-left,
.oa-wall__item .oa-card.oa-card--layout-image-right,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-left,
.oa-gallery-lightbox__body .oa-card.oa-card--layout-image-right {
  flex-direction: column;
}

.oa-gallery-board__item .oa-card__image,
.oa-wall__item .oa-card__image,
.oa-gallery-lightbox__body .oa-card__image {
  width: 100% !important;
  min-height: 0 !important;
  max-height: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,241,246,0.82));
}

.oa-gallery-board__item .oa-card__img,
.oa-wall__item .oa-card__img,
.oa-gallery-lightbox__body .oa-card__img {
  width: 100%;
  max-height: min(38vh, 320px);
  min-height: 0 !important;
  object-fit: contain;
  object-position: center center;
  background: rgba(255,255,255,0.9);
}

.oa-gallery-lightbox__body .oa-card__img {
  max-height: min(46vh, 420px);
}

.oa-gallery-board__item .oa-card__content,
.oa-wall__item .oa-card__content,
.oa-gallery-lightbox__body .oa-card__content {
  width: 100% !important;
}

.oa-gallery-lightbox__body .oa-card {
  border-radius: 28px;
  overflow: hidden;
}

.oa-gallery-lightbox__body .oa-card__content {
  padding: 1.1rem 1.15rem 1.25rem;
}

.oa-wall-stage {
  display: grid;
  gap: 1.2rem;
}

.oa-wall-stage__intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  background:
    radial-gradient(circle at top left, rgba(255, 205, 236, 0.28), transparent 25%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249,242,248,0.98));
  border: 1px solid rgba(224, 195, 220, 0.56);
  border-radius: 26px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 18px 36px rgba(192, 120, 169, 0.08);
}

.oa-wall-stage__eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  color: #b05388;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oa-wall-stage__title {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.oa-wall-stage__lead {
  margin: 0;
  color: #6d5871;
  line-height: 1.8;
}

.oa-wall-stage__badge {
  flex: 0 0 auto;
  align-self: center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,237,248,0.95));
  border: 1px solid rgba(216, 183, 210, 0.82);
  color: #95507d;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(177, 127, 161, 0.12);
}

.oa-wall {
  position: relative;
  min-height: 420px;
  padding: 1.2rem 3.8rem 1rem;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,0.96), rgba(255,245,251,0.9) 32%, rgba(239,225,235,0.95) 70%),
    linear-gradient(180deg, rgba(91, 64, 86, 0.05), rgba(255,255,255,0));
  border: 1px solid rgba(223, 194, 218, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 20px 44px rgba(124, 86, 116, 0.12);
}

.oa-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(255, 233, 245, 0.55), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
}

.oa-wall__viewport {
  position: relative;
  min-height: 360px;
}

.oa-wall__track {
  position: relative;
  min-height: 360px;
}

.oa-wall__item {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, 440px);
  max-width: calc(100% - 2rem);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) scale(0.78) rotate(0deg);
  transition: transform 320ms ease, opacity 280ms ease, filter 280ms ease;
  filter: blur(2px) saturate(0.92);
}

.oa-wall__item .oa-card {
  box-shadow: 0 26px 42px rgba(70, 46, 66, 0.16);
}

.oa-wall__item.is-active,
.oa-wall__item.is-prev,
.oa-wall__item.is-next {
  opacity: 1;
  pointer-events: auto;
}

.oa-wall__item.is-active {
  z-index: 3;
  transform: translateX(0) scale(1) rotate(-1.25deg);
  filter: none;
}

.oa-wall__item.is-prev {
  z-index: 2;
  transform: translateX(-48%) scale(0.84) rotate(-6deg);
  filter: blur(0.6px) saturate(0.94);
}

.oa-wall__item.is-next {
  z-index: 2;
  transform: translateX(48%) scale(0.84) rotate(6deg);
  filter: blur(0.6px) saturate(0.94);
}

.oa-wall__item.is-hidden {
  z-index: 1;
}

.oa-wall__item.is-prev::after,
.oa-wall__item.is-next::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.5));
  pointer-events: none;
}

.oa-wall__tape {
  position: absolute;
  top: -8px;
  width: 84px;
  height: 20px;
  z-index: 4;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,243,188,0.92), rgba(245,219,140,0.84));
  box-shadow: 0 8px 14px rgba(126, 96, 36, 0.15);
  opacity: 0.82;
}

.oa-wall__tape--left {
  left: 20px;
  transform: rotate(-9deg);
}

.oa-wall__tape--right {
  right: 20px;
  transform: rotate(10deg);
}

.oa-wall__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(218, 182, 212, 0.86);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,236,247,0.96));
  color: #8d4c79;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(165, 113, 149, 0.14);
}

.oa-wall__nav:hover,
.oa-wall__nav:focus-visible {
  transform: translateY(calc(-50% - 1px)) scale(1.03);
}

.oa-wall__nav--prev {
  left: 14px;
}

.oa-wall__nav--next {
  right: 14px;
}

.oa-wall__footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.7rem;
}

.oa-wall__counter {
  color: #8f617f;
  font-size: 0.9rem;
  font-weight: 700;
}

.oa-wall__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.oa-wall__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(187, 150, 181, 0.36);
  cursor: pointer;
  padding: 0;
}

.oa-wall__dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, #8d7cf0, #e96cb7);
}

.oa-wall-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .oa-wall-stage__intro {
    flex-direction: column;
    align-items: stretch;
  }

  .oa-wall-stage__badge {
    align-self: flex-start;
  }

  .oa-wall {
    padding-inline: 2.9rem;
    min-height: 390px;
  }

  .oa-wall__item {
    width: min(100%, 390px);
  }

  .oa-wall__item.is-prev {
    transform: translateX(-34%) scale(0.8) rotate(-6deg);
  }

  .oa-wall__item.is-next {
    transform: translateX(34%) scale(0.8) rotate(6deg);
  }
}

@media (max-width: 640px) {
  .oa-gallery-board {
    justify-content: center;
  }

  .oa-gallery-board__item {
    width: min(100%, 280px);
    transform: none;
  }

  .oa-wall {
    min-height: 350px;
    padding: 0.9rem 0.75rem 0.85rem;
  }

  .oa-wall__viewport,
  .oa-wall__track {
    min-height: 300px;
  }

  .oa-wall__item {
    max-width: calc(100% - 1.5rem);
  }

  .oa-wall__item.is-prev {
    transform: translateX(-24%) scale(0.74) rotate(-5deg);
  }

  .oa-wall__item.is-next {
    transform: translateX(24%) scale(0.74) rotate(5deg);
  }

  .oa-wall__nav {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .oa-wall__nav:hover,
  .oa-wall__nav:focus-visible {
    transform: translateY(-1px) scale(1.03);
  }

  .oa-wall__nav--prev {
    left: 10px;
  }

  .oa-wall__nav--next {
    right: 10px;
  }

  .oa-wall__footer {
    padding-inline: 3rem;
    align-items: center;
  }

  .oa-gallery-lightbox__dialog {
    width: min(96vw, 680px);
  }
}

/* v0.9.4 theme presets */
.oa-gallery-stage__intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.oa-gallery-stage__badge {
  flex: 0 0 auto;
  align-self: center;
  padding: 0.62rem 0.96rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,236,247,0.96));
  border: 1px solid rgba(216, 183, 210, 0.82);
  color: #95507d;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(177, 127, 161, 0.12);
}

.oa-stage-theme--soft .oa-gallery-board__item .oa-card,
.oa-stage-theme--soft .oa-wall__item .oa-card {
  box-shadow: 0 18px 34px rgba(175, 119, 156, 0.16);
}

.oa-stage-theme--night .oa-gallery-stage__intro,
.oa-stage-theme--night .oa-wall-stage__intro {
  background:
    radial-gradient(circle at top right, rgba(150, 111, 255, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(31, 23, 46, 0.96), rgba(53, 37, 71, 0.98));
  border-color: rgba(139, 114, 193, 0.45);
  box-shadow: 0 22px 42px rgba(29, 18, 43, 0.26);
}

.oa-stage-theme--night .oa-gallery-stage__eyebrow,
.oa-stage-theme--night .oa-wall-stage__eyebrow,
.oa-stage-theme--night .oa-gallery-stage__title,
.oa-stage-theme--night .oa-wall-stage__title,
.oa-stage-theme--night .oa-gallery-stage__lead,
.oa-stage-theme--night .oa-wall-stage__lead,
.oa-stage-theme--night .oa-wall__counter {
  color: #f7efff;
}

.oa-stage-theme--night .oa-gallery-stage__badge,
.oa-stage-theme--night .oa-wall-stage__badge,
.oa-stage-theme--night .oa-wall__nav {
  background: linear-gradient(135deg, rgba(74, 49, 108, 0.96), rgba(125, 78, 168, 0.96));
  color: #fff7ff;
  border-color: rgba(164, 126, 232, 0.38);
  box-shadow: 0 16px 28px rgba(35, 19, 52, 0.28);
}

.oa-stage-theme--night .oa-gallery-board,
.oa-stage-theme--night .oa-wall {
  background:
    radial-gradient(circle at top center, rgba(109, 72, 162, 0.34), transparent 22%),
    linear-gradient(180deg, rgba(43, 31, 61, 0.98), rgba(27, 21, 39, 0.98));
  border-color: rgba(128, 99, 182, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 22px 44px rgba(24, 15, 35, 0.28);
}

.oa-stage-theme--night .oa-gallery-board__item .oa-card,
.oa-stage-theme--night .oa-wall__item .oa-card {
  box-shadow: 0 22px 38px rgba(10, 6, 18, 0.36);
}

.oa-stage-theme--night .oa-wall__tape {
  background: linear-gradient(180deg, rgba(204, 176, 255, 0.92), rgba(141, 108, 215, 0.84));
}

.oa-stage-theme--scrapbook .oa-gallery-stage__intro,
.oa-stage-theme--scrapbook .oa-wall-stage__intro {
  background:
    radial-gradient(circle at top left, rgba(255, 233, 188, 0.4), transparent 24%),
    linear-gradient(180deg, rgba(255,252,245,0.98), rgba(255,245,235,0.98));
  border-color: rgba(229, 198, 156, 0.65);
}

.oa-stage-theme--scrapbook .oa-gallery-stage__badge,
.oa-stage-theme--scrapbook .oa-wall-stage__badge {
  background: linear-gradient(135deg, rgba(255,249,232,0.98), rgba(255,230,213,0.98));
  border-color: rgba(228, 181, 132, 0.7);
  color: #9a5a2f;
}

.oa-stage-theme--scrapbook .oa-gallery-board,
.oa-stage-theme--scrapbook .oa-wall {
  background:
    linear-gradient(45deg, rgba(255,255,255,0.4) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.4) 75%, transparent 75%, transparent),
    linear-gradient(180deg, rgba(255,248,235,0.98), rgba(250,234,220,0.98));
  background-size: 16px 16px, auto;
  border-color: rgba(225, 190, 155, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72), 0 20px 40px rgba(170, 121, 87, 0.14);
}

.oa-stage-theme--scrapbook .oa-gallery-board__item .oa-card,
.oa-stage-theme--scrapbook .oa-wall__item .oa-card {
  box-shadow: 0 18px 34px rgba(150, 112, 64, 0.18);
}

.oa-stage-theme--scrapbook .oa-wall__tape {
  background: linear-gradient(180deg, rgba(255,227,144,0.92), rgba(242,187,117,0.84));
}

.oa-stage-theme--museum .oa-gallery-stage__intro,
.oa-stage-theme--museum .oa-wall-stage__intro {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,248,248,0.99));
  border-color: rgba(221, 221, 221, 0.88);
  box-shadow: 0 18px 38px rgba(55, 55, 55, 0.06);
}

.oa-stage-theme--museum .oa-gallery-stage__eyebrow,
.oa-stage-theme--museum .oa-wall-stage__eyebrow,
.oa-stage-theme--museum .oa-gallery-stage__lead,
.oa-stage-theme--museum .oa-wall-stage__lead,
.oa-stage-theme--museum .oa-wall__counter {
  color: #5e5e5e;
}

.oa-stage-theme--museum .oa-gallery-stage__badge,
.oa-stage-theme--museum .oa-wall-stage__badge,
.oa-stage-theme--museum .oa-wall__nav {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,245,245,0.98));
  border-color: rgba(214, 214, 214, 0.95);
  color: #4d4d4d;
  box-shadow: 0 12px 24px rgba(70, 70, 70, 0.08);
}

.oa-stage-theme--museum .oa-gallery-board,
.oa-stage-theme--museum .oa-wall {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,247,247,0.99));
  border-color: rgba(225, 225, 225, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.84), 0 20px 40px rgba(70, 70, 70, 0.07);
}

.oa-stage-theme--museum .oa-gallery-board__item .oa-card,
.oa-stage-theme--museum .oa-wall__item .oa-card {
  box-shadow: 0 16px 30px rgba(85, 85, 85, 0.12);
}

.oa-stage-theme--museum .oa-wall__tape {
  background: linear-gradient(180deg, rgba(241,241,241,0.96), rgba(224,224,224,0.88));
  box-shadow: 0 6px 12px rgba(90, 90, 90, 0.12);
}

@media (max-width: 900px) {
  .oa-gallery-stage__intro {
    flex-direction: column;
    align-items: stretch;
  }

  .oa-gallery-stage__badge {
    align-self: flex-start;
  }
}
