/* Reader and writing layouts. Cover styles are maintained in cover.css. */
html {
  min-width: 0;
}

body {
  min-height: 100vh;
  background-color: #f8f5ed;
  background-image:
    radial-gradient(ellipse at 14% 8%, #ffffffa8 0, transparent 38%),
    radial-gradient(ellipse at 88% 92%, #e9e1cf55 0, transparent 42%),
    repeating-linear-gradient(0deg, #897c5c08 0, #897c5c08 1px, transparent 1px, transparent 4px);
  background-attachment: fixed;
  cursor: url('/assets/pen-cursor.svg?v=20260928-pagination1') 3 53, auto;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.flow-panel:not([hidden]) {
  animation: flow-enter .28s ease-out both;
}

@keyframes flow-enter {
from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); }
}

.flow-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 26px auto 8px;
  max-width: 1050px;
}

.write-section {
  max-width: 960px;
  padding-block: 38px 70px;
}

.write-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.write-heading h2 {
  margin: 0;
  font: 400 30px/1.45 "STSong", "SimSun", serif;
  letter-spacing: 1px;
}

.write-section .form-panel {
  max-width: 850px;
  margin-inline: auto;
  padding: 24px 32px 30px;
}

.write-section .form-heading {
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.write-section .form-actions {
  flex-direction: row;
}

.write-section .story-label .small {
  font-size: 11px;
}

.write-section .consent {
  font-size: 11px;
}

.write-section .consent input {
  width: 17px;
  height: 17px;
}

.stories-section {
  padding-block: 40px 64px;
  border-top: 1px solid var(--line);
}

.section-top {
  align-items: end;
  margin-bottom: 24px;
}

.section-top h2 {
  margin-block: 10px;
  font-size: 28px;
}

.section-top p {
  font-size: 13px;
}

.storybook {
  margin-top: 0;
  padding: 18px 18px 8px;
  border-radius: 12px;
  background: #e8ede5;
  box-shadow: 0 16px 40px #2345380a;
}

.storybook::before {
  display: none;
}

.storybook-stage {
  perspective: 1600px;
  touch-action: pan-y pinch-zoom;
  outline-offset: 7px;
  scroll-margin-top: 24px;
}

.storybook-stage:focus-visible {
  outline: 2px solid #b18e4b;
  border-radius: 5px;
}

.book-shadow {
  inset: 8px 0 -5px 5px;
  transform: rotate(.2deg);
  background: #d4ddcc;
  box-shadow: none;
}

.storybook-page {
  min-height: 610px;
  padding: 30px 34px 34px;
  background: #fffdf7;
  border-radius: 4px 8px 8px 4px;
  box-shadow: inset 9px 0 12px -10px #756e53, 0 5px 12px #254a3610;
  cursor: grab;
  backface-visibility: hidden;
}

.storybook-page.is-turning {
  animation: none;
}

.storybook-stage.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.is-dragging .storybook-page {
  cursor: grabbing;
  will-change: transform;
}

.storybook-page.turn-sheet {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  width: 100%;
  pointer-events: none;
  will-change: transform, opacity;
}

.storybook-meta {
  padding-bottom: 13px;
  font-size: 11px;
  gap: 12px;
  letter-spacing: .5px;
}

.storybook-theme {
  text-align: right;
  color: #91753c;
}

.storybook-spread {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 34px;
  padding-top: 28px;
  align-items: center;
}

.storybook-visual {
  min-height: 0;
  aspect-ratio: 1.05;
  width: 100%;
  /* Keep the complete illustration visible in wide, short and scaled windows. */
  background-size: contain !important;
  background-position: center !important;
  background-color: #fffdf8;
  border-radius: 2px;
  box-shadow: none;
}

.storybook-copy {
  min-width: 0;
  padding: 0;
  cursor: text;
}

.storybook-copy h2 {
  font-size: 28px;
  line-height: 1.55;
  letter-spacing: .5px;
  margin: 0 0 16px;
  text-wrap: balance;
}

.storybook-intro {
  font-size: 14px;
  line-height: 1.95;
  margin-bottom: 20px;
  color: #6c7f73;
}

.storybook-quote {
  font-size: 19px;
  line-height: 1.8;
  margin: 0 0 20px;
  padding: 10px 15px;
}

.storybook-text {
  font-size: 14px;
  line-height: 2;
  color: #50666b;
  margin-bottom: 15px;
}

.storybook-text:last-child {
  margin-bottom: 0;
}

.storybook-controls {
  grid-template-columns: 100px 1fr 70px 100px;
  padding: 13px 4px 3px;
  gap: 12px;
}

.page-control {
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
  gap: 8px;
}

.page-control span {
  display: inline;
}

.page-control-next {
  justify-content: flex-end;
}

.page-control:disabled {
  opacity: .35;
}

.book-dots {
  gap: 0;
}

.book-dot {
  position: relative;
  width: 36px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  flex-shrink: 0;
}

.book-dot::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c5b4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: width .2s, background .2s;
}

.book-dot:hover, .book-dot.active {
  transform: none;
  background: transparent;
}

.book-dot.active::before {
  background: #a68743;
  width: 18px;
  border-radius: 8px;
}

.book-page-count {
  font-size: 12px;
  color: #697d6c;
}

.storybook-ending {
  min-height: 610px;
  display: grid;
  place-items: center;
}

.ending-content {
  padding: 48px 12px;
}

.ending-ellipsis {
  font: 48px/1.5 Georgia, serif;
  color: #baa05d;
  margin: 0 0 16px;
  letter-spacing: 10px;
}

.ending-content h2 {
  font-size: 32px;
  letter-spacing: 1px;
  margin: 0 0 32px;
}

.ending-button {
  margin: 0;
}

.site-footer {
  padding-block: 25px;
}

.site-footer .kia-wordmark {
  margin-right: auto;
  color: #263d3c;
  font: 900 italic 29px/.9 Arial, sans-serif;
  letter-spacing: -3px;
  transform: scaleX(1.08);
  transform-origin: left center;
}

.site-footer > a:last-child {
  font-size: 11px;
  color: #526a5e;
}

@media (max-width: 1000px) {
  .storybook-spread {
    gap: 25px;
  }

  .storybook-page {
    padding-inline: 26px;
  }

  .storybook-copy h2 {
    font-size: 25px;
  }
}

@media (max-width: 760px) {
  .book-bottom {
    font-size: 8px;
    margin-top: 10px;
    padding-top: 9px;
  }

  .stories-section {
    padding-top: 30px;
    padding-bottom: 36px;
  }

  .section-top {
    display: block;
    margin-bottom: 16px;
  }

  .section-top h2 {
    font-size: 24px;
    letter-spacing: 0;
  }

  .section-top p {
    font-size: 12px;
  }

  .storybook {
    padding: 10px 10px 4px;
    border-radius: 8px;
    margin-inline: -7px;
  }

  .storybook-page {
    min-height: 0;
    padding: 20px 20px 26px;
  }

  .storybook-meta {
    font-size: 10px;
    gap: 8px;
    letter-spacing: 0;
  }

  .storybook-theme {
    font-size: 10px;
  }

  .storybook-spread {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 22px;
  }

  .storybook-visual {
    aspect-ratio: 1.7;
    min-height: 0;
  }



  .storybook-copy h2 {
    font-size: 25px;
    margin-bottom: 16px;
  }

  .storybook-intro, .storybook-text {
    font-size: 14px;
    line-height: 2;
  }

  .storybook-quote {
    font-size: 18px;
    padding: 10px 13px;
  }

  .storybook-controls {
    grid-template-columns: 70px 1fr 70px;
    gap: 0;
    padding-top: 8px;
  }

  .page-control {
    padding: 8px 4px;
    font-size: 11px;
    gap: 5px;
  }

  .page-control-next {
    grid-column: 3;
    grid-row: 1;
  }

  .book-dots {
    grid-column: 2;
    grid-row: 1;
  }

  .book-dot {
    width: 25px;
  }

  .book-page-count {
    grid-column: 2;
    grid-row: 2;
    padding-bottom: 7px;
    font-size: 11px;
  }

  .storybook-ending {
    min-height: 440px;
  }

  .ending-content h2 {
    font-size: 25px;
    letter-spacing: 0;
  }

  .site-footer {
    flex-wrap: nowrap;
    gap: 14px;
    padding-bottom: max(25px, env(safe-area-inset-bottom));
  }

  .site-footer .kia-wordmark {
    flex-basis: auto;
  }

  .flow-actions {
    flex-direction: column-reverse;
    margin-top: 18px;
  }

  .write-section {
    padding-block: 24px 42px;
  }

  .write-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .write-heading h2 {
    font-size: 25px;
  }

  .write-section .form-panel {
    padding: 18px;
  }

  .write-section .form-actions {
    flex-direction: column;
  }

  .write-section .form-grid {
    gap: 16px 12px;
  }

  .write-section input, .write-section textarea {
    font-size: 16px;
  }

  .write-section .field-bottom {
    flex-wrap: wrap;
    font-size: 10px;
  }

  .toast {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-panel:not([hidden]) {
    animation: none;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding-inline: 18px;
  }

  .storybook-page {
    padding-inline: 16px;
  }

  .book-dot {
    width: 22px;
  }

  .storybook-controls {
    grid-template-columns: 58px 1fr 58px;
  }

  .storybook-copy h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storybook-page {
    animation: none !important;
  }
}

:root {
  --paper: #f8f5ed;
  --line: #d7d5ca;
  --ink: #183b4b;
  --navy: #143447;
  --deep: #102f41;
  --sage: #e5ebe1;
}

html {
  background: var(--paper);
}

body {
  color: var(--ink);
}

.hero.wrap,
.stories-section.wrap,
.write-section.wrap {
  max-width: 1320px;
}

.hero-actions .button,
.flow-actions .button {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 14px;
  letter-spacing: .02em;
}

.book-bottom {
  font-size: 11px;
}

.stories-section {
  max-width: 1320px;
  padding-block: 34px 56px;
}

.section-top {
  gap: 24px;
  margin-bottom: 22px;
}

.section-top h2 {
  margin-block: 0 8px;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.32;
  letter-spacing: .01em;
}

.section-top p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.storybook {
  padding: 13px 13px 7px;
  border-radius: 10px;
  background: #e4e9df;
  box-shadow: 0 18px 44px #183b4b10;
}

.book-shadow {
  inset: 9px 0 -5px 5px;
  background: #d3dccf;
}

.storybook-page {
  min-height: 650px;
  padding: 34px 42px 38px;
  background: #fffdf8;
  box-shadow: inset 10px 0 14px -11px #756e53, 0 6px 16px #254a3610;
}

.storybook-meta {
  padding-bottom: 15px;
  font-size: 13px;
  line-height: 1.6;
  gap: 15px;
  letter-spacing: .025em;
}

.storybook-theme {
  font-size: 13px;
}

.storybook-spread {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 3.2vw, 46px);
  padding-top: 26px;
}

.storybook-visual {
  aspect-ratio: 1.08;
}

.storybook-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 2.8vw, 36px);
  line-height: 1.48;
  letter-spacing: .015em;
}

