/* 時間微調尺（循環編輯器與新增筆記輸入區共用） */
/* 微調尺：中央指針固定、刻度依選中的點平移；每小格 8px＝0.1 秒、每 80px 一秒 */
.time-ruler { position: relative; height: 56px; border: 1px solid var(--c-border-input); border-radius: var(--r-6); background: var(--c-surface); overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.time-ruler:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.time-ruler__ticks {
  position: absolute; bottom: 0; height: 40px; width: 1680px;
  background:
    repeating-linear-gradient(90deg, var(--c-text) 0 1.5px, transparent 1.5px 80px) bottom / 100% 20px no-repeat,
    repeating-linear-gradient(90deg, var(--c-private-border) 0 1px, transparent 1px 8px) bottom / 100% 10px no-repeat;
}
.time-ruler__lbl { position: absolute; top: 2px; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--fs-11); color: var(--c-text-2); }
.time-ruler__mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--c-brand); pointer-events: none; }
.time-ruler__mid::before { content: ""; position: absolute; top: 0; left: -5px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--c-brand); }
.time-ruler__fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-ruler-fade), transparent 18%, transparent 82%, var(--c-ruler-fade)); pointer-events: none; }
@media (max-width: 899.98px) {
  .time-ruler { height: 64px; }
  .time-ruler__ticks { height: 48px; }
}
