/* style — the gallery's Retime dialog (js/panel/44m-gallery-retime-dialog.js).   (GALLERY RETIME)
   Right-click a clip in the gallery, Retime…. In the frame of the Trim and
   Crop pop-overs (48-gallery-trim.css): the same veil, card, head and foot,
   at the size of a small form. */
#galretime {
  position: fixed; inset: 0; z-index: 430;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 6, 8, .72); backdrop-filter: blur(3px);
  padding: 16px;
}
#galretime .grt-card {
  width: min(460px, 100%); max-height: 100%; overflow: auto;
  display: flex; flex-direction: column; gap: 10px;
  background: #141418; border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, .7);
}
#galretime .grt-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
#galretime .grt-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
#galretime .grt-name { flex: 1 1 auto; min-width: 0; font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#galretime .grt-x { background: none; border: none; color: var(--text-dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
#galretime .grt-x:hover { color: var(--text); }
#galretime .grt-src { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
#galretime .grt-src.bad, #galretime .grt-msg { color: #ff6b81; }
#galretime .grt-msg { font-size: 11px; flex: 1 1 auto; min-width: 0; }

/* (RETIME SIMPLE) Simon, 11 Nov 2026: "a simpler box where we can just click and drag the slider".
   One Speed slider (log scale, 12.5%-400%) with a small % field, the snap marks under it,
   the new length in large type, the Chronos estimate and the sound note. The methods,
   presets and Keep-the-sound rules of the 9 Nov dialog are gone with them. */
#galretime.grt-simple .grt-card { width: min(400px, 100%); }   /* (RETIME SIMPLE) */
#galretime .grt-speed { display: flex; align-items: center; gap: 10px; }   /* (RETIME SIMPLE) */
#galretime .grt-lbl { font-size: 11px; color: var(--text-dim); }   /* (RETIME SIMPLE) */
#galretime .grt-slider { flex: 1 1 auto; min-width: 0; margin: 0; accent-color: var(--accent); cursor: pointer; }   /* (RETIME SIMPLE) */
#galretime .grt-f { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-dim); }   /* (RETIME SIMPLE) */
#galretime .grt-f input {   /* (RETIME SIMPLE) */
  width: 58px; padding: 3px 5px; font: inherit; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; text-align: right;
  background: var(--card, #1d1d22); border: 1px solid var(--border); border-radius: 4px;
}
#galretime .grt-f input:focus { outline: none; border-color: var(--accent); }   /* (RETIME SIMPLE) */
#galretime .grt-f i { font-style: normal; }   /* (RETIME SIMPLE) */
/* the snap marks, under the slider's track: left = where the speed sits along it (inset by half a thumb) (RETIME SIMPLE) */
#galretime .grt-ticks { position: relative; height: 14px; margin: -6px 82px 0 50px; }   /* (RETIME SIMPLE) */
#galretime .grt-tick {   /* (RETIME SIMPLE) */
  position: absolute; top: 0; transform: translateX(-50%); padding: 0 2px; border: none; background: none; cursor: pointer;
  font-size: 9.5px; line-height: 14px; color: var(--text-dim); font-variant-numeric: tabular-nums;
}
#galretime .grt-tick:hover, #galretime .grt-tick.on { color: var(--accent); }   /* (RETIME SIMPLE) */
#galretime .grt-len { font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-align: center; padding: 2px 0; }   /* (RETIME SIMPLE) */
#galretime .grt-cost { font-size: 11px; color: var(--accent); text-align: center; font-variant-numeric: tabular-nums; }   /* (RETIME SIMPLE) */
#galretime .grt-cost:empty { display: none; }   /* (RETIME SIMPLE) */
#galretime .grt-anote { font-size: 10.5px; color: var(--text-dim); text-align: center; }   /* (RETIME SIMPLE) */
#galretime .grt-anote:empty { display: none; }   /* (RETIME SIMPLE) */
#galretime .grt-foot { display: flex; align-items: center; gap: 8px; }   /* (RETIME SIMPLE) */
#galretime .grt-go:disabled { opacity: .45; cursor: default; }   /* (RETIME SIMPLE) */

/* A clip being retimed: the tile says so, with its progress, until the
   retimed copy lands beside it (as .gal-reversing does). */
.gal-item.gal-retiming { border-color: var(--accent); }
.gal-item.gal-retiming::before {
  content: attr(data-rt);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 5px 8px; font-size: 10.5px; color: #fff; pointer-events: none;
  background: rgba(10, 10, 14, .78); border-top: 1px solid var(--accent);
  animation: gal-rev-pulse 1.4s ease-in-out infinite;
}
