:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #63706c;
  --line: #d9e0dc;
  --paper: #f6f3ec;
  --panel: #fffdf8;
  --green: #246b56;
  --green-dark: #164839;
  --coral: #d85c47;
  --gold: #c5922e;
  --blue: #4f77a8;
  --shadow: 0 16px 40px rgba(23, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(980px, calc(100vw - 48px));
  min-width: 0;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 30px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(246, 243, 236, 0.96)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 38px;
  z-index: 80;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 36px 90px rgba(23, 33, 31, 0.34);
  transform: translate(-50%, -48%) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.workspace-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(246, 243, 236, 0.72);
  backdrop-filter: blur(10px) saturate(1.04);
}

body.workspace-open .sidebar {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.drawer-close {
  align-self: end;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.sidebar .brand,
.sidebar .status-panel,
.sidebar .credits-panel,
.sidebar .tabs {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 1.45rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.status-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef6f1;
}

.status-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.save-stamp {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 146, 46, 0.18);
}

.credits-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9f0df;
}

.credits-panel.account-entry {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.help-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8f6;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.help-entry:hover,
.help-entry:focus-visible,
.credits-panel.account-entry:hover,
.credits-panel.account-entry:focus-visible {
  outline: 0;
  border-color: rgba(36, 107, 86, 0.35);
  box-shadow: 0 4px 14px rgba(23, 33, 31, 0.08);
  transform: translateY(-1px);
}

.help-entry strong {
  display: block;
  font-size: 1.02rem;
}

.ui-language-panel {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
}

.ui-language-panel select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.admin-test-reset {
  border-color: rgba(197, 146, 46, 0.35);
  background: linear-gradient(180deg, #fffdf8, #fff8ea);
}

.admin-test-reset .chip {
  background: rgba(197, 146, 46, 0.14);
  color: #8a6218;
}

.credits-panel strong {
  display: block;
  font-size: 1.15rem;
}

.primary-action {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:hover {
  background: var(--green-dark);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ece8dc;
}

.tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 33, 31, 0.08);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.panel-area,
.panel,
.ai-form,
.quick-story-form,
.story-page,
.workspace-blob-field {
  min-width: 0;
}

.story-start-header {
  margin-bottom: 12px;
}

.story-start-workshop {
  margin-top: 4px;
}

.story-start-preview {
  min-height: 360px;
  display: grid;
  align-items: end;
}

.story-start-tile-preview {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 16px;
  border-radius: 34px;
  background: white;
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.16);
  transform: rotate(-1.1deg);
}

.story-start-tile-preview::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 76px;
  height: 22px;
  z-index: 2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  transform: translateX(-50%) rotate(-4deg);
}

.story-start-photo-neutral,
.story-start-tile-preview-neutral {
  position: absolute;
  inset: 0;
  background:
    url("assets/story/story-tile-neutral.svg") center / cover no-repeat,
    linear-gradient(145deg, #eef3ef 0%, #dfe8e2 55%, #d2ddd5 100%);
}

.story-start-photo-slot {
  position: relative;
  min-height: 160px;
}

.story-start-photo-slot .story-start-photo-neutral {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.story-start-tile-preview:not(:has(.story-start-tile-preview-image[src])) .story-start-tile-preview-body h3,
.story-start-tile-preview-body h3:empty,
.story-start-tile-preview-body p:empty {
  display: none;
}

.story-start-tile-preview-body h3:only-child,
.story-start-tile-preview-body p:only-child {
  margin: 0;
}

.story-start-tile-preview.has-preview-text::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.72));
}

.story-start-tile-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.story-start-tile-preview:not(.has-preview-text)::after {
  display: none;
}

.story-start-tile-preview-body {
  position: relative;
  z-index: 2;
  color: white;
}

.story-start-tile-preview-body .chip {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.story-start-tile-preview-body h3 {
  margin: 8px 0 6px;
  color: white;
  font-size: 1.15rem;
}

.story-start-tile-preview-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  line-height: 1.45;
}

.story-start-tile-date {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.story-start-fields {
  align-self: start;
}

.story-start-ai-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.story-start-ai-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-dark);
}

.story-start-note {
  margin: 0;
}

#storyKeywordsField[hidden] {
  display: none;
}

.start-story-card {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: end;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #17211f;
  color: white;
}

.start-story-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.start-story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 33, 31, 0.08), rgba(23, 33, 31, 0.74));
}

.start-story-card > div {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.start-story-card h2 {
  margin-bottom: 7px;
  font-size: 1.55rem;
}

.start-story-card .eyebrow,
.start-story-card p:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.start-story-card p:last-child {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.story-moodboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 92px;
  gap: 9px;
  margin-bottom: 16px;
}

.mood-pin {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #17211f;
  color: white;
  min-height: 0;
}

.mood-pin-tall {
  grid-row: span 2;
}

.mood-pin-wide {
  grid-column: 1 / -1;
}

.mood-pin img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.01);
}

.mood-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.68));
}

