/* ==========================================================================
 * Event Studio - Event Stories (Milestone I)
 *
 *  1. The nav count       st-nav__count (views/shell.js)
 *  2. Thumbnails          st-story-thumb (ui/story-viewer.js)
 *  3. The composer        st-story-compose (ui/story-composer.js)
 *  4. My stand's card     st-story-card, st-story-row (ui/stand-stories.js)
 *  5. The Stories page    st-stories, st-story-group, st-story-tile, st-story-look, st-story-hl (views/stories.js)
 *  6. The viewer          st-story-view (ui/story-viewer.js)
 *  7. Phones (<= 640 px), reduced motion
 *  8. Event stories       st-story-rings, st-story-ring (My stand, ui/stand-stories.js)
 *  9. The player          st-story-player, st-sp (ui/story-player.js: the public page's viewer)
 *
 * Stories are 9:16. Colours are the kit's tokens. Nothing moves here: the
 * only transitions are colour and opacity fades, off under
 * prefers-reduced-motion, and the viewers never autoplay a video then (the
 * player opens paused: ui/story-player.js).
 * ========================================================================== */

/* ---------- 1. The nav count ---------- */
.st-nav__count {
  margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center; flex: 0 0 auto;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
  color: #1a1206; background: var(--st-amber);
}
.st-nav__item { position: relative; }
@media (max-width: 960px) {
  /* The rail shows icons only: the count becomes a small badge on the icon. */
  .st-nav__count { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
}

/* ---------- 2. Thumbnails ---------- */
.st-story-thumb {
  position: relative; flex: 0 0 auto; display: block; overflow: hidden; aspect-ratio: 9 / 16;
  border-radius: var(--st-r-8); border: 1px solid var(--st-border); background: var(--st-bg-elev);
}
.st-story-thumb--sm { width: 48px; }
.st-story-thumb--md { width: 100%; }
.st-story-thumb__img { width: 100%; height: 100%; object-fit: cover; }
.st-story-thumb__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--st-text-muted); }
.st-story-thumb__kind {
  position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px;
  border-radius: 999px; background: rgba(5, 6, 10, 0.78); color: #fff; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.st-story-thumb--open { cursor: pointer; padding: 0; transition: border-color var(--st-ease); }
.st-story-thumb--open:hover { border-color: var(--st-border-strong); }
.st-story-thumb--open:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 2px; }

/* ---------- 3. The composer ---------- */
.st-story-compose { display: flex; flex-direction: column; gap: 12px; }
.st-story-compose__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.st-story-compose__window { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--st-text-dim); min-width: 0; }
.st-story-compose__window .st-icon { margin-top: 2px; }
.st-story-compose__window.is-ok .st-icon { color: var(--st-green); }
.st-story-compose__window.is-info .st-icon { color: var(--st-lavender); }
.st-story-compose__window.is-muted { color: var(--st-text-muted); }

.st-story-compose__pick {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--st-r-12);
  border: 1px dashed var(--st-border-strong); background: rgba(255, 255, 255, 0.02);
}
.st-story-compose__pick.is-closed { opacity: 0.6; }
.st-story-compose__pickicon { color: var(--st-lavender); flex: 0 0 auto; }
.st-story-compose__pick .st-btn { align-self: flex-start; }
.st-story-compose__hint { max-width: 52ch; }

.st-story-compose__editor { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-story-compose__preview {
  width: 132px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--st-r-10);
  border: 1px solid var(--st-border-strong); background: #000; display: grid; place-items: center;
}
.st-story-compose__media { width: 100%; height: 100%; object-fit: cover; }
.st-story-compose__reading { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; text-align: center; font-size: 12px; color: var(--st-text-dim); }
.st-story-compose__form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-story-compose__file { margin-right: auto; }
.st-story-compose__form .st-textarea { min-height: 72px; }
.st-story-compose__counter { margin-left: auto; font-size: 12px; color: var(--st-text-muted); font-variant-numeric: tabular-nums; }
.st-story-compose__counter.is-over { color: var(--st-red-text); font-weight: 600; }
.st-story-compose__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.st-story-compose__quota { color: var(--st-text-muted); font-variant-numeric: tabular-nums; line-height: 1.45; }
.st-story-compose__quota.is-full { color: #fcd34d; }
.st-story-compose__error:empty { display: none; }

/* ---------- 4. My stand's card ---------- */
.st-story-card__events { padding-bottom: 14px; border-bottom: 1px solid var(--st-border); }
.st-story-card__subtitle { margin-top: 14px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--st-text-dim); }
.st-story-card__subtitle--first { margin-top: 0; }
.st-story-card__empty { padding: 4px 0; }

