/* Scheme B: page #f3f5f7, surface #fff, teal #029470, blue #2b6ca8. */
[hidden]{display:none!important}
:root,[data-theme="dark"],[data-theme="light"]{--fg-3:#647085}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* Keep the approved homepage isolated from studio component defaults. */
#homeView .panel{border:0;border-radius:0;background:transparent;overflow:visible}
#homeView .btn{height:auto;border-radius:0;line-height:normal}
#homeView .brand{cursor:pointer}

/* Light authentication screens and readable brand marks. */
.ljg-public-active{background:#f3f5f7}
.ljg-brand b{color:#272e3b}
.ljg-brand small{color:#647085}
.top-credit{color:#029470!important;background:#0294700c;border-color:#029470}
.credit-box button.primary.recharge-outline{color:#029470!important;background:#fff!important;border-color:#029470!important}
.credit-box button.primary.recharge-outline:hover{background:#0294700c!important}
.ljg-mark{background:#e4f3ee;border-radius:8px}
.ljg-prism path:nth-child(1),.sb-logo .ljg-prism path:nth-child(1){stroke:#029470}
.ljg-prism path:nth-child(2),.sb-logo .ljg-prism path:nth-child(2){stroke:#647085}
.ljg-prism path:nth-child(3),.sb-logo .ljg-prism path:nth-child(3){stroke:#2b6ca8}
.ljg-prism path:nth-child(4),.sb-logo .ljg-prism path:nth-child(4){stroke:#029470}
.ljg-prism path:nth-child(5),.sb-logo .ljg-prism path:nth-child(5){stroke:#2b6ca8}
.ljg-auth-page{background:#f3f5f7;color:#272e3b;color-scheme:light;min-height:100dvh}
.ljg-auth-page .ljg-public-header{padding:29px 5.5%}
.ljg-auth-page .ljg-back-home{color:#2b6ca8}
.ljg-auth-page .ljg-back-home:hover{color:#029470}
.ljg-auth-page .ljg-auth-center{width:min(440px,calc(100% - 40px));padding-top:25px;padding-bottom:40px}
.ljg-auth-page .ljg-auth-title h1{color:#272e3b;font-size:28px;font-weight:600}
.ljg-auth-page .ljg-auth-title p{color:#647085}
.ljg-auth-page .ljg-auth-card{background:#fff;border:1px solid #dce1e8;border-radius:16px;box-shadow:0 16px 44px #272e3b08;padding:29px}
.ljg-auth-page .ljg-auth-tabs{border-color:#dce1e8}
.ljg-auth-page .ljg-auth-tabs button{color:#647085;position:relative}
.ljg-auth-page .ljg-auth-tabs button.active{color:#029470;font-weight:600}
.ljg-auth-page .ljg-auth-tabs button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#029470}
.ljg-auth-page .ljg-auth-tabs small,.ljg-auth-page .ljg-social-row small{color:#647085}
.ljg-auth-page .auth-form label{color:#272e3b}
.ljg-auth-page .auth-input{background:#fff;border:1px solid #dce1e8;color:#272e3b;border-radius:7px;height:44px}
.ljg-auth-page .auth-input::placeholder{color:#647085}
.ljg-auth-page .auth-input:focus{border-color:#029470;box-shadow:0 0 0 3px #02947014}
.ljg-auth-page .auth-input:-webkit-autofill{-webkit-text-fill-color:#272e3b;-webkit-box-shadow:0 0 0 1000px #fff inset}
.ljg-auth-page .btn{background:#fff;border-color:#dce1e8;color:#272e3b;border-radius:7px}
.ljg-auth-page .btn.primary{background:#029470;border-color:#029470;color:#fff}
.ljg-auth-page .btn.primary:hover{background:#027a5e;border-color:#027a5e}
.ljg-auth-page .ljg-other-label{color:#647085}
.ljg-auth-page .ljg-other-label:before,.ljg-auth-page .ljg-other-label:after{background:#dce1e8}
.ljg-auth-page .ljg-social-row button{background:#fff;border-color:#dce1e8;color:#272e3b}
.ljg-auth-page .ljg-social-row button:hover{background:#f3f5f7;border-color:#2b6ca8}
.ljg-auth-page .auth-switch{color:#647085}
.ljg-auth-page .auth-switch button{color:#2b6ca8;font-weight:500}
.ljg-auth-page .ljg-auth-bottom{color:#647085}
.ljg-auth-page .ljg-phone-pending{color:#647085}
.ljg-auth-page .auth-error{background:#fff3f3;border-color:#c62f3c55;color:#a92532}

/* One input surface, with parameters along its lower edge. */
.unified-creator{max-width:1080px;margin:0 auto}
.unified-creator .creator-stage{max-width:1000px;margin:0 auto}
.unified-creator .show-input .creator-heading{margin:56px 0 32px;justify-content:center;text-align:center}
.unified-creator .show-input .creator-heading .page-title{font-size:32px;font-weight:600;letter-spacing:-1px}
.unified-creator .wizard-eyebrow{color:#2b6ca8;font-size:10px;letter-spacing:2.3px;margin-bottom:13px}
.unified-creator .show-input .wizard-eyebrow{color:#2b6ca8}
.unified-creator .creator-heading .page-desc:empty{display:none}
.unified-creator .ljg-composer{border:1px solid #dce1e8;border-radius:22px;background:#fff;box-shadow:0 10px 40px #272e3b06;overflow:visible}
.unified-creator .ljg-composer-body{padding:27px 27px 15px;display:grid;grid-template-columns:104px minmax(0,1fr);gap:24px;border:0}
.unified-creator #uploadArea{background:#f3f5f7;border:1px dashed #bac6d1;border-radius:12px;min-height:118px;height:118px;padding:12px;position:relative;transition:border-color .2s,background .2s}
.unified-creator #uploadArea:hover{border-color:#029470;background:#0294700b}
.unified-creator #uploadArea .upload-icon{border:0;background:none;color:#029470;width:76px;max-width:100%;height:85px;border-radius:5px;margin:0 auto;overflow:hidden}
.unified-creator #uploadArea .upload-icon img{width:100%;height:100%;object-fit:contain}
.unified-creator #uploadArea:not(.has-file) .upload-icon{height:30px;width:30px}
.unified-creator #uploadArea:not(.has-file) #uploadText{color:#647085;font-size:11px}
.unified-creator .ljg-upload-plus{background:#029470;color:#fff;border:3px solid #fff;right:-7px;bottom:-7px;width:28px;height:28px;font-size:17px;box-shadow:none}
.unified-creator .ljg-prompt{min-width:0;padding:4px 0 0}
.unified-creator .ljg-prompt>label{display:none}
.unified-creator #intentInput{padding:0;border:0!important;box-shadow:none!important;resize:vertical;background:transparent;color:#272e3b;min-height:111px;font-size:14px;line-height:1.8;border-radius:0}
.unified-creator #intentInput::placeholder{color:#647085}
.unified-creator #intentInput:disabled{opacity:.65}
.unified-creator .ljg-composer-toolbar{border:0;padding:13px 20px 20px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:nowrap;background:transparent;border-radius:0 0 22px 22px}
.composer-parameters{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0}
.composer-menu{position:relative;min-width:0}
.composer-menu>summary{list-style:none;display:flex;align-items:center;gap:6px;padding:8px 9px;border-radius:8px;color:#647085;font-size:11px;line-height:20px;cursor:pointer;white-space:nowrap;border:0;background:transparent}
.composer-menu>summary::-webkit-details-marker{display:none}
.composer-menu>summary:hover,.composer-menu[open]>summary{background:#02947010;color:#029470}
.composer-menu[aria-disabled=true]>summary{opacity:.45;cursor:default}
.composer-menu-icon{font-size:15px;line-height:1;color:#2b6ca8}
.composer-chevron{font-size:11px;color:#647085}
#menu-danceMode>summary{color:#029470}
.composer-menu-value{max-width:135px;overflow:hidden;text-overflow:ellipsis}
.composer-popover{position:absolute;top:calc(100% + 9px);left:0;z-index:35;background:#fff;border:1px solid #dce1e8;border-radius:14px;box-shadow:0 14px 44px #272e3b20;padding:10px;min-width:205px;width:max-content;max-width:min(430px,calc(100vw - 48px));color:#272e3b}
.composer-menu.opens-up>.composer-popover{top:auto;bottom:calc(100% + 9px)}
.composer-popover-title{font-size:11px;color:#647085;margin:4px 8px 9px}
.composer-menu-note{font-size:12px;color:#647085;max-width:250px;line-height:1.7;margin:5px 8px 12px}
.composer-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-radius:7px;text-align:left;font-size:12px;color:#272e3b;line-height:1.5}
.composer-option:hover{background:#f3f5f7}
.composer-option[aria-pressed=true]{background:#02947010;color:#029470}
.composer-option[aria-pressed=true]:after{content:'✓';margin-left:auto}
.composer-option:disabled{opacity:.5;cursor:default}
#composer-device .composer-popover{width:350px;padding:18px}
#composer-device .ljg-output-grid{grid-template-columns:1fr;gap:18px}
#composer-device .ljg-field-label{color:#647085}
#composer-device .ljg-device{border:1px solid #dce1e8;background:#fff;border-radius:8px}
#composer-device .ljg-device.selected{border-color:#029470;background:#0294700c}
#composer-device .ljg-device.selected:after{color:#029470}
#composer-device .ljg-budget{background:#f3f5f7;border-color:#dce1e8;border-radius:8px}
#composer-device .ljg-budget span{color:#647085}
#composer-device .check-row{font-size:12px;margin-top:16px}
#composer-color .composer-popover{width:370px;padding:18px;left:auto;right:0}
#composer-color .ljg-color-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#composer-color .ljg-color{border:1px solid #dce1e8;border-radius:9px;background:#fff;padding:11px 7px;color:#272e3b}
#composer-color .ljg-color[aria-pressed=true]{border-color:#029470;background:#0294700c}
#composer-color .ljg-color[aria-pressed=true]:after{color:#029470}
#composer-color .swatch{border-color:#dce1e8;width:30px;height:30px}
#composer-color .ljg-color code{font-size:9px}
#composer-color #ljgColorStatus{font-size:11px;color:#647085;line-height:1.6;margin-top:12px}
#ljgModelHost .composer-popover{width:285px;padding:16px}
#ljgModelHost #danceConfigStatus{margin:8px 8px 15px;padding:0;border:0;background:none;color:#2b6ca8;font-size:12px;line-height:1.6;max-width:none;white-space:normal}
#ljgModelHost .btn{margin-left:8px}
#menu-fDuration .composer-popover,#menu-fCamera .composer-popover,#menu-fQuality .composer-popover{left:auto;right:0}
.composer-send{display:flex;align-items:center;gap:12px;flex:none;padding-bottom:0}
.composer-send #studioCost{font-size:10px;line-height:20px;color:#647085;margin:0;white-space:nowrap}
.unified-creator .composer-send #creatorGenerateAction{display:flex}
.unified-creator .composer-send .submit-area{border:0;padding:0;margin:0}
.unified-creator .composer-send #genBtn{width:auto;min-width:128px;height:42px;padding:0 18px;gap:11px;border-radius:8px;font-size:13px!important;font-weight:600;line-height:1;color:#fff;background:#029470;border:1px solid #029470;transition:background .18s,box-shadow .18s}
.unified-creator .composer-send #genBtn:after{content:'→';font:18px/1 Arial,sans-serif}
.unified-creator .composer-send #genBtn:hover:not(:disabled){background:#027a5e;border-color:#027a5e;box-shadow:0 4px 12px #02947020}
.unified-creator .composer-send #genBtn:disabled:after{display:none}
.unified-creator .composer-send #genBtn:disabled{opacity:.5}
.unified-creator .creator-history{border:0;padding:0;margin-top:29px}
.unified-creator .creator-history>summary{font-size:11px;color:#647085;cursor:pointer}
.unified-creator .ljg-file-row{margin-top:10px;font-size:10px;color:#647085}
.unified-creator .ljg-file-row button{color:#2b6ca8}
.unified-creator .creator-result-views .creator-preview-card{border-color:#dce1e8;border-radius:12px}
.unified-creator .creator-result-toolbar{color:#647085}
.unified-creator .show-result .creator-heading{margin:12px 0 24px}
.unified-creator .creator-preview-card>header>span{color:#647085}

@media(max-width:1200px){
  .unified-creator .ljg-composer-toolbar{align-items:flex-end}
  .composer-menu>summary{padding:7px;font-size:10px;gap:5px}
  .composer-send{gap:8px}
  .composer-menu-value{max-width:110px}
}
@media(max-width:820px){
  .unified-creator .show-input .creator-heading{margin-top:32px}
  .unified-creator .show-input .creator-heading .page-title{font-size:27px}
  .unified-creator .ljg-composer-body{padding:22px 22px 12px;gap:18px;grid-template-columns:90px minmax(0,1fr)}
  .unified-creator .ljg-composer-toolbar{padding:10px 15px 17px}
}
@media(max-width:900px){
  /* The older light theme made this relative again, leaving an empty column. */
  .sidebar{position:fixed;left:-240px;top:0;bottom:0;width:230px;z-index:150}
  .sidebar.open{left:0}
  .sidebar.open .sb-glabel,.sidebar.open .sb-footer{display:block}
  .sidebar.open .sb-item span{display:inline}
  .sidebar.open .sb-item{justify-content:flex-start}
}
@media(max-width:600px){
  .ljg-auth-page .ljg-public-header{padding:22px 20px;gap:10px}
  .ljg-auth-page .ljg-auth-center{padding-top:20px}
  .ljg-auth-page .ljg-auth-title h1{font-size:24px}
  .ljg-auth-page .ljg-auth-card{padding:23px}
  .ljg-auth-page .ljg-back-home{font-size:11px;white-space:nowrap}
  .unified-creator .show-input .creator-heading .page-title{font-size:24px}
  .unified-creator .ljg-composer-body{grid-template-columns:74px minmax(0,1fr);padding:20px 16px 10px;gap:14px}
  .unified-creator #uploadArea{height:102px;min-height:102px;padding:8px}
  .unified-creator #intentInput{min-height:102px;font-size:12px}
  .unified-creator .ljg-composer-toolbar{flex-wrap:wrap;gap:10px}
  .composer-parameters{flex:1 1 100%;gap:3px}
  .composer-send{margin-left:auto}
  .composer-popover{position:fixed;left:50%!important;right:auto!important;top:50%;transform:translate(-50%,-50%);width:calc(100vw - 48px)!important;max-height:70dvh;overflow:auto;box-shadow:0 0 0 100vmax #272e3b35,0 14px 44px #272e3b25}
  .composer-menu.opens-up>.composer-popover{top:50%;bottom:auto}
  .composer-menu-value{max-width:128px}
}
@media(max-height:800px){
  .ljg-auth-page .ljg-public-header{padding-top:21px;padding-bottom:21px}
  .ljg-auth-page .ljg-auth-center{padding-top:0;margin-top:8px;margin-bottom:25px}
  .ljg-auth-page .ljg-auth-title{margin-bottom:20px}
  .ljg-auth-page .ljg-auth-card{padding:25px}
  .ljg-auth-page .ljg-auth-bottom{margin-top:16px}
}
