.app-shell {
  --timeline-zoom: 1;
  --track-sidebar-width: 15.75rem;
  --track-radius: calc(var(--corner) + 0.08rem);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  height: 100vh;
  padding: 1rem;
}

.hud-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18rem 100%, 100% 14rem;
  opacity: 0.18;
  pointer-events: none;
}

.hud-cross {
  position: absolute;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  opacity: 0.36;
}

.hud-cross::before,
.hud-cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.42);
}

.hud-cross::before {
  inset: 0.46rem 0 0.46rem 0;
}

.hud-cross::after {
  inset: 0 0.46rem 0 0.46rem;
}

.hud-cross--top-left {
  top: 22%;
  left: 6%;
}

.hud-cross--center {
  top: 58%;
  left: 43%;
}

.hud-cross--bottom-right {
  right: 4%;
  bottom: 16%;
}

.topbar,
.footer-strip {
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.topbar {
  grid-template-columns: minmax(12rem, 18rem) 1fr auto;
}

.topbar::after,
.footer-strip::after,
.timeline-column::after,
.canvas-column::after,
.inspector-column::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 38%);
  opacity: 0.55;
}

.brand-block h1 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.toolbar-strip,
.footer-controls,
.generate-strip,
.timeline-tools,
.timeline-track-controls,
.track-chip-group,
.compact-readouts,
.readout-stack {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.compact-readouts {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0.58rem 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.tool-button--small {
  min-height: 2.05rem;
  padding: 0.42rem 0.7rem;
}

.tool-button--icon {
  justify-content: center;
  min-width: 2.45rem;
  padding-inline: 0.68rem;
  gap: 0;
}

.tool-button--icon .tool-button__icon {
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 0;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tool-button__icon {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.2rem;
  color: var(--accent-blue);
  font-size: 0.72rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.tool-button__icon svg,
.readout__icon svg,
.safe-guide-toolbar__label svg,
.timeline-track-button__icon svg,
.timeline-play-main__icon svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-chip {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
}

.mode-chip__number {
  font-family: "Saira Semi Condensed", sans-serif;
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 700;
}

.workspace {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(23rem, 31rem) minmax(34rem, 1fr) minmax(16rem, 20rem);
  gap: 1rem;
}

.canvas-column,
.timeline-column,
.inspector-column {
  min-height: 0;
  padding: 1rem;
}

.canvas-column,
.inspector-column {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.inspector-column {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 187, 255, 0.2) transparent;
}

.timeline-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-head--compact {
  margin-bottom: 0.65rem;
}

.section-head--canvas .section-label {
  color: var(--light);
  font-size: 0.98rem;
  letter-spacing: 0.18em;
}

.readout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.35rem;
  padding: 0 0.82rem;
  color: var(--paragraphs);
}

.readout span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.readout__icon {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  color: var(--accent-blue);
}

.readout select {
  min-width: 6rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--light);
  color-scheme: dark;
  appearance: none;
}

.readout select option {
  background: #090909;
  color: var(--light);
}

.hud-select {
  position: relative;
}

.hud-select__trigger {
  justify-content: space-between;
  min-width: 6.2rem;
}

.hud-select__value {
  white-space: nowrap;
}

.hud-select__caret {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--paragraphs);
  font-family: "Saira Semi Condensed", sans-serif;
  font-size: 1rem;
  line-height: 1;
  transition: transform 140ms ease, color 140ms ease;
}

.hud-select.is-open .hud-select__caret {
  transform: rotate(45deg);
  color: var(--accent-blue);
}

.hud-select__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 100%;
  display: grid;
  gap: 0.25rem;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--corner) + 0.02rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(9, 9, 9, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 14px 34px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 25;
}

.hud-select.is-open .hud-select__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hud-select__option {
  min-height: 2rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid transparent;
  border-radius: calc(var(--corner) - 0.1rem);
  background: rgba(255, 255, 255, 0.015);
  color: var(--paragraphs);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  transition:
    border-color 120ms ease,
    color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.hud-select__option:hover,
.hud-select__option.is-active {
  color: var(--light);
  border-color: rgba(136, 187, 255, 0.24);
  background: rgba(94, 130, 187, 0.12);
  box-shadow: 0 0 18px rgba(94, 130, 187, 0.12);
}

.action-readout {
  justify-content: center;
  color: var(--light);
}

.canvas-stage-shell {
  position: relative;
  display: grid;
  gap: 0.65rem;
}

.canvas-stage-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.canvas-stage {
  position: relative;
  min-height: 38rem;
  display: grid;
  place-items: center;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: calc(var(--corner) + 0.12rem);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.05), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent 40%),
    rgba(4, 4, 4, 0.9);
}

