/* Structural parity with the approved 4173 workspace. */
body:has(.jy-workbench-heading) .topbar-page-heading{display:none!important}
body:has(.jy-workbench-heading) .jy-global-nav{display:flex;align-items:center;gap:28px;margin-left:36px;font-size:14px;white-space:nowrap}
.jy-global-nav a{color:#53647e;text-decoration:none;padding:23px 0}.jy-global-nav a.active{color:#415d85;border-bottom:2px solid #536b8e}
.jy-workbench-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 4px 26px;color:#283b56}.jy-workbench-heading h1{font-size:30px;line-height:1.3;margin:13px 0 10px;font-weight:750}.jy-workbench-heading p{font-size:14px;color:#627794;margin:0}.jy-kicker{font-size:11px;letter-spacing:2px;color:#7186a3}
body:has(.jy-workbench-heading) .task-panel{height:calc(100dvh - 250px)!important;max-height:calc(100dvh - 250px)!important;min-height:440px!important}
body:has(.jy-workbench-heading) .control-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important}
body:has(.jy-workbench-heading) .control-row>label:has(.model-badge-picker){order:-5!important}
body:has(.jy-workbench-heading) .control-row .model-badge-trigger{background:#eff3f8!important;border:1px solid #aebfd4!important;border-radius:6px!important;min-height:64px!important}
.jy-price-summary{grid-column:1/-1;order:-4;display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;background:#e2e9f3;border:1px solid #b9c8dd;border-radius:6px;padding:14px 18px;color:#536d8c}.jy-price-summary>span{font-size:13px}.jy-price-value{color:#d36b12;font-size:25px}.jy-price-summary>small{grid-column:1/-1;border-top:1px solid #bfccdd;padding-top:8px;color:#6c7f99;font-size:11px}
.jy-picker{grid-column:1/-1;order:-3;background:#eef3f8;border:1px solid #b7c8de;border-radius:6px;padding:16px;min-width:0}.jy-picker[hidden]{display:none!important}.jy-picker label{display:block;font-size:12px;font-weight:650;color:#3d5677;margin:0 0 9px}.jy-families{display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:#dfe7f0;border:1px solid #c0cddd;border-radius:5px;margin-bottom:18px}.jy-families button{flex:1;white-space:nowrap;min-width:82px;font-size:12px;min-height:34px;background:transparent;border:1px solid transparent;border-radius:4px;color:#536c8c;padding:7px 12px;cursor:pointer}.jy-families button.is-selected{background:#354b6b;color:#fff;box-shadow:0 2px 4px #20334820}.jy-model-search{width:100%;height:38px;background:#e5edf6;border:1px solid #b8c9df;border-radius:4px;padding:8px 12px;color:#3f5879;font-size:12px;margin-bottom:12px;box-sizing:border-box}.jy-schemes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:300px;overflow:auto;scrollbar-width:thin;scrollbar-color:#8da2bd #e5ecf5;padding-right:4px}.jy-scheme{display:block;text-align:left;min-height:86px;background:#f8fafc;border:1px solid #b9c9dd;border-radius:5px;color:#425d81;padding:12px;cursor:pointer}.jy-scheme.is-selected{background:#354b6b;color:#fff;border-color:#354b6b}.jy-scheme-heading{display:flex;align-items:flex-start;gap:7px;justify-content:space-between}.jy-scheme-heading strong{font-size:12px;line-height:1.6;font-weight:650;overflow-wrap:anywhere}.jy-chosen{font-size:10px;white-space:nowrap}.jy-scheme-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;font-size:10px}.jy-scheme-meta span{border:1px solid #b9cadd;border-radius:3px;padding:3px 6px}.jy-scheme.is-selected .jy-scheme-meta span{border-color:#8094b1;background:#ffffff0d}.jy-model-status{font-size:11px!important;line-height:1.6;color:#6c819e!important;margin:12px 0 0!important}.jy-params-title{grid-column:1/-1;order:-2;font-size:16px;color:#273c58;margin:2px 0 0;padding-top:16px;border-top:1px solid #becbdd}
body:has(.jy-workbench-heading) .video-preset-control{order:1!important}
body:has(.jy-workbench-heading) .jy-model-open .model-badge-menu{visibility:hidden!important;pointer-events:none!important}
body:has(.jy-workbench-heading) .prompt-editor-shell{min-height:240px!important;height:max(240px,var(--adaptive-prompt-height,240px))!important}
body:has(.jy-workbench-heading) .drop-target{min-height:60px!important}
body:has(.jy-workbench-heading) .task-panel-history>div{max-height:none!important;overflow:visible!important}body:has(.jy-workbench-heading) .task-panel-history>div>button{min-height:78px!important;padding:12px!important;border-radius:6px!important;margin-bottom:8px}body:has(.jy-workbench-heading) .task-panel-history>div>button strong{font-size:14px!important;line-height:1.5!important}body:has(.jy-workbench-heading) .task-panel-history>div>button small{font-size:12px!important;white-space:normal!important;line-height:1.6!important}body:has(.jy-workbench-heading) .task-panel-history>div>button em{font-size:11px!important}
@media(min-width:1800px){.jy-schemes{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){body:has(.jy-workbench-heading) .task-panel{position:static!important;height:480px!important;max-height:480px!important}.jy-global-nav{gap:14px!important;margin-left:20px!important}.jy-global-nav a{font-size:12px}}
@media(max-width:760px){.jy-global-nav{display:none!important}.jy-workbench-heading h1{font-size:24px}.jy-workbench-heading{padding-bottom:20px}.jy-schemes{grid-template-columns:1fr}.jy-picker{padding:12px}.jy-families button{min-width:72px;font-size:11px}.jy-price-summary{padding:12px}}
.jy-version-source{display:none!important}.jy-version-buttons{display:flex;padding:4px;gap:5px;background:#dde6f1;border:1px solid #b5c7df;border-radius:5px;min-height:44px;box-sizing:border-box}.jy-version-buttons button{flex:1;min-width:0;font-size:13px;font-weight:650;color:#4c668b;background:#f5f8fc;border:1px solid #b5c7df;border-radius:4px;padding:8px;cursor:pointer}.jy-version-buttons button.is-selected{background:#354c6e;color:white;border-color:#354c6e}
body:has(.jy-workbench-heading) .task-panel h2{font-family:Inter,"Microsoft YaHei",sans-serif!important}
body:has(.jy-workbench-heading) .media-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;max-height:180px;overflow:auto!important}
body:has(.jy-workbench-heading) .media-grid article{width:100%!important;height:76px!important;flex-basis:auto!important;background:#e7edf5!important;border-color:#bdc9d9!important}
body:has(.jy-workbench-heading) .media-grid article>span{background:#354b6b!important;color:white!important}
body:has(.jy-workbench-heading) .media-drop .drop-target{display:inline-flex!important;width:auto!important;min-width:160px!important;min-height:38px!important;padding:7px 14px!important;flex-direction:row!important;gap:8px!important;background:#edf2f8!important}
body:has(.jy-workbench-heading) .media-drop .drop-target>span{display:none!important}
body:has(.jy-workbench-heading) .media-drop .drop-target svg{width:18px!important;height:18px!important}
body:has(.jy-workbench-heading) .media-drop .drop-target strong{font-size:12px!important}
body:has(.jy-workbench-heading) .media-drop:not(:has(.media-grid))::after{content:'添加素材后可预览、删除，并在提示词中引用。';display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:12px;border:1px dashed #b3c3d8;border-radius:5px;background:#e9eff6;color:#7a8ca5;font-size:12px;padding:8px;box-sizing:border-box}
body:has(.jy-workbench-heading) .task-panel .panel-heading>span{display:none!important}
@media(max-width:600px){body:has(.jy-workbench-heading) .jy-workbench-heading p{font-size:12px}.jy-version-buttons{flex-wrap:wrap}.jy-version-buttons button{font-size:11px;padding:7px}}


/* Detail alignment with the approved local workspace. */
body:has(.jy-workbench-heading) .shell{grid-template-columns:212px minmax(0,1fr)!important}
body:has(.jy-workbench-heading) .rail{width:212px!important}
body:has(.jy-workbench-heading) .brand-mark{min-height:110px!important;padding:26px!important;display:block!important;text-align:left}
body:has(.jy-workbench-heading) .brand-mark>*{display:none!important}
body:has(.jy-workbench-heading) .brand-mark::before{content:'我的创作空间';display:block;color:#f1f5fa;font:700 16px/1.7 'Microsoft YaHei',sans-serif}
body:has(.jy-workbench-heading) .brand-mark::after{content:'JIANYI STUDIO';display:block;margin:5px 0 0!important;color:#92a6c2;font:600 11px/1.5 Inter,sans-serif;letter-spacing:1.5px}
body:has(.jy-workbench-heading) .rail nav{padding:10px 14px!important;gap:6px!important}
body:has(.jy-workbench-heading) .rail nav button{border-radius:5px!important;min-height:47px!important}
body:has(.jy-workbench-heading) .model-badge-trigger img{display:none!important}
body:has(.jy-workbench-heading) .model-badge-trigger>i{background:#e2e9f2!important;color:#526a89!important;border:1px solid #bdcadb!important;box-shadow:none!important;font-size:11px!important}
body:has(.jy-workbench-heading) .model-badge-trigger::after{content:'更换模型 →';min-width:105px;justify-content:center;background:#354b6b!important}
body:has(.jy-workbench-heading) .control-row>[data-jy-parameter=version]{order:0!important}
body:has(.jy-workbench-heading) .control-row>[data-jy-parameter=resolution]{order:0!important}
body:has(.jy-workbench-heading) .control-row>.video-preset-control{order:1!important}
body:has(.jy-workbench-heading) .control-row>[data-jy-parameter=ratio],body:has(.jy-workbench-heading) .control-row>[data-jy-parameter=duration]{order:2!important}
.jy-version-note{display:block;color:#7487a1;font-size:11px;margin-top:6px;line-height:1.5}
.jy-version-buttons{min-height:40px}.jy-version-buttons button{padding:7px;font-size:12px}
.jy-scheme{min-height:80px}.jy-scheme-heading strong{font-size:12px;line-height:1.6}.jy-scheme-meta{font-size:11px}
body:has(.jy-workbench-heading) .submit-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;padding:18px!important;gap:12px!important}
body:has(.jy-workbench-heading) .submit-bar .audio-switch{grid-column:1/-1!important}
body:has(.jy-workbench-heading) .submit-bar .model-insight{grid-column:1/-1!important;min-width:0!important;max-width:none!important;font-size:12px!important}
body:has(.jy-workbench-heading) .submit-bar .cost{justify-self:start!important}
body:has(.jy-workbench-heading) .task-panel{padding:16px!important;scrollbar-width:thin;scrollbar-color:#94a7bf #e5edf5}
body:has(.jy-workbench-heading) .task-panel-history>div>button{width:100%!important;text-align:left!important;min-height:94px!important;border:1px solid #bacadd!important;background:#eaf0f7!important;margin-bottom:10px!important;box-shadow:none!important}
body:has(.jy-workbench-heading) .task-body :is(dt,dd){font-size:13px!important;line-height:1.8!important;overflow-wrap:anywhere}
body:has(.jy-workbench-heading) .task-panel-meta{font-size:12px!important;line-height:1.8!important;padding:10px!important}
body:has(.jy-workbench-heading) .task-panel .progress-row{font-size:13px!important;line-height:1.7!important}
body:has(.jy-workbench-heading) .task-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
@media(max-width:1050px){body:has(.jy-workbench-heading) .shell{grid-template-columns:170px minmax(0,1fr)!important}body:has(.jy-workbench-heading) .rail{width:170px!important}body:has(.jy-workbench-heading) .brand-mark{padding:20px!important}}
@media(max-width:600px){body:has(.jy-workbench-heading) .shell{grid-template-columns:58px minmax(0,1fr)!important}body:has(.jy-workbench-heading) .rail{width:58px!important}body:has(.jy-workbench-heading) .brand-mark{min-height:60px!important;padding:12px!important}body:has(.jy-workbench-heading) .brand-mark::before{content:'简一';font-size:15px}body:has(.jy-workbench-heading) .brand-mark::after{display:none!important}body:has(.jy-workbench-heading) .submit-bar{grid-template-columns:1fr!important}}

body:has(.jy-workbench-heading) .rail{display:flex!important;flex-direction:column!important;height:100dvh!important;overflow:hidden!important}
body:has(.jy-workbench-heading) .rail nav{flex:1!important;min-height:0!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;scrollbar-width:thin;scrollbar-color:#64748b #252e3b}
body:has(.jy-workbench-heading) .rail nav button{flex:0 0 47px!important;height:47px!important}
body:has(.jy-workbench-heading) .rail-bottom{flex:0 0 auto!important}
body:has(.jy-workbench-heading) .task-panel :is(h2,strong,p,dt,dd,button,small){font-family:Inter,'Microsoft YaHei',sans-serif!important}
body:has(.jy-workbench-heading) .task-panel .panel-heading>span{display:none!important}
body:has(.jy-workbench-heading) .task-empty{min-height:190px!important;justify-content:flex-start!important;padding-top:24px!important}
body:has(.jy-workbench-heading) .task-panel h2{font-weight:700!important;font-size:18px!important}

/* Upload, privacy editor and reference picker theme parity. */
body:has(.creator-page) .pem-overlay{background:rgba(35,47,64,.48)!important;color:#293e58!important;font-family:Inter,'Microsoft YaHei',sans-serif!important}
body:has(.creator-page) .pem-dialog{background:#f5f8fc!important;border:1px solid #aebfd4!important;border-radius:10px!important;box-shadow:0 24px 70px #23334840!important}
body:has(.creator-page) .pem-header{background:#edf2f8!important;border-color:#c0ccdc!important;padding:18px 20px!important}
body:has(.creator-page) .pem-header strong{color:#283d58!important;font-size:18px!important;font-weight:700!important}
body:has(.creator-page) .pem-header span,body:has(.creator-page) .pem-status{color:#62758e!important;font-size:13px!important;line-height:1.7!important}
body:has(.creator-page) .pem-stage{background:#dfe7f0!important;border-bottom:1px solid #c5d0df!important}
body:has(.creator-page) .pem-toolbar{background:#f5f8fc!important}
body:has(.creator-page) :is(.pem-btn,.pem-color,.pem-close){background:#edf2f8!important;border:1px solid #afc1d8!important;color:#405c7d!important;border-radius:5px!important;font-family:Inter,'Microsoft YaHei',sans-serif!important;font-size:13px!important;min-height:38px}
body:has(.creator-page) :is(.pem-btn,.pem-color,.pem-close):hover{background:#dfe8f3!important;border-color:#6884a7!important;color:#2d4565!important}
body:has(.creator-page) .pem-primary{background:#354b6b!important;color:#fff!important;border-color:#354b6b!important}
body:has(.creator-page) .pem-color.is-active{box-shadow:0 0 0 2px #536e92 inset!important;background:#e2eaf4!important}
body:has(.creator-page) .pem-color[data-color="#ff4050"]{color:#b63d4a!important}
body:has(.creator-page) .pem-color[data-color="#111111"]{color:#263447!important}
body:has(.creator-page) .media-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;max-height:210px!important}
body:has(.creator-page) .media-grid article{height:102px!important;padding-bottom:26px!important;overflow:hidden!important;border-radius:5px!important}
body:has(.creator-page) .media-grid article>span{font-size:11px!important;bottom:4px!important;left:5px!important;line-height:18px!important;padding:0 5px!important}
body:has(.creator-page) .media-grid .privacy-mask-actions{left:5px!important;right:5px!important;bottom:31px!important}
body:has(.creator-page) .media-grid .privacy-mask-actions button{background:#edf3faf2!important;border:1px solid #a8bbd3!important;color:#344f72!important;font-size:11px!important;height:26px!important;line-height:24px!important;border-radius:4px!important;box-shadow:0 1px 4px #263b5420!important}
body:has(.creator-page) .media-grid .privacy-mask-actions .is-masked{color:#ad3b4a!important;border-color:#cf8e98!important}
body:has(.creator-page) .media-drop .drop-target{font-family:Inter,'Microsoft YaHei',sans-serif!important;font-size:13px!important;border:1px dashed #a7bdd8!important;border-radius:5px!important;color:#405c7d!important;background:#edf2f8!important}
body:has(.creator-page) .media-drop .drop-target strong{font-size:13px!important;font-weight:600!important}
body:has(.creator-page) .mention-menu{background:#f5f8fcfa!important;border:1px solid #a9bdd7!important;border-radius:8px!important;color:#293f5b!important;box-shadow:0 12px 32px #2c405b30!important;font-family:Inter,'Microsoft YaHei',sans-serif!important}
body:has(.creator-page) .mention-menu-title strong{color:#304a6b!important;font-size:13px!important}
body:has(.creator-page) .mention-menu-title span{color:#71839c!important;font-size:12px!important}
body:has(.creator-page) .mention-menu-title button{background:#e5ecf5!important;color:#3d5779!important;border:1px solid #b6c6dc!important;border-radius:4px!important;padding:5px 9px!important;font-size:12px!important}
body:has(.creator-page) :is(.mention-list>button,.mention-upload){background:#eaf0f7!important;border:1px solid #b6c7de!important;color:#355271!important;border-radius:5px!important;font-size:13px!important}
body:has(.creator-page) :is(.mention-list>button,.mention-upload):hover{background:#dce6f2!important;border-color:#6e88ab!important}
body:has(.creator-page) .mention-menu .mention-list strong{color:#2f496b!important;font-size:13px!important}
body:has(.creator-page) .mention-menu .mention-list small{color:#72849c!important;font-size:12px!important}
body:has(.creator-page) .mention-menu .mention-thumb{background:#dfe7f2!important;border:1px solid #b3c5dc!important;border-radius:4px!important}
body:has(.creator-page) :is(.mention-list svg,.mention-upload svg){color:#526f94!important}

/* Audit: legacy asset-manager and preset dialogs. */
body:has(.creator-page) :is(.vam-overlay,.ad-style-backdrop){background:rgba(35,47,64,.48)!important;backdrop-filter:blur(8px)!important}
body:has(.creator-page) :is(.vam-modal,.ad-style-dialog){background:#f5f8fc!important;border:1px solid #aebfd4!important;border-radius:9px!important;box-shadow:0 24px 70px #23334840!important;color:#304763!important;font-family:Inter,'Microsoft YaHei',sans-serif!important;scrollbar-color:#91a7c2 #e5edf5!important}
body:has(.creator-page) :is(.vam-head,.vam-toolbar,.vam-selected){background:#edf2f8!important;border-color:#c2cede!important}
body:has(.creator-page) :is(.vam-title,.ad-style-dialog h2){color:#293e59!important;font-size:22px!important;font-weight:700!important;font-family:Inter,'Microsoft YaHei',sans-serif!important}
body:has(.creator-page) :is(.vam-eyebrow,.ad-style-dialog>header span){color:#6a819e!important;font-size:11px!important}
body:has(.creator-page) :is(.vam-subtitle,.vam-toolbar-note,.vam-selected-count,.ad-style-dialog>header p){color:#687e99!important;font-size:13px!important;line-height:1.65!important}
body:has(.creator-page) :is(.vam-tab,.vam-refresh,.vam-close,.vam-card,.vam-chip,.ad-style-dialog>header>button){background:#eaf0f7!important;color:#405b7d!important;border:1px solid #b6c7de!important;border-radius:5px!important;font-size:13px!important}
body:has(.creator-page) :is(.vam-tab.is-active,.vam-tab.active,.vam-upload,.vam-apply){background:#354b6b!important;color:#fff!important;border:1px solid #354b6b!important;border-radius:5px!important;font-size:13px!important}
body:has(.creator-page) :is(.vam-empty,.vam-selected-title){color:#536b89!important;font-size:13px!important;border-color:#bfccdf!important;background:transparent!important}
body:has(.creator-page) .vam-error{color:#af4c59!important}
body:has(.creator-page) :is(.ad-style-grid>button,.video-preset-grid>button){background:#eaf0f7!important;border:1px solid #b8c9de!important;border-radius:6px!important;color:#304b6d!important;box-shadow:none!important}
body:has(.creator-page) :is(.ad-style-grid>button,.video-preset-grid>button):hover{background:#dfe8f4!important;border-color:#718cad!important}
body:has(.creator-page) :is(.ad-style-grid>button,.video-preset-grid>button).active{background:#354b6b!important;border-color:#354b6b!important;color:#fff!important}
body:has(.creator-page) :is(.ad-style-grid>button>strong,.video-preset-copy strong){color:#304b6d!important;font-size:14px!important;font-family:Inter,'Microsoft YaHei',sans-serif!important}
body:has(.creator-page) :is(.ad-style-grid>button>small,.video-preset-copy small,.video-preset-copy>i){color:#6c829e!important;font-size:12px!important}
body:has(.creator-page) :is(.ad-style-grid>button,.video-preset-grid>button).active :is(strong,small,i){color:#edf3fb!important}
body:has(.creator-page) .ad-style-dialog>footer{background:#e4ecf6!important;border-color:#bdcde0!important;color:#607894!important;font-size:12px!important}
body:has(.creator-page) .ad-style-dialog>footer svg{color:#526f94!important}
body:has(.creator-page) :is(.ad-style-image,.video-preset-image){border-radius:4px!important;background:#dce5f1!important}
.jy-cover-unavailable{position:absolute;inset:0;display:grid;place-items:center;color:#7186a2;font-size:12px}.jy-cover-unavailable~em{color:#fff!important}
body:has(.jy-workbench-heading) .control-row:not(:has([data-jy-parameter=version]))>[data-jy-parameter=resolution]{grid-column:1/-1!important}
body:has(.jy-workbench-heading) .ad-style-control{grid-column:1/-1!important;order:1!important}
@media(max-width:600px){body:has(.creator-page) .vam-modal{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important}body:has(.creator-page) .vam-tabs{flex-wrap:wrap!important;gap:5px!important}body:has(.creator-page) .vam-tab{padding:8px!important}body:has(.creator-page) .video-preset-grid{grid-template-columns:1fr!important}}

body:has(.creator-page) .vam-tab[aria-selected=true]{background:#354b6b!important;color:#fff!important;border-color:#354b6b!important;box-shadow:none!important}
body:has(.creator-page) .vam-tab::after{background:#536f95!important}
body:has(.creator-page) .vam-apply:disabled{opacity:.5!important;cursor:not-allowed!important}
body:has(.creator-page) :is(.ad-style-image,.video-preset-image):has(.jy-cover-unavailable)::after{display:none!important}
body:has(.creator-page) :is(.ad-style-image,.video-preset-image):has(.jy-cover-unavailable) em{color:#627b9a!important}

/* Existing tools adopt the same shell design. */
/* JIANYI approved gray-blue workspace. Presentation only; existing handlers and APIs remain intact. */
body.jy-tools-theme{--gold:#536c8f;--gold2:#334b6c;--bg:#dce3ec;--panel:#f7f9fc;color:#26364d;background:#dce3ec;font-family:Inter,"Microsoft YaHei",sans-serif}
body.jy-tools-theme .shell{grid-template-columns:190px minmax(0,1fr)!important;background:#dce3ec!important}
body.jy-tools-theme .rail{width:190px!important;background:#252e3b!important;border-color:#364254!important;align-items:stretch}
body.jy-tools-theme .brand-mark{width:100%!important;min-height:70px;border:0;background:transparent!important;justify-content:flex-start;padding-left:22px}
body.jy-tools-theme .brand-mark img{width:38px;height:38px}
body.jy-tools-theme .brand-mark::after{content:'简一';font-size:21px;font-weight:750;color:#e9eff7;margin-left:12px}
body.jy-tools-theme .rail nav{padding:20px 14px!important;gap:7px!important}
body.jy-tools-theme .rail nav button,body.jy-tools-theme .rail-bottom>button:not(.avatar-mini){width:100%!important;min-height:46px!important;flex-direction:row!important;justify-content:flex-start!important;gap:13px!important;padding:0 13px;color:#b6c3d6!important;font-size:14px!important}
body.jy-tools-theme .rail nav button svg{color:inherit!important;filter:none!important;width:21px;height:21px}
body.jy-tools-theme .rail nav button span{display:inline!important;white-space:nowrap}
body.jy-tools-theme .rail nav button.active{background:#536b8e!important;color:white!important;box-shadow:none!important}
body.jy-tools-theme .rail nav button:hover{background:#344255!important;color:white!important}
body.jy-tools-theme .rail-bottom{padding:12px 14px;display:flex;align-items:center;gap:10px}
body.jy-tools-theme .topbar{height:70px!important;background:#f4f6fa!important;border-color:#c7d1df!important;padding:0 28px!important;color:#25364b!important}
body.jy-tools-theme .topbar-title{font-size:0!important;color:#25364b!important}
body.jy-tools-theme .topbar-title::after{content:'JIANYI 简一';font:800 23px/1.3 Inter,"Microsoft YaHei",sans-serif;letter-spacing:-.6px}
body.jy-tools-theme .topbar-page-heading{margin-left:34px!important;max-width:640px}
body.jy-tools-theme .topbar-page-heading h1{color:#2a3b53!important;font:650 20px/1.3 Inter,"Microsoft YaHei",sans-serif!important}
body.jy-tools-theme .topbar-page-heading span,body.jy-tools-theme .topbar-page-heading p{color:#687e99!important}
body.jy-tools-theme .topbar-actions button{background:#e7edf5!important;border-color:#c1cede!important;color:#3c5679!important}
body.jy-tools-theme .stage{background:#dce3ec!important;min-width:0}
body.jy-tools-theme .creator-page{padding:24px 28px 32px!important;background:#dce3ec!important;min-height:calc(100dvh - 70px)}
body.jy-tools-theme .workbench{display:grid!important;grid-template-columns:minmax(0,1fr) 350px!important;gap:20px!important;align-items:start!important;max-width:none!important}
body.jy-tools-theme .composer-panel,body.jy-tools-theme .task-panel{background:#f7f9fc!important;border:1px solid #bdcbdc!important;border-radius:9px!important;box-shadow:0 3px 14px #344b6410!important;min-height:0!important;height:auto!important;padding:20px!important;min-width:0}
body.jy-tools-theme .composer-panel{display:flex!important;flex-direction:column!important;gap:0}
body.jy-tools-theme .section-line{color:#293b53!important;font-size:14px!important;margin-bottom:12px}
body.jy-tools-theme .section-line span,body.jy-tools-theme .section-line small{color:#71859e!important}
body.jy-tools-theme .drop-target{min-height:80px!important;background:#e9eef5!important;color:#4f698b!important;border-color:#acbed3!important;border-radius:6px!important}
body.jy-tools-theme .drop-target strong{font-size:14px!important}
body.jy-tools-theme .drop-target span{color:#71859e!important;font-size:12px!important}
body.jy-tools-theme .prompt-box{flex:none!important;min-height:0!important;background:#e7edf5!important;border-color:#b8c7db!important;margin-top:20px!important;border-radius:6px!important}
body.jy-tools-theme .prompt-box>div:first-child{color:#344b69!important;font-size:14px!important}
body.jy-tools-theme .prompt-editor-shell{height:max(260px,var(--adaptive-prompt-height,260px))!important;min-height:260px!important;flex:none!important}
body.jy-tools-theme .prompt-editor-shell textarea{background:transparent!important;color:#293f5c!important;font-size:15px!important;line-height:1.8!important;caret-color:#344b69!important}
body.jy-tools-theme .prompt-editor-shell.structured textarea{color:transparent!important}
body.jy-tools-theme .prompt-editor-shell textarea::placeholder{color:#7c8da4!important}
body.jy-tools-theme .prompt-actions{background:#e7edf5!important;border-color:#c0cddd!important;min-height:42px}
body.jy-tools-theme .mention-trigger{background:#f5f8fc!important;color:#4e6788!important;border-color:#b9c8da!important}
body.jy-tools-theme .composer-creation-tip-inline{color:#6e8099!important;font-size:11px!important}
body.jy-tools-theme .control-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-top:22px!important;padding-top:18px;border-top:1px solid #cbd5e2}
body.jy-tools-theme .control-row .model-badge-picker{grid-column:1/-1!important;order:-2!important;min-width:0}
body.jy-tools-theme .control-row .video-preset-control{grid-column:1/-1!important;order:-1!important}
body.jy-tools-theme .control-row label>span{color:#3d5371!important;font-size:13px!important;margin-bottom:7px!important}
body.jy-tools-theme .control-row select,body.jy-tools-theme .ad-style-trigger{height:44px!important;background:#e8eef6!important;color:#304866!important;border:1px solid #b5c6dd!important;font-size:14px!important;border-radius:5px!important;width:100%}
body.jy-tools-theme .model-badge-trigger{width:100%!important;min-height:54px!important;background:#e6edf6!important;border:1px solid #a4bad5!important;border-radius:6px!important;color:#314967!important;font-size:14px!important;padding:10px 14px!important}
body.jy-tools-theme .model-badge-trigger::after{content:'更换模型 ▾';margin-left:auto;background:#536b8e;color:white;padding:8px 12px;border-radius:4px;font-size:12px;white-space:nowrap}
body.jy-tools-theme .model-badge-name{color:inherit!important;font-size:14px!important}
body.jy-tools-theme .model-billing-mode{background:#d0deed!important;color:#3c587e!important;border-color:#b1c5df!important}
body.jy-tools-theme .model-badge-menu{background:#f6f9fd!important;border-color:#b5c6dc!important;box-shadow:0 12px 32px #283e5c30!important;max-height:340px!important;overflow:auto!important}
body.jy-tools-theme .model-badge-menu button{background:#f6f9fd!important;color:#304867!important;border-color:#cad6e5!important;min-height:52px!important;font-size:13px!important}
body.jy-tools-theme .model-badge-menu button:hover,body.jy-tools-theme .model-badge-menu button.active,body.jy-tools-theme .model-badge-menu button[aria-selected=true]{background:#3c5476!important;color:white!important}
body.jy-tools-theme .submit-bar{margin-top:22px!important;padding:16px!important;background:#e0e8f3!important;border:1px solid #b9c9dd!important;border-radius:6px;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:14px!important}
body.jy-tools-theme .audio-switch{color:#435d80!important;font-size:13px!important}
body.jy-tools-theme .model-insight{background:#edf2f8!important;border-color:#bccce0!important;color:#4c6484!important;flex:1;min-width:160px}
body.jy-tools-theme .model-insight :is(span,p){color:#5b718d!important}
body.jy-tools-theme .model-insight :is(b,strong){color:#cd6a12!important}
body.jy-tools-theme .cost{color:#536c8b!important;font-size:13px!important;white-space:nowrap}
body.jy-tools-theme .cost strong{color:#d66b11!important;font-size:26px!important}
body.jy-tools-theme .gold-button.primary{background:#536b8e!important;border:1px solid #536b8e!important;color:#fff!important;min-height:52px!important;min-width:190px!important;font-size:15px!important;display:flex;align-items:center;justify-content:center;border-radius:6px!important}
body.jy-tools-theme .gold-button.primary:disabled{opacity:.55}
body.jy-tools-theme .task-panel{position:sticky!important;top:20px!important;height:calc(100dvh - 118px)!important;max-height:calc(100dvh - 118px)!important;min-height:420px!important;overflow-y:auto!important;overscroll-behavior:contain}
body.jy-tools-theme .task-panel .panel-heading{color:#2b405d!important;border-color:#c5d0df!important}
body.jy-tools-theme .task-panel h2{font-size:18px!important;color:#2b405d!important}
body.jy-tools-theme .task-empty{color:#70839d!important;min-height:330px!important}
body.jy-tools-theme .task-empty strong{color:#3a516f!important;font-size:16px!important}
body.jy-tools-theme .play-orbit{border-color:#bbcbdc!important;color:#6e89ab!important;background:#e6edf5!important;box-shadow:none!important}
body.jy-tools-theme .task-preview{background:#e7edf5!important;border-color:#bbc9dc!important;min-height:160px!important;max-height:260px!important;aspect-ratio:16/9}
body.jy-tools-theme .task-preview img,body.jy-tools-theme .task-preview video{object-fit:contain!important}
body.jy-tools-theme .task-body,body.jy-tools-theme .task-body :is(dt,dd){color:#425a7c!important;font-size:13px!important;border-color:#c6d1df!important}
body.jy-tools-theme .task-panel .progress-row{color:#4a6283!important;font-size:13px!important}
body.jy-tools-theme .task-panel .progress-row.failed-reason>span{color:#b13f3a!important;white-space:normal!important}
body.jy-tools-theme .task-panel-meta{color:#5c7494!important;background:#e4ebf5!important;border-color:#becce0!important;font-size:12px!important}
body.jy-tools-theme .task-panel-history{flex:none!important;overflow:visible!important;border-color:#c4cfdf!important}
body.jy-tools-theme .task-panel-history>header strong{color:#365171!important;font-size:14px!important}
body.jy-tools-theme .task-panel-history>div{max-height:360px!important;min-height:0!important}
body.jy-tools-theme .task-panel-history>div>button{background:#e9eff6!important;border-color:#bfcede!important;min-height:58px!important;max-height:none!important}
body.jy-tools-theme .task-panel-history>div>button :is(strong,small,em){color:#49627f!important;font-size:12px!important}
body.jy-tools-theme .task-actions :is(a,button){background:#eef3f9!important;border-color:#b7c8dd!important;color:#425f83!important;min-height:38px!important;font-size:12px!important}
body.jy-tools-theme :is(button,select,textarea):focus-visible{outline:2px solid #6687b4!important;outline-offset:3px}
@media(min-width:1800px){body.jy-tools-theme .workbench{grid-template-columns:minmax(0,1fr) 380px!important}body.jy-tools-theme .creator-page{padding:30px 38px!important}}
@media(max-width:1050px){body.jy-tools-theme .shell{grid-template-columns:160px minmax(0,1fr)!important}body.jy-tools-theme .rail{width:160px!important}body.jy-tools-theme .workbench{grid-template-columns:minmax(0,1fr)!important}body.jy-tools-theme .task-panel{position:static!important;height:480px!important;max-height:480px!important}body.jy-tools-theme .control-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.jy-tools-theme .topbar-page-heading{display:none!important}}
@media(max-width:600px){body.jy-tools-theme .shell{grid-template-columns:58px minmax(0,1fr)!important}body.jy-tools-theme .rail{width:58px!important}body.jy-tools-theme .brand-mark{padding:10px!important}body.jy-tools-theme .brand-mark::after{display:none}body.jy-tools-theme .rail nav{padding:12px 5px!important}body.jy-tools-theme .rail nav button{width:48px!important;padding:8px!important;justify-content:center!important}body.jy-tools-theme .rail nav button span{display:none!important}body.jy-tools-theme .rail-bottom{padding:10px 5px;flex-direction:column}body.jy-tools-theme .creator-page{padding:16px 10px!important}body.jy-tools-theme .topbar{padding:0 10px!important}body.jy-tools-theme .topbar-title::after{font-size:18px}body.jy-tools-theme .composer-panel,body.jy-tools-theme .task-panel{padding:14px!important}body.jy-tools-theme .control-row{gap:10px!important}body.jy-tools-theme .model-badge-trigger{flex-wrap:wrap!important}body.jy-tools-theme .model-badge-trigger::after{margin-left:0}body.jy-tools-theme .model-insight{flex-basis:100%}body.jy-tools-theme .gold-button.primary{width:100%!important}body.jy-tools-theme .prompt-editor-shell{min-height:230px!important}body.jy-tools-theme .composer-creation-tip-inline{display:none!important}}
/* Follow-up containment corrections verified against production DOM. */
body.jy-tools-theme .topbar-title>strong,body.jy-tools-theme .topbar-title>span{display:none!important}
body.jy-tools-theme .rail nav{width:100%!important;max-width:none!important;align-items:stretch!important;box-sizing:border-box}
body.jy-tools-theme .rail nav button{max-width:none!important;flex-shrink:0!important}
body.jy-tools-theme .brand-mark{display:flex!important;flex-direction:row!important;align-items:center!important;gap:0!important;max-width:none!important}
body.jy-tools-theme .control-row>label:has(.model-badge-picker){grid-column:1/-1!important;order:-2!important}
body.jy-tools-theme .control-row .video-preset-control>button{background:#e8eef6!important;border:1px solid #b5c6dd!important;color:#304866!important;min-height:44px!important}
body.jy-tools-theme .control-row .video-preset-control>button :is(strong,svg){color:#425e82!important}
body.jy-tools-theme .task-empty :is(strong,p){font-family:Inter,"Microsoft YaHei",sans-serif!important;color:#536b89!important}
@media(max-width:600px){body.jy-tools-theme .rail nav{width:58px!important}body.jy-tools-theme .rail nav button{max-width:48px!important}}
body.jy-tools-theme .model-badge-trigger{display:flex!important;align-items:center!important;gap:8px!important;position:relative!important;flex-wrap:wrap!important}
body.jy-tools-theme .model-badge-trigger::after{position:static!important;transform:none!important;inset:auto!important;display:inline-flex!important;align-items:center!important;line-height:1.3!important}
body.jy-tools-theme .model-insight :is(em,small){color:#5b718d!important}
body.jy-tools-theme .task-panel .panel-heading :is(span,small){color:#6d8099!important}
body.jy-tools-theme .model-badge-trigger{height:auto!important;max-height:none!important;min-height:60px!important}
body.jy-tools-theme .model-badge-name{flex:1 1 180px!important;min-width:0!important;white-space:normal!important;line-height:1.55!important;overflow-wrap:anywhere!important}
body.jy-tools-theme .model-badge-trigger>i{position:static!important;flex:0 0 auto!important}
body.jy-tools-theme .model-badge-trigger>b{display:none!important}
@media(max-width:600px){body.jy-tools-theme .model-badge-name{flex-basis:100%!important}body.jy-tools-theme .model-badge-trigger::after{margin-left:auto!important}}

body:has(.creator-page) .upward-select-menu{background:#f0f4f9!important;border:1px solid #a8bdd7!important;box-shadow:0 8px 24px #30476428!important}
body:has(.creator-page) .upward-select-menu button{color:#3c5779!important;font-size:14px!important;background:#f0f4f9!important}
body:has(.creator-page) .upward-select-menu button:is(:hover,.is-selected){background:#354b6b!important;color:#fff!important}
body:has(.creator-page) select option{background:#edf2f8;color:#334e70}
body:has(.creator-page) .submit-bar{grid-template-columns:minmax(0,1fr) auto!important;gap:8px 16px!important;padding:14px!important}
body:has(.creator-page) .submit-bar .audio-switch{grid-column:1!important;grid-row:1!important;justify-self:start!important}
body:has(.creator-page) .submit-bar .model-insight{grid-column:1!important;grid-row:2!important;font-size:11px!important;margin:0!important;padding:6px 9px!important}
body:has(.creator-page) .submit-bar .cost{grid-column:2!important;grid-row:1!important;justify-self:end!important}
body:has(.creator-page) .submit-bar .gold-button{grid-column:2!important;grid-row:2!important;min-height:44px!important;min-width:180px!important}
body:has(.creator-page) .audio-switch input{accent-color:#536e92!important}
body:has(.creator-page) .rail-bottom{display:flex!important;align-items:center!important;justify-content:space-between!important;border-top:1px solid #3b4759!important;margin-top:10px!important}
body:has(.creator-page) .rail-bottom>button{background:transparent!important;box-shadow:none!important;border:0!important;color:#b9c7da!important;border-radius:5px!important}
body:has(.creator-page) .rail-bottom>button:not(.avatar-mini){width:auto!important;min-width:0!important;flex:1!important;font-size:14px!important}
body:has(.creator-page) .rail-bottom .avatar-mini{flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;background:#3c4b62!important;border:1px solid #607491!important;color:#dce7f5!important}
body:has(.creator-page) .task-panel{display:flex!important;flex-direction:column!important;gap:10px!important;height:auto!important;max-height:calc(100dvh - 160px)!important;min-height:220px!important}
body:has(.creator-page) .task-panel-history{order:-1!important;margin:0!important;padding:0 0 10px!important;border:0!important;border-bottom:1px solid #c0cddd!important}
body:has(.creator-page) .task-panel-history>div{max-height:300px!important;overflow:auto!important}
body:has(.creator-page) .task-panel .task-body{border:1px solid #bdcde0!important;border-radius:5px!important;padding:12px!important;background:#eaf0f7!important}
body:has(.creator-page) .task-panel:has(.failed-reason) .task-preview{display:none!important}
body:has(.creator-page) .task-panel .failed-reason{align-items:start!important;gap:8px!important}
body:has(.creator-page) .task-panel .failed-reason>span{min-width:0!important;max-height:140px!important;overflow:auto!important;overflow-wrap:anywhere!important;word-break:break-word!important;font-size:12px!important;line-height:1.6!important;white-space:normal!important}
body:has(.creator-page) .task-panel .task-body dd{max-width:none!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.jy-tools-theme .subpage{max-width:none!important;margin:0!important;padding:28px!important;background:#dce3ec!important;min-height:calc(100dvh - 70px)}
body.jy-tools-theme .search-box{background:#edf2f8!important;border:1px solid #b5c6dc!important;color:#526e91!important;border-radius:5px!important}
body.jy-tools-theme .search-box input{color:#304b6c!important;background:transparent!important}
body.jy-tools-theme .tool-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
body.jy-tools-theme .tool-grid>button{background:#f5f8fc!important;border:1px solid #b7c8dc!important;border-radius:7px!important;min-height:190px!important;padding:22px!important;color:#2e4665!important}
body.jy-tools-theme .tool-grid>button :is(strong,h2,h3){color:#2e4665!important;font:700 21px/1.5 'Microsoft YaHei',sans-serif!important}
body.jy-tools-theme .tool-grid>button :is(span,small,p){color:#68809e!important;font-size:13px!important;line-height:1.6!important}
body.jy-tools-theme .tool-grid>button svg{color:#587397!important;border-color:#bccbdd!important;background:#e4ecf6!important}
body.jy-tools-theme .drawer>section{background:#f5f8fc!important;color:#334e70!important;border-color:#b4c6dc!important}
body.jy-tools-theme .drawer :is(h2,strong,label){color:#304967!important;font-family:Inter,'Microsoft YaHei',sans-serif!important}
body.jy-tools-theme .drawer :is(p,small,span){color:#6b819d!important}
body.jy-tools-theme .drawer :is(textarea,input,select,button){background:#e9f0f8!important;color:#365271!important;border:1px solid #b2c5de!important;border-radius:5px!important}
body.jy-tools-theme .drawer :is(.music-usage-guide,.music-voice-picker){background:#eaf0f7!important;border-color:#bdcde0!important}
body.jy-tools-theme .drawer .gold-button{background:#536e92!important;color:white!important}
body.jy-tools-theme .drawer-backdrop{background:#27374c70!important}
@media(max-width:900px){body.jy-tools-theme .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body.jy-tools-theme .tool-grid{grid-template-columns:1fr!important}body.jy-tools-theme .subpage{padding:16px 12px!important}body:has(.creator-page) .submit-bar{grid-template-columns:1fr!important}body:has(.creator-page) .submit-bar :is(.cost,.gold-button,.audio-switch,.model-insight){grid-column:1!important;grid-row:auto!important}body:has(.creator-page) .rail-bottom{flex-direction:column!important}}

/* Detail alignment with the approved local workspace. */
body.jy-tools-theme .shell{grid-template-columns:212px minmax(0,1fr)!important}
body.jy-tools-theme .rail{width:212px!important}
body.jy-tools-theme .brand-mark{min-height:110px!important;padding:26px!important;display:block!important;text-align:left}
body.jy-tools-theme .brand-mark>*{display:none!important}
body.jy-tools-theme .brand-mark::before{content:'我的创作空间';display:block;color:#f1f5fa;font:700 16px/1.7 'Microsoft YaHei',sans-serif}
body.jy-tools-theme .brand-mark::after{content:'JIANYI STUDIO';display:block;margin:5px 0 0!important;color:#92a6c2;font:600 11px/1.5 Inter,sans-serif;letter-spacing:1.5px}
body.jy-tools-theme .rail nav{padding:10px 14px!important;gap:6px!important}
body.jy-tools-theme .rail nav button{border-radius:5px!important;min-height:47px!important}

body.jy-tools-theme .rail-bottom{display:flex!important;gap:10px!important;align-items:center!important;padding:16px!important}
body.jy-tools-theme .rail-bottom>button:not(.avatar-mini){background:transparent!important;border:0!important;color:#b5c7de!important;flex:1!important}
body.jy-tools-theme .avatar-mini{width:36px!important;height:36px!important;background:#354b6b!important;border:1px solid #657f9f!important;color:#e7eef7!important}
body.jy-tools-theme .tool-grid>button>span,body.jy-tools-theme .drawer-icon{background:#e4ecf6!important;border:1px solid #bdcce0!important;color:#587397!important;border-radius:5px!important}
body.jy-tools-theme .tool-grid>button :is(em,i),body.jy-tools-theme .drawer>aside>em{color:#6d83a0!important;font-family:Inter,'Microsoft YaHei',sans-serif!important;font-style:normal!important}
body.jy-tools-theme .drawer>aside{background:#f5f8fc!important;color:#334e70!important;border-color:#b4c6dc!important;color-scheme:light!important}
body.jy-tools-theme .drawer button.active{background:#354b6b!important;color:white!important;border-color:#354b6b!important}
body.jy-tools-theme .drawer .drawer-backdrop{border:none!important;background:#27374c70!important}
body.jy-tools-theme .drawer :is(section,header,.tool-upload){border-color:#bdcde0!important}
@media(max-width:1050px){body.jy-tools-theme .shell{grid-template-columns:170px minmax(0,1fr)!important}body.jy-tools-theme .rail{width:170px!important}body.jy-tools-theme .brand-mark{padding:20px!important}}
@media(max-width:600px){body.jy-tools-theme .shell{grid-template-columns:58px minmax(0,1fr)!important}body.jy-tools-theme .rail{width:58px!important}body.jy-tools-theme .brand-mark{min-height:60px!important;padding:12px!important}body.jy-tools-theme .brand-mark::before{content:'简一';font-size:15px}body.jy-tools-theme .brand-mark::after{display:none!important}body.jy-tools-theme .rail nav{padding:10px 5px!important}body.jy-tools-theme .rail-bottom{flex-direction:column!important;padding:10px!important}}
/* Site detail audit: scoped to the existing creation/tools shells, including body-level dropdown portals. */
html:has(.creator-page),html:has(body.jy-tools-theme){color-scheme:light!important;scrollbar-color:#92a7c1 #e4ebf4!important;scrollbar-width:thin!important}
body:has(.creator-page),body.jy-tools-theme{color-scheme:light!important}
body:has(.creator-page) *,body.jy-tools-theme *{scrollbar-color:#92a7c1 #e4ebf4!important;scrollbar-width:thin!important}
body:has(.creator-page) *::-webkit-scrollbar,body.jy-tools-theme *::-webkit-scrollbar{width:8px!important;height:8px!important;background:#e4ebf4!important}
body:has(.creator-page) *::-webkit-scrollbar-track,body.jy-tools-theme *::-webkit-scrollbar-track{background:#e4ebf4!important;border:0!important}
body:has(.creator-page) *::-webkit-scrollbar-thumb,body.jy-tools-theme *::-webkit-scrollbar-thumb{background:#92a7c1!important;border:2px solid #e4ebf4!important;border-radius:8px!important}
body:has(.creator-page) *::-webkit-scrollbar-button,body.jy-tools-theme *::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important;background:#e4ebf4!important}
body:has(.creator-page) *::-webkit-scrollbar-corner,body.jy-tools-theme *::-webkit-scrollbar-corner{background:#e4ebf4!important}
body:has(.creator-page) .rail nav{scrollbar-color:#667c99 #252e3b!important}
body:has(.creator-page) .rail nav::-webkit-scrollbar-track,body.jy-tools-theme .rail nav::-webkit-scrollbar-track{background:#252e3b!important}
body:has(.creator-page) .rail nav::-webkit-scrollbar-thumb,body.jy-tools-theme .rail nav::-webkit-scrollbar-thumb{background:#667c99!important;border-color:#252e3b!important}
body:has(.creator-page) .audio-switch i{background:#cad6e5!important;border:1px solid #9ab0cb!important;box-shadow:none!important}
body:has(.creator-page) .audio-switch input:checked+i{background:#536e92!important;border-color:#536e92!important}
body:has(.creator-page) .audio-switch i::after{background:#f6f9fd!important;box-shadow:0 1px 3px #263c5e30!important}
body:has(.creator-page) :is(button,a,input,textarea,select):focus-visible,body.jy-tools-theme :is(button,a,input,textarea,select):focus-visible{outline:2px solid #6c88ac!important;outline-offset:2px!important}

body.jy-tools-theme .team-guest{background:#f5f8fc!important;color:#3a5272!important;border:1px solid #b6c7dc!important;border-radius:8px!important;padding:44px 24px!important;margin:28px!important}
body.jy-tools-theme .team-guest h1{font:700 28px/1.5 'Microsoft YaHei',sans-serif!important;color:#2d4564!important}
body.jy-tools-theme .team-guest p{font:14px/1.8 'Microsoft YaHei',sans-serif!important;color:#6b819c!important}
body.jy-tools-theme .team-guest svg{color:#587397!important}
body.jy-tools-theme .team-guest .gold-button{background:#536e92!important;border-color:#536e92!important;color:#fff!important;min-height:44px!important}
body.jy-tools-theme .rail{display:flex!important;flex-direction:column!important;height:100dvh!important;overflow:hidden!important}
body.jy-tools-theme .rail nav{flex:1!important;min-height:0!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;scrollbar-color:#667c99 #252e3b!important}
body.jy-tools-theme .rail-bottom{flex-shrink:0!important}
@media(max-width:600px){body.jy-tools-theme .team-guest{margin:16px 10px!important;padding:28px 14px!important}}

/* Complete authenticated page branches from existing production classes. */
body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page){width:100%!important;min-width:0!important;max-width:none!important;padding:26px!important;margin:0!important;box-sizing:border-box!important}
body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page) :is(h1,h2,h3,strong){font-family:Inter,'Microsoft YaHei',sans-serif!important;color:#304866!important}
body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page) :is(p,span,small,em,dt,dd,th,td){color:#637a96!important;font-family:Inter,'Microsoft YaHei',sans-serif!important}
body.jy-tools-theme :is(.team-create-card,.team-metrics article,.team-add-member,.team-members,.team-tasks,.team-consumption-ledger,.task-center-metrics article,.task-center-card,.asset-summary article,.asset-library-panel,.asset-card){background:#f5f8fc!important;border:1px solid #b8c8dc!important;border-radius:7px!important;box-shadow:none!important}
body.jy-tools-theme .team-create-card{margin:32px auto!important;padding:32px!important}
body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page) :is(input,select,textarea){background:#e9f0f8!important;border:1px solid #b5c7df!important;border-radius:5px!important;color:#354f70!important;color-scheme:light!important}
body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page) :is(button,a.outline-button){font:13px/1.5 Inter,'Microsoft YaHei',sans-serif!important;border-color:#b5c7df!important;color:#4b678b!important;box-shadow:none!important}
body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page) .gold-button{background:#536e92!important;border:1px solid #536e92!important;color:#fff!important;min-height:42px!important}
body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page) .gold-button svg{color:#fff!important}
body.jy-tools-theme :is(.team-metrics,.task-center-metrics,.asset-summary) :is(article>svg,strong){color:#526e93!important}
body.jy-tools-theme :is(.team-members,.team-tasks,.task-center-card,.asset-library-panel)>header{background:#eaf0f7!important;border-color:#bdcde0!important}
body.jy-tools-theme :is(.team-role,.team-member-avatar,.team-member-main em,.task-filter-tabs i,.asset-tabs i){background:#e1e9f3!important;border-color:#b5c7df!important;color:#536e92!important}
body.jy-tools-theme :is(.team-message,.task-center-message,.asset-message){background:#e7eef7!important;border-color:#bacadd!important;color:#46617e!important;font-size:13px!important}
body.jy-tools-theme :is(.team-task-head,.team-task-table article,.team-member-list article,.team-consumption-ledger th,.team-consumption-ledger td,.task-center-list article,.asset-card-copy>small){background:transparent!important;border-color:#c4d0e0!important}
body.jy-tools-theme :is(.team-task-head,.team-consumption-ledger thead){background:#e4ecf6!important}
body.jy-tools-theme :is(.team-task-table,.team-consumption-ledger) :is(th,td,small,span,em,dt,dd){font-size:12px!important;line-height:1.6!important}
body.jy-tools-theme :is(.team-task-filters,.team-task-filter-summary){background:#eaf0f7!important;border-color:#bacadd!important;color:#607a9a!important}
body.jy-tools-theme :is(.task-filter-tabs,.asset-tabs){flex-wrap:wrap!important}
body.jy-tools-theme :is(.task-filter-tabs,.asset-tabs) button{background:transparent!important;min-height:38px!important}
body.jy-tools-theme :is(.task-filter-tabs,.asset-tabs) button.active{background:#354b6b!important;border-color:#354b6b!important;color:white!important}
body.jy-tools-theme :is(.task-filter-tabs,.asset-tabs) button.active :is(span,i,svg){color:white!important}
body.jy-tools-theme :is(.task-center-preview,.asset-preview){background:#e1e9f3!important;border-color:#b8c9dd!important}
body.jy-tools-theme .asset-preview>span{background:#e4ecf6!important;color:#617b9c!important}
body.jy-tools-theme :is(.task-center-preview>i,.asset-preview>em,.asset-preview>i){background:#354b6be6!important;border-color:#627fa1!important;color:#fff!important}
body.jy-tools-theme .asset-card:hover{border-color:#8da7c8!important;box-shadow:0 6px 18px #30456316!important;transform:none!important}
body.jy-tools-theme :is(.task-center-copy,.asset-card-copy) :is(strong,span,small){font-size:13px!important;line-height:1.6!important}
body.jy-tools-theme .task-center-list :is(dt,dd){font-size:12px!important;line-height:1.6!important}
body.jy-tools-theme .task-center-actions :is(a,button){background:#edf2f8!important;border-color:#b7c8df!important;color:#4c688c!important}
body.jy-tools-theme :is(.task-center-empty,.asset-empty,.team-task-empty,.team-task-video-empty){background:transparent!important;color:#7085a1!important}
body.jy-tools-theme :is(.task-center-empty,.asset-empty,.team-task-empty) :is(svg,span,strong){color:#7085a1!important;font-family:Inter,'Microsoft YaHei',sans-serif!important}
body.jy-tools-theme .asset-summary article>svg{background:#e6edf6!important;border-color:#bdcce0!important;color:#587397!important}
body.jy-tools-theme .asset-lightbox{background:#27374c80!important}
body.jy-tools-theme .asset-lightbox>section{background:#f5f8fc!important;border-color:#b8c9df!important;box-shadow:0 20px 60px #253c5d30!important;color:#304b6c!important}
body.jy-tools-theme .asset-lightbox :is(header,footer){background:#edf2f8!important;border-color:#bfcede!important}
body.jy-tools-theme .asset-lightbox :is(h2,strong,p,span,small){color:#4e698b!important;font-family:Inter,'Microsoft YaHei',sans-serif!important}
body.jy-tools-theme .asset-lightbox :is(button,a){background:#e8eff7!important;border:1px solid #b4c6df!important;color:#4d698c!important}
body.jy-tools-theme .asset-lightbox .asset-save-permanent{background:#536e92!important;color:#fff!important}
body.jy-tools-theme :is(.team-remove,.task-center-preview>i.failed,.task-center-list dd.expired,.asset-card-copy>small.expired){background:#f5e5e5!important;color:#a45151!important;border-color:#dfbaba!important}
body.jy-tools-theme :is(.task-center-preview>i.completed,.task-center-list dd.saved,.asset-card-copy>small.permanent){background:#e0eee7!important;color:#3e7b63!important;border-color:#b8d5c6!important}
body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page) button:disabled{opacity:.5!important;cursor:not-allowed!important}
@media(max-width:1050px){body.jy-tools-theme .team-content-grid{grid-template-columns:minmax(0,1fr)!important}body.jy-tools-theme .team-add-member{flex-direction:column!important;align-items:stretch!important}body.jy-tools-theme .asset-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:600px){body.jy-tools-theme :is(.team-page,.task-center-page,.asset-library-page){padding:14px 10px!important}body.jy-tools-theme :is(.team-metrics,.task-center-metrics){grid-template-columns:repeat(2,minmax(0,1fr))!important}body.jy-tools-theme .asset-summary{grid-template-columns:1fr!important}body.jy-tools-theme :is(.team-create-card form,.team-add-member form,.asset-library-head,.task-center-title){flex-direction:column!important;align-items:stretch!important}body.jy-tools-theme .team-create-card{padding:20px 14px!important;margin:18px 0!important;width:100%!important}body.jy-tools-theme .asset-grid{grid-template-columns:minmax(0,1fr)!important;padding:12px!important}body.jy-tools-theme :is(.task-center-card,.asset-library-panel)>header{flex-wrap:wrap!important;padding:10px!important}body.jy-tools-theme .asset-lightbox{padding:10px!important}body.jy-tools-theme .asset-lightbox>section{width:100%!important}}
/* Account page control contrast and bounded task content */
body.jy-tools-theme .subpage .gold-button.gold-button,body.jy-tools-theme .subpage .gold-button.gold-button *{color:#fff!important}
body.jy-tools-theme .task-filter-tabs button.active i,body.jy-tools-theme .asset-tabs button.active i{background:#ffffff26!important;color:#fff!important}
body.jy-tools-theme .task-center-copy{min-width:0!important;overflow-wrap:anywhere}
body.jy-tools-theme .task-center-copy>strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px!important;line-height:1.6!important}
body.jy-tools-theme .task-center-copy>p{max-height:100px;overflow:auto;font-size:12px!important;line-height:1.6!important}
body.jy-tools-theme .stage :is(.settings-card,.task-center-title) button:not(.danger-button):not(.gold-button){background:#e8eff7!important;border:1px solid #b8c8dc!important;color:#4b678b!important}
body.jy-tools-theme .task-center-actions button{background:#e8eff7!important;color:#4b678b!important;border-color:#b8c8dc!important}
body.jy-tools-theme .settings-card{background:#f5f8fc!important;background-image:none!important;border:1px solid #b8c8dc!important;box-shadow:none!important;color:#344b68!important}
body.jy-tools-theme .settings-card :is(h2,strong){font-family:Inter,'Microsoft YaHei',sans-serif!important;color:#263b55!important}
body.jy-tools-theme .settings-card :is(p,span,label){color:#58718f!important;font-size:13px!important}
body.jy-tools-theme .settings-card input{background:#e8eff7!important;border:1px solid #b8c8dc!important;color:#344b68!important;color-scheme:light!important}
body.jy-tools-theme .settings-card .gold-button{background:#536f94!important;color:white!important}
body.jy-tools-theme .settings-card .danger-button{background:#fff3f3!important;color:#ad4646!important;border-color:#e0bcbc!important}
body.jy-tools-theme .settings-card :is(svg,em){color:#536f94!important}
body.jy-tools-theme .task-center-preview img{font-size:0!important}
/* Keep the shared sidebar bounded independently of page content. */
body:is(.jy-tools-theme,:has(.jy-workbench-heading)) .rail{position:fixed!important;inset-block:0!important;height:100vh!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important}
body:is(.jy-tools-theme,:has(.jy-workbench-heading)) .brand-mark{flex:0 0 auto!important}
body:is(.jy-tools-theme,:has(.jy-workbench-heading)) .rail nav{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-content:flex-start!important;scrollbar-width:thin;scrollbar-color:#64748b #252e3b}
body:is(.jy-tools-theme,:has(.jy-workbench-heading)) .rail nav button{flex:0 0 47px!important;height:47px!important;min-height:47px!important;max-height:47px!important;box-sizing:border-box!important}
body:is(.jy-tools-theme,:has(.jy-workbench-heading)) .rail-bottom{flex:0 0 auto!important;margin-top:0!important}
html body .shell .rail nav button{flex:0 0 47px!important;height:47px!important;min-height:47px!important;max-height:47px!important}
html body .shell .rail{height:100dvh!important;max-height:100dvh!important;min-height:0!important;overflow:hidden!important}
html body .shell .rail nav{min-height:0!important;overflow-y:auto!important;flex:1 1 0!important}
