:root {
  --timeline-soft-teal: #e7f2f0;
  --timeline-soft-orange: #f6e9e4;
  --timeline-media-fallback: #e6efed;
  --timeline-radius-lg: 18px;
  --timeline-gap: 16px;
  --timeline-story-shadow: 0 8px 22px rgba(16, 35, 56, .055);
  --timeline-story-shadow-hover: 0 14px 28px rgba(16, 35, 56, .09);
  --timeline-border-hover: #c3d0d6;
  --timeline-footer-bg: #091722;
  --timeline-footer-line: #1f3344;
  --timeline-card-compact-media-height: 88px;
  --timeline-card-min-width: 220px;
  --timeline-dialog-width: min(760px, calc(100vw - 32px));
  --timeline-dialog-max-height: min(820px, calc(100vh - 32px));
  --timeline-dialog-media-height: 220px;
  --timeline-dialog-shadow: 0 24px 80px rgba(16, 35, 56, .28);
  --timeline-dialog-backdrop: rgba(6, 22, 34, .68);
}

html {
  scrollbar-gutter: stable;
}

html[data-theme="dark"] {
  --timeline-soft-teal: #1a3a38;
  --timeline-soft-orange: #3a2520;
  --timeline-media-fallback: #18363a;
  --timeline-border-hover: #415667;
  --timeline-footer-bg: #091722;
  --timeline-footer-line: #2b4051;
  --timeline-card-compact-media-height: 88px;
  --timeline-card-min-width: 220px;
  --timeline-dialog-width: min(760px, calc(100vw - 32px));
  --timeline-dialog-max-height: min(820px, calc(100vh - 32px));
  --timeline-dialog-media-height: 220px;
  --timeline-dialog-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  --timeline-dialog-backdrop: rgba(0, 0, 0, .72);
}

.timeline-editorial {
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
}

.timeline-editorial .container {
  min-width: 0;
}

.timeline-editorial-heading {
  padding: 28px 0 24px;
  background: var(--surface);
}

.timeline-editorial-heading-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.timeline-editorial-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.timeline-editorial-heading h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.7rem, 5.4vw, 4.55rem);
  line-height: .98;
  letter-spacing: -.075em;
}

.timeline-editorial-heading p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

/* Category Tabs Navigation */
.timeline-category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.timeline-category-tabs::-webkit-scrollbar {
  height: 4px;
}

.timeline-category-tabs::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.timeline-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
  cursor: pointer;
}

.timeline-category-tab:hover {
  color: var(--ink);
  border-color: var(--teal);
  background: var(--timeline-soft-teal);
}

.timeline-category-tab.active {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(17, 122, 122, 0.28);
}

html[data-theme="dark"] .timeline-category-tab.active {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.timeline-editorial-heading-note {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  margin-bottom: 6px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-editorial-heading-note::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(17, 122, 122, .12);
  content: "";
}

.timeline-editorial-feed {
  padding: 36px 0 88px;
}

.timeline-editorial-grid {
  min-width: 0;
}

.timeline-editorial-search-meta {
  margin: 0 0 18px;
  font-size: .92rem;
}

.timeline-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.timeline-section-label h2 {
  margin: 0;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.timeline-section-label span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-align: right;
}

.timeline-top-mosaic,
.timeline-lower-mosaic {
  display: grid;
  min-width: 0;
  gap: 14px;
  grid-auto-flow: dense;
  grid-auto-rows: auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timeline-lower-label {
  margin-top: 38px;
}

.timeline-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--timeline-radius-lg);
  background: var(--surface);
  box-shadow: var(--timeline-story-shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.timeline-story:hover {
  border-color: var(--timeline-border-hover);
  box-shadow: var(--timeline-story-shadow-hover);
  transform: translateY(-2px);
}

.timeline-story:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 74, 47, .14), var(--timeline-story-shadow);
}

/* ── Strict Card Size Ratios: 2x2 Only ── */
.timeline-story--ratio-2x2,
.timeline-story--support,
.timeline-story--compact,
.timeline-story--ratio-3x2,
.timeline-story--feature,
.timeline-story--ratio-2x3,
.timeline-story--ratio-3x3,
.timeline-story--lead {
  grid-column: span 2;
  grid-row: span 2;
}

.story-media {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--timeline-media-fallback);
}

.story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.timeline-story:hover .story-media img {
  transform: scale(1.035);
}

.story-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(16, 35, 56, .38) 100%);
  content: "";
}

.story-media--fallback {
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--timeline-media-fallback);
}

.story-media--fallback::before {
  display: grid;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(17, 122, 122, .26);
  border-radius: 50%;
  content: "SC";
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  transform: translate(-50%, -50%);
}

