:root {
  --paper: #f5f0e6;
  --paper-deep: #ece3d4;
  --ink: #40453f;
  --ink-soft: #697169;
  --accent: #8d9d95;
  --accent-deep: #66756f;
  --border: rgba(72, 79, 71, 0.16);
  --shadow: 0 16px 44px rgba(67, 70, 58, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(173, 184, 176, 0.28), transparent 28%),
    linear-gradient(180deg, #f7f3ea 0%, #f0eadf 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.page-shell { max-width: 1440px; margin: 0 auto; padding: 18px 16px 24px; }
.site-header, .site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 8px; color: var(--ink-soft);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.95rem; }
.site-nav a { padding: 6px 0; }
.site-footer { font-size: 0.88rem; margin-top: 22px; border-top: 1px solid var(--border); }
.card {
  background: rgba(250, 247, 240, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 22px;
  backdrop-filter: blur(6px);
}
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.83rem; color: var(--accent-deep); }
.lede { font-size: 1.03rem; line-height: 1.72; }
.home-view, .location-view { display: grid; gap: 20px; }
.home-hero { display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 1fr); gap: 22px; padding: 24px; align-items: center; overflow: hidden; }
.home-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); margin: 10px 0; line-height: 1.1; }
.home-hero-copy { max-width: 60ch; }
.home-actions, .action-row { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-btn, .secondary-btn, .ghost-btn, .mode-btn, .pref-chip {
  border-radius: 999px; border: 1px solid var(--border); padding: 12px 18px; transition: 0.2s ease;
}
.primary-btn {
  background: var(--accent-deep); color: #fff; border-color: transparent;
}
.secondary-btn { background: rgba(255,255,255,0.58); color: var(--ink); }
.ghost-btn { background: transparent; color: var(--ink-soft); }
.small { padding: 8px 12px; font-size: 0.92rem; }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .mode-btn:hover, .pref-chip:hover {
  transform: translateY(-1px); box-shadow: 0 8px 18px rgba(67,70,58,0.08);
}
.home-map-wrap { position: relative; min-height: 340px; }
.home-map {
  width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 1px solid var(--border);
}
.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.location-card { overflow: hidden; }
.location-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.location-copy { padding: 16px; }
.location-copy h3 { margin: 0 0 8px; font-size: 1.45rem; }
.intro-card { padding: 18px 22px; }
.location-top { display: flex; align-items: center; gap: 18px; padding: 18px 20px; position: relative; z-index: 1; }
.location-heading h1 { margin: 6px 0 8px; font-size: clamp(2rem, 4vw, 3rem); }
.location-heading p { margin: 0; line-height: 1.7; }
.location-view { position: relative; }
.location-backdrop {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.18;
  filter: blur(16px) saturate(0.9); transform: scale(1.02); border-radius: 24px;
}
.editor-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; position: relative; z-index: 1;
}
.editor-panel, .controls-panel { padding: 20px; }
.controls-panel { display: grid; align-content: start; gap: 18px; }
.art-banner-wrap { overflow: hidden; border-radius: 18px; border: 1px solid var(--border); margin-bottom: 16px; }
.art-banner { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.music-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--border); padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.46); margin-bottom: 16px;
}
.music-card p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.94rem; }
.music-controls { display: flex; gap: 8px; }
.progress-row { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.progress-row input { width: 100%; }
.postcard-shell { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: rgba(255,255,255,0.62); }
.postcard-stage { position: relative; padding: 14px; }
#postcardCanvas { width: 100%; height: auto; display: block; border-radius: 16px; background: #fbf7ef; }
.text-fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.text-fields label, .control-group label { display: grid; gap: 6px; }
.text-fields span, .control-group span { font-size: 0.92rem; color: var(--ink-soft); }
input[type="text"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.78);
}
input[type="range"] { width: 100%; }
.controls-panel h2, .controls-panel h3 { margin: 0 0 8px; }
.control-group { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,0.44); }
.microcopy { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.effect-grid, .preference-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.mode-btn.active, .pref-chip.active { background: rgba(141, 157, 149, 0.24); border-color: rgba(102,117,111,0.35); color: var(--accent-deep); }
.compact { gap: 8px; }
.preference-card textarea { min-height: 80px; }
.status-text { min-height: 1.4em; }
details summary { cursor: pointer; color: var(--accent-deep); }
@media (max-width: 980px) {
  .home-hero, .editor-layout, .location-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header, .site-footer, .location-top, .music-card { grid-template-columns: 1fr; display: grid; }
  .site-nav { gap: 10px 14px; }
  .page-shell { padding-inline: 12px; }
  .home-hero, .editor-panel, .controls-panel { padding: 16px; }
}


[hidden] { display: none !important; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, canvas:focus-visible, select:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.editor-panel, .controls-panel, .home-hero-copy, .home-map-wrap { min-width: 0; }
.film-tag { color: var(--accent-deep); font-size: .74rem; letter-spacing: .1em; }
.film-source-link, .site-footer a, .credits-content a { text-decoration: underline; text-underline-offset: 3px; }
.audio-music-card { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.audio-music-card h2 { font-size: 1.23rem; line-height: 1.55; margin: 7px 0; }
.audio-music-card audio { display: block; width: 100%; min-width: 0; margin: 10px 0; }
.loaded-title { overflow-wrap: anywhere; font-size: 1.03rem !important; color: var(--ink) !important; }
.audio-import, .sound-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.file-picker { cursor: pointer; display: inline-flex; align-items: center; }
.audio-import:focus-within .file-picker { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.permission-row { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; line-height: 1.6; }
.permission-row input { width: 19px; height: 19px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent-deep); }
.audio-options, .film-reference { border-top: 1px solid var(--border); padding-top: 12px; font-size: .88rem; line-height: 1.7; }
.audio-options[open] summary, .film-reference[open] summary { margin-bottom: 10px; }
.sound-option-grid { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 12px; }
.sound-option-grid label { display: grid; gap: 5px; }
input[type="number"] { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.8); }
input, textarea, select { min-width: 0; }
.video-export-card { margin-top: 20px; border: 1px solid var(--border); background: rgba(141,157,149,.1); padding: 18px; border-radius: 18px; display: grid; gap: 11px; }
.video-export-card h2 { font-size: 1.45rem; margin: 0; }
.video-export-options { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.video-export-options label { display: grid; gap: 5px; font-size: .88rem; }
.video-export-options select { width: 108px; padding: 10px; }
#postcardCanvas { touch-action: none; }
#artStatus { margin: 10px 0 0; }
.video-dialog { width: min(780px, calc(100vw - 24px)); max-height: 93dvh; overflow-y: auto; border: 1px solid var(--border); border-radius: 20px; padding: 22px; color: var(--ink); background: #f7f2e8; box-shadow: 0 25px 80px rgba(28,34,28,.3); }
.video-dialog::backdrop { background: rgba(29,37,32,.6); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog-heading h2 { font-size: 1.45rem; margin: 5px 0 15px; }
#videoRenderCanvas, #videoPreview { display: block; width: 100%; height: auto; max-height: 55dvh; object-fit: contain; border-radius: 12px; background: var(--paper); }
#videoProgress { display: block; width: 100%; height: 7px; margin-top: 18px; accent-color: var(--accent-deep); }
#videoDialogStatus { font-size: .95rem; line-height: 1.7; }
.video-result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#videoSaveHint { margin-top: 14px; }
.credits-content { max-width: 860px; margin: 20px auto; padding: clamp(20px, 5vw, 40px); line-height: 1.8; overflow-wrap: anywhere; }
.credits-content h1, .credits-content h2, .credits-content h3 { line-height: 1.35; }
.credits-content section + section { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px; }
.credits-content code { font-family: monospace; font-size: .85em; }
@media (max-width: 720px) {
  .home-hero { grid-template-columns: minmax(0,1fr); }
  .home-map-wrap { min-height: auto; }
  .home-map { height: auto; display: block; }
  .sound-option-grid { grid-template-columns: minmax(0,1fr); }
  .video-dialog { padding: 14px; }
  input[type="text"], input[type="number"], textarea, select { font-size: 16px; }
  .location-backdrop { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  button, a { transition: none !important; }
  button:hover, a:hover { transform: none !important; }
}

/* v14: full-width postcard with ink controls directly underneath. */
.page-shell { max-width: 1180px; }
.editor-panel { min-width: 0; }
.location-backdrop { pointer-events: none; }
.art-banner { max-height: 210px; object-position: center; }
.film-listening { grid-template-columns: minmax(0,1fr); gap: 10px; }
.music-caption h2 { margin: 4px 0; font-size: 1.17rem; line-height: 1.55; }
.film-song-meta { display: grid; gap: 5px; overflow-wrap: anywhere; }
.film-song-meta strong { font-weight: 500; font-size: 1.1rem; }
.film-song-meta span { font-size: .85rem; color: var(--ink-soft); line-height: 1.55; }
.film-consent { display: flex; align-items: center; gap: 14px; }
.film-consent button { flex-shrink: 0; }
.film-consent .microcopy { font-size: .82rem; }
.film-player-host { width: 100%; min-width: 0; }
.film-player-host iframe { display: block; width: 100%; height: 175px; border: 0; border-radius: 10px; }
.film-player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .8rem; }
#filmPlayerStatus { font-size: .8rem; }
.creative-workspace { border: 1px solid var(--border); border-radius: 18px; padding: 18px; background: rgba(245,240,230,.7); scroll-margin-top: 14px; }
.workspace-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.workspace-heading h2 { margin: 5px 0 0; font-size: 1.38rem; font-weight: 500; line-height: 1.4; }
.workspace-heading p { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.canvas-and-ink { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; align-items: start; }
.preview-column { min-width: 0; position: static; }
.postcard-shell { border-radius: 12px; box-shadow: 0 3px 14px rgba(64,69,63,.06); }
.postcard-stage { padding: 6px; }
#postcardCanvas { border-radius: 8px; }
.canvas-hint { margin: 10px 2px 0; font-size: .78rem; line-height: 1.6; }
.ink-rail { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.66); }
.ink-rail h3 { margin: 0 0 12px; font-size: .9rem; font-weight: 500; letter-spacing: .05em; }
.ink-sliders { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.ink-sliders label { display: grid; gap: 0; }
.ink-sliders label > span { display: flex; align-items: baseline; justify-content: space-between; gap: 3px; font-size: .88rem; }
.ink-sliders output { color: var(--ink-soft); font: 12px system-ui,sans-serif; }
.ink-sliders input { width: 100%; height: 38px; margin: 0; padding: 0; accent-color: var(--accent-deep); cursor: pointer; touch-action: pan-y; }
.touch-tools { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; align-items: center; }
.touch-tools h3 { margin: 0; font-size: .96rem; font-weight: 500; }
.touch-tools p { grid-column: 1 / -1; font-size: .78rem; }
.touch-tools .effect-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; min-width: 0; }
.touch-tools .mode-btn { padding: 8px 5px; min-height: 44px; font-size: .86rem; border-radius: 11px; }
.touch-tools .action-row { justify-content: flex-end; }
.touch-tools .small { min-height: 44px; padding: 7px 12px; }
.text-fields { margin-top: 18px; margin-bottom: 12px; }
.text-options { margin-bottom: 16px; }
.text-options:not([open]) { display: block; }
.text-options summary { min-height: 26px; line-height: 26px; }
.preference-card { margin-top: 20px; }
.native-audio-details { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: rgba(255,255,255,.5); }
.native-audio-details summary { min-height: 28px; line-height: 1.7; }
.native-audio-details[open] > :not(summary) { margin-top: 12px; }
.native-audio-details audio { width: 100%; display: block; margin: 10px 0; }
.native-audio-details .microcopy { font-size: .83rem; }
.native-audio-details .file-picker { font-size: .9rem; }
@media (max-width: 720px) {
  .page-shell { padding: 8px 10px 24px; }
  .site-header { padding: 8px 0 14px; gap: 5px; }
  .site-header > button { justify-self: start; padding-left: 0; border: 0; }
  .site-nav { font-size: .81rem; gap: 4px 12px; }
  .site-nav a { min-height: 34px; display: flex; align-items: center; }
  .location-top { padding: 12px 15px; gap: 5px; }
  .location-heading h1 { font-size: 1.8rem; margin: 4px 0; }
  .location-heading .eyebrow { font-size: .76rem; }
  .location-heading > p:last-child { font-size: .9rem; }
  .editor-panel { padding: 12px; }
  .art-banner { max-height: 140px; }
  .art-banner-wrap { margin-bottom: 12px; }
  .film-listening { padding: 12px; border-radius: 14px; gap: 8px; }
  .music-caption h2 { font-size: 1rem; }
  .film-song-meta strong { font-size: 1rem; }
  .film-consent { display: grid; gap: 8px; justify-items: start; }
  .film-consent button { padding: 10px 16px; min-height: 44px; }
  .creative-workspace { padding: 12px 9px; border-radius: 14px; }
  .workspace-heading { display: block; margin-bottom: 12px; }
  .workspace-heading h2 { font-size: 1.11rem; }
  .workspace-heading p { margin-top: 6px; font-size: .76rem; }
  .canvas-and-ink { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .ink-rail { padding: 10px 12px 6px; }
  .ink-rail h3 { font-size: 12px; margin-bottom: 11px; letter-spacing: .025em; }
  .ink-sliders { grid-template-columns: minmax(0,1fr); gap: 0; }
  .ink-sliders label { grid-template-columns: 76px minmax(0,1fr); gap: 12px; align-items: center; }
  .ink-sliders label > span { font-size: 13px; }
  .ink-sliders input { height: 44px; }
  .postcard-stage { padding: 2px; }
  .canvas-hint { font-size: 11px; line-height: 1.6; margin-top: 8px; }
  .touch-tools { grid-template-columns: minmax(0,1fr); margin-top: 12px; gap: 8px; }
  .touch-tools .effect-grid { gap: 5px; }
  .touch-tools .mode-btn { font-size: 12px; padding-inline: 2px; min-height: 44px; }
  .touch-tools .action-row { justify-content: flex-start; }
  .touch-tools .small { padding: 6px 13px; font-size: 12px; }
  .text-fields { gap: 10px; }
  .text-fields span { font-size: .86rem; }
  .text-fields input, .text-fields textarea { padding: 11px 12px; }
  .video-export-card { padding: 14px; }
  .video-export-card h2 { font-size: 1.25rem; }
  .video-export-options { gap: 8px; }
  .video-export-options button { font-size: .9rem; padding: 12px; }
}
@media (max-width: 350px) {
  .editor-panel { padding: 8px; }
  .creative-workspace { padding: 10px 7px; }
  .canvas-and-ink { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .ink-rail { padding-inline: 6px; }
  .workspace-heading h2 { font-size: 1rem; }
}

/* Font controls are visible next to the writing fields; positions remain optional. */
.font-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; margin: 0 0 14px; }
.font-controls label { display: grid; gap: 6px; min-width: 0; }
.font-controls label > span { font-size: .88rem; color: var(--ink-soft); }
.font-controls select { min-height: 44px; color: var(--ink); background: rgba(255,255,255,.75); }
.font-note { grid-column: 1 / -1; font-size: .75rem; }
.loop-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink-soft); font-size: .86rem; cursor: pointer; }
.loop-toggle input { width: 19px; height: 19px; margin: 0; accent-color: var(--accent-deep); }
.mode-btn, .pref-chip { color: var(--ink); }
.ink-sliders input { min-height: 44px; }
#prefMessage:empty { display: none; }
@media (max-width: 720px) {
  .font-controls { gap: 8px 10px; }
  .font-controls select { padding: 10px 8px; font-size: 16px; }
  .font-controls label > span { font-size: .84rem; }
  .ink-rail h3 { margin-bottom: 5px; }
}


/* v14: landscape-first editor. Remove nested gutters; keep INK STYLE underneath. */
.page-shell { max-width: 1440px; }
.editor-panel { padding: 20px 10px; }
.editor-panel > .art-banner-wrap,
.editor-panel > .place-story,
.editor-panel > .music-card,
.editor-panel > .text-fields,
.editor-panel > .font-controls,
.editor-panel > .text-options,
.editor-panel > .action-row,
.editor-panel > .video-export-card,
.editor-panel > .preference-card { margin-left: 10px; margin-right: 10px; }
.creative-workspace { padding: 14px 0 0; border: 0; border-radius: 0; background: transparent; }
.workspace-heading { margin: 0 10px 12px; align-items: center; }
.workspace-heading > div { min-width: 0; }
.expand-editor-btn { white-space: nowrap; min-height: 44px; flex: 0 0 auto; }
.canvas-and-ink { gap: 10px; }
.postcard-shell { border: 0; border-radius: 6px; box-shadow: 0 5px 18px rgba(64,69,63,.08); }
.postcard-stage { padding: 0; }
#postcardCanvas { border-radius: 4px; }
.canvas-hint { margin: 9px 10px 0; }
.ink-rail { margin-inline: 10px; }
.touch-tools { margin: 12px 10px 0; }
.location-shortcuts { margin-top: 10px; }
.location-shortcuts button { min-height: 44px; padding: 7px 12px; font-size: .86rem; }
.place-story { padding: 0 4px 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.story-heading h2 { font-size: clamp(1.1rem,2.3vw,1.5rem); font-weight: 500; margin: 5px 0 10px; line-height: 1.5; }
.place-history, .place-imagination p { max-width: 70ch; line-height: 1.9; margin: 0; font-size: .99rem; }
.place-imagination { margin-top: 10px; }
.place-imagination summary { display: list-item; width: fit-content; padding: 5px 0; font-size: .88rem; line-height: 1.7; min-height: 36px; }
.place-imagination p { margin-top: 6px; padding: 4px 0 4px 14px; border-left: 2px solid var(--accent); color: var(--ink-soft); }
.story-sources { margin-top: 7px; font-size: .76rem; color: var(--ink-soft); }
.story-sources summary { width: fit-content; min-height: 32px; line-height: 1.65; padding-block: 4px; }
#placeSources { display: grid; gap: 4px; padding: 6px 0; }
#placeSources a { width: fit-content; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; padding-block: 4px; }
body.editor-zoom-open { overflow: hidden; }
.large-editor-dialog { margin: 0; padding: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.large-editor-dialog::backdrop { background: rgba(35,43,38,.6); }
.large-editor-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left)); background: rgba(246,241,231,.97); border-bottom: 1px solid var(--border); }
.large-editor-bar h2 { margin: 0; font-size: 1rem; font-weight: 500; }
.large-editor-bar button { min-height: 44px; }
.large-editor-content { width: 100%; max-width: 1520px; margin: 0 auto; padding: 6px max(4px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)); }
.large-editor-content .canvas-and-ink { grid-template-columns: minmax(0,1fr); }
.large-editor-content .canvas-hint { display: none; }
.large-editor-content .ink-rail { margin-top: 6px; }
@media (min-width: 900px) {
  .large-editor-content { max-width: min(1520px, max(760px, calc((100dvh - 220px) * 1200 / 850))); }
}
@media (max-width: 720px) {
  .page-shell { padding: 6px 6px 24px; }
  .editor-panel { padding: 10px 0 14px; border-radius: 14px; }
  .editor-panel > .art-banner-wrap,
  .editor-panel > .place-story,
  .editor-panel > .music-card,
  .editor-panel > .text-fields,
  .editor-panel > .font-controls,
  .editor-panel > .text-options,
  .editor-panel > .action-row,
  .editor-panel > .video-export-card,
  .editor-panel > .preference-card { margin-left: 10px; margin-right: 10px; }
  .creative-workspace { padding: 8px 0 0; }
  .workspace-heading { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .workspace-heading h2 { font-size: 1.1rem; }
  .expand-editor-btn { font-size: .76rem; padding: 7px 11px; }
  .postcard-shell, #postcardCanvas { border-radius: 3px; }
  .postcard-stage { padding: 0; }
  .ink-rail { margin-inline: 8px; }
  .ink-sliders label { grid-template-columns: 66px minmax(0,1fr); }
  .place-story { padding-inline: 2px; padding-bottom: 12px; }
  .place-history, .place-imagination p { font-size: .94rem; line-height: 1.85; }
  .location-shortcuts { margin-top: 5px; }
}


/* v16: route headings keep screen-reader focus without a decorative blue ring.
   Keyboard focus on links, buttons, fields and the interactive canvas is unchanged. */
#appRoot h1[data-route-focus="true"]:focus,
#appRoot h1[data-route-focus="true"]:focus-visible { outline: none; box-shadow: none; }
.preference-card .preference-privacy { margin: 2px 0; font-size: .77rem; line-height: 1.7; color: var(--ink-soft); }
.preference-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.preference-card[aria-busy="true"] { cursor: progress; }
#prefMessage[data-state="error"] { color: #854839; }
#prefMessage[data-state="saved"] { color: var(--accent-deep); }
.preference-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
