/*CapCut-style editor layout + site-wide motion polish. Loaded last; layout only, no behaviour.
   Studied on the user's CapCut 9.2 (scratch project 0927): full-height workspace, tools panel left, player centre, inspector right,
   full-width multi-track timeline with a time ruler across the bottom, compact top bar with Export on the right. */

/* ---------- site-wide: smooth, consistent motion ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: #323234 transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background: #323234;
  border-radius: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
button,
a,
.lib-card,
.proj-tile,
.db-card,
.recent-card,
.coll-tile,
select,
input,
textarea,
.tl-block {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}
button:not(:disabled):active {
  transform: translateY(1px) scale(0.99);
}
:focus-visible {
  outline: 2px solid #53fc18aa;
  outline-offset: 2px;
}
.home-page:not([hidden]) {
  animation: rc-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
body:not(.at-home) main {
  animation: rc-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
dialog[open] {
  animation: rc-pop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(3px);
  animation: rc-fade 0.2s ease both;
}
#toast:not([hidden]) {
  animation: rc-in 0.25s ease both;
}
.lib-card:hover,
.proj-tile:hover,
.recent-card:hover {
  transform: translateY(-2px);
}
.db-card:hover {
  border-color: #3c3c3e;
}
@keyframes rc-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rc-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- editor: time ruler (desktop layout only) ---------- */
.tl-ruler {
  display: none;
}

/* the version-history clock sits on the save-status line */
header #saveStatus {
  display: inline-block;
}
header .versions-btn {
  min-height: 0;
  margin-left: 6px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 11px;
  line-height: 1;
}
/* CHATGPT: compact caption correction workspace, bounded list and readable form controls. */
.cc-cats button {
  min-width: 54px;
  flex: 0 0 54px;
}
.cc-transition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.cc-transition-grid button {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 16px 8px;
  border-radius: 12px;
}
.cc-transition-grid button > span {
  font-size: 28px;
}
.cc-transition-grid button[aria-pressed='true'] {
  border-color: #afafb2;
  background: #29292b;
}
/* CLAUDE 10-01: per-cut transitions: which cut, the tiles in families, the length */
.cc-cuts .cc-transition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.cc-cuts .cc-transition-grid button {
  gap: 4px;
  padding: 10px 4px;
  font-size: 12px;
}
.cc-cuts .cc-transition-grid button > span {
  font-size: 20px;
}
.cc-cut-family {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #a1a1aa;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cc-cut-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.cc-cut-row select {
  flex: 1;
  min-width: 0;
}
.cc-cut-note {
  margin: 0 0 12px;
  color: #a1a1aa;
  font-size: 12px;
}
.cc-adjust-entry {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.cc-adjust-entry .cc-adjust-value {
  width: 90px;
  padding: 7px 9px;
  font: inherit;
}
.cc-adjust-entry button {
  font-size: 12px;
  padding: 7px 10px;
}
.cc-fx button[hidden] {
  display: none;
}
.caption-workshop {
  display: grid;
  gap: 12px;
  padding: 4px;
  font-size: 13px;
}
.caption-workshop h3 {
  font-size: 17px;
  margin: 0;
}
.caption-workshop p {
  margin: 0;
  color: var(--muted, #a8adb8);
  line-height: 1.5;
}
.caption-workshop > label {
  display: grid;
  gap: 6px;
}
.caption-workshop input:not([type='checkbox']),
.caption-workshop textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 10px 12px;
  border-radius: 9px;
}
.cw-options,
.cw-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cw-options label {
  display: flex;
  gap: 5px;
  align-items: center;
}
.cw-options input {
  width: auto;
  margin: 0;
}
.cw-actions .cw-apply {
  flex: 1;
}
.cw-results {
  display: grid;
  gap: 10px;
}
.cw-line {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #323640;
  border-radius: 12px;
  background: #171b22;
}
.cw-line.active {
  border-color: #afafb2;
}
.cw-line .cw-time {
  justify-self: start;
  padding: 3px 0;
  background: transparent;
  border: 0;
  color: #c8c8cb;
  font-variant-numeric: tabular-nums;
}
.cw-line .cw-preview {
  color: #e1e1e4;
  overflow-wrap: anywhere;
}
.caption-workshop button:focus-visible,
.caption-workshop input:focus-visible,
.caption-workshop textarea:focus-visible {
  outline: 2px solid #afafb2;
  outline-offset: 2px;
}
@media (min-width: 1100px) {
  body:not(.at-home) {
    overflow: hidden;
  }
  header {
    height: 52px;
    padding: 0 14px;
    gap: 16px;
    background: #0b0d0b;
    border-bottom: 1px solid #202022;
  }
  header .brand {
    min-width: 0;
    font-size: 17px;
    gap: 9px;
  }
  header .brand small {
    display: none;
  }
  header .brand .studio-mark {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
  header .project-title input {
    font-size: 14px;
    padding: 6px 8px;
  }
  header #saveStatus {
    font-size: 11px;
  }
  header .header-actions {
    gap: 8px;
  }
  header .header-actions button {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 7px;
  }
  header .local-pill {
    display: none;
  }

  main {
    max-width: none;
    height: calc(100dvh - 52px);
    min-height: 560px;
    padding: 8px;
    gap: 8px;
    position: relative;
    grid-template-columns: clamp(290px, 24vw, 390px) minmax(0, 1fr) clamp(290px, 24vw, 390px);
    grid-template-rows: minmax(0, 1fr) auto auto auto clamp(215px, 34vh, 340px);
    grid-template-areas: 'lib player insp' 'lib transport insp' 'lib seq insp' 'bar bar bar' 'tl tl tl';
  }
  main::before {
    content: '';
    grid-column: 2;
    grid-row: 1/4;
    background: #070907;
    border: 1px solid #212123;
    border-radius: 10px;
    z-index: 0;
  }
  main::after {
    content: '';
    grid-area: tl;
    background: #0b0e0b;
    border: 1px solid #212123;
    border-radius: 10px;
    z-index: 0;
  }
  main > *,
  .stage > * {
    z-index: 1;
  }
  .library,
  .inspector {
    min-height: 0;
    max-height: none;
    overflow: auto;
    border-radius: 10px;
    background: #0f120f;
    border-color: #212123;
    padding: 14px;
  }
  .library {
    grid-area: lib;
  }
  .inspector {
    grid-area: insp;
  }
  .stage {
    display: contents;
  }
  .stage-heading,
  .stage-note {
    display: none;
  }
  .preview-wrap {
    grid-area: player;
    align-self: center;
    justify-self: center;
    margin: 14px 14px 0;
    height: calc(100% - 14px);
    max-height: calc(100% - 14px);
    min-height: 0;
    max-width: calc(100% - 28px);
    flex: none;
    border-radius: 6px;
    border-color: #2b2b2d;
    box-shadow: 0 12px 44px #000a;
  }
  .transport {
    grid-area: transport;
    width: auto;
    margin: 0 14px;
    padding: 10px 0 8px;
    gap: 8px;
  }
  .transport #clock,
  .transport #duration {
    font-size: 11px;
    color: #bfbfc2;
  }
  .transport #playBtn {
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    background: #53fc18;
    color: #0f0f11;
    border-color: #53fc18;
    font-size: 13px;
  }
  .sequence-strip {
    grid-area: seq;
    width: auto;
    margin: 0 14px 10px;
  }
  .sequence-strip:empty {
    display: none;
  }
  .trim-bar {
    grid-area: bar;
    width: auto;
    margin: 0;
    justify-content: flex-start;
    background: #0b0e0b;
    border-color: #212123;
    border-radius: 8px;
    padding: 6px 10px;
  }
  .trim-bar > .eyebrow {
    display: inline;
  }
  .job-card {
    position: fixed;
    left: auto;
    right: 18px;
    bottom: 18px;
    width: 380px;
    z-index: 60;
  }

  #editTimeline {
    grid-area: tl;
    margin: 0;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 0;
  }
  #editTimeline[hidden] {
    display: none;
  }
  .tl-tools {
    padding: 5px 10px;
    margin: 0;
    gap: 6px;
    border-bottom: 1px solid #1e1e20;
    flex: none;
  }
  .tl-tools button {
    min-height: 28px;
    padding: 4px 11px;
    font-size: 12px;
    border-radius: 6px;
  }
  .tl-hint {
    font-size: 10px;
  }
  .tl-ruler {
    display: block;
    position: relative;
    flex: none;
    height: 22px;
    margin: 0 14px 0 104px;
    color: #737376;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid #1e1e20;
    background: repeating-linear-gradient(90deg, #2f2f31 0 1px, transparent 1px 10%) bottom/100% 5px no-repeat;
  }
  .tl-ruler span {
    position: absolute;
    top: 3px;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
  }
  .tl-ruler span:first-child {
    transform: none;
  }
  .tl-body {
    flex: 1;
    min-height: 0;
    padding: 6px 14px 10px 10px;
    gap: 8px;
  }
  .tl-labels {
    width: 86px;
    gap: 6px;
  }
  .tl-labels span {
    height: 28px;
    line-height: 28px;
    font-size: 11px;
    color: #949497;
    letter-spacing: 0;
    padding-left: 4px;
    border-radius: 5px;
    background: #111113;
  }
  .tl-labels span:first-child {
    height: 42px;
    line-height: 42px;
  }
  .tl-tracks {
    gap: 6px;
  }
  .tl-track {
    height: 28px;
    background: #131315;
    border-radius: 5px;
    overflow: visible;
  }
  .tl-track[data-track='video'] {
    height: 42px;
  }
  .tl-block {
    top: 2px;
    bottom: 2px;
    display: flex;
    align-items: center;
    line-height: 1.2;
    font-size: 11px;
    padding: 0 8px;
    border-radius: 5px;
  }
  .tl-seg {
    background: linear-gradient(180deg, #4e4e50, #3a3a3c);
    border-color: #737376;
    color: #efeff2;
    font-weight: 550;
  }
  .tl-seg:hover {
    border-color: #b1b1b4;
  }
  .tl-cap {
    background: #394856;
    border: 1px solid #4e6072;
    opacity: 1;
  }
  .tl-ov {
    background: #6a5616;
    border-color: #a08526;
  }
  .tl-music {
    background: #1f4260;
    border: 1px solid #2f5e86;
  }
  .tl-playhead {
    top: -28px;
    bottom: -4px;
    width: 2px;
    background: #ffffff;
    box-shadow: 0 0 0 1px #0006;
  }
  .tl-playhead::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 14px;
    height: 12px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
    /* CLAUDE 10-01: the head is the grab handle (the line itself stays click-through for the clips under it) */
    pointer-events: auto;
    cursor: ew-resize;
  }
  /* CLAUDE 10-01: the selected track (click an empty lane or its name), as in CapCut */
  .tl-track.track-selected {
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }
  .tl-labels > span.track-selected {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }
}