.mood-pin div {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mood-pin span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.mood-pin strong {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.1;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.timeline,
.challenge-list,
.income-grid,
.library-list,
.board-list,
.source-list {
  display: grid;
  gap: 10px;
}

.board-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.moment,
.challenge,
.income-card,
.library-card,
.board-card,
.story-output {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.library-card-visual {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}

.library-card-image {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #eef2ef;
}

.library-packs {
  display: grid;
  gap: 12px;
}

.library-beelden-vault {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.library-beeld-upload {
  display: inline-flex;
  margin: 10px 0 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(36, 107, 86, 0.28);
  background: rgba(238, 242, 239, 0.85);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

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

.library-beeld-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.library-beeld-card img {
  width: 72px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2ef;
}

.library-beelden-empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.annotate-workshop {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(238, 245, 240, 0.9));
}

.annotate-workshop-lead {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.annotate-placement-toggle {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.annotate-mode-btn {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.annotate-mode-btn.is-active {
  background: var(--accent);
  color: white;
}

.annotate-placement-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.annotate-workshop-grid {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 14px;
  align-items: start;
}

.annotate-photo-column {
  display: grid;
  gap: 8px;
}

.annotate-photo-stage {
  display: grid;
  gap: 8px;
}

.annotate-preview-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.annotate-preview-card .section-heading {
  margin-bottom: 8px;
}

.annotate-preview-card h4 {
  margin: 0;
  font-size: 0.95rem;
}

.annotate-preview-lead {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.annotate-preview-canvas {
  max-width: 520px;
  margin-bottom: 10px;
}

.annotate-photo-canvas {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(36, 107, 86, 0.18);
  background: #edf2ee;
  line-height: 0;
}

.annotate-photo-canvas.is-manual {
  cursor: crosshair;
}

.annotate-photo-canvas img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.annotate-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.annotate-overlay .annotate-marker.is-active circle {
  stroke-width: 0.55;
}

.annotate-photo-pick {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 2px dashed rgba(36, 107, 86, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

.annotate-photo-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.annotate-labels-panel {
  display: grid;
  gap: 10px;
}

.annotate-labels-panel label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.annotate-labels-panel input[type="text"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.annotate-label-list {
  display: grid;
  gap: 8px;
}

.annotate-label-row {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.annotate-label-row.is-mistral input[readonly] {
  background: rgba(238, 245, 240, 0.9);
  color: var(--ink);
  cursor: default;
}

.annotate-label-row:not(.is-mistral) {
  grid-template-columns: auto 1fr 1.2fr auto;
}

.annotate-label-row.is-mistral {
  grid-template-columns: auto 1fr 1.2fr;
}

.annotate-label-row.is-active {
  border-color: rgba(36, 107, 86, 0.35);
  background: rgba(255, 255, 255, 0.72);
}

.annotate-label-row.has-point .annotate-point-badge {
  background: var(--accent);
  color: white;
}

.annotate-point-badge {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 107, 86, 0.12);
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.annotate-point-badge.is-selected {
  background: #ffb84d;
  color: #4a2a00;
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.28);
  transform: scale(1.08);
}

.annotate-point-badge.is-static {
  display: inline-grid;
  place-items: center;
  cursor: default;
}

.annotate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grid-collage-example-panel {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(238, 245, 240, 0.9));
}

.grid-collage-example-preview {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 32px rgba(39, 57, 51, 0.16);
}

.grid-collage-example-preview .grid-collage-preview {
  min-height: 300px;
}

.grid-collage-example-copy {
  display: grid;
  gap: 10px;
}

.grid-collage-example-copy h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.grid-collage-example-copy p {
  margin: 0;
  color: var(--muted);
}

.workshop-example-panel {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(238, 245, 240, 0.9));
}

.workshop-example-preview {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 32px rgba(39, 57, 51, 0.16);
}

.workshop-example-image {
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(39, 57, 51, 0.16);
  background: #edf2ee;
}

.workshop-example-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.workshop-example-copy {
  display: grid;
  gap: 10px;
}

.workshop-example-copy h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.workshop-example-copy p {
  margin: 0;
  color: var(--muted);
}

.annotate-example-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(238, 245, 240, 0.9));
}

.annotate-example-hero {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: 18px;
  align-items: center;
}

.annotate-example-image {
  position: relative;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(39, 57, 51, 0.18);
  background: #edf2ee;
}

.annotate-example-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.annotate-example-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #d65b4a;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(28, 39, 35, 0.24);
}

.annotate-example-marker.marker-one {
  left: 23%;
  top: 34%;
}

.annotate-example-marker.marker-two {
  right: 21%;
  top: 28%;
  background: #c5922e;
}

.annotate-example-marker.marker-three {
  left: 52%;
  bottom: 20%;
  background: #246b56;
}

.annotate-example-copy {
  display: grid;
  gap: 10px;
}

.annotate-example-copy h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.annotate-example-copy p {
  margin: 0;
  color: var(--muted);
}

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

.annotate-example-steps article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.annotate-example-steps strong {
  display: block;
  margin-bottom: 5px;
}

.annotate-example-steps p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.annotate-example-actions {
  align-items: center;
}

.board-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.board-card:nth-child(2n) {
  margin-top: 26px;
}

.board-card:hover,
.board-card:focus {
  outline: 0;
  border-color: rgba(36, 107, 86, 0.5);
  box-shadow: 0 0 0 3px rgba(36, 107, 86, 0.12);
}

.board-collage {
  height: 106px;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf2ee;
}

.board-collage span {
  display: block;
  min-height: 0;
}

.board-collage span:first-child {
  grid-row: 1 / 3;
}

.board-card.story .board-collage span:first-child {
  background: url("assets/rojales/white-caves.jpg") center / cover;
}

.board-card.story .board-collage span:nth-child(2) {
  background: url("assets/rojales/mosaic-house.jpg") center / cover;
}

.board-card.story .board-collage span:nth-child(3) {
  background: url("assets/rojales/atelier.jpg") center / cover;
}

.board-card.challenge .board-collage span:first-child {
  background: url("assets/picasso/03-malaga-street.jpeg") center / cover;
}

.board-card.challenge .board-collage span:nth-child(2) {
  background: url("assets/picasso/01-detail.jpeg") center / cover;
}

.board-card.challenge .board-collage span:nth-child(3) {
  background: url("assets/picasso/05-creative-detail.jpeg") center / cover;
}

.board-card.library .board-collage span:first-child {
  background: url("assets/picasso/04-museum-detail.jpeg") center / cover;
}

.board-card.library .board-collage span:nth-child(2) {
  background: url("assets/rojales/artist-detail.jpg") center / cover;
}

.board-card.library .board-collage span:nth-child(3) {
  background: url("assets/picasso/06-ending.jpeg") center / cover;
}

.board-card.paint .board-collage span:first-child {
  background: url("assets/rojales/artist-detail.jpg") center / cover;
}

.board-card.paint .board-collage span:nth-child(2) {
  background: url("assets/rojales/mosaic-house.jpg") center / cover;
}

.board-card.paint .board-collage span:nth-child(3) {
  background: url("assets/picasso/05-creative-detail.jpeg") center / cover;
}

.board-card.map .board-collage span:first-child {
  background: url("assets/picasso/02-courtyard.jpeg") center / cover;
}

.board-card.map .board-collage span:nth-child(2) {
  background: url("assets/rojales/white-caves.jpg") center / cover;
}

.board-card.map .board-collage span:nth-child(3) {
  background: url("assets/picasso/03-malaga-street.jpeg") center / cover;
}

.moment {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  cursor: pointer;
}

.timeline-empty {
  padding: 28px 22px;
  border: 1px dashed rgba(36, 107, 86, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.timeline-empty h3 {
  margin: 8px 0 10px;
  font-size: 1.05rem;
}

.timeline-empty p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
  margin-inline: auto;
  line-height: 1.5;
}

.moment-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.moment-live-chip {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.moment-live-chip.is-local {
  background: rgba(36, 107, 86, 0.14);
  color: var(--green-dark);
}

.moment-live-chip.is-server {
  background: rgba(23, 33, 31, 0.1);
  color: var(--ink);
}

.moment-live-chip.is-draft {
  background: rgba(23, 33, 31, 0.06);
  color: var(--muted);
}

.moment.is-live-local {
  box-shadow: 0 0 0 2px rgba(36, 107, 86, 0.22);
}

.moment.is-live-server {
  box-shadow: 0 0 0 2px rgba(23, 33, 31, 0.16);
}

.layout-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.layout-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 107, 86, 0.1);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.layout-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}

.layout-switch {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.layout-switch.is-active {
  border-color: rgba(36, 107, 86, 0.55);
  background: rgba(36, 107, 86, 0.1);
  color: var(--green-dark);
  box-shadow: 0 0 0 2px rgba(36, 107, 86, 0.1);
}

.layout-option {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.layout-option.is-active {
  border-color: rgba(36, 107, 86, 0.55);
  box-shadow: 0 0 0 3px rgba(36, 107, 86, 0.12);
}

.layout-option strong {
  font-size: 0.82rem;
}

.layout-sample {
  height: 58px;
  display: block;
  border-radius: 15px;
  background: #eef1ef;
}

.scrapbook-sample {
  background:
    linear-gradient(110deg, transparent 56%, rgba(255,255,255,0.7) 57% 67%, transparent 68%),
    url("assets/rojales/mosaic-house.jpg") center / cover;
  transform: rotate(-2deg);
}

.postcards-sample {
  border: 5px solid white;
  background: url("assets/picasso/02-courtyard.jpeg") center / cover;
  box-shadow: 0 6px 14px rgba(23, 33, 31, 0.16);
}

.timeline-sample {
  background:
    radial-gradient(circle at 18% 50%, var(--green) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 50%, var(--gold) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 50%, var(--coral) 0 5px, transparent 6px),
    linear-gradient(90deg, transparent 0 14%, #cbd5d0 15% 85%, transparent 86%);
}

.moment.is-active {
  border-color: rgba(36, 107, 86, 0.55);
  box-shadow: 0 0 0 3px rgba(36, 107, 86, 0.12);
}

.moment.is-draggable {
  cursor: grab;
}

.moment.is-draggable:active {
  cursor: grabbing;
}

.moment.is-dragging {
  opacity: 0.58;
}

.moment.drag-before {
  box-shadow:
    0 16px 34px rgba(23, 33, 31, 0.16),
    inset 0 4px 0 rgba(36, 107, 86, 0.95);
}

.moment.drag-after {
  box-shadow:
    0 16px 34px rgba(23, 33, 31, 0.16),
    inset 0 -4px 0 rgba(36, 107, 86, 0.95);
}

.moment-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(23, 33, 31, 0.14);
}

.moment-remove:hover,
.moment-remove:focus-visible {
  background: white;
}

.moment-drag-handle {
  position: absolute;
  top: 10px;
  right: 46px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: grab;
  box-shadow: 0 6px 14px rgba(23, 33, 31, 0.14);
}

.moment-drag-handle:active {
  cursor: grabbing;
}

.moment-image {
  display: none;
}

.scrapbook-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-bottom: 20px;
}

.scrapbook-layout .moment {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 14px;
  border: 0;
  border-radius: 34px;
  background: white;
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.16);
}

.scrapbook-layout .moment:nth-child(2n) {
  margin-top: 28px;
  transform: rotate(1.3deg);
}

.scrapbook-layout .moment:nth-child(2n + 1) {
  transform: rotate(-1.1deg);
}

.scrapbook-layout .moment::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 76px;
  height: 22px;
  z-index: 2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  transform: translateX(-50%) rotate(-4deg);
}

.scrapbook-layout .moment-image,
.postcards-layout .moment-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.scrapbook-layout .moment::after,
.postcards-layout .moment::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.72));
}

.scrapbook-layout .moment-date,
.scrapbook-layout .moment > div:not(.moment-date),
.postcards-layout .moment-date,
.postcards-layout .moment > div:not(.moment-date) {
  position: relative;
  z-index: 2;
}

.scrapbook-layout .moment h3,
.scrapbook-layout .moment p,
.postcards-layout .moment h3,
.postcards-layout .moment p {
  color: white;
}

.scrapbook-layout .chip,
.postcards-layout .chip {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.postcards-layout .moment {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  align-items: end;
  border: 8px solid white;
  border-radius: 30px;
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.14);
}

.timeline-layout .moment {
  grid-template-columns: 46px 1fr;
  border-radius: 22px;
}

.story-composer {
  margin-top: 18px;
}

.story-composer summary {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border: 2px dashed rgba(36, 107, 86, 0.26);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(238, 246, 241, 0.92), rgba(249, 240, 223, 0.88));
  color: var(--green-dark);
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.story-composer summary::-webkit-details-marker {
  display: none;
}

.story-composer summary strong {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--green);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
}

.story-composer[open] summary {
  margin-bottom: 12px;
}

.story-composer:not([open]) .quick-story-form {
  display: none;
}

.story-composer .quick-story-form {
  border-radius: 30px;
  background: #fffdf8;
}

.moment-date {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5e8d5;
  color: var(--green-dark);
  font-weight: 900;
}

.moment h3,
.challenge h3,
.income-card h3,
.library-card h3,
.board-card h3 {
  margin: 0 0 5px;
  font-size: 0.98rem;
}

.moment p,
.challenge p,
.income-card p,
.library-card p,
.board-card p,
.story-output p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.moment-card-actions {
  margin-top: 12px;
}

.scrapbook-layout .moment-open-button,
.postcards-layout .moment-open-button {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--green-dark);
}

.chip {
  padding: 5px 7px;
  border-radius: 999px;
  background: #eef1ef;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-action {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(36, 107, 86, 0.28);
  border-radius: 999px;
  background: white;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.mini-action:disabled {
  cursor: default;
  opacity: 0.72;
}

.library-card[role="button"] {
  cursor: pointer;
}

.library-card[role="button"]:focus-visible {
  outline: 0;
  border-color: rgba(36, 107, 86, 0.5);
  box-shadow: 0 0 0 3px rgba(36, 107, 86, 0.12);
}

.ai-form,
.quick-story-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.compose-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(23, 33, 31, 0.07);
}

.storage-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.storage-choice label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.storage-choice input {
  accent-color: var(--green);
}

body:not(.share-mode) .share-only {
  display: none;
}

body.share-mode .device-only {
  display: none;
}

.quick-story-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.ai-form label,
.quick-story-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-form input,
.ai-form select,
.ai-form textarea,
.quick-story-form input,
.quick-story-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 0.92rem;
}

.ai-form input,
.ai-form select,
.quick-story-form input {
  min-height: 40px;
  padding: 0 10px;
}

.ai-form textarea,
.quick-story-form textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

.cost-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.how-to {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 8px;
  background: #f4faf7;
}

.how-to ol {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
}

.how-to li + li {
  margin-top: 3px;
}

.photo-preview {
  min-height: 74px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px dashed #c9d3ce;
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 0.85rem;
}

.photo-preview img {
  width: 82px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
}

.photo-preview span {
  grid-column: 1 / -1;
}

.photo-preview p {
  margin: 0;
  line-height: 1.35;
}

.story-output {
  margin-bottom: 12px;
}

.story-output h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.source-link {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.challenge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.ai-challenge {
  background: #fbf7ec;
}

.locked-challenge {
  opacity: 0.78;
  background: #f8f8f5;
}

.locked-challenge h3 {
  color: var(--muted);
}

.challenge-form {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.challenge-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.challenge-form textarea {
  width: 100%;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  line-height: 1.35;
}

.challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.challenge-ai-output {
  padding: 12px;
  border: 1px solid rgba(36, 107, 86, 0.22);
  border-radius: 8px;
  background: white;
}

.challenge-ai-output h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.challenge-ai-output p {
  margin-bottom: 0;
}

.challenge-thread {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.challenge-turn {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffdf8;
  border: 1px solid var(--line);
}

.challenge-turn.assistant {
  background: #eef6f1;
}

.challenge-turn strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.challenge-turn p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

.slideshow-preview {
  height: 148px;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #17211f;
}

.slideshow-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.slide-card {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  color: white;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.slide-card span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 900;
}

.slide-card strong {
  font-size: 1rem;
}

.slide-one {
  transform: translateX(-18px) rotate(-4deg);
  background: linear-gradient(135deg, #d85c47, #c5922e);
}

.slide-two {
  transform: translateX(54px) rotate(3deg);
  background: linear-gradient(135deg, #246b56, #4f77a8);
}

.slide-three {
  transform: translateX(126px) rotate(-2deg);
  background: linear-gradient(135deg, #254f65, #8f6b4a);
}

.check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e6f1eb;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.check.todo {
  background: #f5ece3;
  color: var(--coral);
}

.income-card strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 1.1rem;
}

.canvas-stage {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  padding: 28px clamp(18px, 3vw, 44px) 44px;
  overflow: auto;
  background: linear-gradient(180deg, #f6f3ec 0%, #ece8dc 100%);
}

.canvas-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(23, 33, 31, 0.16);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.story-page {
  max-width: 1360px;
  margin: 0 auto;
}

.story-hero {
  min-height: 130px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3.5vw, 36px);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #254f65, #c5922e);
  color: white;
}

.story-hero-brand {
  display: flex;
  align-items: end;
  gap: 16px;
  min-width: 0;
}

.story-hero-mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1.35rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.story-hero-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.story-hero-subtitle {
  margin: 6px 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
  line-height: 1.35;
}

.story-hero-credits {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.story-hero-credits:hover,
.story-hero-credits:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.story-hero-credits-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.visitor-choice-flow {
  margin: 24px 0 28px;
}

.visitor-choice-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.visitor-choice-lead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 52ch;
}

.visitor-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.visitor-choice-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

body.visitor-choice-active .canvas-main-content,
body.onboarding-active .canvas-main-content {
  display: none;
}

body.onboarding-review .canvas-main-content {
  display: block;
  opacity: 0.34;
  pointer-events: none;
  filter: blur(1px);
}

body.onboarding-review .onboarding-flow {
  position: relative;
  z-index: 3;
}

.onboarding-flow {
  margin: 24px 0 28px;
}

.onboarding-card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 240, 223, 0.96));
  border: 1px solid rgba(23, 33, 31, 0.08);
  box-shadow: 0 22px 50px rgba(23, 33, 31, 0.14);
}

.onboarding-top {
  margin-bottom: 18px;
}

.onboarding-progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.08);
  overflow: hidden;
}

