/* Zoom on Click: tool-only styles, built on the shared tokens. © 2026 Tomas Martinez · GPL-3.0-or-later · tm1363-c339e3ad */

.zoc-viewbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zoc-viewbar .segmented { flex: none; }
.zoc-view-hint { font-size: 12px; color: var(--text-faint); min-width: 0; }

.preview-stage canvas#preview { touch-action: none; }
/* Markers: exactly on top of the preview canvas, never part of an export. */
.preview-stage canvas.zoc-marks {
  position: absolute; max-width: none; max-height: none;
  border-radius: 6px; box-shadow: none; background: transparent; pointer-events: none;
}

/* Timeline strip: zoom sessions as bars, points as dots */
.zoc-timeline { position: relative; height: 26px; border-radius: var(--radius-sm); background: var(--bg-elev); border: 1px solid var(--border); cursor: pointer; overflow: hidden; }
.zoc-session { position: absolute; top: 5px; bottom: 5px; border-radius: 6px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.zoc-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); background: var(--accent); cursor: pointer; }
.zoc-dot.is-auto { background: var(--warning); }
.zoc-dot.is-selected { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); transform: scale(1.2); }
.zoc-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text); opacity: .7; pointer-events: none; }

.zoc-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.zoc-tools .btn svg { width: 14px; height: 14px; }
.zoc-row { display: flex; gap: 6px; flex-wrap: wrap; }
.zoc-row .btn svg { width: 14px; height: 14px; }
.zoc-list { display: grid; gap: 4px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.zoc-empty { font-size: 12px; color: var(--text-faint); }
.zoc-item { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 4px 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elev); cursor: pointer; font-size: 13px; }
.zoc-item:hover { border-color: var(--border-strong); }
.zoc-item.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.zoc-time { font: 12px var(--font-mono); }
.zoc-zoom { font-weight: 600; }
.zoc-src { font-size: 11px; color: var(--text-faint); justify-self: end; }
.zoc-src.is-auto { color: var(--warning); }
.zoc-del { width: 26px; height: 26px; padding: 0; }
.zoc-del svg { width: 13px; height: 13px; }