/* logo is a link back to Clipping; the timeline is always there, empty lanes say what goes in them */
a.brand {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.brand:hover .studio-mark {
  filter: brightness(1.2);
}
.tl-track:empty::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 10px;
  color: #67676a;
  border: 1px dashed #2b2b2d;
  border-radius: 5px;
  pointer-events: none;
}
.tl-track[data-track='video']:empty::after {
  content: 'Your video goes here — import one or open a project';
  justify-content: center;
  padding: 0;
  font-size: 11px;
  color: #7a7a7d;
}
.tl-track[data-track='captions']:empty::after {
  content: 'Captions — press Auto captions';
}
.tl-track[data-track='overlays']:empty::after {
  content: 'Text & stickers';
}
.tl-track[data-track='audio']:empty::after {
  content: 'Music: drag a song here, or press + on one';
}

/* before a video is open the player is a full editor stage (CapCut-like), not a 9:16 phone box */
.empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.empty-actions button {
  min-height: 38px;
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 8px;
}
#previewEmpty h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
  margin: 14px 0 8px;
}
#previewEmpty p {
  font-size: 12px;
}
@media (min-width: 1100px) {
  .preview-wrap:has(#previewEmpty:not([hidden])) {
    aspect-ratio: auto !important;
    width: calc(100% - 28px) !important;
    height: calc(100% - 14px) !important;
    max-width: none;
    border: 1px dashed #2c2c31;
    border-radius: 8px;
    box-shadow: none;
    background: radial-gradient(ellipse at 50% 45%, #17171a, #0a0a0b 70%); /* was green-tinted (quieter, 09-30) */
  }
  .preview-wrap:has(#previewEmpty:not([hidden])) canvas {
    visibility: hidden;
  }
}

/* CapCut-style category panel (panels.js) */
.library.cc-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.cc-cats {
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
  border-bottom: 1px solid #1f1f21;
  overflow-x: auto;
  flex: none;
  scrollbar-width: none;
}
.cc-cats::-webkit-scrollbar {
  display: none;
}
.cc-cats button {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 1px 8px;
  white-space: nowrap;
  letter-spacing: -0.3px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #959598;
  font-size: 9.5px;
  font-weight: 550;
  min-height: 0;
}
.cc-cats button:hover {
  color: #ebebee;
  background: #18181a;
}
.cc-cats button.active {
  color: #53fc18;
  border-bottom-color: #53fc18;
}
.cc-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.cc-subs {
  flex: none;
  width: 112px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  border-right: 1px solid #1f1f21;
  overflow: auto;
}
.cc-subs button {
  text-align: left;
  justify-content: flex-start;
  padding: 8px 10px;
  min-height: 0;
  font-size: 12px;
  font-weight: 550;
  border-radius: 6px;
  background: #19191b;
  border: 1px solid #232325;
  color: #cccccf;
}
.cc-subs button:hover {
  background: #202022;
}
.cc-subs button.active {
  color: #53fc18;
  border-color: #3d3d3f;
  background: #1a1a1c;
}
.cc-content {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 12px 12px 20px;
}
.cc-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-section[hidden] {
  display: none;
}
.cc-section > .section-title {
  display: none;
}
.cc-section .field,
.cc-section .range-field,
.cc-section .switch-row {
  margin: 0;
}
.cc-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.cc-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  min-height: 0;
  border-radius: 8px;
  background: #171719;
  border: 1px solid #232325;
  color: #cccccf;
  font-size: 11px;
}
.cc-filter i {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  background: linear-gradient(135deg, #e8a33d, #c2432f 40%, #2f6fb3 70%, #3fb36a) center/cover;
}
.cc-filter.active {
  border-color: #53fc18;
  color: #53fc18;
}
@media (min-width: 1100px) {
  main {
    grid-template-columns: clamp(360px, 30vw, 520px) minmax(0, 1fr) clamp(280px, 22vw, 360px);
  }
}
.cc-cats button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-cats {
  gap: 0;
}
.one-plan {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.one-plan .plan ul {
  line-height: 1.6;
}

/* text templates grid (panels.js) */
.cc-texttpl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.cc-texttpl button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  padding: 10px 6px;
  border-radius: 8px;
  background: #1d1d1f;
  border: 1px solid #28282a;
  overflow: hidden;
}
.cc-texttpl button:hover {
  border-color: #53fc18;
}
.cc-texttpl b {
  font-size: 17px;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 3px;
}
.cc-texttpl span {
  font-size: 10px;
  color: #959598;
}
/* CLAUDE 10-05: lower thirds sit at the left like the tags they add; a two-line tag's second line is smaller */
.cc-lowerthirds button {
  align-items: flex-start;
  gap: 4px;
  padding-left: 10px;
}
main .cc-lowerthirds b {
  font-size: 13px;
}
main .cc-lowerthirds b + b {
  font-size: 10px;
}
.cc-lowerthirds span {
  margin-top: 4px;
}
/* CLAUDE 10-05: Audio > Sound effects, "Add sounds to the moments" (panels.js momentSounds) */
.cc-moments {
  width: 100%;
  margin-bottom: 6px;
}
.cc-placed-row small {
  color: #959598;
  font-weight: 400;
}

/* timeline zoom (--tlz), ruler inside the tracks (scrolls with them), delete left/right buttons */
.tl-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #959598;
  margin-left: 10px;
  flex: none;
}
.tl-zoom input {
  width: 110px;
}
.tl-body {
  overflow-x: auto;
  overflow-y: hidden;
}
.tl-tracks {
  flex: 1 0 auto;
  width: calc((100% - 94px) * var(--tlz, 1));
}
.tl-labels {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #0b0e0b;
}
@media (min-width: 1100px) {
  .tl-ruler {
    margin: 0;
    flex: none;
    cursor: pointer;
  }
  .tl-labels::before {
    content: '';
    display: block;
    height: 22px;
    flex: none;
  }
  .tl-playhead {
    top: 0;
  }
}