.onboarding-progress-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #3f9b7d);
  transition: width 220ms ease;
}

.onboarding-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.1;
}

.onboarding-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.onboarding-points {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.onboarding-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
}

.onboarding-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.onboarding-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.onboarding-inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.onboarding-layout-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.onboarding-steps-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.onboarding-steps-list strong {
  display: block;
  margin-bottom: 4px;
}

.onboarding-steps-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.onboarding-tile-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.onboarding-tile-card strong {
  display: block;
  margin: 4px 0;
}

.onboarding-tile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.onboarding-subtitle {
  margin: 18px 0 6px;
  font-size: 0.98rem;
}

.onboarding-steps-list-compact li {
  padding-bottom: 10px;
}

.onboarding-tile-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.onboarding-workshop-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.onboarding-workshop-card img {
  display: block;
  width: 100%;
  height: 72px;
  margin-bottom: 8px;
  object-fit: cover;
  border-radius: 8px;
}

.onboarding-workshop-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.onboarding-workshop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.onboarding-tile-sequence,
.onboarding-intro-sequence {
  margin-top: 14px;
}

.onboarding-tile-stage,
.onboarding-intro-stage {
  display: grid;
  min-height: 360px;
  margin-bottom: 14px;
}

.onboarding-tile-slide {
  grid-area: 1 / 1;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.onboarding-intro-slide {
  grid-area: 1 / 1;
  display: grid;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.38s ease, transform 0.38s ease;
  pointer-events: none;
}

.onboarding-tile-slide.is-active,
.onboarding-intro-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.onboarding-tile-step,
.onboarding-intro-step {
  display: inline-block;
  width: fit-content;
  margin-bottom: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(36, 107, 86, 0.1);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.onboarding-intro-moodboard {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  grid-template-rows: 120px 120px;
  gap: 10px;
  min-height: 250px;
}

.onboarding-moodboard-hero {
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(23, 33, 31, 0.18);
}

.onboarding-moodboard-side {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.14);
}

.onboarding-intro-visual-story {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(23, 33, 31, 0.16);
}

.onboarding-intro-visual-story img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.onboarding-story-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.18);
}

.onboarding-intro-tile-stage {
  display: grid;
  gap: 10px;
}

.onboarding-intro-blob {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  gap: 8px;
  width: 100%;
  min-height: 280px;
  padding: 24px;
  border: 0;
  color: #fff;
  text-align: left;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03) 18%, rgba(0, 0, 0, 0.74) 100%),
    var(--blob-image) center / cover;
  box-shadow: 0 22px 48px rgba(23, 33, 31, 0.22);
  isolation: isolate;
}

.onboarding-intro-blob.is-map {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(23, 33, 31, 0.16) 48%, rgba(23, 33, 31, 0.74) 100%),
    var(--blob-image) center / cover;
}

.onboarding-intro-blob.blob-a { border-radius: 72px; transform: rotate(-0.7deg); }
.onboarding-intro-blob.blob-b { border-radius: 64px; transform: rotate(0.6deg); }
.onboarding-intro-blob.blob-c { border-radius: 58px; transform: rotate(-0.5deg); }
.onboarding-intro-blob.blob-d { border-radius: 62px; transform: rotate(0.8deg); }
.onboarding-intro-blob.blob-e { border-radius: 76px; transform: rotate(-0.4deg); }
.onboarding-intro-blob.blob-f { border-radius: 52px; transform: rotate(0.5deg); }

.onboarding-intro-blob strong {
  max-width: 14ch;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 0.95;
}

.onboarding-intro-tile-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.onboarding-intro-share-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.onboarding-share-card {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.onboarding-share-card.is-local {
  background: linear-gradient(180deg, #fff, #f7faf8);
}

.onboarding-share-card.is-live {
  border-color: rgba(36, 107, 86, 0.28);
  background: linear-gradient(180deg, #f8fcfa, #eef7f2);
}

.onboarding-share-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 0.95rem;
}

.onboarding-share-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.onboarding-share-icon {
  font-size: 1.5rem;
}

.onboarding-share-arrow {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 800;
}

.onboarding-intro-copy {
  padding: 2px 2px 0;
}

.onboarding-intro-copy strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.08rem;
}

.onboarding-intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.onboarding-intro-copy-compact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.onboarding-intro-label {
  background: rgba(36, 107, 86, 0.1);
  color: var(--accent);
}

.onboarding-tile-slide strong {
  display: block;
  margin: 4px 0;
  font-size: 1rem;
}

.onboarding-tile-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.onboarding-tile-dots,
.onboarding-intro-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.onboarding-tile-dot,
.onboarding-intro-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 107, 86, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.onboarding-tile-dot.is-active,
.onboarding-intro-dot.is-active {
  transform: scale(1.2);
  background: var(--accent);
}

.onboarding-tile-sequence-controls,
.onboarding-intro-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.onboarding-tile-sequence-controls .mini-action[hidden],
.onboarding-intro-controls .mini-action[hidden] {
  display: none;
}

.onboarding-share-note.is-visible,
.onboarding-share-note:not([hidden]) {
  animation: onboarding-share-in 0.4s ease;
}

@keyframes onboarding-share-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding-tile-card-compact {
  padding: 12px;
}

.onboarding-tile-card-compact strong {
  font-size: 0.92rem;
}

.onboarding-tile-card-compact p {
  font-size: 0.8rem;
}

.onboarding-share-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 107, 86, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcfa, #f2f8f5);
}

.onboarding-share-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.onboarding-share-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.onboarding-actions .primary-action {
  margin-left: auto;
}

.onboarding-actions .primary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.onboarding-card.is-intro-step .onboarding-lead {
  margin-bottom: 4px;
}

.onboarding-tile-step-visual {
  margin: 8px 0 4px;
}

.onboarding-tile-step-hero {
  min-height: clamp(280px, 42vh, 400px);
  padding: 28px;
  border-radius: 64px;
}

.onboarding-tile-step-hero strong {
  max-width: 16ch;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 0.94;
}

.onboarding-tile-step-hero .blob-description {
  max-width: 28ch;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.35;
}

.onboarding-field-tile,
.onboarding-note-tile {
  margin-top: 14px;
}

.onboarding-note-tile {
  font-size: 1rem;
  line-height: 1.5;
}

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

.onboarding-story-items-demo {
  margin: 18px 0 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 33, 31, 0.08);
}

.onboarding-story-items-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.onboarding-story-items-row {
  margin-top: 12px;
  pointer-events: none;
}

.onboarding-story-pin {
  cursor: default;
  flex: 0 0 auto;
}

.onboarding-tile-card-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 168px;
  padding: 16px;
  border: 0;
  border-radius: 42px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03) 18%, rgba(0, 0, 0, 0.74) 100%),
    var(--blob-image) center / cover;
  box-shadow: 0 14px 32px rgba(23, 33, 31, 0.18);
}

.onboarding-tile-card-visual strong {
  font-size: 1.15rem;
  line-height: 1.05;
}

.onboarding-tile-card-visual p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  line-height: 1.35;
}

.account-help-link-wrap {
  margin: 0 0 12px;
}

.workspace-blob-field {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 120px;
  gap: clamp(14px, 1.8vw, 24px);
  align-items: stretch;
  min-height: min(720px, calc(100vh - 260px));
  margin: 0 0 28px;
}

.board-present-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 79, 101, 0.12), rgba(197, 146, 46, 0.16));
  border: 1px solid rgba(37, 79, 101, 0.14);
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.08);
}

.board-present-copy {
  min-width: 0;
}

.board-present-copy .eyebrow {
  margin: 0 0 4px;
  color: #254f65;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.board-present-lead {
  margin: 0;
  color: #42514f;
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 42ch;
}

.board-present-button {
  flex-shrink: 0;
  min-height: 52px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(37, 79, 101, 0.18);
}

.board-present-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.trip-presentation-shell {
  padding: 8px 0 36px;
}

.trip-presentation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

.trip-presentation-note {
  margin: 0;
  color: #5d6d69;
  font-size: 0.92rem;
}

.trip-presentation-header {
  margin-bottom: 8px;
}

.trip-presentation-header h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.05;
}

.trip-presentation-header p:last-child {
  margin: 0;
  color: #4f5d59;
  line-height: 1.5;
}

.published-story-chapter + .published-story-chapter {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(37, 79, 101, 0.12);
}

body.trip-presentation-view .workspace-blob-field,
body.trip-presentation-view .board-present-bar {
  display: none;
}

.workspace-blob {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  gap: 7px;
  width: 100%;
  min-height: 0;
  padding: 24px;
  border: 0;
  color: white;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03) 18%, rgba(0, 0, 0, 0.74) 100%),
    var(--blob-image) center / cover;
  border-radius: 54px;
  box-shadow: 0 20px 46px rgba(23, 33, 31, 0.22);
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.workspace-blob:hover,
.workspace-blob:focus {
  outline: 0;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 58px rgba(23, 33, 31, 0.28);
}

.workspace-blob::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.08);
}

.workspace-blob[data-workspace="map"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(23, 33, 31, 0.16) 48%, rgba(23, 33, 31, 0.74) 100%),
    var(--blob-image) center / cover;
}

.workspace-blob strong {
  max-width: 12ch;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 0.96;
}

body.story-layout-scrapbook .workspace-blob:nth-child(odd) {
  transform: rotate(-0.9deg);
}

body.story-layout-scrapbook .workspace-blob:nth-child(even) {
  transform: rotate(0.8deg);
}

body.story-layout-scrapbook .workspace-blob::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 64px;
  height: 18px;
  z-index: 2;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.58);
  transform: translateX(-50%) rotate(-3deg);
  pointer-events: none;
}

body.story-layout-scrapbook .workspace-blob:hover,
body.story-layout-scrapbook .workspace-blob:focus {
  transform: translateY(-4px) scale(1.02) rotate(0deg);
}

body.story-layout-postcards .workspace-blob {
  border: 8px solid rgba(255, 255, 255, 0.94);
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(23, 33, 31, 0.2);
}

