/* Mobile workspace only. Desktop rules and saved theme preferences are untouched. */
.hmt-header,.hmt-bottom,.hmt-generation-intro,.hmt-generate-label{display:none}
@media(max-width:760px){
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.kl-result-item .item__content,.kl-card-info,.project-grid-item-top-bar,.kl-feed-toolbar,.kl-feed-header){background:#fff!important;color:#28303d!important;border-color:#e5e6ed!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .kl-card-display{background:#eff0f5!important;color:#737783!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.kl-card-info p,.kl-card-info .prompt__render,.kl-card-info strong){color:#28303d!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.kl-card-info small,.kl-result-failed){color:#878b96!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .kl-card-actions :is(button,a){background:#f5f4fa!important;color:#626878!important;min-height:36px!important;min-width:28px!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .kl-result-item .item__content{border:1px solid #e5e6ed!important;border-radius:16px!important;overflow:hidden}
 body.site-workspace .asset-dialog .asset-primary{background:#7056e8!important;color:#fff!important;border:0!important;min-height:44px!important;border-radius:12px!important}
 body.site-workspace .asset-dialog .asset-shell{padding:0!important;box-shadow:none!important;border:0!important}
 .hmt-generate-label{display:inline}
 .hmt-gen-settings{margin-top:12px}.hmt-gen-settings>div>button{width:100%;justify-content:center;font-size:13px!important}
 .hmt-gen-submit{display:flex;gap:8px;align-items:center;margin-top:10px}.hmt-gen-submit>.hw-model-picker{flex:1;min-width:0}.hmt-gen-submit>.hw-model-picker>button{width:100%;max-width:100%;font-size:13px!important;padding:8px!important}.hmt-gen-submit>.hw-price{max-width:65px;font-size:10px!important;text-align:center;flex:none}.hmt-gen-submit>.hw-generate{min-width:68px!important}
 .hmt-param-group{margin:0 0 18px}.hmt-param-group h3{font-size:15px;margin:10px 0;color:#28303d}.hmt-param-group>small{color:#9297a0}.hmt-param-group .hw-option{min-height:52px!important}.hmt-sheet .hy-clear-prompt{width:100%;min-height:44px;background:#f5f4fa;border:0;border-radius:12px;color:#737783}
 html:has(.hw-workspace),body.site-workspace{background:#f6f7fb!important;color:#18212b!important;color-scheme:light}
 body.site-workspace .hw-workspace.hy-app.kl-transplant{--hw-bg:#f6f7fb;--hw-panel:#fff;--hw-text:#18212b;--hw-muted:#737783;--hw-border:#e3e4eb;--background:#f6f7fb;--foreground:#18212b;--primary:#7056e8;font-family:system-ui,-apple-system,'Segoe UI','Microsoft YaHei',sans-serif!important;font-size:14px!important;line-height:1.5;color:#18212b!important;background:#f6f7fb!important;height:var(--hmt-height,100dvh)!important;min-height:0!important;position:fixed!important;inset:var(--hmt-top,0px) 0 auto!important;width:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant *{box-sizing:border-box;text-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant button{touch-action:manipulation}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hy-sidebar,.hy-topbar,.hw-home-head,.hy-history-rail,.hy-nav-scrim,.hy-back-records,.hy-aemis-scene,.hy-aemis-controls,.hy-aemis-cinematic,.hw-desktop-tabs){display:none!important}
 body.site-workspace .hm-new-chat{display:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-main{height:auto!important;min-height:0!important;width:100%!important;flex:1!important;padding:0 16px 8px!important;display:flex!important;flex-direction:column!important;background:#f6f7fb!important;overflow:hidden!important;position:relative!important}
 .hw-workspace .hmt-header{display:block;flex:none;order:-10;padding:max(8px,env(safe-area-inset-top)) 16px 12px;background:#f6f7fb;z-index:40}
 .hmt-header-row{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-bottom:12px;gap:12px}
 .hmt-header-row>div{display:flex;gap:4px}
 .hmt-header-row button{background:transparent!important;border:0!important;border-radius:12px!important;min-width:44px;min-height:44px;color:#18212b!important;display:flex;align-items:center;justify-content:center;padding:10px;gap:10px;font-size:17px;font-weight:600}
 .hmt-header-row .hmt-account{padding-left:2px;min-width:0;font-size:16px;white-space:nowrap}
 .hmt-account svg{color:#89909b}
 .hmt-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#eceef4;border-radius:16px;padding:4px;gap:4px}
 .hmt-segments button{border:0;background:transparent;color:#626a74;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:16px;font-weight:500;border-radius:13px;padding:8px}
 .hmt-segments button[aria-pressed=true]{background:#fff;color:#18212b;box-shadow:0 2px 9px #24213e0d;font-weight:650}
 .hmt-segments button[aria-pressed=true] svg{color:#7056e8}
 .hw-workspace .hmt-bottom{order:10;display:grid;flex:none;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 12px max(6px,env(safe-area-inset-bottom));border-top:1px solid #e7e8ef;background:#fff;z-index:40}
 .hmt-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;background:none;border:0;color:#737983;font-size:12px;font-weight:500}
 .hmt-bottom button[aria-current=page]{color:#7056e8;font-weight:650}
 .hmt-keyboard .hmt-bottom{display:none!important}
 .hmt-keyboard .hmt-header-row{display:none}
 .hmt-keyboard .hmt-header{padding-top:6px;padding-bottom:6px}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-conversation-wrap{min-height:0!important;flex:1!important;overflow:hidden!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-conversation{height:100%!important;overflow:auto!important;padding:14px 0 18px!important;overscroll-behavior:contain}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-conversation>div{max-width:100%!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-welcome{min-height:0!important;margin:0!important;padding:20px 10px 24px!important;background:none!important;transform:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-welcome:before,body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-welcome:after{display:none!important}
 .hw-workspace .hm-welcome{display:block!important;text-align:center;padding:0!important;margin:0 auto;max-width:440px;color:#18212b!important}
 .hw-workspace .hmt-hero-logo{width:70px!important;height:70px!important;object-fit:contain;background:#fff;padding:14px;border-radius:22px;margin:0 auto 18px;box-shadow:0 3px 16px #25254c09;display:grid;place-items:center;color:#7056e8}
 .hmt-hero-logo img{width:42px!important;height:42px!important}
 .hw-workspace .hm-welcome h2,.hmt-generation-intro h2{font-size:25px!important;line-height:1.3;font-weight:650!important;letter-spacing:0!important;color:#18212b!important;margin:0 0 14px!important}
 .hw-workspace .hm-welcome p,.hmt-generation-intro p{font-size:15px!important;line-height:1.9!important;color:#737783!important;margin:0 auto 18px!important;max-width:360px}
 .hw-workspace .hm-start-upload{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:46px;padding:11px 20px;border:0;border-radius:14px;background:#eee9ff!important;color:#674bd6!important;font-size:15px;box-shadow:none!important}
 .hw-workspace .hm-steps{display:flex;justify-content:center;gap:10px;margin:16px 0 0;color:#8a8e98;font-size:11px}
 .hw-workspace .hm-steps i{font-style:normal;color:#bbb9c8}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-composer{flex:none!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;margin:0!important;padding:14px!important;border:1px solid #e8e9ef!important;border-radius:24px!important;background:#fff!important;color:#18212b!important;box-shadow:0 5px 24px #24213e0a!important;max-height:48dvh!important;overflow:visible!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-reverse-prompt{display:flex!important;align-items:flex-start;gap:10px;flex-wrap:wrap!important;min-height:65px}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-reverse-prompt textarea{order:1;flex:1!important;min-width:0!important;width:auto!important;min-height:65px!important;height:65px!important;max-height:120px!important;padding:6px 0!important;color:#18212b!important;background:none!important;border:0!important;box-shadow:none!important;font-size:16px!important;line-height:1.6!important;resize:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant textarea::placeholder{color:#9297a0!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-reverse-prompt.hw-has-media textarea{flex-basis:100%!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-inline-media{flex:none!important;max-width:100%!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-upload-tile{transform:none!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:#f3f3f8!important;border:0!important;border-radius:14px!important;color:#3a4151!important;box-shadow:none!important;padding:10px!important}
 .hw-workspace .hw-upload-tile small{display:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-composer-tools{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:7px!important;margin-top:10px!important;padding:0!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-composer-tools>.hw-mode-picker,body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-composer-tools>button:not(.hm-reference-settings){display:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-composer-tools .hw-skill-picker{flex:1;max-width:calc(100% - 50px)}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-composer-tools .hy-composer-end{display:flex!important;flex:1 0 100%!important;justify-content:space-between!important;width:100%!important;margin:0!important;gap:8px!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hw-control,.site-reverse-picker>button,.hm-reference-settings){min-height:42px!important;background:#f3f2f8!important;border:1px solid #ebe9f1!important;border-radius:22px!important;color:#28303d!important;font-size:13px!important;display:flex;align-items:center;gap:7px;padding:8px 12px!important;box-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-control>span{max-width:100%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .hw-workspace .hmt-popover{min-width:0}
 .hw-workspace .site-reverse-picker{max-width:calc(100% - 60px)!important}
 .hw-workspace .site-reverse-picker>button{font-size:14px!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-submit{background:#7056e8!important;color:#fff!important;width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;border:0!important;box-shadow:none!important;flex:none!important}
 .hw-workspace button:disabled{opacity:.45!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-bottom-note{margin:5px 4px 0!important;font-size:9px!important;color:#8b8f99!important;line-height:1.45!important;max-height:27px!important;overflow:auto!important;flex:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hy-user-request,.hy-chat-message,.hy-result-editor,.hy-trace,.hy-trace-item,.hy-answer,.hy-live-output,.hy-output){background:#fff!important;color:#26303d!important;border-color:#e6e7ef!important;box-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hy-result-editor textarea,.hy-chat-text,.hy-message-text,.hy-prose,.hy-assistant-label,.hy-result-actions){color:#26303d!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hy-warning,.hy-error,.hw-error){background:#fff3e4!important;color:#966425!important;border-color:#f1d9b9!important;font-size:13px!important;line-height:1.7!important}
 .hw-workspace .hy-luna-compact{color:#737783!important;font-size:11px!important;margin-bottom:8px!important}
 .hw-workspace .hy-luna-rules{background:#f5f4fa!important;color:#626878!important;border-color:#e6e4ef!important}
 /* Generation uses the original inputs and controls, without desktop canvas wrappers. */
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-generation{display:flex;flex-direction:column;min-height:0;flex:1;background:transparent!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-composer-dock{flex:none!important;order:2!important;padding:0!important;margin:0!important;background:transparent!important;position:relative!important;z-index:20}
 .hw-workspace .hw-composer-dock:before{display:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmt-generation-composer{background:#fff!important;border:1px solid #e8e9ef!important;border-radius:24px!important;padding:14px!important;box-shadow:0 5px 24px #24213e0a!important;max-height:54dvh;overflow:auto}
 .hw-workspace .hmt-generation-composer .hw-prompt-row{display:flex!important;flex-direction:column!important;gap:12px!important;min-height:0!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmt-generation-composer .hw-inline-media:not(:has(.hw-reference-fan)){width:100%!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmt-generation-composer .hw-upload-tile{width:100%!important;height:66px!important;display:flex!important;justify-content:flex-start!important;gap:12px!important;padding:16px!important;background:#f5f4f9!important}
 .hw-workspace .hmt-generation-composer .hw-upload-tile small{display:block!important;font-size:15px;color:#29313f}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmt-generation-composer .hw-reference-editor{width:100%!important;min-height:65px!important;max-height:110px!important;font-size:16px!important;line-height:1.6!important;color:#18212b!important;background:transparent!important;border:0!important;overflow:auto!important}
 .hw-workspace .hw-reference-editor:empty:before{color:#9297a0!important}
 .hw-workspace .hmt-generation-composer .hw-generation-tools{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin-top:12px!important}
 .hmt-generation-composer .hw-mode-picker{display:none!important}
 .hmt-generation-composer .hw-model-picker{order:5;max-width:100%}
 .hmt-generation-composer .hw-model-picker>button{font-size:14px!important}
 .hmt-generation-composer .hw-count{display:none!important}
 .hmt-generation-composer .hw-audio{display:flex;align-items:center;gap:6px;font-size:13px;color:#626878}
 .hmt-generation-composer input[type=checkbox]{accent-color:#7056e8;width:18px;height:18px}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmt-generation-composer .hw-generation-end{order:10;width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;margin:3px 0 0!important;padding:0!important;border:0!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmt-generation-composer .hw-generate{width:auto!important;min-width:88px!important;height:44px!important;background:#7056e8!important;color:#fff!important;border:0!important;border-radius:22px!important;display:flex!important;align-items:center;justify-content:center;gap:5px;opacity:1;visibility:visible!important;font-size:15px}
 .hw-workspace .hmt-generation-composer .hy-clear-prompt{margin-right:auto;min-height:40px!important;background:transparent!important;color:#868a95!important;border:0!important}
 .hw-workspace .hmt-generation-composer .hw-price{font-size:12px!important;color:#757a86!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-generation-note{font-size:9px!important;color:#8b8f99!important;margin:5px 0!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-recent:not(.hw-analysis-tasks){order:0!important;flex:1!important;min-height:0!important;overflow:auto!important;padding:12px 0 16px!important;overscroll-behavior:contain;background:transparent!important}
 .hw-workspace .hw-empty-start{padding:10px 0 12px!important;margin:0!important}
 .hw-workspace .hw-empty-start>h1{display:none!important}
 .hw-workspace .hmt-generation-intro{display:block;text-align:center;padding:8px 8px 22px}
 .hmt-generation-intro small{color:#7056e8;font-size:12px}
 .hw-workspace .hw-start-ideas{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-start-ideas button{background:#fff!important;border:1px solid #e6e7ef!important;border-radius:16px!important;color:#26303d!important;padding:12px 8px!important;min-height:70px!important;font-size:12px!important;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
 .hw-workspace .hw-start-ideas small{display:none!important}
 .hw-workspace .hw-start-ideas svg{display:block!important;color:#7056e8!important}
 .hw-workspace .hw-empty-start>p{color:#9297a0!important;font-size:11px!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hw-result-entry,.hw-current-job){color:#28303d!important;background:#fff!important;border-color:#e5e6ed!important;border-radius:16px!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hw-entry-prompt,.hw-entry-meta,.hw-feed-day){color:#626878!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hw-result-entry footer button{background:#eeedf5!important;color:#495061!important;min-height:40px}
 /* All mobile menus are native-sized bottom sheets with their own scroll area. */
 .hmt-overlay{position:fixed;inset:0;z-index:50000;background:#24273866;display:flex;align-items:flex-end;padding-top:max(20px,env(safe-area-inset-top));color:#18212b;color-scheme:light}
 .hmt-sheet{width:100%;max-height:90dvh;background:#fff;border-radius:26px 26px 0 0;padding:8px 20px max(20px,env(safe-area-inset-bottom));box-shadow:0 -8px 50px #24213e16;display:flex;flex-direction:column;outline:none;box-sizing:border-box;font-family:system-ui,-apple-system,'Segoe UI','Microsoft YaHei',sans-serif}
 .hmt-handle{width:38px;height:5px;border-radius:4px;background:#dedee8;margin:0 auto 17px;flex:none}
 .hmt-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex:none}
 .hmt-sheet h2{font-size:21px;font-weight:650;margin:0;color:#18212b}
 .hmt-sheet>header button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#f5f5f9;color:#626878}
 .hmt-sheet-content{overflow:auto;min-height:0;overscroll-behavior:contain;padding-bottom:4px}
 .hmt-current-model{display:flex;gap:12px;align-items:center;background:#f5f4fa;border-radius:16px;padding:14px;margin-bottom:16px}
 .hmt-current-model img{width:36px;height:36px;object-fit:contain}
 .hmt-current-model strong,.hmt-current-model small{display:block}.hmt-current-model small{color:#9297a0;font-size:12px}.hmt-current-model strong{font-size:17px}
 .hmt-search,.hmt-sheet .hw-search{display:flex;align-items:center;gap:10px;background:#f5f4fa;border:0;border-radius:14px;padding:12px;margin:0 0 14px;color:#8b8f99}
 .hmt-search input,.hmt-sheet .hw-search input{background:transparent!important;border:0!important;color:#18212b!important;outline:none!important;font-size:16px!important;min-width:0;width:100%;height:26px}
 .hmt-model-list>button{display:flex;align-items:center;gap:14px;width:100%;min-height:82px;padding:14px 10px;background:#fff;color:#18212b;border:0;border-bottom:1px solid #f0f0f5;text-align:left;border-radius:14px}
 .hmt-model-list>button[aria-pressed=true]{background:#f5f1ff;color:#7056e8}
 .hmt-model-list img{width:40px;height:40px;object-fit:contain;border-radius:12px}
 .hmt-model-list span{flex:1;min-width:0}.hmt-model-list strong{display:block;font-size:16px;font-weight:600}.hmt-model-list small{display:block;color:#9297a0;font-size:12px;margin-top:5px}
 .hmt-model-list b{font-size:18px;color:#7056e8}
 .hmt-muted{color:#9297a0;text-align:center;padding:20px}
 .hmt-sheet .hw-option{display:flex!important;align-items:center;gap:12px;width:100%;min-height:66px;padding:12px 8px!important;background:#fff!important;color:#28303d!important;border:0!important;border-bottom:1px solid #f0f0f5!important;text-align:left;box-sizing:border-box;border-radius:12px}
 .hmt-sheet .hw-option[aria-pressed=true]{background:#f5f1ff!important;color:#7056e8!important}
 .hmt-sheet .hw-option strong{display:block;font-size:16px}.hmt-sheet .hw-option small{display:block!important;color:#9297a0!important;font-size:12px;margin-top:5px}
 .hmt-sheet .hw-option>span:nth-child(2){flex:1;min-width:0}
 .hmt-sheet .hw-model-symbol{width:40px;height:40px;display:grid;place-items:center;background:#f3f2f8;border-radius:12px;flex:none}
 .hmt-sheet :is(.hw-ratios,.hw-resolutions,.hw-size-fields){display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 20px}
 .hmt-sheet :is(.hw-ratios,.hw-resolutions) button{min-width:64px;min-height:46px;background:#f5f4fa;border:1px solid #e8e6f0;border-radius:12px;color:#626878;padding:10px;font-size:14px}
 .hmt-sheet :is(.hw-ratios,.hw-resolutions) button[aria-pressed=true]{border-color:#7056e8;color:#7056e8;background:#f2edff}
 .hmt-sheet input[type=range]{width:100%;accent-color:#7056e8;height:36px}.hmt-sheet .hw-duration{margin:16px 0;display:flex;align-items:center;gap:16px}
 .hmt-wallet{padding:22px;background:#f5f4fa;border-radius:18px;margin-bottom:18px}.hmt-wallet small{display:block;color:#8b8f99}.hmt-wallet strong{display:block;font-size:32px;margin-top:8px}
 .hmt-primary{background:#7056e8;color:#fff;border:0;border-radius:15px;min-height:50px;width:100%;font-size:16px}.hmt-account-link{display:block;width:100%;border:0;background:#fff;color:#28303d;min-height:54px;text-align:left;font-size:15px;border-bottom:1px solid #efeff4;padding:12px 5px}
 body.site-workspace .hm-sheet-overlay{z-index:50000;background:#24273866;backdrop-filter:none}
 body.site-workspace .hm-sheet{background:#fff!important;color:#18212b!important;border:0!important;border-radius:26px 26px 0 0!important;max-height:85dvh;overflow:auto}
 body.site-workspace .hm-sheet header strong{color:#18212b!important}.hm-sheet header p,.hm-sheet .hm-sheet-note{color:#9297a0!important}
 body.site-workspace .hm-sheet header button{background:#f4f3f9!important;color:#626878!important;width:44px;height:44px}
 body.site-workspace .hm-upload-options button{background:#f5f4fa!important;color:#7056e8!important;border:1px solid #eceaf4!important;min-height:116px;border-radius:18px!important}
 body.site-workspace .hm-upload-options strong{color:#28303d!important}.hm-upload-options small{color:#9297a0!important}
 body.site-workspace :is(.hy-history-dialog,.hy-reference-drawer,.asset-dialog,.asset-shell,.hy-material-modal){background:#fff!important;color:#28303d!important;border-color:#e4e5ed!important;box-shadow:0 8px 50px #24213e24!important}
 body.site-workspace .hy-history-dialog{inset:0!important;width:100%!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:22px 16px!important}
 body.site-workspace .hy-history-dialog :is(h2,button,span,strong){color:#28303d!important}
 body.site-workspace .hy-history-dialog button[aria-pressed=true]{background:#f0ebff!important;border-color:#ded4ff!important;color:#7056e8!important}
 body.site-workspace .hy-history-dialog .hy-history-manager-row{border-color:#ececf3!important}
 body.site-workspace .hy-history-dialog .hy-history-manager-row>button:first-child{background:#f8f8fb!important;padding:12px!important}
 body.site-workspace .hy-history-dialog .hy-history-delete-button{min-height:44px!important;color:#b55366!important}
 body.site-workspace :is(.hy-reference-drawer,.asset-dialog,.hy-material-modal) :is(input,select,textarea){background:#f6f5fa!important;color:#28303d!important;border-color:#e4e5ed!important;font-size:16px!important;min-height:44px}
 /* Keep existing authentication and verification handlers; restyle their real form. */
 body.site-workspace .email-overlay{z-index:60000!important;background:#f6f7fb!important;align-items:stretch!important;padding:0!important}
 body.site-workspace .email-dialog:not(.invite-dialog){width:100%!important;max-width:100%!important;min-height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;background:#f6f7fb!important;color:#18212b!important;box-shadow:none!important;padding:max(76px,env(safe-area-inset-top)) 24px 30px!important;overflow:auto!important}
 body.site-workspace .email-dialog:not(.invite-dialog):before{content:'haiyi 创作空间';display:block;font-size:27px;font-weight:700;color:#18212b;margin-bottom:12px}
 body.site-workspace .email-dialog:not(.invite-dialog):after{content:'AI 图片 · AI 视频 · 视频反推';display:block;text-align:center;color:#9297a0;font-size:13px;margin-top:32px}
 body.site-workspace .email-dialog h2{font-size:22px!important;color:#18212b!important;margin:28px 0 20px!important}
 body.site-workspace .email-dialog :is(p,label,small){color:#737783!important}
 body.site-workspace .email-dialog input{min-height:52px!important;border:1px solid #dddfe8!important;border-radius:14px!important;background:#fff!important;color:#18212b!important;font-size:16px!important;box-sizing:border-box}
 body.site-workspace .email-dialog select{min-height:52px!important;background:#fff!important;color:#28303d!important;border:1px solid #dddfe8!important;border-radius:14px!important;font-size:15px!important}
 body.site-workspace .email-dialog button[type=submit]{min-height:52px!important;background:#7056e8!important;color:#fff!important;border:0!important;border-radius:15px!important;font-size:17px!important;width:100%!important}
 body.site-workspace .email-dialog button{min-height:44px;color:#7056e8!important}
 body.site-workspace .email-dialog .email-close{position:absolute!important;top:16px!important;left:16px!important;right:auto!important;width:44px!important;height:44px!important;background:transparent!important;color:#28303d!important;font-size:30px!important}
 .hmt-sheet button:focus-visible,.hmt-header button:focus-visible,.hmt-bottom button:focus-visible{outline:2px solid #7056e8;outline-offset:2px}
 @media(max-height:600px){.hw-workspace .hmt-generation-intro,.hw-workspace .hm-welcome{padding:8px!important}.hw-workspace .hmt-hero-logo{display:none!important}.hw-workspace .hmt-generation-intro p,.hw-workspace .hm-welcome p{font-size:13px!important;margin-bottom:8px!important}.hw-workspace .hm-steps{display:none!important}.hw-workspace .hmt-generation-composer{max-height:62dvh}.hmt-header-row{min-height:40px;margin-bottom:4px}.hmt-header{padding-top:4px!important;padding-bottom:6px!important}.hmt-bottom button{min-height:44px}.hmt-bottom{padding-top:2px!important;padding-bottom:2px!important}}
}

/* Mobile content remains readable even when desktop dark mode is selected. */
@media(max-width:760px){
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmt-bottom{display:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.message-prose,.markdown-reply,.hy-live-answer){color:#26303d!important;opacity:1!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.message-prose,.markdown-reply) :is(p,span,strong,em,li,h1,h2,h3,h4,blockquote,code){color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;text-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-prompt-text{display:block!important;background:#fff!important;color:#26303d!important;border:1px solid #dddfe8!important;border-radius:16px!important;overflow:hidden!important;text-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-prompt-text>header{display:flex!important;align-items:center;justify-content:space-between;padding:10px 14px!important;background:#f0edf8!important;color:#514365!important;border-bottom:1px solid #e1dcec!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-prompt-text :is(pre,code){display:block!important;color:#26303d!important;-webkit-text-fill-color:#26303d!important;opacity:1!important;background:#fff!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;font-family:inherit!important;font-size:15px!important;line-height:1.75!important;padding:14px!important;margin:0!important;max-height:none!important;text-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hy-prompt-text>header,.hmc-bar) :is(button,span){color:#593bb3!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;text-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmc-bar>button{background:#eee8ff!important;color:#593bb3!important;box-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmc-bar>span{color:#5d6370!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hmc-bar>button.hmc-stop{background:#fff0f0!important;color:#9b3434!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant :is(.hy-composer,.hmt-generation-composer) :is(button,select,summary){-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
 body.site-workspace .hw-workspace.hy-app.kl-transplant .hy-composer :is(.site-reverse-picker-trigger,.hy-skill-controls button,.hy-skill-controls select){color:#26303d!important}
}
