/* NUAM Curators / Chronicle entity timeline / build 1488 */

.events-timeline {
  --events-timeline-stage-height: 292px;
  --events-timeline-track-height: 280px;
  --events-timeline-radius: var(--nuam-radius-xl);
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--border-subtle);
  border-radius: var(--events-timeline-radius);
  background: var(--surface-panel);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  box-shadow: 0 10px 24px var(--shadow-color-soft);
}

.events-timeline.is-collapsed .events-timeline-head {
  border-bottom-color: transparent;
}

.events-timeline.is-collapsed .events-timeline-meta,
.events-timeline.is-collapsed .events-timeline-nav-btn:not(.events-timeline-collapse-btn) {
  display: none;
}

.events-timeline.is-collapsed .events-timeline-stage {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.events-timeline-collapse-anchor {
  flex: 0 0 auto;
}

.events-timeline-collapse-anchor > .events-timeline-collapse-tooltip {
  left: auto;
  right: 0;
  z-index: 30;
}

.events-timeline[hidden] {
  display: none !important;
}

.events-timeline-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 8px 12px;
  border-bottom: 1px solid var(--border-thin-divider);
}

.events-timeline-entity,
.events-timeline-head-right,
.events-timeline-nav {
  display: flex;
  align-items: center;
}

.events-timeline-entity {
  min-width: 0;
  gap: 9px;
}

.events-timeline-entity-media {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--nuam-radius-md);
  background: var(--surface-image);
  color: var(--accent-primary);
}

.events-timeline-entity-media.is-round {
  border-radius: var(--nuam-radius-circle);
}

.events-timeline-entity-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.events-timeline-entity-image[hidden],
.events-timeline-entity-icon[hidden],
.events-timeline-entity-media.has-image .events-timeline-entity-icon {
  display: none !important;
}

.events-timeline-entity-icon {
  font-size: 17px;
  line-height: 1;
}

.events-timeline-entity-copy {
  min-width: 0;
}

.events-timeline-kicker {
  color: var(--accent-secondary);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.events-timeline-entity-name {
  max-width: min(460px, 42vw);
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-timeline-head-right {
  min-width: 0;
  justify-content: flex-end;
  gap: 10px;
}

.events-timeline-meta {
  max-width: 440px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-timeline-nav {
  flex: 0 0 auto;
  gap: 5px;
}

.events-timeline-nav-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--nuam-radius-md);
  background: var(--control-bg);
  color: var(--text-secondary-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.events-timeline-nav-btn:hover:not(:disabled),
.events-timeline-nav-btn:focus-visible:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--accent-primary-border-medium);
  background: var(--accent-primary-bg-faint);
  outline: none;
}

.events-timeline-nav-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.events-timeline-nav-btn:disabled {
  color: var(--text-disabled);
  cursor: default;
  opacity: 0.52;
}

.events-timeline-stage {
  position: relative;
  min-width: 0;
  height: var(--events-timeline-stage-height);
  overflow: hidden;
  border-radius: var(--nuam-radius-none) var(--nuam-radius-none) var(--events-timeline-radius) var(--events-timeline-radius);
  opacity: 1;
  transition: height 240ms ease, opacity 180ms ease;
}

.events-timeline-viewport {
  width: 100%;
  height: calc(100% - 12px);
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: inherit;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  scroll-padding-inline: 0;
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
  outline: none;
}

.events-timeline-viewport:focus-visible {
  box-shadow: inset 0 0 0 1px var(--state-focus-ring);
}

.events-timeline-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.events-timeline-scrollbar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  overflow: hidden;
  border-bottom-right-radius: var(--events-timeline-radius);
  border-bottom-left-radius: var(--events-timeline-radius);
  background: var(--scrollbar-track);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 1;
  transition: opacity 0.14s ease;
}

.events-timeline-scrollbar-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
  background: var(--scrollbar-track);
}

.events-timeline-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  min-width: 36px;
  height: 100%;
  box-sizing: border-box;
  border: 2px solid var(--scrollbar-border);
  border-top-left-radius: var(--nuam-radius-none);
  border-top-right-radius: var(--nuam-radius-none);
  border-bottom-right-radius: var(--events-timeline-radius);
  border-bottom-left-radius: var(--events-timeline-radius);
  background-color: var(--scrollbar-thumb);
  background-clip: padding-box;
  cursor: grab;
  transform: translate3d(0, 0, 0);
  will-change: transform, width;
}

.events-timeline-scrollbar.is-dragging .events-timeline-scrollbar-thumb {
  cursor: grabbing;
}