body.story-layout-postcards .workspace-mini-blob {
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px;
}

body.story-layout-timeline .workspace-blob,
body.story-layout-timeline .workspace-mini-blob {
  border-radius: 22px;
}

body.story-layout-timeline .workspace-blob {
  transform: none;
}

body.story-layout-timeline .workspace-blob:hover,
body.story-layout-timeline .workspace-blob:focus {
  transform: translateY(-3px);
}

.blob-label {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.blob-description {
  max-width: 22ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.25;
}

.blob-a {
  grid-column: 1 / span 6;
  grid-row: 1 / span 3;
  border-radius: 72px;
}

.blob-b {
  grid-column: 7 / span 6;
  grid-row: 1 / span 3;
  border-radius: 64px;
}

.blob-c {
  grid-column: 1 / span 6;
  grid-row: 4 / span 3;
  border-radius: 58px;
}

.blob-d {
  grid-column: 7 / span 6;
  grid-row: 4 / span 3;
  border-radius: 62px;
}

.blob-e {
  grid-column: 10 / span 3;
  grid-row: 4 / span 3;
  border-radius: 76px;
}

.blob-f {
  grid-column: 9 / span 4;
  grid-row: 1 / span 3;
  border-radius: 52px;
}

.blob-g {
  grid-column: 4 / span 4;
  grid-row: 4 / span 3;
  border-radius: 68px;
}

.blob-h {
  grid-column: 10 / span 3;
  grid-row: 1 / span 3;
  border-radius: 70px;
}

.map-intro {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.map-style-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.trail-type-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.trail-type-option {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.trail-type-option.is-active {
  border-color: rgba(36, 107, 86, 0.55);
  background: #eef6f1;
  box-shadow: 0 0 0 3px rgba(36, 107, 86, 0.12);
}

.trail-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
}

.map-style-option {
  position: relative;
  min-height: 88px;
  display: grid;
  align-content: space-between;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.map-style-option.is-active {
  border-color: rgba(36, 107, 86, 0.55);
  box-shadow: 0 0 0 3px rgba(36, 107, 86, 0.12);
}

.map-style-option strong {
  font-size: 0.74rem;
}

.map-style-sample {
  height: 42px;
  display: block;
  border-radius: 12px;
}

.voyager-sample {
  background: linear-gradient(135deg, #8ec5b1, #f0d9a8 58%, #6f98c8);
}

.positron-sample {
  background: linear-gradient(180deg, #f7f4ef, #dfe8e2);
}

.dark-sample {
  background: linear-gradient(135deg, #1f2a37, #3d5168);
}

.topo-sample {
  background: linear-gradient(135deg, #d8e8c4, #f2efe3 45%, #b9d0e8);
}

.satellite-sample {
  background: url("assets/rojales/white-caves.jpg") center / cover;
}

.watercolor-sample {
  background: linear-gradient(135deg, #b8d8e8, #f2d9b0 52%, #d4a5c8);
}

.sketch-sample {
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    url("assets/picasso/02-courtyard.jpeg") center / cover;
  filter: grayscale(0.85) contrast(1.1);
}

.map-style-premium.is-locked {
  opacity: 0.92;
}

.map-style-premium.is-locked::after {
  display: none;
}

.map-style-lock {
  display: none;
}

.map-premium-tools {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #faf8f3;
}

.route-map-shell.map-visual-watercolor .leaflet-tile-pane {
  filter: saturate(1.35) contrast(0.92) brightness(1.05) hue-rotate(-8deg);
}

.route-map-shell.map-visual-sketch .leaflet-tile-pane {
  filter: grayscale(0.9) contrast(1.15) brightness(1.08);
}

.map-premium-tools .eyebrow {
  margin-bottom: 8px;
}

.map-credit-actions {
  display: grid;
  gap: 8px;
}

.map-credit-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.map-credit-action.is-active {
  border-color: rgba(36, 107, 86, 0.55);
  background: #eef6f1;
  color: var(--green-dark);
}

.map-credit-action.is-hidden {
  display: none;
}

.route-point-card select {
  grid-column: 1 / -1;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 0.76rem;
  font-weight: 600;
}

.route-point-story-link {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(36, 107, 86, 0.12);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.map-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.route-map-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: #e8efe9;
  box-shadow: var(--shadow);
}

.route-map {
  min-height: 420px;
  height: min(56vh, 520px);
}

.route-map .leaflet-container {
  font-family: inherit;
}

.route-map-label-icon {
  pointer-events: none;
}

.route-map-label-icon > span,
.route-map-label-icon > strong {
  display: block;
}

.route-map-label-icon {
  min-width: 172px;
  padding: 9px 12px;
  border: 1px solid rgba(36, 107, 86, 0.24);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 26px rgba(23, 33, 31, 0.18);
  color: var(--ink);
  transform: translate(10px, -12px);
  backdrop-filter: blur(8px);
}

.route-map-label-kicker {
  margin-bottom: 2px;
  color: var(--green-dark);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.route-map-label-icon strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.map-hint {
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

.route-sidebar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
}

.route-sidebar label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
}

.route-sidebar input,
.route-sidebar select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 500;
}

.route-coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.route-point-form {
  display: grid;
  gap: 10px;
}

.route-point-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.route-trail-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.route-trail-heading,
.route-trail-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-trail-heading .eyebrow {
  margin: 0;
}

.route-trail-list {
  display: grid;
  gap: 8px;
}

.route-trail-empty,
.route-trail-card {
  padding: 10px;
  border: 1px solid rgba(24, 83, 68, 0.18);
  border-left: 4px solid var(--trail-color, var(--brand));
  border-radius: 8px;
  background: rgba(250, 248, 240, 0.78);
}

.route-trail-empty p,
.route-trail-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.route-point-card {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8f6f0;
}

.route-point-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--trail-color, var(--green));
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.route-point-card strong {
  display: block;
  font-size: 0.9rem;
}

.route-point-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.trail-chip,
.stay-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px 5px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.trail-chip {
  background: color-mix(in srgb, var(--trail-color, var(--green)) 16%, white);
  color: var(--trail-color, var(--green));
}

.stay-chip {
  background: color-mix(in srgb, var(--stay-color, var(--gold)) 16%, white);
  color: var(--stay-color, var(--gold));
}

.stay-chip span {
  min-width: 20px;
  min-height: 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--stay-color, var(--gold));
  color: white;
  font-size: 0.62rem;
}

.route-point-card button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 92, 71, 0.12);
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-story-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 8px;
  background: rgba(36, 107, 86, 0.07);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.route-story-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.file-button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px dashed rgba(36, 107, 86, 0.35);
  border-radius: 999px;
  background: #eef6f1;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.route-import-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(238, 246, 241, 0.96), rgba(255, 249, 231, 0.92)),
    url("assets/map/route-default.png") center / cover;
  box-shadow: 0 18px 38px rgba(23, 33, 31, 0.08);
}

.route-import-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: white;
  color: var(--green-dark);
  font-weight: 1000;
  box-shadow: 0 12px 26px rgba(23, 33, 31, 0.14);
}

.route-import-hero h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.route-import-hero p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.route-import-drop {
  min-height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 2px dashed rgba(36, 107, 86, 0.28);
  border-radius: 32px;
  background: #fffdf8;
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.route-import-drop input {
  display: none;
}

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

.route-import-empty,
.route-import-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: white;
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.08);
}

.route-import-empty {
  grid-column: 1 / -1;
  padding: 22px;
}

.route-import-empty p {
  margin: 5px 0 0;
  color: var(--muted);
}

.route-import-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.route-import-preview {
  min-height: 134px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(23, 33, 31, 0.13)),
    url("assets/map/route-default.png") center / cover;
}

.route-import-preview span {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--trail-color, var(--green));
  color: white;
  font-size: 0.78rem;
  font-weight: 1000;
}

.route-import-preview i {
  width: 4px;
  height: 42px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    var(--trail-color, var(--green)) 0 9px,
    transparent 9px 15px
  );
}

.route-import-copy h3 {
  margin: 9px 0 4px;
  font-size: 1.08rem;
}

.route-import-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.route-import-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.route-import-controls select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 800;
}

.rice-cooker-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 36px;
  background: #fffdf8;
  box-shadow: 0 18px 38px rgba(23, 33, 31, 0.08);
}

.rice-cooker-hero img {
  width: 100%;
  min-height: 260px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 30px;
}

.rice-cooker-hero h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 0.98;
}

.rice-cooker-hero p {
  max-width: 42ch;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.travel-meals-pack {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdf8;
}

.travel-meals-pack-hero-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}

.travel-meals-pack-hero {
  margin: 0;
  line-height: 0;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18)),
    var(--pack-hero-image) center / cover no-repeat;
}

.travel-meals-pack-hero img {
  width: 100%;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

.travel-meals-pack-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 4px 2px;
}

.travel-meals-pack-copy h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.02;
}

.travel-meals-pack-subtitle,
.travel-meals-pack-intro {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.travel-meals-pack-recipe-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.travel-meals-pack-recipe-list li {
  position: relative;
  padding: 10px 12px 10px 30px;
  border-radius: 14px;
  background: rgba(36, 107, 86, 0.08);
  border: 1px solid rgba(36, 107, 86, 0.12);
  font-weight: 700;
  line-height: 1.35;
}

.travel-meals-pack-recipe-list li::before {
  content: "◦";
  position: absolute;
  left: 12px;
  top: 9px;
  color: #246b56;
  font-size: 1.1rem;
  line-height: 1;
}

.rice-cooker-pack-admin {
  margin-bottom: 16px;
}

.travel-meals-pack-admin-preview {
  padding: 10px;
  border-radius: 18px;
  background: #f7f3ea;
}

.travel-meals-pack-admin-preview .travel-meals-pack-hero-layout {
  gap: 12px;
}

.travel-meals-pack-admin-preview .travel-meals-pack-hero,
.travel-meals-pack-admin-preview .travel-meals-pack-hero img {
  min-height: 160px;
  max-height: 200px;
}

.travel-meals-pack-view {
  margin-top: 12px;
}

.travel-meals-pack-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.travel-meals-categories {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.travel-meals-category {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8, #f7f3ea);
}

.travel-meals-category .section-heading {
  margin-bottom: 10px;
}

.travel-meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.travel-meals-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(23, 33, 31, 0.06);
}

.travel-meals-item.is-soon {
  opacity: 0.88;
}

.travel-meals-item:hover,
.travel-meals-item:focus-visible {
  border-color: #c5922e;
  transform: translateY(-1px);
}

.travel-meals-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.travel-meals-item strong {
  display: block;
  font-size: 0.98rem;
}

.travel-meals-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rice-cooker-intro {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.rice-cooker-board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.rice-cooker-board {
  display: grid;
  gap: 14px;
}

.rice-cooker-series-header {
  margin-bottom: 4px;
  padding: 4px 2px 8px;
}

.rice-cooker-series-header h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.04;
}

.rice-cooker-series-lead,
.rice-cooker-series-intro {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.rice-cooker-recipe-list {
  display: grid;
  gap: 14px;
}

.rice-cooker-recipe-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.95fr) minmax(0, 1.1fr);
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fffdf8;
  text-align: left;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.07);
  cursor: pointer;
}

