/* GriGsi VMCR — split part 8/10 — camera live menu, live desk (back/illustrate/verify), multitrack editing desk, export bar. Part of website/css/vmcr.css, cut in original order (2026-09-23); load all 10 vmcr-*.css files together in order, never reorder. */
/* Bottom crop line by shot (where feet/body edge sits) */
.vmcr-frame-guide[data-frame="mcu"] .vmcr-frame-guide__cut {
  top: 58%;
}
.vmcr-frame-guide[data-frame="elbows"] .vmcr-frame-guide__cut {
  top: 66%;
}
.vmcr-frame-guide[data-frame="hands"] .vmcr-frame-guide__cut {
  top: 74%;
}
.vmcr-frame-guide[data-frame="knees"] .vmcr-frame-guide__cut {
  top: 86%;
}
.vmcr-frame-guide[data-frame="full"] .vmcr-frame-guide__cut {
  top: 94%;
}

body.vmcr-dir-page.vmcr-mix-fs .vmcr-frame-guide-menu {
  background: rgba(12, 18, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
}

body.vmcr-dir-page.vmcr-mix-fs .vmcr-frame-guide-menu__btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.22);
}

body.vmcr-dir-page.vmcr-mix-fs .vmcr-frame-guide-menu__lab,
body.vmcr-dir-page.vmcr-mix-fs .vmcr-frame-guide-menu__hint {
  color: rgba(255, 255, 255, 0.7);
}

/* Camera live: menu is fixed-positioned in JS above the Frame button */
.vmcr-cam-stage .vmcr-frame-guide-wrap {
  pointer-events: auto;
  z-index: 80;
}

.vmcr-cam-stage .vmcr-frame-guide-menu {
  background: rgba(12, 14, 24, 0.96);
  border-color: rgba(255, 255, 255, 0.2);
  transform: none;
}

.vmcr-cam-stage .vmcr-frame-guide-menu__btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.vmcr-cam-stage .vmcr-frame-guide-menu__lab,
.vmcr-cam-stage .vmcr-frame-guide-menu__hint {
  color: rgba(255, 255, 255, 0.72);
}

.vmcr-cam-stage .vmcr-frame-guide {
  z-index: 12;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Sit above the camera video + chrome so Director figure is visible on the phone. */
  pointer-events: none;
}

.vmcr-cam-stage .vmcr-frame-guide__thirds i:nth-child(1),
.vmcr-cam-stage .vmcr-frame-guide__thirds i:nth-child(2) {
  border-left: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.vmcr-cam-stage .vmcr-frame-guide__thirds i:nth-child(3),
.vmcr-cam-stage .vmcr-frame-guide__thirds i:nth-child(4) {
  border-top: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.vmcr-cam-stage .vmcr-frame-guide__headroom,
.vmcr-cam-stage .vmcr-frame-guide__cut {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.vmcr-cam-stage .vmcr-frame-guide__label {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* === Live desk (Back / Illustrate / Verify) === */
.vmcr-desk-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .vmcr-desk-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .vmcr-desk-row { grid-template-columns: 1fr; }
}

.vmcr-card--back {
  border-color: rgba(196, 120, 60, 0.35);
  box-shadow: 0 14px 36px rgba(196, 120, 60, 0.08);
}

.vmcr-card--illustrate {
  border-color: rgba(47, 95, 138, 0.35);
}

.vmcr-card--verify {
  border-color: rgba(46, 125, 90, 0.35);
}

.vmcr-back-rail {
  margin: 8px 0 12px;
}

.vmcr-back-rail__track {
  position: relative;
  width: 100%;
}

.vmcr-back-rail input[type="range"] {
  width: 100%;
  accent-color: #c4783c;
  position: relative;
  z-index: 2;
  background: transparent;
}

.vmcr-back-rail__marks {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.vmcr-back-rail__mark {
  position: absolute;
  top: -11px;
  width: 16px;
  margin-left: -8px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  color: #c45a12;
  text-shadow:
    0 0 0 #fff,
    0 1px 0 #fff,
    1px 0 0 #fff,
    0 -1px 0 #fff,
    -1px 0 0 #fff;
  pointer-events: auto;
  cursor: pointer;
}

.vmcr-back-rail__mark.is-fresh {
  color: #e85d04;
  animation: vmcr-mistake-pulse 0.9s ease-out 1;
}

@keyframes vmcr-mistake-pulse {
  0% {
    transform: scale(1.65);
    color: #ff6b1a;
  }
  100% {
    transform: scale(1);
    color: #c45a12;
  }
}

.vmcr-back-times {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--vmcr-muted);
}

.vmcr-btn--mistake {
  background: linear-gradient(180deg, #ff8a3d 0%, #e85d04 55%, #c45a12 100%) !important;
  color: #fff !important;
  border: 1px solid #a3460e !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 2px 6px rgba(196, 90, 18, 0.35);
}

.vmcr-btn--mistake:hover,
.vmcr-btn--mistake:focus-visible {
  filter: brightness(1.06);
}

.vmcr-btn--mistake.is-flash {
  animation: vmcr-mistake-btn-flash 0.55s ease-out 1;
}

@keyframes vmcr-mistake-btn-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.75);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(232, 93, 4, 0);
  }
}

.vmcr-mistake-btn__star {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  margin-right: 0.15rem;
}

.vmcr-mistake-btn__count:not([hidden]) {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 800;
}

.vmcr-mistake-btn__count[hidden] {
  display: none !important;
}

.vmcr-mistake-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}

