.inward-story {
  --story-bg: #0d1722;
  --story-line: rgba(155, 187, 207, .15);
  --story-ink: #e7eef5;
  --story-muted: #91a6b7;
  --story-mint: #83e3c4;
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--story-line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(26, 49, 62, .52), transparent 47%), var(--story-bg);
  color: var(--story-ink);
  font-family: inherit;
  isolation: isolate;
}
.inward-story *, .inward-story *::before, .inward-story *::after { box-sizing: border-box; }
.inward-story button, .inward-story a { -webkit-tap-highlight-color: transparent; }
.inward-story button { font: inherit; cursor: pointer; }
.inward-story button:disabled { cursor: default; opacity: .36; }
.inward-story button:focus-visible, .inward-story a:focus-visible { outline: 2px solid var(--story-mint); outline-offset: 4px; }
.inward-story-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 29px 30px 17px; }
.inward-story-eyebrow { margin: 0 0 9px; color: var(--story-mint); font-size: 10px; font-weight: 650; letter-spacing: .17em; }
.inward-story h2 { margin: 0; color: var(--story-ink); font-size: clamp(19px, 2vw, 26px); font-weight: 550; letter-spacing: -.035em; line-height: 1.25; }
.inward-story-subtitle { margin: 8px 0 0; color: var(--story-muted); font-size: 13px; line-height: 1.5; }
.inward-story-count { flex-shrink: 0; max-width: 245px; padding: 8px 11px; border: 1px solid rgba(131, 227, 196, .18); border-radius: 7px; background: rgba(131, 227, 196, .035); color: #b3d4d0; font-size: 11px; line-height: 1.5; text-align: right; }
.inward-story-scope { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 0 30px 22px; color: #9bb0c0; font-size: 12px; line-height: 1.55; }
.inward-story-scope > span { color: var(--story-mint); font-size: 15px; }
.inward-story-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding: 0 23px; border-top: 1px solid var(--story-line); border-bottom: 1px solid var(--story-line); background: rgba(1, 8, 15, .18); }
.inward-story-step { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 7px; padding: 18px 9px 18px 7px; border: 0; border-radius: 0; background: transparent; color: #8297aa; text-align: left; font-size: 11px !important; line-height: 1.48; transition: color 160ms ease, background 160ms ease; }
.inward-story-step::after { content: ''; position: absolute; right: 8px; bottom: -1px; left: 7px; height: 2px; background: transparent; }
.inward-story-step:hover { color: var(--story-ink); background: rgba(131, 227, 196, .025); }
.inward-story-step.is-current { color: var(--story-ink); }
.inward-story-step.is-current::after { background: var(--story-mint); box-shadow: 0 -3px 14px rgba(131, 227, 196, .15); }
.inward-story-step-number { color: #617b8c; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.inward-story-step.is-current .inward-story-step-number { color: var(--story-mint); }
.inward-story-step.is-visited .inward-story-step-number { color: #7bbaac; }
.inward-story-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .8fr); gap: 0; min-height: 330px; }
.inward-story-visual { display: flex; flex-direction: column; min-width: 0; padding: 18px 10px 16px 21px; background: radial-gradient(ellipse at 50% 53%, rgba(74, 118, 133, .075), transparent 67%); }
.inward-story-plot-meta { display: flex; justify-content: space-between; gap: 16px; padding: 0 12px; color: #718a9b; font-size: 9px; letter-spacing: .11em; }
.inward-story-plot-meta > span:last-child { color: #8ea9b8; font-size: 10px; letter-spacing: .035em; }
.inward-story-drawing { display: grid; align-items: center; flex: 1; min-height: 245px; }
.inward-story-svg { display: block; width: 100%; height: auto; max-height: 335px; overflow: visible; }
.inward-story-svg text { user-select: none; }
.inward-story-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 5px 10px 0; color: #8ca3b4; font-size: 10px; line-height: 1.45; }
.inward-story-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.inward-story-legend i { display: inline-block; width: 13px; height: 3px; border-radius: 2px; background: var(--story-swatch, #83e3c4); }
.inward-story-legend .inward-story-base-key { flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding-top: 5px; }
.inward-story-base-key > span { display: inline-flex; align-items: center; gap: 5px; }
.inward-story-base-key i { width: 10px; height: 10px; border-radius: 3px; }
.inward-story-narrative { min-width: 0; padding: 26px 28px 26px 25px; border-left: 1px solid var(--story-line); }
.inward-story-stage-label { margin: 0 0 13px; color: var(--story-mint); font-size: 10px; font-weight: 550; letter-spacing: .13em; }
.inward-story h3 { margin: 0 0 12px; color: var(--story-ink); font-size: 21px; font-weight: 500; line-height: 1.28; letter-spacing: -.025em; }
.inward-story-explanation { margin: 0; color: #b3c2ce; font-size: 13px; line-height: 1.8; }
.inward-story-look { margin-top: 20px; padding: 0 0 0 13px; border-left: 2px solid rgba(131, 227, 196, .36); }
.inward-story-look > span { color: #80b6a9; font-size: 9px; font-weight: 650; letter-spacing: .13em; }
.inward-story-look p { margin: 6px 0 0; color: #a2b6c5; font-size: 12px; line-height: 1.7; }
.inward-story-variant { margin: 17px 0 0; color: #859eae; font-size: 11px; line-height: 1.7; }
.inward-story-context { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr); align-items: center; gap: 25px; padding: 19px 30px; border-top: 1px solid var(--story-line); border-bottom: 1px solid var(--story-line); background: rgba(5, 12, 20, .25); }
.inward-story-small-label { display: block; margin-bottom: 9px; color: #7994a6; font-size: 9px; font-weight: 550; letter-spacing: .13em; }
.inward-story-lens { display: flex; flex-wrap: wrap; gap: 6px; }
.inward-story-lens button { padding: 7px 9px; border: 1px solid rgba(141, 170, 190, .16); border-radius: 5px; background: rgba(141, 170, 190, .025); color: #8da4b5; font-size: 10px; line-height: 1.35; text-align: left; }
.inward-story-lens button[aria-pressed=true] { border-color: rgba(131, 227, 196, .35); background: rgba(131, 227, 196, .065); color: #b5e2d8; }
.inward-story-lens button:hover { border-color: rgba(131, 227, 196, .4); }
.inward-story-context > p { margin: 0; color: #9aaebd; font-size: 12px; line-height: 1.75; }
.inward-story-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 30px 12px; }
.inward-story-navigation { display: flex; gap: 8px; }
.inward-story-navigation button { min-height: 35px; min-width: 74px; padding: 8px 12px; border: 1px solid rgba(141, 170, 190, .2); border-radius: 6px; background: rgba(141, 170, 190, .04); color: #b4c6d3; font-size: 11px; line-height: 1.2; }
.inward-story-navigation button[data-action=play] { min-width: 109px; border-color: rgba(131, 227, 196, .26); background: rgba(131, 227, 196, .055); color: #bcdfd7; }
.inward-story-navigation button:hover:not(:disabled) { border-color: rgba(131, 227, 196, .5); background: rgba(131, 227, 196, .08); }
.inward-story-motion { padding: 6px 0; border: 0; background: transparent; color: #859eaf; font-size: 10px !important; white-space: nowrap; }
.inward-story-caption { padding: 0 30px 19px; }
.inward-story-caption p { margin: 0; color: #6f899b; font-size: 10px; line-height: 1.65; }
.inward-story-sources { display: flex; align-items: center; justify-content: space-between; gap: 19px; padding: 16px 30px; border-top: 1px solid var(--story-line); background: rgba(2, 9, 16, .13); }
.inward-story-sources > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.inward-story-sources > div > span { color: #6e899a; font-size: 10px; }
.inward-story-sources a { color: #93b4c3; font-size: 10px; text-decoration: none; text-underline-offset: 3px; }
.inward-story-sources a:hover { color: var(--story-mint); text-decoration: underline; }
.inward-story-sources button { flex-shrink: 0; padding: 4px 0; border: 0; background: transparent; color: #a5cfc5; font-size: 10px; }
.inward-story-enter { animation: inward-story-reveal 260ms ease-out both; }
.inward-story-reduced *, .inward-story-reduced *::after { animation: none !important; transition: none !important; }
@keyframes inward-story-reveal { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .inward-story-grid { grid-template-columns: minmax(0, 1fr); }
  .inward-story-visual { padding: 20px 22px; }
  .inward-story-svg { max-height: 330px; }
  .inward-story-narrative { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 25px; padding: 22px 30px; border-top: 1px solid var(--story-line); border-left: 0; }
  .inward-story-stage-label, .inward-story h3 { grid-column: 1 / -1; }
  .inward-story-look { margin-top: 0; }
  .inward-story-variant { grid-column: 1 / -1; }
  .inward-story-context { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .inward-story { margin-top: 20px; border-radius: 14px; }
  .inward-story-header { display: block; padding: 23px 19px 14px; }
  .inward-story-count { display: inline-block; max-width: none; margin-top: 15px; text-align: left; font-size: 10px; }
  .inward-story-scope { padding: 0 19px 18px; font-size: 11px; }
  .inward-story-steps { gap: 0; padding: 0 8px; }
  .inward-story-step { display: block; min-height: 83px; padding: 12px 6px; font-size: 9px !important; line-height: 1.45; }
  .inward-story-step-number { display: block; margin-bottom: 5px; font-size: 9px; }
  .inward-story-visual { padding: 15px 4px; }
  .inward-story-plot-meta { padding: 0 13px; font-size: 8px; }
  .inward-story-drawing { min-height: 185px; }
  .inward-story-legend { padding-top: 8px; font-size: 9px; gap: 5px 11px; }
  .inward-story-narrative { display: block; padding: 22px 19px; }
  .inward-story h3 { font-size: 20px; }
  .inward-story-explanation { font-size: 12px; }
  .inward-story-look { margin-top: 18px; }
  .inward-story-context { padding: 18px 19px; }
  .inward-story-context > p { font-size: 11px; }
  .inward-story-controls { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 18px 19px 10px; }
  .inward-story-navigation { width: 100%; gap: 7px; }
  .inward-story-navigation button { flex: 1; min-width: 0; padding: 9px 10px; }
  .inward-story-navigation button[data-action=play] { min-width: 105px; }
  .inward-story-motion { margin-left: auto; }
  .inward-story-caption { padding: 0 19px 17px; }
  .inward-story-sources { display: block; padding: 15px 19px; }
  .inward-story-sources button { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .inward-story *, .inward-story *::after { animation: none !important; transition: none !important; }
}
