/* One palette for the preserved production engine; no business data changed. */
/* Explicit surface/text pairs also cover legacy dark toolbars in light mode. */
html[data-theme] body.production-engine #view-root .training-program-logo>span:not(.training-program-emblem){color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme] body.production-engine #view-root .account-canvas-create-card span{color:#14120e!important;-webkit-text-fill-color:#14120e!important}
html[data-theme] body.production-engine #view-root .account-canvas-create-card :is(strong,small){color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 3px #000}
html[data-theme] body.production-engine #view-root .prompt-effect-stage span.prompt-carousel-status{background:#111!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme] body.production-engine [role=dialog].community-media-viewer>header :is(strong,span){color:#f7f7f7!important;-webkit-text-fill-color:#f7f7f7!important}
html[data-theme] body.production-engine :is(.prompt-studio-tools,.community-detail-header a,.community-detail-header button,.community-publisher-heading button){background:var(--unified-soft)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
html[data-theme] body.production-engine .prompt-studio-tools :is(a,button,b,span){color:var(--unified-text)!important;background:transparent!important}
html[data-theme] body.production-engine .prompt-studio-tools :is(a,button):hover{background:var(--unified-panel)!important}
html[data-theme] body.production-engine .prompt-carousel-status{background:#111d!important;color:#fff!important}
html[data-theme] body.production-engine #view-root .community-stable-shell{grid-template-columns:170px minmax(0,1fr) 280px!important;align-items:start!important}
html[data-theme] body.production-engine #view-root .community-stable-shell>main{min-width:0!important;max-width:none!important;width:100%!important;margin:0!important;grid-column:2!important}
html[data-theme] body.production-engine #view-root .community-stable-shell>aside{grid-column:3!important;min-width:0!important}
html[data-theme] body.production-engine .community-stable-shell .ant-community-navigation a{white-space:normal!important;line-height:1.5!important;overflow-wrap:anywhere!important}
html[data-theme] body.production-engine .community-stable-shell .community-detail-header :is(a,button){border-radius:8px!important;min-width:40px!important;width:auto!important;padding:8px 12px!important;border:1px solid var(--unified-line)!important;font:inherit!important;cursor:pointer}
html[data-theme] body.production-engine .community-publisher [data-community-post-message]:not([hidden]){display:block!important;overflow-wrap:anywhere!important;color:var(--unified-text)!important;background:var(--unified-soft)!important;padding:10px!important;border-radius:8px!important}
@media(min-width:901px){html[data-theme] body.production-engine .prompt-studio-layout{grid-template-columns:78px minmax(0,1fr) minmax(300px,36%)!important}html[data-theme] body.production-engine .prompt-studio-prompt{grid-column:3!important;grid-row:1!important;position:sticky!important;top:18px!important;min-height:0!important}html[data-theme] body.production-engine .prompt-studio-main{grid-column:2!important;grid-row:1!important;min-width:0!important}}
@media(max-width:900px){html[data-theme] body.production-engine #view-root .community-stable-shell{grid-template-columns:minmax(0,1fr)!important}html[data-theme] body.production-engine #view-root .community-stable-shell>main{grid-column:1!important}html[data-theme] body.production-engine #view-root .community-stable-shell>aside{display:none!important}html[data-theme] body.production-engine .prompt-studio-layout{grid-template-columns:56px minmax(0,1fr)!important}html[data-theme] body.production-engine .prompt-studio-prompt{grid-column:2!important;grid-row:auto!important;position:static!important;height:auto!important;min-height:0!important}}
@media(max-width:680px){html[data-theme] body.production-engine .prompt-studio-layout{grid-template-columns:minmax(0,1fr)!important}html[data-theme] body.production-engine .prompt-studio-tools{grid-column:1!important;width:100%!important;min-width:0!important;grid-template-columns:repeat(6,minmax(48px,1fr))!important}html[data-theme] body.production-engine :is(.prompt-studio-main,.prompt-studio-prompt){grid-column:1!important;grid-row:auto!important;min-width:0!important}}
html{--unified-bg:#f7f7f3;--unified-panel:#fff;--unified-soft:#edf0e7;--unified-text:#202722;--unified-muted:#5b665b;--unified-line:#dfe3d8;--unified-accent:#59662e;color-scheme:light}
html[data-theme="dark"]{--unified-bg:#151616;--unified-panel:#222525;--unified-soft:#2c3030;--unified-text:#eceee7;--unified-muted:#b8beb3;--unified-line:#424941;--unified-accent:#c6ce9b;color-scheme:dark}
body.production-engine{--bg:var(--unified-bg);--panel:var(--unified-panel);--ink:var(--unified-text);--text:var(--unified-text);--muted:var(--unified-muted);--line:var(--unified-line);--gold:var(--unified-accent);--gold-light:#c6ce9b;--accent:var(--unified-accent);background:var(--unified-bg)!important;color:var(--unified-text)!important;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif!important}
.production-engine :where(.view-root,.main,.content,.workspace,.home-section){background:var(--unified-bg)!important;color:var(--unified-text)!important;box-shadow:none!important}
.production-engine :where(.sidebar,[class*="card"],[class*="panel"],.cinema-login-dialog,.cinema-login-panel,.ant-agent-canvas-node){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;box-shadow:none!important;border-radius:16px}
.production-engine .sidebar{border-radius:0;border-right:1px solid var(--unified-line)!important}
.production-engine :where(h1,h2,h3,h4,p,label,strong,a,summary,.nav-item,.reading-content,.prompt-code){color:var(--unified-text)!important}
.production-engine :where(small,.muted,.meta,.card-meta,.eyebrow){color:var(--unified-muted)!important}
.production-engine :where(button,input,select,textarea){font-family:inherit!important;border-radius:10px!important;border-color:var(--unified-line)!important;color:var(--unified-text)!important}
.production-engine :where(input,select,textarea){background:var(--unified-panel)!important}
.production-engine :where(button,.auth-btn,.hero-btn){background:var(--unified-soft)!important}
.production-engine :where(button.primary,.primary,.auth-btn.register,.hero-btn:not(.ghost)){background:#c6ce9b!important;color:#20261a!important}
.production-engine .nav-item.active{background:var(--unified-soft)!important;color:var(--unified-text)!important}
.production-engine :where(table,th,td){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
.production-engine :where(th,td){padding:14px!important}
.production-engine .ant-agent-canvas-world{background:transparent!important}
.production-engine :where(.cinema-login-showcase-copy,.cinema-login-showcase-copy p,.cinema-login-showcase-copy h2,.home-hero-copy,.home-hero-copy p,.home-hero-copy h1){color:#fff!important}
.production-engine :where(.ops-gateway-card,.portal-card){overflow:hidden;border:1px solid var(--unified-line)!important}
.production-engine :where(.ops-gateway-card p,.portal-card p){color:var(--unified-muted)!important}
.production-engine :where(.tag,.badge,.chip){color:var(--unified-text)!important;border-color:var(--unified-line)!important}
html[data-theme] body.production-engine :where(.portal-body,.ops-gateway-card>div,.card-body,.card-content,.panel-body){background:var(--unified-panel)!important;color:var(--unified-text)!important}
.production-engine .cinema-login-showcase :where(strong,p,h2,span){color:#fff!important}

/* Homepage opens directly on operations and project content. */
.production-engine .home-banner{display:none!important}

/* WeChat sign-in uses the same surface and restrained secondary actions. */
.production-engine .wechat-qr-frame{background:var(--unified-panel)!important;color:var(--unified-text)!important;border-radius:12px;overflow:hidden}
.production-engine .wechat-qr-frame iframe{display:block;margin-inline:auto;max-width:100%;color-scheme:inherit}
.production-engine .wechat-qr-status{color:var(--unified-muted)!important}
.production-engine :where(.protected-login-alternative,.protected-login-register){display:block;margin:10px auto!important;padding:8px 12px!important;background:transparent!important;color:var(--unified-accent)!important;font-size:14px!important;font-weight:500!important;line-height:1.5}
.production-engine .protected-login-legal{color:var(--unified-muted)!important;line-height:1.7}
.production-engine .protected-login-legal a{color:var(--unified-accent)!important;text-underline-offset:3px}

@media(max-width:640px){.production-engine .protected-wechat-login-dialog .cinema-login-showcase{display:none!important}}

/* ANT-SYS-2026-1002-015: approved product shell and shared theme tokens. */
.production-engine{font-size:14px;line-height:1.65}
.production-engine .app-shell{display:block!important;max-width:1440px!important;width:calc(100% - 64px)!important;min-height:65vh!important;margin:0 auto!important;grid-template-columns:1fr!important}
.production-engine .app-shell>.sidebar,.production-engine .main>.topbar,.production-engine>.theme-toggle,.production-engine>.settings-dock{display:none!important}
.production-engine .main{width:100%!important;min-width:0!important;margin:0!important;padding:28px 0!important;max-width:none!important}
.production-engine .view-root{padding:0!important;min-width:0!important;max-width:100%!important}
.platform-engine-header{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1440px;width:calc(100% - 64px);margin:auto;padding:18px 0 20px;border-bottom:1px solid var(--unified-line)}
.platform-engine-brand{display:flex;align-items:center;gap:12px;min-width:255px;text-decoration:none}
.platform-engine-brand img{width:44px;height:44px;object-fit:contain;border:1px solid var(--unified-line);border-radius:8px}
.platform-engine-brand span{display:grid;gap:3px}.platform-engine-brand strong{font-size:15px;letter-spacing:.08em}.platform-engine-brand em{font-style:normal;color:var(--unified-accent)}.platform-engine-brand small{font-size:12px;color:var(--unified-muted)}
.platform-engine-header nav{display:flex;align-items:center;gap:4px;overflow:auto;white-space:nowrap;scrollbar-width:none}.platform-engine-header nav a{padding:10px 11px;font-size:14px}.platform-engine-header nav a:hover{background:var(--unified-soft);border-radius:8px}
.platform-engine-header [data-platform-theme]{flex:none;width:36px;height:36px;border:0;border-radius:50%!important;cursor:pointer;font-size:18px}
.platform-engine-footer{max-width:1440px;width:calc(100% - 64px);margin:24px auto;display:flex;flex-wrap:wrap;gap:16px;padding:24px 0;border-top:1px solid var(--unified-line);color:var(--unified-muted);font-size:12px}
.production-engine #view-root :where(h1){font-size:28px!important;font-weight:650!important;line-height:1.35!important;letter-spacing:0!important}
.production-engine #view-root :where(h2){font-size:22px!important;line-height:1.4!important;letter-spacing:0!important}
.production-engine #view-root :where(h3){font-size:17px!important;line-height:1.5!important}
.production-engine #view-root :where(p,li,textarea,input,select,button){font-size:14px!important;line-height:1.65!important}
.production-engine #view-root :where(pre,code){font-size:13px!important;line-height:1.7!important;white-space:pre-wrap;overflow-wrap:anywhere}
.production-engine #view-root :where([class*="hero"],[class*="intro"],[class*="heading"],[class*="banner"]){box-shadow:none!important;text-shadow:none!important}
.production-engine #view-root :where(.panel-header,.section-header){padding:18px 20px!important}
.production-engine #view-root :where(.panel-header p,.section-header p){max-width:70ch;line-height:1.65!important}
.production-engine #view-root :where(.portal,.portal-body,.portal-copy,.ops-gateway-copy,.community-detail-shell,.community-detail-column,.ugc-community-shell,.ugc-feed-column,.ugc-discovery-aside,.ugc-feed-header,.community-post,.inspiration-post,.community-detail-post,.community-thread,.community-media-viewer,.case-library-heading,.learning-asset-viewer,.learning-asset-viewer-dialog){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;box-shadow:none!important}
.production-engine :where(.hell-grind-case,.case-library,.qingming-case){--hg-bg:var(--unified-bg);--hg-panel:var(--unified-panel);--hg-panel-2:var(--unified-soft);--hg-line:var(--unified-line);--hg-text:var(--unified-text);--hg-muted:var(--unified-muted);--hg-lime:var(--unified-accent);background:var(--unified-bg)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;box-shadow:none!important}
.production-engine :where(.hell-grind-folders,.hell-grind-assets,.hell-grind-prompt-dock,.hell-grind-technical,.hell-grind-source-access,.hell-grind-case>section,.hell-grind-case>aside,.hell-grind-case article,.hell-grind-asset-card,.hell-grind-asset-grid>a,.hell-grind-asset-viewer,.hell-grind-asset-modal,.hell-grind-inspector,.hell-grind-license){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
.production-engine .hell-grind-case :where(div,span,small,strong,a,p,button,h1,h2,h3,h4,pre,code){color:var(--unified-text)!important;text-shadow:none!important}
.production-engine .hell-grind-case :where(small,.hell-grind-section-title p){color:var(--unified-muted)!important}
.production-engine .hell-grind-library{grid-template-columns:180px minmax(0,1fr)!important}
.production-engine .hell-grind-section-title{padding:20px!important}.production-engine .hell-grind-section-title>span{display:none!important}
.production-engine .hell-grind-source-access{padding:16px 20px!important}.production-engine .hell-grind-source-access p{display:none!important}
.production-engine .hell-grind-film{aspect-ratio:auto!important;max-height:440px!important;background:var(--unified-soft)!important;display:grid;place-items:center;overflow:hidden}
.production-engine .hell-grind-film :where(video,img,iframe){width:100%;max-height:440px;object-fit:contain}
.production-engine .hell-grind-asset-filters{display:flex;flex-wrap:wrap;gap:8px;padding:12px 20px!important}
.production-engine .hell-grind-asset-filters button{min-height:34px!important;padding:6px 12px!important;border:1px solid var(--unified-line)!important;font-weight:400!important}
.production-engine :where(.hell-grind-folder.is-current,.ugc-feed-tabs .is-active,.community-topic-strip .is-active){background:var(--unified-soft)!important;color:var(--unified-accent)!important}
.production-engine .platform-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--unified-line);border-radius:12px;margin:16px 0}
.production-engine .platform-table-wrap table{width:100%!important;border-collapse:collapse!important;margin:0!important}
.production-engine :where(th,td){padding:12px 16px!important;border:0!important;border-bottom:1px solid var(--unified-line)!important;font-size:13px!important;line-height:1.6!important;white-space:normal!important;vertical-align:top}
.production-engine th{background:var(--unified-soft)!important;font-weight:500!important}.production-engine tr:last-child td{border-bottom:0!important}
.production-engine .platform-table-wrap td:empty{min-width:20px}
.production-engine :where(.home-hero,.home-hero-copy,.home-auth-callout,.platform-info-card,.community-prototype-note){display:none!important}
.production-engine :where(.ugc-feed-heading span,.hell-grind-breadcrumb){font-size:13px!important;color:var(--unified-muted)!important}
@media(max-width:900px){.platform-engine-header{align-items:flex-start;flex-direction:column;gap:12px}.platform-engine-header nav{max-width:100%;width:100%;justify-content:flex-start}.production-engine .ugc-community-shell{grid-template-columns:minmax(0,1fr)!important}.production-engine .ugc-discovery-aside{display:none!important}}
@media(max-width:640px){.production-engine .app-shell,.platform-engine-header,.platform-engine-footer{width:calc(100% - 32px)!important}.production-engine .main{padding:20px 0!important}.platform-engine-header nav a{padding:8px;font-size:13px}.production-engine .hell-grind-library{grid-template-columns:minmax(0,1fr)!important}.production-engine .hell-grind-folders{border-right:0!important}.production-engine .hell-grind-folder-list{display:flex;overflow:auto;padding:8px 12px!important;gap:8px;max-height:none}.production-engine .hell-grind-folder{flex:none;min-width:120px}.production-engine #view-root h1{font-size:24px!important}.production-engine #view-root h2{font-size:20px!important}.production-engine .hell-grind-film,.production-engine .hell-grind-film :where(video,img,iframe){max-height:260px!important}}

/* Compact sign-in and readable learning content. */
.production-engine .protected-wechat-login-dialog{display:block!important;max-width:440px!important;width:calc(100vw - 32px)!important;max-height:calc(100vh - 40px)!important;overflow:auto!important;min-height:0!important}
.production-engine .protected-wechat-login-dialog .cinema-login-showcase{display:none!important}
.production-engine .protected-wechat-login-dialog .cinema-login-panel{padding:28px!important;min-width:0!important}
.production-engine .protected-wechat-login-dialog h2{font-size:26px!important;line-height:1.4!important}
.production-engine .hell-grind-source-access>div{display:none!important}
.production-engine .hell-grind-prompt-grid article{padding:16px!important;border:1px solid var(--unified-line)!important;border-radius:12px!important}
.production-engine .hell-grind-prompt-grid h4{font-size:15px!important;margin:10px 0!important}
.production-engine .platform-prompt-fold summary{cursor:pointer;font-size:13px!important;color:var(--unified-accent)!important;padding:8px 0}
.production-engine .platform-prompt-fold pre{max-height:440px;overflow:auto;padding:14px!important;background:var(--unified-soft)!important;border-radius:8px}
.production-engine .platform-engine-header nav a{text-decoration:none!important}
/* Community surfaces override the legacy page-mode specificity. */
body.production-engine.community-page-mode :is(.inspiration-composer,.ugc-community-aside,.ugc-community-nav,.ugc-community-card,.community-purpose-card,.community-pagination,.guest-upgrade-card,.community-detail-shell,.community-thread,.community-comment-form,.community-profile-card,.community-profile-cover,.community-detail-column,.community-detail-post,.community-empty-feed){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
body.production-engine.community-page-mode :is(.ugc-community-shell,.ugc-feed-column,.ugc-community-search){background:var(--unified-bg)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
body.production-engine.community-page-mode :is(h1,h2,h3,h4,p,strong,span,small,em,time,label,a){color:var(--unified-text)!important}
body.production-engine.community-page-mode .inspiration-post p{display:-webkit-box!important;-webkit-line-clamp:4!important;-webkit-box-orient:vertical;overflow:hidden!important;white-space:normal!important}
body.production-engine.community-page-mode .ugc-community-shell{grid-template-columns:minmax(0,720px) minmax(230px,300px)!important;max-width:1040px!important}
body.production-engine.community-page-mode :is(.community-card-kicker,.post-tags span,.post-tags button){color:var(--unified-accent)!important}
body.production-engine :is(.learning-asset-dialog,.learning-asset-inspector,.learning-asset-prompt,.hell-grind-reference-body,.hell-grind-project-info,.ant-creative-library,.ant-agent-creation-settings,.ant-agent-creation-materials,.ant-agent-auto-review,.aill-message p,.aill-support-compose){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
@media(max-width:900px){body.production-engine.community-page-mode .ugc-community-shell{grid-template-columns:minmax(0,1fr)!important}.production-engine .ugc-community-aside{display:none!important}}
@media(max-width:900px){.platform-engine-header [data-platform-theme]{position:sticky;right:0;background:var(--unified-soft)!important;box-shadow:-8px 0 10px var(--unified-bg)!important}}
/* Shared business surfaces also cover protected account, finance and canvas tools. */
body.production-engine #view-root :is(section,article,aside,[class*="-panel"],[class*="-dialog"],[class*="-drawer"],[class*="-toolbar"],[class*="-settings"],[class*="-inspector"],[class*="-sidebar"]){background-color:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;box-shadow:none!important}
body.production-engine #view-root :is(h1,h2,h3,h4,h5,h6,p,label,summary,strong,small,span,em,time,pre,code,th,td){color:var(--unified-text)!important;text-shadow:none!important}
body.production-engine #view-root :is(h1,h2,h3,h4,h5,h6){white-space:normal!important;overflow-wrap:anywhere}
body.production-engine #view-root :is(.credits-center,.credits-account,.credits-recharge-primary,.credit-section,.finance-dashboard,.finance-ledger,.admin-console,.admin-workspace,.ops-console,.ant-agent-canvas-side-panel,.ant-agent-creation-settings){background:var(--unified-panel)!important;border:1px solid var(--unified-line)!important;border-radius:12px!important;color:var(--unified-text)!important}
body.production-engine :is(input,textarea,select){color:var(--unified-text)!important;caret-color:var(--unified-text)!important}
body.production-engine :is(input,textarea)::placeholder{color:var(--unified-muted)!important;opacity:1!important}

body.production-engine .cinema-login-showcase{display:none!important}
body.production-engine .cinema-login-dialog{display:block!important;max-width:480px!important;min-height:0!important;margin-inline:auto!important}
body.production-engine .cinema-login-panel{padding:28px!important}

/* ANT-SYS-2026-1002-016: action-first workflows, no promotional banners. */
.production-engine #view-root :is(.home-banner,.workflow-hub-ad-carousel,[class*="-banner"],.banner-slide,.banner-carousel){display:none!important}
.production-engine .workflow-hub-page{display:grid;gap:24px}
.production-engine .workflow-hub-section{padding:0!important;background:transparent!important;border:0!important}
.production-engine .workflow-track-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;align-items:start!important}
.production-engine .workflow-track-card{min-height:0!important;height:auto!important;display:flex!important;flex-direction:column;border:1px solid var(--unified-line)!important;border-radius:14px!important;overflow:hidden}
.production-engine .workflow-track-visual{width:100%!important;height:150px!important;object-fit:cover!important}
.production-engine .workflow-track-body{display:flex!important;flex-direction:column;gap:12px!important;min-height:0!important;padding:18px!important}
.production-engine .workflow-track-body h4{font-size:18px!important;margin:0!important}
.production-engine :is(.workflow-track-level,.workflow-online-state,.workflow-local-state){color:var(--unified-muted)!important;font-size:12px!important}
.production-engine .workflow-track-body :is(.primary-btn,a.primary-btn){display:block!important;background:#c6ce9b!important;color:#20261a!important;border:0!important;text-align:center;padding:10px 14px!important;border-radius:9px!important;font-size:14px!important;text-decoration:none!important}
.production-engine .platform-workflow-settings{border:1px solid var(--unified-line);border-radius:9px;padding:10px 12px}
.production-engine .platform-workflow-settings>summary{cursor:pointer;color:var(--unified-accent)!important;font-size:14px}
.production-engine .workflow-hub-own-strip{align-items:start!important}
.production-engine .personal-canvas-cover{aspect-ratio:16/9;min-height:0!important;overflow:hidden}
.production-engine .personal-canvas-cover img{width:100%;height:100%;object-fit:cover}
@media(max-width:900px){.production-engine .workflow-track-grid{grid-template-columns:1fr!important}.production-engine .workflow-track-visual{height:130px!important}}
/* Media click targets must not paint over already loaded thumbnails. */
body.production-engine button[class*="-open-hit"],body.production-engine .account-canvas-open-hit{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
body.production-engine .account-canvas-card-tool{z-index:3!important;background:var(--unified-panel)!important}

/* Keep all canvas galleries within their parent, without white card plates. */
body.production-engine :is(.workflow-hub-section,.workflow-hub-page){grid-template-columns:minmax(0,1fr)!important;min-width:0!important;max-width:100%!important}
body.production-engine :is(.workflow-hub-gallery,.account-canvas-gallery,.personal-canvas-grid,.workflow-hub-own-strip){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:20px!important;column-count:auto!important;width:100%!important;max-width:100%!important;min-width:0!important}
body.production-engine :is(.account-canvas-gallery-card,.account-canvas-recent-card,.personal-canvas-card){background:transparent!important;box-shadow:none!important;border:0!important;min-width:0!important;max-width:100%!important;margin:0!important;overflow:hidden!important}
body.production-engine :is(.account-canvas-gallery-caption,.account-canvas-card-caption,.personal-canvas-card-body){background:transparent!important;min-width:0!important;overflow-wrap:anywhere}
body.production-engine .account-canvas-card-media{width:100%!important;max-width:100%!important;min-width:0!important;aspect-ratio:16/9!important;border-radius:14px!important;overflow:hidden!important}
body.production-engine .account-canvas-card-media :is(img,video){width:100%!important;height:100%!important;object-fit:cover!important}
body.production-engine :is(table,thead,tbody,tr,th,td){background:transparent!important}

/* 1003-003: native editor keeps its original full viewport and controls. */
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode){overflow:hidden;background:var(--unified-bg)!important}
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) :is(.platform-engine-header,.platform-engine-footer,.browse-quality){display:none!important}
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) .app-shell{width:100%!important;max-width:none!important;min-height:100dvh!important;margin:0!important}
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) :is(.main,.view-root){width:100%!important;max-width:none!important;min-height:100dvh!important;padding:0!important;margin:0!important}
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) .ant-agent-canvas-panel{height:100dvh!important;min-height:0!important;padding:8px!important;border:0!important;border-radius:0!important;background:var(--unified-bg)!important}
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) .ant-agent-canvas-layout{height:calc(100dvh - 16px)!important;min-height:0!important}
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) .ant-agent-canvas-stage{height:calc(100dvh - 16px)!important;min-height:0!important;border-radius:16px!important;border:1px solid var(--unified-line)!important;background:radial-gradient(circle,var(--unified-line) 1px,transparent 1px) 0 0/24px 24px,var(--unified-bg)!important}
body.production-engine .ant-agent-canvas-world{background:transparent!important;border:0!important;box-shadow:none!important}
body.production-engine :is(.ant-agent-canvas-focus-nav,.ant-agent-canvas-control-dock,.ant-agent-canvas-side-panel,.ant-agent-canvas-inspector,.ant-agent-canvas-floating-toolbar,.ant-agent-canvas-focus-status){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;border-radius:12px!important}
body.production-engine #view-root :is(h1){font-size:22px!important;line-height:1.5!important}
body.production-engine #view-root :is(h2){font-size:18px!important;line-height:1.5!important}
body.production-engine #view-root :is(h3,h4){font-size:16px!important;line-height:1.5!important}
body.production-engine :is(.account-canvas-section,.personal-canvas-section){padding:18px!important;border:1px solid var(--unified-line)!important;border-radius:16px!important;background:transparent!important;min-width:0!important}
body.production-engine .personal-canvas-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))!important}
body.production-engine .team-canvas-card{width:100%!important;max-width:420px!important;align-self:start!important}
body.production-engine .personal-canvas-cover{width:100%!important;height:auto!important;max-height:236px!important;aspect-ratio:16/9!important;border-radius:14px!important;background:var(--unified-soft)!important}
body.production-engine .personal-canvas-cover :is(img,video){display:block!important;width:100%!important;height:100%!important;max-height:236px!important;aspect-ratio:16/9!important;object-fit:cover!important}
body.production-engine .personal-canvas-body{padding:12px 4px!important;background:transparent!important}
body.production-engine :is(.account-canvas-page,.workflow-hub-page){background:transparent!important;gap:24px!important}

body.production-engine :is(.ant-agent-canvas-dock,.ant-agent-canvas-rail,.ant-agent-canvas-workspace-launcher,.ant-agent-canvas-sidebar,.ant-agent-node.is-logic-node,.ant-agent-node-drawer,.ant-agent-prompt-rich-editor,.ant-agent-prompt-editor-panel,.ant-agent-point-quote){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;border-radius:12px!important;box-shadow:none!important}
body.production-engine .ant-agent-prompt-rich-editor :is(span,p,div){color:var(--unified-text)!important;background-color:transparent!important}
body.production-engine :is(.ant-agent-node-label,.ant-agent-node-label span,.ant-agent-node-label small){color:var(--unified-muted)!important}
body.production-engine .ant-agent-node-head span{background:var(--unified-soft)!important;color:var(--unified-text)!important}
body.production-engine .ant-agent-canvas-sidebar{max-height:calc(100dvh - 110px)!important}
body.production-engine .ant-agent-edge-label{fill:var(--unified-text)!important;stroke:var(--unified-bg)!important;paint-order:stroke;stroke-width:3px}
/* Closed floating drawers must never scroll the editor's containing block. */
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) :is(.app-shell,.main,#view-root,.ant-agent-canvas-panel,.ant-agent-canvas-layout){overflow:clip!important}
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) .ant-agent-canvas-layout{width:100%!important}
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) .ant-agent-canvas-stage{overflow:clip!important}
/* Help stays available in the focus nav instead of covering canvas asset controls. */
body.production-engine:is(.agent-canvas-focus-mode,.agent-canvas-window-mode) .ant-help-canvas-launcher{display:none!important}
body.production-engine :is(.ant-help-center,.ant-help-center-head,.ant-help-center-content,.ant-help-center-nav,.ant-help-center-steps,.ant-help-center-note,.ant-help-center-ai){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;border-radius:12px!important}
body.production-engine .ant-help-center :is(h2,h3,h4){font-size:18px!important;line-height:1.5!important;color:var(--unified-text)!important}
body.production-engine .ant-help-center :is(p,li,span,strong,label){font-size:13px!important;line-height:1.7!important;color:var(--unified-text)!important}
body.production-engine .ant-agent-canvas-panel.is-side-open .ant-agent-canvas-sidebar{z-index:50!important}
/* Match the native engine's id specificity so legacy white plates cannot win. */
body.production-engine #view-root :is(.workflow-hub-page,.workflow-hub-section,.account-canvas-page,.account-canvas-section,.personal-canvas-section,.personal-canvas-card,.account-canvas-gallery-card,.account-canvas-recent-card){background:transparent!important}
body.production-engine #view-root :is(.workflow-hub-section,.account-canvas-section,.personal-canvas-section){padding:18px!important;border:1px solid var(--unified-line)!important;border-radius:16px!important}

/* References and multi-selection reuse the approved light/dark theme. */
body.production-engine .ant-creative-reference-text{display:flex;flex-direction:column;gap:5px;padding:8px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;color:var(--unified-text);background:var(--unified-soft);font-size:13px;line-height:1.5}
body.production-engine .ant-creative-reference-text small{font-size:11px;line-height:1.4;color:var(--unified-muted)}
body.production-engine .ant-creative-selection-frame{position:absolute;pointer-events:none;border:1px dashed var(--unified-muted);border-radius:14px;background:color-mix(in srgb,var(--unified-soft) 30%,transparent);z-index:3;box-sizing:border-box}
body.production-engine .ant-creative-selection-frame>span{position:absolute;top:-24px;left:8px;font-size:12px;color:var(--unified-text);background:var(--unified-panel);padding:2px 7px;border-radius:7px;white-space:nowrap}
body.production-engine [data-creative-drawer-entry]{font-size:12px!important;white-space:nowrap}
body.production-engine .ant-agent-canvas-sidebar[aria-hidden="true"]{visibility:hidden!important;pointer-events:none!important}
body.production-engine .ant-agent-canvas-sidebar[aria-hidden="false"]{visibility:visible!important;pointer-events:auto!important}

body.production-engine :is(.ant-agent-selection-toolbar,.ant-agent-selection-create-menu){background:var(--unified-panel)!important;color:var(--unified-text)!important;border:1px solid var(--unified-line)!important;border-radius:12px!important;box-shadow:0 6px 18px #00000014!important}
body.production-engine .ant-agent-selection-create-menu button{background:var(--unified-soft)!important;color:var(--unified-text)!important;font-size:13px!important}

/* Workspace pages have no marketing/legal footer; legal pages remain accessible. */
body.production-engine>.platform-engine-footer{display:none!important}
body.production-engine .ant-agent-selection-toolbar.ant-creative-selection-hub{width:36px!important;min-width:36px!important;height:36px!important;padding:0!important;display:flex!important;border-radius:50%!important;overflow:visible!important}
body.production-engine .ant-creative-selection-hub>button{width:34px!important;height:34px!important;padding:0!important;border-radius:50%!important;font-size:22px!important}
body.production-engine .ant-creative-selection-hub .ant-agent-selection-create-menu{left:46px;top:-75px;width:185px;padding:8px;box-sizing:border-box}
body.production-engine .ant-creative-selection-hub.opens-left .ant-agent-selection-create-menu{left:auto;right:46px}
body.production-engine .ant-creative-selection-hub .ant-agent-selection-create-menu strong{display:block;padding:4px 8px 8px;font-size:12px;line-height:1.5;color:var(--unified-muted)}
body.production-engine .ant-creative-selection-connectors{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;overflow:visible}
body.production-engine .ant-creative-selection-connectors path{fill:none;stroke:var(--unified-muted);stroke-width:1.6;opacity:.8}

/* Director feedback 1003-007: calm type, real file formats, edge drawer handle. */
body.production-engine #view-root :is(.ant-agent-canvas-panel,.ant-agent-prompt-editor-panel,.ant-agent-prompt-editor-overlay) :is(h1,h2,h3,h4,strong,b,button,em,label,.ant-agent-prompt-rich-editor,.ant-agent-prompt-rich-editor *){font-weight:400!important}
body.production-engine .ant-agent-prompt-rich-editor{font-size:15px!important;line-height:1.8!important}
body.production-engine .ant-creative-format-thumb{display:flex!important;align-items:center;justify-content:center;min-height:66px;width:100%;background:var(--unified-soft)!important;color:var(--unified-muted)!important;border:1px solid var(--unified-line);border-radius:8px;font-size:16px!important;font-weight:400!important;letter-spacing:.06em}
body.production-engine .ant-agent-drawer-head small,body.production-engine .ant-agent-drawer-head [data-agent-canvas-close-sidebar]{display:none!important}
body.production-engine .ant-creative-edge-toggle{position:absolute;top:50%;transform:translateY(-50%);z-index:65!important;width:25px;min-width:25px!important;height:42px;padding:0!important;border:1px solid var(--unified-line)!important;border-radius:12px!important;background:var(--unified-panel)!important;color:var(--unified-text)!important;font-size:20px!important;font-weight:400!important;cursor:pointer}
body.production-engine .ant-agent-canvas-focus-nav{gap:8px!important;padding:5px 8px!important;box-shadow:none!important}
body.production-engine .ant-agent-canvas-focus-nav [data-agent-canvas-back-workflow]{min-width:30px!important;padding:5px!important}
body.production-engine .ant-agent-canvas-focus-nav strong{max-width:150px!important;font-size:12px!important;font-weight:400!important}

/* 1003-009: membership and recharge use the same calm platform theme. */
body.production-engine #view-root .membership-pricing-shell{background:var(--unified-bg)!important;color:var(--unified-text)!important;border:0!important;box-shadow:none!important;padding:20px!important;border-radius:16px!important}
body.production-engine #view-root .membership-hero-image,body.production-engine #view-root .membership-commerce-hero::after{display:none!important}
body.production-engine #view-root :is(.membership-commerce-hero,.membership-status-card,.membership-rate-badge,.membership-plan-card,.membership-points-value,.membership-seat-row>div,.membership-cycle-tabs,.membership-orders,.membership-pricing-intro,.credit-rule-panel,.credit-product-card,.custom-credit-recharge,.credits-account){background:var(--unified-panel)!important;color:var(--unified-text)!important;border:1px solid var(--unified-line)!important;border-radius:14px!important;box-shadow:none!important}
body.production-engine #view-root .membership-commerce-hero{padding:24px!important;gap:20px!important}
body.production-engine #view-root .membership-pricing-intro{padding:14px!important;margin-bottom:18px!important}
body.production-engine #view-root :is(.membership-pricing-shell,.credits-center) :is(h1,h2,h3,h4,strong,b,em,button){font-weight:400!important;letter-spacing:0!important}
body.production-engine #view-root :is(.membership-pricing-shell,.credits-center) :is(span,p,small,li,del){color:var(--unified-muted)!important}
body.production-engine #view-root :is(.membership-pricing-shell,.credits-center) :is(h1,h2,h3,h4,strong,b){color:var(--unified-text)!important;font-size:16px!important}
body.production-engine #view-root .membership-price strong{font-size:26px!important;line-height:1.3!important}
body.production-engine #view-root .membership-plan-card{min-height:440px!important;padding:20px!important;gap:14px!important}
body.production-engine #view-root .membership-plan-grid{background:transparent!important;padding:0 0 12px!important;gap:14px!important}
body.production-engine #view-root .membership-kind-tabs{border-color:var(--unified-line)!important;gap:20px!important}
body.production-engine #view-root :is(.membership-kind-tabs,.membership-cycle-tabs) button{font-size:14px!important;color:var(--unified-text)!important;padding:9px 14px!important;background:transparent!important}
body.production-engine #view-root :is(.membership-kind-tabs,.membership-cycle-tabs) button.is-active{background:var(--unified-soft)!important;color:var(--unified-text)!important}
body.production-engine #view-root .membership-kind-tabs button.is-active::after{display:none!important}
body.production-engine #view-root .credits-center{padding:20px!important;background:var(--unified-bg)!important;border:0!important}
body.production-engine #view-root .credits-recharge-primary{padding:24px!important}
body.production-engine #view-root :is(.credits-shell,.credits-hero,.credits-wallet-bar,.custom-credit-panel,.custom-credit-control,.custom-credit-checkout,.custom-credit-quote){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;border-radius:14px!important;box-shadow:none!important}
body.production-engine #view-root .credits-shell{background:var(--unified-bg)!important;padding:20px!important}
body.production-engine #view-root .credits-hero-image{display:none!important}
body.production-engine #view-root .credits-hero::after{display:none!important}
body.production-engine #view-root .credits-shell :is(h1,h2,h3,h4,strong,b,button,label){font-weight:400!important;letter-spacing:0!important;color:var(--unified-text)!important}
body.production-engine #view-root .credits-shell :is(h1,h2,h3,h4,strong,b){font-size:16px!important}
body.production-engine #view-root .credits-shell :is(p,span,small,li){color:var(--unified-muted)!important}
body.production-engine #view-root :is(.membership-pricing-shell,.credits-shell) .primary-btn{background:#c6ce9b!important;color:#202722!important;border:0!important;border-radius:10px!important;box-shadow:none!important;padding:10px 14px!important;text-decoration:none!important}

/* 1003-012: readable native editor folds and billing status, compact login. */
body.production-engine :is(.ant-agent-prompt-context,.ant-agent-prompt-context-content,.ant-agent-prompt-cost,.ant-agent-node-run-card,.ant-agent-node-run-grid,.ant-agent-node-run-grid span,.ant-agent-node-run-failure,.ant-agent-provider-notice,.ant-agent-run-hud){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;box-shadow:none!important}
body.production-engine :is(.ant-agent-prompt-context,.ant-agent-prompt-cost,.ant-agent-node-run-card,.ant-agent-node-run-grid,.ant-agent-node-run-failure,.ant-agent-run-hud) :is(summary,span,strong,b,p,small,em,time,code){color:var(--unified-text)!important;font-weight:400!important;text-shadow:none!important}
body.production-engine .ant-agent-node-run-card.is-failed{border-color:#c35748!important}
body.production-engine .ant-agent-prompt-cost > summary > span{color:var(--unified-muted)!important}
body.production-engine .ant-compact-login{display:grid!important;place-items:center;min-height:calc(100dvh - 180px)!important;padding:12px!important;background:transparent!important}
body.production-engine .ant-compact-login .cinema-login-dialog{width:min(380px,100%)!important;max-width:380px!important;margin:0!important;min-height:0!important;border:1px solid var(--unified-line)!important;border-radius:16px!important;position:relative!important}
body.production-engine .ant-compact-login .cinema-login-panel{padding:24px!important;display:flex!important;flex-direction:column!important;gap:14px!important;min-height:0!important;text-align:left!important}
body.production-engine .ant-compact-login .protected-wechat-brand{justify-content:flex-start!important;gap:10px!important;margin:0!important;letter-spacing:0!important;font-size:15px!important}
body.production-engine .ant-compact-login .protected-wechat-brand img{width:34px!important;height:34px!important}
body.production-engine .ant-compact-login h2{margin:0!important;font-size:22px!important;font-weight:400!important}
body.production-engine .ant-login-tabs{display:flex;gap:4px;background:var(--unified-soft);border-radius:9px;padding:4px}
body.production-engine .ant-login-tabs button{flex:1;border:0!important;min-height:36px!important;font-size:14px!important;font-weight:400!important;cursor:pointer}
body.production-engine .ant-login-tabs button[aria-selected="true"]{background:var(--unified-panel)!important}
body.production-engine .ant-compact-login [hidden]{display:none!important}
body.production-engine .ant-compact-login .wechat-qr-panel{padding:0!important;margin:0!important;min-height:0!important;height:auto!important;border:0!important;background:transparent!important}
body.production-engine :is(.ant-compact-login,.protected-wechat-login-dialog) .wechat-qr-frame{width:320px!important;max-width:100%!important;min-height:316px!important;height:316px!important;margin:0 auto!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;overflow:clip!important;background:#fff!important;border:1px solid #e4e5dc!important;border-radius:12px!important;padding:8px 0!important;box-sizing:border-box!important}
body.production-engine :is(.ant-compact-login,.protected-wechat-login-dialog) .wechat-qr-frame iframe{position:static!important;inset:auto!important;width:300px!important;min-height:300px!important;height:300px!important;max-width:none!important;margin:0!important;flex:none!important;border:0!important;background:#fff!important;color-scheme:light!important;border-radius:10px!important;transform:none!important}
body.production-engine .ant-compact-login h2,body.production-engine .protected-wechat-login-dialog h2{font-size:18px!important;line-height:1.4!important;font-weight:400!important;margin:0!important}
body.production-engine .protected-wechat-login-dialog{max-width:380px!important;border-radius:16px!important}
body.production-engine .protected-wechat-login-dialog .cinema-login-panel{padding:24px!important;display:flex!important;flex-direction:column!important;gap:14px!important;text-align:left!important;min-height:0!important}
body.production-engine .protected-wechat-login-dialog .protected-wechat-brand{justify-content:flex-start!important;margin:0!important;gap:10px!important;font-size:14px!important}
body.production-engine .protected-wechat-login-dialog .protected-wechat-brand img{width:34px!important;height:34px!important}
body.production-engine .protected-wechat-login-dialog :is(.eyebrow,.account-flow-intro,.protected-wechat-brand small){display:none!important}
body.production-engine .protected-wechat-login-dialog .wechat-qr-panel{min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
body.production-engine .protected-wechat-login-dialog .wechat-qr-status{display:none!important}
body.production-engine .protected-wechat-login-dialog .wechat-qr-panel.error .wechat-qr-status{display:block!important}
body.production-engine .protected-wechat-login-dialog :is(.protected-login-alternative,.protected-login-register){font-size:13px!important;line-height:1.5!important;min-height:0!important;margin:0!important;padding:4px!important;font-weight:400!important}
body.production-engine .protected-wechat-login-dialog .protected-login-legal{font-size:11px!important;line-height:1.5!important;margin:0!important}
/* Community: reserve real breathing room between feed, search and discovery cards. */
body.production-engine #view-root .ugc-community-shell{grid-template-columns:150px minmax(0,1fr) 280px!important;max-width:1440px!important;gap:24px!important;border:0!important;padding:0!important;background:transparent!important;overflow:visible!important}
body.production-engine #view-root :is(.ugc-feed-column,.ugc-community-nav,.ugc-community-aside,.ugc-discovery-aside){min-width:0!important;border:1px solid var(--unified-line)!important;border-radius:14px!important;background:var(--unified-panel)!important}
body.production-engine #view-root :is(.ugc-community-aside,.ugc-discovery-aside){padding:18px!important;display:grid!important;gap:18px!important;align-content:start!important}
body.production-engine #view-root .ugc-community-card{padding:18px!important;gap:12px!important;border-radius:12px!important}
body.production-engine #view-root .ugc-community-card :is(a,button){padding:10px 12px!important;margin:0!important;border-radius:8px!important}
body.production-engine #view-root .ugc-community-search{margin:0!important;padding:8px!important;gap:8px!important;border:1px solid var(--unified-line)!important;border-radius:12px!important}
body.production-engine #view-root .ugc-feed-header{padding:20px 24px 0!important}
body.production-engine #view-root .ugc-feed-column :is(.inspiration-composer,.inspiration-post){padding:22px 24px!important}
@media(max-width:1100px){body.production-engine #view-root .ugc-community-shell{grid-template-columns:124px minmax(0,1fr) 240px!important;gap:16px!important}}
@media(max-width:900px){body.production-engine #view-root :is(.ugc-community-aside,.ugc-discovery-aside,.ugc-community-nav){display:none!important}body.production-engine #view-root .ugc-community-shell{grid-template-columns:minmax(0,1fr)!important;gap:0!important}body.production-engine #view-root .ugc-feed-column :is(.inspiration-composer,.inspiration-post){padding:18px!important}}
body.production-engine .ant-compact-login .wechat-qr-status{display:none!important;margin:0!important}
body.production-engine .ant-compact-login .wechat-qr-panel.error .wechat-qr-status{display:block!important}
body.production-engine .ant-compact-login form{display:grid;gap:12px;margin:0}
body.production-engine .ant-compact-login form label{display:grid;gap:5px;font-size:13px!important}
body.production-engine .ant-compact-login form input{box-sizing:border-box;width:100%;height:42px!important;padding:9px 12px!important}
body.production-engine .ant-compact-login .auth-support-row{display:flex;justify-content:space-between;gap:8px}
body.production-engine .ant-compact-login .auth-support-row button{border:0!important;background:transparent!important;padding:0!important;font-size:12px!important}
body.production-engine .ant-compact-login form .primary-btn{height:42px;cursor:pointer;font-weight:400}
body.production-engine .ant-compact-login .auth-message:empty{display:none}
body.production-engine .ant-compact-login .protected-login-legal{font-size:11px!important;text-align:center;line-height:1.5!important;margin:0!important}
body.production-engine .ant-compact-login .detail-close{right:12px!important;top:12px!important;width:28px!important;height:28px!important;line-height:28px!important;min-height:0!important;padding:0!important}
body.production-engine .account-flow-dialog .eyebrow,body.production-engine .account-flow-dialog .auth-divider{display:none!important}
body.production-engine .account-flow-dialog{max-width:380px!important;padding:24px!important}
.home-guest-credit{margin:0 0 10px!important;font-size:12px!important;color:var(--creative-muted)!important}.home-live-result{margin-top:16px;padding:18px;text-align:left;border:1px solid var(--creative-line);border-radius:16px;background:var(--creative-panel)}.home-live-result>small{color:var(--creative-muted)}.home-live-result [role="alert"]{color:#c96b5a}.home-live-result .creative-delivery{margin-top:12px;white-space:pre-wrap;line-height:1.75;max-height:520px;overflow:auto}

body.production-engine:has(.ant-compact-login) :is(.app-shell,.main,#view-root){min-height:0!important;height:auto!important;background:transparent!important}
body.production-engine:has(.ant-compact-login) .browse-quality{display:none!important}
body.production-engine:has(.ant-compact-login) .main{padding:12px 0!important}
body.production-engine .ant-compact-login{height:auto!important;min-height:calc(100dvh - 112px)!important;box-sizing:border-box!important}
body.production-engine .ant-compact-login :is(.cinema-login-panel,.cinema-login-dialog,form){height:auto!important;min-height:0!important}
body.production-engine .ant-agent-prompt-editor-panel>footer{display:flex!important;background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}

/* Dark media preview keeps readable captions in either platform theme. */
body.production-engine .ant-agent-preview-overlay :is(figcaption,figcaption strong,figcaption span,figcaption p,figcaption small,figcaption label){color:#f4f4f0!important;font-weight:400!important;text-shadow:none!important}

/* Left rail and compact two-level library. */
body.production-engine .ant-agent-canvas-workspace-launcher{left:8px!important;right:auto!important;top:76px!important;bottom:auto!important;width:60px!important;display:flex!important;flex-direction:column!important;gap:8px!important;padding:6px!important;z-index:60!important}
body.production-engine .ant-agent-canvas-workspace-launcher button{display:flex!important;flex-direction:column!important;align-items:center!important;width:48px!important;padding:8px 2px!important;font-weight:400!important}
body.production-engine .ant-agent-canvas-workspace-launcher em{font-style:normal!important;font-size:11px!important}
body.production-engine .ant-agent-canvas-sidebar{left:76px!important;right:auto!important;top:76px!important;bottom:76px!important;width:min(320px,calc(100% - 92px))!important;transform:translateX(-130%)!important;transition:transform 160ms ease!important}
body.production-engine .ant-agent-canvas-panel.is-side-open .ant-agent-canvas-sidebar{transform:translateX(0)!important}
body.production-engine .ant-agent-canvas-dock{left:8px!important;right:auto!important;bottom:12px!important;max-width:calc(100% - 24px)!important}
body.production-engine .ant-agent-canvas-inspector{left:76px!important;right:auto!important;max-width:calc(100% - 92px)!important}
body.production-engine .ant-agent-sidebar-tabs{display:none!important}
body.production-engine .ant-compact-library{min-width:0;display:flex;flex-direction:column;gap:12px}
body.production-engine .ant-shelf-search{display:flex;gap:6px}
body.production-engine .ant-shelf-search input{min-width:0;flex:1;padding:10px!important;border:1px solid var(--unified-line)!important;border-radius:10px!important}
body.production-engine .ant-shelf-search button{width:34px!important;padding:0!important}
body.production-engine .ant-shelf-actions{display:flex;align-items:center;gap:10px}
body.production-engine .ant-shelf-actions>button{flex:1}
body.production-engine .ant-shelf-actions>a{font-size:12px;white-space:nowrap}
body.production-engine :is(.ant-shelf-groups,.ant-shelf-categories){display:flex;flex-wrap:wrap;gap:4px}
body.production-engine :is(.ant-shelf-groups,.ant-shelf-categories) button{padding:7px 9px!important;font-size:12px!important;border:0!important;background:transparent!important;font-weight:400!important}
body.production-engine :is(.ant-shelf-groups,.ant-shelf-categories) button[aria-pressed="true"]{background:var(--unified-soft)!important;border-radius:8px!important;box-shadow:inset 0 -2px 0 var(--unified-text)!important}
body.production-engine .ant-compact-thumbnails{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;max-height:none!important}
body.production-engine .ant-compact-thumbnails article{min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;display:block!important}
body.production-engine .ant-compact-thumbnails .ant-agent-asset-preview{display:block!important;width:100%!important;height:132px!important;padding:0!important;border:1px solid var(--unified-line)!important;border-radius:10px!important;overflow:hidden!important;background:var(--unified-soft)!important;cursor:pointer}
body.production-engine .ant-compact-thumbnails .ant-agent-asset-thumb{width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;border:0!important;border-radius:0!important}
body.production-engine .ant-compact-thumbnails .ant-creative-format-thumb{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;font-size:18px!important;font-weight:400!important}
body.production-engine .ant-compact-thumbnails button:hover{outline:2px solid var(--unified-text)!important;outline-offset:1px}
body.production-engine .ant-shelf-empty{grid-column:1/-1;font-size:12px;color:var(--unified-muted)}

body.production-engine .ant-agent-canvas-dock{display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;width:60px!important;padding:6px!important;max-height:calc(100% - 390px)!important;left:8px!important;right:auto!important;bottom:12px!important}
body.production-engine .ant-agent-canvas-dock>button{width:44px!important;min-width:0!important;min-height:30px!important;padding:5px!important;font-size:14px!important;font-weight:400!important}
body.production-engine .ant-agent-canvas-dock .ant-agent-control-label{display:none!important}
body.production-engine .ant-agent-node-floating-toolbar{left:8px!important;right:auto!important;top:202px!important;max-width:60px!important;z-index:61!important}
body.production-engine .ant-agent-canvas-focus-nav a{white-space:nowrap!important}

/* Director workspace: one permanent rail, one contextual panel. */
body.production-engine .ant-canva-tool-rail{position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:64px!important;z-index:70!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important;padding:8px 4px!important;border-right:1px solid var(--unified-line)!important;background:var(--unified-panel)!important;overflow-y:auto!important;border-radius:0!important}
body.production-engine .ant-canva-tool-rail :is(button,a){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;flex-shrink:0!important;min-height:58px!important;width:100%!important;padding:7px 2px!important;border:0!important;background:transparent!important;border-radius:8px!important;color:var(--unified-text)!important;text-decoration:none!important;font-weight:400!important}
body.production-engine .ant-canva-tool-rail svg{width:22px!important;height:22px!important}
body.production-engine .ant-canva-tool-rail span{font-size:11px!important;line-height:1.3!important;font-weight:400!important}
body.production-engine .ant-canva-tool-rail [aria-pressed="true"]{background:var(--unified-soft)!important}
body.production-engine .ant-agent-canvas-sidebar{left:64px!important;top:0!important;bottom:0!important;width:320px!important;max-height:100%!important;padding:18px 16px!important;border-radius:0!important;border-top:0!important;border-bottom:0!important}
body.production-engine .ant-agent-canvas-focus-nav{left:400px!important;top:12px!important;width:auto!important;max-width:calc(100% - 420px)!important;border:0!important;background:transparent!important}
body.production-engine .ant-agent-canvas-focus-nav a{white-space:nowrap!important}
body.production-engine .ant-agent-canvas-dock,body.production-engine .ant-agent-node-floating-toolbar{display:none!important}
body.production-engine .ant-agent-canvas-panel.is-side-open[data-creative-rail-tab="tools"] .ant-agent-canvas-dock{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;position:absolute!important;left:80px!important;right:auto!important;top:68px!important;bottom:auto!important;width:288px!important;max-height:none!important;gap:8px!important;padding:0!important;border:0!important;background:transparent!important}
body.production-engine .ant-agent-canvas-panel[data-creative-rail-tab="tools"] .ant-agent-canvas-dock>button{width:100%!important;height:54px!important;font-size:18px!important;border-radius:8px!important}
body.production-engine .ant-agent-canvas-panel.is-side-open[data-creative-rail-tab="tools"] .ant-agent-node-floating-toolbar{display:flex!important;position:absolute!important;left:80px!important;top:auto!important;bottom:24px!important;width:288px!important;max-width:288px!important;flex-direction:row!important;border:0!important}
body.production-engine .ant-agent-canvas-inspector{left:64px!important;top:0!important;bottom:0!important;border-radius:0!important;z-index:75!important}
body.production-engine .ant-agent-canvas-inspector p{display:none!important}
body.production-engine .ant-shelf-groups{display:none!important}
body.production-engine .ant-agent-canvas-panel[data-creative-rail-tab="assets"] .ant-shelf-groups{display:flex!important}
body.production-engine .ant-shelf-actions{margin:0 0 4px!important}
body.production-engine .ant-shelf-actions>button{min-height:38px!important}
body.production-engine .ant-compact-thumbnails .ant-agent-asset-preview{height:128px!important;box-shadow:none!important}
body.production-engine .ant-compact-thumbnails .ant-agent-asset-thumb{object-fit:contain!important}
body.production-engine .ant-agent-canvas-panel[data-creative-rail-tab="upload"] .ant-shelf-actions>a{display:none!important}
@media(max-width:700px){body.production-engine .ant-agent-canvas-sidebar{width:calc(100% - 64px)!important}body.production-engine .ant-agent-canvas-focus-nav{left:80px!important;max-width:calc(100% - 100px)!important}}

body.production-engine .ant-shelf-document{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;padding:12px!important;background:var(--unified-panel)!important;color:var(--unified-text)!important;text-align:left!important;gap:8px!important}.ant-shelf-document>span{flex:1;min-height:0;font-size:9px;line-height:1.6;white-space:pre-wrap;overflow:hidden}.ant-shelf-document>i{font-style:normal;font-size:10px;color:var(--unified-muted);align-self:flex-end}

body.production-engine .ant-agent-canvas-panel[data-creative-rail-tab="tools"] .ant-agent-canvas-dock{transform:none!important;z-index:60!important}.production-engine .ant-blender-connect main>p,.production-engine .ant-blender-connect main>ol{display:none!important}.production-engine .ant-blender-connect main{display:flex!important;flex-direction:column!important;gap:16px!important;padding:20px!important}.production-engine .ant-blender-connect{max-width:520px!important}

/* 019 director canvas: theme-aware feedback and unobstructed drops. */
body.production-engine .ant-agent-canvas-focus-nav{display:none!important}
body.production-engine .ant-canva-tool-rail{display:flex!important;flex-direction:column!important;gap:2px!important;padding:6px!important;overflow-y:auto!important}
body.production-engine .ant-canva-tool-rail>a,body.production-engine .ant-canva-tool-rail>button{flex-shrink:0!important;min-height:48px!important;height:48px!important;padding:4px!important;box-shadow:none!important}
body.production-engine .ant-canva-tool-rail .ant-rail-theme{margin-top:auto!important;font-size:21px!important;position:sticky!important;bottom:0!important;background:var(--unified-panel)!important}
body.production-engine .ant-agent-canvas-panel .ant-agent-canvas-dock,
body.production-engine .ant-agent-canvas-panel.is-side-open[data-creative-rail-tab="tools"] .ant-agent-canvas-dock{display:flex!important;flex-direction:row!important;position:absolute!important;left:50%!important;right:auto!important;top:auto!important;bottom:12px!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100% - 100px)!important;max-height:none!important;gap:4px!important;padding:5px!important;background:var(--unified-panel)!important;border:1px solid var(--unified-line)!important;z-index:60!important;overflow:visible!important}
body.production-engine .ant-agent-canvas-panel .ant-agent-canvas-dock>button{width:34px!important;height:34px!important;min-height:34px!important;padding:4px!important;font-size:17px!important}
body.production-engine .ant-agent-canvas-dock [data-agent-blender-open],body.production-engine .ant-agent-canvas-dock .ant-agent-canvas-quick-create{display:none!important}
body.production-engine .ant-agent-canvas-dock>button>span{display:none!important}
body.production-engine .ant-agent-file-drop-hint,
body.production-engine .ant-agent-canvas-stage.is-asset-dragging .ant-agent-file-drop-hint{background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;transition:none!important;color:var(--unified-text)!important;border-color:var(--unified-muted)!important}
body.production-engine .ant-agent-file-drop-hint :is(strong,span,small){display:none!important}
body.production-engine :is(.ant-agent-file-transfer-status,.ant-agent-mobile-intake-status,.ant-agent-prompt-insert-status,.ant-agent-canvas-hint,.ant-agent-canvas-starter-hint,.ant-agent-upload-placeholder,.ant-agent-media-review-overlay,.payment-provider-status,.payment-result-panel,.payment-test-status-grid article){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;box-shadow:0 4px 14px #0000000c!important;backdrop-filter:none!important}
body.production-engine :is(.ant-agent-file-transfer-status,.ant-agent-mobile-intake-status,.ant-agent-prompt-insert-status,.ant-agent-canvas-hint,.ant-agent-canvas-starter-hint,.ant-agent-upload-placeholder,.ant-agent-media-review-overlay,.payment-provider-status,.payment-result-panel) :is(strong,small,span,p){color:var(--unified-text)!important}
body.production-engine .ant-prompt-cards{display:grid;gap:12px;margin-top:12px}
body.production-engine .ant-prompt-card{border:1px solid var(--unified-line);border-radius:12px;overflow:hidden;background:var(--unified-panel)}
body.production-engine .ant-prompt-card summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:84px 1fr;gap:8px;padding:10px}
body.production-engine .ant-prompt-card summary::-webkit-details-marker{display:none}
body.production-engine .ant-prompt-card summary img,body.production-engine .ant-prompt-mini{width:84px;height:92px;object-fit:contain;background:var(--unified-soft);border-radius:6px;grid-row:span 2}
body.production-engine .ant-prompt-mini{font-size:8px;overflow:hidden;padding:7px;box-sizing:border-box;line-height:1.5}
body.production-engine .ant-prompt-card strong{font-size:13px;font-weight:500;align-self:end}
body.production-engine .ant-prompt-excerpt{font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--unified-muted)}
body.production-engine .ant-prompt-card pre{margin:0;padding:12px;max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:12px;line-height:1.7}
body.production-engine .ant-prompt-actions{display:flex;gap:6px;padding:10px;flex-wrap:wrap}
body.production-engine .ant-prompt-actions button{font-size:12px;padding:7px!important;box-shadow:none!important}

/* 020: prompt previews contain media only; descriptions live in Help. */
.ant-prompt-mini{display:flex!important;align-items:center;justify-content:center;color:var(--muted,#657063);background:var(--soft,#eef0e7)}
.ant-prompt-mini svg{width:48px;height:60px;max-width:80%;max-height:80%}
.ant-prompt-actions button{min-width:34px;width:34px;height:34px;padding:0;font-size:20px;display:inline-flex;align-items:center;justify-content:center}
/* 1004-001: plain document previews and the third-layer editor. */
body.production-engine .ant-shelf-document,body.production-engine .ant-shelf-document>span{border-radius:0!important;clip-path:none!important;mask:none!important;background:transparent!important;box-shadow:none!important;transform:none!important;display:block!important;text-align:left!important}
body.production-engine .ant-shelf-document{box-sizing:border-box;padding:12px!important;background:var(--unified-panel)!important}
body.production-engine .ant-shelf-document strong{display:block!important;font-size:12px!important;line-height:1.5;font-weight:500;margin-bottom:8px;max-height:36px;overflow:hidden}
body.production-engine .ant-shelf-document>span{font-size:11px!important;line-height:1.6;max-height:68px;overflow:hidden;white-space:pre-wrap;word-break:break-word}
body.production-engine .ant-shelf-document i{display:none!important}
body.production-engine .ant-prompt-preview{display:grid!important;grid-template-columns:84px minmax(0,1fr);gap:8px;padding:10px!important;width:100%;text-align:left;border:0!important;background:var(--unified-panel)!important;border-radius:12px!important}
body.production-engine .ant-prompt-preview img{width:84px;height:92px;object-fit:contain;grid-row:span 2;border-radius:6px;background:var(--unified-soft)}
body.production-engine .ant-asset-editor{position:fixed!important;inset:0!important;margin:auto!important;width:min(1100px,calc(100vw - 32px));max-width:none!important;height:min(820px,calc(100dvh - 32px));max-height:none!important;padding:20px!important;border:1px solid var(--unified-line)!important;border-radius:14px!important;background:var(--unified-panel)!important;color:var(--unified-text)!important;box-sizing:border-box}
body.production-engine .ant-asset-editor[open]{display:flex!important;flex-direction:column;gap:16px}
body.production-engine .ant-asset-editor::backdrop{background:rgb(90 96 90 / .2);backdrop-filter:none}
body.production-engine .ant-asset-editor header,body.production-engine .ant-asset-editor footer{display:flex;align-items:center;gap:12px;flex-shrink:0}
body.production-engine .ant-asset-editor header input{flex:1;min-width:0;font:inherit;font-size:17px;border:0;background:transparent;color:inherit;padding:8px}
body.production-engine .ant-asset-editor button{background:var(--unified-soft)!important;color:var(--unified-text)!important;border:1px solid var(--unified-line)!important;border-radius:8px;padding:8px 14px;cursor:pointer}
body.production-engine .ant-asset-editor-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
body.production-engine .ant-asset-editor-body.has-media{grid-template-columns:minmax(0,1fr) minmax(300px,1fr)}
body.production-engine .ant-asset-editor-media{min-width:0;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;background:var(--unified-soft);border-radius:8px}
body.production-engine .ant-asset-editor-media :is(img,video){width:100%;height:100%;object-fit:contain!important}
body.production-engine .ant-asset-editor textarea{width:100%;height:100%;min-height:180px;resize:none;box-sizing:border-box;background:var(--unified-panel)!important;color:var(--unified-text)!important;border:1px solid var(--unified-line)!important;border-radius:8px;padding:18px;font:inherit;font-size:15px;line-height:1.8}
body.production-engine .ant-asset-editor footer [role=status]{flex:1;color:var(--unified-text)}
@media(max-width:700px){body.production-engine .ant-asset-editor-body.has-media{grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) minmax(180px,1fr)}}

/* 1004-002: body-level detail overlays use the same readable theme. */
body.production-engine :is(.detail-overlay,.learning-asset-viewer,.community-detail-shell) :is(pre,code,textarea){background:var(--unified-soft)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important;text-shadow:none!important}
body.production-engine .detail-overlay :is(h1,h2,h3,h4,p,small,strong,label,span){color:var(--unified-text)!important}

body.production-engine :is(.project-asset-dialog-prompt,.project-prompt-card,.project-script-document) :is(pre,code){background:var(--unified-soft)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
body.production-engine .project-asset-dialog :is(h2,p,small,strong,span){color:var(--unified-text)!important}

/* Creator hub: continuous reading, existing production feed retained. */
.production-engine .community-purpose-card{display:none!important}
body.production-engine.community-page-mode .ugc-community-shell{display:grid!important;grid-template-columns:150px minmax(0,660px) minmax(210px,280px)!important;max-width:1140px!important;gap:24px!important;margin:auto!important}
.ant-community-navigation{display:flex;flex-direction:column;gap:8px;position:sticky;top:80px;align-self:start}.ant-community-navigation a{padding:12px 16px;border-radius:12px;color:var(--unified-text);text-decoration:none}.ant-community-navigation a:hover,.ant-community-navigation [aria-current]{background:var(--unified-soft)}
@media(max-width:1100px){body.production-engine.community-page-mode .ugc-community-shell{grid-template-columns:130px minmax(0,1fr)!important}.ugc-discovery-aside{display:none!important}}
@media(max-width:700px){body.production-engine.community-page-mode .ugc-community-shell{grid-template-columns:minmax(0,1fr)!important}.ant-community-navigation{position:static;flex-direction:row;overflow:auto;gap:0}.ant-community-navigation a{white-space:nowrap;padding:10px}}

.production-engine .ugc-feed-tabs button{background:transparent!important;border-radius:0!important;box-shadow:none!important}.production-engine .community-post-actions button{background:transparent!important;border:0!important;padding:8px 12px!important}.production-engine .ugc-discovery-aside [data-community-topic]{background:transparent!important;border:0!important}.production-engine .ugc-feed-column .inspiration-composer>p{display:none!important}

/* ANT-SYS-2026-1004-006: community fills the same shell as the header. */
html[data-theme] body.production-engine.community-page-mode #view-root .ugc-community-shell{width:100%!important;max-width:none!important;grid-template-columns:150px minmax(0,1fr) 280px!important;gap:24px!important}
html[data-theme] body.production-engine.community-page-mode #view-root :is(.ugc-upload-control,.community-detail-header,.community-profile-header,.post-media,.community-media-grid,.composer-avatar,.community-media-viewer,.community-profile-cover,.community-post-media,.community-thread,.community-comment-form,.community-comment,.community-topic-card,.ugc-topic-card,.ugc-suggest-card,.community-detail-post,.community-detail-shell,.community-detail-column){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
html[data-theme] body.production-engine.community-page-mode #view-root :is(.ugc-upload-control,.community-comment-form,.community-thread,.community-detail-shell) :is(p,span,label,strong,a,h1,h2,h3,small){color:inherit!important;text-shadow:none!important}
html[data-theme] body.production-engine.community-page-mode #view-root :is(textarea,input,select){background:var(--unified-panel)!important;color:var(--unified-text)!important;border-color:var(--unified-line)!important}
.ant-community-return{display:inline-flex;align-items:center;margin:0 0 16px;padding:8px 12px;border:1px solid var(--unified-line);border-radius:8px;color:var(--unified-text);background:var(--unified-panel);text-decoration:none}
@media(max-width:1100px){html[data-theme] body.production-engine.community-page-mode #view-root .ugc-community-shell{grid-template-columns:130px minmax(0,1fr)!important}}
@media(max-width:700px){html[data-theme] body.production-engine.community-page-mode #view-root .ugc-community-shell{grid-template-columns:minmax(0,1fr)!important}}

html[data-theme] body.production-engine.community-page-mode #view-root :is(.community-detail-shell,.community-profile-shell){width:100%!important;max-width:none!important;grid-template-columns:minmax(0,1fr) 280px!important;gap:24px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-detail-header a{white-space:nowrap;width:auto!important;min-width:32px;font-size:13px!important}
@media(max-width:1100px){html[data-theme] body.production-engine.community-page-mode #view-root :is(.community-detail-shell,.community-profile-shell){grid-template-columns:minmax(0,1fr)!important}}
/* Community has breathing room and a retained reading shell. */
body.production-engine.community-page-mode #view-root{padding-top:24px!important}
.ant-community-overlay{position:fixed;inset:6vh 4vw;width:92vw;height:88vh;max-width:none;max-height:none;padding:0;border:1px solid var(--unified-line);border-radius:14px;background:var(--unified-panel);color:var(--unified-text)}.ant-community-overlay::backdrop{background:rgba(0,0,0,.22)}.ant-community-overlay header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;height:52px;box-sizing:border-box;border-bottom:1px solid var(--unified-line)}.ant-community-overlay button{background:transparent!important;color:inherit!important;border:0!important}.ant-community-overlay iframe{width:100%;height:calc(100% - 52px);border:0;background:var(--unified-panel)}

/* ANT-SYS-2026-1016-010: rounded reading surfaces, not canvas geometry. */
body.production-engine{--ant-surface-radius:24px;--ant-card-radius:18px;--ant-content-inset:24px}
html[data-theme] body.production-engine.community-page-mode #view-root .ugc-feed-column,
html[data-theme] body.production-engine.community-page-mode #view-root .community-detail-column{
  border:1px solid var(--unified-line)!important;border-radius:var(--ant-surface-radius)!important;
  padding:0 0 16px!important;background:var(--unified-panel)!important;min-width:0!important;
}
html[data-theme] body.production-engine.community-page-mode #view-root .ugc-feed-header{
  border-radius:var(--ant-surface-radius) var(--ant-surface-radius) 0 0!important;
  padding:24px 28px 0!important;background:var(--unified-panel)!important;
}
html[data-theme] body.production-engine.community-page-mode #view-root .ugc-feed-heading{padding:0 0 12px!important}
html[data-theme] body.production-engine.community-page-mode #view-root :is(.community-topic-strip,.community-post-entry){padding:16px 24px!important;gap:10px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .ugc-feed-column :is(.inspiration-post,.inspiration-composer,.community-detail-post){padding:26px 28px!important;gap:14px!important;min-width:0!important}
html[data-theme] body.production-engine.community-page-mode #view-root .post-body{min-width:0!important;overflow-wrap:anywhere}
html[data-theme] body.production-engine.community-page-mode #view-root .inspiration-post :is(h3,p){margin-top:12px!important;line-height:1.75!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-media-grid{margin-top:16px!important;margin-bottom:12px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-detail-header{border-radius:var(--ant-surface-radius) var(--ant-surface-radius) 0 0!important;padding:20px 24px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-nav-group{
  box-sizing:border-box;padding:16px 12px!important;border:1px solid var(--unified-line)!important;
  border-radius:var(--ant-card-radius)!important;background:var(--unified-panel)!important;min-width:0;
}
body.production-engine .ant-community-navigation{gap:16px!important}
body.production-engine .community-nav-group h3{margin:0 0 12px!important;line-height:1.5!important}
body.production-engine .community-nav-group a{padding:11px 12px!important}
html[data-theme] body.production-engine.community-page-mode #view-root :is(.ugc-discovery-aside,.ugc-community-aside){border-radius:var(--ant-surface-radius)!important;padding:20px!important;gap:20px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .ugc-community-card{padding:20px!important;border-radius:var(--ant-card-radius)!important}
html[data-theme] body.production-engine.community-page-mode #view-root :is(.community-topic-card,.ugc-topic-card,.ugc-suggest-card){border-radius:14px!important;padding:14px!important}
body.production-engine #view-root :is(.content-card,.project-card,.case-card,.prompt-card,.knowledge-card,.workflow-track-card,.tutorial-card){border-radius:var(--ant-card-radius)!important;padding:18px!important;box-sizing:border-box;min-width:0}
body.production-engine #view-root :is(.content-card,.project-card,.case-card,.prompt-card,.knowledge-card,.workflow-track-card,.tutorial-card)>:is(img,picture,video){border-radius:12px!important;max-width:100%}
body.production-engine #view-root :is(.credits-account,.credits-recharge-primary,.credit-section,.finance-dashboard,.admin-console,.ops-console){border-radius:var(--ant-surface-radius)!important;padding:var(--ant-content-inset)!important}
@media(max-width:700px){
  body.production-engine{--ant-surface-radius:18px;--ant-card-radius:14px;--ant-content-inset:16px}
  html[data-theme] body.production-engine.community-page-mode #view-root .ugc-feed-header{padding:20px 16px 0!important}
  html[data-theme] body.production-engine.community-page-mode #view-root .ugc-feed-column :is(.inspiration-post,.inspiration-composer,.community-detail-post){padding:20px 16px!important;gap:10px!important}
  html[data-theme] body.production-engine.community-page-mode #view-root :is(.community-topic-strip,.community-post-entry,.community-detail-header){padding:14px 16px!important}
  body.production-engine .ant-community-navigation{gap:10px!important}
  html[data-theme] body.production-engine.community-page-mode #view-root .community-nav-group{padding:12px!important;flex:0 0 auto}
  body.production-engine #view-root :is(.content-card,.project-card,.case-card,.prompt-card,.knowledge-card,.workflow-track-card,.tutorial-card){padding:14px!important}
}
/* ANT-SYS-2026-1017-002: navigation follows the page, never clips tools. */
body.production-engine.community-page-mode .ant-community-navigation{position:static!important;max-height:none!important;height:auto!important;overflow:visible!important;gap:10px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-nav-group{padding:12px 10px!important}
body.production-engine.community-page-mode .ant-community-navigation a{padding:8px 12px!important;line-height:1.45!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-creator-row{display:grid!important;grid-template-columns:36px minmax(0,1fr) 52px!important;gap:9px!important;padding:10px 0!important;min-height:0!important;margin:0!important;align-items:center!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-creator-avatar{width:36px!important;height:36px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-creator-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;text-align:left!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-creator-copy :is(strong,span,small){display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.4!important;margin:0!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-creator-copy strong{font-size:14px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-creator-copy :is(span,small){font-size:11px!important}
html[data-theme] body.production-engine.community-page-mode #view-root .community-creator-row .community-subscribe-btn{min-width:52px!important;width:52px!important;padding:6px!important;margin:0!important;font-size:12px!important}
body.production-engine .workflow-track-grid.workflow-four-tracks{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
body.production-engine .workflow-four-tracks .workflow-track-card{display:grid!important;grid-template-columns:200px minmax(0,1fr)!important;gap:24px!important;align-items:start!important;padding:18px!important}
body.production-engine .workflow-four-tracks .workflow-track-visual{width:200px!important;height:130px!important;object-fit:cover!important;border-radius:14px!important;margin:0!important}
body.production-engine .workflow-four-tracks .workflow-track-body{padding:0!important;min-width:0!important}
body.production-engine .workflow-four-tracks .workflow-track-body>p,body.production-engine .workflow-four-tracks .workflow-track-tags{display:none!important}
body.production-engine .workflow-four-tracks h4{margin:9px 0 14px!important}
@media(max-width:700px){body.production-engine.community-page-mode .ant-community-navigation{display:flex!important;flex-direction:column!important;flex-wrap:wrap!important}body.production-engine.community-page-mode .community-nav-group{display:flex!important;flex-wrap:wrap!important;gap:4px!important}body.production-engine.community-page-mode .community-nav-group h3{width:100%!important}body.production-engine .workflow-four-tracks .workflow-track-card{grid-template-columns:100px minmax(0,1fr)!important;gap:12px!important;padding:14px!important}body.production-engine .workflow-four-tracks .workflow-track-visual{width:100px!important;height:90px!important}}

/* Phone fallback and tab visibility: do not inherit fixed QR grid sizing. */
body.production-engine .ant-compact-login [hidden]{display:none!important}
body.production-engine .ant-mobile-login-fallback{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:14px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:18px!important;box-sizing:border-box!important}
body.production-engine .ant-mobile-login-fallback :is(p,button){position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;flex-shrink:0!important}
body.production-engine .ant-mobile-login-fallback button{min-height:46px!important;height:auto!important;margin:0!important}