.st-story-rows { display: flex; flex-direction: column; }
.st-story-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--st-border); }
.st-story-rows > .st-story-row:first-child { border-top: 0; }
.st-card.st-story-rows { padding: 4px 16px; }
.st-story-row__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.st-story-row__who { font-weight: 600; font-size: 13.5px; }
.st-story-row__views { display: inline-flex; align-items: center; gap: 4px; }
.st-story-row__caption { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-story-row__note { font-size: 12.5px; line-height: 1.45; color: var(--st-text-dim); overflow-wrap: anywhere; }
.st-story-row.is-removed .st-story-row__caption,
.st-story-row.is-blocked .st-story-row__caption { color: var(--st-text-muted); }

/* ---------- 5. The Stories page ---------- */
.st-stories__body { display: flex; flex-direction: column; gap: 16px; }
.st-stories__off[hidden], .st-stories__body[hidden] { display: none; }
.st-stories__window { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--st-text-dim); }
.st-stories__window.is-ok .st-icon { color: var(--st-green); }
.st-stories__window.is-info .st-icon { color: var(--st-lavender); }
.st-stories__offnote { align-items: flex-start; color: var(--st-text-dim); }
.st-stories__offnote .st-icon { margin-top: 2px; color: var(--st-text-muted); }
.st-stories__panel { display: flex; flex-direction: column; gap: 16px; }
.st-stories__panel[hidden] { display: none; }

.st-story-group { padding: 16px; }
.st-story-group__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.st-story-group__logo { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; }
.st-story-group__logo.is-event { color: #fff; background: var(--st-violet); }
.st-story-group__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-story-group__name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; min-width: 0; }

