@media(max-width:800px){html body.csdbpage .csdbcomposer2{left:10px!important;right:10px!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;transform:none!important;width:calc(100% - 20px)!important;max-width:none!important;max-height:55dvh!important;overflow-y:auto!important;border-radius:20px!important}html body.csdbpage .csdbcomposer2 .csdbinputrow{display:flex!important;gap:10px!important;padding:14px!important;min-height:84px!important;align-items:flex-start!important}html body.csdbpage .csdbcomposer2 .csdbplus{width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;transform:none!important;border-radius:10px!important}html body.csdbpage .csdbcomposer2 .csdbinput{font-size:15px!important;line-height:1.6!important;min-height:64px!important;max-height:150px!important;padding:0!important;min-width:0!important;flex:1!important}html body.csdbpage .csdbcomposer2 .csdbfootbar{padding:10px 12px!important;gap:8px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important}html body.csdbpage .csdbcomposer2 .csdbfootbar select,html body.csdbpage .csdbcomposer2 .csdbfootbar button:not(.csdbsend),html body.csdbpage .csdbcomposer2 .csdbfootbar [data-video-settings]{height:38px!important;min-height:38px!important;width:auto!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;word-break:normal!important;writing-mode:horizontal-tb!important;font-size:12px!important;line-height:1.3!important;padding:0 10px!important;flex-shrink:0!important;border-radius:10px!important}html body.csdbpage .csvideosettings{flex:0 0 auto!important;min-width:0!important;width:auto!important}html body.csdbpage .csdbsend{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;position:static!important;flex:0 0 42px!important;margin-left:auto!important}html body.csdbpage .cs-upload-pricing{font-size:11px!important;line-height:1.5!important;padding:2px 12px 10px!important}html body.csdbpage .cs-module-mobile{overflow-x:auto!important;max-width:100vw!important;scrollbar-width:none!important}html body.csdbpage .cs-module-mobile button{font-size:13px!important;min-height:36px!important;padding:6px 12px!important}html body.csdbpage .cschatstream{padding-bottom:calc(360px + env(safe-area-inset-bottom))!important;overflow-wrap:anywhere!important}html body.csdbpage .cschatcontent{overflow-wrap:anywhere!important;word-break:break-word!important}html body.csdbpage .csdbcomposer2 .csdbfootbar>*{max-width:100%!important}}

@media(max-width:800px){
  html body.csdbpage section.csdbcomposer2 .cs-mode-tabs{
    scrollbar-width:none;
  }
  html body.csdbpage section.csdbcomposer2 .cs-mode-tabs::-webkit-scrollbar{
    display:none;
  }
  html body.csdbpage section.csdbcomposer2:not(.csapiopen) .csdbfootbar{
    overflow:visible!important;
  }
  html body.csdbpage section.csdbcomposer2:not(.csapiopen) .csdbfootbar > .csdbsend{
    margin-inline-start:auto!important;
    margin-inline-end:0!important;
  }
}

.seedance-mobile-more-layer{display:none}
@media(max-width:1023px){
  .seedance-mobile-more-layer{
    display:block;position:fixed;inset:0 0 calc(68px + env(safe-area-inset-bottom));
    z-index:20001;isolation:isolate;
  }
  .seedance-mobile-more-backdrop{
    position:absolute;inset:0;width:100%;height:100%;
    border:0;background:#0007;
  }
  .seedance-mobile-more-panel{
    position:absolute;inset:auto max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));
    width:auto;max-width:540px;margin-inline:auto;
    max-height:calc(100% - 20px - env(safe-area-inset-top));
    overflow-y:auto;overscroll-behavior:contain;
    border:1px solid #ffffff26;border-radius:18px;
    background:#18171f;box-shadow:0 12px 36px #0008;
  }
  .seedance-mobile-more-panel button{min-height:44px}

}