.vmcr-mistake-chips__lab {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c45a12;
  margin-right: 0.15rem;
}

.vmcr-mistake-chip {
  border: 1px solid #e0a070;
  background: #fff7f0;
  color: #9a3f0a;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.vmcr-mistake-chip.is-active {
  background: #e85d04;
  border-color: #c45a12;
  color: #fff;
}

.vmcr-mistake-list-head {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #c45a12;
  letter-spacing: 0.02em;
}

.vmcr-mistake-list-head[hidden],
.vmcr-mistake-list[hidden] {
  display: none !important;
}

.vmcr-mistake-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 9rem;
  overflow: auto;
}

.vmcr-mistake-item {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  border: 1px solid #f0b48a;
  background: linear-gradient(90deg, #fff4eb, #fffaf6);
  border-radius: 8px;
  overflow: hidden;
}

.vmcr-mistake-item.is-selected {
  border-color: #e85d04;
  box-shadow: 0 0 0 1px #e85d04;
}

.vmcr-mistake-pick {
  flex: 1;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.6rem;
  font: inherit;
  cursor: pointer;
  color: #6b2f08;
}

.vmcr-mistake-pick strong {
  color: #c45a12;
  font-size: 1rem;
  margin-right: 0.25rem;
}

.vmcr-mistake-chip-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #e85d04;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.vmcr-mistake-del {
  border: 0;
  background: #ffe8d6;
  color: #9a3f0a;
  padding: 0 0.65rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vmcr-btn--showlog {
  background: linear-gradient(180deg, #3d8fd4 0%, #2f5f8a 100%) !important;
  color: #fff !important;
  border: 1px solid #244a6c !important;
  font-weight: 750 !important;
}

.vmcr-btn--showlog:hover,
.vmcr-btn--showlog:focus-visible {
  filter: brightness(1.06);
}

.vmcr-showlog-panel {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(47, 95, 138, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fbff, #fff);
}

.vmcr-showlog-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.45rem;
}

.vmcr-showlog-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.5rem;
}

.vmcr-slog-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
}

