/* Docked timeline + rectification bar (lane L7). Folded: a "Timeline" pill at the chart's bottom edge. Open: a strip in
 * the chart's column under the canvas (the canvas gives up its height: osiris-timeline.js adds it to the reserve that
 * resizeCanvas already subtracts). The L6 time tools ride in its toolbar while it is open. */
#center:has(> #osiris-timeline[data-open="1"]) { flex-direction: column; align-items: center; justify-content: flex-start; }
#center > #osiris-timeline { position: absolute; left: 12px; bottom: 52px; z-index: 11; pointer-events: none;
  font: 500 var(--fs-caption, 11px)/1.3 var(--ui-font, system-ui); color: var(--tb); }
#center > #osiris-timeline > * { pointer-events: auto; }
#center > #osiris-timeline:not([data-open="1"]) { left: auto; right: 12px; }
#center > #osiris-timeline[data-open="1"] { position: relative; left: auto; bottom: auto; flex: none; align-self: stretch;
  margin: 0 12px 8px; z-index: 4; box-sizing: border-box; }
#center:has(> #osiris-timeline[data-open="1"]) > #zoom-bar { bottom: calc(var(--sws-timeline-h, 0px) + var(--otl-h, 0px) + 10px); }
#center:has(> #osiris-timeline[data-open="1"]) > #time-tools { bottom: calc(var(--otl-h, 0px) + 52px); }
#osiris-timeline .otl-handle[hidden] { display: none; }
#osiris-timeline .otl-body { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px;
  border: 1px solid var(--bd); border-radius: var(--r5, 6px); background: var(--pn); color: var(--tb); position: relative; }
#osiris-timeline .otl-body[hidden] { display: none; }
#osiris-timeline .otl-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
#osiris-timeline .otl-bar > * { flex: none; }
#osiris-timeline .orb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#osiris-timeline .otl-tt[hidden] { display: none; }
#osiris-timeline .otl-title { font-weight: 600; color: var(--tb); margin-right: 2px; }
#osiris-timeline .otl-group { display: inline-flex; align-items: center; gap: 4px; }
#osiris-timeline .otl-status { color: var(--td); min-width: 4em; }
#osiris-timeline .otl-bar .otl-status { flex: 1 1 auto; min-width: 2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#osiris-timeline .otl-select { font: inherit; color: inherit; background: transparent; border: 1px solid var(--bd); border-radius: 999px; padding: 2px 8px; min-height: 24px; }
#osiris-timeline .otl-select option { background: var(--pn); color: var(--tb); }
#osiris-timeline .otl-menu { position: absolute; z-index: 20; top: 34px; left: 60px; max-height: 300px; overflow: auto; min-width: 200px;
  padding: 6px 10px; border: 1px solid var(--bd); border-radius: var(--r5, 6px); background: var(--pn); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
#osiris-timeline .otl-menu[hidden] { display: none; }
#osiris-timeline .otl-menu-h { color: var(--td); margin: 6px 0 2px; font-weight: 600; }
#osiris-timeline .otl-menu-row { display: flex; align-items: center; gap: 4px; padding: 2px 0; cursor: pointer; }
#osiris-timeline .otl-stage { position: relative; overflow-x: hidden; overflow-y: auto; max-height: 280px; scrollbar-gutter: stable; }
#osiris-timeline .otl-canvas { display: block; width: 100%; outline: none; touch-action: none; cursor: grab; }
#osiris-timeline .otl-canvas:focus-visible { outline: 2px solid var(--a2); outline-offset: -2px; }
#osiris-timeline .otl-tip { position: absolute; z-index: 15; max-width: 360px; padding: 4px 8px; white-space: pre; pointer-events: none;
  border: 1px solid var(--bd); border-radius: 4px; background: var(--pn); color: var(--tb); font-variant-numeric: tabular-nums; }
#osiris-timeline .otl-tip[hidden] { display: none; }
/* L6 time tools hosted in the toolbar: the controls row only (the ruler is the time bar here). */
#osiris-timeline #time-tools.tt-hosted { position: static; display: flex; flex-direction: row; gap: 0; }
#osiris-timeline #time-tools.tt-hosted .tt-handle, #osiris-timeline #time-tools.tt-hosted .tt-track { display: none; }
#osiris-timeline #time-tools.tt-hosted .tt-body { display: flex; padding: 0; border: 0; background: transparent; }
#osiris-timeline #time-tools.tt-hosted .tt-status { display: none; }
/* Rectification bar */
#osiris-timeline .otl-rect { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 6px; border-bottom: 1px solid var(--bd); }
#osiris-timeline .otl-rect[hidden] { display: none; }
#osiris-timeline .orb-status { flex: 1 1 12em; }
#osiris-timeline .orb-heat-wrap { position: relative; }
#osiris-timeline .orb-heat { display: block; width: 100%; height: 30px; cursor: pointer; border-radius: 4px; outline: none; }
#osiris-timeline .orb-heat:focus-visible { outline: 2px solid var(--a2); }
#osiris-timeline .orb-tip { top: 34px; }
#osiris-timeline .orb-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; align-items: start; }
#osiris-timeline .orb-weights { display: flex; flex-direction: column; gap: 2px; }
#osiris-timeline .orb-weight { display: grid; grid-template-columns: 10.5em minmax(60px, 1fr) 2.5em; align-items: center; gap: 6px; }
#osiris-timeline .orb-weight input { width: 100%; min-width: 0; }
#osiris-timeline .orb-wlabel { color: var(--td); }
#osiris-timeline .orb-wval { font-variant-numeric: tabular-nums; text-align: right; }
#osiris-timeline .orb-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; max-height: 140px; overflow: auto; }
#osiris-timeline .orb-cand-btn { width: 100%; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; font: inherit; color: inherit;
  background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 2px 6px; cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
#osiris-timeline .orb-cand-btn:hover { border-color: var(--bd); }
#osiris-timeline .orb-cand.is-sel .orb-cand-btn { border-color: var(--a2); }
#osiris-timeline .orb-off, #osiris-timeline .orb-score { color: var(--td); }
#osiris-timeline .orb-empty { color: var(--td); }
#osiris-timeline .orb-detail { display: flex; flex-direction: column; gap: 1px; color: var(--td); max-height: 140px; overflow: auto; overflow-wrap: anywhere; }
#osiris-timeline .orb-detail-h { color: var(--tb); font-weight: 600; }
#osiris-timeline .orb-sens[hidden] { display: none; }
#osiris-timeline .orb-sens-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
#osiris-timeline .orb-sens-table th { text-align: left; color: var(--td); font-weight: 600; padding: 1px 6px; }
#osiris-timeline .orb-sens-table td { padding: 1px 6px; }
#osiris-timeline .orb-sens-strip { display: block; width: 100%; min-width: 120px; height: 10px; border-radius: 2px; }
@media (max-width: 700px) {
  #center > #osiris-timeline[data-open="1"] { margin: 0 8px 8px; }
  #osiris-timeline .otl-bar .otl-status { display: none; }
}