/* Ratio picker on the player bar (a second data-key=canvas control) */
.ratio-pick {
  width: auto;
  min-width: 0;
  flex: none;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 6px;
  background: #171719;
  border: 1px solid #2b2b2d;
  color: #dddde0;
  min-height: 0;
  height: 30px;
}

/* full emoji picker (panels.js) */
.cc-emoji {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cc-emoji-search {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 7px;
}
.cc-emoji-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #232325;
  padding-bottom: 4px;
}
.cc-emoji-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 5px 0;
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 5px 5px 0 0;
}
.cc-emoji-tabs button[aria-selected='true'] {
  border-bottom-color: #53fc18;
  background: #171719;
}
.cc-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 4px;
  max-height: 340px;
  overflow: auto;
  padding-right: 2px;
}
.cc-emoji-grid button {
  min-height: 0;
  height: 44px;
  padding: 4px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
}
.cc-emoji-grid button:hover {
  background: #1e1e20;
  border-color: #343436;
}
.cc-emoji-grid button.added {
  border-color: #53fc18;
  transform: scale(1.12);
}
.cc-emoji-grid img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}
/* CLAUDE 10-11: on an Apple device the system's own emoji font draws the picker (deviceemoji.js) */
.cc-emoji-ch {
  font:
    30px/34px 'Apple Color Emoji',
    sans-serif;
  pointer-events: none;
}
.cc-emoji-note {
  margin: 0 0 6px;
}
.cc-emoji-tabs button[data-g='Shapes'],
.cc-emoji-tabs button[data-g='Badges'] {
  font-size: 14px;
  color: #53fc18;
}

/* timeline track toggles (hidden checkboxes driven by the normal data-key / data-music code) */
.tl-labels span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-right: 4px;
}
.tl-tog {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 5px;
  cursor: pointer;
  color: #959598;
  flex: none;
}
.tl-tog:hover {
  background: #202022;
  color: #ebebee;
}
.tl-tog i {
  font-style: normal;
  font-size: 12px;
  line-height: 1;
}
.tl-tog.mute i::before,
.tl-tog.music i::before {
  content: '🔊';
}
.tl-tog.mute input:checked + i::before,
.tl-tog.music input:not(:checked) + i::before {
  content: '🔇';
}
.tl-tog.hide i::before {
  content: '👁';
}
.tl-tog.hide input:checked + i::before {
  content: '🚫';
}
.tl-tog:has(input:checked).mute,
.tl-tog:has(input:checked).hide,
.tl-tog.music:has(input:not(:checked)) {
  background: #2a1414;
}

/* sound effects list + placed sounds on the Audio track */
.cc-sounds {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow: auto;
}
.cc-sound {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 7px;
  background: #171719;
  border: 1px solid #232325;
}
.cc-sound > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cc-sound b {
  font-size: 12px;
  font-weight: 600;
  color: #e7e7ea;
}
.cc-sound small {
  font-size: 10px;
  color: #868689;
}
.cc-sound button {
  min-height: 0;
  padding: 5px 9px;
  font-size: 11px;
  border-radius: 6px;
}
.cc-sound button[data-act='play'] {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
}
.cc-sound .cc-add.added {
  border-color: #53fc18;
  color: #53fc18;
}
.tl-sfx {
  background: #5a2a6e;
  border: 1px solid #8a4aa8;
  color: #f1dcff;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 4px;
  min-width: 14px;
  z-index: 1;
}
.tl-sfx span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl-sfx b {
  cursor: pointer;
  opacity: 0.7;
  padding: 0 2px;
}
.tl-sfx b:hover {
  opacity: 1;
}

