/* CLAUDE 10-03: editor chrome polish, loaded after editor.css. The owner's CapCut comparison: cheap glyph icons, a
   wrapping timeline toolbar, handles that did not scale, effects with no visible lane, an oversized UI.
   Dark UI; green only marks the one primary action (Export), so the active / pressed states here are white on grey.
   Interface font: Mona Sans (interface.css). Timecodes: JetBrains Mono ('RipClip Mono', landing.css). */

/* --- icons: one family, 1.75 px strokes, drawn inline in index.html ----------------------------------------- */
.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.ic-play,
.ic-pause {
  fill: currentColor;
}

/* --- rich tooltip (tip.js) -----------------------------------------------------------------------------------
   CLAUDE 10-18 (polish B3a): the skin is Graphite now (overlay tone, the floating-layer shadow, tokens). Its motion (125 ms,
   from the edge it hangs off, instant next to a showing one, fade only under reduced motion) is motion.css's. */
.rip-tip {
  position: fixed;
  z-index: 10000;
  max-width: 250px;
  padding: 8px 10px 9px;
  border-radius: var(--r-md);
  color: var(--c-fg-2);
  font-size: var(--t-label);
  font-weight: 400;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
}
.rip-tip.on {
  opacity: 1;
}
.rip-tip[hidden] {
  display: none;
}
.rip-tip .rt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rip-tip b {
  color: var(--c-fg);
  font-size: var(--t-label);
  font-weight: 650;
}
.rip-tip p {
  margin: 3px 0 0;
  color: var(--c-fg-3);
  font-size: var(--t-meta);
}
.rip-tip .rt-head:last-child + p,
.rip-tip .rt-head + p:empty {
  margin: 0;
}
.rip-tip kbd {
  padding: 1px 6px;
  border: 1px solid #3d3d44;
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  background: #1c1c20;
  color: #e9e9ec;
  font:
    600 10.5px/1.5 'RipClip Mono',
    ui-monospace,
    monospace;
  white-space: nowrap;
}

/* --- player bar ---------------------------------------------------------------------------------------------- */
main .transport {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 8px 0 6px;
  font-variant-numeric: tabular-nums;
}
main .transport .tp-btn {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: #c4c4c9;
  font-size: 0;
  cursor: pointer;
}
/* hover only where there is a hover (a tap on a touch screen used to leave the fill on) */
@media (hover: hover) and (pointer: fine) {
  main .transport .tp-btn:hover:not(:disabled) {
    background: #26262b;
    color: #fff;
  }
}
main .transport .tp-btn:focus-visible {
  outline: 2px solid #f3f2eeb3;
  outline-offset: -2px;
}
main .transport .tp-btn:disabled {
  opacity: 0.32;
  cursor: default;
}
main .transport #playBtn.tp-play {
  width: 36px;
  height: 36px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--q-ink, #f3f2ee);
  color: var(--q-ink-ink, #0b0b0d);
}
@media (hover: hover) and (pointer: fine) {
  main .transport #playBtn.tp-play:hover {
    background: #fff;
    color: #000;
  }
}
main .transport #playBtn .ic-pause,
main .transport #muteBtn .ic-muted {
  display: none;
}
main .transport #playBtn[data-playing='1'] .ic-play,
main .transport #muteBtn[data-muted='1'] .ic-vol {
  display: none;
}
main .transport #playBtn[data-playing='1'] .ic-pause,
main .transport #muteBtn[data-muted='1'] .ic-muted {
  display: block;
}
main .transport #muteBtn[data-muted='1'] {
  background: #26262b;
  color: #fff;
}
/* a narrow player column (a 1100 px window) drops the total time, then the frame-save button, so nothing overflows */
main .transport {
  container-type: inline-size;
}
@container (max-width: 520px) {
  #duration {
    display: none;
  }
}
@container (max-width: 440px) {
  #snapBtn,
  #fullBtn {
    display: none;
  }
  main .transport .tp-btn {
    width: 30px;
  }
  main .transport #playBtn.tp-play {
    width: 34px;
    height: 34px;
    margin-right: 2px;
  }
  main .transport #clock {
    min-width: 54px;
    margin-left: 2px;
  }
  main .transport .ratio-pick {
    margin: 0 2px;
  }
}
main .transport #clock,
main .transport #duration {
  flex: none;
  min-width: 58px;
  color: #e4e4e8;
  font:
    400 12px/1 'RipClip Mono',
    ui-monospace,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
}
main .transport #clock {
  margin-left: 6px;
}
main .transport #duration {
  color: #85858d;
}
main .transport .ratio-pick {
  flex: none;
  width: auto;
  height: 28px;
  min-height: 0;
  margin: 0 4px;
  padding: 0 22px 0 9px;
  border: 1px solid #2c2c31;
  border-radius: var(--r-sm);
  background-color: #1c1c20;
  color: #e4e4e8;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
main .transport .ratio-pick:hover {
  background-color: #26262b;
}
/* the seek bar: a 4 px rail with a white fill (--p, app-project.js seekFill); the knob shows on hover or focus */
main .transport #seek {
  flex: 1 1 60px;
  min-width: 60px;
  height: 18px;
  margin: 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  --p: 0%;
}
main .transport #seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f3f2ee var(--p), #34343a var(--p));
}
main .transport #seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #0b0b0d99;
  /* CLAUDE 10-18 (polish B3a): nothing appears from scale(0); the knob grows from .6 while it fades in. Only its reveal
     animates: the knob's position follows the pointer 1:1 and the playhead never has a transition */
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity var(--d-hover) ease,
    transform var(--d-hover) var(--ease-out);
}
main .transport #seek:focus-visible::-webkit-slider-thumb,
main .transport #seek:active::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1);
}
@media (hover: hover) and (pointer: fine) {
  main .transport #seek:hover::-webkit-slider-thumb {
    opacity: 1;
    transform: scale(1);
  }
}
main .transport #seek::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #34343a;
}
main .transport #seek::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: #f3f2ee;
}
main .transport #seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  background: #fff;
}
main .transport #seek:focus-visible {
  outline: none;
}