.storybook-intro {
  margin-bottom: 19px;
  font-size: 16px;
  line-height: 1.9;
}

.storybook-quote {
  margin-bottom: 18px;
  padding: 11px 16px;
  font-size: 21px;
  line-height: 1.75;
}

.storybook-text {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.9;
}

.storybook-controls {
  grid-template-columns: 120px minmax(120px, 1fr) 78px 120px;
  gap: 15px;
  padding: 15px 8px 4px;
}

.page-control {
  min-height: 48px;
  padding: 9px 10px;
  font-size: 14px;
}

.book-dot {
  width: 38px;
  height: 46px;
}

.book-page-count {
  font-size: 13px;
}

.storybook-ending {
  min-height: 650px;
}

.ending-content h2 {
  font-size: 36px;
}

.flow-actions {
  max-width: 1050px;
  margin-top: 24px;
}

.write-section {
  max-width: 1180px;
  padding-block: 38px 68px;
}

.write-heading {
  margin-bottom: 15px;
}

.write-heading h2 {
  font-size: 36px;
  line-height: 1.3;
}

.write-section .form-panel {
  max-width: 1060px;
  padding: 30px 38px 34px;
}

.write-section .form-heading {
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.write-section .notice {
  margin-bottom: 20px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.75;
}

.write-section .form-grid {
  gap: 19px 24px;
}

.write-section label {
  font-size: 15px;
  line-height: 1.55;
}

.write-section input,
.write-section textarea {
  font-size: 16px;
  line-height: 1.65;
}

.write-section input {
  min-height: 52px;
  padding: 12px 15px;
}

.write-section textarea {
  min-height: 230px;
  padding: 15px 16px;
}

.write-section input::placeholder,
.write-section textarea::placeholder {
  font-size: 14px;
}

.write-section .form-divider {
  margin-block: 22px;
}

.write-section .story-label .small {
  font-size: 13px;
}

.write-section .field-bottom {
  margin-top: 9px;
  font-size: 13px;
}

.write-section .consent {
  margin-block: 22px 20px;
  font-size: 14px;
  line-height: 1.8;
}

.write-section .consent input {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 2px;
}

.write-section .consent button,
.write-section .text-link,
.write-section .form-heading .text-link {
  font-size: 14px;
}

.write-section .form-actions {
  gap: 14px;
}

.write-section .form-actions .button {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 14px;
}

.write-section .success-panel {
  max-width: 600px;
  margin-inline: auto;
}

.site-footer {
  width: 100%;
  max-width: none;
  margin: 42px 0 0;
  padding: 21px clamp(24px, calc((100vw - 1300px) / 2), 80px) 26px;
  border-top: 0;
  background: #143447;
  color: #f8f5ed;
}

.site-footer .kia-wordmark {
  color: #f8f5ed;
}

.site-footer > a:last-child {
  color: #f8f5ed;
  font-size: 14px;
}

@media (max-width: 1000px) {
  .storybook-page {
    min-height: 600px;
    padding-inline: 30px;
  }

  .storybook-spread {
    gap: 28px;
  }

  .storybook-copy h2 {
    font-size: 30px;
  }
}

@media (max-width: 760px) {
  .book-bottom {
    margin-top: 10px;
    padding-top: 9px;
    font-size: 9px;
  }

  .stories-section.wrap {
    padding: 26px 20px 38px;
  }

  .section-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 16px;
  }

  .section-top h2 {
    margin-bottom: 5px;
    font-size: 27px;
  }

  .section-top p {
    font-size: 14px;
  }

  .storybook {
    margin-inline: 0;
    padding: 8px 8px 4px;
    border-radius: 8px;
  }

  .storybook-page {
    min-height: 0;
    padding: 19px 18px 24px;
  }

  .storybook-meta {
    gap: 8px;
    padding-bottom: 11px;
    font-size: 11px;
  }

  .storybook-theme {
    font-size: 11px;
  }

  .storybook-spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 17px;
  }

  .storybook-visual {
    aspect-ratio: 1.55;
  }



  .storybook-copy h2 {
    margin-bottom: 13px;
    font-size: 26px;
    line-height: 1.45;
  }

  .storybook-intro {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
  }

  .storybook-quote {
    margin-bottom: 15px;
    padding: 9px 12px;
    font-size: 18px;
    line-height: 1.7;
  }

  .storybook-text {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.85;
  }

  .storybook-controls {
    grid-template-columns: 82px minmax(78px, 1fr) 54px 82px;
    gap: 4px;
    padding: 9px 0 1px;
  }

  .page-control {
    min-height: 42px;
    padding: 7px 3px;
    font-size: 12px;
    gap: 3px;
  }

  .page-control span {
    display: inline;
  }

  .book-dot {
    width: 22px;
    height: 34px;
  }

  .book-page-count {
    font-size: 11px;
  }

  .flow-actions {
    flex-direction: column-reverse;
    gap: 9px;
    margin-top: 16px;
  }

  .flow-actions .button {
    width: 100%;
    min-height: 48px;
  }

  .write-section.wrap {
    padding: 23px 20px 40px;
  }

  .write-heading {
    align-items: stretch;
    gap: 8px;
    margin-bottom: 13px;
  }

  .write-heading .text-link {
    align-self: flex-start;
    font-size: 13px;
  }

  .write-heading h2 {
    font-size: 29px;
  }

  .write-section .form-panel {
    padding: 19px 17px 23px;
  }

  .write-section .form-heading {
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 11px;
    margin-bottom: 14px;
  }

  .write-section .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .write-section label {
    font-size: 14px;
  }

  .write-section input {
    min-height: 49px;
    padding: 11px 12px;
    font-size: 16px;
  }

  .write-section textarea {
    min-height: 220px;
    font-size: 16px;
  }

  .write-section .story-label .small {
    font-size: 12px;
  }

  .write-section .field-bottom {
    gap: 8px;
    font-size: 12px;
  }

  .write-section .consent {
    align-items: flex-start;
    margin-block: 18px;
    font-size: 13px;
  }

  .write-section .form-actions {
    flex-direction: column;
  }

  .write-section .form-actions .button {
    width: 100%;
  }

  .site-footer {
    margin-top: 25px;
    padding: 18px 21px max(21px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .stories-section.wrap,.write-section.wrap {
    padding-inline: 16px;
  }

  .storybook-page {
    padding-inline: 15px;
  }

  .storybook-controls {
    grid-template-columns: 70px minmax(68px, 1fr) 48px 70px;
  }

  .page-control {
    font-size: 11px;
  }

  .book-dot {
    width: 18px;
  }
}

.storybook-page {
  min-height: 0;
}

.storybook-meta,
.storybook-theme {
  font-size: 14px;
}

.write-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 8px;
}

