/* CLAUDE 10-10: Captions > Auto captions (app-autocaps.js), the caption template tabs (app-captions.js) and AI emojis. The
   same greys, rows and 44 px targets as Auto lyrics and Tracking (textai.css, editor.css), so the phone's sheet needs
   nothing more than the desktop panel. */
.ac {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.ac > * {
  min-width: 0;
}
/* CLAUDE 10-18: sections are 20 px apart; the setting rows stack with only their hairline between them */
.ac > * + * {
  margin-top: 20px;
}
.ac > .ac-row + .ac-lang,
.ac > .ac-lang + .ac-lang {
  margin-top: 0;
}
.ac h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-fg-2);
  letter-spacing: 0.02em;
}
/* CapCut's rows: the name at the left, the choice at the right. CLAUDE 10-18 (owner: "tacky looking menus"): a plain row
   with a hairline under it and a chevron on the choice, no box. The select keeps its native behaviour; the underline that
   used to show under its value was the global field hairline (style.css box-shadow), now off here. */
.ac .ac-row,
.ac label.ac-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  white-space: nowrap;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  background: transparent;
  color: var(--c-fg);
  font-size: 13px;
}
.ac .ac-row select {
  flex: 0 1 60%;
  min-width: 0;
  min-height: 44px;
  padding: 0 24px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent var(--chev) no-repeat right -2px center;
  color: var(--c-fg-2);
  font-weight: 400;
  text-align: right;
  text-align-last: right;
}
.ac .ac-row:hover select {
  color: var(--c-fg);
}
.ac .ac-row:has(select:focus-visible) {
  outline: 2px solid var(--c-focus);
  outline-offset: -2px;
  border-radius: var(--r-sm);
}
.ac .ac-row select:focus-visible {
  outline: none;
}
.ac-lang {
  display: grid;
}
.ac-note {
  margin: 0;
}
/* CLAUDE 10-18: the category chips are light and small: plain text, the open one on a soft capsule (no outline). The chip is
   30 px tall; the invisible ::after grows the finger target to 44 px, and the row's padding leaves room for it to overflow. */
.capfx-cats {
  display: flex;
  gap: 2px;
  margin: 0 -4px 8px;
  padding: 7px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.capfx-cats::-webkit-scrollbar {
  display: none;
}
.capfx-cats button {
  position: relative;
  flex: none;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--c-fg-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--d-hover) ease,
    color var(--d-hover) ease,
    scale 220ms var(--ease-spring);
}
.capfx-cats button::after {
  content: '';
  position: absolute;
  inset: -7px -1px;
}
.capfx-cats button[aria-selected='true'] {
  background: rgba(242, 240, 235, 0.1);
  color: var(--c-fg);
}
.capfx-cats button:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 0;
}
/* CLAUDE 10-18: a look's name sits over its one-line description (they used to share a row and wrap into each other: "Green
   Room" and "RipClip green, slides up"). First the phone, then (polish B3a) the desktop panel too. */
.capfx-tile .name {
  display: grid;
  gap: 1px;
  justify-content: stretch;
  align-items: start;
  padding: 8px 2px 4px;
}
.capfx-tile .name b,
.capfx-tile .name small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.capfx-tile .name small {
  font-size: var(--t-meta);
}
/* the tiles before the data is there */
.capfx-skel {
  display: block;
  min-height: 86px;
  border-radius: var(--r-md); /* the shimmer is the shared skeleton in editor.css */
}
/* CLAUDE 10-18: Advanced options is a plain row like the settings above it (hairline, chevron), not a bordered box */
.ac-adv {
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  background: transparent;
}
.ac-adv > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}
.ac-adv > summary::-webkit-details-marker {
  display: none;
}
.ac-adv > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #8d8d90;
  border-bottom: 2px solid #8d8d90;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.ac-adv[open] > summary::after {
  transform: rotate(-135deg);
}
.ac-adv > summary:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: -2px;
  border-radius: var(--r-sm);
}
@media (prefers-reduced-motion: reduce) {
  .ac-adv > summary::after {
    transition: none;
  }
}
.ac-adv-body,
.ac-kw {
  display: grid;
  gap: 10px;
  padding: 0 0 12px;
}
.ac-kw {
  padding: 10px;
  border-radius: var(--r-sm);
  background: #151517;
}
.ac-adv-body .switch-row {
  min-height: 44px;
}
.ac-go {
  display: flex;
  gap: 8px;
}
.ac-go .primary {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}
.ac-go button {
  min-height: 44px;
}
.ac progress {
  width: 100%;
  height: 6px;
}
.ac-msg.error {
  color: #ff8a80;
}
.ac-plan,
.ac-cost,
.ac-msg {
  margin: 0;
}
.ac button:focus-visible,
.ac input:focus-visible,
.ac summary:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: 1px;
}
/* CLAUDE 10-23: the caption-style library (capstyles.js). Pinned on top: the clip's style with "Edit look", the search
   with the favourites switch (fxlib.css .cc-fx-bar), the tabs. A tile is its canvas (the preview's own renderer) with
   the name under it, like the presets above it; Premium wears the gold pill in the corner on the free plan, the star
   sits on the other side (yours.css). */
.csl-lib {
  display: grid;
  gap: var(--s-2);
}
.csl-head {
  display: grid;
  gap: var(--s-2);
}
.csl-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--h-md);
  font-size: var(--t-label);
  color: var(--c-fg-2);
}
.csl-now[hidden] {
  display: none;
}
.csl-now-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.csl-now-name small {
  color: var(--c-fg-3);
  font-size: var(--t-meta);
}
.csl-now-name b {
  color: var(--c-fg);
  font-weight: 500;
}
.csl-edit {
  flex: none;
  min-height: var(--h-md);
  padding: 0 var(--s-3);
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-fg);
  font-size: var(--t-label);
  cursor: pointer;
}
.csl-edit:hover {
  background: var(--c-raised);
}
.csl-edit:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
.csl-lib .capfx-cats {
  margin-bottom: 0;
}
.csl-lib .capfx-cats button.dim:not([aria-selected='true']) {
  color: var(--c-fg-3);
}
.csl-status {
  margin: 0;
  font-size: var(--t-meta);
  color: var(--c-fg-3);
}
.csl-tile .csl-cv {
  display: block;
  width: 100%;
  height: 74px;
  border-radius: var(--r-sm);
  background: var(--c-raised);
  transition: background-color var(--d-hover) ease;
}
.csl-tile:hover .csl-cv {
  background: var(--c-overlay);
}
.csl-tile:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
.pro-free .csl-grid button[data-pro]::after {
  position: absolute;
  top: 4px;
  right: 4px;
  margin: 0;
}
.csl-grid .csl-tile {
  position: relative;
}
