/* One current-site scale; imagery and saved creative content remain intact. */
.site-current-ui{--site-bg:var(--creative-bg,var(--unified-bg,#f7f7f3));--site-panel:var(--creative-panel,var(--unified-panel,#fff));--site-text:var(--creative-text,var(--unified-text,#202722));--site-muted:var(--creative-muted,var(--unified-muted,#5b665b));--site-line:var(--creative-line,var(--unified-line,#dfe3d8));font-family:var(--font-platform,Inter,"PingFang SC","Microsoft YaHei",Arial,sans-serif)!important;font-size:13px;line-height:1.65;background:var(--site-bg)!important;color:var(--site-text)!important}
.site-current-ui :is(button,input,textarea,select){font-family:inherit!important;line-height:1.6!important;box-sizing:border-box}
html[data-theme=dark] .site-current-ui{--site-bg:#151616;--site-panel:#222525;--site-text:#eceee7;--site-muted:#b8beb3;--site-line:#424941}
.site-current-ui :is(button,a[role=button],summary){align-items:center;vertical-align:middle}
.site-current-ui svg{flex-shrink:0;vertical-align:middle;overflow:visible}
.site-current-ui,body.site-current-ui.production-engine{font-family:Inter,"PingFang SC","Microsoft YaHei",Arial,sans-serif!important}
.site-current-ui .ant-help-article h1{font-size:24px;line-height:1.5}.site-current-ui .ant-help-article h2{font-size:18px;line-height:1.6}
.site-current-ui:has(.account-assets) .social-global-publish{display:none!important}
.site-current-ui #view-root .ant-canva-tool-rail :is(button,a){padding:6px 2px!important;min-height:44px;gap:4px;align-items:center;justify-content:center}
.site-current-ui #view-root .ant-canva-tool-rail :is(button,a)>span{white-space:nowrap;font-size:10px!important;line-height:1.5!important}
.site-current-ui #view-root .ant-canva-tool-rail .site-help-icon{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:7px!important;margin:8px auto!important}
.site-current-ui #view-root .ant-canva-tool-rail .site-help-icon svg{width:18px!important;height:18px!important}
.site-current-ui [data-system-explanation]{display:none!important}
.site-current-ui .site-secondary-help{display:none!important}
.site-current-ui .creative-heading{margin-bottom:28px}.site-current-ui .creative-heading>.eyebrow{display:none}.site-current-ui .creative-heading h1,.site-current-ui #view-root h1{font-size:24px!important;font-weight:500!important;line-height:1.5!important;margin:0 0 20px!important}
.site-current-ui :is(.creative-content,.view-root) :is(h2,h3,h4){line-height:1.6}.site-current-ui #view-root h2{font-size:18px!important}.site-current-ui #view-root h3{font-size:15px!important}
.site-current-ui :is(.creative-actions,.creative-tabs,.projects-toolbar,.platform-engine-header nav) :is(a,button){font-size:12px!important;font-weight:400!important;padding:8px 12px;line-height:1.6!important;border-radius:10px}
.site-current-ui :is(.panel-header,.section-header){padding:18px 20px!important;gap:12px}.site-current-ui :is(.panel-header,.section-header) h2{margin:0}
.site-current-ui :is([class*="bg-black"],[class*="bg-obsidian"],[class*="bg-[#0"],[class*="bg-[#1"]){background:var(--site-panel)!important;color:var(--site-text)!important}
html:not([data-theme=dark]) .site-current-ui :is(.portal-body,.card-body,.card-content,.panel-body,.ant-help-center,.ant-account-panel,.account-flow-panel,.upgrade-card,.upgrade-table,.auth-card,.model-card,.ant-agent-canvas-inspector,.ant-agent-canvas-sidebar){background:var(--site-panel)!important;color:var(--site-text)!important;border-color:var(--site-line)!important}
.site-current-ui [class*="text-gold-"]{color:var(--site-text)!important}.site-current-ui :is(input,textarea,select){color:var(--site-text)}
#antpower-site-tools{position:fixed;right:20px;bottom:20px;z-index:56;display:flex;gap:8px;align-items:center}
#antpower-site-tools a,.site-help-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box;width:34px;min-width:34px;height:34px;min-height:34px;padding:8px!important;margin:0!important;line-height:1!important;font-size:0!important;border:1px solid var(--site-line)!important;border-radius:50%!important;background:var(--site-panel)!important;color:var(--site-muted)!important;text-decoration:none}
#antpower-site-tools a:hover,.site-help-icon:hover{color:var(--site-text)!important;border-color:var(--creative-accent,var(--unified-accent,#59662e))!important}
.site-current-ui :is(.ant-canva-tool-rail,.journey-stage-tools) :is(button,a){box-sizing:border-box;line-height:1.5!important}.site-current-ui .ant-canva-tool-rail .site-help-icon{width:32px;min-width:32px;height:32px;min-height:32px;margin:8px auto!important}
.site-canvas-view #antpower-site-tools{left:86px;right:auto;top:14px;bottom:auto}.site-canvas-view:has(#antpower-project-return) #antpower-site-tools{left:170px}.site-current-ui:has(.project-journey) .social-global-publish{right:258px!important}
.site-current-ui .creative-footer{gap:20px;align-items:center;padding:28px 0;font-size:11px}.site-current-ui .creative-footer .home-help-link{font-size:13px;margin-right:auto;display:inline-flex;gap:8px;align-items:center}.site-current-ui .creative-footer a{line-height:1.6}
.site-current-ui .ant-help-layout{gap:28px}.site-current-ui .ant-help-article :is(p,li){font-size:13px;line-height:1.9}.site-current-ui .ant-help-article section{margin:26px 0}.site-current-ui .ant-help-sidebar summary{padding:10px 8px}.site-current-ui .ant-help-sidebar button{padding:8px 12px;font-size:12px;line-height:1.6}.site-current-ui .ant-help-breadcrumb{font-size:11px!important;color:var(--site-muted)}
.site-current-ui .account-assets{max-width:1120px}.site-current-ui .asset-account-grid{gap:16px;background:transparent;grid-template-columns:repeat(4,minmax(0,1fr))}.site-current-ui .asset-account-grid a{border:1px solid var(--site-line);border-radius:12px;min-height:120px;background:var(--site-panel)}.site-current-ui .asset-account-grid strong{font-size:20px;line-height:1.5}.site-current-ui .account-assets>header{padding:0 0 20px}
@media(max-width:700px){#antpower-site-tools{right:14px;bottom:14px;gap:6px}#antpower-site-tools a{width:40px;height:40px;min-width:40px;min-height:40px;padding:11px!important}.site-canvas-view #antpower-site-tools{left:80px;right:auto;top:12px;bottom:auto}.site-canvas-view:has(#antpower-project-return) #antpower-site-tools{left:166px}.site-current-ui .asset-account-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.site-current-ui:has(.project-journey) .social-global-publish{display:none!important}.site-current-ui .creative-footer{gap:16px}.site-current-ui .ant-help-layout{gap:20px}}
/* Shared project/prompt catalogs: remove unreadable legacy banners for every account role. */
/* Aill is the sole project guide; leave ordinary pages' help untouched. */
body:has(.aill-guide) #antpower-site-tools .site-help{display:none!important}
body:has(.film-journey) .aill-guide-launch{bottom:max(100px,calc(env(safe-area-inset-bottom) + 90px))!important}
body:has(.film-journey) .aill-guide-panel{bottom:176px;max-height:calc(100dvh - 200px)}
@media(max-width:600px){body:has(.aill-guide) .aill-guide-panel{width:calc(100% - 24px)!important;box-sizing:border-box}body:has(.film-journey) .aill-guide-launch{bottom:max(156px,calc(env(safe-area-inset-bottom) + 146px))!important}body:has(.film-journey) .aill-guide-panel{bottom:232px;max-height:calc(100dvh - 256px)}}
.site-current-ui :is(.project-community-hero,.prompt-community-hero){display:none!important}

/* ANT-SYS-2026-1014-009: 16:9 presentation, preserve full subjects. */
.made-card img{aspect-ratio:16/9;object-fit:contain!important;object-position:center center;}
.account-canvas-card-media{aspect-ratio:16/9;height:auto!important;min-height:0;}
body.production-engine .account-canvas-card-media :is(img, video){width:100%;height:100%;object-fit:contain!important;object-position:center center;}

/* ANT-SYS-2026-1014-009: 16:9 presentation, preserve full subjects. */
.made-card img{aspect-ratio:16/9;object-fit:contain!important;object-position:center center;}
.account-canvas-card-media{aspect-ratio:16/9;height:auto!important;min-height:0;}
body.production-engine.site-current-ui .account-canvas-card-media :is(img, video){width:100%;height:100%;object-fit:contain!important;object-position:center center;}


/* Override the compact catalog crop without replacing source media. */
body .prompt-catalog-compact article > a img.live-cover,body .live-cover{aspect-ratio:16/9!important;object-fit:contain!important;height:auto!important;background:var(--creative-surface,#f4f5f0)}

/* Case viewer: contained media, useful actions, readable verified file facts. */
body .learning-asset-overlay:not([hidden]){padding:24px!important;background:rgba(16,23,19,.58)!important;backdrop-filter:blur(5px);display:flex!important;align-items:center;justify-content:center;z-index:10000}
body .learning-asset-dialog{width:min(1440px,100%)!important;height:min(880px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px)!important;display:grid!important;grid-template-columns:minmax(0,1.22fr) minmax(340px,.9fr)!important;grid-template-rows:auto minmax(0,1fr)!important;background:#fff!important;border:1px solid #dce2da;border-radius:16px!important;overflow:hidden!important;box-shadow:0 24px 90px #07120b40;color:#202a23!important}
body .asset-viewer-topbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;border-bottom:1px solid #e3e8e0;background:#fff;min-width:0}
body .asset-viewer-topbar>div{display:flex;align-items:center;gap:10px;min-width:0}.asset-viewer-topbar strong{font-size:15px;line-height:1.5;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-viewer-kind{font-size:11px;padding:3px 7px;background:#f0f3ed;border-radius:5px;color:#59685a;white-space:nowrap}
body .asset-viewer-topbar nav{display:flex;align-items:center;gap:7px;flex-shrink:0;font-size:12px;color:#657164}.asset-viewer-topbar nav button{position:static!important;inset:auto!important;width:32px!important;height:32px!important;min-width:32px!important;border:1px solid #dce3d8!important;border-radius:8px!important;background:#f9faf7!important;color:#243027!important;font-size:21px!important;line-height:1!important;padding:0!important}.asset-viewer-topbar nav button:disabled{opacity:.35;cursor:default}
body .learning-asset-dialog .learning-asset-stage{min-width:0!important;min-height:0!important;padding:16px!important;background:#111813!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;border-right:1px solid #e3e8e0}
body .learning-asset-stage>video,body .learning-asset-stage>img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;aspect-ratio:auto!important;border-radius:5px}.learning-asset-stage .browse-original-download{display:none!important}
body .learning-asset-inspector{min-width:0!important;min-height:0!important;overflow:auto!important;padding:22px!important;color:#202a23!important;background:#fff!important;display:block!important}
body .learning-asset-inspector>header{display:flex!important;align-items:center;gap:10px;padding:0 0 18px!important;margin:0!important}.learning-asset-inspector>header>div:last-child{display:grid;gap:2px}.learning-asset-inspector>header strong{font-size:13px;color:#263328}.learning-asset-inspector>header span{font-size:11px;color:#647065}
body .learning-asset-avatar{width:32px!important;height:32px!important;min-width:32px!important;background:#edf1e8!important;border:1px solid #dce4d5;border-radius:50%;font-size:13px!important;color:#495a40!important}
body .learning-asset-prompt{margin:0!important;padding:0!important;border:0!important}.asset-prompt-label{font-size:12px;line-height:1.6;color:#55634f;margin-bottom:11px}.asset-viewer-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 15px;align-items:center}
body .asset-viewer-actions button,body .asset-viewer-actions a{display:inline-flex!important;align-items:center;justify-content:center;min-height:34px!important;padding:7px 11px!important;background:#f3f5ef!important;border:1px solid #dce3d5!important;border-radius:7px!important;color:#293926!important;font-size:12px!important;font-weight:500!important;text-decoration:none!important;line-height:1.4!important;box-shadow:none!important}.asset-viewer-actions a.asset-download-action{background:#34482c!important;border-color:#34482c!important;color:#fff!important}.asset-viewer-actions button:hover,.asset-viewer-actions a:hover{filter:brightness(.96)}
body .asset-prompt-body{padding:15px;background:#f8faf5;border:1px solid #e5eade;border-radius:9px;max-height:46vh;overflow:auto}.asset-prompt-body p{white-space:pre-wrap;font-size:13px!important;line-height:1.85!important;color:#2c382d!important;margin:0!important;overflow-wrap:anywhere}.learning-asset-prompt>small{display:block;margin:12px 0 0!important;color:#6a7468!important;font-size:11px!important;line-height:1.6!important}
body .learning-asset-meta{border-top:1px solid #e5e9e0!important;margin:20px 0 0!important;padding:16px 0 0!important}.learning-asset-meta summary{font-size:12px!important;font-weight:600!important;color:#3b4938!important;cursor:pointer}.learning-asset-meta dl{margin:12px 0 0!important;display:grid!important;gap:9px!important}.learning-asset-meta dl>div{display:grid!important;grid-template-columns:65px minmax(0,1fr)!important;gap:12px;align-items:start!important;padding:0!important}.learning-asset-meta dt{font-size:12px!important;color:#687364!important;text-align:left!important}.learning-asset-meta dd{font-size:12px!important;color:#303c2d!important;text-align:left!important;margin:0!important;overflow-wrap:anywhere}.learning-asset-inspector>footer{padding:15px 0 0!important;margin:0!important;color:#6e7869!important;font-size:11px!important;line-height:1.6}
body .hell-grind-source{padding:18px 22px!important;margin-top:16px!important;border:1px solid #e2e7dd!important;border-radius:10px!important;background:#f6f8f2!important;color:#3e4b38!important;min-height:0!important}.hell-grind-source strong{font-size:14px!important;line-height:1.6!important;color:#2e3c28!important}.hell-grind-source p{font-size:12px!important;line-height:1.7!important;color:#63705b!important;margin:5px 0 0!important}.hell-grind-source>div>span{display:none!important}.hell-grind-source>a{font-size:12px!important;padding:8px 11px!important;background:#e9efdf!important;color:#354d2a!important;border:1px solid #d5e0c8!important;border-radius:7px!important;white-space:nowrap}
/* Legal navigation retains every document; add a real reading gutter. */
body .legal-reader-shell{box-sizing:border-box!important;width:min(1120px,calc(100% - 40px))!important;margin:24px auto 48px!important;padding:30px!important;border:1px solid #e0e5dc!important;border-radius:12px!important;background:#fff!important;color:#273123!important}
body .legal-reader-header{padding:0 0 22px!important;margin:0!important;max-width:80ch!important}.legal-reader-header h2{font-size:23px!important;line-height:1.5!important;margin:5px 0 12px!important}.legal-reader-header p{font-size:14px!important;line-height:1.8!important;margin:8px 0!important}.legal-reader-header .eyebrow,.legal-reader-version{font-size:12px!important;color:#68735f!important}.legal-reference-list{margin:0!important;padding:0!important}.legal-reference-row{padding:20px 0!important;gap:20px!important;grid-template-columns:36px minmax(0,1fr) 22px!important;align-items:start!important}.legal-reference-copy strong{font-size:16px!important;line-height:1.65!important}.legal-reference-copy small{font-size:13px!important;line-height:1.8!important;color:#62705b!important}.legal-reference-number{font-size:12px!important;color:#7a8472!important;line-height:2.2!important}.legal-reader-layout{gap:26px!important}.legal-reader-content{min-width:0!important}
@media(max-width:900px){body .learning-asset-overlay:not([hidden]){padding:12px!important}body .learning-asset-dialog{height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(150px,29vh) minmax(0,1fr)!important;border-radius:12px!important}.asset-viewer-topbar{padding:10px 12px!important;gap:8px!important}.asset-viewer-topbar>div{gap:6px!important}.asset-viewer-topbar strong{font-size:13px!important;max-width:40vw}.asset-viewer-kind{display:none}.asset-viewer-topbar nav{gap:4px!important}.asset-viewer-topbar nav button{width:28px!important;min-width:28px!important;height:28px!important}.asset-viewer-topbar nav span{font-size:10px;min-width:34px;text-align:center}body .learning-asset-dialog .learning-asset-stage{padding:9px!important;border-right:0;border-bottom:1px solid #e3e8e0}body .learning-asset-inspector{padding:16px!important}.asset-prompt-body{max-height:33vh}.asset-viewer-actions{gap:6px}.asset-viewer-actions button,.asset-viewer-actions a{font-size:11px!important;padding:7px 9px!important}body .legal-reader-shell{width:calc(100% - 24px)!important;margin:16px auto 30px!important;padding:20px!important}.legal-reader-header h2{font-size:21px!important}.legal-reference-row{grid-template-columns:24px minmax(0,1fr) 16px!important;gap:10px!important;padding:17px 0!important}.legal-reference-copy strong{font-size:14px!important}.legal-reference-copy small{font-size:12px!important}.hell-grind-source{display:block!important}.hell-grind-source>a{display:inline-flex!important;margin-top:12px!important}}

/* Keep legal reading contrast independent of the surrounding theme. */
body .legal-reader-shell .legal-reader-header h2,body .legal-reader-shell .legal-reader-header p,body .legal-reader-shell .legal-reference-copy strong,body .legal-reader-shell .legal-reference-row{color:#273123!important}body .legal-reader-shell .legal-reference-copy small,body .legal-reader-shell .legal-reader-version,body .legal-reader-shell .legal-reader-header .eyebrow{color:#59664f!important}body .learning-asset-inspector .asset-prompt-label{color:#55634f!important}body .learning-asset-inspector .asset-viewer-actions button:not(:disabled){opacity:1!important}

/* 2026-11-02: prompt text follows its surface in both themes, including WebKit paint. */
html[data-theme] body.production-engine :is(.ant-agent-prompt-rich-editor,.ant-agent-text-editor),
html[data-theme] body.production-engine .ant-agent-prompt-editor-body :is(textarea,.ant-agent-text-editor-label,.ant-agent-text-edit-tools){
  color:var(--unified-text,#202820)!important;
  -webkit-text-fill-color:currentColor!important;
  caret-color:var(--unified-text,#202820)!important;
}
html[data-theme] body.production-engine .ant-agent-prompt-editor-body :is(.ant-agent-prompt-rich-editor,textarea,.ant-agent-text-editor-label,.ant-agent-text-edit-tools){
  background:var(--unified-panel,#fff)!important;
}
html[data-theme] body.production-engine .ant-agent-prompt-rich-editor *{
  -webkit-text-fill-color:currentColor!important;
}
html[data-theme] body.production-engine .ant-agent-prompt-rich-editor:empty::before,
html[data-theme] body.production-engine .ant-agent-prompt-editor-body textarea::placeholder{
  color:var(--unified-muted,#626b61)!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
}
html[data-theme] body.production-engine .ant-agent-prompt-inline-reference{
  color:var(--unified-text,#202820)!important;
  -webkit-text-fill-color:currentColor!important;
  background:var(--unified-soft,#eef0e8)!important;
  border-color:var(--unified-line,#dce1d4)!important;
}
html[data-theme] body.production-engine .ant-agent-prompt-inline-reference :is(b,span,small){
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-theme] body.production-engine :is(.ant-agent-prompt-material-grid,.ant-agent-prompt-reference-item figcaption) :is(b,span,small),
html[data-theme] body.production-engine .ant-agent-prompt-reference-status{
  color:var(--unified-text,#202820)!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
}
html[data-theme] body.production-engine :is(.ant-agent-prompt-material-grid small,.ant-agent-prompt-reference-status){
  background:var(--unified-soft,#eef0e8)!important;
}

/* 2026-11-02: preserve QR dimensions in flex login panels and expose device handoff. */
body.production-engine :is(.ant-compact-login,.protected-wechat-login-dialog,.wechat-registration-dialog) .wechat-qr-panel{display:flex!important;flex-direction:column!important;align-items:center!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;width:100%!important;box-sizing:border-box!important}
body.production-engine :is(.ant-compact-login,.protected-wechat-login-dialog,.wechat-registration-dialog) .wechat-qr-frame{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;width:min(300px,100%)!important;height:300px!important;min-height:300px!important;max-height:none!important;box-sizing:border-box!important;background:#fff!important;overflow:hidden!important;padding:0!important}
body.production-engine .wechat-qr-frame .wechat-device-qr{display:block!important;flex:0 0 auto!important;width:248px!important;height:248px!important;max-width:100%!important;aspect-ratio:1!important;object-fit:contain!important;margin:16px auto!important}
body.production-engine :is(.ant-compact-login,.protected-wechat-login-dialog,.wechat-registration-dialog) .wechat-qr-status{display:block!important;flex:0 0 auto!important;position:static!important;width:100%!important;margin:10px 0!important;color:var(--unified-muted,#626b61)!important;line-height:1.6!important;font-size:12px!important}
body.production-engine .wechat-device-actions{display:flex!important;flex-direction:column!important;gap:10px!important;width:100%!important;flex:0 0 auto!important;box-sizing:border-box!important}
body.production-engine .wechat-device-actions p{font-size:13px!important;line-height:1.7!important;margin:0!important;color:var(--unified-text,#202820)!important}
body.production-engine .wechat-device-actions button{width:100%!important;min-height:42px!important;white-space:normal!important;line-height:1.5!important}
body.production-engine .wechat-device-actions textarea{width:100%!important;box-sizing:border-box!important;min-height:80px!important;font-size:12px!important;overflow-wrap:anywhere!important}
body.production-engine .wechat-device-actions [hidden]{display:none!important}
body.production-engine .protected-wechat-login-dialog{max-height:calc(100dvh - 24px)!important;overflow-y:auto!important}
