/* La historia guiada: cards de inicio, la pantalla completa de pasos, el resumen y su tarjeta en el chat. Usa las
   variables de app.css (grafito, tinta y el violeta de acción), así que sigue el tema claro u oscuro. */

/* Cards de inicio */
.chat-empty.start { width: min(640px, 100%); max-width: 640px; gap: 10px; }
.chat-empty.start > * { min-width: 0; max-width: 100%; }
.chat-empty.start .chat-empty-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--agent, var(--violet)); color: #fff; font-size: 22px; font-weight: 700; }
.chat-empty .start-ask { margin-top: -4px; color: var(--ink); font-size: clamp(17px, 2vw, 20px); font-weight: 500; }
.start-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; width: 100%; margin-top: 14px; }
.start-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 14px 14px; align-content: start; min-height: 168px; padding: 20px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .2s ease, translate .25s var(--ease-out), box-shadow .25s ease, background-color .2s ease; animation: story-rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
.start-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, rgba(122, 90, 248, .16), transparent 60%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.start-card:hover, .start-card:focus-visible { border-color: rgba(122, 90, 248, .7); translate: 0 -3px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.start-card:hover::before, .start-card:focus-visible::before { opacity: 1; }
.start-card:focus-visible { outline: 3px solid rgba(122, 90, 248, .55); outline-offset: 2px; }
.start-card-icon { grid-row: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(122, 90, 248, .16); color: var(--violet-soft); }
:root[data-theme="light"] .start-card-icon, :root[data-theme="light"] .story-option-icon { color: var(--violet); }
.start-card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.start-card-go { grid-row: 1; justify-self: end; align-self: start; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--placeholder); transition: translate .25s var(--ease-out), color .2s ease; }
.start-card-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.start-card:hover .start-card-go { translate: 4px 0; color: var(--ink); }
.start-card-main { grid-column: 1 / -1; display: grid; gap: 6px; align-content: start; }
.start-card-main b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.start-card-text { color: var(--muted); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.start-card-hint { color: var(--placeholder); font-size: 12.5px; }
.start-resume { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 6px; padding: 8px 12px; border: 1px dashed var(--hairline); border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.start-resume span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-resume svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.start-resume:hover { border-color: rgba(var(--fg-rgb), .3); color: var(--ink); }
.start-resume:focus-visible { outline: 3px solid rgba(122, 90, 248, .55); outline-offset: 2px; }

/* La pantalla de la historia */
.story { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--ground); color: var(--ink); overflow: hidden; }
.story[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: work-in .25s ease both; }
.story::backdrop { background: var(--ground); }
.story::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(122, 90, 248, .16), transparent 70%); pointer-events: none; }
.story-top { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; height: 60px; padding: 0 12px; }
.story-top > .icon-btn:last-child { grid-column: 3; }
.story-back[hidden] { display: block; visibility: hidden; }
.story-dots { grid-column: 2; display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.story-dots li { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; color: var(--placeholder); font-size: 12.5px; font-weight: 500; transition: color .25s ease, background-color .25s ease; }
.story-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--fg-rgb), .22); transition: background-color .25s ease, scale .25s var(--ease-out); }
.story-dots li.is-done { color: var(--muted); }
.story-dots li.is-done .story-dot { background: var(--violet); }
.story-dots li.is-now { background: rgba(122, 90, 248, .16); color: var(--ink); }
.story-dots li.is-now .story-dot { background: var(--violet); scale: 1.25; }
.story-stage { position: relative; min-height: 0; overflow-y: auto; display: grid; justify-items: center; align-items: start; padding: clamp(12px, 5vh, 56px) 20px 32px; scrollbar-width: thin; scrollbar-color: rgba(var(--fg-rgb), .14) transparent; }
.story-panel { display: grid; gap: 22px; width: min(680px, 100%); animation: story-rise .45s var(--ease-out) both; }
.story-stage[data-screen="point"] .story-panel { width: min(1180px, 100%); }

