/* AUTOTUBE PRIVATE USER1 — MONTAGE V4.11 — no backend or native event overrides */
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 > .montage-compact-shell {
  overflow: auto !important;
  padding: 14px 16px !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, .97fr) !important;
  gap: 14px !important;
  align-items: start !important;
  height: auto !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-left-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
  min-width: 0 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-right-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-section-heading {
  flex: 0 0 auto !important;
  margin: 0 !important;
  gap: 4px !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-section-heading .card-kicker {
  color: #f00016 !important;
  font-family: Inter, sans-serif !important;
  font-weight: 900 !important;
  font-size: 11px !important;
  letter-spacing: .08em !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-section-heading h2 {
  font-family: Inter, sans-serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -.03em !important;
  color: #0c0c0c !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-accordion-stack {
  display: none !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-run-card,
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageResultCard {
  display: none !important;
}
/* Fixed-ratio frame: the player and its entire overlay share the exact same 16:9 rectangle. */
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-frame {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #fafafa !important;
  border: 1px solid #dedfe2 !important;
  border-radius: 16px !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-idle,
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-working {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 13px !important;
  padding: 26px !important;
  text-align: center !important;
  background: #fbfbfb !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 [hidden] {
  display: none !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-idle-icon {
  width: 43px !important;
  height: 43px !important;
  color: #f00016 !important;
  margin-bottom: 1px !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-idle h3,
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-working h3 {
  font-family: Inter, sans-serif !important;
  color: #101010 !important;
  font-weight: 900 !important;
  letter-spacing: -.03em !important;
  line-height: 1.22 !important;
  font-size: clamp(18px, 1.65vw, 25px) !important;
  max-width: 650px !important;
  margin: 0 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-idle p {
  font-family: Inter, sans-serif !important;
  font-size: clamp(12px, 1vw, 15px) !important;
  color: #888b94 !important;
  font-weight: 500 !important;
  margin: 0 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-circle {
  position: relative !important;
  width: clamp(122px, 14vw, 214px) !important;
  aspect-ratio: 1 / 1 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-circle svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  transform: rotate(-90deg) !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-track {
  fill: none !important;
  stroke: #eaeaec !important;
  stroke-width: 11 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-arc {
  fill: none !important;
  stroke: #f00016 !important;
  stroke-width: 11 !important;
  stroke-linecap: round !important;
  stroke-dasharray: 0 339.292 !important;
  transition: stroke-dasharray .3s ease !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-circle.is-indeterminate .at-m411-arc {
  stroke-dasharray: 98 339.292 !important;
  transform-origin: center !important;
  animation: at-m411-spin 1.5s linear infinite !important;
}
@keyframes at-m411-spin { to { transform: rotate(360deg); } }
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-percent {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  font: 900 clamp(28px, 3.1vw, 48px)/1 Inter, sans-serif !important;
  letter-spacing: -.04em !important;
  color: #101010 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-media {
  position: absolute !important;
  inset: 0 !important;
  background: #111 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-media #montagePreview {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  background: #101010 !important;
  border: none !important;
  border-radius: 0 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 38px !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #downloadMontageButton.at-m411-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 15px !important;
  border-radius: 11px !important;
  background: #f00016 !important;
  border: 1px solid #f00016 !important;
  color: #fff !important;
  font: 900 13px/1.2 Inter, sans-serif !important;
  letter-spacing: -.015em !important;
  text-decoration: none !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-materials > summary {
  cursor: pointer !important;
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #dadde1 !important;
  border-radius: 11px !important;
  padding: 9px 14px !important;
  background: #fff !important;
  font: 700 12px/1.2 Inter, sans-serif !important;
  color: #4b4d54 !important;
  white-space: nowrap !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-materials > summary::-webkit-details-marker { display:none; }
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-materials[open] {
  border: 1px solid #e1e1e5 !important;
  border-radius: 14px !important;
  padding: 12px !important;
  background: #fff !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-materials[open] .montage-accordion-stack {
  display: grid !important;
  margin-top: 10px !important;
  grid-template-rows: none !important;
  gap: 6px !important;
}
/* Right-side compact settings */
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  padding: 13px !important;
  border: 1px solid #e4e4e8 !important;
  border-radius: 17px !important;
  background: #fff !important;
  gap: 8px !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsToggle {
  pointer-events: none !important;
  padding: 4px 6px 8px !important;
  font: 900 22px/1.2 Inter, sans-serif !important;
  letter-spacing: -.03em !important;
  color: #121212 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard #montageSettingsBody {
  display: block !important;
  padding: 0 !important;
  overflow: visible !important;
  height: auto !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard #montageSettingsBody .montage-settings-meta,
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-zoom-preset,
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-presets > :nth-child(3),
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-presets > :nth-child(4),
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-volume-field {
  display: none !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-presets {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 10px 11px !important;
  background: #f7f7f8 !important;
  border: 0 !important;
  border-radius: 12px !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile > span,
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile > label:not(.mini-toggle) {
  color: #151515 !important;
  font: 800 13px/1.25 Inter, sans-serif !important;
  margin: 0 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile select {
  min-height: 38px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  font: 500 13px/1.2 Inter, sans-serif !important;
  border-radius: 10px !important;
  background-color: #fff !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile:nth-child(2),
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile:nth-child(5),
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile:nth-child(6),
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile:nth-child(7) {
  grid-column: 1 / -1 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile.montage-subtitle-toggle input { accent-color: #f00016 !important; }
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-outline-tile {
  flex-wrap: wrap !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-outline-tile input {
  accent-color: #151515 !important;
  width: 56% !important;
  flex: 1 1 70px !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-outline-tile small {
  font: 500 12px Inter, sans-serif !important;
  color: #666 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard #montageSubtitleColor {
  width: 70px !important;
  height: 33px !important;
  border: 1px solid #d7d9dd !important;
  border-radius: 9px !important;
  padding: 2px !important;
  background: #fff !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-music {
  display: grid !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  background: #f7f7f8 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-music label {
  font: 800 13px/1.2 Inter, sans-serif !important;
  color: #141414 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-music button {
  border: 1px solid #dadde2 !important;
  border-radius: 10px !important;
  min-height: 40px !important;
  background: #fff !important;
  text-align: left !important;
  padding: 8px 12px !important;
  font: 500 13px/1.25 Inter, sans-serif !important;
  color: #151515 !important;
  cursor: pointer !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-launch {
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 13px !important;
  padding: 12px 18px !important;
  margin-top: 6px !important;
  background: #f00016 !important;
  color: #fff !important;
  font: 900 16px/1.15 Inter, sans-serif !important;
  cursor: pointer !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-launch[disabled] {
  background: #e9e9e9 !important;
  color: #999 !important;
  cursor: progress !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-error {
  padding: 6px 8px !important;
  color: #b1121d !important;
  font: 700 12px/1.4 Inter, sans-serif !important;
}
@media (min-width: 981px) {
  html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-frame {
    max-width: 100% !important;
  }
}
@media (max-width: 980px) {
  html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .montage-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-frame {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }
}
@media (max-width: 520px) {
  html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-presets {grid-template-columns: minmax(0, 1fr) !important;}
  html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-circle {width: 118px !important;}
  html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-idle h3 {font-size: 15px !important;}
  html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-idle p {font-size: 11px !important;}
}
/* V4.11 final specificity fixes, preserving native state flags. */
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #downloadMontageButton.at-m411-download[hidden] {
  display: none !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-presets > .montage-zoom-preset {
  display: none !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile {
  text-align: left !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile select {
  width: 54% !important;
  flex: 0 1 54% !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-preset-tile:nth-child(2) strong {
  display: inline-flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 10px !important;
  min-width: 54% !important;
  border: 1px solid #dfe0e5 !important;
  border-radius: 9px !important;
  background: #fff !important;
  font: 700 13px Inter, sans-serif !important;
  color: #1c1c1c !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-frame {
  align-self: center !important;
  max-width: 100% !important;
}
/* Preserve fully usable native controls: previous layout forced 64px cards and column direction. */
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-presets > .montage-preset-tile {
  height: auto !important;
  max-height: none !important;
  min-height: 60px !important;
  overflow: visible !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-presets > .montage-outline-tile {
  flex-wrap: wrap !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 #montageSettingsCard .montage-presets > .montage-preset-tile select {
  width: 56% !important;
  flex: 0 1 56% !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 .at-m411-media .at-m411-player {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #101010 !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 a.at-m411-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 15px !important;
  border-radius: 11px !important;
  background: #f00016 !important;
  color: #fff !important;
  border: 1px solid #f00016 !important;
  font: 900 13px/1.2 Inter, sans-serif !important;
  text-decoration: none !important;
}
html:not([data-autotube-theme="dark"]) body #montageTab.at-m411 a.at-m411-download[hidden] {
  display: none !important;
}
