/* Shared, interactive service stories. Kept separate from the landing-page styles. */
.as-story {
  --as-blue: #2145dd;
  --as-ink: #15264b;
  --as-muted: #5a6680;
  --as-line: #d2dbec;
  --as-ice: #f0f4ff;
  --as-green: #245d49;
  --as-amber: #805016;
  margin-top: 32px;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  overflow: clip;
  background: #f7f9ff;
  color: var(--as-ink);
  isolation: isolate;
  font: 14px/1.6 Manrope, Arial, sans-serif;
}
.as-story *, .as-dialog-close { box-sizing: border-box; }
.as-story p, .as-story h3, .as-story h4, .as-story h5 { margin: 0; max-width: none; }
.as-story button, .as-story select { font: inherit; touch-action: manipulation; }
.as-story button { cursor: pointer; }
.as-story button:disabled { cursor: default; opacity: .45; }
.as-story button:focus-visible, .as-story select:focus-visible,
.as-launch:focus-visible, .as-dialog-close:focus-visible {
  outline: 3px solid #b96315;
  outline-offset: 4px;
}
.as-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: var(--as-ice);
  border-bottom: 1px solid var(--as-line);
}
.as-story .as-eyebrow { color: var(--as-blue); font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.as-story .as-title { font-size: 23px; line-height: 1.25; letter-spacing: -.045em; text-wrap: balance; }
.as-ending { display: flex; align-items: center; gap: 12px; flex-shrink: 0; max-width: 48%; }
.as-ending>span { color: var(--as-muted); font-size: 11px; max-width: 90px; line-height: 1.45; }
.as-ending select {
  appearance: auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #bdcbe4;
  border-radius: 5px;
  background: #fff;
  color: var(--as-ink);
  font-size: 12px;
}
.as-controls {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 32px;
  background: #fff;
  border-bottom: 1px solid var(--as-line);
  box-shadow: 0 5px 14px #1535ae04;
}
.as-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; min-width: 0; }
.as-buttons button {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--as-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.as-buttons .as-play { min-width: 123px; padding-inline: 17px; background: var(--as-blue); color: #fff; font-weight: 650; }
.as-buttons .as-play:hover { background: #1838bd; }
.as-buttons .as-next:hover, .as-buttons .as-reset:hover { color: var(--as-blue); text-decoration: underline; text-underline-offset: 4px; }
.as-story .as-status { color: var(--as-muted); font-size: 11px; max-width: 330px; text-align: right; }
.as-caption { padding: 24px 32px 25px; scroll-margin-top: 82px; }
.as-story .as-phase { color: var(--as-blue); font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.as-story .as-scene-title { font-size: clamp(23px, 2.15vw, 31px); line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.as-story .as-description { color: var(--as-muted); font-size: 14px; line-height: 1.65; margin-top: 9px; max-width: 850px; }
.as-stage { display: grid; grid-template-columns: minmax(0,1fr) 40px minmax(0,1.06fr) 40px minmax(0,1fr); align-items: stretch; padding: 0 32px 26px; }
.as-surface { min-width: 0; display: flex; flex-direction: column; }
.as-story .as-lane-title { margin: 0 0 14px; font-size: 12px; font-weight: 600; color: var(--as-muted); line-height: 1.5; letter-spacing: 0; text-align: center; transition: color .2s; }
.as-story[data-focus="source"] .as-source>.as-lane-title,
.as-story[data-focus="process"] .as-process>.as-lane-title,
.as-story[data-focus="result"] .as-result>.as-lane-title { color: var(--as-blue); }
.as-panel-host { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.as-panel, .as-engine {
  flex: 1;
  min-width: 0;
  min-height: 325px;
  background: #fff;
  border: 1px solid #ced9ec;
  border-radius: 9px;
}
.as-panel { padding: 19px 19px 20px; overflow-wrap: anywhere; }
.as-panel-top { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #e5eafa; padding-bottom: 15px; margin-bottom: 18px; }
.as-icon { display: grid; place-items: center; width: 33px; height: 33px; background: var(--as-ice); border-radius: 8px; color: var(--as-blue); flex: none; }
.as-story svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.as-story .as-panel-title { font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: -.015em; }
.as-story .as-panel-subtitle { margin-top: 3px; color: var(--as-muted); font-size: 10px; line-height: 1.5; }
.as-kind-call, .as-kind-messages {
  width: 100%;
  max-width: 292px;
  align-self: center;
  border: 5px solid #253e75;
  border-radius: 26px;
  padding: 16px 14px 20px;
  box-shadow: 0 12px 24px #1535ae0a;
}
.as-kind-call .as-panel-top, .as-kind-messages .as-panel-top { margin-bottom: 15px; padding-bottom: 13px; gap: 9px; }
.as-kind-call .as-icon, .as-kind-messages .as-icon { width: 29px; height: 29px; border-radius: 50%; }
.as-kind-call .as-panel-title, .as-kind-messages .as-panel-title { font-size: 12px; }
.as-call { display: flex; flex-direction: column; align-items: center; padding: 17px 4px 18px; text-align: center; }
.as-avatar { width: 66px; height: 66px; display: grid; place-items: center; background: var(--as-ice); color: var(--as-blue); border-radius: 50%; margin-bottom: 19px; font-size: 18px; font-weight: 700; }
.as-avatar svg { width: 30px; height: 30px; }
.as-call-label { font-size: 15px; font-weight: 650; line-height: 1.4; }
.as-call>p { font-size: 12px; color: var(--as-muted); margin-top: 7px; }
.as-ring-bars { height: 29px; display: flex; gap: 5px; align-items: center; margin-top: 18px; }
.as-ring-bars i { display: block; width: 4px; height: 10px; border-radius: 3px; background: var(--as-blue); }
.as-messages { display: flex; flex-direction: column; gap: 13px; }
.as-message { width: fit-content; max-width: 96%; padding: 11px 12px; border-radius: 11px 11px 11px 2px; background: #eef2fb; color: var(--as-ink); }
.as-message[data-direction="out"] { margin-left: auto; border-radius: 11px 11px 2px 11px; background: var(--as-blue); color: #fff; }
.as-speaker { display: block; font-size: 9px; font-weight: 700; opacity: .83; margin-bottom: 4px; }
.as-story .as-message p { font-size: 12px; line-height: 1.65; }
.as-kind-transcript .as-message { width: 100%; max-width: 100%; border-radius: 0; padding: 0 0 0 10px; background: transparent; border-left: 2px solid #c0cfee; }
.as-kind-transcript .as-message[data-direction="out"] { color: var(--as-ink); border-left-color: var(--as-blue); }
.as-kind-transcript .as-speaker { color: var(--as-blue); opacity: 1; }
.as-fields { margin: 0; padding: 0; display: grid; gap: 13px; }
.as-fields>div { min-width: 0; }
.as-fields dt { font-size: 10px; color: var(--as-muted); line-height: 1.4; }
.as-fields dd { margin: 4px 0 0; font-size: 12px; line-height: 1.55; font-weight: 600; color: var(--as-ink); }
.as-items { margin: 0; padding: 0; list-style: none; }
.as-items>li { position: relative; padding: 12px 0 12px 18px; border-bottom: 1px solid #e7edf8; }
.as-items>li:first-child { padding-top: 0; }
.as-items>li:last-child { border: 0; padding-bottom: 0; }
.as-items>li::before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; top: 18px; left: 0; background: #97aed9; }
.as-items>li:first-child::before { top: 6px; }
.as-items>li[data-state="done"]::before { background: var(--as-green); }
.as-items>li[data-state="active"]::before { background: var(--as-blue); box-shadow: 0 0 0 3px #2145dd13; }
.as-items>li[data-state="blocked"]::before { background: var(--as-amber); }
.as-items strong { display: block; font-size: 12px; line-height: 1.5; font-weight: 650; }
.as-story .as-items p { margin-top: 4px; font-size: 11px; line-height: 1.55; color: var(--as-muted); }
.as-kind-board { background: #fcfdff; }
.as-kind-board .as-items { display: grid; gap: 9px; }
.as-kind-board .as-items>li { border: 1px solid #d9e3f4; border-left: 3px solid #a8bce2; border-radius: 4px; padding: 12px; background: #fff; }
.as-kind-board .as-items>li::before { display: none; }
.as-kind-board .as-items>li[data-state="active"] { border-left-color: var(--as-blue); }
.as-kind-board .as-items>li[data-state="done"] { border-left-color: var(--as-green); }
.as-kind-board .as-items>li[data-state="blocked"] { border-left-color: var(--as-amber); }
.as-kind-record[data-icon="quote"] { border-radius: 3px; box-shadow: 3px 4px 0 #e9eef8; }
.as-kind-record[data-icon="quote"] .as-panel-top { border-bottom-style: dashed; }
.as-kind-record[data-icon="calendar"] { border-top: 5px solid var(--as-blue); border-radius: 6px; }
.as-kind-record[data-icon="calendar"] .as-icon { border: 1px solid #c0d0f0; border-radius: 3px; background: #fff; }
.as-kind-record[data-icon="form"] .as-fields>div { padding-bottom: 9px; border-bottom: 1px solid #e6ecf6; }
.as-empty { min-height: 206px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16px 8px; }
.as-empty>svg { width: 47px; height: 47px; margin-bottom: 20px; color: #91a9d3; stroke-width: 1.3; }
.as-story .as-empty p { font-size: 12px; color: var(--as-muted); line-height: 1.8; max-width: 230px; }
.as-badge { display: inline-block; margin-top: 17px; padding: 5px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 1.55; background: #e8efff; color: #2147b6; }
.as-panel[data-tone="green"] .as-badge { background: #e3f1ea; color: var(--as-green); }
.as-panel[data-tone="amber"] .as-badge { background: #fff1dc; color: var(--as-amber); }
.as-panel[data-tone="green"]>.as-panel-top .as-icon { background: #e3f1ea; color: var(--as-green); }
.as-panel[data-tone="amber"]>.as-panel-top .as-icon { background: #fff1dc; color: var(--as-amber); }
.as-story .as-panel-footer { color: var(--as-muted); font-size: 10px; line-height: 1.65; margin-top: 17px; border-top: 1px solid #e5eafa; padding-top: 12px; }
.as-engine { padding: 19px 18px 20px; }
.as-engine-head { display: flex; gap: 10px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #e5eafa; }
.as-engine-mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: var(--as-blue); color: #fff; border-radius: 8px; font-size: 28px; line-height: 1; font-weight: 800; }
.as-engine-head strong { display: block; font-size: 13px; line-height: 1.4; font-weight: 700; }
.as-story .as-engine-head p { font-size: 10px; line-height: 1.55; margin-top: 4px; color: var(--as-muted); }
.as-checks { padding: 17px 0 0; margin: 0; list-style: none; }
.as-checks>li { display: flex; gap: 10px; padding-bottom: 15px; }
.as-checks>li:last-child { padding-bottom: 0; }
.as-check-symbol { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #a8bad7; background: #fff; color: var(--as-muted); font-size: 10px; line-height: 1; margin-top: 1px; }
.as-check-symbol svg { width: 11px; height: 11px; stroke-width: 2; }
.as-checks strong { display: block; font-size: 12px; font-weight: 650; line-height: 1.45; }
.as-story .as-checks p { font-size: 11px; color: var(--as-muted); line-height: 1.6; margin-top: 3px; }
.as-checks>li[data-state="done"] .as-check-symbol { background: #e3f1ea; border-color: #b5d6c6; color: var(--as-green); }
.as-checks>li[data-state="active"] .as-check-symbol { background: var(--as-blue); border-color: var(--as-blue); color: #fff; box-shadow: 0 0 0 3px #2145dd12; }
.as-checks>li[data-state="blocked"] .as-check-symbol { background: #fff1dc; border-color: #d8b987; color: var(--as-amber); }
.as-checks>li[data-state="skipped"] .as-check-symbol { background: #edf1f8; }
.as-route { align-self: center; position: relative; height: 1px; background: #b2c5e9; margin: 22px 5px 0; }
.as-route::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid #8ba4d6; border-right: 1px solid #8ba4d6; transform: rotate(45deg); }
.as-route>span { position: absolute; left: 0; top: -4px; width: 9px; height: 9px; background: var(--as-blue); border-radius: 50%; opacity: 0; box-shadow: 0 0 0 4px #2145dd0b; }
.as-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 19px 32px 21px; border-top: 1px solid var(--as-line); background: #fff; }
.as-steps button { border: 0; border-top: 3px solid #e5eafa; border-radius: 0; background: none; padding: 13px 9px 0 0; min-height: 57px; font-size: 11px; line-height: 1.5; text-align: left; color: var(--as-muted); }
.as-steps button>span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; background: #edf1f9; color: #516382; border-radius: 50%; font-size: 10px; vertical-align: middle; }
.as-steps button:hover { color: var(--as-blue); }
.as-steps button.is-past { border-top-color: #a4b6ef; }
.as-steps button[aria-current="step"] { border-top-color: var(--as-blue); color: var(--as-blue); font-weight: 700; }
.as-steps button[aria-current="step"]>span { background: var(--as-blue); color: #fff; }
.as-outcome { padding: 27px 32px 30px; background: var(--as-blue); color: #fff; }
.as-story .as-outcome-label { font-size: 11px; color: #dce5ff; margin-bottom: 8px; }
.as-story .as-outcome-title { font-size: 30px; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.as-story .as-outcome-copy { font-size: 14px; line-height: 1.7; color: #e2eaff; margin-top: 11px; max-width: 820px; }
.as-story .as-note { padding: 17px 32px 20px; color: var(--as-muted); font-size: 11px; line-height: 1.75; background: #fff; }
.services>.service-footnote { margin-left: 0; }
.as-launch { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #bdccec; border-radius: 5px; background: #fff; color: var(--blue); min-height: 44px; padding: 10px 15px; font: 600 13px/1.5 Manrope, Arial, sans-serif; margin-top: 19px; cursor: pointer; }
.as-launch:hover { background: #f0f4ff; border-color: var(--blue); }
.as-launch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.as-dialog { width: min(1360px, calc(100% - 48px)); max-width: none; max-height: 90dvh; padding: 0; border: 0; border-radius: 17px; color: var(--ink); background: #f7f9ff; overflow: auto; overscroll-behavior: contain; box-shadow: 0 30px 100px #081a4955; }
.as-dialog::backdrop { background: #0b1c4ac7; backdrop-filter: blur(6px); }
body.story-dialog-open { overflow: hidden; }
.as-dialog-close { position: sticky; top: 0; z-index: 9; display: block; margin: 12px 12px 0 auto; min-height: 44px; min-width: 44px; border: 1px solid #c5d3ed; border-radius: 6px; background: #fff; color: #1535ae; padding: 9px 13px; font: 600 12px/1.5 Manrope, Arial, sans-serif; cursor: pointer; }
.as-dialog-close:hover { background: #e7eeff; }
.as-dialog-content .as-story { margin-top: 0; border: 0; border-radius: 0; overflow: visible; }
.as-dialog-content .as-topline { padding-top: 12px; }
.as-dialog-content .as-controls { top: 0; padding-right: 112px; }
.as-dialog-content .as-status { max-width: 290px; }
.as-dialog-content .as-caption { scroll-margin-top: 88px; }

/* The class changes retain paused animation state; the player controls the clock. */
.as-story .as-route>span, .as-story .as-avatar, .as-story .as-ring-bars i,
.as-story .as-panel-host, .as-story .as-check-symbol { animation-play-state: paused; }
.as-story:is(.is-playing,.is-motion)[data-flow="to-process"] .as-route-left>span,
.as-story:is(.is-playing,.is-motion)[data-flow="to-source"] .as-route-left>span,
.as-story:is(.is-playing,.is-motion)[data-flow="to-result"] .as-route-right>span { animation: as-packet 1.35s linear infinite; }
.as-story:is(.is-playing,.is-motion)[data-flow="to-source"] .as-route-left>span { animation-direction: reverse; }
.as-story.is-playing[data-step="0"] .as-avatar { animation: as-ring 1.3s ease-in-out infinite; }
.as-story.is-playing[data-step="0"] .as-ring-bars i { animation: as-bars .75s ease-in-out infinite alternate; }
.as-story.is-playing .as-ring-bars i:nth-child(2) { animation-delay: -.15s; }
.as-story.is-playing .as-ring-bars i:nth-child(3) { animation-delay: -.3s; }
.as-story.is-playing .as-ring-bars i:nth-child(4) { animation-delay: -.45s; }
.as-story.is-playing .as-ring-bars i:nth-child(5) { animation-delay: -.6s; }
.as-story.is-playing.is-motion .as-panel-host { animation: as-arrive .35s ease-out both; }
.as-story:not(.is-playing) *, .as-story:not(.is-playing) *::before, .as-story:not(.is-playing) *::after { animation-play-state: paused !important; }
@keyframes as-packet { 0% { left: 0; opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
@keyframes as-ring { 50% { box-shadow: 0 0 0 9px #2145dd09; transform: rotate(-6deg); } }
@keyframes as-bars { to { height: 24px; } }
@keyframes as-arrive { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .as-stage { grid-template-columns: minmax(0,1fr) 27px minmax(0,1.08fr) 27px minmax(0,1fr); padding-inline: 24px; }
  .as-topline, .as-controls, .as-caption, .as-steps, .as-outcome, .as-story .as-note { padding-inline: 24px; }
  .as-story .as-title { font-size: 21px; }
  .as-ending { gap: 8px; }
  .as-ending>span { max-width: 65px; }
  .as-panel { padding-inline: 14px; }
  .as-kind-call, .as-kind-messages { padding-inline: 11px; border-width: 4px; }
  .as-engine { padding-inline: 13px; }
  .as-checks>li { gap: 8px; }
  .as-steps button { font-size: 10px; }
}
@media (max-width: 850px) {
  .as-topline { align-items: flex-start; gap: 19px; }
  .as-ending { flex-direction: column; align-items: flex-start; gap: 6px; max-width: 47%; }
  .as-ending>span { max-width: none; }
  .as-ending select { width: 100%; }
  .as-controls { flex-wrap: wrap; gap: 7px 20px; }
  .as-story .as-status { text-align: left; max-width: none; }
  .as-caption { scroll-margin-top: 118px; padding-top: 23px; padding-bottom: 25px; }
  .as-stage { display: block; padding-bottom: 25px; }
  .as-surface { display: none; max-width: 430px; margin-inline: auto; }
  .as-story[data-focus="source"] .as-source,
  .as-story[data-focus="process"] .as-process,
  .as-story[data-focus="result"] .as-result { display: flex; }
  .as-route { display: none; }
  .as-story .as-lane-title { text-align: left; font-size: 13px; margin-bottom: 14px; }
  .as-panel, .as-engine { min-height: 325px; padding: 20px 23px 23px; }
  .as-kind-call, .as-kind-messages { max-width: 310px; padding: 16px 16px 22px; border-width: 5px; }
  .as-panel-top { gap: 11px; margin-bottom: 19px; }
  .as-story .as-panel-title { font-size: 15px; }
  .as-story .as-panel-subtitle { font-size: 11px; }
  .as-kind-call .as-panel-title, .as-kind-messages .as-panel-title { font-size: 13px; }
  .as-story .as-message p { font-size: 13px; }
  .as-speaker { font-size: 10px; }
  .as-fields { gap: 16px; }
  .as-fields dt { font-size: 11px; }
  .as-fields dd { font-size: 14px; }
  .as-items strong { font-size: 14px; }
  .as-story .as-items p { font-size: 12px; }
  .as-story .as-panel-footer, .as-badge { font-size: 11px; }
  .as-empty { min-height: 215px; }
  .as-story .as-empty p { font-size: 13px; max-width: 290px; }
  .as-engine-head strong { font-size: 15px; }
  .as-story .as-engine-head p { font-size: 12px; }
  .as-checks>li { gap: 12px; padding-bottom: 17px; }
  .as-checks strong { font-size: 14px; }
  .as-story .as-checks p { font-size: 12px; }
  .as-steps button { text-align: center; font-size: 11px; padding-right: 5px; padding-left: 5px; }
  .as-steps button>span { display: grid; margin: 0 auto 6px; }
  .as-story .as-outcome-title { font-size: 29px; }
  .as-dialog-content .as-controls { padding-right: 98px; }
  .as-dialog-content .as-caption { scroll-margin-top: 123px; }
}
@media (max-width: 520px) {
  .as-story { border-radius: 11px; margin-top: 26px; }
  .as-topline { display: block; padding: 20px 17px; }
  .as-story .as-title { font-size: 23px; }
  .as-ending { max-width: none; margin-top: 19px; display: flex; gap: 7px; }
  .as-ending select { min-height: 44px; font-size: 13px; }
  .as-controls { padding: 10px 16px 11px; display: block; }
  .as-buttons { gap: 10px; justify-content: flex-start; }
  .as-buttons button { font-size: 11px; }
  .as-buttons .as-play { min-width: 109px; padding-inline: 12px; }
  .as-story .as-status { font-size: 10px; line-height: 1.55; margin-top: 5px; }
  .as-caption { padding: 21px 17px 23px; scroll-margin-top: 124px; }
  .as-story .as-scene-title { font-size: 26px; line-height: 1.25; }
  .as-story .as-description { font-size: 13px; line-height: 1.75; margin-top: 10px; }
  .as-stage { padding: 0 17px 24px; }
  .as-story .as-lane-title { font-size: 12px; }
  .as-panel, .as-engine { padding-inline: 18px; }
  .as-kind-call, .as-kind-messages { padding-inline: 12px; }
  .as-story .as-panel-title { font-size: 14px; }
  .as-kind-call .as-panel-title, .as-kind-messages .as-panel-title { font-size: 12px; }
  .as-checks>li { gap: 10px; }
  .as-checks strong { font-size: 13px; }
  .as-story .as-checks p { font-size: 12px; }
  .as-engine-head strong { font-size: 14px; }
  .as-story .as-engine-head p { font-size: 11px; }
  .as-steps { grid-auto-columns: minmax(59px,1fr); padding: 16px 12px 18px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .as-steps button { font-size: 10px; padding-inline: 3px; }
  .as-outcome { padding: 25px 20px 27px; }
  .as-story .as-outcome-title { font-size: 27px; }
  .as-story .as-outcome-copy { font-size: 13px; line-height: 1.75; }
  .as-story .as-note { padding: 17px 20px 19px; font-size: 10px; }
  .as-launch { font-size: 12px; }
  .as-dialog { width: calc(100% - 20px); max-height: 94dvh; border-radius: 12px; }
  .as-dialog-close { margin: 8px 8px 0 auto; }
  .as-dialog-content .as-topline { padding-top: 10px; }
  .as-dialog-content .as-controls { padding-right: 16px; padding-top: 46px; }
  .as-dialog-content .as-caption { scroll-margin-top: 160px; }
  .as-dialog-content .as-status { max-width: none; }
}
@media (max-width: 370px) {
  .as-controls { padding-inline: 12px; }
  .as-buttons { gap: 8px; }
  .as-buttons button { font-size: 10px; }
  .as-buttons .as-play { min-width: 99px; padding-inline: 10px; }
  .as-story .as-title { font-size: 21px; }
  .as-story .as-scene-title { font-size: 24px; }
  .as-stage { padding-inline: 13px; }
  .as-panel, .as-engine { padding-inline: 14px; }
  .as-kind-call, .as-kind-messages { padding-inline: 11px; }
  .as-story .as-message p { font-size: 12px; }
  .as-story .as-outcome-title { font-size: 25px; }
  .as-dialog-content .as-controls { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-story *, .as-story *::before, .as-story *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .as-story .as-route>span { display: none; }
}