.story-say { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.story-avatar { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 2px; border-radius: 14px; background: var(--agent, var(--violet)); color: #fff; font-size: 19px; font-weight: 700; box-shadow: 0 8px 24px rgba(122, 90, 248, .35); }
.story-line { margin: 0; font-size: clamp(23px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.16; text-wrap: balance; }
.story-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }

.story-options { display: grid; gap: 10px; }
.story-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, translate .22s var(--ease-out), background-color .18s ease; animation: story-rise .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
.story-option:hover { border-color: rgba(var(--fg-rgb), .34); background: var(--panel-hover); translate: 0 -1px; }
.story-option:focus-visible { outline: 3px solid rgba(122, 90, 248, .55); outline-offset: 2px; }
.story-option.is-recommended { border-color: rgba(122, 90, 248, .75); background: linear-gradient(0deg, rgba(122, 90, 248, .1), rgba(122, 90, 248, .1)), var(--panel); }
.story-option-key { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--hairline); border-radius: 8px; color: var(--placeholder); font: 600 13px var(--mono); }
.story-option-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(122, 90, 248, .16); color: var(--violet-soft); }
.story-option-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.story-option-main { display: grid; gap: 3px; min-width: 0; }
.story-option-main b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.story-option-sub { overflow: hidden; color: var(--muted); font-size: 13.5px; text-overflow: ellipsis; }
.story-badge { padding: 4px 9px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.story-other { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.story-other svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.story-other:hover { color: var(--ink); }
.story-other:focus-visible { outline: 3px solid rgba(122, 90, 248, .55); outline-offset: 2px; border-radius: 8px; }

.story-field { display: grid; gap: 8px; }
.story-text, .story-input { width: 100%; padding: 16px 18px; border: 1px solid rgba(var(--fg-rgb), .18); border-radius: 16px; background: var(--field); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; transition: border-color .18s ease; }
.story-input { height: 56px; resize: none; }
.story-text::placeholder, .story-input::placeholder { color: var(--placeholder); }
.story-text:focus-visible, .story-input:focus-visible { border-color: var(--violet); outline: 3px solid rgba(122, 90, 248, .35); outline-offset: 1px; }
.story-field-foot { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.story-mic { position: relative; border-color: var(--hairline); }
.story-mic.is-on { border-color: var(--danger-line); background: var(--danger-bg); color: var(--danger-ink); }
.story-mic-level { position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--danger-soft); opacity: calc(var(--level, 0) * .9); scale: calc(1 + var(--level, 0) * .18); pointer-events: none; }
.story-mic:not(.is-on) .story-mic-level { display: none; }
.story-mic-note { color: var(--muted); font-size: 13px; }
.story-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.story-chip { padding: 8px 13px; border: 1px solid var(--hairline); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.story-chip:hover { border-color: rgba(var(--fg-rgb), .34); color: var(--ink); }
.story-chip:focus-visible { outline: 3px solid rgba(122, 90, 248, .55); outline-offset: 2px; }

.story-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.story-hint { margin-right: auto; color: var(--placeholder); font-size: 12.5px; }
.story-next { height: 48px; padding: 0 22px; border-radius: 14px; font-size: 15px; }
.story-next svg, .story-go svg, .story-card .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story-foot .btn-ghost { height: 48px; padding: 0 20px; border-radius: 14px; font-size: 15px; }
.story-wait { display: grid; place-items: center; min-height: 120px; }
.story-wait .chat-dots { scale: 1.6; }
.story-error { margin: 0; padding: 12px 14px; border: 1px solid var(--danger-line); border-radius: 12px; background: var(--danger-bg); color: var(--danger-ink); font-size: 14px; }

.story-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--panel); }
.story-code-value { margin: 0; font-size: clamp(28px, 8vw, 44px); font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; user-select: all; }
a.story-other { text-decoration: none; }

/* El resumen */
.story-summary { padding: 22px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--panel); }
.sum { display: grid; gap: 18px; }
.sum-what { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; text-wrap: pretty; }
.sum-block { display: grid; gap: 8px; }
.sum-block h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.sum-block h3 svg, .sum-spend svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sum-text { margin: 0; font-size: 15px; }
.sum-list, .sum-route { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; }
.sum-list li { position: relative; padding-left: 18px; }
.sum-list li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.sum-list.is-quiet { color: var(--muted); font-size: 14px; }
.sum-list.is-quiet li::before { background: rgba(var(--fg-rgb), .3); }
.sum-route li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.sum-step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(122, 90, 248, .2); color: var(--violet-soft); font-size: 13px; font-weight: 700; }
:root[data-theme="light"] .sum-step { color: var(--violet); }
.sum-spend { display: flex; align-items: center; gap: 9px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(var(--fg-rgb), .1); color: var(--muted); font-size: 13.5px; }
.sum.is-compact { gap: 14px; }
.sum.is-compact .sum-what { font-size: 16px; }
.sum.is-compact .sum-text, .sum.is-compact .sum-list, .sum.is-compact .sum-route { font-size: 14px; }