/* --- timeline toolbar: one row of icon buttons ---------------------------------------------------------------- */
main .tl-tools {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  min-height: 38px;
  margin: 0;
  padding: 4px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--c-overlay) transparent;
  border-bottom: 1px solid var(--c-line);
}
.tl-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
}
.tl-sep {
  flex: none;
  width: 1px;
  height: 16px;
  margin: 0 7px;
  background: var(--c-line-strong);
}
.tl-grow {
  flex: 1 1 0;
  min-width: 8px;
}
main .tl-tools .tl-ibtn {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-fg-2);
  font-size: 0;
  opacity: 1;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  main .tl-tools .tl-ibtn:hover:not(:disabled) {
    background: var(--c-raised);
    color: var(--c-fg);
  }
}
main .tl-tools .tl-ibtn:focus-visible,
main .tl-tools .tl-recmute:has(input:focus-visible) {
  outline: 2px solid var(--c-focus);
  outline-offset: -2px;
}
main .tl-tools .tl-ibtn:disabled {
  opacity: 0.3;
  cursor: default;
}
/* on = bright on a raised fill (never green, no outline); the toggles also set aria-pressed */
main .tl-tools .tl-ibtn.on,
main .tl-tools .tl-ibtn[aria-pressed='true'],
main .tl-tools .tl-recmute:has(input:checked) {
  background: var(--c-raised);
  color: var(--c-fg);
  box-shadow: none;
}
main .tl-tools .tl-recmute:not(:has(input:checked)) {
  opacity: 0.55;
}
main .tl-tools .tl-record.on {
  width: auto;
  padding: 0 9px 0 7px;
  gap: 5px;
  grid-auto-flow: column;
  background: rgba(255, 107, 107, 0.12);
  color: var(--c-danger);
  box-shadow: none;
}
main .tl-tools .tl-rec-text {
  font:
    600 11.5px/1 'RipClip Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0;
}
main .tl-tools .tl-rec-text:empty {
  display: none;
}
main .tl-tools .tl-zoom {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 4px;
  color: var(--c-fg-3);
}
main .tl-tools .tl-zoom .ic {
  width: 16px;
  height: 16px;
}
main .tl-tools .tl-zoom input {
  width: 104px;
  margin: 0 2px;
}
/* the shortcut list behind the ? button (a fixed popover set by app-timeline.js) */
.tl-help {
  position: fixed;
  z-index: 9000;
  width: 290px;
  padding: 12px 14px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-overlay);
  box-shadow: var(--e-float);
  color: var(--c-fg-2);
  font-size: var(--t-label);
}
.tl-help[hidden] {
  display: none;
}
.tl-help h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}
.tl-help dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 0;
}
.tl-help dt {
  color: #e9e9ec;
  font:
    600 11px/1.5 'RipClip Mono',
    ui-monospace,
    monospace;
  white-space: nowrap;
}
.tl-help dd {
  margin: 0;
  color: #9a9aa2;
}