.canvas-frame {
  position: relative;
  width: min(24rem, 100%);
  max-width: 100%;
  aspect-ratio: 1080 / 1920;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.045), transparent 60%),
    #020202;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 26px 44px rgba(0, 0, 0, 0.42);
}

.canvas-frame.has-selection {
  box-shadow:
    inset 0 0 0 1px rgba(136, 187, 255, 0.24),
    inset 0 0 0 2px rgba(136, 187, 255, 0.05),
    0 0 32px rgba(94, 130, 187, 0.14),
    0 26px 44px rgba(0, 0, 0, 0.42);
}

.canvas-surface {
  position: absolute;
  inset: 0;
}

.canvas-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -5rem 8rem rgba(0, 0, 0, 0.22);
}

.safe-zone-overlay {
  --safe-top: 0%;
  --safe-right: 0%;
  --safe-bottom: 0%;
  --safe-left: 0%;
  --safe-ui-top: 0%;
  --safe-ui-right: 0%;
  --safe-ui-bottom: 0%;
  --safe-ui-left: 0%;
  --safe-accent: var(--accent-blue);
  --safe-wash: color-mix(in srgb, var(--safe-accent) 18%, transparent);
  --safe-line: color-mix(in srgb, var(--safe-accent) 76%, white 24%);
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.safe-zone-overlay.is-active {
  opacity: 1;
}

.safe-zone-overlay__zone,
.safe-zone-overlay__safe-frame,
.safe-zone-overlay__topbar,
.safe-zone-overlay__right-ui,
.safe-zone-overlay__bottom-ui,
.safe-zone-overlay__badge {
  position: absolute;
}

.safe-zone-overlay__zone {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--safe-accent) 14%, transparent), transparent),
    rgba(5, 5, 5, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(1.5px);
}

.safe-zone-overlay__zone--top {
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-top);
  border-bottom-color: color-mix(in srgb, var(--safe-accent) 30%, transparent);
}

.safe-zone-overlay__zone--right {
  top: var(--safe-top);
  right: 0;
  bottom: var(--safe-bottom);
  width: var(--safe-right);
  border-left-color: color-mix(in srgb, var(--safe-accent) 30%, transparent);
}

.safe-zone-overlay__zone--bottom {
  left: var(--safe-left);
  right: var(--safe-right);
  bottom: 0;
  height: var(--safe-bottom);
  border-top-color: color-mix(in srgb, var(--safe-accent) 30%, transparent);
}

.safe-zone-overlay__zone--left {
  top: var(--safe-top);
  left: 0;
  bottom: var(--safe-bottom);
  width: var(--safe-left);
  border-right-color: color-mix(in srgb, var(--safe-accent) 30%, transparent);
}

.safe-zone-overlay__safe-frame {
  top: var(--safe-top);
  right: var(--safe-right);
  bottom: var(--safe-bottom);
  left: var(--safe-left);
  border: 1px dashed color-mix(in srgb, var(--safe-accent) 62%, white 20%);
  border-radius: 1.15rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px color-mix(in srgb, var(--safe-accent) 18%, transparent);
}

.safe-zone-overlay__safe-frame::before,
.safe-zone-overlay__safe-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.safe-zone-overlay__safe-frame::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--safe-accent) 46%, transparent) 0 1.25rem, transparent 1.25rem calc(100% - 1.25rem), color-mix(in srgb, var(--safe-accent) 46%, transparent) calc(100% - 1.25rem)),
    linear-gradient(180deg, color-mix(in srgb, var(--safe-accent) 46%, transparent) 0 1.25rem, transparent 1.25rem calc(100% - 1.25rem), color-mix(in srgb, var(--safe-accent) 46%, transparent) calc(100% - 1.25rem));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 0.18rem;
  opacity: 0.72;
}

.safe-zone-overlay__topbar {
  top: 0.9rem;
  left: max(var(--safe-left), 0.8rem);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(var(--safe-mode-width), calc(100% - var(--safe-ui-right) - 1.6rem));
  min-width: 6rem;
  opacity: 0.8;
}

.safe-zone-overlay__top-pill,
.safe-zone-overlay__top-line,
.safe-zone-overlay__caption-chip,
.safe-zone-overlay__caption-line,
.safe-zone-overlay__right-dot,
.safe-zone-overlay__right-pill {
  display: block;
  background: color-mix(in srgb, var(--safe-accent) 52%, rgba(255, 255, 255, 0.1));
}

.safe-zone-overlay__top-pill {
  width: 2.4rem;
  height: 0.56rem;
  border-radius: 999px;
}

.safe-zone-overlay__top-line {
  flex: 1;
  height: 0.16rem;
  border-radius: 999px;
  opacity: 0.6;
}

