/* AutoTube Factory / User1 private Scenario UX V4.2 */
/* Scope: display/typography/layout only. Native generation and data untouched. */
:root { --at42-red:#F00016;--at42-ink:#101011;--at42-border:#DADDE1; }

/* 1. Uniqueness: match crisp separately outlined Generator controls. */
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .rewrite-source-panel > .rewrite-source-controls {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:9px!important;
  width:auto!important;
  min-width:0!important;
  height:41px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .rewrite-language-field {
  box-sizing:border-box!important;
  display:block!important;
  flex:0 0 174px!important;
  width:174px!important;
  min-width:0!important;
  max-width:174px!important;
  height:41px!important;
  padding:0!important;
  margin:0!important;
  align-self:center!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane #targetLanguage {
  box-sizing:border-box!important;
  display:block!important;
  flex:none!important;
  width:174px!important;
  min-width:0!important;
  max-width:174px!important;
  height:41px!important;
  min-height:41px!important;
  padding:0 31px 0 13px!important;
  margin:0!important;
  border:1px solid var(--at42-border)!important;
  border-radius:12px!important;
  background:#FFFFFF!important;
  background-image:none!important;
  color:var(--at42-ink)!important;
  box-shadow:0 2px 3px rgba(0,0,0,.015)!important;
  font:700 13px/1.2 Inter,Arial,sans-serif!important;
  appearance:auto!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane #importButton {
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:125px!important;
  height:41px!important;
  min-height:41px!important;
  padding:0 14px!important;
  margin:0!important;
  border:1px solid var(--at42-border)!important;
  border-radius:12px!important;
  background:#FFFFFF!important;
  background-image:none!important;
  box-shadow:0 2px 3px rgba(0,0,0,.015)!important;
  color:var(--at42-ink)!important;
  font:700 13px/1.2 Inter,Arial,sans-serif!important;
  white-space:nowrap!important;
  transform:none!important;
  align-self:center!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane :is(#targetLanguage,#importButton):focus-visible {
  outline:2px solid rgba(240,0,22,.45)!important;
  outline-offset:2px!important;
}

/* 2. Unique empty states: same geometry and Inter hierarchy as Generation. */
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .rewrite-source-panel > .section-heading {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .at42-title-icon {
  display:block!important;width:22px!important;height:22px!important;min-width:22px!important;
  flex:0 0 22px!important;color:var(--at42-red)!important;
  stroke:currentColor!important;stroke-width:1.9!important;fill:none!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .rewrite-source-panel > .section-heading label {
  font:900 clamp(17px,1.34vw,22px)/1.25 Inter,Arial,sans-serif!important;
  letter-spacing:-.03em!important;color:var(--at42-ink)!important;
  margin-right:auto!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .at-v41-source-empty,
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .at-v41-unique-empty {
  gap:14px!important;
  text-align:center!important;
  font-family:Inter,Arial,sans-serif!important;
}
/* Same visual center as the right empty state (accounts for the footer only on the left). */
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .at-v41-source-empty {
  top:104px!important;bottom:69px!important;
  padding:20px!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane :is(.at-v41-source-empty,.at-v41-unique-empty) > svg {
  box-sizing:content-box!important;width:40px!important;height:40px!important;
  stroke-width:1.9!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane :is(.at-v41-source-empty,.at-v41-unique-empty) > strong {
  display:block!important;
  max-width:490px!important;
  margin:0!important;
  font:900 clamp(17px,1.35vw,22px)/1.4 Inter,Arial,sans-serif!important;
  letter-spacing:-.03em!important;
  color:#27272A!important;
  text-wrap:balance!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .at-v41-source-empty > strong .at42-hint-line {
  display:block!important;
  font-family:Inter,Arial,sans-serif!important;
  font-weight:900!important;
  letter-spacing:-.03em!important;
  color:#27272A!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane :is(.at-v41-source-empty,.at-v41-unique-empty) > p {
  max-width:470px!important;margin:0!important;
  color:#838388!important;
  font:500 13px/1.6 Inter,Arial,sans-serif!important;
  letter-spacing:normal!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .rewrite-source-panel,
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .localized-result-section {
  border-radius:20px!important;border:1px solid #E8E8E6!important;
  padding:12px!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioRewritePane :is(#source,#localizedResult) {
  border:1px solid #E8E8E6!important;
  border-radius:12px!important;
  background:#FBFBFA!important;
}

/* 3. Voice: fix a hidden player erroneously forced visible by legacy !important. */
html body #voiceWorkspace .voice-left-column #audioResultCard.hidden {
  display:none!important;
  visibility:hidden!important;
}
html body #voiceWorkspace .voice-left-column:has(#audioResultCard.hidden) {
  grid-template-rows:auto minmax(0,1fr)!important;
  align-content:stretch!important;
}
html body #voiceWorkspace .voice-left-column:has(#audioResultCard.hidden) .voice-script-workspace {
  min-height:0!important;height:100%!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
}
html body #voiceWorkspace .voice-left-column:has(#audioResultCard.hidden) .voice-script-workspace #ttsSource {
  min-height:0!important;height:100%!important;
}
/* Keep the red ElevenLabs kicker, with one plain-language heading only. */
html body #voiceWorkspace .voice-left-column .voice-column-heading h2 {
  display:none!important;
}
html:not([data-autotube-theme="dark"]) body #voiceWorkspace .voice-script-workspace .section-heading label[for="ttsSource"] {
  font:900 clamp(17px,1.35vw,22px)/1.25 Inter,Arial,sans-serif!important;
  letter-spacing:-.03em!important;color:var(--at42-ink)!important;
}
html body #voiceWorkspace .voice-script-workspace .tts-split-help,
html body #voiceWorkspace .voice-script-workspace .compact-voice-help {
  display:none!important;
}
html body #voiceWorkspace .voice-left-column .voice-column-heading {
  margin-bottom:0!important;
}

/* 4. Scenario profile URL: no inner white strip or legacy input highlight. */
html:not([data-autotube-theme="dark"]) body #scenarioProfileModal .scenario-profile-url-field {
  background:#FAFAFA!important;
  background-image:none!important;
  border:1px solid #D8DADE!important;
  overflow:hidden!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioProfileModal #scenarioProfileChannelUrl,
html:not([data-autotube-theme="dark"]) body #scenarioProfileModal #scenarioProfileChannelUrl:hover,
html:not([data-autotube-theme="dark"]) body #scenarioProfileModal #scenarioProfileChannelUrl:focus {
  box-sizing:border-box!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  color:#111417!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  -webkit-box-shadow:none!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
  flex:1 1 auto!important;
  width:100%!important;
  height:40px!important;
  min-height:0!important;
  line-height:40px!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
html:not([data-autotube-theme="dark"]) body #scenarioProfileModal #scenarioProfileChannelUrl::placeholder {
  color:#9A9FA6!important;
  opacity:1!important;
}
/* Prevent browser autofill from painting an artificial white center strip. */
html:not([data-autotube-theme="dark"]) body #scenarioProfileModal #scenarioProfileChannelUrl:-webkit-autofill {
  -webkit-box-shadow:0 0 0 1000px #FAFAFA inset!important;
  -webkit-text-fill-color:#111417!important;
}
@media(max-width:600px){
  html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .rewrite-source-controls {
    gap:7px!important;
  }
  html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .rewrite-language-field,
  html:not([data-autotube-theme="dark"]) body #scenarioRewritePane #targetLanguage {
    width:155px!important;max-width:155px!important;flex-basis:155px!important;
  }
  html:not([data-autotube-theme="dark"]) body #scenarioRewritePane #importButton {min-width:112px!important;}
  html:not([data-autotube-theme="dark"]) body #scenarioRewritePane .at-v41-source-empty {top:80px!important;bottom:122px!important;}
}
/* AUTOTUBE_USER1_SCENARIO_POLISH_V42_END */