/* --- timeline lanes -------------------------------------------------------------------------------------------- */
/* a transition on a cut is a box as wide as the overlap it covers (CapCut), with a swap icon; it selects the cut */
.tl-cut.tl-cut-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max(var(--w, 0%), 30px);
  height: 22px;
  margin: -11px 0 0;
  padding: 0 4px;
  overflow: hidden;
  border: 1px solid #f3f2ee;
  border-radius: var(--r-xs);
  background: #2a2a30;
  color: #f3f2ee;
  font-size: var(--t-meta);
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  z-index: 4;
}
.tl-cut.tl-cut-box svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tl-cut.tl-cut-box b {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
}
.tl-cut.tl-cut-box:hover {
  background: #3a3a42;
}
/* CLAUDE 11-03: drag either edge of a transition to change its length */
.tl-cut-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
  touch-action: none;
}
.tl-cut-edge.l {
  left: -1px;
}
.tl-cut-edge.r {
  right: -1px;
}
.tl-cut-edge::after {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--d-ui);
}
.tl-cut.tl-cut-box:hover .tl-cut-edge::after,
.tl-cut-edge:active::after {
  opacity: 0.7;
}
.tl-cut.tl-cut-box.selected,
.tl-cut.tl-cut-box.dnd-hot {
  background: #f3f2ee;
  color: #0b0b0d;
  box-shadow: 0 0 0 3px #ffffff40;
}
/* the shaded ends of a text or sticker bar are its In / Out animation; a stripe means it also loops */
.tl-block .tl-anim {
  position: absolute;
  top: 0;
  bottom: 0;
  max-width: 100%;
  pointer-events: none;
}
.tl-block .tl-anim.in {
  left: 0;
  background: linear-gradient(90deg, #000000c4, #00000052);
  border-right: 1px dashed #ffffffb3;
  border-radius: var(--r-xs) 0 0 var(--r-xs);
}
.tl-block .tl-anim.out {
  right: 0;
  background: linear-gradient(270deg, #000000c4, #00000052);
  border-left: 1px dashed #ffffffb3;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}
/* CLAUDE 10-20: a clip's Combo animation runs over the whole clip: a stripe over its frames (app-timeline.js tlSegAnim) */
.tl-block .tl-anim.combo {
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 4px, transparent 4px 9px);
  border-radius: var(--r-xs);
}
.tl-block.tl-looping {
  background-image: repeating-linear-gradient(135deg, #ffffff1f 0 4px, transparent 4px 9px);
}
.tl-block.tl-ov.tl-looping {
  background-color: #6a5616;
}
/* below 1100 px the video lane and its name were different heights, which pushed every name after it off its lane */
main .tl-track[data-track='video'],
main .tl-labels span[data-video-label] {
  height: 42px;
  line-height: 42px;
}
/* effects: a lane of its own, directly under Adjustments and above the video, a bar per effect */
.tl-track[data-track='effects'] {
  background: transparent; /* CLAUDE 10-12 Graphite: lanes have no fill; only the clips are shapes */
}
.tl-fx {
  gap: 6px;
  border-color: #b0386a;
  background: linear-gradient(180deg, #7d2646, #6b1f3a);
}
.tl-fx.selected {
  box-shadow:
    inset 0 0 0 2px #f2f2f4,
    0 0 0 1px #0008;
}

/* --- density: the editor read like ~130% zoom next to CapCut; about 12% smaller, still readable ------------------ */
/* neutral states everywhere inside the editor: white rings, grey numbers (green stays on Export and the logo) */
main {
  --accent: var(--c-primary);
}
main .tl-seg.selected,
main .tl-ov.selected {
  border-color: #f3f2ee;
  box-shadow: 0 0 0 1px #f3f2ee inset;
}
/* CLAUDE 10-18 (polish B3a): timeline feedback, quiet. A block's ring fades in over 120 ms when it is picked (no scale), its
   outline brightens over 100 ms under the pointer, and while it is held down it casts a soft shadow (it is lifted). The drag
   itself is the 1:1 transform set by app-timeline.js and is never given a transition: nothing here touches transform, left
   or width, so a block can never lag the pointer (the 09-27 blanket once did). */
main .tl-block {
  transition:
    box-shadow var(--d-hover) ease,
    border-color var(--d-hover) ease,
    opacity var(--d-hover) ease,
    filter var(--d-hover) ease;
}
main .tl-block:active {
  filter: drop-shadow(0 4px 8px rgba(6, 6, 9, 0.55));
}
main .overlay-card.selected {
  border-color: #8a8a92;
  box-shadow: 0 0 0 1px #8a8a9255;
}
main output {
  color: #b9b9c0;
}
body main .cc-fx button.added {
  border-color: transparent;
  color: #fff;
}
@media (min-width: 1100px) {
  header {
    height: 46px;
    gap: 12px;
  }
  header .brand {
    font-size: 15px;
    gap: 8px;
  }
  header .brand .studio-mark {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }
  header .project-title input {
    padding: 5px 9px;
    font-size: 13px;
  }
  header #saveStatus {
    font-size: 11px;
  }
  header .header-actions {
    gap: 6px;
  }
  header .header-actions button {
    min-height: var(--h-sm);
    padding: 4px 10px;
    font-size: var(--t-label);
    font-weight: 500;
    border-radius: var(--r-pill);
  }
  header .header-actions #exportBtn {
    font-weight: 500;
  }
  header .versions-btn {
    display: inline-grid;
    place-items: center;
    width: 26px;
    min-height: 26px;
    height: 26px;
    padding: 0;
    border-radius: var(--r-pill);
    color: #a1a1aa;
    vertical-align: middle;
  }
  header .versions-btn:hover {
    background: #26262b;
    color: #fff;
  }
  header .versions-btn .ic {
    width: 16px;
    height: 16px;
  }
  /* the account is one compact pill; Sign out drops down from it */
  header .account-chip {
    position: relative;
    display: inline-flex;
  }
  header .account-chip b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 130px;
    height: 28px;
    padding: 0 10px 0 11px;
    overflow: hidden;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    font-size: var(--t-label);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  header .account-chip b::after {
    content: '';
    flex: none;
    width: 5px;
    height: 5px;
    margin: -2px 0 0 2px;
    border: solid #9a9aa2;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }
  header .account-chip b:hover,
  header .account-chip:focus-within b {
    background: var(--c-raised);
  }
  header .account-chip #signOutBtn {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    z-index: 30;
    display: none;
    min-width: 120px;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--c-overlay);
    box-shadow: var(--e-float);
    font-size: var(--t-label);
    text-align: left;
  }
  header .account-chip:hover #signOutBtn,
  header .account-chip:focus-within #signOutBtn {
    display: block;
  }
  main {
    height: calc(100dvh - 46px);
    gap: 6px;
    padding: 6px;
  }
  .library,
  .inspector {
    padding: 12px;
    --pin-top: -12px; /* (CLAUDE 10-20: controls.css .pin-set, over the padding) */
  }
  /* left panel: category icons and labels smaller, a narrower sub list, 4-5 tiles to a row */
  .library.cc-panel {
    padding: 0;
  }
  main .cc-cats button {
    gap: 3px;
    padding: 5px var(--s-1) 6px;
    font-size: var(--t-meta);
    font-weight: 500;
    letter-spacing: 0;
  }
  main .cc-cats button svg {
    width: 17px;
    height: 17px;
  }
  main .cc-subs {
    width: 96px;
    gap: 2px;
    padding: 8px 6px;
  }
  main .cc-subs button {
    padding: 6px 8px 6px 10px;
    font-size: var(--t-label);
    font-weight: 500;
    line-height: 1.25;
  }
  main .cc-content {
    padding: 10px 10px 16px;
    --pin-top: -10px; /* (CLAUDE 10-20: controls.css .pin-set, over the padding) */
  }
  main .cc-section {
    gap: 8px;
  }
  /* tiles: the picture, then its name below in small muted text (CapCut) */
  main .cc-fx {
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 10px 6px;
  }
  main .cc-fx button {
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a1a1aa;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
  }
  main .cc-fx button i {
    border: 0;
    border-radius: var(--r-sm);
  }
  main .cc-fx button span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  main .cc-fx button:hover {
    color: #e4e4e8;
  }
  main .cc-fx button:hover i {
    opacity: 0.85;
  }
  main .cc-fx button.added i {
    box-shadow: 0 0 0 1.5px var(--c-fg);
  }
  /* P3 (polish B3a): the ring of the chosen tile fades in over 180 ms instead of switching on */
  main .cc-fx button i,
  main .cc-transition-grid button > span[aria-hidden],
  main .cc-transition-grid button .tp-canvas {
    transition:
      box-shadow var(--d-ui) var(--ease-out),
      opacity var(--d-hover) ease;
  }
  main .cc-transition-grid,
  main .cc-cuts .cc-transition-grid {
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 10px 6px;
    margin-bottom: 10px;
  }
  main .cc-transition-grid button,
  main .cc-cuts .cc-transition-grid button {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 400;
  }
  main .cc-transition-grid button > span[aria-hidden],
  main .cc-cuts .cc-transition-grid button > span[aria-hidden] {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    border: 1px solid #2c2c31;
    border-radius: var(--r-sm);
    background: #171719;
    color: #d4d4d8;
    font-size: 18px;
  }
  main .cc-transition-grid button.tp-on > span[aria-hidden] {
    display: none; /* the live preview (tileprev.js) takes the icon's place */
  }
  main .cc-transition-grid button strong {
    overflow: hidden;
    color: inherit;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  main .cc-transition-grid button .tp-canvas {
    border: 1px solid #2c2c31;
    border-radius: var(--r-sm);
  }
  main .cc-transition-grid button:hover {
    color: #e4e4e8;
  }
  main .cc-transition-grid button[aria-pressed='true'] {
    background: transparent;
    color: #fff;
  }
  main .cc-transition-grid button[aria-pressed='true'] > span[aria-hidden],
  main .cc-transition-grid button[aria-pressed='true'] .tp-canvas {
    box-shadow: 0 0 0 2px #f3f2ee;
  }
  /* forms in the left panel and the Style Studio: 12 px fields (the rows themselves: controls.css, CLAUDE 11-09; a menu
     keeps its own right padding for the chevron) */
  main
    :is(.inspector, .cc-content)
    :is(input, textarea):not([type='checkbox']):not([type='range']):not([type='color']) {
    padding: 6px 8px;
    font-size: 12px;
  }
  main :is(.inspector, .cc-content) select {
    font-size: 12px;
  }
  main :is(.inspector, .cc-content) .hint {
    font-size: 11px;
    line-height: 1.45;
  }
  main .inspector .section-title {
    margin-bottom: 10px;
  }
  main .inspector .tabs {
    gap: 2px;
    margin-bottom: 10px;
  }
  main .inspector .tabs button {
    padding: 7px 8px;
    font-size: 11.5px;
  }
  main .inspector .preset-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 8px;
  }
  main .inspector .preset-tile .sample {
    height: 54px;
  }
  /* CLAUDE 10-18 (polish B3a): the name over its quiet detail, each on one line (a long detail ends in an ellipsis instead of
     wrapping into the name, as "Karaoke" and "Montserrat Black" did); the chosen tile's ring fades in over 180 ms */
  main .inspector .preset-tile .name {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1px;
    min-width: 0;
    padding: 6px 4px 4px;
    font-size: var(--t-meta);
  }
  main .inspector .preset-tile .name :is(b, small) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  main .inspector .preset-tile {
    transition:
      box-shadow var(--d-ui) var(--ease-out),
      scale 220ms var(--ease-spring);
  }
  /* the lanes (the trim bar's one definition is style.css's, CLAUDE 11-09) */
  main .tl-body {
    gap: 6px;
    padding: 4px 14px 8px 10px;
  }
  main .tl-labels {
    width: 78px;
    gap: 4px;
  }
  main .tl-tracks {
    gap: 4px;
  }
  main .tl-labels span,
  main .tl-track {
    height: 26px;
    line-height: 26px;
  }
  main .tl-labels span:first-child {
    height: 30px;
    line-height: 30px;
  }
  main .tl-track[data-track='video'],
  main .tl-labels span[data-video-label] {
    height: 48px;
    line-height: 48px;
  }
  main .tl-block {
    font-size: var(--t-meta);
  }
  main .tl-track[data-track='effects'] .tl-block {
    height: 22px;
  }
}