.vmcr-slog-pill.is-cam1,
.vmcr-showlog-item.is-cam1 { --slog: #2f6fed; }
.vmcr-slog-pill.is-cam2,
.vmcr-showlog-item.is-cam2 { --slog: #0f9d8a; }
.vmcr-slog-pill.is-cam3,
.vmcr-showlog-item.is-cam3 { --slog: #7b5cff; }
.vmcr-slog-pill.is-cam4,
.vmcr-showlog-item.is-cam4 { --slog: #c23b6e; }
.vmcr-slog-pill.is-cam5,
.vmcr-showlog-item.is-cam5 { --slog: #178a3a; }
.vmcr-slog-pill.is-cam6,
.vmcr-showlog-item.is-cam6 { --slog: #8a5a12; }
.vmcr-slog-pill.is-media,
.vmcr-showlog-item.is-media { --slog: #d97706; }
.vmcr-slog-pill.is-text,
.vmcr-showlog-item.is-text { --slog: #db2777; }
.vmcr-slog-pill.is-layout,
.vmcr-showlog-item.is-layout { --slog: #64748b; }
.vmcr-slog-pill.is-mistake,
.vmcr-showlog-item.is-mistake { --slog: #e85d04; }
.vmcr-slog-pill.is-director,
.vmcr-showlog-item.is-director { --slog: #0ea5e9; }
.vmcr-slog-pill.is-hold,
.vmcr-showlog-item.is-hold { --slog: #475569; }

.vmcr-slog-pill {
  background: var(--slog, #64748b);
}

.vmcr-showlog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-height: 14rem;
  overflow: auto;
}

.vmcr-showlog-empty {
  padding: 0.55rem 0.65rem;
  color: var(--vmcr-muted, #667);
  font-size: 0.82rem;
}

.vmcr-showlog-item {
  display: grid;
  grid-template-columns: 3.6rem 4.6rem 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--slog, #64748b) 35%, #fff);
  background: color-mix(in srgb, var(--slog, #64748b) 12%, #fff);
  font-size: 0.8rem;
}

.vmcr-showlog-item__t {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--slog, #334);
}

.vmcr-showlog-item__kind {
  display: inline-flex;
  justify-content: center;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: var(--slog, #64748b);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vmcr-showlog-item__detail {
  color: #1e293b;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vmcr-showlog-assets {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(47, 95, 138, 0.25);
}

.vmcr-showlog-assets__lab {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.vmcr-showlog-assets__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.vmcr-showlog-asset-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vmcr-showlog-hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--vmcr-muted, #667);
  line-height: 1.35;
}

.vmcr-showlog-item {
  cursor: pointer;
}

.vmcr-showlog-item:hover,
.vmcr-showlog-item:focus-visible {
  filter: brightness(0.97);
  outline: 2px solid color-mix(in srgb, var(--slog, #64748b) 55%, #fff);
  outline-offset: 1px;
}

.vmcr-showlog-asset-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.78rem;
}

.vmcr-showlog-asset-item.is-active {
  background: color-mix(in srgb, #2f5f8a 16%, #fff);
  border: 1px solid #2f5f8a;
}

.vmcr-showlog-asset-item__actions {
  display: inline-flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.vmcr-showlog-asset-item__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vmcr-cut-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.vmcr-cut-empty {
  font-size: 0.85rem;
  color: var(--vmcr-muted);
  padding: 6px 0;
}

.vmcr-cut-item {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.vmcr-cut-item.is-selected .vmcr-cut-pick {
  border-color: rgba(196, 120, 60, 0.55);
  background: rgba(255, 244, 230, 0.95);
}

.vmcr-cut-pick,
.vmcr-cut-air {
  border: 1px solid var(--vmcr-line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  padding: 8px 10px;
}

.vmcr-cut-pick {
  flex: 1;
  text-align: left;
  font-size: 0.85rem;
}

.vmcr-cut-air {
  font-weight: 700;
  font-size: 0.8rem;
  color: #8a4b12;
}

.vmcr-ill-image {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 12px;
  background: #0c121c;
}

#vmcr-verify-q {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--vmcr-line);
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.85);
}


/* === Access key lookup: fade panel, solid Checking status === */
/* Keep the access-key field fully interactive so typing never loses focus. */
.vmcr-panel.is-key-checking > *:not(#vmcr-access-preview):not(.vmcr-field--access-key) {
  opacity: 0.38;
  filter: grayscale(0.15);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.vmcr-panel.is-key-checking .vmcr-field--access-key,
.vmcr-panel.is-key-checking #vmcr-access-key {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  user-select: text !important;
}

.vmcr-panel.is-key-checking #vmcr-access-preview,
#vmcr-access-preview.is-checking,
body.ios-theme.vmcr-page .vmcr-panel.is-key-checking #vmcr-access-preview,
body.ios-theme.vmcr-page #vmcr-access-preview.is-checking {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto;
  color: #0c0c0c !important;
  -webkit-text-fill-color: #0c0c0c !important;
  font-weight: 750;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

#vmcr-access-preview .vmcr-key-check-text,
body.ios-theme.vmcr-page #vmcr-access-preview .vmcr-key-check-text {
  color: #0c0c0c !important;
  -webkit-text-fill-color: #0c0c0c !important;
  font-weight: 750;
}

#vmcr-access-preview .vmcr-key-check-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 1em;
}

#vmcr-access-preview .vmcr-key-check-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0c0c0c;
  animation: vmcr-key-check-bounce 0.9s ease-in-out infinite;
}

#vmcr-access-preview .vmcr-key-check-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

#vmcr-access-preview .vmcr-key-check-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes vmcr-key-check-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #vmcr-access-preview .vmcr-key-check-dots i {
    animation: none;
    opacity: 0.7;
  }
}

/* === Router More Overlay (Router 11–50) === */
.vmcr-aux-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 92vw);
  max-height: min(82vh, 680px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(90, 70, 140, 0.35);
  box-shadow: 0 16px 48px rgba(30, 24, 60, 0.18);
  border-radius: 16px;
  z-index: 10055;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  overflow: hidden;
}

.vmcr-aux-overlay[hidden] {
  display: none !important;
}

.vmcr-aux-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}

.vmcr-aux-overlay__head strong {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.vmcr-aux-overlay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex: 1 1 auto;
  overflow: auto;
  align-content: start;
}

@media (max-width: 1100px) {
  .vmcr-aux-overlay {
    width: min(360px, 94vw);
    max-height: min(70vh, 560px);
  }
}

/* === Verify mini Air Check — tape + search === */
.vmcr-verify-tape {
  margin: 6px 0 10px;
  border: 1px solid rgba(46, 125, 90, 0.25);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(232, 248, 239, 0.5);
}

.vmcr-verify-tape__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--vmcr-muted);
}

.vmcr-verify-tape__head select {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--vmcr-line);
  padding: 4px 6px;
  font: inherit;
  font-weight: 650;
  background: #fff;
}

.vmcr-verify-wave {
  display: block;
  width: 100%;
  height: 36px;
  border-radius: 6px;
  background: rgba(46, 125, 90, 0.08);
  cursor: crosshair;
}

.vmcr-verify-tape__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.vmcr-verify-tape__bar input[type="range"] {
  flex: 1;
  accent-color: #2e7d5a;
}

.vmcr-verify-tape__time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--vmcr-muted);
  white-space: nowrap;
  min-width: 68px;
  text-align: right;
}

.vmcr-verify-tape__ctrls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.vmcr-verify-tape__marks {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--vmcr-muted);
  flex: 1 1 auto;
  text-align: center;
}

.vmcr-verify-search {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 4px;
}

.vmcr-card--verify #vmcr-verify-q {
  min-height: 48px;
}


/* ═══════════════════════════════════════════════════════
   Cutting / Editing section
═══════════════════════════════════════════════════════ */
.vmcr-edit-section {
  margin-top: 24px;
  border: 1px solid rgba(90, 60, 140, 0.3);
  background: linear-gradient(180deg, rgba(90, 60, 140, 0.07) 0%, rgba(255,255,255,0.88) 60%);
}

.vmcr-edit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vmcr-edit-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.vmcr-edit-header h2 {
  margin: 0 0 2px;
}

#vmcr-edit-body[hidden] { display: none !important; }

/* Multitrack Fix Master board */
.vmcr-edit-board {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(232, 93, 4, 0.28);
  background: linear-gradient(180deg, rgba(255, 244, 230, 0.65) 0%, rgba(255, 255, 255, 0.82) 55%);
}

.vmcr-edit-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.vmcr-edit-ribbon {
  position: relative;
  height: 28px;
  margin: 0 0 10px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(26, 36, 51, 0.06) 0,
      rgba(26, 36, 51, 0.06) 1px,
      transparent 1px,
      transparent 10%
    ),
    rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(232, 93, 4, 0.25);
  overflow: hidden;
}

.vmcr-edit-ribbon__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--vmcr-muted);
  pointer-events: none;
}

.vmcr-edit-ribbon__mark {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: #e85d04;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(232, 93, 4, 0.35);
}

.vmcr-edit-ribbon__mark:hover,
.vmcr-edit-ribbon__mark:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.vmcr-edit-tracks {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.vmcr-edit-tracks__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--vmcr-muted);
}

.vmcr-edit-track {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) 1fr;
  gap: 8px;
  align-items: stretch;
  min-height: 34px;
}