.write-heading h2 {
  order: -1;
}

.write-heading .text-link {
  order: 1;
}

@media (max-width: 760px) {
  .write-heading {
    gap: 6px;
  }

  .write-heading h2 {
    font-size: 29px;
  }
}

.title-book-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 30px;
  fill: none;
  stroke: #24485a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storybook {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.book-shadow {
  display: none;
}

.storybook-page {
  min-height: 0;
  padding: 32px clamp(24px, 4vw, 58px) 42px;
  background: #fffdf8;
  border: 1px solid #e5e0d2;
  border-radius: 7px;
  box-shadow: 0 16px 36px #183b4b0c, inset 14px 0 22px -20px #685f45;
}

.storybook-meta {
  border-bottom: 1px solid #e5e0d2;
}

.storybook-spread {
  position: relative;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 4vw, 58px);
  padding-top: 30px;
}

.storybook-spread::before {
  position: absolute;
  content: '';
  top: 18px;
  bottom: 0;
  left: 46%;
  width: 1px;
  background: linear-gradient(transparent, #e8e2d4 10%, #e8e2d4 90%, transparent);
  pointer-events: none;
}

.storybook-visual {
  border: 1px solid #eeeade;
}

.storybook-copy h2 {
  font-size: clamp(30px, 2.5vw, 38px);
  line-height: 1.5;
}

.storybook-intro, .storybook-text {
  font-size: 17px;
}

.storybook-controls {
  padding-top: 17px;
}

@media (max-width: 760px) {
  .title-book-icon {
    width: 28px;
    height: 25px;
  }

  .storybook-page {
    padding: 21px 18px 25px;
  }

  .storybook-spread::before {
    display: none;
  }

  .storybook-copy h2 {
    font-size: 27px;
  }

  .storybook-intro, .storybook-text {
    font-size: 15px;
  }
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 760px) {
  .storybook-spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 17px;
  }

  .storybook-visual {
    min-height: 0;
    aspect-ratio: 1.55;
  }
}

