:root {
  color-scheme: light;
  --bg: #faf8fc;
  --bg-2: #f1eaf7;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(111, 76, 151, 0.14);
  --text: #4b4351;
  --muted: #6e6574;
  --rose: #6f4c97;
  --rose-strong: #4a2673;
  --sage: #8d7ca8;
  --gold: #9a7bc3;
  --shadow: 0 18px 50px rgba(74, 38, 115, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "Avenir Next", "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(111, 76, 151, 0.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(154, 123, 195, 0.16), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 60%, #f3edf9 100%);
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-1 {
  width: 240px;
  height: 240px;
  left: -80px;
  top: 60px;
  background: rgba(111, 76, 151, 0.18);
}

.ambient-2 {
  width: 300px;
  height: 300px;
  right: -120px;
  top: 220px;
  background: rgba(154, 123, 195, 0.16);
}

.shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-card,
.form-shell,
.summary-card,
.result {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 76, 151, 0.18) 0%, rgba(111, 76, 151, 0) 68%);
}

.eyebrow,
.summary-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-strong);
}

.brand-emphasis {
  font-weight: 600;
  color: #5d3a7a;
}

.primary .brand-emphasis,
.copy .brand-emphasis {
  color: inherit;
}

.hero h1 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.7vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
  max-width: 14.5ch;
}

.hero h1 span {
  display: block;
}

.lead {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 42rem;
}

.support {
  margin: 0;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #5d514d;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.avatar-panel {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 234, 247, 0.82));
  border: 1px solid rgba(111, 76, 151, 0.12);
}

.avatar-mark {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(143, 116, 106, 0.08);
  background: linear-gradient(180deg, rgba(255, 250, 253, 0.95), rgba(241, 234, 247, 0.95));
}

.avatar-mark::before {
  content: "A";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: rgba(74, 38, 115, 0.18);
  letter-spacing: 0.1em;
}

.avatar-mark img,
.avatar-mark svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: none;
}

.avatar-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.status-grid article {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(111, 76, 151, 0.12);
  border-radius: 18px;
  padding: 16px;
}

.status-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rose);
}

.status-grid span {
  font-size: 0.92rem;
  color: var(--muted);
}

.story-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.story-card {
  border-radius: var(--radius-xl);
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 243, 250, 0.92));
  border: 1px solid rgba(111, 76, 151, 0.12);
  box-shadow: var(--shadow);
}

.story-card h3 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.story-card--photo {
  display: grid;
  gap: 16px;
}

.story-photo {
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 234, 247, 0.88));
  border: 1px solid rgba(111, 76, 151, 0.12);
}

.story-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 14%;
  transform: none;
  filter: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.form-shell {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.form-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-strong);
}

.form-topbar h2,
.summary-card h3,
.result h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.form-topbar p,
.summary-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-list li strong {
  color: var(--text);
}

.progress {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(111, 76, 151, 0.12);
  border-radius: 20px;
  padding: 16px;
}

.progress__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(143, 116, 106, 0.14);
  overflow: hidden;
}

.progress__fill {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width 180ms ease;
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.step-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  text-align: left;
  border: 1px solid rgba(111, 76, 151, 0.14);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 12px 12px 11px;
  min-height: 52px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.step-pill span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--rose-strong);
}

.step-pill strong {
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-pill__check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(143, 116, 106, 0.16);
  color: transparent;
  font-size: 0.84rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.86);
}

.step-pill.active {
  border-color: rgba(111, 76, 151, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 234, 247, 0.96));
  box-shadow: 0 10px 26px rgba(111, 76, 151, 0.09);
}

.step-pill.done {
  border-color: rgba(111, 76, 151, 0.2);
}

.step-pill.done .step-pill__check {
  color: white;
  border-color: rgba(111, 76, 151, 0.22);
  background: var(--rose-strong);
}

.step-pill.active .step-pill__index {
  color: var(--rose-strong);
}

.section-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(143, 116, 106, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}

.step-more {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(111, 76, 151, 0.12);
  background: rgba(255, 255, 255, 0.58);
  padding: 14px 16px 8px;
}