.safe-zone-overlay__right-ui {
  top: calc(var(--safe-ui-top) + 0.9rem);
  right: 0.85rem;
  bottom: calc(var(--safe-ui-bottom) + 1.15rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  width: max(var(--safe-ui-right), 3.75rem);
  opacity: 0.84;
}

.safe-zone-overlay__right-dot {
  width: 2.2rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.32), transparent 45%),
    color-mix(in srgb, var(--safe-accent) 44%, rgba(255, 255, 255, 0.06));
  border: 1px solid color-mix(in srgb, var(--safe-accent) 30%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 18px color-mix(in srgb, var(--safe-accent) 14%, transparent);
}

.safe-zone-overlay__right-pill {
  width: 1.65rem;
  height: 0.42rem;
  border-radius: 999px;
  opacity: 0.72;
}

.safe-zone-overlay__right-pill--small {
  width: 1.1rem;
}

.safe-zone-overlay__bottom-ui {
  left: 0.85rem;
  right: calc(var(--safe-ui-right) + 1.1rem);
  bottom: 0.9rem;
  display: grid;
  gap: 0.36rem;
  padding-left: var(--safe-ui-left);
  opacity: 0.88;
}

.safe-zone-overlay__caption-chip {
  width: 5rem;
  height: 0.6rem;
  border-radius: 999px;
}

.safe-zone-overlay__caption-line {
  width: min(74%, 15rem);
  height: 0.18rem;
  border-radius: 999px;
  opacity: 0.72;
}

.safe-zone-overlay__caption-line--short {
  width: min(48%, 10rem);
  opacity: 0.5;
}

.safe-zone-overlay.is-wide-caption .safe-zone-overlay__caption-line {
  width: min(82%, 16rem);
}

.safe-zone-overlay.is-full-width-safe .safe-zone-overlay__safe-frame {
  right: 0;
}

.safe-zone-overlay__badge {
  top: 0.95rem;
  right: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);
}

.safe-zone-overlay__badge-label {
  color: var(--paragraphs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
}

.safe-zone-overlay__badge-value {
  color: color-mix(in srgb, var(--safe-accent) 84%, white 16%);
  font-family: "Saira Semi Condensed", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.safe-guide-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.72);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.18);
}

.safe-guide-toolbar__label {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--accent-blue);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-right: 0.35rem;
}

.safe-guide-button {
  min-width: 2.55rem;
  min-height: 1.95rem;
  padding: 0.36rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--paragraphs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.safe-guide-button:hover {
  color: var(--light);
  transform: translateY(-1px);
  border-color: rgba(136, 187, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(94, 130, 187, 0.1);
}

.safe-guide-button.is-active {
  color: var(--light);
  border-color: rgba(136, 187, 255, 0.34);
  background: rgba(94, 130, 187, 0.16);
  box-shadow:
    0 0 0 1px rgba(136, 187, 255, 0.08),
    0 0 22px rgba(94, 130, 187, 0.18);
}

.canvas-frame.is-dragging-over,
.canvas-frame.clone {
  box-shadow:
    inset 0 0 0 1px rgba(136, 187, 255, 0.26),
    0 0 28px rgba(94, 130, 187, 0.18),
    0 26px 44px rgba(0, 0, 0, 0.42);
}

.drop-here {
  position: absolute;
  inset: 50% auto auto 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.95rem 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--corner) + 0.04rem);
  transform: translate(-50%, -50%);
  background: rgba(5, 5, 5, 0.72);
  text-align: center;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.drop-here__title {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
}

.drop-here__hint {
  color: var(--paragraphs);
  font-size: 0.74rem;
}

.upload-panel,
.inspector-card,
.tips-card {
  position: relative;
  z-index: 1;
  padding: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--corner) + 0.06rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%),
    rgba(15, 15, 15, 0.76);
}

.upload-panel.is-empty {
  display: none;
}

.upload-status-list {
  display: grid;
  gap: 0.6rem;
}

.upload_status_item {
  display: grid;
  gap: 0.45rem;
  padding: 0.68rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--corner) - 0.04rem);
  background: rgba(255, 255, 255, 0.025);
}