.story-media--fallback::after {
  display: none;
}

.story-media-fallback-text {
  display: none;
}

.story-media--fallback .story-media-fallback-text {
  display: block;
  position: absolute;
  top: calc(50% + 42px);
  left: 50%;
  z-index: 1;
  color: var(--teal);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.story-media-label {
  display: none !important;
}

.story-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px 6px;
}

.story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.story-meta > span {
  min-width: 0;
}

.story-meta-source {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--timeline-soft-teal);
  color: #2d5a3d;
  font-size: .62rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

html[data-theme="dark"] .story-meta-source {
  color: #aee6df;
}

.story-meta-category {
  color: var(--teal);
}

.story-meta-date {
  white-space: nowrap;
}

.story-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-story--lead .story-title {
  max-width: 720px;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.15;
  -webkit-line-clamp: 2;
}

.timeline-story--feature .story-title {
  font-size: 1rem;
}

.timeline-story--compact .story-title {
  font-size: .8rem;
}

.story-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-story--lead .story-summary {
  max-width: 620px;
  font-size: .96rem;
}

.timeline-story--compact .story-summary {
  font-size: .82rem;
  -webkit-line-clamp: 3;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  padding: 6px 10px 8px;
  background: transparent;
  border-top: 1px solid var(--line);
}

.story-date {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.story-link:hover {
  background: transparent;
  color: var(--accent);
}

.story-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.story-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.timeline-editorial-empty {
  display: grid;
  justify-items: center;
  max-width: 680px;
  margin: 18px auto 0;
  padding: 52px 28px;
  border: 1px solid var(--line);
  border-radius: var(--timeline-radius-lg);
  background: var(--surface);
  box-shadow: var(--timeline-story-shadow);
  text-align: center;
}

.timeline-editorial-empty-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(17, 122, 122, .26);
  border-radius: 50%;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.timeline-editorial-empty h2 {
  margin: 20px 0 8px;
  font-size: 1.5rem;
  letter-spacing: -.04em;
}

.timeline-editorial-empty p {
  max-width: 420px;
  margin: 0;
}

@media (max-width: 1080px) {
  .timeline-editorial-heading-grid {
    align-items: flex-start;
  }

  .timeline-editorial-heading-note {
    margin-top: 36px;
  }

  .timeline-top-mosaic,
  .timeline-lower-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 12px;
  }

  .timeline-story--ratio-2x2,
  .timeline-story--support,
  .timeline-story--compact,
  .timeline-story--ratio-3x2,
  .timeline-story--feature,
  .timeline-story--ratio-2x3,
  .timeline-story--ratio-3x3,
  .timeline-story--lead { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 680px) {
  .timeline-editorial-heading {
    padding: 46px 0 32px;
  }

  .timeline-editorial-heading-grid {
    display: block;
  }

  .timeline-editorial-heading h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .timeline-editorial-heading p {
    font-size: .94rem;
  }

  .timeline-editorial-heading-note {
    display: inline-flex;
    margin: 22px 0 0;
  }

  .timeline-editorial-feed {
    padding-top: 24px;
  }

  .timeline-section-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .timeline-section-label span {
    text-align: left;
  }

  .timeline-top-mosaic,
  .timeline-lower-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .timeline-story--lead,
  .timeline-story--feature,
  .timeline-story--support,
  .timeline-story--compact,
  .timeline-story--ratio-2x2,
  .timeline-story--ratio-3x2,
  .timeline-story--ratio-2x3,
  .timeline-story--ratio-3x3 {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 0;
  }

  .story-footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .story-link {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
}

/* ── Load More News button ── */
.timeline-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 0 20px;
  grid-column: 1 / -1;
}

.timeline-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 22px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.timeline-load-more-btn:hover {
  color: var(--ink);
  border-color: var(--teal);
  background: rgba(17, 122, 122, .06);
  transform: translateY(-1px);
}

.timeline-load-more-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.timeline-load-more-count {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .timeline-story,
  .story-media img {
    transition: none;
  }

  .timeline-story:hover {
    transform: none;
  }
}

/* Story-card inner typography and details */
.timeline-story--lead .story-body,
.timeline-story--support .story-body,
.timeline-story--feature .story-body,
.timeline-story--compact .story-body {
  padding: 14px 16px 16px;
}

.timeline-story--lead .story-title,
.timeline-story--feature .story-title,
.timeline-story--compact .story-title {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.2;
}

.timeline-story--lead .story-summary {
  max-width: none;
  font-size: .86rem;
}

.story-title,
.story-summary {
  display: block;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  margin-top: auto;
}

.story-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.story-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.story-link:hover {
  background: rgba(184, 74, 47, 0.1);
  color: var(--accent);
}

.timeline-card-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.timeline-story .timeline-card-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.timeline-story .timeline-card-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 8px;
}

