/* 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: 10px;
}
.ac > * {
  min-width: 0;
}
.ac h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #b0b0b3;
  letter-spacing: 0.02em;
}
/* CapCut's rows: the name at the left, the choice at the right */
.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: 4px 12px;
  border: 1px solid #3a3a3d;
  border-radius: 10px;
  background: #1c1c1e;
  color: #f3f2ee;
  font-size: 13px;
}
.ac .ac-row select {
  flex: 0 1 60%;
  min-width: 0;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #f3f2ee;
  font-weight: 600;
  text-align: right;
  text-align-last: right;
}
.ac .ac-row:has(select:focus-visible) {
  outline: 2px solid #8ab4ff;
  outline-offset: 1px;
}
.ac .ac-row select:focus-visible {
  outline: none;
}
.ac-lang {
  display: grid;
}
.ac-note {
  margin: 0;
}
.capfx-cats {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.capfx-cats::-webkit-scrollbar {
  display: none;
}
.capfx-cats button {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #3a3a3d;
  border-radius: 18px;
  background: transparent;
  color: #c9ccd3;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.capfx-cats button[aria-selected='true'] {
  border-color: #afafb2;
  background: #29292b;
  color: #fff;
}
@media (max-width: 767.98px) {
  .capfx-cats button {
    min-height: 44px;
  }
}
.capfx-cats button:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: 1px;
}
/* the tiles before the data is there */
.capfx-skel {
  display: block;
  min-height: 86px;
  border-radius: 10px;
  background: linear-gradient(100deg, #1c1c1e 30%, #26262a 50%, #1c1c1e 70%) 0 0 / 220% 100%;
  animation: capfx-shimmer 1.3s linear infinite;
}
@keyframes capfx-shimmer {
  to {
    background-position: -120% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .capfx-skel {
    animation: none;
  }
}
.ac-adv {
  border: 1px solid #3a3a3d;
  border-radius: 10px;
  background: #1c1c1e;
}
.ac-adv > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  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 #8ab4ff;
  outline-offset: -2px;
  border-radius: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .ac-adv > summary::after {
    transition: none;
  }
}
.ac-adv-body,
.ac-kw {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}
.ac-kw {
  padding: 10px;
  border-radius: 8px;
  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;
}