.st-story-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 120px)); gap: 16px; }
.st-story-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-story-tile__meta { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 22px; }
.st-story-tile__views { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.st-story-tile__star { color: var(--st-amber); display: inline-flex; align-items: center; gap: 3px; }
.st-story-tile__meta .st-btn { margin-left: auto; flex: 0 0 auto; }
.st-story-tile__caption { font-size: 12.5px; line-height: 1.4; color: var(--st-text-dim); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.st-story-looks { display: flex; flex-direction: column; gap: 12px; }
.st-story-look { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; align-items: start; }
.st-story-look__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-story-look__who { font-weight: 600; }
.st-story-look__count { display: inline-flex; align-items: center; gap: 6px; color: #fcd34d; font-weight: 600; }
.st-story-look__caption { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.st-story-look__actions { margin-top: 4px; }
.st-story-reports { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: var(--st-r-10); background: var(--st-bg-elev); border: 1px solid var(--st-border); }
.st-story-report { display: flex; flex-direction: column; gap: 2px; }
.st-story-report__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-story-report__note { font-size: 12.5px; line-height: 1.45; color: var(--st-text-dim); overflow-wrap: anywhere; }

.st-story-hl__intro { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px; }
.st-story-hl__introtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 64ch; }
.st-story-hl { padding: 4px 16px; }
.st-story-hl__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--st-border); }
.st-story-hl__row:first-child { border-top: 0; }
.st-story-hl__pos { width: 22px; flex: 0 0 auto; text-align: center; font-weight: 700; color: var(--st-lavender); font-variant-numeric: tabular-nums; }
.st-story-hl__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-story-hl__who { font-weight: 600; font-size: 13.5px; }
.st-story-hl__caption { font-size: 12.5px; color: var(--st-text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-story-hl__move { display: flex; gap: 2px; flex: 0 0 auto; }

.st-story-gone { display: flex; flex-direction: column; gap: 6px; }
.st-story-gone__title { font-size: 13px; font-weight: 600; color: var(--st-text-dim); margin-top: 8px; }

/* ---------- 6. The viewer ---------- */
.st-story-view { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.st-story-view__frame { position: relative; }
.st-story-view__stage {
  aspect-ratio: 9 / 16; width: 100%; max-height: 70vh; overflow: hidden; border-radius: var(--st-r-12);
  background: #000; display: grid; place-items: center;
}
.st-story-view__media { width: 100%; height: 100%; object-fit: contain; }
.st-story-view__gone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; color: var(--st-text-dim); font-size: 13px; }
.st-story-view__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(5, 6, 10, 0.72); }
.st-story-view__nav--prev { left: 6px; }
.st-story-view__nav--next { right: 6px; }
.st-story-view__info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-story-view__who { display: flex; flex-direction: column; gap: 2px; }
.st-story-view__name { font-weight: 600; font-size: 15px; }
.st-story-view__when { font-size: 12.5px; color: var(--st-text-muted); }
.st-story-view__caption { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.st-story-view__caption.is-empty { color: var(--st-text-muted); }
.st-story-view__note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--st-text-dim); }
.st-story-view__note .st-icon { margin-top: 2px; }
.st-story-view__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.st-story-view__actions:empty { display: none; }

/* ---------- 7. Phones, reduced motion ---------- */
@media (max-width: 640px) {
  .st-story-compose__editor { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .st-story-compose__preview { width: 96px; }
  .st-story-compose__pick { flex-direction: column; align-items: flex-start; }
  .st-story-compose__foot .st-btn { flex: 1 1 auto; justify-content: center; }
  .st-story-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .st-story-look { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .st-story-hl__row { flex-wrap: wrap; }
  .st-story-hl__drop { margin-left: 34px; }
  .st-story-view { grid-template-columns: minmax(0, 1fr); }
  .st-story-view__stage { max-height: 56vh; width: auto; margin-inline: auto; }
  .st-stories .st-page-header__actions { width: 100%; }
  .st-stories .st-page-header__actions .st-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 400px) {
  .st-story-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .st-story-thumb--open { transition: none; }
}

/* ---------- 8. Event stories (My stand) ---------- */
/* The rings of the public page and the app: a coloured ring for something new,
   a grey hairline once watched, the highlights the one rounded square. */
.st-story-rings { display: flex; align-items: center; gap: 4px 12px; min-height: 104px; min-width: 0; }
.st-story-rings__list {
  flex: 0 1 auto; min-width: 0; display: flex; gap: 12px; margin: 0; padding: 4px 2px 8px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.st-story-rings__item { flex: 0 0 auto; scroll-snap-align: start; }
.st-story-ring {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; padding: 0;
  font: inherit; color: var(--st-text); background: none; border: 0; cursor: pointer;
}
.st-story-ring__circle {
  position: relative; display: block; width: 68px; height: 68px; padding: 3px; border-radius: 50%;
  border: 2px solid var(--st-violet-2); transition: border-color var(--st-ease);
}
.st-story-ring:hover .st-story-ring__circle { border-color: var(--st-lavender); }
.st-story-ring:focus-visible { outline: none; }
.st-story-ring:focus-visible .st-story-ring__circle { outline: 2px solid var(--st-focus); outline-offset: 3px; }
.st-story-ring__avatar {
  display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%;
  background: var(--st-bg-elev); color: var(--st-text-dim);
}
.st-story-ring__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-story-ring__initials { font-size: 19px; font-weight: 700; letter-spacing: 0.01em; color: var(--st-text); }
.st-story-ring__name {
  display: -webkit-box; max-width: 76px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; overflow-wrap: anywhere;
}
.st-story-ring.is-seen .st-story-ring__circle { padding: 4px; border-width: 1px; border-color: var(--st-border-strong); }
.st-story-ring.is-seen .st-story-ring__avatar { opacity: 0.5; }
.st-story-ring.is-seen .st-story-ring__name { color: var(--st-text-muted); }
.st-story-ring.is-highlights .st-story-ring__circle { border-radius: 20px; }
.st-story-ring.is-highlights .st-story-ring__avatar { border-radius: 15px; }
.st-story-ring.is-add .st-story-ring__circle { border: 2px dashed var(--st-border-strong); }
.st-story-ring.is-add .st-story-ring__avatar { background: transparent; color: var(--st-lavender); }
.st-story-ring.is-add:hover .st-story-ring__circle { border-color: var(--st-lavender); }
.st-story-ring.is-add .st-story-ring__name { color: var(--st-text-dim); }
/* "Yours" on the stand's own ring, on the line of the circle. */
.st-story-ring__mine {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 0 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; line-height: 16px; white-space: nowrap; color: #fff;
  background: var(--st-violet); border: 2px solid var(--st-bg-card);
}
.st-story-ring.is-seen .st-story-ring__mine { background: var(--st-bg-elev); color: var(--st-text-dim); }
.st-story-rings__empty { flex: 1 1 12rem; padding-bottom: 26px; }
.st-story-rings__loading { display: flex; gap: 20px; padding: 4px 6px 34px; }
.st-story-rings__ghost { width: 68px; height: 68px; border-radius: 50%; background: var(--st-bg-elev); border: 1px solid var(--st-border); }
.st-story-rings__note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.st-story-rings__note .st-link { padding: 0; font: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- 9. The player ---------- */
/* The whole window, dimmed; on a computer the stories are a 9:16 card in the middle. */
.st-modal.st-story-player {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0;
}
.st-story-player::backdrop { background: rgba(3, 4, 7, 0.92); }
.st-story-player .st-dialog__panel {
  height: 100%; max-height: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; animation: none;
}
.st-story-player .st-dialog__header, .st-story-player .st-dialog__footer { display: none; }
.st-story-player .st-dialog__body { height: 100%; padding: 0; overflow: hidden; }

.st-sp {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; width: 100%; height: 100%;
  color: #fff; outline: none; touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.st-sp__col {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; min-width: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: #000;
}

.st-sp__top { padding: 10px 10px 6px 14px; transition: opacity 0.2s; }
.st-sp__bars { display: flex; gap: 3px; height: 2px; margin: 0 4px 10px 0; }
.st-sp__bar { flex: 1 1 0; min-width: 0; height: 2px; overflow: hidden; border-radius: 1px; background: rgba(255, 255, 255, 0.3); }
.st-sp__fill { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
.st-sp__head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.st-sp__avatar {
  flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%;
  color: var(--st-text-dim); background: var(--st-bg-elev); border: 1px solid var(--st-border-strong);
}
.st-sp__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-sp__initials { font-size: 13px; font-weight: 700; color: #fff; }
.st-sp__who { flex: 1 1 auto; min-width: 0; }
.st-sp__namerow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-sp__name { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.st-sp__mine { flex: 0 0 auto; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 17px; color: #fff; background: var(--st-violet); }
.st-sp__meta { margin-top: 2px; overflow: hidden; font-size: 12.5px; color: rgba(255, 255, 255, 0.64); white-space: nowrap; text-overflow: ellipsis; }

/* The picture: 9:16, as large as the space allows. */
.st-sp__stage { display: grid; place-items: center; min-height: 0; container-type: size; }
.st-sp__frame {
  position: relative; width: 100%; height: 100%; width: min(100cqw, 100cqh * 0.5625); height: min(100cqh, 100cqw * 1.7778);
  overflow: hidden; border-radius: 8px; background: #0b0d13;
}
.st-sp__thumb, .st-sp__media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.st-sp__frame[data-fit="contain"] .st-sp__thumb, .st-sp__frame[data-fit="contain"] .st-sp__media { object-fit: contain; }
.st-sp__media { opacity: 0; transition: opacity 0.18s ease-out; -webkit-user-drag: none; }
.st-sp__frame.is-ready .st-sp__media { opacity: 1; }
.st-sp__fail { position: absolute; top: 50%; left: 16px; right: 16px; margin-top: -12px; text-align: center; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.st-sp__play {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; padding: 0;
  color: #fff; background: rgba(5, 6, 10, 0.72); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; cursor: pointer;
}
.st-sp__play svg { margin-left: 3px; fill: currentColor; }
.st-sp__caption {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 45%; margin: 0; padding: 12px 14px 14px; overflow-y: auto;
  font-size: 14.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere;
  background: rgba(5, 6, 10, 0.76); border-top: 1px solid rgba(255, 255, 255, 0.08); transition: opacity 0.2s;
}

/* The bottom: pause, sound, where we are. */
.st-sp__bottom { position: relative; display: flex; align-items: center; gap: 2px; min-height: 58px; padding: 6px 8px 8px; transition: opacity 0.2s; }
.st-sp__count {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; pointer-events: none;
  font-size: 13px; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.st-sp__balance { display: none; }
.st-sp__icon {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: #fff; background: transparent; border: 0; border-radius: 10px; cursor: pointer; transition: background-color 0.15s;
}
.st-sp__icon:hover { background-color: rgba(255, 255, 255, 0.08); }
.st-sp__icon:focus-visible, .st-sp__nav:focus-visible, .st-sp__play:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 2px; }
/* Holding a story down shows the picture alone. */
.st-sp.is-held .st-sp__top, .st-sp.is-held .st-sp__bottom, .st-sp.is-held .st-sp__caption { opacity: 0; }

/* The arrows beside the card (a computer). */
.st-sp__nav {
  display: none; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; padding: 0;
  color: #fff; background: var(--st-bg-elev); border: 1px solid var(--st-border-strong); border-radius: 50%; cursor: pointer;
  transition: border-color 0.15s;
}
.st-sp__nav:hover { border-color: rgba(255, 255, 255, 0.4); }
.st-sp__nav:disabled { opacity: 0.3; cursor: default; }

@media (min-width: 768px) and (min-height: 560px) {
  .st-sp__col {
    height: min(94vh, 940px); height: min(94dvh, 940px);
    width: calc((min(94vh, 940px) - 126px) * 0.5625); width: calc((min(94dvh, 940px) - 126px) * 0.5625);
    min-width: 300px; padding: 0; overflow: hidden; border: 1px solid var(--st-border); border-radius: 14px;
  }
  .st-sp__nav { display: inline-grid; }
}

@media (max-width: 640px) {
  .st-story-rings { min-height: 98px; }
  .st-story-rings__list { gap: 10px; }
  .st-story-ring { width: 70px; }
  .st-story-ring__circle { width: 64px; height: 64px; }
  .st-story-ring__name { max-width: 70px; }
  .st-story-rings__ghost { width: 64px; height: 64px; }
  .st-story-card .st-card__actions { width: 100%; }
  .st-story-card .st-card__actions .st-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .st-story-ring__circle, .st-sp__top, .st-sp__media, .st-sp__caption, .st-sp__bottom, .st-sp__icon, .st-sp__nav { transition: none; }
}