/* magnet + track locks */
.tl-magnet {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  opacity: 0.6;
}
.tl-magnet.on {
  opacity: 1;
  border-color: #3d3d3f;
  color: #53fc18;
  background: #1a1a1c;
}
.tl-snapline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: #ffd400;
  box-shadow: 0 0 4px #ffd400;
  pointer-events: none;
  z-index: 5;
}
.tl-snapline[hidden] {
  display: none;
}
.tl-labels span {
  gap: 2px;
}
.tl-lock {
  display: grid;
  place-items: center;
  width: 20px;
  height: 22px;
  min-height: 0;
  padding: 0;
  margin-left: auto;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #767679;
  flex: none;
}
.tl-lock i {
  font-style: normal;
  font-size: 11px;
}
.tl-lock i::before {
  content: '🔓';
  filter: grayscale(1);
  opacity: 0.55;
}
.tl-lock.on i::before {
  content: '🔒';
  filter: none;
  opacity: 1;
}
.tl-lock:hover {
  background: #202022;
}
.tl-lock + .tl-tog {
  margin-left: 0;
}
.tl-track.locked {
  background: repeating-linear-gradient(135deg, #131315 0 8px, #171719 8px 16px);
}
.tl-track.locked .tl-block {
  cursor: not-allowed;
  opacity: 0.75;
}

/* keyframes panel + diamonds on the video track */
.cc-kf {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-kf-at {
  margin: 0;
  font-size: 11px;
  color: #959598;
}
.cc-kf-at b {
  color: #ffd400;
  font-weight: 600;
}
.cc-kf-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.cc-kf-presets span {
  width: 100%;
  font-size: 11px;
  color: #959598;
}
.cc-kf-presets button {
  min-height: 0;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 6px;
}
.cc-kf-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cc-kf-list div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #bebec1;
}
.cc-kf-list div span {
  flex: 1;
}
.cc-kf-list button {
  min-height: 0;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 5px;
}
.tl-kf {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -6px 0 0 -6px;
  background: #ffd400;
  border: 1px solid #1a1a00;
  transform: rotate(45deg);
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 0 0 1px #0008;
}
/* CLAUDE 10-01: keyframe diamonds beside sliders, the keyframe bar and marks on timeline items (neutral colours) */
.kf-host {
  position: relative;
  padding-right: 24px;
}
.kf-host > .kf-dia {
  position: absolute;
  right: 2px;
  top: 0;
}
.kf-dia {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 1.5px solid #6b7176;
  border-radius: 2px;
  background: transparent;
  transform: rotate(45deg) scale(0.78);
  cursor: pointer;
  vertical-align: middle;
}
.kf-dia:hover {
  border-color: #c9cfd3;
}
.kf-dia.on,
.kf-here.on .kf-dia {
  background: #e9edef;
  border-color: #e9edef;
}
.kf-dia:focus-visible {
  outline: 2px solid #c9cfd3;
  outline-offset: 2px;
}
.kf-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 12px;
}
.kf-bar button {
  min-height: 0;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 5px;
  background: #1b2024;
  border: 1px solid #2c3439;
  color: #d5dadd;
}
.kf-bar button:disabled {
  opacity: 0.4;
}
.kf-here {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kf-here .kf-dia {
  pointer-events: none;
}
.kf-bar select {
  min-height: 0;
  padding: 3px 6px;
  font-size: 11px;
  max-width: 130px;
}
.kf-bar small {
  color: #8d949a;
  font-size: 10.5px;
}
.tl-mark {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -4px 0 0 -4px;
  background: #e9edef;
  border: 1px solid #0b0d0e;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 2;
}

/* CLAUDE 10-03: the service switcher as plain text tabs (the owner found the boxed one with ✂ ▶ ▦ glyphs tacky):
   no frame, no icons, no green; the current one is white on a quiet fill */
.service-switch {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 2px;
}
.service-switch button {
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 550;
  color: #8e8e93;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transition:
    color 120ms ease,
    background-color 120ms ease;
}
.service-switch button:hover {
  color: #ececef;
}
.service-switch button.active {
  color: #fafafa;
  background: #1c1c1f;
}
.service-switch button:focus-visible {
  outline: 2px solid #53fc18;
  outline-offset: 2px;
}
/* Video Editor home */
.ed-home {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* CLAUDE 10-03 (the owner): Continue editing is the big box on the left; New project on top of the right column and
   Open the editor under it. With nothing to continue, the two share the row. */
.ed-hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-areas:
    'cont new'
    'cont open';
  gap: 14px;
}
.ed-hero:has(.ed-continue[hidden]) {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 'new open';
}
.ed-hero .ed-continue {
  grid-area: cont;
  min-height: 316px;
}
.ed-hero .ed-new {
  grid-area: new;
  min-height: 151px;
}
.ed-hero .ed-blank {
  grid-area: open;
  min-height: 151px;
}
.ed-start-icon svg {
  width: 20px;
  height: 20px;
}
.ed-hero .ed-cont-text {
  padding: 24px;
}
.ed-hero .ed-cont-text b {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ed-start {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  min-height: 168px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #28282a;
  background: #121214;
  text-align: left;
  overflow: hidden;
}
.ed-start b {
  font-size: 18px;
  font-weight: 650;
  color: #f4f4f7;
  letter-spacing: -0.3px;
}
.ed-start small {
  font-size: 12px;
  color: #949497;
}
.ed-start:hover {
  border-color: #444446;
  transform: translateY(-2px);
}
.ed-start-icon {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 20px;
  background: #1f1f21;
  color: #e4e4e7;
}
.ed-new {
  background: radial-gradient(120% 140% at 0% 0%, #454547 0%, #1d1d1f 45%, #121214 100%);
  border-color: #464648;
}
.ed-new .ed-start-icon {
  background: #53fc18;
  color: #111113;
  font-weight: 700;
}
.ed-continue {
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}
.ed-cont-thumb {
  flex: 0 0 58%;
  background: #0a0c0a;
  position: relative;
}
.ed-cont-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-cont-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 18px;
}
.ed-cont-text small {
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #53fc18;
}
.ed-cont-text em {
  font-style: normal;
  font-size: 11px;
  color: #868689;
}
.ed-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 6px;
}
.ed-section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: #f1f1f4;
}
.ed-section-head span {
  font-size: 12px;
  color: #818184;
}
.ed-search {
  margin-left: auto;
  max-width: 280px;
}
.ed-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.ed-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid #222224;
  background: #111113;
  text-align: left;
  min-height: 0;
}
.ed-tool:hover {
  border-color: #3b3b3d;
  background: #171719;
  transform: translateY(-1px);
}
.ed-tool > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ed-tool b {
  font-size: 13px;
  font-weight: 600;
  color: #ededf0;
}
.ed-tool small {
  font-size: 11px;
  color: #868689;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-tool-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 45%, #000));
  box-shadow: inset 0 1px 0 #ffffff33;
}
.ed-more {
  border: 1px solid #222224;
  border-radius: 11px;
  padding: 10px 14px;
  background: #0d100e;
}
.ed-more summary {
  cursor: pointer;
  font-size: 13px;
  color: #d4d4d7;
}
@media (max-width: 900px) {
  .ed-hero,
  .ed-hero:has(.ed-continue[hidden]) {
    grid-template-columns: 1fr;
    grid-template-areas:
      'cont'
      'new'
      'open';
  }
  .ed-hero .ed-start {
    min-height: 120px;
  }
  .ed-hero .ed-continue {
    min-height: 200px;
  }
}

/* Video effects grid + the Effects track */
.cc-fx {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.cc-fx button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  min-height: 0;
  border-radius: 8px;
  background: #171719;
  border: 1px solid #232325;
  color: #cccccf;
  font-size: 11px;
}
.cc-fx button:hover {
  border-color: #4a4a50;
}
.cc-fx button.added {
  border-color: #8a8a92;
  color: #f2f2f4;
}
.cc-fx-head {
  grid-column: 1 / -1;
  margin: 8px 0 -2px;
  font-size: 11px;
  font-weight: 600;
  color: #8a8a92;
}
.cc-fx-head:first-child {
  margin-top: 0;
}
.cc-fx-head[hidden] {
  display: none;
}
.cc-fx i {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  background: linear-gradient(135deg, #e8a33d, #c2432f 40%, #2f6fb3 70%, #3fb36a) center/cover;
}
.cc-fx i[data-icon]:not([data-icon=''])::after {
  content: attr(data-icon);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: #0007;
  border-radius: 5px;
  font-style: normal;
}
.tl-fx {
  background: #6b1f3a;
  border: 1px solid #b0386a;
  color: #ffd7e6;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border-left-width: 3px;
  border-right-width: 3px;
}
.tl-fx span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl-fx b {
  cursor: pointer;
  opacity: 0.7;
  padding: 0 2px;
}
.tl-fx b:hover {
  opacity: 1;
}
.tl-track[data-track='effects']:empty::after {
  content: 'Effects — Effects > Video effects';
}

/* markers, voices, placed sounds, full-screen preview */
.tl-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tl-marker {
  position: absolute;
  top: 0;
  width: 10px;
  height: 12px;
  margin-left: -5px;
  padding: 0;
  border: 0;
  background: #ffb020;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
  cursor: pointer;
  pointer-events: auto;
  min-height: 0;
  z-index: 3;
}
.tl-marker:hover {
  background: #ffd27a;
}
/* CLAUDE 10-01: a handle on every cut of the video track; filled when the cut has a transition */
.tl-cut {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: -7px 0 0 -7px;
  padding: 0;
  border: 1.5px solid #f3f2ee;
  border-radius: 3px;
  background: #1c1c20;
  transform: rotate(45deg);
  cursor: pointer;
  z-index: 3;
}
.tl-cut.on {
  background: #f3f2ee;
}
.tl-cut:hover {
  border-color: #fff;
  background: #a1a1aa;
}
.cc-voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.cc-voice-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid #28282a;
  background: #121214;
  min-height: 0;
}
.cc-voice-grid button i {
  font-style: normal;
  font-size: 20px;
}
.cc-voice-grid button span {
  font-size: 11px;
  color: #bfbfc2;
}
.cc-voice-grid button.active {
  border-color: #53fc18;
  background: #1b1b1d;
}
.cc-voice-grid button.active span {
  color: #f5f5f8;
}
.cc-transform {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cc-placed h4 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #868689;
}
.cc-placed {
  margin-bottom: 10px;
}
.cc-placed-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 't n x' 'o r r';
  gap: 2px 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #222224;
  border-radius: 9px;
  background: #111113;
  margin-bottom: 6px;
}
.cc-placed-row > button:first-child {
  grid-area: t;
  font-size: 11px;
  padding: 2px 6px;
  min-height: 0;
}
.cc-placed-row b {
  grid-area: n;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-placed-row output {
  grid-area: o;
  font-size: 11px;
  color: #949497;
  min-width: 44px;
}
.cc-placed-row input {
  grid-area: r;
  width: 100%;
}
.cc-placed-row > button:last-child {
  grid-area: x;
  min-height: 0;
  padding: 0 8px;
}
.preview-wrap:fullscreen {
  background: #000;
  display: grid;
  place-items: center;
}
.preview-wrap:fullscreen canvas {
  width: auto !important;
  height: auto !important;
  max-width: 100vw;
  max-height: 100vh;
}
.preview-wrap:fullscreen #previewEmpty {
  display: none;
}