.rice-cooker-recipe-row.is-locked {
  opacity: 0.94;
}

.rice-cooker-recipe-row-image {
  min-height: 220px;
  background: #e8e2d7;
}

.rice-cooker-recipe-row-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.rice-cooker-recipe-row-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
}

.rice-cooker-recipe-row-copy h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.08;
}

.rice-cooker-recipe-row-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.rice-cooker-recipe-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rice-cooker-recipe-row-ingredients {
  margin: 0;
  padding-left: 18px;
  color: #4f5d59;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rice-cooker-recipe-row-action {
  margin: 4px 0 0;
  font-weight: 700;
  color: #246b56;
}

.travel-meals-pack-admin-preview .rice-cooker-recipe-row {
  pointer-events: none;
  box-shadow: none;
}

.travel-meals-pack-admin-preview .rice-cooker-recipe-row-image,
.travel-meals-pack-admin-preview .rice-cooker-recipe-row-image img {
  min-height: 150px;
}

.rice-cooker-pin {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fffdf8;
  text-align: left;
  box-shadow: 0 14px 30px rgba(23, 33, 31, 0.07);
  break-inside: avoid;
}

.rice-cooker-pin.is-locked {
  opacity: 0.92;
}

.rice-cooker-pin-photo {
  background: transparent;
}

.rice-cooker-pin-visual {
  min-height: 210px;
  background-size: cover;
  background-position: center;
  background-color: #d8e2dc;
}

.rice-cooker-pin-overlay {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 248, 0.04) 0%,
    rgba(255, 253, 248, 0.42) 42%,
    rgba(255, 253, 248, 0.88) 72%,
    rgba(255, 253, 248, 0.96) 100%
  );
}

.rice-cooker-pin-photo .rice-cooker-pin-copy {
  padding: 14px 16px 16px;
  color: var(--ink);
}

.rice-cooker-pin-photo .rice-cooker-pin-copy p,
.rice-cooker-pin-photo .rice-cooker-pin-copy .eyebrow {
  color: var(--muted);
}

.rice-cooker-pin-photo.is-locked .rice-cooker-pin-visual {
  filter: saturate(0.72) brightness(0.92);
}

.rice-cooker-admin {
  margin-bottom: 14px;
}

.rice-cooker-admin-card {
  padding: 14px 16px;
  border: 1px dashed #c5922e;
  border-radius: 20px;
  background: #fff8ea;
}

.rice-cooker-admin-card summary {
  cursor: pointer;
  font-weight: 700;
}

.rice-cooker-admin-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.rice-cooker-admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.rice-cooker-admin-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.rice-cooker-admin-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.rice-cooker-admin-fields {
  display: grid;
  gap: 8px;
}

.rice-cooker-admin-select {
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.rice-cooker-admin-select select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
}

.rice-cooker-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rice-cooker-admin-upload {
  cursor: pointer;
}

.rice-cooker-admin-row-wide {
  grid-template-columns: 88px minmax(0, 1fr);
}

.rice-cooker-admin-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.rice-cooker-admin-field {
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.rice-cooker-admin-field input,
.rice-cooker-admin-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  font: inherit;
}

.rice-cooker-admin-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rice-cooker-admin-recipe {
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fffdf8;
}

.rice-cooker-admin-recipe summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
}

.rice-cooker-pin-image {
  position: relative;
  line-height: 0;
}

.rice-cooker-pin-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.rice-cooker-pin-image.is-locked img {
  filter: saturate(0.75);
}

.rice-cooker-pin-lock {
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.82);
  color: #fff;
  font-size: 0.78rem;
  text-align: center;
}

.rice-cooker-pin-copy {
  padding: 14px 16px 16px;
}

.rice-cooker-pin-copy strong {
  display: block;
  margin: 6px 0;
  font-size: 1rem;
}

.rice-cooker-pin-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.rice-cooker-pin-size-1 .rice-cooker-pin-image img {
  min-height: 150px;
}

.rice-cooker-pin-size-2 .rice-cooker-pin-image img {
  min-height: 190px;
}

.rice-cooker-pin-size-3 .rice-cooker-pin-image img {
  min-height: 220px;
}

.rice-cooker-workshop {
  margin-top: 18px;
}

.rice-cooker-workshop-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdf8, #f7f3ea);
  box-shadow: 0 18px 36px rgba(23, 33, 31, 0.08);
}

.rice-cooker-workshop-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.rice-cooker-workshop-mode,
.rice-cooker-workshop-tabs,
.rice-cooker-workshop-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.rice-cooker-workshop-mode .mini-action.is-active,
.rice-cooker-workshop-tabs .mini-action.is-active,
.rice-cooker-workshop-subtabs .mini-action.is-active {
  background: var(--ink);
  color: #fff;
}

.rice-cooker-workshop-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 16px;
}

.rice-cooker-workshop-fields-wide {
  grid-column: 1 / -1;
}

.rice-cooker-workshop-preview img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.rice-cooker-prompt-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
}

.rice-cooker-recipe-block h4,
.rice-cooker-custom-form h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.rice-cooker-recipe-block ul,
.rice-cooker-recipe-block ol,
.rice-cooker-step-list {
  margin: 0 0 12px;
  padding-left: 18px;
  line-height: 1.45;
}

.rice-cooker-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rice-cooker-recipe-tip,
.rice-cooker-recipe-hint,
.rice-cooker-recipe-done {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.rice-cooker-recipe-done {
  color: #246b56;
}

.rice-cooker-include-recipe {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.rice-cooker-catalog-list {
  display: grid;
  gap: 10px;
}

.rice-cooker-catalog-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
}

.rice-cooker-catalog-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
}

.rice-cooker-catalog-item strong {
  display: block;
  margin-bottom: 4px;
}

.rice-cooker-catalog-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.rice-cooker-catalog-cost {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.rice-cooker-custom-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.rice-cooker-custom-meta label {
  display: grid;
  gap: 6px;
}

.rice-cooker-custom-meta input,
.rice-cooker-custom-form .story-item-title {
  width: 100%;
}

.rice-cooker-story-recipe {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.rice-cooker-recipe-photo img {
  width: 100%;
  border-radius: 18px;
  display: block;
  margin-bottom: 12px;
}

.rice-cooker-workshop-preview-recipe img {
  object-fit: cover;
  min-height: 220px;
}

.rice-cooker-pins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rice-cooker-pins article {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, #eef6f1, #fff6dc);
  box-shadow: 0 14px 30px rgba(23, 33, 31, 0.07);
}

.rice-cooker-pins article:nth-child(2) {
  background: linear-gradient(135deg, #fffdf8, #eaf1f6);
}

.rice-cooker-pins article:nth-child(3) {
  background: linear-gradient(135deg, #f8f6f0, #eef6f1);
}

.rice-cooker-pins strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.rice-cooker-pins p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.workspace-blob-strip {
  display: none;
}

.story-block {
  position: relative;
  margin: 34px 0 10px;
  padding: 74px 34px 34px;
  border: 6px solid #eef2f4;
  background: white;
}

.story-page > .story-block,
.story-page > .image-grid {
  display: none !important;
}

.story-icon {
  position: absolute;
  top: -66px;
  left: 28px;
  width: 114px;
  height: 114px;
  display: grid;
  place-items: center;
  border: 6px solid #eef2f4;
  background: white;
  color: #4b566d;
  font-size: 2.4rem;
}

.story-block h2 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.story-block p {
  max-width: 920px;
  color: #30445f;
  font-size: 1.08rem;
  line-height: 1.65;
}

.story-block p + p {
  margin-top: 12px;
}

.image-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  grid-template-rows: 170px 170px;
  gap: 8px;
}

.new-story-state .image-grid {
  display: grid;
  margin-top: 14px;
}

.new-story-state .story-block {
  margin-top: 18px;
}

.new-story-state .story-image {
  filter: saturate(0.96) contrast(0.98);
}

.story-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.story-image.large {
  grid-row: 1 / 3;
}

.reportage-stage {
  display: none;
  max-width: 1040px;
  margin: 34px auto 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0f1517;
  box-shadow: var(--shadow);
}

.show-reportage .story-page {
  display: none;
}

.show-reportage .reportage-stage {
  display: block;
  margin-top: 0;
}

.reportage-slide {
  position: relative;
  min-height: 620px;
  isolation: isolate;
  overflow: hidden;
}

.reportage-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.04);
  opacity: 1;
  transition: opacity 420ms ease;
  z-index: -2;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.reportage-slide.is-changing img,
.reportage-slide.is-changing .reportage-copy,
.live-slide.is-changing img,
.live-slide.is-changing .live-copy {
  opacity: 0;
}

.reportage-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 21, 23, 0.78), rgba(15, 21, 23, 0.18) 58%, rgba(15, 21, 23, 0.62));
  z-index: -1;
}

.reportage-copy {
  width: min(520px, calc(100% - 42px));
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 42px;
  color: white;
  opacity: 1;
  transition: opacity 420ms ease;
}

.reportage-copy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.reportage-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.reportage-copy p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.5;
}

