/* Styles used only by timeline_edit_v2.html */

body.timeline_page.timeline_edit_page {
  background-color: #e7e8e8;
}

.timeline_v2_stage {
  --timeline-view-scale: 1;
  position: relative;
  width: 100%;
  height: calc(100dvh - 73px);
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.timeline_v2_stage.is_dragging {
  cursor: grabbing;
}

.timeline_v2_axis {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 30;
}

.timeline_v2_line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #bebfbf;
}

.timeline_v2_labels {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
}

.timeline_v2_events {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.timeline_v2_event_item {
  position: absolute;
  width: 250px;
}

.timeline_v2_separator_item {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timeline_v2_separator_connector {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  transform: translateX(-50%);
  border-left-width: 2px;
  border-left-style: dashed;
  border-left-color: var(--separator-line-color, #fff);
  z-index: 0;
}

.timeline_v2_separator_connector.is-dashed {
  border-left-style: dashed;
}

.timeline_v2_separator_connector.is-solid {
  border-left-style: solid;
}

.timeline_v2_separator_connector.is-highlighted {
  border-left-width: 4px;
  border-left-style: dashed;
  border-left-color: #000;
  z-index: 5;
}

.timeline_v2_separator_card {
  appearance: none;
  position: absolute;
  transform: translateX(-50%);
  min-width: 0;
  max-width: min(260px, calc(100vw - 40px));
  padding: calc(10px * var(--timeline-view-scale)) calc(16px * var(--timeline-view-scale));
  border: 2px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #2d3134;
  font-size: calc(16px * var(--timeline-view-scale));
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  z-index: 4;
  cursor: pointer;
}

.timeline_v2_separator_card.is-highlighted {
  border-color: #000 !important;
  border-width: 4px;
  border-style: dashed;
  z-index: 7;
}

.timeline_v2_event_connector {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  background: #fff;
  z-index: 1;
}

.timeline_v2_event_connector.is-highlighted {
  width: 0;
  background: transparent !important;
  border-left: 4px dashed #000;
  transform: translateX(-50%);
  z-index: 5;
}

.timeline_v2_event_card {
  position: absolute;
  left: -9px;
  width: 250px;
  min-height: calc(72px * var(--timeline-view-scale));
  height: calc(81px * var(--timeline-view-scale));
  padding: calc(6px * var(--timeline-view-scale));
  border-radius: 8px;
  background: #fff;
  border: 2px solid #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: calc(4px * var(--timeline-view-scale));
  pointer-events: auto;
  z-index: 2;
  cursor: pointer;
}

.timeline_v2_event_card.is-highlighted {
  border-color: #000 !important;
  border-width: 4px;
  border-style: dashed;
  z-index: 7;
}

.timeline_v2_event_card_range {
  min-height: calc(40px * var(--timeline-view-scale));
  height: calc(40px * var(--timeline-view-scale));
  padding: calc(5px * var(--timeline-view-scale));
  border-radius: 8px;
  gap: calc(8px * var(--timeline-view-scale));
  overflow: hidden;
}

.timeline_v2_event_range_head {
  position: absolute;
  top: 50%;
  left: calc(8px * var(--timeline-view-scale));
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: calc(8px * var(--timeline-view-scale));
  min-width: 0;
}

.timeline_v2_event_card_range .timeline_v2_event_image {
  width: calc(28px * var(--timeline-view-scale));
  height: calc(28px * var(--timeline-view-scale));
  aspect-ratio: auto;
  border-radius: 4px;
}

.timeline_v2_event_card_range .timeline_v2_event_image_video {
  width: calc(28px * var(--timeline-view-scale));
  height: calc(28px * var(--timeline-view-scale));
  aspect-ratio: 1 / 1;
}

.timeline_v2_event_image {
  width: calc(66px * var(--timeline-view-scale));
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  background: #6f879b;
  object-fit: cover;
  flex: 0 0 auto;
}

.timeline_v2_event_image_video {
  aspect-ratio: 1 / 1;
}

.timeline_v2_event_media {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: calc(66px * var(--timeline-view-scale));
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
}

.timeline_v2_event_card_range .timeline_v2_event_media {
  width: calc(28px * var(--timeline-view-scale));
  height: calc(28px * var(--timeline-view-scale));
  border-radius: 4px;
}

.timeline_v2_event_media .timeline_v2_event_image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.timeline_v2_event_play_badge {
  position: absolute;
  top: calc(4px * var(--timeline-view-scale));
  right: calc(4px * var(--timeline-view-scale));
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: calc(16px * var(--timeline-view-scale));
  height: calc(16px * var(--timeline-view-scale));
  border-radius: 50%;
  background-color: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: calc(8px * var(--timeline-view-scale));
  pointer-events: none;
}

.timeline_v2_event_play_badge i {
  margin-left: 2px;
}

.timeline_v2_event_card_range .timeline_v2_event_play_badge {
  top: calc(2px * var(--timeline-view-scale));
  right: calc(2px * var(--timeline-view-scale));
  width: calc(12px * var(--timeline-view-scale));
  height: calc(12px * var(--timeline-view-scale));
  font-size: calc(6px * var(--timeline-view-scale));
}

.timeline_v2_event_text {
  min-width: 0;
  padding-left: calc(6px * var(--timeline-view-scale));
}

.timeline_v2_event_card_range .timeline_v2_event_text {
  display: flex;
  align-items: baseline;
  gap: calc(8px * var(--timeline-view-scale));
  padding-left: 0;
  min-width: 0;
}

.timeline_v2_event_date,
.timeline_v2_event_title {
  margin: 0;
  line-height: 1.25;
  color: #2d3134;
}

.timeline_v2_event_date {
  font-size: calc(14px * var(--timeline-view-scale));
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.timeline_v2_event_title {
  margin-top: 0px;
  font-size: calc(18px * var(--timeline-view-scale));
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline_v2_event_range_date {
  flex: 0 0 auto;
  margin: 0;
  font-size: calc(14px * var(--timeline-view-scale));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: #2d3134;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline_v2_event_range_title {
  min-width: 0;
  margin: 0;
  font-size: calc(15px * var(--timeline-view-scale));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  color: #2d3134;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline_v2_markers {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 10px;
  pointer-events: none;
}

.timeline_v2_marker {
  position: absolute;
  transform: translateX(-50%);
  width: 1px;
  height: 8px;
  background: #bebfbf;
}

.timeline_v2_marker_year {
  height: 10px;
  background: #9d9e9e;
}

.timeline_v2_label {
  position: absolute;
  transform: translateX(-50%);
  color: #bebfbf;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;

}

.timeline_v2_label_year {
  font-size: 13px;
  color: #9d9e9e;
  padding-top: 0px;
}

.timeline_v2_edge_jump {
  --timeline-edge-jump-x: 50%;
  --timeline-edge-jump-y: 50%;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 55;
  display: block;
  width: 5%;
  min-width: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #173a5b;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease;
}

.timeline_v2_edge_jump.is_start {
  left: 0;
  bottom: 0;
}

.timeline_v2_edge_jump.is_end {
  right: 0;
  bottom: 0;
}

.timeline_v2_edge_jump i {
  position: absolute;
  left: var(--timeline-edge-jump-x);
  top: var(--timeline-edge-jump-y);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ffffff;
  font-size: 20px;
  box-shadow: 0 5px 10px rgba(7, 20, 33, 0.1);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: transform 160ms ease, background-color 160ms ease;
}

.timeline_v2_edge_jump:hover,
.timeline_v2_edge_jump:focus-visible {
  opacity: 1;
}

.timeline_v2_edge_jump:hover i,
.timeline_v2_edge_jump:focus-visible i {
  transform: translate(-50%, -50%) scale(1);
}

.timeline_v2_edge_jump:focus-visible {
  outline: 2px solid #7aaef2;
  outline-offset: -6px;
}

.timeline_v2_controls {
  position: fixed;
  top: 50%;
  left: 16px;
  right: auto;
  transform: translateY(-50%);
  z-index: 60;
  display: grid;
  gap: 10px;
}

.btn_zoom {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background-color: #ffffff;
  color: #173a5b;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(7, 20, 33, 0.1);
}

.btn_zoom:hover {
  background-color: #f2f8ff;
}

.btn_zoom i {
  pointer-events: none;
}

.btn_zoom:focus-visible {
  outline: 2px solid #7aaef2;
  outline-offset: 2px;
}

.timeline_v2_screen_zoom {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 148px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 5px 10px rgba(7, 20, 33, 0.1);
  overflow: hidden;
}

.timeline_v2_screen_zoom_range {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  margin: 0;
  accent-color: #418fde;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
}

.timeline_v2_screen_zoom_range:focus-visible {
  outline: 2px solid #7aaef2;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .timeline_v2_stage {
    height: calc(100dvh - 80px);
    margin-top: 80px;
  }

  .timeline_v2_controls {
    top: 50%;
    left: 8px;
    right: auto;
  }

  .timeline_v2_event_item,
  .timeline_v2_event_card {
    width: 210px;
  }

  .timeline_v2_event_date {
  }

  .timeline_v2_event_title {
    
  }

  .timeline_v2_separator_card {
    font-size: 15px;
  }
}
