/* ==========================================================================
   FOMIN MEDIA — GIVON-GRADE NATIVE MONTAGE STUDIO (/editor)
   Full-bleed hairline NLE workspace built strictly on Fomin Media CSS tokens
   ========================================================================== */

#section-editor.gvs-fullbleed-active {
  padding: 0 !important;
  margin: 0 !important;
}

.gvs-root {
  --gvs-surface: var(--bg-primary, #292A2F);
  --gvs-deep: var(--bg-elevated, #212226);
  --gvs-card: var(--bg-card, #2D3748);
  --gvs-hover: var(--bg-hover, #364153);
  --gvs-input: var(--bg-input, #212226);
  --gvs-line: color-mix(in srgb, var(--border) 65%, transparent);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 82px);
  max-height: calc(100vh - 82px);
  min-height: 580px;
  width: 100%;
  background: var(--gvs-deep);
  color: var(--text-primary);
  border: 1px solid var(--gvs-line);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-sans, inherit);
  box-sizing: border-box;
}

.gvs-root svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
}

.gvs-root *,
.gvs-root *::before,
.gvs-root *::after {
  box-sizing: border-box;
}

/* ---------- 1. Slim Top Studio Header (44px) ---------- */
.gvs-topbar {
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: var(--gvs-surface);
  border-bottom: 1px solid var(--gvs-line);
  flex-shrink: 0;
}

.gvs-topbar-left,
.gvs-topbar-center,
.gvs-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gvs-project-sel {
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  max-width: 135px;
  cursor: pointer;
}

.gvs-draft-pill {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--gvs-card);
  border: 1px solid var(--gvs-line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 125px;
}

.gvs-mode-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 44px;
}

.gvs-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.14s, border-color 0.14s;
  white-space: nowrap;
}

.gvs-mode-tab:hover {
  color: var(--text-primary);
}

.gvs-mode-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.gvs-mode-tab svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.gvs-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  flex-shrink: 0;
}

.gvs-icon-btn:hover {
  background: var(--gvs-hover);
  color: var(--text-primary);
  border-color: var(--border);
}

.gvs-icon-btn.active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.gvs-icon-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.gvs-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gvs-save-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
  padding: 0 6px;
  white-space: nowrap;
}

.gvs-save-status.saved {
  color: #10b981;
}

.gvs-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
  white-space: nowrap;
}

.gvs-btn:hover {
  background: var(--gvs-hover);
}

.gvs-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.gvs-btn-primary:hover {
  opacity: 0.92;
  background: var(--accent);
}

.gvs-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gvs-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 2. Upper Workbench (Rail | Drawer | Stage | Inspector) ---------- */
.gvs-upper {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: var(--gvs-deep);
}

/* Far-Left Vertical Icon Rail (48px) */
.gvs-rail {
  width: 48px;
  min-width: 48px;
  background: var(--gvs-surface);
  border-right: 1px solid var(--gvs-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  flex-shrink: 0;
}

.gvs-rail-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  position: relative;
}

.gvs-rail-btn:hover {
  background: var(--gvs-hover);
  color: var(--text-primary);
}

.gvs-rail-btn.active {
  background: var(--gvs-card);
  color: var(--text-primary);
  border-color: var(--border);
}

.gvs-rail-btn.active::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}

.gvs-rail-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gvs-rail-spacer {
  flex: 1;
}