.vmcr-edit-track__lab {
  display: grid;
  align-content: center;
  gap: 1px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.vmcr-edit-track__lab strong {
  font-size: 0.8rem;
}

.vmcr-edit-track__lab span {
  color: var(--vmcr-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vmcr-edit-track__lab span.is-miss {
  color: #b45309;
}

.vmcr-edit-track__lane {
  position: relative;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(26, 36, 51, 0.12);
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.vmcr-edit-track__span {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: rgba(47, 95, 138, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.vmcr-edit-track__span.is-cam1 { background: rgba(47, 111, 237, 0.72); }
.vmcr-edit-track__span.is-cam2 { background: rgba(15, 157, 138, 0.72); }
.vmcr-edit-track__span.is-cam3 { background: rgba(123, 92, 255, 0.72); }
.vmcr-edit-track__span.is-cam4 { background: rgba(194, 59, 110, 0.72); }
.vmcr-edit-track__span.is-cam5 { background: rgba(23, 138, 58, 0.72); }
.vmcr-edit-track__span.is-cam6 { background: rgba(138, 90, 18, 0.72); }
.vmcr-edit-track__span.is-media { background: rgba(217, 119, 6, 0.75); }
.vmcr-edit-track__span.is-fixed {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #e85d04;
}
.vmcr-edit-track__span.is-replaced {
  opacity: 0.28;
  background: repeating-linear-gradient(
    -45deg,
    rgba(100, 116, 139, 0.45),
    rgba(100, 116, 139, 0.45) 4px,
    rgba(100, 116, 139, 0.2) 4px,
    rgba(100, 116, 139, 0.2) 8px
  );
}

.vmcr-edit-track__sel {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(232, 93, 4, 0.18);
  border-left: 2px solid #e85d04;
  border-right: 2px solid #e85d04;
  pointer-events: none;
  z-index: 1;
}

.vmcr-edit-decision {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(232, 93, 4, 0.3);
}

.vmcr-edit-decision__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.vmcr-edit-decision__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.vmcr-edit-decision__grid label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vmcr-muted);
}

.vmcr-edit-decision__grid input,
.vmcr-edit-decision__grid select {
  font: inherit;
  font-weight: 600;
  color: var(--vmcr-ink);
  border: 1px solid var(--vmcr-line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.vmcr-edit-decision__was {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-weight: 700;
  color: var(--vmcr-ink);
}

.vmcr-edit-decision__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vmcr-edit-dec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 140px;
  overflow: auto;
}

.vmcr-edit-dec-empty {
  font-size: 0.82rem;
  color: var(--vmcr-muted);
  padding: 4px 0;
}

.vmcr-edit-dec-item {
  border: 1px solid var(--vmcr-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.vmcr-edit-dec-item.is-selected {
  border-color: rgba(232, 93, 4, 0.55);
  background: rgba(255, 244, 230, 0.95);
}

.vmcr-edit-dec-item em {
  font-style: normal;
  font-weight: 800;
  color: #c2410c;
}

@media (max-width: 720px) {
  .vmcr-edit-decision__grid {
    grid-template-columns: 1fr 1fr;
  }
  .vmcr-edit-track {
    grid-template-columns: 4.8rem 1fr;
  }
}

/* Cutting / Editing fullscreen desk */
html.vmcr-edit-fs,
html.vmcr-edit-fs body.vmcr-dir-page {
  overflow: hidden;
  height: 100%;
}

body.vmcr-dir-page.vmcr-edit-fs .grigsi-top-bar,
body.vmcr-dir-page.vmcr-edit-fs .grigsi-top-bar-spacer,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-dir-bar,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-shell-top,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-monitors,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-controls--bar,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-workbench,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-desk-row,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-tools,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-hotkeys,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-back-panel,
body.vmcr-dir-page.vmcr-edit-fs .vmcr-card:not(.vmcr-edit-section) {
  display: none !important;
}

body.vmcr-dir-page.vmcr-edit-fs .vmcr-wrap--director {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.vmcr-dir-page.vmcr-edit-fs .vmcr-edit-section {
  position: fixed;
  inset: 0;
  z-index: 12000;
  margin: 0;
  border-radius: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: auto;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--vmcr-page-bg, #f4f7fb);
  box-shadow: none;
}

body.vmcr-dir-page.vmcr-edit-fs .vmcr-edit-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 0 12px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.98) 60%, transparent);
}

body.vmcr-dir-page.vmcr-edit-fs #vmcr-edit-fs.is-active {
  background: rgba(47, 95, 138, 0.14);
  border-color: rgba(47, 95, 138, 0.4);
}

/* Two timelines stacked */
.vmcr-edit-timelines {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.vmcr-edit-tl {
  border: 1px solid rgba(90, 60, 140, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.7);
}

.vmcr-edit-tl--b {
  border-color: rgba(47, 95, 138, 0.25);
  background: rgba(240,247,255,0.7);
}

.vmcr-edit-tl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vmcr-edit-tl__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(90, 60, 140, 0.18);
  color: #4a1e8a;
  font-size: 0.72rem;
  font-weight: 850;
  flex-shrink: 0;
}

.vmcr-edit-tl__tag--b {
  background: rgba(47, 95, 138, 0.18);
  color: #1e4a8a;
}

.vmcr-edit-tl__source {
  border-radius: 8px;
  border: 1px solid var(--vmcr-line);
  padding: 4px 8px;
  font: inherit;
  font-weight: 650;
  background: #fff;
  max-width: 180px;
}

.vmcr-edit-tl__fname {
  font-size: 0.75rem;
  color: var(--vmcr-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.vmcr-edit-tl__pick {
  cursor: pointer;
}

/* Canvas waveform / timeline bar */
.vmcr-edit-wave {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 8px;
  background: rgba(90, 60, 140, 0.07);
  cursor: crosshair;
  margin-bottom: 4px;
}

.vmcr-edit-tl--b .vmcr-edit-wave {
  background: rgba(47, 95, 138, 0.07);
}

.vmcr-edit-tl__rail {
  margin-bottom: 4px;
}

.vmcr-edit-tl__rail input[type="range"] {
  width: 100%;
  accent-color: #5a3c8c;
}

.vmcr-edit-tl--b .vmcr-edit-tl__rail input[type="range"] {
  accent-color: #2f5f8a;
}

.vmcr-edit-tl__ctrls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.vmcr-edit-tl__marks {
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--vmcr-muted);
}

.vmcr-edit-tl__time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--vmcr-muted);
  white-space: nowrap;
  min-width: 76px;
  text-align: right;
}

.vmcr-edit-video {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
  background: #0c121c;
  margin-top: 8px;
}

.vmcr-edit-video[hidden],
.vmcr-edit-audio[hidden],
.vmcr-edit-still[hidden] {
  display: none !important;
}

.vmcr-edit-audio {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.vmcr-edit-still {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
  background: #0c121c;
  margin-top: 8px;
}

#vmcr-edit-b-status {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

#vmcr-edit-b-status.is-error {
  color: #a33a2f;
}

#vmcr-edit-b-status.is-ok {
  color: #1f6b45;
}

/* Playlist */
.vmcr-edit-playlist-wrap {
  margin-bottom: 16px;
}

.vmcr-edit-playlist-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 750;
}

.vmcr-edit-playlist-total {
  color: var(--vmcr-muted);
  font-weight: 650;
  flex: 1;
}

.vmcr-edit-playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  max-height: 240px;
  overflow: auto;
}