.events-timeline-stage:not(.has-horizontal-overflow) .events-timeline-scrollbar {
  opacity: 0;
  pointer-events: none;
}

.events-timeline.is-loading .events-timeline-scrollbar,
.events-timeline.is-empty .events-timeline-scrollbar,
.events-timeline.is-invalid .events-timeline-scrollbar {
  opacity: 0;
  pointer-events: none;
}

.events-timeline-track {
  --events-timeline-axis-y: 139px;
  position: relative;
  width: max-content;
  min-width: 100%;
  height: var(--events-timeline-track-height);
  display: flex;
  align-items: stretch;
  padding: 0;
  box-sizing: border-box;
}

.events-timeline-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: var(--events-timeline-axis-y);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary-border-bright), var(--accent-primary-border-muted));
  box-shadow: 0 0 16px rgba(var(--rgb-accent-primary), 0.16);
}

.events-timeline-day {
  position: relative;
  z-index: 1;
  width: 218px;
  height: 100%;
  flex: 0 0 218px;
}

.events-timeline-day::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(var(--events-timeline-axis-y) + 1px);
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface-panel-opaque);
  border-radius: var(--nuam-radius-circle);
  background: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-bg), 0 0 16px rgba(var(--rgb-accent-primary), 0.30);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.events-timeline-day::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--accent-primary-border-medium);
}

.events-timeline-day.is-top::after {
  top: 131px;
  height: 9px;
}

.events-timeline-day.is-bottom::after {
  top: 140px;
  height: 9px;
}

.events-timeline-card {
  position: absolute;
  left: 10px;
  width: 198px;
  height: 124px;
  padding: 7px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--nuam-radius-lg);
  background: var(--surface-hover-card);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  box-shadow: 0 8px 20px var(--shadow-color-subtle);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.events-timeline-day.is-top .events-timeline-card {
  top: 7px;
}

.events-timeline-day.is-bottom .events-timeline-card {
  top: 149px;
}

.events-timeline-card:hover,
.events-timeline-card:focus-within {
  border-color: var(--accent-primary-border-medium);
  box-shadow: 0 12px 26px var(--shadow-color-lifted);
}

.events-timeline-day-open,
.events-timeline-group {
  width: 100%;
  min-width: 0;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.events-timeline-group {
  flex: 0 0 18px;
}

.events-timeline-day-open {
  height: 23px;
  padding: 0 3px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border-thin-divider);
  background: transparent;
  color: var(--text-primary);
}

.events-timeline-date {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-timeline-day-total {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: var(--nuam-radius-pill);
  background: var(--accent-primary-bg);
  color: var(--text-secondary-bright);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 650;
}

.events-timeline-groups-shell {
  position: relative;
  height: 75px;
  margin-top: 3px;
  min-width: 0;
}

.events-timeline-groups {
  width: 100%;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  overscroll-behavior-y: contain;
}

.events-timeline-groups::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.events-timeline-groups-shell.has-scrollbar .events-timeline-groups {
  padding-right: 10px;
}

.events-timeline-groups-scrollbar {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  display: none;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-app);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.events-timeline-groups-shell.has-scrollbar .events-timeline-groups-scrollbar {
  display: block;
}

.events-timeline-groups-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 20px;
  box-sizing: border-box;
  border: 2px solid var(--surface-app);
  border-radius: 10px;
  background: var(--surface-base);
  background-clip: padding-box;
  cursor: grab;
  transform: translate3d(0, 0, 0);
  will-change: transform, height;
}

.events-timeline-groups-scrollbar.is-dragging .events-timeline-groups-scrollbar-thumb {
  cursor: grabbing;
}

.events-timeline-group {
  height: 18px;
  padding: 0 3px;
  border-radius: var(--nuam-radius-xs);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--text-secondary-bright);
  font-size: 10px;
  line-height: 1;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.events-timeline-group:hover,
.events-timeline-group:focus-visible {
  color: var(--text-primary);
  background: var(--accent-primary-bg-faint);
  outline: none;
}

.events-timeline-group-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 11px;
}

.events-timeline-group-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-timeline-group-value {
  flex: 0 0 auto;
  color: var(--text-primary);
  font-weight: 750;
  white-space: nowrap;
}

.events-timeline-group-value.is-positive {
  color: var(--status-delta-positive);
}

.events-timeline-group-value.is-negative {
  color: var(--status-delta-negative);
}


.events-timeline-gap {
  position: relative;
  z-index: 2;
  width: 188px;
  height: 100%;
  flex: 0 0 188px;
}

