/* CLAUDE 10-11: the inspector of a selected video clip (clipinsp.js). It sits in the right-hand panel in place of the Style
   studio (tiledrop.js's .dnd-inspect), and is the bottom sheet on a phone. Quiet greys like the other editors; the white
   marks the tab that is open. */
.ci {
  display: grid;
  gap: 12px;
  align-content: start;
}
.ci-tabs,
.ci-sub {
  display: flex;
  gap: 2px;
}
.ci-tabs {
  margin-bottom: 2px;
}
.ci-tabs button {
  flex: 1 1 auto;
  padding-inline: 6px;
  font-size: 12px;
}
.ci-tabs button[aria-selected='true'] {
  border-color: #afafb2;
  background: #29292b;
  color: #fff;
}
.ci-sub {
  padding: 2px;
  border-radius: 10px;
  background: #121214;
  border: 1px solid #28282a;
}
.ci-sub button {
  flex: 1 1 0;
  min-height: 0;
  padding: 7px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
}
.ci-sub button[aria-selected='true'] {
  background: #26262b;
  color: #f3f2ee;
}
.ci-tabs button:focus-visible,
.ci-sub button:focus-visible {
  outline: 2px solid #c9cfd3;
  outline-offset: 1px;
}
.ci-body,
.ci-pane {
  display: grid;
  gap: 12px;
  align-content: start;
}
.ci-pane[hidden] {
  display: none;
}
.ci-say:empty {
  display: none;
}
.ci-say {
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #151517;
  border: 1px solid #28282a;
  color: #d4d4d8;
}
.ci-sec {
  display: grid;
  gap: 10px;
  border: 1px solid #28282a;
  border-radius: 11px;
  background: #0f0f11;
  padding: 10px;
}
.ci-sec[hidden] {
  display: none;
}
.ci-sec > h4 {
  margin: 0;
  font-size: 13px;
  color: #ececf0;
}
.ci .hint {
  margin: 0;
  color: #8e8e91;
  font-size: 11px;
  line-height: 1.45;
}
.ci .hint:empty {
  display: none;
}

/* Transform: a name, the typed number and unit, the slider, the keyframe diamond */
.ci-rows {
  display: grid;
  gap: 12px;
}
.ci-row {
  margin: 0;
}
.ci-row .fx-pct {
  margin: 0;
  font-size: 12px;
  color: #a1a1aa;
}
.ci-row .fx-pct .cc-adjust-value {
  width: 64px;
}
.ci-row input:disabled,
.ci-row .kf-dia:disabled {
  opacity: 0.35;
  cursor: default;
}
.ci-moves {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ci-moves span {
  width: 100%;
  font-size: 11px;
  color: #959598;
}
.ci-moves button {
  min-height: 0;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 6px;
}
.ci-keys {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ci-keys:empty {
  display: none;
}
.ci-keys div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #bebec1;
}
.ci-keys div span {
  flex: 1;
}
.ci-keys button {
  min-height: 0;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 5px;
}
.ci-clear {
  justify-self: start;
}
.ci-layers {
  display: grid;
  gap: 6px;
}

/* the clip tools' box (clipfx.js) shows one view at a time: Basic has opacity, Arrange and Reverse / Stabilize; Mask and
   Animation each have their own sub-tab, which names them */
.ci .cf .cf-at {
  display: none;
}
.ci .cf[data-view='basic'] .cf-group[data-g='anim'],
.ci .cf[data-view='basic'] .cf-group[data-g='mask'],
.ci .cf[data-view='mask'] .cf-group:not([data-g='mask']),
.ci .cf[data-view='anim'] .cf-group:not([data-g='anim']) {
  display: none;
}
.ci .cf[data-view='mask'] .cf-group > summary,
.ci .cf[data-view='anim'] .cf-group > summary {
  display: none;
}
.ci .cf[data-view='mask'] .cf-group,
.ci .cf[data-view='anim'] .cf-group {
  padding-top: 10px;
}
.ci .cf[data-view='mask'] > .cf-hint,
.ci .cf[data-view='anim'] > .cf-hint {
  display: none;
}

/* the video's own sound: the audio editor's card (app-audioed.js, styled by audioed.css under .audio-ed), here not hidden
   and without its head (the section above names it) */
.ci .audio-ed {
  display: block;
}
.ci .audio-ed .overlay-head {
  display: none;
}
.ci .audio-ed .ae-tabs {
  margin-top: 0;
}

/* a phone: the sheet's controls are a finger wide */
@media (max-width: 767.98px) {
  body.pe-on .ci-tabs button,
  body.pe-on .ci-sub button,
  body.pe-on .ci-moves button,
  body.pe-on .ci-keys button,
  body.pe-on .ci-clear {
    min-height: 44px;
  }
  body.pe-on .ci-row input[type='range'] {
    height: 44px;
    margin-block: 0;
  }
  body.pe-on .ci-row .fx-pct .cc-adjust-value {
    min-height: 44px;
  }
  /* the keyframe diamond keeps its look and gets a finger-sized hit area (it is already positioned: .kf-host) */
  body.pe-on .ci-row .kf-dia::before {
    content: '';
    position: absolute;
    inset: -14px;
  }
  /* "bring it into view" lands the section below the sheet's own header */
  body.pe-on .ci-sec,
  body.pe-on .cf-group {
    scroll-margin-top: 68px;
  }
}