/* Left Contextual Tool Drawer (300px, collapsible) */
.gvs-drawer {
  width: 300px;
  min-width: 300px;
  background: var(--gvs-surface);
  border-right: 1px solid var(--gvs-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transition: width 0.16s ease, min-width 0.16s ease;
}

.gvs-drawer.collapsed {
  width: 0;
  min-width: 0;
  border-right: none;
}

.gvs-drawer-header {
  min-height: 46px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gvs-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.gvs-filter-pills {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.gvs-pill {
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.gvs-pill:hover {
  color: var(--text-primary);
  background: var(--gvs-card);
}

.gvs-pill.active {
  background: var(--gvs-hover);
  color: var(--text-primary);
  border-color: var(--border);
}

.gvs-drawer-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gvs-search-row {
  padding: 8px 12px 0;
}

.gvs-input,
.gvs-select,
.gvs-textarea {
  width: 100%;
  border-radius: 7px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-deep);
  color: var(--text-primary);
  font-size: 12.5px;
  padding: 7px 10px;
  font-family: inherit;
  outline: none;
}

.gvs-input:focus,
.gvs-select:focus,
.gvs-textarea:focus {
  border-color: var(--accent);
}

.gvs-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gvs-media-card {
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.14s;
}

.gvs-media-card:hover {
  border-color: var(--accent);
}

.gvs-media-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--gvs-deep);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gvs-media-thumb img,
.gvs-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gvs-media-add-fab {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.gvs-media-dur-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(9, 12, 18, 0.78);
  color: #f8fafc;
}

.gvs-media-meta {
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gvs-empty-box {
  margin: 26px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-width: 240px;
}

.gvs-empty-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.gvs-sub-card {
  border: 1px solid var(--gvs-line);
  border-radius: 8px;
  background: var(--gvs-card);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gvs-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.gvs-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gvs-stat-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.gvs-stat-lbl {
  font-size: 11px;
  color: var(--text-secondary);
}

.gvs-segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: var(--gvs-deep);
  border: 1px solid var(--gvs-line);
}

.gvs-seg-btn {
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.gvs-seg-btn.active {
  background: color-mix(in srgb, var(--accent) 20%, var(--gvs-card));
  color: var(--text-primary);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.gvs-kv-list {
  display: flex;
  flex-direction: column;
}

.gvs-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--gvs-line);
  font-size: 12.5px;
}

.gvs-kv-row span:first-child {
  color: var(--text-secondary);
}

.gvs-kv-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.gvs-warn-box {
  font-size: 12px;
  color: #f59e0b;
  padding: 8px 10px;
  border-radius: 7px;
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}

.gvs-cue-item {
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.gvs-cue-item.selected {
  border-color: var(--accent);
}

.gvs-audio-row {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Center Program Monitor Stage (flex: 1) */
.gvs-stage {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gvs-deep);
  overflow: hidden;
  padding: 16px;
}

.gvs-stage-empty {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 300px;
}

.gvs-stage-empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.gvs-stage-empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.gvs-stage-empty h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.gvs-stage-empty p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.gvs-canvas-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #05070b;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--gvs-line);
}

.gvs-canvas-wrap canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.gvs-openmotion-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gvs-openmotion-wrap iframe {
  flex: 1;
  width: 100%;
  border: 1px solid var(--gvs-line);
  border-radius: 8px;
  background: #0b0f17;
}

/* Right Contextual Inspector / Kit Panel (272px, collapsible) */
.gvs-inspector {
  width: 272px;
  min-width: 272px;
  background: var(--gvs-surface);
  border-left: 1px solid var(--gvs-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
  transition: width 0.16s ease, min-width 0.16s ease;
}

.gvs-inspector.collapsed {
  width: 0;
  min-width: 0;
  border-left: none;
}

.gvs-inspector-tabs {
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--gvs-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gvs-inspector-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gvs-prop-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gvs-line);
}

.gvs-prop-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gvs-prop-field label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.gvs-inspector-empty {
  margin: auto 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gvs-stage-inspector-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
}

.gvs-stage-inspector-toggle:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.gvs-kit-log {
  flex: 1 1 0;
  min-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.gvs-kit-msg {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  line-height: 1.4;
  white-space: pre-wrap;
}

.gvs-kit-msg.user {
  background: color-mix(in srgb, var(--accent) 12%, var(--gvs-card));
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}

/* ---------- 3. Full-Width Bottom Multi-Track Timeline ---------- */
.gvs-timeline-dock {
  height: 244px;
  min-height: 244px;
  background: var(--gvs-surface);
  border-top: 1px solid var(--gvs-line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  user-select: none;
  transition: height 0.16s ease, min-height 0.16s ease;
}

.gvs-timeline-dock.collapsed {
  height: 40px;
  min-height: 40px;
}

.gvs-tl-toolbar {
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--gvs-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gvs-tl-tools-left,
.gvs-tl-tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gvs-tl-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.gvs-timecode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--text-primary);
  padding: 0 6px;
  white-space: nowrap;
}

.gvs-timecode span {
  color: var(--text-secondary);
}

.gvs-zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--gvs-line);
  border-radius: 7px;
  background: var(--gvs-card);
  padding: 0 4px;
  height: 30px;
}

.gvs-zoom-label {
  font-size: 11.5px;
  font-family: ui-monospace, monospace;
  color: var(--text-secondary);
  min-width: 34px;
  text-align: center;
}

/* Timeline Body: Left Headers + Right Scrollable Tracks */
.gvs-tl-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
  position: relative;
}

.gvs-tl-headers {
  width: 122px;
  min-width: 122px;
  border-right: 1px solid var(--gvs-line);
  background: var(--gvs-surface);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.gvs-tl-corner {
  height: 24px;
  min-height: 24px;
  border-bottom: 1px solid var(--gvs-line);
}

.gvs-tl-track-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gvs-line);
  text-transform: uppercase;
}

.gvs-tl-track-hdr svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  flex-shrink: 0;
}

.gvs-tl-track-hdr.lane-media { height: 64px; }
.gvs-tl-track-hdr.lane-voice { height: 38px; }
.gvs-tl-track-hdr.lane-subs  { height: 38px; }
.gvs-tl-track-hdr.lane-music { height: 38px; }

