/* ============================================================================
   shared/timeline.css — the timeline strip, for any host with a clock
   (particles: particle-authoring §8.2 · animation: rig-authoring-design fig. 08).
   Slate/Emerald tokens only; the host page owns the token values, this file only
   spends them. Class prefix stays `ptl-` so the rename touched no markup.
   ========================================================================== */
/* THE LOOP RANGE — drawn only when the host answers `loop()`, and behind everything else on the
   track so the ruler, the keys and the head all stay readable over it. */
.ptl-loop{position:absolute;top:0;bottom:0;background:color-mix(in srgb,var(--accent) 14%,transparent);
  border-left:1px solid var(--accent);border-right:1px solid var(--accent);z-index:0;pointer-events:none}
.ptl-loop[hidden]{display:none}
.ptl-loop i{position:absolute;top:0;bottom:0;width:7px;cursor:ew-resize;pointer-events:auto;font-style:normal}
.ptl-loop i[data-loop-in]{left:-4px}
.ptl-loop i[data-loop-out]{right:-4px}
.ptl-loop i:hover{background:color-mix(in srgb,var(--accent) 42%,transparent)}
.ptl{background:var(--panel);border-top:1px solid var(--line);user-select:none;font-size:11px}
.ptl-bar{display:flex;align-items:center;gap:8px;padding:5px 8px 3px;color:var(--muted)}
.ptl-bar .ptl-t{font-variant-numeric:tabular-nums;color:var(--text2)}
.ptl-bar .ptl-sp{flex:1}
/* the re-sim indicator: scrubbing is a full deterministic re-simulation, so it is
   honest to say so while it is happening rather than imply a seek. */
.ptl-resim{display:none;align-items:center;gap:5px;color:var(--warn)}
.ptl.resim .ptl-resim{display:flex}
.ptl-resim i{width:6px;height:6px;border-radius:50%;background:var(--warn);font-style:normal}
.ptl-hint{color:var(--faint)}

.ptl-track{position:relative;height:56px;margin:0 8px 7px;background:var(--well);border-radius:6px;overflow:hidden;cursor:col-resize}
.ptl-ruler{position:absolute;left:0;right:0;top:0;height:14px}
.ptl-tick{position:absolute;top:0;width:1px;height:6px;background:var(--line)}
.ptl-tlbl{position:absolute;top:0;transform:translateX(2px);color:var(--faint);font-size:9px;font-variant-numeric:tabular-nums;line-height:12px}

/* lane 1 — burst keys: authored INTENT, so they are editable and carry the accent
   when selected. lane 2 — event markers: observed CONSEQUENCE, read-only, so they
   recede to neutral (emphasis follows importance). */
.ptl-lane{position:absolute;left:0;right:0;height:20px}
.ptl-lane.keys{top:15px}
.ptl-lane.evts{top:36px;height:19px;border-top:1px solid var(--divider)}
.ptl-lnm{position:absolute;left:4px;top:3px;color:var(--faint);font-size:9px;letter-spacing:.06em;text-transform:uppercase;pointer-events:none}

.ptl-key{position:absolute;top:3px;width:11px;height:11px;margin-left:-6px;background:var(--text2);border-radius:2px;transform:rotate(45deg);cursor:ew-resize}
.ptl-key:hover{background:var(--ink)}
.ptl-key.sel{background:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.ptl-kcnt{position:absolute;top:2px;margin-left:8px;color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums;pointer-events:none;white-space:nowrap}

.ptl-ev{position:absolute;bottom:2px;width:2px;margin-left:-1px;background:var(--accent);opacity:.55;border-radius:1px;pointer-events:none}
.ptl-ev.dense{background:var(--warn);opacity:.8}

.ptl-head{position:absolute;top:0;bottom:0;width:1px;background:var(--accent);pointer-events:none}
.ptl-head::before{content:'';position:absolute;top:0;left:-4px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid var(--accent)}

.ptl-empty{position:absolute;inset:15px 0 0;display:flex;align-items:center;justify-content:center;color:var(--faint);font-size:10.5px;pointer-events:none}