.upload_header_wrapper {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.upload_file_name {
  color: var(--light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload_progress_text {
  color: var(--accent-blue);
}

.upload_progress_bar_wrapper {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.upload_progress_bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(136, 187, 255, 0.4), rgba(136, 187, 255, 0.9));
}

.upload_cancel_button {
  display: none;
}

.timeline-stack {
  position: relative;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.ver-timeline-main,
.ver_video-timeline {
  position: relative;
  display: grid;
  grid-template-columns: var(--track-sidebar-width) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.86rem;
  border-radius: calc(var(--corner) + 0.12rem);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.ver-timeline-main:hover,
.ver_video-timeline:hover {
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.ver_video-timeline[data-template="true"] {
  display: none;
}

.ver_video-timeline.is-active,
.ver-timeline-main.is-active {
  border-color: rgba(136, 187, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(136, 187, 255, 0.08),
    0 0 34px rgba(94, 130, 187, 0.18);
  background:
    linear-gradient(180deg, rgba(136, 187, 255, 0.04), transparent 48%),
    rgba(18, 18, 18, 0.92);
}

.ver_video-timeline.is-active::before,
.ver-timeline-main.is-active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(136, 187, 255, 0.1), rgba(136, 187, 255, 0.95), rgba(136, 187, 255, 0.08));
  border-radius: 999px;
}

.ver_track-sidebar {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 0.95rem;
  padding: 0.15rem 0;
}

.ver_track-sidebar--master {
  gap: 0.8rem;
}

.timeline-track-meta {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.ver_video-name {
  font-family: "Saira Semi Condensed", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ver_track-summary {
  color: var(--paragraphs);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ver_track-badge {
  display: inline-grid;
  place-items: center;
  min-width: 3.15rem;
  min-height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--corner) - 0.04rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(255, 255, 255, 0.02);
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.ver_track-badge--master {
  color: #ff8d88;
}

.timeline-track-controls {
  flex-wrap: wrap;
  gap: 0.45rem;
}

.timeline-track-controls--master {
  align-items: stretch;
}

.ver_main-timecode {
  min-width: 7.5rem;
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--corner) - 0.02rem);
  background: rgba(255, 255, 255, 0.03);
}

.ver_main-timecode-current,
.ver_main-timecode-total {
  display: block;
  font-family: "Saira Semi Condensed", sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

.ver_main-timecode-current {
  color: var(--light);
  font-size: 1rem;
  letter-spacing: 0.09em;
}

.ver_main-timecode-total {
  color: var(--paragraphs);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.timeline-play-main {
  display: inline-grid;
  place-items: center;
  min-width: 3.2rem;
  min-height: 3rem;
  padding: 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-play-main__icon {
  font-size: 0.76rem;
}

.timeline-play-main.playing {
  background: rgba(125, 195, 125, 0.12);
  border-color: rgba(125, 195, 125, 0.22);
}

.ver_track-stage {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 187, 255, 0.24) transparent;
}

.ver_track-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--track-radius);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  background-size: 8% 100%, 100% 100%;
  opacity: 0.2;
}

.ver_track-stage::-webkit-scrollbar {
  height: 0.45rem;
}

.ver_track-stage::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(136, 187, 255, 0.2);
}

.ver_timeline-ruler {
  position: relative;
  min-height: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.015);
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.ver_timeline-ruler__tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
}

.ver_timeline-ruler__tick--major {
  height: 1rem;
  background: rgba(255, 255, 255, 0.24);
}

.ver_timeline-ruler__label {
  position: absolute;
  top: 0.3rem;
  transform: translateX(-50%);
  color: var(--paragraphs);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ver-timeline-main-bar,
.ver_progress-bar,
.ver_segments_container,
.ver_audio_container,
.ver_timeline-ruler,
.audio-track-lane {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--track-radius);
  overflow: hidden;
  width: max(100%, calc(100% * var(--timeline-zoom, 1)));
}

.ver-timeline-main-bar,
.ver_progress-bar {
  min-height: 1.2rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 60%),
    rgba(255, 255, 255, 0.02);
}

.ver-timeline-main-bar {
  min-height: 4.4rem;
  display: grid;
  grid-template-rows: 2rem 1fr;
  border-radius: var(--track-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 58%),
    rgba(255, 255, 255, 0.02);
}

.ver_segments_container {
  min-height: 5.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    rgba(255, 255, 255, 0.012);
}

.ver-timeline-main-progressbar,
.ver_progress {
  position: absolute;
  inset: auto auto 0 0;
  width: 0;
  height: calc(100% - 2rem);
  background: linear-gradient(90deg, rgba(167, 0, 0, 0.08), rgba(255, 84, 84, 0.18));
}

.ver-timeline-main-playhead,
.ver_playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ff625d;
  box-shadow: 0 0 12px rgba(255, 84, 79, 0.52);
}

.ver-timeline-main-playhead {
  top: 0.5rem;
  bottom: 0.45rem;
}

.ver_playhead::before,
.ver-timeline-main-playhead::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.18rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ff8b86;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(255, 98, 93, 0.48);
}

.ver_time-display {
  display: inline-flex;
  align-items: center;
  min-height: 1.82rem;
  padding: 0 0.55rem;
  color: var(--paragraphs);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--corner) - 0.08rem);
  background: rgba(255, 255, 255, 0.025);
}