/* speed, picture layers */
.tl-seg.tl-freeze {
  background: #3a6b8f;
  background-image: repeating-linear-gradient(90deg, #ffffff18 0 2px, transparent 2px 14px);
} /* freeze frame block */
.tl-seg.tl-speed {
  background-image: repeating-linear-gradient(135deg, #ffffff10 0 6px, transparent 6px 12px);
}
.cc-speed-at {
  font-size: 12px;
  color: #b0b0b3;
  margin: 0 0 10px;
}
.cc-speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.cc-speed-grid button {
  min-height: 0;
  padding: 9px 0;
  border-radius: 9px;
  border: 1px solid #28282a;
  background: #121214;
  font-weight: 600;
}
.cc-speed-grid button.active {
  border-color: #53fc18;
  background: #1b1b1d;
  color: #f5f5f8;
}
/* CLAUDE 10-01: Speed > Normal / Curve; the curve graph and preset tiles stay in quiet greys */
.cc-speed-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #121214;
  border: 1px solid #28282a;
}
.cc-speed-tabs button {
  min-height: 0;
  padding: 7px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a1a1aa;
  font-weight: 600;
}
.cc-speed-tabs button[aria-selected='true'] {
  background: #26262b;
  color: #f3f2ee;
}
.cc-ramp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.cc-ramp-tiles button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 0;
  padding: 8px 4px 7px;
  border-radius: 9px;
  border: 1px solid #28282a;
  background: #121214;
  color: #c8c8cc;
  font-size: 12px;
  font-weight: 600;
}
.cc-ramp-tiles button:hover {
  border-color: #3a3a40;
}
.cc-ramp-tiles button[aria-pressed='true'] {
  border-color: #aeaeb1;
  background: #1c1c20;
  color: #f3f2ee;
}
.cc-ramp-tiles svg {
  fill: none;
  stroke: #d4d4d8;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.cc-ramp-tiles svg .one {
  stroke: #3a3a40;
  stroke-dasharray: 2 3;
}
.cc-ramp-graph {
  display: block;
  width: 100%;
  touch-action: none;
  user-select: none;
}
.cc-ramp-graph .bed {
  fill: #101012;
  stroke: #28282a;
}
.cc-ramp-graph .grid {
  stroke: #1f1f23;
}
.cc-ramp-graph .one {
  stroke: #3a3a40;
  stroke-dasharray: 3 4;
}
.cc-ramp-graph .line {
  fill: none;
  stroke: #e4e4e7;
  stroke-width: 2;
  stroke-linejoin: round;
}
.cc-ramp-graph .head {
  stroke: #8b8b93;
  stroke-dasharray: 2 3;
}
.cc-ramp-graph circle {
  fill: #e4e4e7;
  stroke: #101012;
  stroke-width: 2;
  cursor: grab;
}
.cc-ramp-graph circle:focus-visible {
  outline: none;
  stroke: #f3f2ee;
  stroke-width: 3;
}
.cc-ramp-graph text {
  fill: #71717a;
  font-size: 9px;
}
.cc-ramp-graph text.empty {
  font-size: 11px;
}
.cc-ramp-read {
  margin: 8px 0 0;
  font-size: 12px;
  color: #b0b0b3;
  font-variant-numeric: tabular-nums;
}
.cc-pic-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 12px;
  border: 1px dashed #3b3b3d;
  border-radius: 12px;
  background: #111113;
  cursor: pointer;
  text-align: center;
}
.cc-pic-drop:hover {
  border-color: #53fc18;
}
.cc-pic-drop span {
  font-size: 26px;
}
.cc-pic-drop small {
  font-size: 11px;
  color: #868689;
}
/* CLAUDE 10-06: 10-05's Find B-roll styles moved to stocklib.css with the Stock library */
.ov-pic {
  background: repeating-conic-gradient(#1d1d1f 0 25%, #161618 0 50%) 0 0/16px 16px;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 8px;
  text-align: center;
}
.ov-pic img {
  max-width: 100%;
  max-height: 90px;
}
/* CLAUDE 10-04: format templates (formats.js) in Templates > Formats: the gallery's cards, two to a row */
.fmt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fmt-card small {
  white-space: normal;
  line-height: 1.35;
}
/* a video layer's border and corner buttons (app-overlays.js videoFrameControls) */
.ov-corners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 6px 0 10px;
}
.ov-corners button {
  min-height: 32px;
  font-size: 16px;
}
.ov-corners button[aria-pressed='true'] {
  outline: 2px solid var(--accent, #53fc18);
  outline-offset: -2px;
}

/* compliance pass — skip link, visible keyboard focus, consents, data rights, policy links */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 2147483001;
  background: #53fc18;
  color: #0b0b0d;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #6dff3d !important;
  outline-offset: 2px;
}
/* CLAUDE 10-03: text fields show their blinking caret, so they get a quiet neutral ring instead of the green box (the
   owner: "get rid of the green box ... people can tell they selected it because the thing will be blinking"). Green
   stays for buttons, links and switches. */
:where(
  input:not(
    [type='checkbox'],
    [type='radio'],
    [type='range'],
    [type='file'],
    [type='color'],
    [type='button'],
    [type='submit']
  ),
  textarea
):focus-visible {
  outline: 1px solid #ffffff47 !important;
  outline-offset: 1px;
}
.consent-box {
  border: 0;
  padding: 0;
  margin: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: #d9d9dc;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #53fc18;
}
.consent a,
.auth-legal a,
.data-rights a,
.legal-links a,
.nav-legal a {
  color: #cbcbce;
}
.auth-legal {
  font-size: 12px;
  line-height: 1.5;
  color: #bfbfc2;
  margin: 8px 0 0;
  text-align: center;
}
.data-rights {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #2c2c2e;
}
.data-rights h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: #f1f1f4;
}
.data-rights p {
  font-size: 13px;
  color: #c9c9cc;
  margin: 8px 0;
}
.danger-zone {
  margin-top: 10px;
  border: 1px solid #5a2323;
  border-radius: 10px;
  padding: 8px 12px;
}
.danger-zone summary {
  cursor: pointer;
  color: #ff9c9c;
  font-weight: 600;
  font-size: 13px;
}
.danger-zone form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.danger-zone input {
  width: 100%;
}
.danger-zone button.danger {
  background: #b3261e;
  border-color: #b3261e;
  color: #fff;
  font-weight: 700;
}
#deleteError {
  color: #ff9c9c;
  min-height: 1em;
  margin: 0;
}
.small-links {
  font-size: 12px !important;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  margin-top: 10px;
}
.business-line {
  font-size: 12px;
  color: #b0b0b3;
  margin: 6px 0 0;
}
.nav-legal {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px 0;
  font-size: 12px;
}
.nav-legal a {
  color: #b0b0b3 !important;
  text-decoration: none;
}
.nav-legal a:hover {
  color: #f1f1f4 !important;
  text-decoration: underline;
}
/* WCAG AA contrast fixes found by the in-page audit (were 3.8:1, 4.48:1, 4.3:1) */
.db-chart .db-bar span {
  color: #a9a9ac;
}
.home-nav .nav-label {
  color: #9d9da0;
}
.moment-blocks span {
  color: #a7a7aa;
}
.font-upload span,
.font-upload small,
#musicName {
  color: #a2adba;
} /* was 3.9:1 */
.auth-or span {
  color: #a0a0a0;
} /* was 3.8:1 */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
} /* honeypot stays off-screen */