/* La tarjeta de la historia en el chat */
.msg-story { display: block; }
.story-card { display: grid; gap: 14px; max-width: 620px; padding: 18px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--panel); }
.story-card.is-ready { border-color: rgba(122, 90, 248, .55); }
.story-card.is-off, .story-card.is-started { padding: 12px 16px; background: transparent; }
.story-card-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--violet-soft); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
:root[data-theme="light"] .story-card-kicker { color: var(--violet); }
.story-card-kicker svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.story-card.is-started .story-card-kicker { color: var(--ok-ink); }
.story-card.is-busy .story-card-kicker { color: var(--muted); font-weight: 500; letter-spacing: 0; font-size: 14px; }
.story-card-what { margin: 0; font-size: 15px; }
.story-card.is-started .story-card-what, .story-card-note { margin: 0; color: var(--muted); font-size: 14px; }
.story-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.story-go { height: 42px; padding: 0 20px; font-size: 14px; }
.story-go svg { fill: currentColor; stroke-width: 1; }
.story-next svg:last-child[data-play], .story-foot .story-next svg { transition: translate .2s var(--ease-out); }
.story-next:hover:not(:disabled) svg { translate: 3px 0; }

/* En llano: sin número de ticket ni gasto en la tarjeta (vuelven con «Ver detalles técnicos»). */
.is-plain .ticket-card .ticket-key, .is-plain .ticket-card .ticket-cost, .is-plain .chat-notice .ticket-key { display: none; }

.only-plain { display: none; }
.is-plain .only-plain { display: inline; }
.is-plain .only-tech { display: none; }

/* Ajustes: cómo se ve y se prueba la web de un proyecto */
.settings-access { flex: 1 1 100%; display: grid; gap: 10px; padding-top: 8px; border-top: 1px dashed rgba(var(--fg-rgb), .12); }
.settings-access summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.settings-access summary:focus-visible { outline: 3px solid rgba(122, 90, 248, .55); outline-offset: 2px; border-radius: 6px; }
.settings-access-state { color: var(--placeholder); font-weight: 500; }
.settings-access[open] summary { margin-bottom: 8px; }
.settings-access .settings-note { font-size: 13px; margin-bottom: 8px; }
.settings-access .settings-row { margin-top: 8px; }

@keyframes story-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 640px) {
  .story-dots li { padding: 5px 6px; }
  .story-dot-name { display: none; }
  .story-dots li.is-now .story-dot-name { display: inline; }
  .story-stage { padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); }
  .story-say { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .story-avatar { width: 38px; height: 38px; font-size: 17px; }
  .story-foot { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ground); }
  .story-foot .btn-ghost { background: var(--panel); }
  .story-foot .btn { flex: 1 1 auto; }
  .story-hint { display: none; }
  .story-summary { padding: 16px; }
  .story-badge { font-size: 10.5px; padding: 3px 7px; }
  .start-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .start-card, .story-option, .story-panel, .story[open] { animation: none; }
  .start-card, .story-option, .start-card-go, .story-next svg { transition: none; }
}