.voice-line {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.reportage-slide.zoom-in img {
  animation: zoomIn 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.reportage-slide.zoom-out img {
  animation: zoomOut 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.reportage-slide.pan-left img {
  animation: panLeft 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.reportage-slide.pan-right img {
  animation: panRight 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.reportage-slide.fade-soft img {
  animation: fadeSoft 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes zoomIn {
  from { transform: scale(1.03); }
  to { transform: scale(1.1); }
}

@keyframes zoomOut {
  from { transform: scale(1.1); }
  to { transform: scale(1.04); }
}

@keyframes panLeft {
  from { transform: scale(1.08) translateX(2%); }
  to { transform: scale(1.08) translateX(-2%); }
}

@keyframes panRight {
  from { transform: scale(1.08) translateX(-2%); }
  to { transform: scale(1.08) translateX(2%); }
}

@keyframes fadeSoft {
  from { opacity: 0.86; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1.03); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  max-width: min(460px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 750;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.moment-open-hint {
  background: rgba(36, 107, 86, 0.12);
  color: var(--green-dark);
}

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

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  place-items: center;
  padding: clamp(12px, 2vw, 28px);
}

.story-modal.is-open {
  display: grid;
}

.story-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(197, 146, 46, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(79, 119, 168, 0.16), transparent 24%),
    rgba(12, 18, 17, 0.58);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.story-modal-panel.story-workshop {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(249, 240, 223, 0.96)),
    repeating-linear-gradient(-8deg, rgba(36, 107, 86, 0.03) 0 12px, transparent 12px 24px);
  box-shadow: 0 34px 80px rgba(23, 33, 31, 0.28);
}

.library-workshop .annotate-workshop {
  margin-top: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.library-modal-body {
  margin-top: 14px;
}

.library-travel-meals-body,
.library-travel-meals-board {
  margin-top: 14px;
}

.library-travel-meals-board {
  display: grid;
  gap: 14px;
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.library-travel-meals-workshop {
  margin-top: 14px;
}

.library-travel-meals-actions {
  margin-top: 8px;
}

.slideshow-workshop {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.slideshow-workshop-preview {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 244, 233, 0.82));
  border: 1px solid rgba(36, 107, 86, 0.12);
  min-height: 220px;
}

.slideshow-workshop-preview-empty {
  padding: 28px 24px;
}

.slideshow-workshop-preview-empty.is-error p:last-child {
  color: #9a3b2e;
}

.slideshow-workshop-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 220px;
}

.slideshow-workshop-slide img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.slideshow-workshop-slide-copy {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.slideshow-workshop-slide-copy h3 {
  margin: 0;
  font-size: 1.35rem;
}

.slideshow-workshop-preview-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.slideshow-workshop-fields {
  display: grid;
  gap: 14px;
}

.slideshow-workshop-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slideshow-workshop-mode .mini-action.is-active {
  background: rgba(36, 107, 86, 0.14);
  border-color: rgba(36, 107, 86, 0.35);
}

.slideshow-workshop-result {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(36, 107, 86, 0.08);
}

.storyline-slideshow-tools {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 107, 86, 0.12);
}

.storyline-slideshow-tools .section-heading h3 {
  margin: 0;
}

.story-route-map {
  position: sticky;
  top: 14px;
  z-index: 12;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 16px 36px rgba(23, 33, 31, 0.12);
  backdrop-filter: blur(8px);
}

.story-route-map.is-empty {
  grid-template-columns: minmax(0, 1fr) auto;
}

.story-route-map-preview {
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(231, 239, 221, 0.9), rgba(248, 243, 225, 0.9)),
    url("assets/map/route-default.png") center / cover;
}

.story-route-map-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}

.story-route-bg-line,
.story-route-main-line,
.story-route-trail-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-route-bg-line {
  stroke: rgba(194, 145, 33, 0.5);
  stroke-width: 3;
}

.story-route-bg-line.muted {
  stroke: rgba(74, 137, 117, 0.45);
}

.story-route-main-line {
  stroke: var(--brand);
  stroke-width: 5;
}

.story-route-trail-line {
  stroke: var(--trail-color, var(--accent));
  stroke-width: 4;
  stroke-dasharray: 7 6;
  opacity: 0.8;
}

.story-route-point {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2.4;
}

.story-route-map-copy {
  min-width: 0;
}

.story-route-map-copy .eyebrow,
.story-route-map.is-empty .eyebrow {
  margin: 0 0 3px;
}

.story-route-map h3 {
  margin: 0;
  font-size: 1rem;
}

.story-route-map p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.route-import-workshop {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.route-import-workshop-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.route-import-list-library {
  grid-template-columns: 1fr;
}

.map-workshop-panel {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.map-workshop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.library-scrapbook-categories {
  display: grid;
  gap: 18px;
}

.library-scrapbook-category {
  position: relative;
  padding: 16px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 244, 233, 0.78));
  border: 1px solid rgba(36, 107, 86, 0.12);
  box-shadow: 0 16px 32px rgba(23, 33, 31, 0.06);
  overflow: hidden;
}

.library-scrapbook-category::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 18px;
  width: 54px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 184, 77, 0.22);
  transform: rotate(7deg);
}

.library-scrapbook-category .section-heading {
  align-items: center;
  margin-bottom: 12px;
}

.library-scrapbook-category .section-heading h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.library-scrapbook-category .section-heading span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.library-scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  align-items: start;
}

.library-scrapbook-item {
  display: grid;
  gap: 6px;
  min-height: 138px;
  padding: 14px 14px 16px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.92));
  box-shadow: 0 14px 28px rgba(23, 33, 31, 0.09);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.library-scrapbook-item:hover,
.library-scrapbook-item:focus-visible {
  outline: 0;
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 18px 34px rgba(23, 33, 31, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 250, 247, 0.98));
}

.library-scrapbook-item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 184, 77, 0.28);
  transform: rotate(8deg);
}

.library-scrapbook-item::after {
  content: "Bekijk packs";
  align-self: end;
  justify-self: start;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(36, 107, 86, 0.08);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.library-scrapbook-grid .library-scrapbook-item:nth-child(2n) {
  transform: rotate(1deg);
}

.library-scrapbook-grid .library-scrapbook-item:nth-child(3n) {
  transform: rotate(-1.2deg);
}

.library-scrapbook-emoji {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 4px;
}

.library-scrapbook-item strong {
  font-size: 0.96rem;
  color: var(--ink);
}

.library-scrapbook-item p {
  font-size: 0.82rem;
  line-height: 1.45;
}

.library-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.library-pack-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 241, 227, 0.84));
  border: 1px solid rgba(36, 107, 86, 0.14);
  box-shadow: 0 18px 34px rgba(23, 33, 31, 0.08);
  transform: rotate(-0.6deg);
  position: relative;
  overflow: hidden;
}

.library-pack-grid .library-pack-card:nth-child(2n) {
  transform: rotate(0.8deg);
}

.library-pack-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 16px;
  width: 58px;
  height: 14px;
  border-radius: 999px;
  background: rgba(79, 119, 168, 0.16);
  transform: rotate(-8deg);
}

.library-pack-card .meta-row {
  margin-top: 4px;
}

.library-pack-card .chip {
  background: rgba(255, 255, 255, 0.88);
}

.library-pack-card .chip-freebie {
  background: rgba(221, 244, 230, 0.95);
  color: #1f6b46;
}

.library-pack-card .chip-premium {
  background: rgba(255, 244, 214, 0.96);
  color: #8a5a10;
}

.library-pack-preview {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  max-width: 220px;
}

.library-pack-preview img,
.library-pack-preview svg {
  display: block;
  width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: cover;
}

.library-pack-preview.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(1.2px);
  -webkit-backdrop-filter: blur(1.2px);
  pointer-events: none;
}

.story-workshop-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 18px;
}

.story-workshop-header-compact {
  align-items: center;
  margin-bottom: 10px;
}

.story-workshop-header-compact .mini-action {
  justify-self: start;
}

.story-workshop-hero {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 18px;
  align-items: end;
}

.story-workshop-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid white;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(23, 33, 31, 0.18);
  transform: rotate(-3deg);
}

.story-workshop-intro {
  min-width: 0;
}