.timeline-cut-toggle,
.timeline-sound {
  min-height: 1.82rem;
  min-width: 1.92rem;
  padding: 0.28rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.timeline-track-button {
  display: inline-grid;
  place-items: center;
}

.timeline-track-button__icon {
  display: inline-grid;
  place-items: center;
  width: 0.92rem;
  height: 0.92rem;
}

.ver_progress-bar {
  min-height: 0.95rem;
  margin-bottom: -1px;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: var(--track-radius);
  border-top-right-radius: var(--track-radius);
}

.ver_progress {
  inset: 0 auto 0 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(167, 0, 0, 0.08), rgba(255, 84, 84, 0.2));
}

.ver_progress-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.ver_segments_container {
  border-top: 0;
  border-bottom: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ver_audio_container {
  min-height: 1.9rem;
  margin-top: -1px;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: var(--track-radius);
  border-bottom-right-radius: var(--track-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(255, 255, 255, 0.01);
  background-size: 100% 100%, 7.5% 100%, 100% 100%;
  transition: opacity 120ms ease;
}

.ver_audio_container.is-muted {
  opacity: 0.42;
}

.ver_audio_clip {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  min-width: 1.8rem;
  padding: 0;
  border: 1px solid rgba(136, 187, 255, 0.14);
  border-radius: calc(var(--corner) - 0.18rem);
  background:
    linear-gradient(180deg, rgba(136, 187, 255, 0.12), rgba(25, 52, 76, 0.2)),
    rgba(8, 12, 16, 0.88);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    opacity 120ms ease,
    transform 120ms ease;
}

.ver_audio_clip:hover,
.ver_audio_clip.is-active {
  border-color: rgba(136, 187, 255, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(136, 187, 255, 0.16),
    0 0 18px rgba(94, 130, 187, 0.16);
  transform: translateY(-1px);
}

.ver_audio_wave {
  position: absolute;
  inset: 0.18rem 0.24rem 0.16rem;
  display: flex;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
}

.ver_audio_wave-bar {
  flex: 1 1 auto;
  min-width: 0;
  align-self: flex-end;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(222, 240, 255, 0.16), rgba(222, 240, 255, 0.7));
  opacity: 0.92;
}

.ver_audio_fade {
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  min-width: 0;
  opacity: 0;
  transition: opacity 120ms ease, width 80ms linear;
  z-index: 2;
}

.ver_audio_fade.is-visible,
.ver_audio_clip:hover .ver_audio_fade,
.ver_audio_clip.is-active .ver_audio_fade {
  opacity: 1;
}

.ver_audio_fade--in {
  left: 0;
}

.ver_audio_fade--out {
  right: 0;
}

.ver_audio_fade-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ver_audio_fade-path {
  fill: none;
  stroke: rgba(223, 241, 255, 0.88);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(94, 130, 187, 0.14));
}

.ver_audio_fade-handle {
  position: absolute;
  top: 50%;
  width: 0.56rem;
  height: 0.56rem;
  border: 1px solid rgba(223, 241, 255, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(223, 241, 255, 0.24), rgba(136, 187, 255, 0.06)),
    rgba(6, 8, 11, 0.9);
  box-shadow:
    0 0 0 1px rgba(136, 187, 255, 0.08),
    0 0 14px rgba(94, 130, 187, 0.14);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  pointer-events: auto;
}

.ver_audio_fade-handle--in {
  left: 100%;
}

.ver_audio_fade-handle--out {
  left: 0;
}

.timeline-sound.is-active {
  background: rgba(99, 184, 121, 0.16);
  border-color: rgba(99, 184, 121, 0.28);
  color: #d5f2dd;
  box-shadow:
    0 0 0 1px rgba(99, 184, 121, 0.08),
    0 0 22px rgba(99, 184, 121, 0.18);
}

.timeline-cut-toggle.is-active,
.tool-button.is-active,
.readout.is-active,
.timeline-play-main.is-active {
  box-shadow:
    0 0 0 1px rgba(136, 187, 255, 0.08),
    0 0 24px rgba(94, 130, 187, 0.18);
}

.ver_segment {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  min-width: 2.8rem;
  padding: 0.58rem 0.62rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right-color: rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--corner) - 0.06rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 44%, rgba(0, 0, 0, 0.14)),
    rgba(14, 18, 22, 0.96);
  color: rgba(235, 243, 252, 0.94);
  overflow: hidden;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.ver_segment::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18));
  opacity: 0.58;
}

.ver_segment_thumbs {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(3rem, 1fr);
  gap: 1px;
  opacity: 0.68;
  pointer-events: none;
}

.ver_segment_thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.78) contrast(1.02);
}