.events-timeline-gap-card {
  position: absolute;
  left: 8px;
  top: calc(var(--events-timeline-axis-y) + 1px);
  width: calc(100% - 16px);
  min-height: 46px;
  transform: translateY(-50%);
  padding: 7px 10px;
  box-sizing: border-box;
  border: 1px solid var(--border-subtle);
  border-radius: var(--nuam-radius-lg);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 7px,
      rgba(var(--rgb-surface-app), 0.34) 7px,
      rgba(var(--rgb-surface-app), 0.34) 9px,
      transparent 9px,
      transparent 14px
    ),
    var(--surface-panel-opaque);
  box-shadow: 0 6px 16px var(--shadow-color-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.events-timeline-gap-label {
  color: var(--text-secondary-bright);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}

.events-timeline-gap-period,
.events-timeline-gap-count {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-timeline-gap-count {
  color: var(--text-secondary);
  font-weight: 650;
}

.events-timeline-state {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(var(--rgb-surface-app), 0.64);
  color: var(--text-secondary-bright);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.events-timeline.is-loading .events-timeline-state,
.events-timeline.is-empty .events-timeline-state,
.events-timeline.is-invalid .events-timeline-state {
  display: flex;
}

.events-timeline.is-loading .events-timeline-viewport,
.events-timeline.is-empty .events-timeline-viewport,
.events-timeline.is-invalid .events-timeline-viewport {
  opacity: 0.18;
  pointer-events: none;
}

.events-timeline-tooltip {
  position: fixed;
  z-index: 5200;
  width: min(370px, calc(100vw - 20px));
  max-height: min(430px, calc(100dvh - 20px));
  overflow: auto;
  padding: 11px;
  box-sizing: border-box;
  border: 1px solid var(--accent-primary-border-faint);
  border-radius: var(--nuam-radius-xl);
  background: var(--surface-floating-panel);
  background-image: var(--grain-bg);
  background-size: 20px 20px;
  background-blend-mode: overlay;
  box-shadow: 0 18px 48px var(--shadow-color-strong);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px) scale(0.985);
  transition: opacity 0.14s ease, visibility 0.14s ease, transform 0.14s ease;
  scrollbar-width: auto;
  scrollbar-color: var(--surface-base) var(--surface-app);
}

.events-timeline-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.events-timeline-tooltip::-webkit-scrollbar {
  width: 10px;
}

.events-timeline-tooltip::-webkit-scrollbar-track {
  background: var(--surface-app);
  border-radius: var(--nuam-radius-pill);
}

.events-timeline-tooltip::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface-app);
  border-radius: var(--nuam-radius-pill);
  background: var(--surface-base);
}

.events-timeline-tooltip-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.events-timeline-tooltip-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--nuam-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary-bg-soft);
  color: var(--accent-primary);
  font-size: 13px;
}