.gvs-tl-scroll {
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  background: var(--gvs-deep);
}

.gvs-tl-canvas {
  position: relative;
  min-width: 100%;
  height: 100%;
}

/* Time Ruler */
.gvs-tl-ruler {
  height: 24px;
  min-height: 24px;
  border-bottom: 1px solid var(--gvs-line);
  position: relative;
  cursor: pointer;
  background: var(--gvs-surface);
}

.gvs-tl-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--gvs-line);
  padding-left: 4px;
  font-size: 10px;
  line-height: 22px;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Playhead Line */
.gvs-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  z-index: 25;
  pointer-events: none;
}

.gvs-playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 12px;
  border-radius: 3px 3px 6px 6px;
  background: var(--accent);
}

/* Track Lanes */
.gvs-tl-lane {
  position: relative;
  border-bottom: 1px solid var(--gvs-line);
  width: 100%;
}

.gvs-tl-lane.lane-media { height: 64px; }
.gvs-tl-lane.lane-voice { height: 38px; }
.gvs-tl-lane.lane-subs  { height: 38px; }
.gvs-tl-lane.lane-music { height: 38px; }

.gvs-lane-empty {
  position: absolute;
  inset: 5px 8px;
  border: 1px dashed var(--gvs-line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  opacity: 0.72;
}

.gvs-lane-empty-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clips on Timeline */
.gvs-clip {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: 7px;
  border: 1px solid var(--gvs-line);
  background: var(--gvs-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: grab;
  transition: box-shadow 0.1s;
  min-width: 22px;
}

.gvs-clip:active {
  cursor: grabbing;
}

.gvs-clip.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent);
  z-index: 12;
}

.gvs-clip.kind-media {
  background: linear-gradient(180deg, var(--gvs-hover), var(--gvs-card));
}

.gvs-clip.kind-voice {
  background: color-mix(in srgb, #38bdf8 18%, var(--gvs-card));
  border-color: color-mix(in srgb, #38bdf8 45%, var(--border));
}

.gvs-clip.kind-sub {
  background: color-mix(in srgb, #f59e0b 20%, var(--gvs-card));
  border-color: color-mix(in srgb, #f59e0b 48%, var(--border));
}

.gvs-clip.kind-music {
  background: color-mix(in srgb, #10b981 18%, var(--gvs-card));
  border-color: color-mix(in srgb, #10b981 45%, var(--border));
}

.gvs-clip-thumb {
  height: 100%;
  width: 48px;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 1px solid var(--gvs-line);
  opacity: 0.92;
}

.gvs-clip-body {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.gvs-clip-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gvs-clip-sub {
  font-size: 10px;
  color: var(--text-secondary);
}

.gvs-clip-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  cursor: ew-resize;
  z-index: 4;
}

.gvs-clip-handle.left { left: 0; }
.gvs-clip-handle.right { right: 0; }

.gvs-clip-handle:hover,
.gvs-clip.selected .gvs-clip-handle {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ---------- Mobile Responsive (<= 960px, 0px overflow) ---------- */
@media (max-width: 960px) {
  .gvs-root {
    height: auto;
    min-height: calc(100vh - 120px);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .gvs-topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 10px;
    gap: 6px;
  }
  .gvs-mode-tabs {
    height: 36px;
    overflow-x: auto;
    max-width: 100%;
  }
  .gvs-upper {
    flex-direction: column;
    overflow: visible;
  }
  .gvs-rail {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    justify-content: space-around;
    border-right: none;
    border-bottom: 1px solid var(--gvs-line);
    padding: 6px 8px;
  }
  .gvs-rail-btn.active::before {
    display: none;
  }
  .gvs-rail-spacer {
    display: none;
  }
  .gvs-drawer {
    width: 100%;
    min-width: 0;
    max-height: 290px;
    border-right: none;
    border-bottom: 1px solid var(--gvs-line);
  }
  .gvs-drawer.collapsed {
    max-height: 0;
    width: 100%;
  }
  .gvs-stage {
    min-height: 280px;
  }
  .gvs-inspector {
    width: 100%;
    min-width: 0;
    max-height: 320px;
    border-left: none;
    border-top: 1px solid var(--gvs-line);
  }
  .gvs-inspector.collapsed {
    max-height: 0;
    width: 100%;
  }
  .gvs-tl-headers {
    width: 88px;
    min-width: 88px;
  }
  .gvs-tl-track-hdr {
    padding: 0 6px;
    font-size: 9.5px;
  }
  .gvs-tl-toolbar {
    flex-wrap: wrap;
    height: auto;
    padding: 6px 8px;
  }
  .gvs-timecode {
    min-width: 110px;
    font-size: 11px;
  }
}
