.media-thumb video,
.clip-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050506;
}

.clip-card video { height: 92px; }

.media-kind {
  position: absolute !important;
  left: 5px !important;
  right: auto !important;
  top: auto !important;
  bottom: 5px !important;
  padding: 3px 6px !important;
  background: #08080cdd !important;
  color: #fff !important;
  border: 1px solid #ffffff2b;
  border-radius: 999px !important;
  font-size: 8px !important;
  letter-spacing: .07em;
}

.clip-kind {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--pink), var(--violet));
  font-size: 8px;
  font-weight: 800;
}

.video-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.inspector #videoControls { padding-bottom: 12px; }
.inspector #videoControls label { margin: 10px 0; }

.media-item {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.media-item .media-thumb {
  width: 100%;
  height: 100%;
}

.media-remove,
.clip-remove {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: #08080de8;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.media-remove { top: 5px; right: 5px; }
.clip-remove { top: 6px; right: 6px; }
.media-remove:hover,
.clip-remove:hover { border-color: var(--pink); background: var(--pink); }

.clip-wrap {
  position: relative;
  flex: 0 0 190px;
  min-width: 0;
  height: 100%;
}

.clip-wrap .clip-card {
  width: 100%;
  height: calc(100% - 30px);
  min-width: 0;
  flex: none;
}

.clip-wrap .clip-card img,
.clip-wrap .clip-card video { height: calc(100% - 34px); min-height: 55px; }
.clip-wrap .clip-card footer { height: 34px; }
.clip-wrap .clip-card footer span:last-child { color: #686874; font-size: 7px; font-weight: 850; letter-spacing: .12em; }

.clip-duration-editor {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 0;
  left: 0;
  height: 26px;
  margin: 0;
  padding: 3px 6px 3px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #303039;
  border-radius: 7px;
  background: #0d0d11;
  color: #8f8f9a;
  font-size: 8px;
  font-weight: 750;
}
.clip-duration-editor input {
  width: 50px;
  height: 19px;
  margin-left: auto;
  padding: 1px 3px;
  border: 1px solid #464650;
  border-radius: 5px;
  outline: none;
  background: #18181e;
  color: #fff;
  text-align: right;
  font-size: 10px;
  font-weight: 850;
  appearance: textfield;
}
.clip-duration-editor input::-webkit-inner-spin-button { opacity: .65; }
.clip-duration-editor input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px #19d9ff25; }
.clip-duration-editor small { color: #70707b; font-size: 8px; }
.clip-duration-handle {
  position: absolute;
  z-index: 8;
  top: 30px;
  right: -2px;
  bottom: 30px;
  width: 12px;
  padding: 0;
  border: 1px solid #65405d;
  border-radius: 6px;
  background: linear-gradient(180deg,#26121f,#18131a);
  cursor: ew-resize;
  touch-action: none;
}
.clip-duration-handle::before { content: ""; position: absolute; top: 50%; left: 3px; width: 4px; height: 22px; border-left: 1px solid #ff55a7; border-right: 1px solid #6adfff; transform: translateY(-50%); opacity: .8; }
.clip-duration-handle:is(:hover,:focus-visible,.resizing) { border-color: var(--cyan); box-shadow: 0 0 13px #19d9ff45; outline: none; }
.clip-duration-live {
  position: absolute;
  z-index: 12;
  top: 5px;
  right: 5px;
  min-width: 58px;
  padding: 6px 8px;
  border: 1px solid var(--cyan);
  border-radius: 7px;
  background: #07151aee;
  box-shadow: 0 0 22px #19d9ff55;
  color: #83ebff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease,transform .12s ease;
}
.clip-wrap.timing-active { z-index: 20; }
.clip-wrap.timing-active .clip-duration-live { opacity: 1; transform: none; }
.clip-wrap.timing-active .clip-duration-editor { border-color: var(--cyan); background: #0b1b20; box-shadow: 0 0 18px #19d9ff2e; color: #83ebff; }
.clip-wrap.timing-active .clip-duration-editor input { border-color: var(--pink); background: #24101d; color: #fff; box-shadow: 0 0 0 2px #ff087f24; }
.timeline-timing-live #durationOut,
.timeline-timing-live #timelineDuration { color: var(--cyan); text-shadow: 0 0 13px #19d9ff99; }

.help-tooltip {
  position: fixed;
  z-index: 5000;
  max-width: min(260px,calc(100vw - 20px));
  padding: 8px 10px;
  border: 1px solid #474752;
  border-radius: 8px;
  background: #17171df2;
  box-shadow: 0 12px 34px #000b;
  color: #f1f1f5;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%,3px);
  opacity: 0;
  transition: opacity .12s ease,transform .12s ease;
}
.help-tooltip.show { opacity: 1; transform: translate(-50%,0); }

button.transition-chip {
  background: #151117;
  cursor: pointer;
}

button.transition-chip:hover,
button.transition-chip:focus-visible {
  border-color: var(--pink);
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px #ff087f2e;
}

.auto-button {
  border-color: #ff087f88;
  background: linear-gradient(110deg, #2b1021, #1b1235);
  color: #fff;
}

.auto-summary {
  margin: 18px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #17171b;
  color: #c7c7d0;
  font-size: 12px;
}

.button:disabled {
  opacity: .55;
  cursor: progress;
}

.preloader.done { pointer-events: none; }

@media(max-width:1150px) {
  .clip-wrap { flex-basis: 160px; }
  .auto-button { padding-inline: 10px; }
}

.transition-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.transition-gallery button {
  min-width: 0;
  padding: 7px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111115;
  cursor: pointer;
}

.transition-gallery button.active { border-color: var(--pink); box-shadow: inset 0 0 0 1px #ff087f55; }
.transition-gallery b { font-size: 10px; }
.transition-gallery small { color: var(--muted); font-size: 8px; }
.sketch { grid-row: 1 / 3; position: relative; width: 42px; height: 31px; overflow: hidden; border-radius: 5px; background: #252531; }
.sketch::before,.sketch::after { content: ""; position: absolute; inset: 0; }
.sketch::before { background: linear-gradient(135deg,#ff087f,#7b35e8); }
.sketch::after { background: linear-gradient(135deg,#1ad7ff,#25335f); }
.sketch-fade::after { opacity: .5; }
.sketch-cut::before { right: 50%; }.sketch-cut::after { left: 50%; }
.sketch-left::before { transform: translateX(-46%); }.sketch-left::after { transform: translateX(54%); }
.sketch-right::before { transform: translateX(46%); }.sketch-right::after { transform: translateX(-54%); }
.sketch-up::before { transform: translateY(-46%); }.sketch-up::after { transform: translateY(54%); }
.sketch-down::before { transform: translateY(46%); }.sketch-down::after { transform: translateY(-54%); }
.sketch-wipe::after { left: 48%; box-shadow: -3px 0 8px #fff8; }
.sketch-flash::after { clip-path: polygon(48% 0,66% 0,56% 39%,78% 39%,35% 100%,45% 55%,25% 55%); background: #fff; filter: drop-shadow(0 0 5px #fff); }

.export-options { margin: 18px 0; padding: 0; border: 0; }
.export-options legend { margin-bottom: 9px; color: #aaa; font-size: 11px; }
.export-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.export-presets label { display: block; cursor: pointer; }
.export-presets input { position: absolute; opacity: 0; pointer-events: none; }
.export-presets span { min-height: 70px; padding: 12px 8px; display: grid; align-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: #17171b; text-align: center; }
.export-presets b { font-size: 11px; }.export-presets small { color: var(--muted); font-size: 9px; }
.export-presets input:checked + span { border-color: var(--pink); background: linear-gradient(145deg,#271120,#1a1231); box-shadow: inset 0 0 0 1px #ff087f55; }
.export-presets .recommended span::before { content: "RECOMMANDÉ"; color: var(--pink); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.dialog-card select { width: 100%; padding: 12px; border: 1px solid #33333b; border-radius: 9px; background: #17171b; color: #fff; }
.export-success { margin-top: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid #50e6bd55; border-radius: 11px; background: #0e251f; }
.export-success>span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #50e6bd; color: #06251c; font-weight: 950; }
.export-success b,.export-success small { display: block; }.export-success b { color: #76f2cf; font-size: 13px; }.export-success small { margin-top: 3px; color: #a7c9c0; font-size: 9px; }

.brand span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.brand b { font-size: 13px; line-height: 1; white-space: nowrap; }
.brand small { color: #777784; font-size: 6.5px; line-height: 1.25; letter-spacing: .035em; white-space: nowrap; }
.audio-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #78e7c5;
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: .08em;
}
.audio-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #50e6bd;
  box-shadow: 0 0 9px #50e6bd;
}
.transport button:not(.play) { min-width: 34px; }

#clipTools { height: calc(100% - 48px); min-height: 0; }
#clipTools #clipInspector { height: 100%; }
#clipTools.mode-element #transitionSettings { display: none; }
#clipTools.mode-transition #clipInspector > :not(.clip-title):not(#transitionSettings) { display: none; }
#clipTools.mode-transition .clip-title #removeClip { display: none; }
#clipTools.mode-transition #transitionSettings { margin-top: 4px; border-top: 0; padding-top: 4px; }
#clipTools.mode-transition #transitionSettings legend { padding-top: 4px; color: #fff; font-size: 14px; }
.control-help { margin: 0 0 10px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.canvas-hint { margin-left: auto; margin-right: 10px; color: #8f8f9a; font-size: 8px; letter-spacing: .04em; }
.stage-wrap canvas { cursor: grab; touch-action: none; }
.stage-wrap canvas.positioning { cursor: grabbing; box-shadow: 0 20px 60px #000, 0 0 0 2px #19d9ff88; }

.transition-gallery button[draggable="true"] { user-select: none; }
.transition-gallery button.dragging { opacity: .55; border-color: var(--cyan); }
.transition-gallery button:is(:hover,:focus-visible,.active) .sketch-fade::after { animation: ffPreviewFade 1.1s ease-in-out; }
.transition-gallery button:is(:hover,:focus-visible,.active) .sketch-cut::after { animation: ffPreviewCut 1.1s steps(1,end); }
.transition-gallery button:is(:hover,:focus-visible,.active) .sketch-left::after { animation: ffPreviewLeft 1.1s ease-in-out; }
.transition-gallery button:is(:hover,:focus-visible,.active) .sketch-right::after { animation: ffPreviewRight 1.1s ease-in-out; }
.transition-gallery button:is(:hover,:focus-visible,.active) .sketch-up::after { animation: ffPreviewUp 1.1s ease-in-out; }
.transition-gallery button:is(:hover,:focus-visible,.active) .sketch-down::after { animation: ffPreviewDown 1.1s ease-in-out; }
.transition-gallery button:is(:hover,:focus-visible,.active) .sketch-wipe::after { animation: ffPreviewWipe 1.1s ease-in-out; }
.transition-gallery button:is(:hover,:focus-visible,.active) .sketch-flash::after { animation: ffPreviewFlash 1.1s ease-in-out; }
@keyframes ffPreviewFade { 0% { opacity: 0; } 50%,100% { opacity: 1; } }
@keyframes ffPreviewCut { 0%,49% { opacity: 0; } 50%,100% { opacity: 1; } }
@keyframes ffPreviewLeft { 0% { transform: translateX(100%); } 100% { transform: translateX(0); } }
@keyframes ffPreviewRight { 0% { transform: translateX(-100%); } 100% { transform: translateX(0); } }
@keyframes ffPreviewUp { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }
@keyframes ffPreviewDown { 0% { transform: translateY(-100%); } 100% { transform: translateY(0); } }
@keyframes ffPreviewWipe { 0% { left: 100%; } 100% { left: 0; } }
@keyframes ffPreviewFlash { 0%,100% { opacity: .15; } 50% { opacity: 1; } }

button.transition-chip {
  flex-basis: 72px;
  min-width: 72px;
  padding: 6px 5px;
  display: grid;
  place-items: center;
  gap: 4px;
}
button.transition-chip .sketch { width: 42px; height: 25px; grid-row: auto; }
button.transition-chip span { font-size: 7px; font-weight: 850; letter-spacing: .06em; }
button.transition-chip.drop-ready { border-style: solid; border-color: var(--cyan); background: #10242b; box-shadow: 0 0 20px #19d9ff33; }
button.transition-chip .transition-kind { color: #777783; font-size: 5.5px; font-weight: 900; letter-spacing: .08em; }
button.transition-chip.is-final { border-style: solid; border-color: #ff087f88; background: linear-gradient(145deg,#25101b,#121117); box-shadow: inset 0 0 18px #ff087f12; }
button.transition-chip.is-final .transition-kind { color: var(--pink); }
button.transition-chip.is-final.drop-ready { border-color: var(--cyan); background: #10242b; }

.clip-wrap[draggable="true"] { cursor: grab; }
.clip-wrap.dragging { opacity: .48; }
.clip-wrap.drop-before::before,
.clip-wrap.drop-after::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.clip-wrap.drop-before::before { left: -7px; }
.clip-wrap.drop-after::after { right: -7px; }
.clip-drag-handle {
  position: absolute;
  z-index: 6;
  top: 5px;
  left: 50%;
  width: 34px;
  height: 25px;
  transform: translateX(-50%);
  border: 1px solid #ffffff32;
  border-radius: 999px;
  background: #08080ddd;
  color: #bdbdc8;
  cursor: grab;
  touch-action: none;
}
.clip-drag-handle:active { cursor: grabbing; color: #fff; border-color: var(--cyan); }

.brand-inspector {
  height: calc(100% - 48px);
  padding: 16px;
  overflow-y: auto;
}
.brand-panel-head .eyebrow { margin: 0 0 7px; color: var(--pink); }
.brand-panel-head h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.04em; }
.brand-panel-head > p:last-child { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.inspector .brand-toggle {
  margin: 0 0 18px;
  padding: 12px;
  display: flex;
  grid-template-columns: none;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #15151a;
}
.brand-toggle span { display: grid; gap: 3px; }
.brand-toggle b { font-size: 11px; }
.brand-toggle small { color: var(--muted); font-size: 8px; }
.brand-toggle input {
  appearance: none;
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: #303039;
  box-shadow: inset 0 0 0 1px #ffffff18;
  cursor: pointer;
}
.brand-toggle input::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.brand-toggle input:checked { background: linear-gradient(100deg,var(--pink),var(--violet)); }
.brand-toggle input:checked::before { transform: translateX(18px); }
.inspector .brand-controls label {
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  color: #bbb;
  font-size: 10px;
}
.brand-controls label > input:not([type="range"]):not([type="color"]),
.brand-controls label > select {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111115;
  color: #fff;
}
.brand-controls label > input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--pink); }
.brand-controls label > input[type="color"] { width: 100%; min-height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #111115; }
.brand-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 9px; }
.brand-logo-box {
  margin-top: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px dashed #4b3a52;
  border-radius: 11px;
  background: #131116;
}
.brand-logo-preview { width: 62px; height: 62px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #09090c; color: #6f6f7c; font-size: 9px; }
.brand-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo-box b,.brand-logo-box small { display: block; }
.brand-logo-box b { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.brand-logo-box small { margin-top: 3px; color: var(--muted); font-size: 7.5px; line-height: 1.4; }
.brand-logo-actions { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.brand-logo-actions .button { padding: 7px 9px; font-size: 8px; }
.share-networks { max-width: 320px; line-height: 1.4; }
#shareExport { border-color: #50e6bd77; color: #76f2cf; }

/* v0.8.9 — chronométrage visuel, plans proportionnels et durée totale */
.workspace { grid-template-rows: minmax(500px,1fr) 290px; }
.timeline-panel { min-height: 290px; }
.timeline-head { height: 104px; padding: 10px 14px; gap: 16px; }
.timeline-heading { min-width: 210px; }
.timeline-heading span { display: block; margin-top: 4px; line-height: 1.35; }
.timeline-head-tools { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.timeline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.total-duration-control {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 7px 8px 7px 10px;
  display: grid;
  grid-template-columns: auto 68px 10px auto;
  align-items: center;
  gap: 5px;
  border: 1px solid #41354a;
  border-radius: 10px;
  background: linear-gradient(145deg,#17111b,#0d1015);
}
.total-duration-control label { color: #aaa9b5; font-size: 9px; font-weight: 800; white-space: nowrap; }
.total-duration-control input { width: 68px; height: 34px; padding: 5px 6px; border: 1px solid #555563; border-radius: 7px; outline: none; background: #09090d; color: var(--cyan); text-align: right; font-size: 12px; font-weight: 900; appearance: textfield; }
.total-duration-control input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px #19d9ff20; }
.total-duration-control input:disabled { opacity: .45; }
.total-duration-control small { color: #747480; font-size: 9px; }
.total-duration-control .button { min-height: 34px; padding: 7px 9px; border-color: #19d9ff55; color: #a5f2ff; font-size: 9px; }
.total-duration-control .button:disabled { opacity: .38; cursor: default; }
.timeline { height: 174px; }
.clip-wrap { flex: 0 0 var(--clip-width,190px); width: var(--clip-width,190px); transition: flex-basis .16s ease,width .16s ease; }
.clip-wrap.timing-active { transition: none; }
@media (max-width: 900px) {
  html, body { height: auto; min-height: 100%; overflow-x: hidden; }
  .studio { width: 100%; min-width: 0; height: auto; min-height: 100vh; }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: auto;
    min-height: 72px;
    padding: 10px 12px;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    box-shadow: 0 8px 30px #0008;
  }
  .studio-title { text-align: right; font-size: 12px; }
  .studio-title span { display: block; margin: 3px 0 0; font-size: 8px; }
  .save-state { display: none; }
  .top-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .top-actions .button { min-width: 0; padding: 10px 8px; font-size: 10px; }
  .workspace {
    height: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 8px;
  }
  .media-panel, .preview-panel, .inspector, .timeline-panel { grid-column: 1; width: 100%; }
  .media-panel { min-height: 590px; }
  .dropzone { height: 145px; }
  .media-grid { max-height: 250px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 92px; }
  .preview-panel { height: min(780px, 88svh); min-height: 560px; }
  .stage-wrap canvas { max-width: 96%; max-height: 96%; }
  .inspector { min-height: 520px; }
  .timeline-panel { min-height: 350px; }
  .timeline-head { height: auto; min-height: 160px; padding: 10px 12px; gap: 10px; align-items: flex-start; flex-direction: column; }
  .timeline-head-tools { width: 100%; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
  .timeline-actions { flex: 1 1 310px; }
  .timeline { height: 178px; padding-inline: 12px; }
  .dialog-card { max-height: 92svh; overflow-y: auto; }
  .gate { min-height: 100dvh; }
}

@media (max-width: 600px) {
  .canvas-hint { display: none; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-logo-box { grid-template-columns: 54px minmax(0,1fr); }
  .brand-logo-preview { width: 54px; height: 54px; }
  button.transition-chip { min-width: 76px; min-height: 72px; }
  .clip-drag-handle { width: 42px; height: 30px; }
  .clip-duration-handle { width: 15px; }
  .clip-duration-editor { right: 17px; min-height: 29px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 11px; }
  .brand small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 5.8px; }
  .studio-title { font-size: 10px; }
  .top-actions .button { min-height: 44px; font-size: 9px; }
  .workspace { padding: 6px; gap: 7px; }
  .panel { border-radius: 11px; }
  .media-panel { min-height: 555px; }
  .panel-head, .audio-head { gap: 8px; }
  .dropzone { height: 130px; }
  .media-grid { max-height: 230px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 96px; }
  .audio-drop { min-height: 64px; }
  .preview-panel { height: min(700px, 86svh); min-height: 520px; }
  .preview-tools { gap: 8px; }
  .ratios { min-width: 0; }
  .ratios button, .icon-button { min-width: 44px; min-height: 40px; padding-inline: 8px; }
  .transport { gap: 5px; }
  .transport button:not(.play) { min-width: 32px; min-height: 44px; padding-inline: 3px; }
  .transport > span { margin-left: 3px; font-size: 9px; }
  .inspector { min-height: 560px; }
  .tabs button { min-height: 48px; }
  .choice-row { grid-template-columns: 1fr; }
  .choice-row button { min-height: 42px; }
  .transition-gallery button { min-height: 58px; }
  .timeline-head { align-items: flex-start; flex-direction: column; }
  .timeline-head-tools { width: 100%; justify-content: flex-start; }
  .timeline-actions { flex: 1 1 100%; width: 100%; justify-content: flex-start; }
  .timeline-head .button { min-height: 40px; padding: 8px 9px; font-size: 9px; }
  .total-duration-control { width: 100%; grid-template-columns: 1fr 76px 10px auto; }
  .timeline { height: 170px; }
  .clip-wrap { flex-basis: var(--clip-width,156px); width: var(--clip-width,156px); }
  .export-presets { grid-template-columns: 1fr; }
  .export-presets span { min-height: 58px; }
  .dialog-actions .button { min-height: 44px; }
  .gate { padding: 14px; }
  .gate-card { padding: 28px 20px; border-radius: 17px; }
  .gate h1 { font-size: clamp(31px, 10vw, 40px); }
  .gate-form input, .gate-form .primary { min-height: 50px; font-size: 16px; }
  .toast { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; max-width: none; }
}