.title-book-icon {
  width: 48px;
  height: 42px;
  stroke-width: 1.65;
}

.about-icon {
  display: block;
  width: 90px;
  height: 90px;
  padding: 20px;
  border-radius: 50%;
  background: #839080;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-copy {
  min-width: 0;
}

.site-footer {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 80px;
  margin: 0;
  padding: 18px clamp(28px, 3.2vw, 50px);
  border: 0;
  background: #102f42;
  color: #f8f6ee;
}

.site-footer .kia-wordmark {
  margin: 0;
  color: #f8f6ee;
  font-size: 40px;
}

.site-footer .footer-rule {
  display: block;
  height: 1px;
  flex: 1 1 auto;
  margin: 0 34px;
  background: #829098;
}

.site-footer > a:last-child {
  color: #f8f6ee;
  font-size: clamp(15px, 1.25vw, 19px);
  white-space: nowrap;
}

@media (max-width: 1200px) and (min-width: 761px) {
  .title-book-icon {
    width: 40px;
  }

  .about-icon {
    width: 68px;
    height: 68px;
    padding: 16px;
  }
}

@media (max-width: 760px) {
  .title-book-icon {
    width: 28px;
    height: 25px;
  }

  .about-icon {
    width: 58px;
    height: 58px;
    padding: 13px;
  }

  .site-footer {
    min-height: 70px;
    padding: 16px 20px;
  }

  .site-footer .kia-wordmark {
    font-size: 31px;
  }

  .site-footer .footer-rule {
    margin: 0 15px;
  }

  .site-footer > a:last-child {
    font-size: 13px;
  }
}

@media (min-width: 1201px) {
  .site-footer .kia-wordmark {
    width: 104px;
    flex: 0 0 104px;
    transform: scaleX(1.7);
    transform-origin: left center;
  }
}

@media (min-width: 1201px) {
  .site-footer .footer-rule {
    margin-left: 18px;
    margin-right: 34px;
  }
}

@media (min-width: 1201px) {
  .about-copy {
    transform: translateY(-4px);
  }
}

@media (max-width: 1200px) {
  .about-copy {
    transform: none;
  }
}

@media (max-width: 600px) {
  .about-icon {
    width: 50px;
    height: 50px;
    padding: 11px;
  }
}

.stories-section.wrap {
  width: 100%;
  max-width: 1560px;
  padding: 24px clamp(24px, 3vw, 48px) 44px;
}

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

.section-top h2 {
  margin-bottom: 5px;
}

