.time-timeline {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid #cbdde5;
  border-radius: 20px;
  background: #fff;
  color: var(--ink, #244d66);
}
.timeline-title { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.timeline-description { margin: 9px 0 14px; font-size: .88rem; line-height: 1.5; }
.timeline-scale-guide { margin: 0 0 14px; font-size: .83rem; line-height: 1.45; }
.timeline-scale-guide summary { cursor: pointer; font-weight: 750; }
.timeline-scale-guide ul { margin: 9px 0 0; padding-left: 20px; }
.timeline-scale-guide li + li { margin-top: 5px; }
.timeline-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-color: #89afbd #edf4f7;
  scrollbar-width: auto;
  border-radius: 12px;
  background: #f7fafb;
  -webkit-overflow-scrolling: touch;
}
.timeline-scroll:focus-visible { outline: 3px solid var(--yellow, #f6ca72); outline-offset: 3px; }
.timeline-canvas { position: relative; padding-top: 14px; padding-bottom: 8px; }
.timeline-plot { min-width: 0; isolation: isolate; }
.timeline-axis { height: 3px; background: var(--ink, #244d66); z-index: 1; }
.timeline-axis::after {
  content: '';
  position: absolute;
  right: -10px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--ink, #244d66);
}
.timeline-event {
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #abc7d4;
  border-radius: 11px;
  background: var(--violet, #d9eaf0);
  text-align: center;
  z-index: 3;
}
.timeline-event-label { display: block; font-size: .87rem; font-weight: 800; line-height: 1.25; }
.timeline-event-date { display: block; margin-top: 5px; font-size: .8rem; line-height: 1.25; }
.timeline-event-connector { width: 1px; background: #8dadba; transform: translateX(-50%); z-index: 0; }
.timeline-event-marker {
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 3px solid var(--ink, #244d66);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.timeline-event-duration {
  height: 10px;
  min-width: 1px;
  border-radius: 8px;
  background: #67ae8b;
  box-shadow: 0 0 0 1px #467c66;
  z-index: 2;
}
.timeline-tick { text-align: center; color: var(--ink, #244d66); z-index: 4; }
.timeline-tick-mark { display: block; width: 1px; height: 13px; margin: 0 auto; background: currentColor; }
.timeline-tick.major .timeline-tick-mark { width: 2px; height: 21px; }
.timeline-tick-label { display: block; margin-top: 6px; font-size: .78rem; font-weight: 750; line-height: 1.25; white-space: nowrap; }
.timeline-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 42px;
  min-height: 67px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0 2px 5px;
  background: transparent;
  color: var(--ink, #244d66);
  font: inherit;
  cursor: pointer;
}
.timeline-choice:hover:not(:disabled) { background: #e6f0f4; }
.timeline-choice.selected { border-color: var(--ink, #244d66); background: var(--mint, #d9eee2); }
.timeline-choice.selected .timeline-tick-label { font-weight: 900; }
.timeline-choice:focus-visible { outline: 3px solid var(--yellow, #f6ca72); outline-offset: 2px; }
.timeline-choice:disabled { cursor: default; opacity: .65; }
.timeline-choice.selected:disabled { opacity: 1; }
.timeline-scroll-hint { margin: 10px 0 0; font-size: .8rem; line-height: 1.45; }
.timeline-event-list { display: grid; gap: 8px; list-style: none; margin: 17px 0 0; padding: 0; }
.timeline-event-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 9px 11px; background: #f3f7f9; border-radius: 9px; font-size: .84rem; line-height: 1.4; }
.timeline-note { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #9bbdca; background: #f3f7f9; font-size: .83rem; line-height: 1.45; }
@media (max-width: 600px) {
  .time-timeline { padding: 13px; border-radius: 16px; }
  .timeline-title { font-size: 1rem; }
  .timeline-description { font-size: .83rem; }
}
