/* The time controller (timecontrol.ts): interface colours only from the theme (CON-06, DEV-07).
   Compact, so it fits VS Code's sidebar view at its first height, note and all. */
.timebar { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--vscode-foreground); }
.timebar[hidden] { display: none; }
/* The window's ends and its length on one line (and, in the playground, how context tracks are drawn). */
.tc-caption { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 2px; color: var(--vscode-descriptionForeground); }
/* The window's ends wrap at a space where a narrow column (210 px, a wide font) has no room for them on one line. */
.tc-ends { font-family: var(--vscode-editor-font-family); font-size: 11px; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.tc-to { margin: 0 3px; font-family: var(--vscode-font-family); }
.tc-window-length { margin-left: auto; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* The window: a rail for the plot's period, a band for the window, a handle at each end. */
.tc-window { position: relative; height: 20px; margin: 0 8px; touch-action: none; cursor: pointer; }
.tc-rail { position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 2px; background: var(--vscode-input-background); border: 1px solid var(--vscode-widget-border, transparent); box-sizing: border-box; }
.tc-band { position: absolute; top: 6px; height: 8px; border-radius: 2px; background: var(--vscode-focusBorder); opacity: 0.55; cursor: grab; }
.tc-band:active { cursor: grabbing; }
.tc-handle { position: absolute; top: 1px; width: 10px; height: 18px; margin-left: -5px; box-sizing: border-box; border-radius: 2px; background: var(--vscode-button-background); border: 1px solid var(--vscode-button-foreground); cursor: ew-resize; }
.tc-handle:focus-visible { outline: 2px solid var(--vscode-focusBorder); outline-offset: 1px; }
/* Current time: its slider, with the step beside it. */
.tc-current-row { display: flex; align-items: center; gap: 6px; }
.tc-current { flex: 1; width: auto; min-width: 0; height: 16px; margin: 0; accent-color: var(--vscode-focusBorder); }
.tc-current:focus-visible { outline: 1px solid var(--vscode-focusBorder); }
.tc-step-label { white-space: nowrap; color: var(--vscode-descriptionForeground); }
/* Step, play, step and speed on the same line as current time. */
.tc-buttons { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.timebar .time-label { margin-left: auto; font-family: var(--vscode-editor-font-family); font-size: 12px; white-space: nowrap; }
.tc-buttons button { min-width: 24px; height: 22px; margin: 0; padding: 0 5px; background: var(--vscode-button-secondaryBackground); color: var(--vscode-button-secondaryForeground); border: 1px solid var(--vscode-button-border, transparent); border-radius: 2px; cursor: pointer; font: inherit; }
.tc-buttons button:hover { background: var(--vscode-button-secondaryHoverBackground); }
.tc-buttons .tc-play { background: var(--vscode-button-background); color: var(--vscode-button-foreground); min-width: 32px; }
.tc-buttons .tc-play:hover { background: var(--vscode-button-hoverBackground); }
.tc-buttons button:focus-visible, .tc-speed:focus-visible { outline: 1px solid var(--vscode-focusBorder); outline-offset: 1px; }
.tc-speed { height: 22px; background: var(--vscode-dropdown-background); color: var(--vscode-dropdown-foreground, var(--vscode-foreground)); border: 1px solid var(--vscode-dropdown-border, transparent); font: inherit; }
/* Play off: the window is shorter than one tick at this speed. The button stays focusable, to say why. */
.tc-buttons .tc-play.off { opacity: 0.5; cursor: not-allowed; }
/* The part of the window shown that is not the saved window: hatched, in the theme's text colour. */
.tc-beyond { position: absolute; top: 4px; height: 12px; box-sizing: border-box; border: 1px dashed var(--vscode-foreground); background: repeating-linear-gradient(135deg, var(--vscode-foreground) 0 1.5px, transparent 1.5px 5px); opacity: 0.75; cursor: grab; }
.tc-beyond[hidden] { display: none; }
/* Until the analyst keeps or reverts it, a one-line note says the window shown is not the saved one:
   the text cut short if it must (whole on hover, and to screen readers), Keep and Revert at the right.
   A live region, always present. */
.tc-cue { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; }
.tc-cue.showing { padding: 1px 2px 1px 6px; border: 1px solid var(--vscode-inputValidation-warningBorder, var(--vscode-focusBorder)); background: var(--vscode-inputValidation-warningBackground, var(--vscode-editorWidget-background)); color: var(--vscode-foreground); border-radius: 2px; }
.tc-cue-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-cue-actions { display: inline-flex; flex: none; gap: 4px; }
.tc-cue-actions[hidden] { display: none; }
.tc-cue button { height: 20px; margin: 0; padding: 0 6px; background: var(--vscode-button-secondaryBackground); color: var(--vscode-button-secondaryForeground); border: 1px solid var(--vscode-button-border, transparent); border-radius: 2px; cursor: pointer; font: inherit; }
.tc-cue .tc-keep { background: var(--vscode-button-background); color: var(--vscode-button-foreground); }
.tc-cue button:hover { background: var(--vscode-button-secondaryHoverBackground); }
.tc-cue .tc-keep:hover { background: var(--vscode-button-hoverBackground); }
.tc-cue button:focus-visible { outline: 1px solid var(--vscode-focusBorder); outline-offset: 1px; }
/* How tracks outside the window are drawn, for the plot (the playground; VS Code has it in the view's title menu). */
.tc-context-row { display: inline-flex; align-items: center; gap: 4px; color: var(--vscode-descriptionForeground); white-space: nowrap; }
.tc-context { height: 20px; padding: 0 2px; background: var(--vscode-dropdown-background); color: var(--vscode-dropdown-foreground, var(--vscode-foreground)); border: 1px solid var(--vscode-dropdown-border, transparent); font: inherit; }
.tc-context:focus-visible { outline: 1px solid var(--vscode-focusBorder); outline-offset: 1px; }
.tc-context-note { font-size: 11px; white-space: normal; }
.tc-context-note:empty { display: none; }