.storybook {
  position: relative;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.storybook-stage {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  overflow: visible;
}

.storybook-page {
  min-height: clamp(640px, calc(100dvh - 430px), 820px);
  padding: 34px clamp(34px, 4.2vw, 66px) 44px;
}

.storybook-meta {
  min-height: 40px;
}

.storybook-kia-logo {
  display: block;
  width: clamp(76px, 7vw, 104px);
  height: 28px;
  object-fit: contain;
  object-position: right center;
  filter: brightness(0) saturate(100%);
}

.storybook-spread {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
}

.storybook-visual {
  align-self: start;
}

.storybook-controls {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  max-width: none;
  margin-inline: auto;
  padding: 8px 0 0;
}

.storybook-controls .book-dots {
  justify-content: center;
  gap: 12px;
}

.storybook-controls .book-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bdcbbd;
  transition: transform .22s ease, background-color .22s ease;
}

.storybook-controls .book-dot.active {
  background: #a98743;
  transform: scale(1.3);
}

.storybook-controls .book-page-count {
  position: absolute;
  right: 14px;
  min-width: 74px;
  text-align: right;
}

.page-control.book-side-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  min-height: 0;
  padding: 0;
  border: 1px solid #e0dfd4;
  border-radius: 50%;
  background: #fffdf8f2;
  color: #183b4b;
  box-shadow: 0 8px 22px #183b4b16, inset 0 1px 0 #fff;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, scale .2s ease;
}

.book-side-prev {
  left: clamp(-29px, -1.8vw, -16px);
}

.book-side-next {
  right: clamp(-29px, -1.8vw, -16px);
}

.page-control-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-control.book-side-prev:not(:disabled) {
  animation: book-arrow-left 3.2s ease-in-out infinite;
}

.page-control.book-side-next:not(:disabled) {
  animation: book-arrow-right 3.2s ease-in-out infinite;
}

.page-control.book-side-control:hover:not(:disabled) {
  background: #f5f4ec;
  color: #987334;
  box-shadow: 0 11px 28px #183b4b24, inset 0 1px 0 #fff;
  animation-play-state: paused;
  scale: 1.08;
}

.page-control.book-side-control:disabled {
  opacity: .32;
}

@keyframes book-arrow-left {
0%, 100% { transform: translate(-1px, -50%); }
  50% { transform: translate(-5px, -50%); }
}

@keyframes book-arrow-right {
0%, 100% { transform: translate(1px, -50%); }
  50% { transform: translate(5px, -50%); }
}

.flow-actions {
  max-width: none;
  margin-top: 16px;
}

@media (max-width: 1000px) {
  .stories-section.wrap {
    max-width: 100%;
    padding-inline: 28px;
  }

  .storybook-page {
    min-height: clamp(620px, calc(100dvh - 390px), 780px);
    padding-inline: 38px;
  }
}