.vmcr-edit-pl-empty {
  font-size: 0.82rem;
  color: var(--vmcr-muted);
  padding: 10px 0;
}

.vmcr-edit-pl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--vmcr-line);
  background: rgba(255,255,255,0.78);
  font-size: 0.8rem;
}

.vmcr-edit-pl-item__num {
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--vmcr-muted);
  min-width: 20px;
}

.vmcr-edit-pl-item__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(90, 60, 140, 0.14);
  color: #4a1e8a;
  font-size: 0.62rem;
  font-weight: 850;
  flex-shrink: 0;
}

.vmcr-edit-pl-item__tag--b {
  background: rgba(47, 95, 138, 0.14);
  color: #1e4a8a;
}

.vmcr-edit-pl-item__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vmcr-edit-pl-item__dur {
  color: var(--vmcr-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.vmcr-edit-pl-item__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* Export bar */
.vmcr-edit-export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--vmcr-line);
}

.vmcr-edit-export__label {
  font-size: 0.8rem;
  white-space: nowrap;
}

.vmcr-edit-export__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vmcr-edit-export__opt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.vmcr-edit-export__note {
  width: 100%;
  font-size: 0.7rem;
  color: var(--vmcr-muted);
  margin: 2px 0 0;
}

/* hide/show body */
body.vmcr-dir-page.vmcr-mix-fs .vmcr-edit-section {
  display: none;
}


