/* CLAUDE 10-09: the clip tools panel (clipfx.js), in the clip inspector on the right (a sheet on a phone; CLAUDE 10-11,
   it was Media > Clip). Same quiet greys as the speed and volume panels; the green only marks what is on. */
.cf {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf.cf-off .cf-group {
  opacity: 0.55;
}
.cf-at {
  margin: 0;
  font-size: 12px;
  color: #b0b0b3;
}
.cf-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #151517;
  border: 1px solid #28282a;
  font-size: 12px;
  line-height: 1.4;
  color: #d4d4d8;
}
.cf-note[data-bad='1'] {
  border-color: #6b2a2a;
  color: #f1c4c4;
}
.cf-note[hidden],
.cf-hint[hidden],
.cf-job[hidden] {
  display: none;
}
.cf-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #9a9aa2;
}
.cf-group {
  border: 1px solid #28282a;
  border-radius: 11px;
  background: #0f0f11;
  padding: 0 10px 10px;
}
.cf-group > summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #ececf0;
}
.cf-group > summary::-webkit-details-marker {
  display: none;
}
.cf-group > summary::after {
  content: '▾';
  margin-left: auto;
  color: #8b8b93;
}
.cf-group:not([open]) > summary::after {
  content: '▸';
}
.cf-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #121214;
  border: 1px solid #28282a;
}
.cf-tabs button {
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a1a1aa;
  font-weight: 600;
}
.cf-tabs button[aria-selected='true'] {
  background: #26262b;
  color: #f5f5f8;
}
/* CLAUDE 10-10: the Animations sheet: tabs + search + favourites, category chips, tiles that loop the animation */
.cf-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.cf-bar .cf-tabs {
  flex: 1;
  margin: 0;
}
.cf-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #28282a;
  background: #121214;
  color: #a1a1aa;
  cursor: pointer;
}
.cf-ico:hover {
  color: #f5f5f8;
}
.cf-ico[aria-pressed='true'] {
  border-color: #53fc18;
  background: #1b1b1d;
  color: #f5f5f8;
}
.cf-ico[data-cf='favBtn'][aria-pressed='true'] svg {
  fill: currentColor;
}
.cf-search {
  margin-bottom: 8px;
}
.cf-search[hidden],
.cf-chips[hidden],
.cf-empty[hidden] {
  display: none;
}
.cf-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #28282a;
  background: #121214;
  color: #ececf0;
  font-size: 13px;
}
.cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.cf-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #28282a;
  background: #121214;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.cf-chip[aria-pressed='true'] {
  background: #26262b;
  border-color: #3a3a40;
  color: #f5f5f8;
}
.cf-empty {
  margin: 6px 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #9a9aa2;
  text-align: center;
}
.cf-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.cf-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-height: 44px;
  padding: 4px 4px 6px;
  border-radius: 10px;
  border: 1px solid #28282a;
  background: #121214;
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.cf-tile:hover {
  border-color: #3a3a40;
}
.cf-tile[aria-pressed='true'] {
  border-color: #53fc18;
  background: #1b1b1d;
  color: #f5f5f8;
}
.cf-pv {
  position: relative;
  display: block;
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #17171b;
}
.cf-cv {
  display: block;
  width: 100%;
  height: 100%;
}
.cf-sk,
.cf-skel {
  background: #1b1b20;
  animation: cf-pulse 1.4s ease-in-out infinite; /* CLAUDE 10-11: opacity (composited), not a repainted background-position */
}
.cf-skel {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
}
@keyframes cf-pulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf-sk,
  .cf-skel {
    animation: none;
  }
}
.cf-gem {
  position: absolute;
  top: 4px;
  right: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.cf-nm {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  padding: 0 2px;
}
.cf-tile .fav-star {
  top: 8px;
  left: 8px;
}
.cf-tile:disabled,
.cf-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cf-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
}
.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #28282a;
  background: #121214;
  color: #ececf0;
  font-weight: 600;
  font-size: 12px;
}
.cf-btn.cf-sw[aria-pressed='true'] {
  border-color: #53fc18;
  background: #1b1b1d;
}
.cf-job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: #d4d4d8;
}
.cf-job progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
}
.cf [data-cf='maskBox'] > details > summary {
  display: none;
}
.cf [data-cf='maskBox'] .range-field,
.cf [data-cf='maskBox'] .field {
  margin-top: 8px;
}
.cf :focus-visible {
  outline: 2px solid var(--accent, #53fc18);
  outline-offset: 2px;
}

/* the Replace chooser */
.cf-pick {
  width: min(560px, 94vw);
  max-height: 86vh;
  padding: 14px;
  border: 1px solid #28282a;
  border-radius: 14px;
  background: #0f0f11;
  color: #ececf0;
}
.cf-pick::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.cf-pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cf-pick-top h2 {
  margin: 0;
  font-size: 16px;
}
.cf-x {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
}
.cf-pick-bar {
  margin: 8px 0;
}
.cf-status {
  min-height: 18px;
  margin: 4px 0 8px;
  font-size: 12px;
  color: #b0b0b3;
}
.cf-vids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  overflow: auto;
  max-height: 52vh;
}
.cf-vid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  text-align: left;
  border: 1px solid #28282a;
  border-radius: 10px;
  background: #121214;
  color: inherit;
  overflow: hidden;
}
.cf-vid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1b1b1d;
}
.cf-vid span {
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
  font-size: 12px;
}
.cf-vid small {
  color: #9a9aa2;
}

/* a phone: bigger targets (which group shows is the clip inspector's sub-tab, clipinsp.css) */
@media (max-width: 767.98px) {
  .cf-tabs button,
  .cf-tile,
  .cf-btn,
  .cf-vid {
    min-height: 44px;
  }
  .cf input[type='range'] {
    height: 44px; /* a finger's width of grip around the thin track */
    margin-block: 0;
  }
  .cf-tile {
    min-height: 66px;
  }
  .cf-ico {
    width: 44px;
    height: 44px;
  }
  .cf-chip,
  .cf-search input {
    min-height: 44px;
  }
  .cf-chips {
    flex-wrap: nowrap; /* one row you swipe along */
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cf-chips::-webkit-scrollbar {
    display: none;
  }
  .cf-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
  .cf-pick {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }
  .cf-vids {
    max-height: none;
  }
}