.cs-real-settings button[data-appearance][aria-pressed="true"]{outline:2px solid #a78bfa}
@media(max-width:1023px){
  html[data-theme]{
    --mobile-theme-surface:#211536;--mobile-theme-border:#493463;
    --mobile-theme-text:#eee6ff;--mobile-theme-muted:#c4b6de;
    --mobile-theme-active:#6d28d9;--mobile-theme-active-text:#fff;
  }
  html[data-theme="dark"]{
    --mobile-theme-surface:#17171a;--mobile-theme-border:#38383e;
    --mobile-theme-text:#f4f4f5;--mobile-theme-muted:#c2c2cb;
    --mobile-theme-active:#6d28d9;
  }
  html[data-theme="light"]{
    --mobile-theme-surface:#fff;--mobile-theme-border:#d9dce6;
    --mobile-theme-text:#151c2c;--mobile-theme-muted:#475569;
    --mobile-theme-active:#172033;
  }
  html[data-theme] body :is(.seedance-mobile-bottom-nav,#seedance-mobile-more){
    background:var(--mobile-theme-surface)!important;
    color:var(--mobile-theme-text)!important;
    border-color:var(--mobile-theme-border)!important;
  }
  html[data-theme] body :is(.seedance-mobile-bottom-nav,#seedance-mobile-more) button{
    color:var(--mobile-theme-muted)!important;
    -webkit-text-fill-color:currentColor!important;
  }
  html[data-theme] body :is(.seedance-mobile-bottom-nav,#seedance-mobile-more)
    button:is([data-active="true"],[aria-pressed="true"]){
    background:var(--mobile-theme-active)!important;
    color:var(--mobile-theme-active-text)!important;
  }
  html[data-theme] body .seedance-mobile-more-panel p{color:var(--mobile-theme-text)!important}

}

@media(max-width:800px){
  html body .cs-module-mobile{display:none!important}
  html body.csdbpage :is(.content-module-integrated,.content-tools-integrated){
    padding-top:68px!important;
  }
  html body.csdbpage .content-module-integrated.cs-replay-direct{
    top:60px!important;padding-top:8px!important;
  }
}
@media(max-width:800px){
  body.cs-module-open .seedance-mobile-bottom-nav,
  body.csdbpage:has(.content-tools-integrated:not([hidden])) .seedance-mobile-bottom-nav{z-index:20002}
  body.csdbpage:has(.content-tools-integrated:not([hidden])) .seedance-login-overlay{z-index:30000}
  html body.csdbpage :is(.content-module-integrated,.content-tools-integrated){
    padding-bottom:calc(88px + env(safe-area-inset-bottom))!important;
  }
}

html[data-theme="default"]{
  --seedance-purple-canvas:linear-gradient(to bottom right,var(--color-slate-950,#020617),var(--color-purple-950,#3b0764),var(--color-slate-950,#020617));
  --seedance-purple-panel:#17132e;
  --seedance-purple-rail:#100b26;
  --seedance-purple-edge:#43315f;
  background-color:#100b26;
}
html[data-theme="default"] body.csdbpage.csdbpage.csdbpage:not(.cscontentlight){
  background:var(--seedance-purple-canvas) fixed!important;
  --cs-integrated-surface:#1e113a;
  --cs-integrated-card:var(--seedance-purple-panel);
  --cs-integrated-field:#292040;
  --cs-integrated-border:var(--seedance-purple-edge);
}
html[data-theme="default"] body.csdbpage.csdbpage.csdbpage:not(.cscontentlight)::before,
html[data-theme="default"] body.csdbpage.csdbpage.csdbpage:not(.cscontentlight) :is(#root,#root>div,main){
  background:transparent!important;
}
html[data-theme="default"] body.csdbpage.csdbpage.csdbpage:not(.cscontentlight)
  :is(.cscodexrail-nav,.cscontentnav,.csusertop,.csworkspaceswitch){
  background:var(--seedance-purple-rail)!important;
  border-color:var(--seedance-purple-edge)!important;
}
html[data-theme="default"] body.csdbpage.csdbpage.csdbpage:not(.cscontentlight)
  section.csdbcomposer2.csdbcomposer2:not(.csapiopen){
  background:var(--seedance-purple-panel)!important;
  border-color:var(--seedance-purple-edge)!important;
}
html[data-theme="default"] body.csdbpage :is(.content-module-integrated,.content-tools-integrated){
  background:var(--seedance-purple-canvas) fixed!important;
}

body.csdbpage:has(.csdbcomposer2) .seedance-studio-native-loading{display:none!important}

.seedance-studio-native-bridge{
  position:absolute!important;width:1px!important;height:1px!important;
  overflow:hidden!important;visibility:hidden!important;pointer-events:none!important;
}
.seedance-studio-greeting{display:none}
body.csdbpage:not(.cschatactive):not(.csmanualopen):not(.cs-module-open):not(.cs-tools-open) .seedance-studio-greeting{
  position:absolute;display:block;left:50%;bottom:calc(100% + 14px);
  transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);
  margin:0;color:#f4edff;font-size:clamp(19px,4.8vw,30px);font-weight:700;text-align:center;
}
html[data-theme="light"] .seedance-studio-greeting{color:#202938!important}
@media(max-height:420px){
  body.csdbpage .csworkspaceswitch .seedance-studio-greeting{display:none!important}
}

/* Keep the initial composer hidden until its full navigation is attached. */
body:not(:has(.csworkspaceswitch)) .csdbcomposer2,
body .csdbcomposer2:not(:has(.cs-mode-tabs)),
body:has(.csdbcomposer2:not(:has(.cs-mode-tabs))) .csworkspaceswitch{
  visibility:hidden!important;
}