@media (max-width: 760px) {
  .stories-section.wrap {
    padding: 23px 20px 38px;
  }

  .section-top {
    margin-bottom: 15px;
  }

  .storybook-page {
    min-height: 0;
    padding: 21px 22px 27px;
  }

  .storybook-kia-logo {
    width: 68px;
    height: 24px;
  }

  .storybook-controls {
    min-height: 54px;
  }

  .storybook-controls .book-dots {
    gap: 9px;
  }

  .storybook-controls .book-dot {
    width: 9px;
    height: 9px;
  }

  .storybook-controls .book-page-count {
    right: 4px;
    min-width: 52px;
    font-size: 11px;
  }

  .page-control.book-side-control {
    width: 46px;
    height: 46px;
  }

  .book-side-prev {
    left: -12px;
  }

  .book-side-next {
    right: -12px;
  }

  .page-control-icon {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 380px) {
  .stories-section.wrap {
    padding-inline: 16px;
  }

  .storybook-page {
    padding-inline: 17px;
  }

  .page-control.book-side-control {
    width: 40px;
    height: 40px;
  }

  .book-side-prev {
    left: -9px;
  }

  .book-side-next {
    right: -9px;
  }

  .storybook-controls .book-dots {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-control.book-side-control {
    animation: none !important;
    transition: none;
  }

  .storybook-controls .book-dot {
    transition: none;
  }
}

.page-control.book-side-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 116px;
  height: 56px;
  padding: 0 13px;
  border: 1px solid #e4e1d6;
  border-radius: 999px;
  background: #faf8f1f5;
  color: #284656;
  box-shadow: 0 8px 24px #183b4b16, inset 0 1px 0 #ffffff;
}

.book-side-prev {
  left: clamp(-58px, -3.4vw, -36px);
}

.book-side-next {
  right: clamp(-58px, -3.4vw, -36px);
}

.page-control-icon {
  box-sizing: content-box;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 5px;
  border-radius: 50%;
  background: #e9eee7;
  stroke: #446150;
}

.page-control-label {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

.page-control.book-side-control:not(:disabled) {
  border-color: #1d4050;
  background: linear-gradient(135deg, #143447 0%, #214a59 100%);
  color: #fffdf7;
  box-shadow: 0 11px 28px #14344727, inset 0 1px 0 #ffffff22;
}

.page-control.book-side-control:not(:disabled) .page-control-icon {
  background: #ffffff1c;
  stroke: #f0ce73;
}

.page-control.book-side-control:disabled {
  opacity: 1;
  border-color: #e7e5db;
  background: #f1f0e9ed;
  color: #8b968b;
  box-shadow: 0 5px 14px #183b4b0b;
}

.page-control.book-side-control:disabled .page-control-icon {
  background: #e6e9e1;
  stroke: #9aa397;
}

.page-control.book-side-control:hover:not(:disabled) {
  background: linear-gradient(135deg, #1b4051, #2c5965);
  color: #fffdf7;
  box-shadow: 0 14px 32px #14344732, inset 0 1px 0 #ffffff2e;
  scale: 1.04;
}

@media (max-width: 1000px) {
  .page-control.book-side-control {
    width: 102px;
    height: 52px;
    gap: 8px;
    padding-inline: 10px;
  }

  .page-control-label {
    font-size: 12px;
  }

  .page-control-icon {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }

  .book-side-prev {
    left: -42px;
  }

  .book-side-next {
    right: -42px;
  }
}

@media (max-width: 760px) {
  .page-control.book-side-control {
    width: 46px;
    height: 46px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }

  .page-control-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .page-control-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    padding: 4px;
  }

  .book-side-prev {
    left: -12px;
  }

  .book-side-next {
    right: -12px;
  }

  .page-control.book-side-control {
    top: min(39vw, 296px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-control.book-side-control:hover:not(:disabled) {
    scale: 1;
  }
}

.write-heading {
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 19px;
  border-bottom: 1px solid #ded9cd;
}

.write-title-block {
  display: grid;
  gap: 7px;
}

.write-kicker {
  color: #8d774c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.write-title-block h2 {
  margin: 0;
  color: #183b4b;
  font-size: clamp(31px, 3vw, 40px);
  line-height: 1.3;
}

.write-title-block p {
  margin: 0;
  color: #718078;
  font-size: 15px;
  line-height: 1.7;
}

.write-heading > .text-link {
  flex: 0 0 auto;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #c9c7bc;
  color: #52685e;
}

.write-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: clamp(24px, 3vw, 42px);
}

.write-visual {
  position: sticky;
  top: 24px;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid #e3decf;
  border-radius: 7px;
  box-shadow: 0 18px 42px #183b4b10, inset 10px 0 20px -20px #625a45;
}

.write-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
}

.write-visual figcaption {
  position: relative;
  margin: 0;
  padding: 19px 12px 7px;
  color: #63766b;
  font: 400 17px/1.75 "STSong", "SimSun", serif;
  letter-spacing: .04em;
  text-align: center;
}

.write-visual figcaption::before {
  display: block;
  width: 36px;
  height: 2px;
  margin: 0 auto 12px;
  background: #b89b5e;
  content: "";
}

.write-visual figcaption span {
  color: #183b4b;
}

.write-section .form-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(23px, 2.5vw, 38px);
  background: #fffdf8;
  border: 1px solid #e3decf;
  border-radius: 7px;
  box-shadow: 0 18px 42px #183b4b0c;
}

.write-section .form-heading {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8e3d8;
}

.write-form-intro {
  display: grid;
  gap: 5px;
}

.write-form-intro .form-step {
  color: #183b4b;
  font-size: 19px;
}

.write-form-intro p {
  margin: 0;
  color: #75847d;
  font-size: 13px;
  line-height: 1.65;
}

.form-heading-tools {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
  text-align: right;
}

.write-section .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
}

.write-section .form-divider {
  margin-block: 20px;
}

.write-section .story-label {
  margin-top: 17px;
}

.write-section textarea {
  min-height: 210px;
}

.write-section .form-actions {
  flex-wrap: wrap;
}

.write-section .form-actions .button {
  flex: 1 1 190px;
}

@media (max-width: 840px) {
  .write-visual {
    position: static;
  }

  .write-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .write-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr);
    align-items: center;
    gap: 18px;
  }

  .write-visual img {
    aspect-ratio: 1.48;
  }

  .write-visual figcaption {
    padding: 15px;
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .write-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }

  .write-heading > .text-link {
    order: 2;
    margin: 0;
  }

  .write-title-block h2 {
    font-size: 30px;
  }

  .write-title-block p {
    font-size: 14px;
  }

  .write-visual {
    display: block;
    padding: 9px;
  }

  .write-visual img {
    aspect-ratio: 1.38;
  }

  .write-visual figcaption {
    padding: 14px 8px 5px;
    font-size: 16px;
  }

  .write-section .form-panel {
    padding: 21px 17px 24px;
  }

  .write-section .form-heading {
    flex-direction: column;
    gap: 11px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .form-heading-tools {
    justify-items: start;
    text-align: left;
  }

  .write-section .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .write-section .form-actions {
    flex-direction: column;
  }

  .write-section .form-actions .button {
    flex-basis: auto;
  }
}

.write-heading {
  display: flex;
  justify-content: space-between;
}

.write-title-block h2 {
  order: 0;
  font-weight: 650;
}

.write-visual img {
  height: auto;
  aspect-ratio: auto;
}

.storybook-writing-page {
  height: clamp(640px, calc(100dvh - 430px), 820px);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.storybook-writing-page .storybook-meta {
  flex: 0 0 auto;
}

.storybook-write-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  gap: clamp(22px, 3vw, 42px);
  padding-top: 20px;
}

.storybook-write-visual {
  position: static;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  padding: 10px;
}