.timeline-card-panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.timeline-story .timeline-card-panel h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.timeline-story .timeline-card-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.timeline-story .timeline-card-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.timeline-card-content-body {
  max-width: 900px;
  padding: 0 20px 24px;
  color: var(--ink);
  font-size: .96rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.timeline-story .timeline-card-empty {
  margin: 0;
  padding: 0 20px 24px;
  color: var(--muted);
  font-size: .9rem;
}

html[data-theme="dark"] .timeline-story .timeline-card-panel {
  background: var(--surface);
}

/* Card ratio Sizing & Inner Elements */
.timeline-story--ratio-2x2 .story-media,
.timeline-story--support .story-media,
/* Card ratio Sizing & Inner Elements (Uniform 2x2) */
.timeline-story--ratio-2x2 .story-media,
.timeline-story--support .story-media,
.timeline-story--compact .story-media,
.timeline-story--ratio-3x2 .story-media,
.timeline-story--feature .story-media,
.timeline-story--ratio-2x3 .story-media,
.timeline-story--ratio-3x3 .story-media,
.timeline-story--lead .story-media {
  flex: 0 0 auto;
  height: 110px;
}

.timeline-story .story-media--fallback {
  width: 100%;
  height: 75px !important;
}

.story-card-trigger {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  min-width: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.story-card-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: calc(var(--timeline-radius-lg) - 2px);
}

.timeline-card-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.timeline-story-dialog {
  position: fixed;
  inset: 0;
  width: var(--timeline-dialog-width);
  max-width: calc(100vw - 32px);
  max-height: var(--timeline-dialog-max-height);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--timeline-radius-lg);
  background: var(--surface);
  color: var(--ink) !important;
  box-shadow: var(--timeline-dialog-shadow);
  overflow: hidden;
  text-shadow: none;
}

.timeline-story-dialog::backdrop {
  background: rgba(12, 23, 35, 0.65);
  backdrop-filter: blur(4px);
}

.timeline-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
}

.timeline-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  background: var(--surface);
}

.timeline-dialog-heading {
  min-width: 0;
}

.timeline-dialog-meta {
  margin: 0 0 10px;
  color: var(--muted) !important;
}

.timeline-dialog-head h2,
.timeline-story-dialog h1,
.timeline-story-dialog h2,
.timeline-story-dialog h3,
.timeline-story-dialog h4 {
  margin: 0;
  color: var(--ink) !important;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.timeline-story-dialog .timeline-card-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink) !important;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.timeline-story-dialog .timeline-card-close:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.timeline-dialog-media {
  display: block;
  width: 100%;
  height: var(--timeline-dialog-media-height);
  object-fit: cover;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-dialog-body {
  padding: 22px 24px 26px;
  color: var(--ink) !important;
  font-size: .98rem;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
}

.timeline-dialog-body p,
.timeline-dialog-body div,
.timeline-dialog-body span,
.timeline-dialog-body li,
.timeline-dialog-body td,
.timeline-dialog-body th,
.timeline-dialog-body blockquote,
.timeline-dialog-body section,
.timeline-dialog-body article {
  color: var(--ink) !important;
}

.timeline-dialog-body a {
  color: var(--teal) !important;
  text-decoration: underline;
}

.timeline-dialog-body a:hover {
  color: var(--accent) !important;
}

.timeline-story-dialog .timeline-card-empty {
  margin: 0;
  padding: 22px 24px 26px;
  color: var(--muted) !important;
  font-size: .92rem;
  background: var(--surface);
}

.timeline-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink) !important;
}

.timeline-dialog-footer .story-date {
  color: var(--muted) !important;
  font-size: .85rem;
}

.timeline-dialog-footer .story-link {
  color: var(--ink) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.timeline-dialog-footer .story-link:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

@media (max-width: 680px) {
  .timeline-top-mosaic,
  .timeline-lower-mosaic {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
  }

  .timeline-story-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  .timeline-dialog-head {
    padding: 18px 16px 14px;
  }

  .timeline-dialog-media {
    height: 160px;
  }

  .timeline-dialog-body,
  .timeline-story-dialog .timeline-card-empty {
    padding: 18px 16px 22px;
  }

  .timeline-dialog-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 16px 16px;
  }

  .timeline-dialog-footer .story-link {
    width: 32px;
  }

  .story-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .story-footer-actions {
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  .story-link {
    flex: 0 0 auto;
    width: 32px;
  }
}