/* Illustrate on the server: controls in the panel + the drag handles on the Constructor / LIVE screens */
.vmcr-ill-srv {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}
.vmcr-ill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.vmcr-ill-lab {
  min-width: 58px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}
.vmcr-ill-row .is-active {
  background: #2f5f8a;
  color: #fff;
}
.vmcr-ill-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.vmcr-ill-vol-v {
  min-width: 40px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.vmcr-ill-hint {
  font-size: 11px;
  opacity: 0.7;
}
.vmcr-ill-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.vmcr-ill-box {
  position: absolute;
  border: 2px dashed rgba(255, 214, 10, 0.95);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}
.vmcr-ill-box--pane {
  border-style: dotted;
  border-color: rgba(255, 214, 10, 0.55);
  cursor: ew-resize;
}
.vmcr-ill-box__tag {
  position: absolute;
  left: 4px;
  top: 2px;
  font: 600 10px/1.2 system-ui, sans-serif;
  color: #ffd60a;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

/* Illustrate playlist, link and search */
.vmcr-ill-pl {
  display: grid;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(47, 95, 138, 0.15);
}
.vmcr-ill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 180px;
  overflow: auto;
  display: grid;
  gap: 3px;
}
.vmcr-ill-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(47, 95, 138, 0.06);
  cursor: pointer;
  font-size: 13px;
}
.vmcr-ill-list li.is-current {
  background: #2f5f8a;
  color: #fff;
}
.vmcr-ill-list .vmcr-ill-li-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmcr-ill-list .vmcr-ill-li-credit {
  font-size: 10px;
  opacity: 0.75;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmcr-ill-list button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.vmcr-ill-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}
.vmcr-ill-res {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  aspect-ratio: 16 / 10;
}
.vmcr-ill-res img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vmcr-ill-res span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 9px;
  line-height: 1.2;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Talkback (Comms) */
.vmcr-comms-talk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0;
}
.vmcr-comms-talk {
  touch-action: none;
  user-select: none;
}
.vmcr-comms-talk.is-talking {
  background: #c62828;
  color: #fff;
}
.vmcr-comms-talk.is-connecting {
  opacity: 0.7;
}

/* Voice follow: seats, left to right */
.vmcr-voice-seats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.vmcr-voice-seat { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; padding: 2px 4px; }
.vmcr-voice-seat-name { padding: 0 4px; font-size: 0.9em; white-space: nowrap; }
.vmcr-voice-seat-move { background: none; border: 0; color: inherit; cursor: pointer; padding: 2px 4px; font-size: 0.8em; }
.vmcr-voice-seat-move:disabled { opacity: 0.25; cursor: default; }
.vmcr-voice-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