.events-timeline-tooltip-title {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-timeline-tooltip-date {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.events-timeline-tooltip-summary {
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid var(--border-thin-divider);
  border-radius: var(--nuam-radius-md);
  background: var(--control-bg);
  color: var(--text-secondary-bright);
  font-size: 11px;
  line-height: 1.35;
}

.events-timeline-tooltip-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
}

.events-timeline-tooltip-item {
  min-width: 0;
  padding: 7px 8px;
  border-radius: var(--nuam-radius-md);
  background: var(--surface-panel-soft);
}

.events-timeline-tooltip-item-main,
.events-timeline-tooltip-item-sub {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.events-timeline-tooltip-item-main {
  color: var(--text-primary);
  font-size: 11px;
  line-height: 1.3;
}

.events-timeline-tooltip-item-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.3;
}

.events-timeline-tooltip-item-main .hover-marquee-inner,
.events-timeline-tooltip-item-sub .hover-marquee-inner {
  max-width: none;
}

.events-timeline-tooltip-item-main.is-overflow,
.events-timeline-tooltip-item-sub.is-overflow {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to right, #000 calc(100% - 30px), rgba(0, 0, 0, 0));
}

.events-timeline-tooltip-item:hover .events-timeline-tooltip-item-main.is-overflow .hover-marquee-inner,
.events-timeline-tooltip-item:focus-within .events-timeline-tooltip-item-main.is-overflow .hover-marquee-inner,
.events-timeline-tooltip-item:hover .events-timeline-tooltip-item-sub.is-overflow .hover-marquee-inner,
.events-timeline-tooltip-item:focus-within .events-timeline-tooltip-item-sub.is-overflow .hover-marquee-inner {
  animation: hover-marquee-x var(--marquee-duration, 6s) ease-in-out infinite alternate;
}

.events-timeline-tooltip-bridge {
  position: fixed;
  z-index: 5199;
  display: none;
  background: transparent;
  pointer-events: auto;
}

.events-timeline-tooltip-bridge.is-visible {
  display: block;
}

.events-timeline-tooltip-rest {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.3;
}

.events-timeline-tooltip-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.events-timeline-tooltip-open,
.events-timeline-tooltip-close {
  min-height: 34px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--nuam-radius-md);
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.events-timeline-tooltip-open {
  flex: 1 1 auto;
  padding: 0 10px;
  background: var(--accent-primary-bg-soft);
  border-color: var(--accent-primary-border-medium);
  color: var(--text-primary);
}

.events-timeline-tooltip-close {
  width: 34px;
  flex: 0 0 34px;
  padding: 0;
  background: var(--control-bg);
  color: var(--text-secondary-bright);
}

.events-timeline-tooltip-open:hover,
.events-timeline-tooltip-open:focus-visible,
.events-timeline-tooltip-close:hover,
.events-timeline-tooltip-close:focus-visible {
  border-color: var(--accent-primary-border-strong);
  background-color: var(--state-hover-accent-bg);
  outline: none;
}

@media (max-width: 760px) {
  html.is-mobile-events-timeline-detail-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 11990;
    background: rgba(0, 0, 0, 0.68);
    pointer-events: auto;
  }

  html.is-mobile-events-timeline-detail-open .events-timeline.is-mobile-detail-open {
    z-index: 11995;
  }

  .events-head { order: 0; }
  .events-timeline { order: 1; }
  .events-toolbar { order: 2; }
  .events-results-scroll { order: 3; }

  .events-timeline {
    --events-timeline-stage-height: 274px;
    --events-timeline-track-height: 262px;
    --events-timeline-radius: var(--nuam-radius-lg);
  }

  .events-timeline-stage {
    border-radius: var(--nuam-radius-none) var(--nuam-radius-none) var(--events-timeline-radius) var(--events-timeline-radius);
    transition: none;
  }

  .events-timeline-head {
    min-height: 50px;
    gap: 8px;
    padding: 7px 8px;
  }

  .events-timeline-entity-media {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .events-timeline-entity-name {
    max-width: calc(100vw - 242px);
    font-size: 12px;
  }

  .events-timeline.is-collapsed .events-timeline-entity-name {
    max-width: calc(100vw - 118px);
  }

  .events-timeline-kicker {
    font-size: 9px;
  }

  .events-timeline-meta {
    display: none;
  }

  .events-timeline-nav-btn {
    width: 31px;
    height: 31px;
  }

  #events-timeline-newer,
  #events-timeline-older {
    display: none !important;
  }

  .events-timeline-track {
    --events-timeline-axis-y: 130px;
    height: var(--events-timeline-track-height);
    padding-right: 0;
    padding-left: 0;
  }

  .events-timeline-day {
    width: 194px;
    height: 100%;
    flex-basis: 194px;
  }

  .events-timeline-day.is-top::after {
    top: 123px;
    height: 8px;
  }

  .events-timeline-day.is-bottom::after {
    top: 131px;
    height: 8px;
  }

  .events-timeline-card {
    left: 7px;
    width: 180px;
    height: 116px;
    padding: 6px;
  }

  .events-timeline-day.is-top .events-timeline-card {
    top: 7px;
  }

  .events-timeline-day.is-bottom .events-timeline-card {
    top: 139px;
  }

  .events-timeline-day-open {
    height: 21px;
  }

  .events-timeline-group {
    height: 17px;
    flex-basis: 17px;
    font-size: 9.5px;
  }

  .events-timeline-groups-shell {
    height: 71px;
    margin-top: 3px;
  }

  .events-timeline-gap {
    width: 164px;
    height: 100%;
    flex-basis: 164px;
  }

  .events-timeline-gap-card {
    left: 6px;
    width: calc(100% - 12px);
    min-height: 44px;
    padding: 6px 8px;
  }

  .events-timeline-gap-label {
    font-size: 9.5px;
  }

  .events-timeline-gap-period,
  .events-timeline-gap-count {
    font-size: 8.5px;
  }

  .events-timeline-tooltip {
    z-index: 12000;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(62dvh, 430px);
    border-radius: var(--nuam-radius-2xl);
    transform: translateY(12px);
  }

  .events-timeline-tooltip.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .events-timeline-nav-btn,
  .events-timeline-card,
  .events-timeline-group,
  .events-timeline-tooltip {
    transition: none !important;
  }

  .events-timeline-viewport {
    scroll-behavior: auto !important;
  }
}
