/* L1 time tools: range bar (chart footer), go-to-date popover, countdown tag, view-menu extras. Tokens only. */
.chart-foot { gap: var(--s3); }
.chart-foot > #histInfo { margin-left: auto; }
.range-bar { display: inline-flex; align-items: center; gap: 1px; flex: none; }
.range-bar button { height: 18px; min-width: 26px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 500 var(--fs-2xs)/1 var(--mono); }
.range-bar button:hover { background: var(--hover); color: var(--text); }
.range-bar button.active { background: var(--selected); color: var(--accent); font-weight: 600; }
.range-bar .range-goto { display: inline-flex; align-items: center; justify-content: center; margin-left: var(--s1); border-left: 1px solid var(--border); border-radius: 0 4px 4px 0; }
.range-bar .range-goto .icon { width: 13px; height: 13px; }

.goto-pop { z-index: 60; width: 260px; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); }
.goto-pop[hidden] { display: none; }
.goto-pop input[type="datetime-local"] { width: 100%; color-scheme: dark light; }
.goto-row { display: flex; gap: var(--s2); }
.goto-status:empty { display: none; }

.bar-countdown { position: absolute; z-index: 4; box-sizing: border-box; padding: 2px 0; text-align: center; pointer-events: none; background: var(--panel2); color: var(--muted); border: 1px solid var(--border); border-radius: 2px; font: 500 var(--fs-2xs)/1.2 var(--mono); }
.bar-countdown[hidden] { display: none; }

.view-menu select { width: 100%; }
.view-check { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); font-size: var(--fs-xs); color: var(--text); }
/* the history-source line never wraps under the range buttons; full text stays in the tooltip */
.chart-foot > #histInfo { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