.step-more summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--rose-strong);
  margin-bottom: 14px;
}

.step-more summary::-webkit-details-marker {
  display: none;
}

.step-more__grid {
  margin-top: 2px;
}

.step-card.is-hidden {
  display: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.section-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-strong);
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(186, 69, 106, 0.48);
  box-shadow: 0 0 0 1px rgba(186, 69, 106, 0.14);
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

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

.field label {
  font-weight: 600;
  color: #4e403d;
  line-height: 1.35;
}

.field .hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  min-height: 1.45em;
}

.field-error {
  display: none;
  color: #8f3556;
  font-size: 0.82rem;
  line-height: 1.35;
}

.field.has-error .field-error {
  display: block;
}

.help-tip {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(143, 116, 106, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--rose-strong);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(111, 76, 151, 0.18);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input,
.field select {
  min-height: 56px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(111, 76, 151, 0.48);
  box-shadow: 0 0 0 4px rgba(111, 76, 151, 0.1);
}

.field input[type="file"] {
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.file-status {
  display: grid;
  gap: 4px;
  margin-top: -2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(111, 76, 151, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.file-status strong {
  font-size: 0.9rem;
  color: var(--text);
}

.file-status__list {
  display: grid;
  gap: 2px;
  margin-top: 2px;
  color: #64596f;
}

.file-status.has-files {
  border-color: rgba(111, 76, 151, 0.2);
  background: rgba(241, 234, 247, 0.6);
}

.field--checkbox {
  grid-column: 1 / -1;
}

.checkbox-control {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 16px;
  border: 1px solid rgba(111, 76, 151, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  line-height: 1.55;
  color: var(--text);
}

.checkbox-control input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--rose);
  flex-shrink: 0;
}

.checkbox-control span {
  display: block;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-row,
.radio-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(125, 100, 94, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(111, 76, 151, 0.08);
  border: 1px solid rgba(111, 76, 151, 0.16);
  color: #5d4c68;
}

.notice p {
  margin: 0;
}

.notice-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(111, 76, 151, 0.12);
  color: var(--rose-strong);
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 800;
}

.hero-card > p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

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

.mobile-step-feedback {
  display: none;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 241, 246, 0.9);
  border: 1px solid rgba(186, 69, 106, 0.14);
  color: #8f3556;
  font-size: 0.86rem;
  line-height: 1.4;
}

.mobile-step-feedback.visible {
  display: block;
}

.upload-status {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(111, 76, 151, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.upload-status.hidden,
.upload-status[hidden] {
  display: none !important;
}

.upload-status__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.upload-status__header strong {
  color: var(--rose-strong);
  font-size: 0.96rem;
}

.upload-status__header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.upload-status p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.upload-status__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(111, 76, 151, 0.12);
}

.upload-status__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-strong), var(--rose));
  transition: width 180ms ease;
}

.upload-status.loading .upload-status__fill,
.upload-status.indeterminate .upload-status__fill {
  min-width: 42px;
  animation: uploadPulse 1.15s ease-in-out infinite;
}

.upload-status.success {
  border-color: rgba(82, 140, 88, 0.18);
  background: rgba(245, 251, 246, 0.92);
}

.upload-status.success .upload-status__header strong {
  color: #3f7a48;
}

.upload-status.error {
  border-color: rgba(186, 69, 106, 0.2);
  background: rgba(255, 245, 248, 0.96);
}

.upload-status.error .upload-status__header strong {
  color: #8f3556;
}

@keyframes uploadPulse {
  0% {
    transform: translateX(0);
    opacity: 0.72;
  }
  50% {
    transform: translateX(10%);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.72;
  }
}

.actions button,
.result .button-row button,
.result .button-row a {
  border: 0;
  border-radius: 18px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.actions button:hover,
.result .button-row button:hover,
.result .button-row a:hover {
  transform: translateY(-1px);
}

.primary {
  color: white;
  background: linear-gradient(135deg, var(--rose-strong), var(--rose));
  box-shadow: 0 12px 30px rgba(111, 76, 151, 0.24);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 76, 151, 0.16);
}

.hidden {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.summary-card {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.summary-card.accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 234, 247, 0.92)),
    var(--panel-strong);
}