.ver_segment:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 20px rgba(4, 14, 19, 0.24);
}

.ver_segment.is-active {
  border-color: rgba(136, 187, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(136, 187, 255, 0.16), rgba(32, 86, 116, 0.34)),
    rgba(13, 19, 26, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(136, 187, 255, 0.28),
    0 0 28px rgba(94, 130, 187, 0.24);
  filter: saturate(1.08);
}

.ver_segment.dragging {
  opacity: 0.58;
  filter: saturate(0.82);
}

.ver_segment.copying {
  border-style: dashed;
}

.ver_segment.cut-in,
.ver_segment.cut-out {
  border-color: rgba(255, 196, 118, 0.68);
  box-shadow: 0 0 0 1px rgba(255, 196, 118, 0.18);
}

.ver_segment.drop-before {
  box-shadow:
    inset 3px 0 0 rgba(136, 187, 255, 0.9),
    0 0 22px rgba(94, 130, 187, 0.18);
}

.ver_segment.drop-after {
  box-shadow:
    inset -3px 0 0 rgba(136, 187, 255, 0.9),
    0 0 22px rgba(94, 130, 187, 0.18);
}

.ver_segment_name,
.ver_segment_time {
  position: relative;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ver_segment_name {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ver_segment_time {
  color: rgba(233, 240, 248, 0.9);
  font-size: 0.76rem;
  margin-bottom: 0.28rem;
}

.segment_line {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.ver_drop_zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.ver_drop_zone-left {
  left: 0;
}

.ver_drop_zone-right {
  right: 0;
}

.ver_drop_zone::before {
  content: "";
  width: 2px;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    -4px 0 0 rgba(255, 255, 255, 0.04),
    4px 0 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: scaleY(0.82);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.ver_segment.is-active .ver_drop_zone::before {
  opacity: 0.5;
}

.ver_segment.cut-in .ver_drop_zone-left::before,
.ver_segment.cut-out .ver_drop_zone-right::before,
.ver_segment.is-active:hover .ver_drop_zone:hover::before {
  opacity: 1;
  transform: scaleY(1);
  background: rgba(255, 214, 145, 0.92);
  box-shadow:
    -4px 0 0 rgba(255, 214, 145, 0.36),
    4px 0 0 rgba(255, 214, 145, 0.36),
    0 0 12px rgba(255, 196, 118, 0.24);
}

.ver_segment_marker,
.ver_snap_line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.ver_snap_line {
  background: linear-gradient(180deg, rgba(255, 230, 153, 0.9), rgba(255, 188, 88, 0.2));
  box-shadow: 0 0 16px rgba(255, 196, 118, 0.26);
  z-index: 12;
}

.ver_segments_drop {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  border-left: 1px dashed rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(136, 187, 255, 0.08), transparent);
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.ver_segments_drop.drop-zone-active {
  box-shadow:
    inset 0 0 0 1px rgba(136, 187, 255, 0.34),
    0 0 20px rgba(94, 130, 187, 0.14);
  background: linear-gradient(90deg, rgba(136, 187, 255, 0.16), transparent);
}

.audio-lane {
  display: grid;
  gap: 0.8rem;
}

.audio-lane__head {
  margin: 0;
}

.audio-lane__empty {
  color: var(--paragraphs);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-lane__list {
  display: grid;
  gap: 0.7rem;
}

.ver_track-badge--audio {
  color: #91e0ba;
}

.audio-track {
  position: relative;
  display: grid;
  grid-template-columns: var(--track-sidebar-width) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.86rem;
  border-radius: calc(var(--corner) + 0.12rem);
}

.audio-track-stage {
  overflow-x: auto;
}

.audio-track-lane {
  min-height: 4.95rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--track-radius);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(255, 255, 255, 0.014);
  background-size: 8% 100%, 100% 100%, 100% 100%;
}

.audio-clip {
  position: absolute;
  top: 0.42rem;
  bottom: 0.42rem;
  min-width: 3rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(145, 224, 186, 0.24);
  border-radius: calc(var(--corner) - 0.04rem);
  background:
    linear-gradient(180deg, rgba(145, 224, 186, 0.16), rgba(32, 92, 70, 0.52)),
    rgba(11, 17, 15, 0.9);
  color: #ddfff0;
  overflow: hidden;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
  cursor: grab;
}

.audio-clip:hover,
.audio-clip.is-active {
  border-color: rgba(145, 224, 186, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(145, 224, 186, 0.14),
    0 0 24px rgba(67, 166, 126, 0.18);
  transform: translateY(-1px);
}

.audio-clip.is-locked {
  opacity: 0.55;
}

.audio-clip__wave {
  position: absolute;
  inset: 0.48rem 0.68rem;
  display: flex;
  align-items: flex-end;
  gap: 0;
  opacity: 0.7;
  pointer-events: none;
}

.audio-clip__wave-bar {
  flex: 1 1 auto;
  min-width: 0;
  align-self: flex-end;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(221, 255, 240, 0.18), rgba(221, 255, 240, 0.82));
}

.audio-clip__fade {
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  min-width: 0;
  opacity: 0;
  transition: opacity 120ms ease, width 80ms linear;
  z-index: 2;
}

.audio-clip__fade.is-visible,
.audio-clip:hover .audio-clip__fade,
.audio-clip.is-active .audio-clip__fade {
  opacity: 1;
}

.audio-clip__fade--in {
  left: 0;
}

.audio-clip__fade--out {
  right: 0;
}

.audio-clip__fade-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.audio-clip__fade-path {
  fill: none;
  stroke: rgba(220, 255, 238, 0.92);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(145, 224, 186, 0.24));
}

.audio-clip__fade-handle {
  position: absolute;
  top: -0.05rem;
  width: 0.82rem;
  height: 0.82rem;
  border: 1px solid rgba(220, 255, 238, 0.5);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(220, 255, 238, 0.24), rgba(145, 224, 186, 0.08)),
    rgba(7, 10, 8, 0.92);
  box-shadow:
    0 0 0 1px rgba(145, 224, 186, 0.08),
    0 0 18px rgba(145, 224, 186, 0.18);
  transform: translateX(-50%);
  cursor: ew-resize;
  pointer-events: auto;
}

.audio-clip__fade-handle--in {
  right: -0.41rem;
}

.audio-clip__fade-handle--out {
  left: 0;
}

.audio-clip__label,
.audio-clip__meta {
  position: relative;
  z-index: 2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-clip__label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-clip__meta {
  margin-top: 0.22rem;
  color: rgba(221, 255, 240, 0.76);
  font-size: 0.7rem;
}

.audio-clip__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
}

.audio-clip__edge--left {
  left: 0;
}

.audio-clip__edge--right {
  right: 0;
}

.audio-clip__edge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.7rem;
  width: 2px;
  height: calc(100% - 1.4rem);
  border-radius: 999px;
  background: rgba(214, 255, 233, 0.74);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 120ms ease, box-shadow 120ms ease;
}

.audio-clip:hover .audio-clip__edge::before,
.audio-clip__edge:hover::before,
.audio-clip.is-active .audio-clip__edge::before {
  opacity: 1;
  box-shadow: 0 0 14px rgba(145, 224, 186, 0.22);
}

.inspector-card {
  min-height: 12rem;
  max-height: min(38rem, 58vh);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 187, 255, 0.18) transparent;
}

.inspector-card.is-active {
  border-color: rgba(136, 187, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(136, 187, 255, 0.04),
    0 0 26px rgba(94, 130, 187, 0.12);
}

.inspector-empty {
  color: var(--paragraphs);
  font-size: 0.88rem;
}

.fold-card,
.inspector-fold {
  overflow: hidden;
}

.fold-card__summary,
.inspector-fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.fold-card__summary::-webkit-details-marker,
.inspector-fold__summary::-webkit-details-marker {
  display: none;
}

.fold-card__summary {
  padding: 0.1rem 0;
}

.fold-card__label,
.inspector-fold__summary span:first-child {
  color: var(--paragraphs);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fold-card__caret,
.inspector-fold__caret {
  display: inline-grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: var(--paragraphs);
  transition:
    transform 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.fold-card[open] .fold-card__caret,
.inspector-fold[open] .inspector-fold__caret {
  transform: rotate(45deg);
  color: var(--accent-blue);
  border-color: rgba(136, 187, 255, 0.22);
  box-shadow: 0 0 16px rgba(94, 130, 187, 0.12);
}

.fold-card__body {
  margin-top: 0.7rem;
}

.inspector-fold {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.inspector-fold:first-of-type {
  margin-top: 0.4rem;
}

.inspector-fold__body {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.75rem;
}

.inspector-grid {
  display: grid;
  gap: 0.6rem;
}

.inspector-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.inspector-row strong {
  color: var(--paragraphs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inspector-row span {
  color: var(--light);
  text-align: right;
}

.inspector-section {
  display: grid;
  gap: 0.5rem;
}

.inspector-section + .inspector-section {
  margin-top: 0.9rem;
}

.inspector-headline {
  display: grid;
  gap: 0.14rem;
}

.inspector-headline strong,
.inspector-section__label {
  color: var(--paragraphs);
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.inspector-headline span {
  color: var(--light);
  font-family: "Saira Semi Condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-row,
.inspector-inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.align-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.inspector-chip {
  min-height: 2rem;
  padding: 0.4rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--corner) - 0.1rem);
  background: rgba(255, 255, 255, 0.02);
  color: var(--paragraphs);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.68rem;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease,
    color 120ms ease;
}

.inspector-chip:hover,
.inspector-chip.is-active {
  color: var(--light);
  border-color: rgba(136, 187, 255, 0.24);
  background: rgba(94, 130, 187, 0.1);
  box-shadow: 0 0 18px rgba(94, 130, 187, 0.14);
}

.inspector-chip--icon {
  justify-content: center;
  min-width: 0;
}

.inspector-control {
  display: grid;
  gap: 0.28rem;
}

.inspector-control span {
  color: var(--paragraphs);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inspector-control input {
  min-height: 2rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--corner) - 0.1rem);
  background: rgba(255, 255, 255, 0.02);
  color: var(--light);
  accent-color: var(--accent-blue);
}

.layer-panel {
  display: grid;
  gap: 0.45rem;
}

.layer-panel__empty {
  color: var(--paragraphs);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.layer-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.56rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--corner) - 0.02rem);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease,
    background-color 120ms ease;
}

.layer-row:hover,
.layer-row.is-active {
  border-color: rgba(136, 187, 255, 0.22);
  box-shadow: 0 0 18px rgba(94, 130, 187, 0.12);
  transform: translateY(-1px);
}

.layer-row__icon,
.layer-row__toggle {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--corner) - 0.12rem);
}

.layer-row__icon {
  color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.03);
}

.layer-row__icon svg,
.layer-row__toggle svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layer-row__meta {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
}

.layer-row__meta strong {
  color: var(--light);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-row__meta span {
  color: var(--paragraphs);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.layer-row__actions {
  display: inline-flex;
  gap: 0.32rem;
}

.layer-row__toggle {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--paragraphs);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease,
    background-color 120ms ease;
}

.layer-row__toggle:hover,
.layer-row__toggle.is-on,
.layer-row__toggle:not(.is-off) {
  color: var(--light);
}

.layer-row__toggle:hover,
.layer-row__toggle.is-on {
  border-color: rgba(136, 187, 255, 0.22);
  box-shadow: 0 0 16px rgba(94, 130, 187, 0.12);
}

.layer-row__toggle.is-off {
  opacity: 0.5;
}

.hint-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hint-list li {
  display: grid;
  grid-template-columns: 8.25rem 1fr;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.hint-list li span:first-child {
  color: var(--accent-blue);
  text-transform: uppercase;
}

.footer-strip {
  grid-template-columns: 1fr;
}

.generate-strip {
  justify-content: flex-end;
}

.generate-button {
  min-width: 9rem;
  min-height: 3rem;
  padding: 0 1.1rem;
  font-family: "Saira Semi Condensed", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.generate-status {
  min-width: 18rem;
  max-width: 28rem;
  width: 100%;
  display: grid;
  gap: 0.45rem;
}

.generate-status__bar {
  position: relative;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.progress_bar_generate {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(94, 130, 187, 0.32), rgba(99, 184, 121, 0.9));
  transition: width 180ms ease;
}

.generate-status__label {
  min-height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: calc(var(--corner) + 0.04rem);
  background: rgba(99, 184, 121, 0.12);
  color: #cdebd7;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

body.timeline-resizing,
body.timeline-resizing * {
  cursor: ew-resize !important;
}

.border-container {
  z-index: 7;
}

.video-border-wrapper {
  border-radius: 0.5rem;
  box-shadow:
    inset 0 0 0 1px rgba(136, 187, 255, 0.18),
    0 0 0 1px rgba(136, 187, 255, 0.18),
    0 0 28px rgba(94, 130, 187, 0.24);
}

@media (max-width: 1500px) {
  .workspace {
    grid-template-columns: minmax(20rem, 27rem) minmax(30rem, 1fr) minmax(15rem, 18rem);
  }

  .app-shell {
    --track-sidebar-width: 13.4rem;
  }
}

@media (max-width: 1260px) {
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .footer-strip,
  .topbar {
    grid-template-columns: 1fr;
  }

  .generate-strip {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .canvas-frame {
    width: min(24rem, 100%);
  }

  .canvas-stage-meta {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .app-shell {
    --track-sidebar-width: 1fr;
    padding: 0.75rem;
  }

  .ver-timeline-main,
  .ver_video-timeline,
  .audio-track {
    grid-template-columns: 1fr;
  }

  .toolbar-strip,
  .timeline-tools,
  .timeline-track-controls,
  .footer-controls {
    flex-wrap: wrap;
  }

  .safe-guide-toolbar {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-radius: calc(var(--corner) + 0.04rem);
  }

  .hint-list li {
    grid-template-columns: 1fr;
  }
}