/* timeline filmstrip and waveform in the video track, text in caption blocks */
.tl-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tl-seg-label {
  position: relative;
  align-self: flex-start;
  margin-top: 2px;
  padding: 0 5px;
  border-radius: 3px;
  background: #000000a6;
  line-height: 15px;
  pointer-events: none;
}
.tl-seg.tl-freeze .tl-art {
  opacity: 0.6;
}
.tl-seg.selected .tl-art {
  box-shadow: 0 0 0 2px #53fc18 inset;
}
.tl-cap {
  cursor: grab;
  color: #dce7f2;
  padding: 0 4px;
}
.tl-cap.selected {
  border-color: #53fc18;
  background: #3f5566;
}
.tl-menu {
  position: fixed;
  z-index: 1000;
  min-width: 220px;
  padding: 4px;
  border: 1px solid #333335;
  border-radius: 8px;
  background: #19191b;
  box-shadow: 0 10px 30px #000a;
}
.tl-menu button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #eaeaed;
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.tl-menu button:hover,
.tl-menu button:focus-visible {
  background: #2b2b2d;
  outline: none;
}
.tl-menu kbd {
  color: #949497;
  font: inherit;
  font-size: 12px;
}
/* a caption with its own style (Caption.look) and the box that edits it */
.tl-cap-styled {
  border-left: 3px solid #53fc18;
}
.cap-style {
  display: grid;
  gap: 8px;
  padding: 10px;
  color: #eaeaed;
  font-size: 13px;
}
.cap-style label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
}
.cap-style input[type='range'] {
  grid-column: 1 / -1;
}
.cap-style output {
  color: #949497;
  font-size: 12px;
}
/* the in-place caption editor over a timeline caption block */
.cap-edit {
  position: fixed;
  z-index: 1000;
  width: 320px;
  padding: 6px 8px;
  border: 1px solid #53fc18;
  border-radius: 6px;
  background: #19191b;
  color: #eaeaed;
  font: inherit;
  font-size: 13px;
  box-shadow: 0 10px 30px #000a;
}
/* All shapes: the shape checklist and its export button */
.shapes-pick label.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.shapes-pick small {
  color: #949497;
  font-size: 12px;
  max-width: 300px;
}
.tl-menu.shapes-pick [data-go] {
  justify-content: center;
  background: #53fc18;
  color: #0c0c0e;
  font-weight: 700;
}
.tl-menu.shapes-pick [data-go]:disabled {
  opacity: 0.5;
}
@media (min-width: 1100px) {
  .tl-track[data-track='video'],
  .tl-labels span:first-child {
    height: 58px;
    line-height: 58px;
  }
}
/* CHATGPT: original curve workspace, responsive graph and precise accessible sliders. */
.cc-curve-graph {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  touch-action: none;
}
.cc-curve-graph circle {
  cursor: ns-resize;
}
.cc-curve-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cc-curve-presets button {
  padding: 9px 12px;
  border: 1px solid #33404a;
  border-radius: 9px;
  background: #172026;
  color: #e9edef;
  font: inherit;
}
.cc-curve-presets button:hover {
  border-color: #aeaeb1;
}
.cc-curves .hint {
  line-height: 1.6;
}
/* CHATGPT: independently selectable grading layers and timeline spans. */
.cc-adjustment-list {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}
.cc-adjustment-list button {
  text-align: left;
  padding: 10px;
  border-radius: 8px;
}
.cc-adjustment-list .active {
  border-color: #efc36d;
  color: #efc36d;
}
/* CLAUDE: adjustment layer v2 inspector sections, colour band chips and saved looks (neutral; no accent colour). */
.cc-adj-section {
  border-top: 1px solid #262f35;
  padding: 10px 0 4px;
}
.cc-adj-section > summary {
  cursor: pointer;
  font-weight: 600;
  color: #e9edef;
  padding: 4px 0 8px;
}
.cc-adj-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}
.cc-adj-bands button {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #33404a;
  border-radius: 50%;
  background: #172026;
}
.cc-adj-bands button::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--band);
}
.cc-adj-bands button[data-changed]::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e9edef;
}
.cc-adj-bands button.active {
  border: 2px solid #e9edef;
}
.cc-adj-looks {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.cc-adj-looks > div {
  display: flex;
  gap: 6px;
}
.cc-adj-looks > div > button:first-child {
  flex: 1;
  text-align: left;
}
.cc-adj-section > button {
  margin: 4px 6px 4px 0;
}
/* CLAUDE 10-01: colour wheels (muted hues, no accent colour) */
.cc-wheel-box {
  display: grid;
  gap: 6px;
  margin: 6px 0 12px;
}
.cc-wheel-box > strong {
  font-weight: 600;
  color: #c9d1d5;
}
.cc-wheel {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #33404a;
  background:
    radial-gradient(circle, rgb(128 128 128) 0, rgb(128 128 128 / 0) 72%),
    conic-gradient(from 90deg, #b85c5c, #b85cb8, #5c5cb8, #5cb8b8, #5cb85c, #b8b85c, #b85c5c);
  cursor: crosshair;
  touch-action: none;
}
.cc-wheel span {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  border: 2px solid #e9edef;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6);
  pointer-events: none;
}
.tl-adjustment {
  background: #655022;
  border: 1px solid #d1a54d;
  color: #fff0c9;
  height: 26px;
  cursor: grab;
}
.tl-track[data-track='adjustments']:empty::after {
  content: 'Adjustment layers — Adjust > Layers';
}
.tl-labels span[data-video-label] {
  height: 42px;
  line-height: 42px;
}
@media (min-width: 1100px) {
  .tl-labels span[data-video-label] {
    height: 58px;
    line-height: 58px;
  }
}

/* CLAUDE 09-30 — quieter editor (the user: "too much green"). In the editor, green marks only the one main
   action (Export video, in the header) and the logo; everything else is neutral: white for "on/selected",
   raised greys for buttons. Scoped to <main> so the header's Export and the home pages keep their colours. */
body main {
  --q-ink: #f3f2ee;
  --q-ink-ink: #0b0b0d;
  --q-raise: #1c1c20;
  --q-raise-hover: #26262b;
  --q-line: #2c2c31;
  --q-soft: #a1a1aa;
}
/* buttons that were green: white when they are the panel's main action, raised grey otherwise */
body main button.primary,
body main button.accent {
  background: var(--q-ink);
  border-color: var(--q-ink);
  color: var(--q-ink-ink);
}
body main button.primary:hover,
body main button.accent:hover {
  background: #fff;
  border-color: #fff;
}
body main #kickImportBtn.accent {
  background: var(--q-raise);
  border-color: var(--q-line);
  color: var(--q-ink);
}
body main #kickImportBtn.accent:hover {
  background: var(--q-raise-hover);
  border-color: #3a3a40;
}
/* tabs and toggles: selected = white text, white rule, neutral fill */
body main .cc-cats button.active,
body main .tabs button.active {
  color: var(--q-ink);
  border-bottom-color: var(--q-ink);
}
body main .cc-subs button.active,
body main .tl-magnet.on {
  color: var(--q-ink);
  border-color: #3a3a40;
  background: var(--q-raise);
}
body main .preset-tile.active {
  border-color: rgba(243, 242, 238, 0.85);
  box-shadow: 0 0 0 2px rgba(243, 242, 238, 0.1);
}
/* player */
body main .transport #playBtn {
  background: var(--q-ink);
  border-color: var(--q-ink);
  color: var(--q-ink-ink);
}
body main .transport #playBtn:hover {
  background: #fff;
}
body main input[type='range'] {
  accent-color: #d4d4d8;
}
body main .preview-wrap {
  border-color: var(--q-line);
  background: radial-gradient(120% 90% at 50% 35%, #17171a 0%, #0b0b0d 70%);
}
body main .empty-mark {
  color: var(--q-ink);
  border-color: var(--q-line);
  background: rgba(255, 255, 255, 0.04);
}
/* import box */
body main .import-box {
  border-color: #3a3a40;
  background: linear-gradient(140deg, #19191c, #141416);
}
body main .upload-icon,
body main .section-title span {
  color: var(--q-soft);
}

/* CLAUDE 10-01 audio v2: Music / Sounds / Voice lanes, beat ticks, voiceover clips, the record button. Eight lanes
   no longer fit every timeline height: lanes keep their height (so they line up with their labels) and the body
   scrolls instead */
.tl-track {
  flex-shrink: 0;
}
.tl-body {
  overflow-y: auto;
}
.tl-track[data-track='sfx']:empty::after {
  content: 'Sound effects';
}
.tl-track[data-track='voice']:empty::after {
  content: 'Voiceover: press 🎙 Record, or right-click a video segment > Extract audio';
}
.tl-beat {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: #ffffffa6;
  pointer-events: none;
  z-index: 1;
}
.tl-voice {
  background: #1f5a4a;
  border: 1px solid #2f8a70;
  color: #d4fbe9;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 4px;
  overflow: hidden;
}
.tl-voice.tl-extract {
  background: #4a4a1f;
  border-color: #8a8a2f;
  color: #fbfbd4;
}
/* CLAUDE 10-09: a song on the Music lane (blue, like the older background track under it) */
.tl-voice.tl-song {
  background: #1f4260;
  border-color: #2f5e86;
  color: #d8ecff;
}
.tl-music.tl-under {
  opacity: 0.4;
  pointer-events: none;
}
.music-bed:not([hidden]) {
  display: contents;
}
.tl-tog[hidden] {
  display: none;
}
.tl-voice.selected {
  border-color: #53fc18;
}
.tl-voice.tl-row-a {
  bottom: 50%;
}
.tl-voice.tl-row-b {
  top: 50%;
}
.tl-voice span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}
.tl-voice b {
  cursor: pointer;
  opacity: 0.7;
  padding: 0 2px;
  position: relative;
}
.tl-voice b:hover {
  opacity: 1;
}
.tl-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #0000004d;
  pointer-events: none;
}
.tl-fade.in {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.tl-fade.out {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.tl-record.on {
  color: #ff5a5a;
  border-color: #ff5a5a;
}
.tl-recmute {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #949497;
  cursor: pointer;
}
.cap-style label.check {
  display: flex;
  gap: 6px;
}
.cap-style small {
  max-width: 240px;
  color: #949497;
  font-size: 11px;
  line-height: 1.35;
}
/* CLAUDE 10-01: tile previews (tileprev.js) and tiles dragged onto the timeline (tiledrop.js). Neutral greys; white
   marks the target, as the timeline's other selections. */
.tp-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.tp-cast {
  object-fit: cover; /* CLAUDE 10-03: the preview cast's square loops fill any tile shape */
}
.tp-canvas[hidden] {
  display: none;
}
.cc-fx i.tp-on,
.cc-filter i.tp-on {
  overflow: hidden;
  background: #0b0b0c;
}
.cc-fx i.tp-on::after,
.cc-fx i.tp-on[data-icon]:not([data-icon=''])::after {
  content: none; /* a previewed tile shows its picture, not the glyph (the icon rule above is more specific) */
}
.cc-transition-grid button.tp-on > span[aria-hidden] {
  display: none;
}
.cc-transition-grid button.tp-on .tp-canvas {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}
.cc-transition-grid button[data-transition],
.cc-fx button[data-fx],
.cc-filter {
  touch-action: pan-y;
  cursor: grab;
}
body.dnd-dragging,
body.dnd-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.dnd-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid #3a3a3f;
  border-radius: 8px;
  background: #1c1c1f;
  color: #f2f2f4;
  font-size: 12px;
  box-shadow: 0 8px 24px #000a;
  pointer-events: none;
}
.dnd-ghost canvas {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 5px;
}
.dnd-ghost img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 5px;
  background: #0d0d0f;
}
.dnd-ghost i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: #2a2a2e;
  font-style: normal;
  font-size: 18px;
}
.dnd-ghost span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dnd-ghost.dnd-none {
  opacity: 0.55;
}
/* CLAUDE 10-09: where a dropped item will sit on its lane, as long as it will be */
.dnd-span {
  position: absolute;
  top: 2px;
  bottom: 2px;
  min-width: 6px;
  border-radius: 5px;
  background: #ffffff33;
  box-shadow: inset 0 0 0 1.5px #f2f2f4;
  pointer-events: none;
  z-index: 5;
}
.tl-track.dnd-lane {
  background: #ffffff14;
  box-shadow: inset 0 0 0 1px #8a8a92;
}
.dnd-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #f2f2f4;
  z-index: 6;
  pointer-events: none;
}
.dnd-line span {
  position: absolute;
  top: 2px;
  left: 6px;
  padding: 1px 6px;
  border: 1px solid #3a3a3f;
  border-radius: 4px;
  background: #1c1c1f;
  color: #f2f2f4;
  font-size: 11px;
  white-space: nowrap;
}
.tl-cut.dnd-hot {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 5px #ffffff40;
}
.tl-cut.selected {
  box-shadow: 0 0 0 3px #ffffff59;
}
.tl-fx.selected,
.tl-adjustment.selected {
  box-shadow: inset 0 0 0 2px #f2f2f4;
}
/* the right-hand inspector shows the selected cut, effect or adjustment layer in place of the Style studio */
.inspector.dnd-on > :not(.dnd-inspect):not(.pe-head) {
  display: none !important;
}
.dnd-inspect {
  display: grid;
  gap: 12px;
  align-content: start;
}
.dnd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.dnd-head h3 {
  margin: 0;
  color: #f2f2f4;
  font-size: 14px;
}
.dnd-head small {
  display: block;
  margin-top: 2px;
  color: #8a8a92;
  font-size: 12px;
  font-weight: 400;
}
.dnd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* CLAUDE 10-11: an effect's Strength in the inspector (fxstrength.js): the label, a typed percent with Reset, the slider
   with its keyframe diamond, then the keyframe bar */