.summary-header {
  margin-bottom: 14px;
}

.summary-list,
.output-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.summary-list strong {
  font-weight: 600;
  color: #4b4351;
}

.result {
  border-radius: var(--radius-xl);
  padding: 26px;
  margin-top: 24px;
}

.result.hidden {
  display: none;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
  gap: 18px;
}

.result-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 76, 151, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.result pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(75, 67, 81, 0.05);
  border-radius: 18px;
  padding: 16px;
  max-height: 420px;
  overflow: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.copy {
  background: linear-gradient(135deg, var(--sage), var(--rose));
  color: white;
}

.ghost {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(111, 76, 151, 0.16);
  color: var(--text);
}

/* Admin */
.admin-page {
  background:
    radial-gradient(circle at top left, rgba(111, 76, 151, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
}

.admin-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.admin-hero h1 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.admin-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
  gap: 18px;
}

.admin-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-card h2,
.admin-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.admin-card p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-login-form input,
.admin-login-form select,
.admin-login-form textarea {
  width: 100%;
  border: 1px solid rgba(111, 76, 151, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  border: 1px solid rgba(111, 76, 151, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.admin-item strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.admin-item small {
  color: var(--muted);
}

.admin-item button {
  justify-self: start;
}

.admin-detail {
  display: grid;
  gap: 16px;
}

.admin-detail pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  border: 1px solid rgba(111, 76, 151, 0.12);
  padding: 16px;
  line-height: 1.65;
  color: var(--text);
  max-height: 420px;
  overflow: auto;
}

.admin-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-status-row .secondary,
.admin-status-row .primary,
.admin-status-row .ghost,
.admin-status-row .copy {
  padding-inline: 14px;
}

.admin-muted {
  color: var(--muted);
}

.admin-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero,
  .workspace,
  .form-topbar,
  .result-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .story-band {
    grid-template-columns: 1fr;
  }

  .story-photo {
    height: 220px;
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 100vw);
    padding-top: 14px;
  }

  .hero-copy,
  .hero-card,
  .form-shell,
  .summary-card,
  .result {
    border-radius: 22px;
    padding: 18px;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 2.8rem);
    line-height: 1.04;
    max-width: 12ch;
  }

  .lead {
    font-size: 0.98rem;
  }

  .support {
    font-size: 0.96rem;
  }

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

  .form-shell {
    padding-bottom: 108px;
  }

  .status-grid {
    display: none;
  }

  .mobile-step-feedback.visible {
    position: fixed;
    left: max(12px, calc(50vw - 210px));
    right: max(12px, calc(50vw - 210px));
    bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: 101;
    margin: 0;
  }

  .mobile-step-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(111, 76, 151, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(74, 38, 115, 0.08);
    position: fixed;
    left: max(12px, calc(50vw - 210px));
    right: max(12px, calc(50vw - 210px));
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 100;
    backdrop-filter: blur(16px);
  }

  .mobile-step-nav__icon {
    appearance: none;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-strong), var(--rose));
    color: white;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(111, 76, 151, 0.22);
    cursor: pointer;
  }

  .mobile-step-nav__icon:disabled {
    opacity: 0.35;
    box-shadow: none;
  }

  .mobile-step-nav__label {
    min-width: 0;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    flex: 1;
  }

  .mobile-step-nav__label strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .avatar-panel {
    grid-template-columns: 64px 1fr;
    text-align: left;
    justify-items: start;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .avatar-mark {
    width: 64px;
    height: 64px;
  }

  .avatar-mark::before {
    font-size: 1.3rem;
  }

  .hero-card > p {
    text-align: left;
  }

  .story-band {
    gap: 14px;
  }

  .actions {
    display: none;
  }

  .step-rail {
    display: none;
  }

  .story-photo {
    height: 250px;
  }

  .story-photo img {
    transform: scale(0.88);
    object-position: center 14%;
  }

  .admin-shell {
    width: min(100vw - 20px, 100vw);
    padding-top: 14px;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    width: 100%;
  }

  .admin-toolbar button {
    width: 100%;
  }
}