/* CLAUDE 10-20 (owner: "why am I not getting export settings"): the Export panel under the Export button (app-export.js
   exportPanel, exportset.js). The surface of .tl-menu; a choice is a quiet tile, the chosen one ringed in the ink colour
   (the phone's quality chip, phonescreen.css .pe-seg); no green: nothing here is a state. */
.exp-panel {
  position: fixed;
  z-index: 1000;
  width: 360px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--c-overlay);
  box-shadow: var(--e-float);
  color: var(--c-fg);
  transform-origin: top right;
  animation: rc-pop var(--d-ui) var(--ease-out);
}
.exp-panel > b,
.exp-panel .exp-q > b,
.exp-panel .exp-name > span {
  display: block;
  margin: 0 0 var(--s-2);
  color: var(--c-fg-2);
  font-size: var(--t-label);
  font-weight: 500;
}
.exp-panel .exp-name {
  display: block;
  margin-bottom: var(--s-4);
}
.exp-panel .exp-name input {
  width: 100%;
  min-height: var(--h-touch);
  padding: 0 var(--s-3);
  border: 0;
  border-radius: var(--r-field);
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-fg);
  font: inherit;
  font-size: var(--t-body);
}
.exp-panel .pe-seg,
.exp-panel .exp-shapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.exp-panel .pe-seg.pe-fps {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: var(--s-2);
}
.exp-panel .pe-seg button,
.exp-panel .exp-shapes button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--h-touch);
  padding: 6px 4px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-fg-2);
  font: inherit;
  font-size: var(--t-body);
  transition:
    background var(--d-hover) var(--ease-out),
    color var(--d-hover) var(--ease-out);
}
.exp-panel .pe-seg:not(.pe-fps) button {
  min-height: 56px;
}
.exp-panel .pe-seg button b {
  color: inherit;
  font-size: var(--t-body);
  font-weight: 600;
}
.exp-panel .pe-seg button small {
  color: var(--c-fg-3);
  font-size: var(--t-meta);
}
.exp-panel .pe-seg button small.pe-plan {
  color: var(--c-warn);
}
.exp-panel :is(.pe-seg, .exp-shapes) button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-fg);
}
.exp-panel :is(.pe-seg button[aria-checked='true'], .exp-shapes button[aria-pressed='true']) {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--c-fg);
  color: var(--c-fg);
}
.exp-panel :is(button, input):focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
.exp-panel .exp-note {
  display: block;
  margin-bottom: var(--s-4);
  color: var(--c-fg-3);
  font-size: var(--t-label);
}
.exp-panel .exp-meta,
.exp-panel .exp-free {
  margin: 0 0 var(--s-3);
  color: var(--c-fg-2);
  font-size: var(--t-label);
}
.exp-panel .exp-free .exp-up {
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-fg);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.exp-panel .exp-go {
  width: 100%;
  min-height: var(--h-touch);
  border-radius: var(--r-pill);
  font-size: var(--t-body);
  font-weight: 600;
}