/* Señalar sobre la web viva */
.live { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.live-main { display: grid; gap: 10px; min-width: 0; }
.live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--panel); }
.live-modes { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(var(--fg-rgb), .07); }
.live-mode { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.live-mode svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.live-mode.is-on { background: var(--violet); color: #fff; }
.live-mode:focus-visible { outline: 3px solid rgba(122, 90, 248, .55); outline-offset: 1px; }
.live-url { flex: 1 1 120px; min-width: 0; overflow: hidden; padding: 0 8px; color: var(--placeholder); font: 12.5px var(--mono); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.live-view { position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 10); border: 1px solid var(--hairline); border-radius: 14px; background: #fff; overflow: hidden; user-select: none; touch-action: manipulation; }
.live-view.is-mobile { width: min(390px, 100%); justify-self: center; }
.live-view.is-point { cursor: crosshair; }
.live-view.is-move { cursor: pointer; }
.live-img { display: block; width: 100%; height: 100%; pointer-events: none; }
.live-hover, .live-pin { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); pointer-events: none; }
.live-hover { border: 2px solid var(--violet); border-radius: 4px; background: rgba(122, 90, 248, .14); box-shadow: 0 0 0 9999px rgba(13, 14, 18, .18); }
.live-hover-name { position: absolute; left: -2px; bottom: 100%; max-width: 260px; overflow: hidden; padding: 2px 7px; border-radius: 6px 6px 0 0; background: var(--violet); color: #fff; font-size: 11.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.live-pin { border: 2px solid #ff7a45; border-radius: 4px; background: rgba(255, 122, 69, .12); }
.live-pin span { position: absolute; left: -11px; top: -11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ff7a45; color: #fff; font-size: 12px; font-weight: 700; }
.live-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 14, 18, .28); }
.live-view.is-loading { cursor: progress; }
.live-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--danger-line); border-radius: 12px; background: var(--danger-bg); color: var(--danger-ink); font-size: 14px; }
.live-confirm span { flex: 1 1 220px; }
.live-type { display: flex; gap: 8px; }
.live-type-input { height: 44px; font-size: 15px; }
.live-side { min-width: 0; grid-template-columns: minmax(0, 1fr); display: grid; gap: 12px; padding: 16px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--panel); }
.live-side-title { margin: 0; font-size: 15px; font-weight: 700; }
.live-empty { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.live-marks { grid-template-columns: minmax(0, 1fr); display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.live-mark { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.live-mark-main { grid-template-columns: minmax(0, 1fr); display: grid; gap: 8px; min-width: 0; }
.live-mark-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-mark-head b { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.live-shot { max-width: 100%; max-height: 90px; border: 1px solid var(--hairline); border-radius: 8px; object-fit: contain; object-position: left; background: #fff; }
.live-note { width: 100%; padding: 10px 12px; border: 1px solid rgba(var(--fg-rgb), .18); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 14.5px; line-height: 1.45; resize: vertical; }
.live-note::placeholder { color: var(--placeholder); }
.live-note:focus-visible { border-color: var(--violet); outline: 3px solid rgba(122, 90, 248, .35); outline-offset: 1px; }

@media (max-width: 900px) {
  .live { grid-template-columns: minmax(0, 1fr); }
}

/* Flujo de redes: opciones que se marcan y el resumen de la publicación. */
.story-option.is-toggle[aria-pressed="true"] { border-color: rgba(122, 90, 248, .75); background: linear-gradient(0deg, rgba(122, 90, 248, .1), rgba(122, 90, 248, .1)), var(--panel); }
.story-option-tick { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--hairline); border-radius: 50%; color: transparent; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.story-option-tick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.story-option.is-toggle[aria-pressed="true"] .story-option-tick { border-color: var(--violet); background: var(--violet); color: #fff; }
.sum-scene-kind, .sum-more { color: var(--muted); font-size: 13px; }
.sum-versions { display: grid; gap: 10px; }
.sum-version { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(var(--fg-rgb), .1); border-radius: 12px; }
.sum-version-name { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.sum-version-title { margin: 0; font-size: 15px; font-weight: 600; }
.sum-version-text { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.sum-version-tags { margin: 0; color: var(--violet-soft); font-size: 13.5px; overflow-wrap: anywhere; }
:root[data-theme="light"] .sum-version-tags { color: var(--violet); }
@media (prefers-reduced-motion: reduce) { .story-option-tick { transition: none; } }