.storybook-write-visual img {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.storybook-write-visual figcaption {
  flex: 0 0 auto;
  padding: 13px 8px 4px;
  font-size: 15px;
}

.storybook-write-visual figcaption::before {
  margin-bottom: 8px;
}

.storybook-write-form {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 1px 8px 8px 0;
  scrollbar-gutter: stable;
}

.storybook-writing-page .form-panel {
  width: 100%;
  max-width: none;
  min-height: 100%;
  margin: 0;
  padding: 0 4px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.storybook-writing-page .form-heading {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e8e3d8;
}

.storybook-writing-page .write-form-intro {
  gap: 2px;
}

.storybook-writing-page .write-form-intro h2 {
  margin: 0;
  color: #183b4b;
  font: 600 20px/1.4 "STSong", "SimSun", serif;
}

.storybook-writing-page .write-form-intro p {
  font-size: 12px;
  line-height: 1.55;
}

.storybook-writing-page .form-heading-tools {
  gap: 2px;
}

.storybook-writing-page .form-heading-tools .text-link {
  font-size: 12px;
}

.storybook-writing-page .notice {
  margin-bottom: 12px;
  padding: 9px 12px;
  font-size: 11px;
  line-height: 1.55;
}

.storybook-writing-page .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.storybook-writing-page label {
  font-size: 12px;
  line-height: 1.45;
}

.storybook-writing-page input,
.storybook-writing-page textarea {
  font-size: 14px;
  line-height: 1.5;
}

.storybook-writing-page input {
  min-height: 42px;
  padding: 8px 10px;
}

.storybook-writing-page input::placeholder,
.storybook-writing-page textarea::placeholder {
  font-size: 12px;
}

.storybook-writing-page .form-divider {
  margin-block: 12px;
}

.storybook-writing-page .story-label {
  margin-top: 10px;
}

.storybook-writing-page .story-label .small {
  font-size: 11px;
}

.storybook-writing-page textarea {
  min-height: 112px;
  max-height: 180px;
  padding: 10px 12px;
}

.storybook-writing-page .field-bottom {
  margin-top: 4px;
  font-size: 10px;
}

.storybook-writing-page .consent {
  align-items: flex-start;
  gap: 7px;
  margin: 9px 0 10px;
  font-size: 10px;
  line-height: 1.55;
}

.storybook-writing-page .consent input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.storybook-writing-page .consent button {
  font-size: 10px;
}

.storybook-writing-page .form-actions {
  gap: 9px;
}

.storybook-writing-page .form-actions .button {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 11px;
}

.storybook-writing-page .form-message {
  margin-top: 5px;
  font-size: 11px;
}

.storybook-writing-page .success-panel {
  max-width: none;
}

@media (max-width: 760px) {
  .storybook-writing-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .storybook-write-layout {
    flex: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    min-height: 0;
    padding-top: 16px;
  }

  .storybook-write-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(130px, .75fr);
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 8px;
  }

  .storybook-write-visual img {
    flex: none;
    height: auto;
    aspect-ratio: 1.5;
  }

  .storybook-write-visual figcaption {
    padding: 10px 6px;
    font-size: 14px;
  }

  .storybook-write-form {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .storybook-writing-page .form-panel {
    min-height: 0;
    padding: 0;
  }
}

@media (max-width: 520px) {
  .storybook-write-visual {
    display: block;
  }

  .storybook-write-visual img {
    aspect-ratio: 1.55;
  }

  .storybook-write-visual figcaption {
    padding: 10px 6px 3px;
  }

  .storybook-writing-page .form-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .storybook-writing-page .form-heading-tools {
    justify-items: start;
    text-align: left;
  }

  .storybook-writing-page .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .storybook-writing-page textarea {
    min-height: 160px;
  }

  .storybook-writing-page .form-actions {
    flex-direction: column;
  }

  .storybook-writing-page .form-actions .button {
    flex-basis: auto;
    width: 100%;
  }
}

.storybook-writing-page {
  padding-bottom: 26px;
}

.storybook-writing-page .form-heading {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.storybook-writing-page .notice {
  margin-bottom: 8px;
  padding: 8px 11px;
}

.storybook-writing-page .form-grid {
  gap: 7px 12px;
}

.storybook-writing-page .form-divider {
  margin-block: 8px;
}

.storybook-writing-page .story-label {
  margin-top: 7px;
}

.storybook-writing-page textarea {
  min-height: 100px;
  max-height: 160px;
}

.storybook-writing-page .consent {
  margin: 5px 0 6px;
}

.storybook-writing-page .form-actions .button {
  min-height: 38px;
}

@media (min-width: 761px) {
  .stories-section.wrap {
    max-width: 1640px;
    padding-inline: clamp(22px, 2.2vw, 42px);
  }

  .storybook-page {
    min-height: clamp(660px, calc(100dvh - 405px), 850px);
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .stories-section.wrap {
    max-width: 100%;
    padding-inline: 22px;
  }

  .storybook-page {
    min-height: clamp(640px, calc(100dvh - 370px), 800px);
  }
}

@media (min-width: 761px) {
  .book-side-prev {
    left: clamp(-22px, -1.35vw, -14px);
  }

  .book-side-next {
    right: clamp(-22px, -1.35vw, -14px);
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .book-side-prev {
    left: -16px;
  }

  .book-side-next {
    right: -16px;
  }
}

.page-control.book-side-control {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  height: 48px;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.page-control.book-side-control .page-control-label {
  display: none;
}

.page-control.book-side-control .page-control-icon {
  box-sizing: content-box;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 5px;
  border-radius: 50%;
  background: #ecefe8;
  box-shadow: 0 5px 14px #183b4b18, inset 0 0 0 1px #d7ddd3;
  stroke: #839087;
}

.page-control.book-side-control:not(:disabled) {
  border: 0;
  background: transparent;
  color: #fffdf7;
  box-shadow: none;
}

.page-control.book-side-control:not(:disabled) .page-control-icon {
  background: #143447;
  box-shadow: 0 7px 18px #1434472c, inset 0 1px 0 #ffffff20;
  stroke: #f0ce73;
}

.page-control.book-side-control:disabled {
  opacity: 1;
  background: transparent;
  box-shadow: none;
}

.page-control.book-side-control:hover:not(:disabled) {
  background: transparent;
  box-shadow: none;
  scale: 1.1;
}

.page-control.book-side-control:hover:not(:disabled) .page-control-icon {
  background: #214a59;
  box-shadow: 0 9px 20px #14344738, inset 0 1px 0 #ffffff2c;
}

.storybook-writing-page .form-heading {
  margin-bottom: 18px;
  padding-bottom: 16px;
  gap: 18px;
}

.storybook-writing-page .write-form-intro {
  gap: 6px;
}

.storybook-writing-page .write-form-intro h2 {
  font-size: 23px;
}

.storybook-writing-page .write-form-intro p {
  font-size: 13px;
}

.storybook-writing-page .form-grid {
  gap: 18px 20px;
}

.storybook-writing-page label {
  font-size: 13px;
  line-height: 1.6;
}

.storybook-writing-page input {
  min-height: 48px;
  padding: 11px 13px;
  margin-top: 7px;
}

.storybook-writing-page .form-divider {
  margin-block: 18px;
}

.storybook-writing-page .story-label {
  margin-top: 18px;
}

.storybook-writing-page textarea {
  min-height: 190px;
  max-height: none;
  padding: 14px 16px;
  margin-top: 8px;
  line-height: 1.8;
}

.storybook-writing-page .field-bottom {
  margin: 8px 0 12px;
  font-size: 12px;
}

.storybook-writing-page .form-actions {
  gap: 12px;
}

.storybook-writing-page .form-actions .button {
  min-height: 48px;
  font-size: 13px;
}

.storybook-writing-page .form-message {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
}

@media (min-width: 761px) {
  .storybook-writing-page .form-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .storybook-writing-page #entry-form:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .storybook-writing-page #entry-fields {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: auto;
  }

  .storybook-writing-page #entry-fields > * {
    flex-shrink: 0;
  }

  .storybook-writing-page .story-label {
    display: block;
    flex: 1;
    min-height: 220px;
    position: relative;
  }

  .storybook-writing-page .story-label textarea {
    height: calc(100% - 30px);
    min-height: 190px;
    resize: vertical;
  }
}

@media (max-width: 760px) {
  .storybook-writing-page .form-heading {
    margin-bottom: 16px;
  }

  .storybook-writing-page input, .storybook-writing-page textarea {
    font-size: 16px;
  }

  .storybook-writing-page textarea {
    min-height: 230px;
  }

  .storybook-writing-page .form-grid {
    gap: 16px;
  }
}

@media (min-width: 761px) {
  .storybook-writing-page {
    height: max(850px, calc(100dvh - 405px));
  }

  .storybook-writing-page .form-message:empty {
    display: none;
  }
}

@media (min-width: 761px) {
  body:has(.storybook-writing-page) .campaign-header {
    height: 72px;
    min-height: 0;
    padding-block: 12px;
  }

  .stories-section:has(.storybook-writing-page) {
    padding-block: 12px 8px;
  }

  .stories-section:has(.storybook-writing-page) .section-top {
    margin-bottom: 10px;
  }

  .stories-section:has(.storybook-writing-page) .section-top h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
  }

  .stories-section:has(.storybook-writing-page) #book-hint {
    display: none;
  }

  .storybook-writing-page {
    height: calc(100dvh - 260px);
    min-height: 0;
    padding: 18px 34px;
  }

  .storybook-writing-page .storybook-meta {
    padding-bottom: 10px;
  }

  .storybook-write-layout {
    padding-top: 14px;
  }

  .storybook-write-form {
    overflow: visible;
    padding-bottom: 0;
    scrollbar-gutter: auto;
  }

  .storybook-writing-page .form-heading {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .storybook-writing-page .write-form-intro h2 {
    font-size: 21px;
  }

  .storybook-writing-page .write-form-intro {
    gap: 3px;
  }

  .storybook-writing-page #entry-fields {
    min-height: 0;
  }

  .storybook-writing-page .form-grid {
    gap: 10px 18px;
  }

  .storybook-writing-page input {
    min-height: 40px;
    height: 40px;
    padding: 8px 12px;
    margin-top: 4px;
  }

  .storybook-writing-page .form-divider {
    margin-block: 10px;
  }

  .storybook-writing-page .story-label {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    margin-top: 10px;
  }

  .storybook-writing-page .story-label .small {
    position: absolute;
    top: 0;
    right: 0;
  }

  .storybook-writing-page .story-label textarea {
    flex: 1 1 0;
    height: 0;
    min-height: 75px;
    margin-top: 5px;
    padding: 10px 12px;
    resize: none;
  }

  .storybook-writing-page .field-bottom {
    margin: 5px 0 8px;
  }

  .storybook-writing-page .form-actions .button {
    min-height: 40px;
    padding: 8px 12px;
  }

  .stories-section:has(.storybook-writing-page) .storybook-controls {
    padding-block: 8px;
  }

  .stories-section:has(.storybook-writing-page) .flow-actions {
    margin-block: 8px 0;
  }

  .stories-section:has(.storybook-writing-page) .flow-actions .button {
    min-height: 36px;
    padding-block: 8px;
  }
}

@media (min-width: 1100px) and (max-height: 850px) {
  .storybook-writing-page .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .storybook-writing-page .write-form-intro p {
    display: none;
  }
}

/* 所有故事共享文章层级，独立于标题是否换行。 */
.storybook-article .storybook-title-line { display: block; }
.storybook-article h2 { line-height: 1.4; margin-bottom: 22px; }
.storybook-article .storybook-intro {
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 500;
  line-height: 1.85;
  margin-bottom: 24px;
}
.storybook-article .storybook-quote {
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 400;
  line-height: 1.75;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.storybook-article .storybook-text {
  font-weight: 400;
  line-height: 1.95;
  margin-bottom: 18px;
}
.storybook-article .storybook-text:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .storybook-article h2 { margin-bottom: 18px; }
  .storybook-article .storybook-intro,
  .storybook-article .storybook-quote { margin-bottom: 20px; }
  .storybook-article .storybook-quote { padding: 12px 16px; }
}
