/* Shared public-site theme. Component scopes preserve native canvas/media styling. */
:root{--yd41-ink:#29243b;--yd41-muted:#706780;--yd41-brand:#7551c8;--yd41-line:#e7e1ef;--yd41-soft:#f6f3fa}
.app-shell--atlas{--atlas-accent:#7551c8;--atlas-page-background:#faf9fc;color:var(--yd41-ink)}
[class*="_commandBar_b63z1_"]{background:#ffffffed!important;border-bottom:1px solid var(--yd41-line)!important;backdrop-filter:blur(16px)}
[class*="_rail_b63z1_"]{background:#fcfaff!important;border-right:1px solid var(--yd41-line)!important}
[class*="_destinationLink_b63z1_"]{border-radius:12px!important;color:#62596f}
[class*="_destinationLink_b63z1_"][aria-current=page]{background:#eee7fa!important;color:#6940ba!important;box-shadow:none!important}
[class*="_mobileNavigation_b63z1_"]{background:#ffffffed!important;border-top:1px solid var(--yd41-line)!important;box-shadow:0 -6px 24px #30204306!important;backdrop-filter:blur(16px);padding-bottom:env(safe-area-inset-bottom)}
[class*="_mobileNavigation_b63z1_"] a{color:#71687d!important;border-radius:12px}
[class*="_mobileNavigation_b63z1_"] a[aria-current=page]{color:#7045c4!important;background:#f1ebfb!important}
.app-shell--atlas :is(button,a,input,textarea,select):focus-visible,[class*="_gallery_1j71m_"] :is(button,a,input,select):focus-visible{outline:3px solid #a68adf!important;outline-offset:3px}
.app-shell--atlas :is(input,textarea)::placeholder{color:#81758f;opacity:1}
.app-shell--atlas :is(input,textarea,select){accent-color:var(--yd41-brand)}
.home-refined .home-discovery-heading h1{color:#30213e;letter-spacing:-.035em}
.home-refined .home-discovery-search{border:1px solid #ddd3ec!important;box-shadow:0 5px 20px #60418307!important;background:#fff!important}
.home-refined :is(.yd21-intro p,.home-recommendation-note,.yd21-tool-copy small,.yd21-card-action){color:#766b83}
.home-refined .yd21-tool{border-color:#e2daed;box-shadow:0 4px 18px #49316f06}
.home-refined .home-selection-tabs button{color:#776a89}
.home-refined .home-selection-tabs button[aria-pressed=true]{color:#7045c4}
[data-task-variant=workflow] header[data-page]{background:#fcfaff;border-color:#e7e1ef;box-shadow:none}
nav[aria-label="创作方式"]{background:#f0ebf7!important;border:1px solid #e8e0f1!important;border-radius:14px!important;box-shadow:none!important}
nav[aria-label="创作方式"]>a{color:#796b89!important}
nav[aria-label="创作方式"]>[aria-current=page]{background:#fff!important;color:#7045c4!important;box-shadow:0 2px 7px #5732810b!important}
[data-task-variant=workflow] [class*="_composer_"]{background:#fff;border-color:#e4dced;border-radius:18px;box-shadow:0 8px 32px #49326509}
[data-task-variant=workflow] [class*="_composer_"] button[class*="_inlineGenerate_"]:not(:disabled),.yd22-video-submit-row>button[aria-describedby=creation-availability]:not(:disabled){background:linear-gradient(110deg,#8058ce,#6940b7)!important;color:#fff!important;box-shadow:0 4px 12px #7651c326!important}
[data-task-variant=workflow] [class*="_composer_"] button[class*="_inlineGenerate_"]:disabled{background:#eee9f4!important;color:#796b87!important}
.yd22-video [class*="_referenceTabs_"]{background:#f6f2fa;border-color:#ebe4f2}
.yd22-video [class*="_referenceTabs_"] button[aria-pressed=true]{color:#7045c4}
.yd22-video-actions [data-video22-control]{border-color:#e4dced!important;background:#faf7fd}
[class*="_settings_19ewe_"]{border:1px solid #e7e0ef!important;border-radius:16px!important;background:#fcfaff!important}
[class*="_account_1329v_"]{background:linear-gradient(120deg,#eee6fa,#faf7ff)!important;border:1px solid #ddcfef!important;color:#39274f!important;box-shadow:0 8px 24px #69439b08!important}
[class*="_account_1329v_"] :is(p,small,span){color:#655474}
[class*="_accountError_1329v_"]{color:#854339!important}
[class*="_accountError_1329v_"] button{color:#7045a9!important;background:#fff!important;border:1px solid #d5c4e5!important;min-height:44px}
[class*="_account_1329v_"] :is(strong,h2){color:#342340!important}
[class*="_purchase_1329v_"]{border-radius:12px!important;min-height:46px!important}
[class*="_estimateSection_1329v_"]{border:1px solid #e5dcef;border-radius:18px!important;background:#fcfaff!important}
[class*="_faq_1329v_"] details{border-bottom:1px solid #e7e0ef}
[class*="_faq_1329v_"] summary{min-height:48px;line-height:1.6;cursor:pointer}
[class*="_accountGateway_3izt6_"]{background:#fcfaff!important;border:1px solid #e5dcef!important;border-radius:18px!important;box-shadow:0 6px 24px #49326506}
[class*="_personalShortcuts_3izt6_"] a{border:1px solid #e5dcef!important;border-radius:16px!important;background:#fff!important;box-shadow:0 4px 16px #49326505}
[class*="_controls_gt0ck_"]{background:#fcfaff;border-radius:14px;padding:10px!important;border:1px solid #e8e0f1}
[class*="_root_gy9uh_"]{border:1px solid #e6deed!important;background:#fbf9fe!important;border-radius:18px!important;color:#6c5b7c!important}
[class*="_root_gy9uh_"] button{min-height:44px;border-radius:10px;background:#f0e9fa;color:#714aaf;border:1px solid #dfd0f0}
[class*="_windowPicker_1cwn4_"]{padding:4px;background:#f2edf8;border-radius:12px;gap:4px}
[class*="_windowPicker_1cwn4_"] a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px}
[class*="_header_1j71m_"]{background:#ffffffee!important;border-bottom:1px solid #e6deee!important;backdrop-filter:blur(14px)}
[class*="_brand_1j71m_"]{background:#7a55bd!important;border-radius:12px!important;box-shadow:0 4px 12px #7250b51a}
[class*="_gallery_1j71m_"]{color:#32283f}
[class*="_gallery_1j71m_"] :is(input,select){background:#fff!important;border:1px solid #ded3e9!important;border-radius:12px!important;color:#655176!important;min-height:44px}
[class*="_newProject_1j71m_"]{background:linear-gradient(145deg,#f6f0fc,#fcfaff)!important;border:1px dashed #cfbde3!important;border-radius:18px!important;color:#6e479d!important}
@media(max-width:767px){
 [class*="_commandBar_b63z1_"]{min-height:48px!important}
 [class*="_mobileNavigation_b63z1_"] a{min-height:48px}
 .home-refined .home-discovery-heading{padding-top:8px}
 .home-refined .home-discovery-heading h1{font-size:28px}
 [data-task-variant=workflow] header[data-page]{padding:8px 12px;margin-bottom:8px}
 [data-task-variant=workflow] nav[aria-label="创作方式"]{margin-bottom:12px}
 [class*="_composer_19ewe_"]{padding:14px!important}
 [class*="_promptBox_19ewe_"] textarea,[class*="_composer_19ewe_"] textarea{min-height:112px!important;height:112px;line-height:1.8;font-size:16px}
 [class*="_composerFooter_19ewe_"]{gap:8px!important;padding-top:10px!important}
 [class*="_settings_19ewe_"]{padding:14px!important;gap:12px!important}
 .yd22-video>textarea{min-height:110px!important;font-size:16px}
 [class*="_header_1329v_"]{margin-bottom:18px!important}
 [class*="_header_1329v_"] h1{font-size:27px!important;line-height:1.4}
 [class*="_account_1329v_"]{padding:18px!important;margin-bottom:18px!important;min-height:0!important}
 [class*="_planNavigation_1329v_"]{margin-block:16px!important}
 [class*="_gallery_1j71m_"]{padding:22px 16px 32px!important}
 [class*="_header_1j71m_"]{padding:12px!important;gap:10px!important}
 [class*="_header_1j71m_"] nav{flex:1;min-width:0}
 [class*="_header_1j71m_"] nav a{min-height:44px;padding:8px 6px!important;font-size:12px!important;gap:5px!important}
 [class*="_workspaceHeader_3izt6_"] h1{font-size:26px!important}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .yd21-tool,[class*="_newProject_1j71m_"],[class*="_personalShortcuts_3izt6_"] a{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
 [class*="_newProject_1j71m_"]:hover,[class*="_personalShortcuts_3izt6_"] a:hover{transform:translateY(-2px);box-shadow:0 8px 24px #64448614;border-color:#b79ace!important}
}
@media(prefers-reduced-motion:reduce){.app-shell--atlas *{scroll-behavior:auto!important}}
@media(forced-colors:active){nav[aria-label="创作方式"]>[aria-current=page],[class*="_mobileNavigation_b63z1_"] a[aria-current=page]{outline:2px solid Highlight!important}.app-shell--atlas :is(button,a,input,textarea,select):focus-visible{outline-color:Highlight!important}}
/* Override legacy pale-on-pale account typography with readable foregrounds. */
[class*="_page_1329v_"] [class*="_account_1329v_"] :is(span,small){color:#665176!important}
[class*="_accountBody_1329v_"]{margin-block:16px!important;gap:12px!important}
[class*="_accountActions_1329v_"]:empty{display:none}
[class*="_accountError_1329v_"]{margin-top:12px!important}
[class*="_page_1329v_"] :is([class*="_offerIntro_"],[class*="_header_"] p,[class*="_termBar_"] p){color:#746580!important}
[class*="_mobileNavigation_b63z1_"] a[aria-current=page] svg{color:#7551c8!important}
@media(max-width:767px){
 [class*="_composer_19ewe_"] [class*="_editTools_1idht_"]{padding:0 12px!important;margin-block:12px!important}
 [class*="_composer_19ewe_"] [class*="_refineSummary_19ewe_"]{min-height:44px!important;padding-block:10px!important}
 [class*="_composer_19ewe_"] [class*="_promptBox_19ewe_"]{padding:12px!important}
 [class*="_composer_19ewe_"] textarea{height:88px;min-height:88px!important}
 [class*="_composer_19ewe_"] [class*="_composerFooter_19ewe_"]{margin-top:0!important;padding-top:0!important}
 [class*="_accountBody_1329v_"]{min-height:0!important;padding:0!important}
 [class*="_qualityTabs_1329v_"]{margin-block:12px!important}
 [class*="_termBar_1329v_"]{margin-block:12px!important}
}