.story-workshop-title {
  width: 100%;
  margin: 4px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.story-workshop-lead {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(36, 107, 86, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.story-modal-close {
  align-self: start;
}

.story-publish-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.story-publish-copy {
  min-width: 0;
}

.story-publish-lead {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.story-share-url {
  margin: 8px 0 0;
  font-size: 0.82rem;
  word-break: break-all;
}

.story-share-url a {
  color: var(--accent);
}

.story-device-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.story-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.story-route-link-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 8px;
  background: rgba(36, 107, 86, 0.07);
}

.story-route-link-copy {
  min-width: 0;
}

.story-route-link-copy .eyebrow {
  margin: 0 0 4px;
}

.story-route-link-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-route-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.story-route-link-actions select {
  min-height: 36px;
  max-width: min(280px, 48vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 0 10px;
}

body.shared-story-view {
  background: linear-gradient(180deg, #f4efe2, #efe7d5);
}

body.shared-story-view .canvas-stage {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.published-story-shell {
  display: grid;
  gap: 18px;
  padding: 28px 0 36px;
}

.published-story-meta,
.published-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.published-story-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 54px rgba(23, 33, 31, 0.12);
}

.published-story-hero-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 22px;
}

.published-story-hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.published-story-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.published-story-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.published-story-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.1);
  transform: rotate(var(--item-rotate, 0deg));
}

.published-story-item.is-full-width {
  grid-column: 1 / -1;
}

.published-story-item img {
  display: block;
  width: 100%;
  border-radius: 18px;
  object-fit: contain;
  background: #eef2ef;
  transform: scale(var(--story-image-scale, 1));
  transform-origin: center center;
}

.published-story-photo img,
.published-story-rich > img {
  aspect-ratio: auto;
}

.published-story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.published-story-copy h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.published-story-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.published-story-empty {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.story-pin-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-bottom: 28px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.story-pin-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.story-pin-bar-header .eyebrow,
.story-pin-bar-header h3 {
  margin: 0;
}

.story-pin-bar-header h3 {
  font-size: 1rem;
}

.story-pin-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.story-pin-nav .icon-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.story-swipe-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding-bottom: 6px;
  scrollbar-width: none;
  touch-action: pan-x;
}

.story-swipe-row::-webkit-scrollbar {
  display: none;
}

.story-swipe-row > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.story-pin-row {
  width: 100%;
  max-width: 100%;
  gap: 10px;
  margin-top: 0;
  padding: 2px 2px 8px;
}

.story-pin {
  width: 92px;
  min-width: 92px;
  min-height: 88px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px 8px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.story-pin.pin-annotate {
  background: #e8f1dc;
}

.story-pin.pin-collage {
  background: #e7f0f6;
}

.story-pin:hover,
.story-pin:focus-visible {
  outline: 0;
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 12px 24px rgba(23, 33, 31, 0.12);
}

.story-pin strong {
  font-size: 0.72rem;
  text-align: center;
}

.story-pin-emoji {
  font-size: 1.2rem;
}

.pin-note { background: linear-gradient(180deg, #fff6b8, #f8e58d); }
.pin-photo { background: linear-gradient(180deg, #ffffff, #eef2ef); box-shadow: inset 0 0 0 1px rgba(23,33,31,0.06); }
.pin-tip { background: linear-gradient(180deg, #dff0ff, #c8e2fb); }
.pin-color { background: linear-gradient(180deg, #ffe8d8, #ffd0b0); }
.pin-sketch { background: linear-gradient(180deg, #f4f0ea, #e7dfd2); }
.pin-link { background: linear-gradient(180deg, #e8f6ef, #d4ecdf); }
.pin-video { background: linear-gradient(180deg, #ffe4e4, #ffc9c9); }
.pin-route { background: linear-gradient(180deg, #e7f4ef, #cfe7dc); }

.story-collage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
  padding-top: 10px;
}

.story-collage-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 2px dashed rgba(36, 107, 86, 0.22);
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.story-item {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  transform: rotate(var(--item-rotate, 0deg));
  box-shadow: 0 14px 30px rgba(23, 33, 31, 0.1);
}

.story-item.is-full-width {
  grid-column: 1 / -1;
}

.story-item.is-full-width.story-item-photo .story-polaroid-frame img,
.story-item.is-full-width.story-item-compose .story-polaroid-frame img {
  width: 100%;
  max-height: min(72vh, 720px);
}

.story-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.12);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.story-item-note {
  background: linear-gradient(180deg, #fff6b8, #f8e58d);
}

.story-item-tip {
  background: linear-gradient(180deg, #dff0ff, #c8e2fb);
}

.story-item-sketch {
  display: grid;
  gap: 0;
  padding-bottom: 12px;
  background: linear-gradient(180deg, #fffdf8, #f4efe6);
}

.story-sketch-sheet {
  --sketch-line: 22px;
  padding: 6px 0 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--sketch-line) - 1px),
    rgba(109, 96, 76, 0.18) calc(var(--sketch-line) - 1px),
    rgba(109, 96, 76, 0.18) var(--sketch-line)
  );
  background-size: 100% var(--sketch-line);
}

.story-item-sketch-title {
  display: block;
  height: var(--sketch-line);
  margin: 0 0 var(--sketch-line);
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid rgba(109, 96, 76, 0.2);
  background: transparent;
  line-height: var(--sketch-line);
  font-size: 1rem;
  font-weight: 800;
}

.story-item-sketch-body {
  display: block;
  width: 100%;
  min-height: calc(var(--sketch-line) * 6);
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  line-height: var(--sketch-line);
  font-size: 0.95rem;
  resize: vertical;
}

.story-sketch-assistant-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(109, 96, 76, 0.2);
}

.story-sketch-assistant-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(36, 107, 86, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.story-sketch-assistant-toggle[aria-expanded="true"] {
  border-color: rgba(36, 107, 86, 0.45);
  box-shadow: 0 0 0 3px rgba(36, 107, 86, 0.1);
}

.story-sketch-assistant-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dff0ff, #c8e2fb);
  color: #246b56;
  font-size: 0.82rem;
}

.story-sketch-assistant-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(36, 107, 86, 0.1);
}

.story-sketch-assistant-panel[hidden] {
  display: none;
}

.story-sketch-assistant-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.story-sketch-assistant-field {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.story-sketch-assistant-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(36, 107, 86, 0.16);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.story-sketch-assistant-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.story-sketch-assistant-preview {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(109, 96, 76, 0.18);
}

.story-sketch-assistant-preview[hidden] {
  display: none;
}

.story-sketch-assistant-preview-card {
  padding: 10px 12px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--sketch-line, 22px) - 1px),
      rgba(109, 96, 76, 0.14) calc(var(--sketch-line, 22px) - 1px),
      rgba(109, 96, 76, 0.14) var(--sketch-line, 22px)
    ),
    linear-gradient(180deg, #fffdf8, #f7f2ea);
  background-size: 100% var(--sketch-line, 22px), 100% 100%;
}

.story-sketch-assistant-preview-card strong {
  display: block;
  margin-bottom: var(--sketch-line, 22px);
  line-height: var(--sketch-line, 22px);
  font-size: 0.98rem;
}

.story-sketch-assistant-preview-card p {
  margin: 0;
  white-space: pre-wrap;
  line-height: var(--sketch-line, 22px);
  color: var(--ink);
}

.story-sketch-assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.published-story-sketch {
  background: linear-gradient(180deg, #fffdf8, #f4efe6);
}

.published-story-sketch-sheet {
  --sketch-line: 22px;
  padding-top: 6px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--sketch-line) - 1px),
    rgba(109, 96, 76, 0.18) calc(var(--sketch-line) - 1px),
    rgba(109, 96, 76, 0.18) var(--sketch-line)
  );
  background-size: 100% var(--sketch-line);
}

.published-story-sketch-title {
  margin: 0 0 var(--sketch-line);
  padding: 0 2px var(--sketch-line);
  border-bottom: 2px solid rgba(109, 96, 76, 0.2);
  line-height: var(--sketch-line);
  font-size: 1rem;
}

.published-story-sketch-body {
  margin: 0;
  padding: 0 2px;
  white-space: pre-wrap;
  line-height: var(--sketch-line);
  color: var(--ink);
}

.story-item-link {
  background: linear-gradient(180deg, #e8f6ef, #d4ecdf);
  border-left: 6px solid var(--green);
}

.story-item-video {
  background: linear-gradient(180deg, #fff5f5, #ffe8e8);
  border-left: 6px solid #d64545;
}

.story-video-note,
.story-video-empty {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.story-video-embed {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
}

.story-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-item-color {
  background: white;
  text-align: center;
}

.story-item-emoji,
.story-item-kind {
  margin: 0 0 8px;
}

.story-item-kind {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-item-title,
.story-item-body,
.story-item-url {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
}

.story-item-title {
  margin-bottom: 8px;
  font-weight: 800;
}

.story-item-body,
.story-item-url {
  line-height: 1.45;
  resize: vertical;
}

.story-item-url {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.story-polaroid {
  display: grid;
  gap: 10px;
}

.story-image-move-layer,
.published-story-content {
  transform: translate(var(--story-image-offset-x, 0px), var(--story-image-offset-y, 0px))
    rotate(var(--story-image-rotation, 0deg));
  transform-origin: center center;
  transition: transform 0.18s ease;
}

.story-polaroid-frame {
  position: relative;
}

.story-polaroid-frame img {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #eef2ef;
  transform: scale(var(--story-image-scale, 1));
  transform-origin: center center;
  transition: transform 0.18s ease;
}

.story-photo-change {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(12, 18, 17, 0.12);
}

.story-photo-picker {
  display: grid;
  gap: 10px;
}

.story-photo-picker-lead {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.story-photo-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.story-photo-option {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(36, 107, 86, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  min-height: 108px;
}

.story-photo-option img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2ef;
}

.story-photo-option span {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.story-photo-option em {
  font-style: normal;
  font-size: 0.66rem;
  color: var(--muted);
}

.story-photo-upload,
.story-photo-library {
  place-content: center;
  text-align: center;
  border-style: dashed;
  background: rgba(238, 242, 239, 0.9);
}

.story-photo-picker-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.story-polaroid-empty {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #eef2ef;
}

.story-polaroid-empty {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 2px dashed rgba(36, 107, 86, 0.24);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.scrapbook-compose-card {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 18px;
  align-items: start;
}

.photo-compose-workshop {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.grid-collage-workshop {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.grid-collage-preview-wrap,
.grid-collage-preview {
  width: 100%;
}

.grid-collage-preview {
  display: grid;
  gap: var(--grid-gap, 10px);
  min-height: 320px;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 24px;
  box-shadow: 0 16px 30px rgba(23, 33, 31, 0.08);
}

.grid-collage-cell {
  overflow: hidden;
  border-radius: var(--grid-radius, 12px);
  border: var(--grid-border-width, 0) solid var(--grid-border-color, #ffffff);
  background: rgba(255, 255, 255, 0.72);
  box-sizing: border-box;
}

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

.grid-collage-cell-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 48px;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 700;
}

.grid-collage-controls {
  display: grid;
  gap: 14px;
}

.grid-collage-layout-row {
  padding-bottom: 4px;
}

.grid-collage-layout {
  width: 88px;
  min-width: 88px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.grid-collage-layout.is-active {
  border-color: rgba(36, 107, 86, 0.55);
  box-shadow: 0 0 0 3px rgba(36, 107, 86, 0.12);
}

.grid-collage-layout strong {
  display: block;
  margin-top: 6px;
  font-size: 0.66rem;
}

.grid-collage-layout-sample {
  display: grid;
  gap: 3px;
  width: 100%;
  height: 52px;
  padding: 4px;
  border-radius: 10px;
  background: #dfe8e2;
}

.grid-collage-layout-sample i {
  display: block;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
}

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

.grid-collage-slider {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.grid-collage-slider input[type="range"] {
  width: 100%;
}

.grid-collage-slider input[type="color"] {
  width: 100%;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.workshop-privacy-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(36, 107, 86, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  grid-column: 1 / -1;
}

.photo-compose-preview {
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 243, 234, 0.88));
  box-shadow: 0 16px 30px rgba(23, 33, 31, 0.08);
}

.photo-compose-layout-road-trip {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.18);
}

.photo-compose-filmstrip {
  display: grid;
  gap: 6px;
  padding: 8px 6px;
  background: #111;
}

.photo-compose-frame {
  position: relative;
  min-height: 68px;
  border: 2px solid #f4efe4;
  background: #222;
  overflow: hidden;
}

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

.photo-compose-frame-empty {
  display: grid;
  place-items: center;
  min-height: 68px;
  color: #f4efe4;
  font-size: 1.2rem;
}

.photo-compose-stage {
  position: relative;
  background-size: cover;
  background-position: center;
}

.photo-compose-stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 248, 0.02) 0%,
    rgba(255, 253, 248, 0.18) 48%,
    rgba(255, 253, 248, 0.82) 100%
  );
}

.photo-compose-text {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: var(--compose-accent, #b83232);
}

.photo-compose-text h3 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.photo-compose-text p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.photo-compose-text span {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
}

.photo-compose-fields {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(36, 107, 86, 0.08);
}

.photo-compose-field {
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.photo-compose-field input,
.photo-compose-field textarea,
.photo-compose-admin-select select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  font: inherit;
}

.photo-compose-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-compose-section {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.photo-compose-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.photo-compose-slot {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.photo-compose-slot-preview,
.photo-compose-bg-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2ef;
}

.photo-compose-slot-preview img,
.photo-compose-bg-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-compose-slot-upload {
  cursor: pointer;
}

.photo-compose-admin-select {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
}

.scrapbook-compose-preview,
.story-scrapbook-preview {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 243, 234, 0.88));
  box-shadow: 0 16px 30px rgba(23, 33, 31, 0.08);
}

.scrapbook-compose-fields {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(36, 107, 86, 0.08);
}

.scrapbook-part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.scrapbook-part-option {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(36, 107, 86, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.scrapbook-part-option:hover,
.scrapbook-part-option:focus-visible,
.scrapbook-part-option.is-active {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(23, 33, 31, 0.08);
  border-color: rgba(36, 107, 86, 0.3);
}

.scrapbook-part-option img {
  width: 100%;
  max-height: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f1ea;
}

.story-scrapbook-image img {
  display: block;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #f4f1ea;
  transform: scale(var(--story-image-scale, 1));
  transform-origin: center center;
  transition: transform 0.18s ease;
}

.camperplek-compose-card .library-pack-preview,
.camperplek-compose-card .library-pack-preview img {
  max-width: 180px;
  max-height: 120px;
}

.camperplek-photo-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.camperplek-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.camperplek-photo-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2ef;
}

.camperplek-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camperplek-photo-thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 18, 17, 0.72);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.camperplek-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.camperplek-photo-actions .story-photo-option {
  width: 72px;
  min-height: 0;
  padding: 4px;
}

.camperplek-photo-actions .story-photo-option img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.camperplek-photo-actions .story-photo-option span,
.camperplek-photo-actions .story-photo-upload em {
  display: none;
}

.camperplek-photo-empty {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.camperplek-preview-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 72px));
  gap: 6px;
}

.camperplek-preview-gallery img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.camperplek-compose-fields,
.camperplek-field {
  width: 100%;
}

.camperplek-field {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.camperplek-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.camperplek-route-note,
.camperplek-story-route,
.camperplek-story-price {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.camperplek-amenity.is-active {
  background: var(--green);
  color: #fff;
}

.story-item-camperplek {
  background: linear-gradient(180deg, #edf7f1, #dcefe4);
  border-left: 6px solid #246b56;
}

.camperplek-story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-width: 168px;
}

.camperplek-story-gallery img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.camperplek-story-preview.scrapbook-layout-side {
  grid-template-columns: minmax(120px, 168px) 1fr;
}

.scrapbook-part-option span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
}

.scrapbook-compose-text {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff6b8, #f8e58d);
  min-height: 120px;
}

.scrapbook-compose-text p:last-child {
  margin: 8px 0 0;
  line-height: 1.5;
}

.scrapbook-compose-textarea {
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(36, 107, 86, 0.1);
}

.scrapbook-layout-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-action.is-active {
  background: var(--green);
  color: white;
}

.scrapbook-layout-side {
  grid-template-columns: minmax(150px, 210px) 1fr;
  align-items: center;
}

.scrapbook-layout-overlay {
  position: relative;
  min-height: 280px;
}

.scrapbook-layout-overlay .scrapbook-compose-asset,
.scrapbook-layout-overlay .story-scrapbook-image {
  grid-column: 1 / -1;
  grid-row: 1;
}

.scrapbook-layout-overlay .scrapbook-compose-text,
.scrapbook-layout-overlay .story-scrapbook-copy {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  margin: 0 10px 10px;
  background: rgba(255, 246, 184, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.story-item-scrapbook {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 230, 0.92));
}

.story-scrapbook-image img {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #eef2ef;
  transform: scale(var(--story-image-scale, 1));
  transform-origin: center center;
}

.story-scrapbook-image,
.story-polaroid-frame {
  position: relative;
  overflow: visible;
}

.story-image-resize-tools {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  touch-action: none;
}

.story-image-move-button,
.story-image-rotate-button,
.story-image-resize-reset,
.story-image-resize-handle {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(12, 18, 17, 0.14);
}

.story-image-move-button,
.story-image-rotate-button,
.story-image-resize-reset {
  width: 28px;
  height: 28px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 0.15s ease;
}

.story-image-move-button,
.story-image-rotate-button {
  opacity: 1;
  pointer-events: auto;
}

.story-item.is-image-scaled .story-image-resize-reset {
  opacity: 1;
  pointer-events: auto;
}

.story-image-resize-handle {
  width: 28px;
  height: 28px;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(36, 107, 86, 0.86) 46% 54%, transparent 55% 100%),
    rgba(255, 255, 255, 0.92);
  cursor: nwse-resize;
  touch-action: none;
}

body.story-image-resizing {
  cursor: nwse-resize;
  user-select: none;
  touch-action: none;
}

body.story-image-moving {
  cursor: move;
  user-select: none;
  touch-action: none;
}

body.story-image-moving .story-image-move-layer,
body.story-image-resizing .story-image-move-layer,
body.story-image-resizing .story-polaroid-frame img,
body.story-image-resizing .story-scrapbook-image img {
  transition: none;
}

.story-scrapbook-copy {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff6b8, #f8e58d);
}

.story-swatch {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--swatch-color, #c5922e);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.55);
}

.story-color-input {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  place-items: center;
  padding: 24px;
}

.account-modal.is-open {
  display: grid;
}

.account-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 18, 17, 0.52);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.account-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(23, 33, 31, 0.28);
}

.account-modal-panel.is-trip-setup .account-section-primary {
  margin-bottom: 0;
}

.account-modal-panel.is-trip-setup #accountTrips,
.account-modal-panel.is-trip-setup .account-setup-callout {
  display: none;
}

.account-modal-lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.account-setup-callout {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(197, 146, 46, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8, #fff8ea);
}

.account-setup-callout h3 {
  margin: 4px 0 8px;
  font-size: 1.08rem;
}

.account-setup-callout p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.account-trip-empty {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.account-pack.is-demo {
  opacity: 0.82;
}

.account-pack-badge.is-demo {
  background: rgba(99, 112, 108, 0.12);
  color: var(--muted);
}

.account-modal-panel.is-trip-setup .account-trip-form {
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(36, 107, 86, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.onboarding-account-trip {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.account-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.account-modal-header h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.account-modal-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  line-height: 1;
}

.account-balance-card {
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #f9f0df, #f4ead6);
}

.account-balance-value {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.account-balance-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.account-login-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(36, 107, 86, 0.08);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.account-login-note a {
  color: var(--green-dark);
  font-weight: 800;
}

.account-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.account-section-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.account-section-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.account-pack-grid {
  display: grid;
  gap: 10px;
}

.account-trip-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.account-trip-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.account-trip-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-trip-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.account-trip-actions .mini-action[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.account-pack {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.account-pack:hover,
.account-pack:focus-visible {
  outline: 0;
  border-color: rgba(36, 107, 86, 0.35);
  box-shadow: 0 8px 20px rgba(23, 33, 31, 0.08);
  transform: translateY(-1px);
}

.account-pack.is-popular {
  border-color: rgba(197, 146, 46, 0.45);
  background: linear-gradient(180deg, #fffdf8, #fff8ea);
}

.account-pack-copy h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.account-pack-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.account-pack-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.account-pack-meta strong {
  font-size: 1.05rem;
}

.account-pack-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.account-pack-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(197, 146, 46, 0.16);
  color: #8a6418;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-section + .account-section {
  margin-top: 18px;
}

.account-cost-grid {
  display: grid;
  gap: 12px;
}

.account-cost-group {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.account-cost-group h4 {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-cost-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.account-cost-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.account-cost-item span {
  color: var(--ink);
}

.account-cost-item strong {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-dark);
}

.account-cost-item strong.is-free {
  color: var(--muted);
}

.account-pack.is-disabled,
.account-pack:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.account-footnote {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.live-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  background: #050708;
  color: white;
}

.live-viewer.is-open {
  display: block;
}

.live-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.live-controls select,
.live-controls button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.live-controls option {
  color: var(--ink);
}

.live-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.live-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 1;
  transition: opacity 420ms ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.live-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 56%, rgba(0, 0, 0, 0.68));
}

.live-copy {
  width: min(680px, calc(100% - 44px));
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 0 0 8vh 7vw;
  opacity: 1;
  transition: opacity 420ms ease;
}

.live-copy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.live-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  line-height: 0.94;
}

.live-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.live-progress {
  position: absolute;
  left: 7vw;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.live-slide.zoom-in img {
  animation: zoomIn 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.live-slide.zoom-out img {
  animation: zoomOut 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.live-slide.pan-left img {
  animation: panLeft 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.live-slide.pan-right img {
  animation: panRight 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.live-slide.fade-soft img {
  animation: fadeSoft 8500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    min-width: 0;
    min-height: auto;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 30px;
  }

  .canvas-stage {
    min-width: 0;
    min-height: auto;
    padding: 28px 18px;
  }

  .canvas-actions {
    position: absolute;
  }

  .workspace-blob-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, 42%);
    gap: 10px;
    margin: 0 -16px 16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .workspace-mini-blob {
    min-height: 112px;
    display: flex;
    align-items: end;
    padding: 13px;
    border: 0;
    border-radius: 36px;
    color: white;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
    background:
      linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72)),
      var(--blob-image) center / cover;
    scroll-snap-align: start;
  }

  .workspace-blob-field {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 118px;
    min-height: 0;
  }

  .workspace-blob {
    width: 100%;
    min-height: 0;
  }

  .blob-a {
    grid-column: 1 / span 3;
    grid-row: 1 / span 2;
  }

  .blob-b {
    grid-column: 4 / span 3;
    grid-row: 1 / span 2;
  }

  .blob-c {
    grid-column: 1 / span 3;
    grid-row: 3 / span 2;
  }

  .blob-d {
    grid-column: 4 / span 3;
    grid-row: 3 / span 2;
  }

  .blob-e {
    grid-column: 5 / span 2;
    grid-row: 5 / span 2;
  }

  .blob-f {
    grid-column: 5 / span 2;
    grid-row: 1 / span 2;
  }

  .blob-g {
    grid-column: 3 / span 2;
    grid-row: 3 / span 2;
  }

  .blob-h {
    grid-column: 5 / span 2;
    grid-row: 3 / span 2;
  }

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

  .map-workspace {
    grid-template-columns: 1fr;
  }

  .route-import-list {
    grid-template-columns: 1fr;
  }

  .annotate-example-hero,
  .annotate-example-steps,
  .grid-collage-example-panel,
  .workshop-example-panel {
    grid-template-columns: 1fr;
  }

  .rice-cooker-hero,
  .rice-cooker-pins {
    grid-template-columns: 1fr;
  }

  .scrapbook-compose-card,
  .photo-compose-workshop,
  .grid-collage-workshop {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .story-hero {
    align-items: start;
    flex-wrap: wrap;
  }

  .board-present-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .board-present-button {
    width: 100%;
  }

  .travel-meals-pack-hero-layout {
    grid-template-columns: 1fr;
  }

  .story-hero-credits {
    margin-left: auto;
  }

  .sidebar {
    padding: 16px;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

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

  .board-list {
    grid-template-columns: 1fr;
  }

  .layout-picker,
  .onboarding-layout-picker,
  .scrapbook-layout {
    grid-template-columns: 1fr;
  }

  .onboarding-tile-grid {
    grid-template-columns: 1fr;
  }

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

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

  .story-workshop-cover {
    max-width: 220px;
  }

  .story-pin-row {
    gap: 8px;
  }

  .story-pin {
    width: 86px;
    min-width: 86px;
    min-height: 84px;
  }

  .story-pin-bar-header h3 {
    font-size: 0.94rem;
  }

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

  .scrapbook-layout .moment:nth-child(n) {
    margin-top: 0;
    transform: none;
  }

  .workspace-blob-strip {
    grid-auto-columns: minmax(152px, 72%);
  }

  .workspace-blob-field {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
    margin: 18px 0 22px;
  }

  .workspace-blob {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 210px;
    grid-column: auto;
    grid-row: auto;
    border-radius: 42px;
  }

  .workspace-blob:nth-child(2n) {
    border-radius: 54px;
  }

  .workspace-blob strong {
    font-size: 1.8rem;
  }

  .route-import-hero,
  .route-import-card {
    grid-template-columns: 1fr;
  }

  .rice-cooker-hero {
    padding: 10px;
    border-radius: 30px;
  }

  .rice-cooker-hero img {
    min-height: 210px;
    border-radius: 24px;
  }

  .rice-cooker-board {
    gap: 12px;
  }

  .rice-cooker-recipe-row {
    grid-template-columns: 1fr;
  }

  .rice-cooker-recipe-row-image,
  .rice-cooker-recipe-row-image img {
    min-height: 190px;
  }

  .rice-cooker-workshop-grid {
    grid-template-columns: 1fr;
  }

  .rice-cooker-custom-meta {
    grid-template-columns: 1fr;
  }

  .route-import-preview {
    min-height: 118px;
  }

  .board-card:nth-child(2n) {
    margin-top: 0;
  }

  .image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .story-image {
    min-height: 220px;
  }

  .story-image.large {
    grid-row: auto;
  }

  .reportage-slide,
  .reportage-copy {
    min-height: 520px;
  }

  .reportage-copy {
    padding: 24px;
  }

  .story-block {
    padding: 66px 20px 24px;
  }

  .live-controls {
    left: 12px;
    right: 12px;
    flex-wrap: wrap;
  }

  .route-map {
    min-height: 300px;
    height: 44vh;
  }

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

  .route-coords {
    grid-template-columns: 1fr;
  }

  .live-copy {
    padding: 0 22px 10vh;
  }
}