.dnd-inspect .cc-fx-row {
  display: grid;
  gap: 4px;
}
.dnd-inspect .cc-fx-row .range-field {
  margin: 0;
}
.dnd-inspect .cc-fx-row .fx-pct {
  margin: 0;
  font-size: 12px;
  color: #a1a1aa;
}
.dnd-inspect .cc-fx-row .fx-pct .cc-adjust-value {
  width: 64px;
}
.dnd-inspect .cc-fx-row .kf-dia:disabled {
  opacity: 0.35;
  cursor: default;
}
.dnd-inspect .cc-fx-row .hint:empty {
  display: none;
}
.dnd-inspect select {
  max-width: 100%;
}
/* CLAUDE 10-02: "Pro" on Pro features, free plan only (pro.js sets html.pro-free; profeatures.py is the list). The
   pill of .beta-tag, in the warn gold so it doesn't read as an active (green) state. */
.pro-free [data-pro]::after {
  content: 'Premium'; /* the owner, 10-02: "Pro" is also the $59 plan's name */
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ffd400;
  color: #0b0b0b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.pro-free :is(.cc-fx, .cc-transition-grid, .cc-ramp-tiles) button[data-pro] {
  position: relative;
}
.pro-free :is(.cc-fx, .cc-transition-grid, .cc-ramp-tiles) button[data-pro]::after {
  position: absolute;
  top: 4px;
  right: 4px;
  margin: 0;
}
.pro-sheet {
  max-width: 420px;
}
.pro-sheet ul {
  margin: 12px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.pro-sheet li {
  padding: 8px 12px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #161616;
}
.pro-sheet li::after {
  float: right;
}
.pro-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.pro-sheet .hint {
  margin: 12px 0 0;
  color: #9a9a9a;
  font-size: 12px;
}
/* CLAUDE 10-04: the editor's Back, top-left at every width (app-base.js #editorBack) */
header .editor-back {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  flex: none;
  min-height: 32px;
  margin-right: 10px;
  padding: 4px 12px 4px 8px;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  background: transparent;
  color: #e8e8ea;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
header .editor-back:hover {
  background: #ffffff12;
  border-color: #ffffff3d;
}
header .editor-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* CLAUDE 10-05: sound from a link (Audio > Music; app-audio.js audioFromLink) */
.audio-link {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}
.audio-link input[type='url'] {
  width: 100%;
  padding: 8px;
}
.audio-link-go {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.audio-link-go button {
  flex: 1 1 auto;
}
/* CLAUDE 10-08 (CapCut): the selected text / sticker / picture / video has its own editor on the right (app-overlays.js
   syncLayerEditor), in place of the Style studio; the left Add text section is a Default text tile and a list of layers */
.layer-ed {
  display: none;
}
.inspector.layer-open:not(.dnd-on) > :not(.layer-ed) {
  display: none !important;
}
.inspector.layer-open:not(.dnd-on) > .layer-ed {
  display: block;
}
.layer-ed .overlay-card {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.layer-ed .overlay-head {
  position: sticky;
  top: -14px;
  z-index: 2;
  margin: 0 0 8px;
  padding: 2px 0 8px;
  background: #0f120f;
  font-size: 13px;
}
.layer-ed .overlay-head button {
  min-width: 28px;
  min-height: 28px;
}
.layer-ed .ov-tabs {
  display: flex;
  margin-bottom: 10px;
}
.layer-ed .ov-tabs button[aria-selected='true'] {
  border-color: #afafb2;
  background: #29292b;
  color: #fff;
}
.layer-ed .overlay-card[data-pane] [data-ov-pane] {
  display: none;
}
.layer-ed .overlay-card[data-pane='text'] [data-ov-pane='text'],
.layer-ed .overlay-card[data-pane='anim'] [data-ov-pane='anim'] {
  display: block;
}
.layer-ed .overlay-card[data-pane='tts'] [data-ov-pane='tts'],
.layer-ed .overlay-card[data-pane='track'] [data-ov-pane='track'] {
  display: grid;
}
.layer-ed .ov-tabs button {
  flex: 1 1 auto;
  padding-inline: 6px;
  font-size: 12px;
}
/* CLAUDE 10-08: Text to speech */
.tts {
  gap: 10px;
}
.tts-words {
  display: grid;
  gap: 4px;
}
.tts-label {
  font-size: 12px;
  color: #cfcfd2;
}
.tts-text {
  display: block;
  max-height: 96px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #3a3a3d;
  border-radius: 8px;
  background: #161816;
  color: #e8e8ea;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tts-voices {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
}
.tts-voice {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.tts-voice label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #3a3a3d;
  border-radius: 8px;
  cursor: pointer;
}
.tts-voice label:has(input:checked) {
  border-color: #afafb2;
  background: #29292b;
}
.tts-voice label:has(input:focus-visible) {
  outline: 2px solid #8ab4ff;
  outline-offset: 1px;
}
.tts-voice label {
  justify-content: flex-start;
  text-align: left;
}
.tts-voice span {
  display: grid;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.layer-ed .tts-voice label input[type='radio'] {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
}
.tts-voice small {
  color: #9a9a9f;
  font-size: 11px;
}
.tts-voice button {
  min-width: 44px;
  min-height: 44px;
}
.tts-msg.error {
  color: #ff8a80;
}
.tts progress {
  width: 100%;
}
/* CLAUDE 10-08: Text > Tracking */
.trk {
  display: grid;
  gap: 10px;
}
.trk-modes {
  display: grid;
  gap: 4px;
}
.trk-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #3a3a3d;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.trk-mode:has(input:checked) {
  border-color: #afafb2;
  background: #29292b;
}
.trk-mode:has(input:focus-visible) {
  outline: 2px solid #8ab4ff;
  outline-offset: 1px;
}
.layer-ed .trk-mode input[type='radio'] {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
}
.trk-mode span {
  display: grid;
  min-width: 0;
}
.trk-mode small {
  color: #9a9a9f;
  font-size: 11px;
}
.trk-box {
  display: grid;
  gap: 4px;
}
.trk-box button[aria-pressed='true'] {
  border-color: #afafb2;
  background: #29292b;
}
.trk-go {
  display: flex;
  gap: 8px;
}
.trk-go .primary {
  flex: 1;
}
.trk-go button {
  min-height: 44px;
}
.trk-msg.error {
  color: #ff8a80;
}
.trk progress {
  width: 100%;
}
.ov-add {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.ov-tile {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #cfcfd2;
  font-size: 11px;
  text-align: center;
}
.ov-tile-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 64px;
  border: 1px solid #353537;
  border-radius: 8px;
  background: #151517;
}
.ov-tile-box b {
  font-size: 15px;
  color: #fff;
}
.ov-tile-box i {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f3f2ee;
  color: #111;
  font-style: normal;
  opacity: 0;
  transition: opacity 0.12s;
}
.ov-tile:hover .ov-tile-box,
.ov-tile:focus-visible .ov-tile-box {
  border-color: #8a8a92;
}
.ov-tile:hover .ov-tile-box i,
.ov-tile:focus-visible .ov-tile-box i {
  opacity: 1;
}
@media (hover: none) {
  .ov-tile-box i {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ov-tile-box i {
    transition: none;
  }
}
.overlay-list:has(.ov-row) {
  gap: 4px;
  margin-top: 8px;
}
.ov-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #2a2a2c;
  border-radius: 8px;
  background: #151517;
  color: #cfcfd2;
  font-size: 12px;
  text-align: left;
}
.ov-row strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-row span {
  color: #8d8d90;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.ov-row.selected {
  border-color: #8a8a92;
  background: #29292b;
  color: #fff;
}
/* Text > AI packaging, Local captions */
.cc-aipack {
  display: grid;
  gap: 8px;
}
.cc-aipack-steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.cc-aipack-steps li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #151517;
}
.cc-aipack-steps li span {
  color: #8d8d90;
  font-size: 11px;
}
.cc-aipack-steps li[data-state='done'] span {
  color: #53fc18;
}
.cc-aipack-steps li[data-state='run'] span {
  color: #f3f2ee;
}
.cc-aipack-steps li[data-state='fail'] span {
  color: #ff8a80;
}
.cc-aipack progress {
  width: 100%;
  height: 6px;
}

/* CLAUDE 10-09: trim handles on both ends of every timeline block (app-timeline.js tlGrips, trimedge.js has the grab
   zone: 12 px, 20 px for a finger). Shown on hover and while the block is selected; a finger sees them always. */
.tl-trim {
  touch-action: none;
}
.tl-grip {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  z-index: 3;
  cursor: ew-resize;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.tl-grip.start {
  left: 0;
}
.tl-grip.end {
  right: 0;
}
.tl-grip::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: #f4f4f6;
  box-shadow: 0 0 0 1px #0009;
}
.tl-grip.start::before {
  left: 2px;
}
.tl-grip.end::before {
  right: 2px;
}
.tl-trim:hover > .tl-grip,
.tl-trim.selected > .tl-grip,
.tl-trim:focus-visible > .tl-grip {
  opacity: 1;
}
.tl-track.locked .tl-grip {
  display: none;
}
@media (pointer: coarse) {
  .tl-grip {
    width: 20px;
    opacity: 0.7;
  }
  .tl-grip::before {
    width: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-grip {
    transition: none;
  }
}
